@solibo/solibo-ui 0.3.23 → 0.3.24

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.
@@ -12,7 +12,7 @@ import { Input as Vs } from "../input/index.js";
12
12
  function mn(n) {
13
13
  return {};
14
14
  }
15
- const xu = {}, k0 = {}, Da = {}, Mt = {}, rn = {}, qn = {}, un = {}, vu = {}, ai = {}, Un = {}, jn = {}, Ve = {}, Zi = {}, Qi = {}, A0 = {}, Ma = {}, O0 = {}, Ra = {}, P0 = {}, Ba = {}, Fa = {}, Vr = {}, I0 = {}, qa = {}, Ua = {}, ja = {}, L0 = {}, D0 = {}, M0 = {}, Gs = {}, za = {}, R0 = {}, $a = {}, Wa = {}, B0 = {}, wu = {}, Yi = {}, li = {}, F0 = {}, q0 = {}, xr = {}, vr = {}, U0 = {}, j0 = {}, z0 = {}, Ue = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, $0 = Ue && "documentMode" in document ? document.documentMode : null, Me = Ue && /Mac|iPod|iPhone|iPad/.test(navigator.platform), wt = Ue && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Gr = !(!Ue || !("InputEvent" in window) || $0) && "getTargetRanges" in new window.InputEvent("input"), Su = Ue && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), tr = Ue && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, W0 = Ue && /Android/.test(navigator.userAgent), Ha = Ue && /^(?=.*Chrome).*/i.test(navigator.userAgent), H0 = Ue && W0 && Ha, es = Ue && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Ha, nr = 1, Ct = 3, Bt = 0, Va = 1, an = 2, V0 = 0, G0 = 1, K0 = 2, Kr = 4, Jr = 8, ts = 128, J0 = 112 | (3 | Kr | Jr) | ts, ns = 1, rs = 2, us = 3, is = 4, ss = 5, os = 6, Tu = Su || tr || es ? " " : "​", it = `
15
+ const xu = {}, k0 = {}, Da = {}, Mt = {}, rn = {}, qn = {}, un = {}, vu = {}, ai = {}, Un = {}, jn = {}, Ve = {}, Zi = {}, Qi = {}, A0 = {}, Ma = {}, O0 = {}, Ra = {}, I0 = {}, Ba = {}, Fa = {}, Vr = {}, P0 = {}, qa = {}, Ua = {}, ja = {}, L0 = {}, D0 = {}, M0 = {}, Gs = {}, za = {}, R0 = {}, $a = {}, Wa = {}, B0 = {}, wu = {}, Yi = {}, li = {}, F0 = {}, q0 = {}, xr = {}, vr = {}, U0 = {}, j0 = {}, z0 = {}, Ue = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, $0 = Ue && "documentMode" in document ? document.documentMode : null, Me = Ue && /Mac|iPod|iPhone|iPad/.test(navigator.platform), wt = Ue && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent), Gr = !(!Ue || !("InputEvent" in window) || $0) && "getTargetRanges" in new window.InputEvent("input"), Su = Ue && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), tr = Ue && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, W0 = Ue && /Android/.test(navigator.userAgent), Ha = Ue && /^(?=.*Chrome).*/i.test(navigator.userAgent), H0 = Ue && W0 && Ha, es = Ue && /AppleWebKit\/[\d.]+/.test(navigator.userAgent) && !Ha, nr = 1, Ct = 3, Bt = 0, Va = 1, an = 2, V0 = 0, G0 = 1, K0 = 2, Kr = 4, Jr = 8, ts = 128, J0 = 112 | (3 | Kr | Jr) | ts, ns = 1, rs = 2, us = 3, is = 4, ss = 5, os = 6, Tu = Su || tr || es ? " " : "​", it = `
16
16
 
17
17
  `, X0 = wt ? " " : Tu, Ga = "֑-߿יִ-﷽ﹰ-ﻼ", Ka = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿", Z0 = new RegExp("^[^" + Ka + "]*[" + Ga + "]"), Q0 = new RegExp("^[^" + Ga + "]*[" + Ka + "]"), Ft = { bold: 1, code: 16, highlight: ts, italic: 2, strikethrough: Kr, subscript: 32, superscript: 64, underline: Jr }, Y0 = { directionless: 1, unmergeable: 2 }, Ks = { center: rs, end: os, justify: is, left: ns, right: us, start: ss }, ef = { [rs]: "center", [os]: "end", [is]: "justify", [ns]: "left", [us]: "right", [ss]: "start" }, tf = { normal: 0, segmented: 2, token: 1 }, nf = { [V0]: "normal", [K0]: "segmented", [G0]: "token" };
18
18
  function rf(n) {
@@ -39,14 +39,14 @@ function Hu(n, e, t) {
39
39
  return u && (n === u || r && n.previousSibling === u) || r && Eu(n, t) !== void 0;
40
40
  }
41
41
  function of(n, e, t) {
42
- const r = Pe(t._window);
42
+ const r = Ie(t._window);
43
43
  let u = null, i = null;
44
44
  r !== null && r.anchorNode === n && (u = r.anchorOffset, i = r.focusOffset);
45
45
  const s = n.nodeValue;
46
46
  s !== null && hs(e, s, u, i, !1);
47
47
  }
48
48
  function af(n, e, t) {
49
- if (I(n)) {
49
+ if (P(n)) {
50
50
  const r = n.anchor.getNode();
51
51
  if (r.is(t) && n.format !== r.getFormat()) return !1;
52
52
  }
@@ -80,22 +80,22 @@ function Ja(n, e, t) {
80
80
  if (p === "characterData") r && D(b) && af(u, m, b) && of(m, b, n);
81
81
  else if (p === "childList") {
82
82
  l = !0;
83
- const _ = d.addedNodes;
84
- for (let S = 0; S < _.length; S++) {
85
- const P = _[S], C = tl(P), L = P.parentNode;
86
- if (L != null && P !== a && C === null && !Hu(P, L, n)) {
83
+ const x = d.addedNodes;
84
+ for (let S = 0; S < x.length; S++) {
85
+ const I = x[S], C = tl(I), L = I.parentNode;
86
+ if (L != null && I !== a && C === null && !Hu(I, L, n)) {
87
87
  if (wt) {
88
- const j = P.innerText || P.nodeValue;
88
+ const j = I.innerText || I.nodeValue;
89
89
  j && (f += j);
90
90
  }
91
- L.removeChild(P);
91
+ L.removeChild(I);
92
92
  }
93
93
  }
94
94
  const w = d.removedNodes, T = w.length;
95
95
  if (T > 0) {
96
96
  let S = 0;
97
- for (let P = 0; P < T; P++) {
98
- const C = w[P];
97
+ for (let I = 0; I < T; I++) {
98
+ const C = w[I];
99
99
  (Hu(C, m, n) || a === C) && (m.appendChild(C), S++);
100
100
  }
101
101
  T !== S && i.set(y, b);
@@ -212,7 +212,7 @@ function Ya(n) {
212
212
  function Cu(n) {
213
213
  return n ? n.__lexicalEditor : null;
214
214
  }
215
- function It(n) {
215
+ function Pt(n) {
216
216
  return n.isToken() || n.isSegmented();
217
217
  }
218
218
  function df(n) {
@@ -373,7 +373,7 @@ function sl(n) {
373
373
  return n.nodeType === Ct ? n.nodeValue : null;
374
374
  }
375
375
  function ds(n, e, t) {
376
- const r = Pe(e._window);
376
+ const r = Ie(e._window);
377
377
  if (r === null) return;
378
378
  const u = r.anchorNode;
379
379
  let { anchorOffset: i, focusOffset: s } = r;
@@ -410,9 +410,9 @@ function hs(n, e, t, r, u) {
410
410
  return;
411
411
  }
412
412
  const l = i.getParent(), f = ar(), h = i.getTextContentSize(), c = yt(), d = i.getKey();
413
- if (i.isToken() || c !== null && d === c && !s || I(f) && (l !== null && !l.canInsertTextBefore() && f.anchor.offset === 0 || f.anchor.key === n.__key && f.anchor.offset === 0 && !i.canInsertTextBefore() && !s || f.focus.key === n.__key && f.focus.offset === h && !i.canInsertTextAfter() && !s)) return void i.markDirty();
413
+ if (i.isToken() || c !== null && d === c && !s || P(f) && (l !== null && !l.canInsertTextBefore() && f.anchor.offset === 0 || f.anchor.key === n.__key && f.anchor.offset === 0 && !i.canInsertTextBefore() && !s || f.focus.key === n.__key && f.focus.offset === h && !i.canInsertTextAfter() && !s)) return void i.markDirty();
414
414
  const p = q();
415
- if (!I(p) || t === null || r === null) return void i.setTextContent(o);
415
+ if (!P(p) || t === null || r === null) return void i.setTextContent(o);
416
416
  if (p.setTextNodeRange(i, t, i, r), i.isSegmented()) {
417
417
  const m = ie(i.getTextContent());
418
418
  i.replace(m), i = m;
@@ -455,7 +455,7 @@ function gf() {
455
455
  const n = ue();
456
456
  Oe(Qa(n.select(0, n.getChildrenSize())));
457
457
  }
458
- function In(n, e) {
458
+ function Pn(n, e) {
459
459
  n.__lexicalClassNameCache === void 0 && (n.__lexicalClassNameCache = {});
460
460
  const t = n.__lexicalClassNameCache, r = t[e];
461
461
  if (r !== void 0) return r;
@@ -558,7 +558,7 @@ function gs(n, e, t) {
558
558
  }
559
559
  function bf(n, e, t) {
560
560
  let r = n._blockCursorElement;
561
- if (I(t) && t.isCollapsed() && t.anchor.type === "element" && e.contains(document.activeElement)) {
561
+ if (P(t) && t.isCollapsed() && t.anchor.type === "element" && e.contains(document.activeElement)) {
562
562
  const u = t.anchor, i = u.getNode(), s = u.offset;
563
563
  let o = !1, a = null;
564
564
  if (s === i.getChildrenSize())
@@ -589,7 +589,7 @@ function bf(n, e, t) {
589
589
  }
590
590
  r !== null && gs(r, n, e);
591
591
  }
592
- function Pe(n) {
592
+ function Ie(n) {
593
593
  return Ue ? (n || window).getSelection() : null;
594
594
  }
595
595
  function yf(n) {
@@ -676,7 +676,7 @@ function gi(n, e, t, r) {
676
676
  i !== void 0 && nu(i, r);
677
677
  }
678
678
  }
679
- function Pt(n, e) {
679
+ function It(n, e) {
680
680
  n.setProperty("text-align", e);
681
681
  }
682
682
  const Tf = "40px";
@@ -691,7 +691,7 @@ function cl(n, e) {
691
691
  }
692
692
  function fl(n, e) {
693
693
  const t = n.style;
694
- e === 0 ? Pt(t, "") : e === ns ? Pt(t, "left") : e === rs ? Pt(t, "center") : e === us ? Pt(t, "right") : e === is ? Pt(t, "justify") : e === ss ? Pt(t, "start") : e === os && Pt(t, "end");
694
+ e === 0 ? It(t, "") : e === ns ? It(t, "left") : e === rs ? It(t, "center") : e === us ? It(t, "right") : e === is ? It(t, "justify") : e === ss ? It(t, "start") : e === os && It(t, "end");
695
695
  }
696
696
  function ru(n, e) {
697
697
  const t = qe.get(n);
@@ -789,7 +789,7 @@ function Cf(n, e, t) {
789
789
  const h = o.element;
790
790
  if (l === 1 && f === 1) {
791
791
  const c = i.__first, d = s.__first;
792
- if (c === d) Pn(c, h);
792
+ if (c === d) In(c, h);
793
793
  else {
794
794
  const m = bi(c), g = ru(d, null);
795
795
  try {
@@ -813,29 +813,29 @@ function Cf(n, e, t) {
813
813
  const p = o.after == null && o.before == null && o.element.__lexicalLineBreak == null;
814
814
  gi(c, 0, l - 1, p ? null : h), p && (h.textContent = "");
815
815
  }
816
- } else (function(p, m, g, y, b, _) {
816
+ } else (function(p, m, g, y, b, x) {
817
817
  const w = y - 1, T = b - 1;
818
- let S, P, C = _.getFirstChild(), L = 0, j = 0;
818
+ let S, I, C = x.getFirstChild(), L = 0, j = 0;
819
819
  for (; L <= w && j <= T; ) {
820
820
  const A = m[L], B = g[j];
821
- if (A === B) C = Ku(Pn(B, _.element)), L++, j++;
821
+ if (A === B) C = Ku(In(B, x.element)), L++, j++;
822
822
  else {
823
- S === void 0 && (S = new Set(m)), P === void 0 && (P = new Set(g));
824
- const O = P.has(A), k = S.has(B);
823
+ S === void 0 && (S = new Set(m)), I === void 0 && (I = new Set(g));
824
+ const O = I.has(A), k = S.has(B);
825
825
  if (O) if (k) {
826
826
  const U = eu(pe, B);
827
- U === C ? C = Ku(Pn(B, _.element)) : (_.withBefore(C).insertChild(U), Pn(B, _.element)), L++, j++;
828
- } else ru(B, _.withBefore(C)), j++;
829
- else C = Ku(bi(A)), nu(A, _.element), L++;
827
+ U === C ? C = Ku(In(B, x.element)) : (x.withBefore(C).insertChild(U), In(B, x.element)), L++, j++;
828
+ } else ru(B, x.withBefore(C)), j++;
829
+ else C = Ku(bi(A)), nu(A, x.element), L++;
830
830
  }
831
- const v = qe.get(B);
832
- v !== null && D(v) && ($e === null && ($e = v.getFormat()), Re === "" && (Re = v.getStyle()));
831
+ const _ = qe.get(B);
832
+ _ !== null && D(_) && ($e === null && ($e = _.getFormat()), Re === "" && (Re = _.getStyle()));
833
833
  }
834
- const x = L > w, N = j > T;
835
- if (x && !N) {
834
+ const v = L > w, N = j > T;
835
+ if (v && !N) {
836
836
  const A = g[T + 1], B = A === void 0 ? null : pe.getElementByKey(A);
837
- mi(g, p, j, T, _.withBefore(B));
838
- } else N && !x && gi(m, L, w, _.element);
837
+ mi(g, p, j, T, x.withBefore(B));
838
+ } else N && !v && gi(m, L, w, x.element);
839
839
  })(s, c, d, l, f, o);
840
840
  }
841
841
  Nu(s) && (se += it), h.__lexicalTextContent = se, se = a + se;
@@ -852,7 +852,7 @@ function uu(n, e) {
852
852
  }
853
853
  return t;
854
854
  }
855
- function Pn(n, e) {
855
+ function In(n, e) {
856
856
  const t = qt.get(n);
857
857
  let r = qe.get(n);
858
858
  t !== void 0 && r !== void 0 || M(61);
@@ -908,7 +908,7 @@ function Ku(n) {
908
908
  function Ef(n, e, t, r, u, i) {
909
909
  se = "", nt = "", de = "", ll = r === an, Fr = null, pe = t, Tt = t._config, $n = t._nodes, Au = pe._listeners.mutation, di = u, hi = i, qt = n._nodeMap, qe = e._nodeMap, Hn = e._readOnly, pi = new Map(t._keyToDOMMap);
910
910
  const s = /* @__PURE__ */ new Map();
911
- return Wn = s, Pn("root", null), pe = void 0, $n = void 0, di = void 0, hi = void 0, qt = void 0, qe = void 0, Tt = void 0, pi = void 0, Wn = void 0, s;
911
+ return Wn = s, In("root", null), pe = void 0, $n = void 0, di = void 0, hi = void 0, qt = void 0, qe = void 0, Tt = void 0, pi = void 0, Wn = void 0, s;
912
912
  }
913
913
  function bi(n) {
914
914
  const e = pi.get(n);
@@ -929,7 +929,7 @@ const Qe = Object.freeze({}), yi = 30, _i = [["keydown", function(n, e) {
929
929
  }(t, u, s, i)) F(e, Ra, n);
930
930
  else if (function(o, a, l, f, h) {
931
931
  return to(o) && !f && !l && (a || h);
932
- }(t, u, r, s, i)) F(e, P0, n);
932
+ }(t, u, r, s, i)) F(e, I0, n);
933
933
  else if (/* @__PURE__ */ function(o, a, l) {
934
934
  return /* @__PURE__ */ function(f) {
935
935
  return f === "ArrowUp";
@@ -945,7 +945,7 @@ const Qe = Object.freeze({}), yi = 30, _i = [["keydown", function(n, e) {
945
945
  }(t, r)) Mn = !0, F(e, Vr, n);
946
946
  else if (/* @__PURE__ */ function(o) {
947
947
  return o === " ";
948
- }(t)) F(e, I0, n);
948
+ }(t)) F(e, P0, n);
949
949
  else if (function(o, a) {
950
950
  return Me && a && o.toLowerCase() === "o";
951
951
  }(t, u)) n.preventDefault(), Mn = !0, F(e, rn, !0);
@@ -993,7 +993,7 @@ const Qe = Object.freeze({}), yi = 30, _i = [["keydown", function(n, e) {
993
993
  }(t, r, i, u)) n.preventDefault(), F(e, Qi, void 0);
994
994
  else {
995
995
  const o = e._editorState._selection;
996
- o === null || I(o) ? !wt && uo(t, i, u) && (n.preventDefault(), F(e, li, n)) : function(a, l, f, h) {
996
+ o === null || P(o) ? !wt && uo(t, i, u) && (n.preventDefault(), F(e, li, n)) : function(a, l, f, h) {
997
997
  return !l && a.toLowerCase() === "c" && (Me ? f : h);
998
998
  }(t, r, i, u) ? (n.preventDefault(), F(e, wu, n)) : function(a, l, f, h) {
999
999
  return !l && a.toLowerCase() === "x" && (Me ? f : h);
@@ -1011,7 +1011,7 @@ const Qe = Object.freeze({}), yi = 30, _i = [["keydown", function(n, e) {
1011
1011
  }], ["compositionstart", function(n, e) {
1012
1012
  Ce(e, () => {
1013
1013
  const t = q();
1014
- if (I(t) && !e.isComposing()) {
1014
+ if (P(t) && !e.isComposing()) {
1015
1015
  const r = t.anchor, u = t.anchor.getNode();
1016
1016
  fe(r.key), (n.timeStamp < Dn + yi || r.type === "element" || !t.isCollapsed() || u.getFormat() !== t.format || D(u) && u.getStyle() !== t.style) && F(e, un, X0);
1017
1017
  }
@@ -1023,9 +1023,9 @@ const Qe = Object.freeze({}), yi = 30, _i = [["keydown", function(n, e) {
1023
1023
  }], ["input", function(n, e) {
1024
1024
  n.stopPropagation(), Ce(e, () => {
1025
1025
  const t = q(), r = n.data, u = _l(n);
1026
- if (r != null && I(t) && yl(t, u, r, n.timeStamp, !1)) {
1026
+ if (r != null && P(t) && yl(t, u, r, n.timeStamp, !1)) {
1027
1027
  Cn && (Ju(e, r), Cn = !1);
1028
- const i = t.anchor.getNode(), s = Pe(e._window);
1028
+ const i = t.anchor.getNode(), s = Ie(e._window);
1029
1029
  if (s === null) return;
1030
1030
  const o = t.isBackward(), a = o ? t.anchor.offset : t.focus.offset, l = o ? t.focus.offset : t.anchor.offset;
1031
1031
  Gr && !t.isCollapsed() && D(i) && s.anchorNode !== null && i.getTextContent().slice(0, a) + r + i.getTextContent().slice(a + l) === sl(s.anchorNode) || F(e, un, r);
@@ -1037,9 +1037,9 @@ const Qe = Object.freeze({}), yi = 30, _i = [["keydown", function(n, e) {
1037
1037
  }), Qt = null;
1038
1038
  }], ["click", function(n, e) {
1039
1039
  Ce(e, () => {
1040
- const t = q(), r = Pe(e._window), u = ar();
1040
+ const t = q(), r = Ie(e._window), u = ar();
1041
1041
  if (r) {
1042
- if (I(t)) {
1042
+ if (P(t)) {
1043
1043
  const i = t.anchor, s = i.getNode();
1044
1044
  i.type === "element" && i.offset === 0 && t.isCollapsed() && !he(s) && ue().getChildrenSize() === 1 && s.getTopLevelElementOrThrow().isEmpty() && u !== null && t.is(u) ? (r.removeAllRanges(), t.dirty = !0) : n.detail === 3 && !t.isCollapsed() && s !== t.focus.getNode() && (E(s) ? s.select(0) : s.getParentOrThrow().select(0));
1045
1045
  } else if (n.pointerType === "touch") {
@@ -1060,17 +1060,17 @@ Gr && _i.push(["beforeinput", (n, e) => function(t, r) {
1060
1060
  if (u === "deleteContentBackward") {
1061
1061
  if (s === null) {
1062
1062
  const d = ar();
1063
- if (!I(d)) return;
1063
+ if (!P(d)) return;
1064
1064
  Oe(d.clone());
1065
1065
  }
1066
- if (I(s)) {
1066
+ if (P(s)) {
1067
1067
  const d = s.anchor.key === s.focus.key;
1068
1068
  if (o = t.timeStamp, gl === "MediaLast" && o < Dn + yi && r.isComposing() && d) {
1069
1069
  if (fe(null), Dn = 0, setTimeout(() => {
1070
1070
  Ce(r, () => {
1071
1071
  fe(null);
1072
1072
  });
1073
- }, yi), I(s)) {
1073
+ }, yi), P(s)) {
1074
1074
  const p = s.anchor.getNode();
1075
1075
  p.markDirty(), s.format = p.getFormat(), D(p) || M(142), s.style = p.getStyle();
1076
1076
  }
@@ -1083,7 +1083,7 @@ Gr && _i.push(["beforeinput", (n, e) => function(t, r) {
1083
1083
  }
1084
1084
  }
1085
1085
  var o;
1086
- if (!I(s)) return;
1086
+ if (!P(s)) return;
1087
1087
  const a = t.data;
1088
1088
  Qt !== null && ds(!1, r, Qt), s.dirty && Qt === null || !s.isCollapsed() || he(s.anchor.getNode()) || i === null || s.applyDOMRange(i), Qt = null;
1089
1089
  const l = s.anchor, f = s.focus, h = l.getNode(), c = f.getNode();
@@ -1167,8 +1167,8 @@ let Dn = 0, gl = null, ml = 0, Qt = null;
1167
1167
  const iu = /* @__PURE__ */ new WeakMap();
1168
1168
  let xi = !1, vi = !1, Mn = !1, Cn = !1, bl = [0, "", 0, "root", 0];
1169
1169
  function yl(n, e, t, r, u) {
1170
- const i = n.anchor, s = n.focus, o = i.getNode(), a = re(), l = Pe(a._window), f = l !== null ? l.anchorNode : null, h = i.key, c = a.getElementByKey(h), d = t.length;
1171
- return h !== s.key || !D(o) || (!u && (!Gr || ml < r + 50) || o.isDirty() && d < 2 || ul(t)) && i.offset !== s.offset && !o.isComposing() || It(o) || o.isDirty() && d > 1 || (u || !Gr) && c !== null && !o.isComposing() && f !== Zr(c) || l !== null && e !== null && (!e.collapsed || e.startContainer !== l.anchorNode || e.startOffset !== l.anchorOffset) || o.getFormat() !== n.format || o.getStyle() !== n.style || pf(n, o);
1170
+ const i = n.anchor, s = n.focus, o = i.getNode(), a = re(), l = Ie(a._window), f = l !== null ? l.anchorNode : null, h = i.key, c = a.getElementByKey(h), d = t.length;
1171
+ return h !== s.key || !D(o) || (!u && (!Gr || ml < r + 50) || o.isDirty() && d < 2 || ul(t)) && i.offset !== s.offset && !o.isComposing() || Pt(o) || o.isDirty() && d > 1 || (u || !Gr) && c !== null && !o.isComposing() && f !== Zr(c) || l !== null && e !== null && (!e.collapsed || e.startContainer !== l.anchorNode || e.startOffset !== l.anchorOffset) || o.getFormat() !== n.format || o.getStyle() !== n.style || pf(n, o);
1172
1172
  }
1173
1173
  function lo(n, e) {
1174
1174
  return n !== null && n.nodeValue !== null && n.nodeType === Ct && e !== 0 && e !== n.nodeValue.length;
@@ -1179,7 +1179,7 @@ function co(n, e, t) {
1179
1179
  if (!t) return void Oe(null);
1180
1180
  if (!rr(e, r, i)) return;
1181
1181
  const o = q();
1182
- if (I(o)) {
1182
+ if (P(o)) {
1183
1183
  const a = o.anchor, l = a.getNode();
1184
1184
  if (o.isCollapsed()) {
1185
1185
  n.type === "Range" && n.anchorNode === n.focusNode && (o.dirty = !0);
@@ -1187,17 +1187,17 @@ function co(n, e, t) {
1187
1187
  if (h < g + 200 && a.offset === p && a.key === m) o.format = c, o.style = d;
1188
1188
  else if (a.type === "text") D(l) || M(141), o.format = l.getFormat(), o.style = l.getStyle();
1189
1189
  else if (a.type === "element" && !b) {
1190
- const _ = a.getNode();
1191
- o.style = "", _ instanceof bn && _.getChildrenSize() === 0 ? (o.format = _.getTextFormat(), o.style = _.getTextStyle()) : o.format = 0;
1190
+ const x = a.getNode();
1191
+ o.style = "", x instanceof bn && x.getChildrenSize() === 0 ? (o.format = x.getTextFormat(), o.style = x.getTextStyle()) : o.format = 0;
1192
1192
  }
1193
1193
  } else {
1194
1194
  const f = a.key, h = o.focus.key, c = o.getNodes(), d = c.length, p = o.isBackward(), m = p ? s : u, g = p ? u : s, y = p ? h : f, b = p ? f : h;
1195
- let _ = J0, w = !1;
1195
+ let x = J0, w = !1;
1196
1196
  for (let T = 0; T < d; T++) {
1197
- const S = c[T], P = S.getTextContentSize();
1198
- if (D(S) && P !== 0 && !(T === 0 && S.__key === y && m === P || T === d - 1 && S.__key === b && g === 0) && (w = !0, _ &= S.getFormat(), _ === 0)) break;
1197
+ const S = c[T], I = S.getTextContentSize();
1198
+ if (D(S) && I !== 0 && !(T === 0 && S.__key === y && m === I || T === d - 1 && S.__key === b && g === 0) && (w = !0, x &= S.getFormat(), x === 0)) break;
1199
1199
  }
1200
- o.format = w ? _ : 0;
1200
+ o.format = w ? x : 0;
1201
1201
  }
1202
1202
  }
1203
1203
  F(e, xu, void 0);
@@ -1218,7 +1218,7 @@ function Ju(n, e) {
1218
1218
  if (e[e.length - 1] === `
1219
1219
  `) {
1220
1220
  const r = q();
1221
- if (I(r)) {
1221
+ if (P(r)) {
1222
1222
  const u = r.focus;
1223
1223
  return r.anchor.set(u.key, u.offset, u.type), void F(n, Vr, null);
1224
1224
  }
@@ -1232,7 +1232,7 @@ function xl(n) {
1232
1232
  }
1233
1233
  const sn = /* @__PURE__ */ new Map();
1234
1234
  function vl(n) {
1235
- const e = n.target, t = Pe(e == null ? null : e.nodeType === 9 ? e.defaultView : e.ownerDocument.defaultView);
1235
+ const e = n.target, t = Ie(e == null ? null : e.nodeType === 9 ? e.defaultView : e.ownerDocument.defaultView);
1236
1236
  if (t === null) return;
1237
1237
  const r = Ya(t.anchorNode);
1238
1238
  if (r === null) return;
@@ -1273,16 +1273,16 @@ function wi(n, e, t) {
1273
1273
  if (u === null) return;
1274
1274
  const i = function(o) {
1275
1275
  const a = q();
1276
- if (!I(a) || !E(o)) return a;
1276
+ if (!P(a) || !E(o)) return a;
1277
1277
  const { anchor: l, focus: f } = a, h = l.getNode(), c = f.getNode();
1278
1278
  return Ln(h, o) && l.set(o.__key, 0, "element"), Ln(c, o) && f.set(o.__key, 0, "element"), a;
1279
1279
  }(n);
1280
1280
  let s = !1;
1281
- if (I(i) && e) {
1281
+ if (P(i) && e) {
1282
1282
  const o = i.anchor, a = i.focus;
1283
1283
  o.key === r && (ou(o, n, u, n.getPreviousSibling(), n.getNextSibling()), s = !0), a.key === r && (ou(a, n, u, n.getPreviousSibling(), n.getNextSibling()), s = !0);
1284
1284
  } else Ae(i) && e && n.isSelected() && n.selectPrevious();
1285
- if (I(i) && e && !s) {
1285
+ if (P(i) && e && !s) {
1286
1286
  const o = n.getIndexWithinParent();
1287
1287
  Rt(n), su(i, u, o, -1);
1288
1288
  } else Rt(n);
@@ -1322,7 +1322,7 @@ class Ou {
1322
1322
  if (t == null) return !1;
1323
1323
  const r = t.getNodes().some((u) => u.__key === this.__key);
1324
1324
  if (D(this)) return r;
1325
- if (I(t) && t.anchor.type === "element" && t.focus.type === "element") {
1325
+ if (P(t) && t.anchor.type === "element" && t.focus.type === "element") {
1326
1326
  if (t.isCollapsed()) return !1;
1327
1327
  const u = this.getParent();
1328
1328
  if (te(this) && this.isInline() && u) {
@@ -1526,7 +1526,7 @@ class Ou {
1526
1526
  const f = u.getPreviousSibling(), h = u.getNextSibling(), c = u.__prev, d = u.__next, p = u.__parent;
1527
1527
  if (wi(u, !1, !0), f === null ? a.__first = s : f.getWritable().__next = s, o.__prev = c, h === null ? a.__last = s : h.getWritable().__prev = s, o.__next = d, o.__parent = p, a.__size = l, t && (E(this) && E(o) || M(139), this.getChildren().forEach((m) => {
1528
1528
  o.append(m);
1529
- })), I(r)) {
1529
+ })), P(r)) {
1530
1530
  Oe(r);
1531
1531
  const m = r.anchor, g = r.focus;
1532
1532
  m.key === i && bo(m, o), g.key === i && bo(g, o);
@@ -1539,13 +1539,13 @@ class Ou {
1539
1539
  let o = !1, a = !1;
1540
1540
  if (i !== null) {
1541
1541
  const d = e.getIndexWithinParent();
1542
- if (Rt(u), I(s)) {
1542
+ if (Rt(u), P(s)) {
1543
1543
  const p = i.__key, m = s.anchor, g = s.focus;
1544
1544
  o = m.type === "element" && m.key === p && m.offset === d + 1, a = g.type === "element" && g.key === p && g.offset === d + 1;
1545
1545
  }
1546
1546
  }
1547
1547
  const l = this.getNextSibling(), f = this.getParentOrThrow().getWritable(), h = u.__key, c = r.__next;
1548
- if (l === null ? f.__last = h : l.getWritable().__prev = h, f.__size++, r.__next = h, u.__next = c, u.__prev = r.__key, u.__parent = r.__parent, t && I(s)) {
1548
+ if (l === null ? f.__last = h : l.getWritable().__prev = h, f.__size++, r.__next = h, u.__next = c, u.__prev = r.__key, u.__parent = r.__parent, t && P(s)) {
1549
1549
  const d = this.getIndexWithinParent();
1550
1550
  su(s, f, d + 1);
1551
1551
  const p = f.__key;
@@ -1560,7 +1560,7 @@ class Ou {
1560
1560
  const s = this.getPreviousSibling(), o = this.getParentOrThrow().getWritable(), a = r.__prev, l = this.getIndexWithinParent();
1561
1561
  s === null ? o.__first = i : s.getWritable().__next = i, o.__size++, r.__prev = i, u.__prev = a, u.__next = r.__key, u.__parent = r.__parent;
1562
1562
  const f = q();
1563
- return t && I(f) && su(f, this.getParentOrThrow(), l), e;
1563
+ return t && P(f) && su(f, this.getParentOrThrow(), l), e;
1564
1564
  }
1565
1565
  isParentRequired() {
1566
1566
  return !1;
@@ -1672,14 +1672,14 @@ function Zu(n, e) {
1672
1672
  }
1673
1673
  function wl(n, e, t, r, u) {
1674
1674
  const i = r.classList;
1675
- let s = In(u, "base");
1676
- s !== void 0 && i.add(...s), s = In(u, "underlineStrikethrough");
1675
+ let s = Pn(u, "base");
1676
+ s !== void 0 && i.add(...s), s = Pn(u, "underlineStrikethrough");
1677
1677
  let o = !1;
1678
1678
  const a = e & Jr && e & Kr;
1679
1679
  s !== void 0 && (t & Jr && t & Kr ? (o = !0, a || i.add(...s)) : a && i.remove(...s));
1680
1680
  for (const l in Ft) {
1681
1681
  const f = Ft[l];
1682
- if (s = In(u, l), s !== void 0) if (t & f) {
1682
+ if (s = Pn(u, l), s !== void 0) if (t & f) {
1683
1683
  if (o && (l === "underline" || l === "strikethrough")) {
1684
1684
  e & f && i.remove(...s);
1685
1685
  continue;
@@ -1795,7 +1795,7 @@ class Vt extends Ou {
1795
1795
  return d !== p && (t.style.cssText = p), !1;
1796
1796
  }
1797
1797
  static importDOM() {
1798
- return { "#text": () => ({ conversion: If, priority: 0 }), b: () => ({ conversion: Of, priority: 0 }), code: () => ({ conversion: gt, priority: 0 }), em: () => ({ conversion: gt, priority: 0 }), i: () => ({ conversion: gt, priority: 0 }), s: () => ({ conversion: gt, priority: 0 }), span: () => ({ conversion: Af, priority: 0 }), strong: () => ({ conversion: gt, priority: 0 }), sub: () => ({ conversion: gt, priority: 0 }), sup: () => ({ conversion: gt, priority: 0 }), u: () => ({ conversion: gt, priority: 0 }) };
1798
+ return { "#text": () => ({ conversion: Pf, priority: 0 }), b: () => ({ conversion: Of, priority: 0 }), code: () => ({ conversion: gt, priority: 0 }), em: () => ({ conversion: gt, priority: 0 }), i: () => ({ conversion: gt, priority: 0 }), s: () => ({ conversion: gt, priority: 0 }), span: () => ({ conversion: Af, priority: 0 }), strong: () => ({ conversion: gt, priority: 0 }), sub: () => ({ conversion: gt, priority: 0 }), sup: () => ({ conversion: gt, priority: 0 }), u: () => ({ conversion: gt, priority: 0 }) };
1799
1799
  }
1800
1800
  static importJSON(e) {
1801
1801
  const t = ie(e.text);
@@ -1853,7 +1853,7 @@ class Vt extends Ou {
1853
1853
  const a = s.length;
1854
1854
  r === void 0 && (r = a), u === void 0 && (u = a);
1855
1855
  } else r = 0, u = 0;
1856
- if (!I(i)) return El(o, r, o, u, "text", "text");
1856
+ if (!P(i)) return El(o, r, o, u, "text", "text");
1857
1857
  {
1858
1858
  const a = yt();
1859
1859
  a !== i.anchor.key && a !== i.focus.key || fe(o), i.setTextNodeRange(this, r, this, u);
@@ -1872,7 +1872,7 @@ class Vt extends Ou {
1872
1872
  let a = e;
1873
1873
  a < 0 && (a = o + a, a < 0 && (a = 0));
1874
1874
  const l = q();
1875
- if (u && I(l)) {
1875
+ if (u && P(l)) {
1876
1876
  const h = e + o;
1877
1877
  l.setTextNodeRange(i, h, i, h);
1878
1878
  }
@@ -1899,27 +1899,27 @@ class Vt extends Ou {
1899
1899
  const p = t.getFormat(), m = t.getStyle(), g = t.__detail;
1900
1900
  let y = !1;
1901
1901
  t.isSegmented() ? (d = ie(h), d.__format = p, d.__style = m, d.__detail = g, y = !0) : (d = t.getWritable(), d.__text = h);
1902
- const b = q(), _ = [d];
1902
+ const b = q(), x = [d];
1903
1903
  let w = h.length;
1904
1904
  for (let T = 1; T < f; T++) {
1905
- const S = o[T], P = S.length, C = ie(S).getWritable();
1905
+ const S = o[T], I = S.length, C = ie(S).getWritable();
1906
1906
  C.__format = p, C.__style = m, C.__detail = g;
1907
- const L = C.__key, j = w + P;
1908
- if (I(b)) {
1909
- const x = b.anchor, N = b.focus;
1910
- x.key === u && x.type === "text" && x.offset > w && x.offset <= j && (x.key = L, x.offset -= w, b.dirty = !0), N.key === u && N.type === "text" && N.offset > w && N.offset <= j && (N.key = L, N.offset -= w, b.dirty = !0);
1907
+ const L = C.__key, j = w + I;
1908
+ if (P(b)) {
1909
+ const v = b.anchor, N = b.focus;
1910
+ v.key === u && v.type === "text" && v.offset > w && v.offset <= j && (v.key = L, v.offset -= w, b.dirty = !0), N.key === u && N.type === "text" && N.offset > w && N.offset <= j && (N.key = L, N.offset -= w, b.dirty = !0);
1911
1911
  }
1912
- i === u && fe(L), w = j, _.push(C);
1912
+ i === u && fe(L), w = j, x.push(C);
1913
1913
  }
1914
1914
  if (c !== null) {
1915
- (function(P) {
1916
- const C = P.getPreviousSibling(), L = P.getNextSibling();
1915
+ (function(I) {
1916
+ const C = I.getPreviousSibling(), L = I.getNextSibling();
1917
1917
  C !== null && Yr(C), L !== null && Yr(L);
1918
1918
  })(this);
1919
1919
  const T = c.getWritable(), S = this.getIndexWithinParent();
1920
- y ? (T.splice(S, 0, _), this.remove()) : T.splice(S, 1, _), I(b) && su(b, c, S, f - 1);
1920
+ y ? (T.splice(S, 0, x), this.remove()) : T.splice(S, 1, x), P(b) && su(b, c, S, f - 1);
1921
1921
  }
1922
- return _;
1922
+ return x;
1923
1923
  }
1924
1924
  mergeWithSibling(e) {
1925
1925
  const t = e === this.getPreviousSibling();
@@ -1927,7 +1927,7 @@ class Vt extends Ou {
1927
1927
  const r = this.__key, u = e.__key, i = this.__text, s = i.length;
1928
1928
  yt() === u && fe(r);
1929
1929
  const o = q();
1930
- if (I(o)) {
1930
+ if (P(o)) {
1931
1931
  const h = o.anchor, c = o.focus;
1932
1932
  h !== null && h.key === u && (To(h, t, r, e, s), o.dirty = !0), c !== null && c.key === u && (To(c, t, r, e, s), o.dirty = !0);
1933
1933
  }
@@ -1948,17 +1948,17 @@ function Of(n) {
1948
1948
  return { forChild: bs(e.style, t ? void 0 : "bold"), node: null };
1949
1949
  }
1950
1950
  const go = /* @__PURE__ */ new WeakMap();
1951
- function Pf(n) {
1951
+ function If(n) {
1952
1952
  return n.nodeName === "PRE" || n.nodeType === nr && n.style !== void 0 && n.style.whiteSpace !== void 0 && n.style.whiteSpace.startsWith("pre");
1953
1953
  }
1954
- function If(n) {
1954
+ function Pf(n) {
1955
1955
  const e = n;
1956
1956
  n.parentElement === null && M(129);
1957
1957
  let t = e.textContent || "";
1958
1958
  if (function(r) {
1959
1959
  let u, i = r.parentNode;
1960
1960
  const s = [r];
1961
- for (; i !== null && (u = go.get(i)) === void 0 && !Pf(i); ) s.push(i), i = i.parentNode;
1961
+ for (; i !== null && (u = go.get(i)) === void 0 && !If(i); ) s.push(i), i = i.parentNode;
1962
1962
  const o = u === void 0 ? i : u;
1963
1963
  for (let a = 0; a < s.length; a++) go.set(s[a], o);
1964
1964
  return o;
@@ -2131,7 +2131,7 @@ function bo(n, e) {
2131
2131
  function bt(n, e, t, r) {
2132
2132
  n.key = e, n.offset = t, n.type = r;
2133
2133
  }
2134
- class Pu {
2134
+ class Iu {
2135
2135
  constructor(e) {
2136
2136
  this._cachedNodes = null, this._nodes = e, this.dirty = !1;
2137
2137
  }
@@ -2168,7 +2168,7 @@ class Pu {
2168
2168
  return this._nodes.has(e);
2169
2169
  }
2170
2170
  clone() {
2171
- return new Pu(new Set(this._nodes));
2171
+ return new Iu(new Set(this._nodes));
2172
2172
  }
2173
2173
  extract() {
2174
2174
  return this.getNodes();
@@ -2205,7 +2205,7 @@ class Pu {
2205
2205
  return t;
2206
2206
  }
2207
2207
  }
2208
- function I(n) {
2208
+ function P(n) {
2209
2209
  return n instanceof Nt;
2210
2210
  }
2211
2211
  class Nt {
@@ -2219,7 +2219,7 @@ class Nt {
2219
2219
  this._cachedNodes = e;
2220
2220
  }
2221
2221
  is(e) {
2222
- return !!I(e) && this.anchor.is(e.anchor) && this.focus.is(e.focus) && this.format === e.format && this.style === e.style;
2222
+ return !!P(e) && this.anchor.is(e.anchor) && this.focus.is(e.focus) && this.format === e.format && this.style === e.style;
2223
2223
  }
2224
2224
  isCollapsed() {
2225
2225
  return this.anchor.is(this.focus);
@@ -2293,9 +2293,9 @@ class Nt {
2293
2293
  insertText(e) {
2294
2294
  const t = this.anchor, r = this.focus, u = this.format, i = this.style;
2295
2295
  let s = t, o = r;
2296
- !this.isCollapsed() && r.isBefore(t) && (s = r, o = t), s.type === "element" && function(g, y, b, _) {
2297
- const w = g.getNode(), T = w.getChildAtIndex(g.offset), S = ie(), P = he(w) ? Ee().append(S) : S;
2298
- S.setFormat(b), S.setStyle(_), T === null ? w.append(P) : T.insertBefore(P), g.is(y) && y.set(S.__key, 0, "text"), g.set(S.__key, 0, "text");
2296
+ !this.isCollapsed() && r.isBefore(t) && (s = r, o = t), s.type === "element" && function(g, y, b, x) {
2297
+ const w = g.getNode(), T = w.getChildAtIndex(g.offset), S = ie(), I = he(w) ? Ee().append(S) : S;
2298
+ S.setFormat(b), S.setStyle(x), T === null ? w.append(I) : T.insertBefore(I), g.is(y) && y.set(S.__key, 0, "text"), g.set(S.__key, 0, "text");
2299
2299
  }(s, o, u, i);
2300
2300
  const a = s.offset;
2301
2301
  let l = o.offset;
@@ -2306,10 +2306,10 @@ class Nt {
2306
2306
  let m = f[h - 1];
2307
2307
  if (h === 1 && o.type === "element" && (l = d, o.set(s.key, l, "text")), this.isCollapsed() && a === d && (c.isSegmented() || c.isToken() || !c.canInsertTextAfter() || !p.canInsertTextAfter() && c.getNextSibling() === null)) {
2308
2308
  let g = c.getNextSibling();
2309
- if (D(g) && g.canInsertTextBefore() && !It(g) || (g = ie(), g.setFormat(u), g.setStyle(i), p.canInsertTextAfter() ? c.insertAfter(g) : p.insertAfter(g)), g.select(0, 0), c = g, e !== "") return void this.insertText(e);
2309
+ if (D(g) && g.canInsertTextBefore() && !Pt(g) || (g = ie(), g.setFormat(u), g.setStyle(i), p.canInsertTextAfter() ? c.insertAfter(g) : p.insertAfter(g)), g.select(0, 0), c = g, e !== "") return void this.insertText(e);
2310
2310
  } else if (this.isCollapsed() && a === 0 && (c.isSegmented() || c.isToken() || !c.canInsertTextBefore() || !p.canInsertTextBefore() && c.getPreviousSibling() === null)) {
2311
2311
  let g = c.getPreviousSibling();
2312
- if (D(g) && !It(g) || (g = ie(), g.setFormat(u), p.canInsertTextBefore() ? c.insertBefore(g) : p.insertBefore(g)), g.select(), c = g, e !== "") return void this.insertText(e);
2312
+ if (D(g) && !Pt(g) || (g = ie(), g.setFormat(u), p.canInsertTextBefore() ? c.insertBefore(g) : p.insertBefore(g)), g.select(), c = g, e !== "") return void this.insertText(e);
2313
2313
  } else if (c.isSegmented() && a !== d) {
2314
2314
  const g = ie(c.getTextContent());
2315
2315
  g.setFormat(u), c.replace(g), c = g;
@@ -2319,24 +2319,24 @@ class Nt {
2319
2319
  }
2320
2320
  if (h === 1) {
2321
2321
  if (c.isToken()) {
2322
- const _ = ie(e);
2323
- return _.select(), void c.replace(_);
2322
+ const x = ie(e);
2323
+ return x.select(), void c.replace(x);
2324
2324
  }
2325
2325
  const g = c.getFormat(), y = c.getStyle();
2326
2326
  if (a !== l || g === u && y === i) {
2327
2327
  if (Df(c)) {
2328
- const _ = ie(e);
2329
- return _.setFormat(u), _.setStyle(i), _.select(), void c.replace(_);
2328
+ const x = ie(e);
2329
+ return x.setFormat(u), x.setStyle(i), x.select(), void c.replace(x);
2330
2330
  }
2331
2331
  } else {
2332
2332
  if (c.getTextContent() !== "") {
2333
- const _ = ie(e);
2334
- if (_.setFormat(u), _.setStyle(i), _.select(), a === 0) c.insertBefore(_, !1);
2333
+ const x = ie(e);
2334
+ if (x.setFormat(u), x.setStyle(i), x.select(), a === 0) c.insertBefore(x, !1);
2335
2335
  else {
2336
2336
  const [w] = c.splitText(a);
2337
- w.insertAfter(_, !1);
2337
+ w.insertAfter(x, !1);
2338
2338
  }
2339
- return void (_.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length));
2339
+ return void (x.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length));
2340
2340
  }
2341
2341
  c.setFormat(u), c.setStyle(i);
2342
2342
  }
@@ -2344,9 +2344,9 @@ class Nt {
2344
2344
  c = c.spliceText(a, b, e, !0), c.getTextContent() === "" ? c.remove() : this.anchor.type === "text" && (c.isComposing() ? this.anchor.offset -= e.length : (this.format = g, this.style = y));
2345
2345
  } else {
2346
2346
  const g = /* @__PURE__ */ new Set([...c.getParentKeys(), ...m.getParentKeys()]), y = E(c) ? c : c.getParentOrThrow();
2347
- let b = E(m) ? m : m.getParentOrThrow(), _ = m;
2347
+ let b = E(m) ? m : m.getParentOrThrow(), x = m;
2348
2348
  if (!y.is(b) && b.isInline()) do
2349
- _ = b, b = b.getParentOrThrow();
2349
+ x = b, b = b.getParentOrThrow();
2350
2350
  while (b.isInline());
2351
2351
  if (o.type === "text" && (l !== 0 || m.getTextContent() === "") || o.type === "element" && m.getIndexWithinParent() < l) if (D(m) && !m.isToken() && l !== m.getTextContentSize()) {
2352
2352
  if (m.isSegmented()) {
@@ -2359,17 +2359,17 @@ class Nt {
2359
2359
  C.canBeEmpty() || C.getChildrenSize() !== 1 ? m.remove() : C.remove();
2360
2360
  }
2361
2361
  else g.add(m.__key);
2362
- const w = b.getChildren(), T = new Set(f), S = y.is(b), P = y.isInline() && c.getNextSibling() === null ? y : c;
2362
+ const w = b.getChildren(), T = new Set(f), S = y.is(b), I = y.isInline() && c.getNextSibling() === null ? y : c;
2363
2363
  for (let C = w.length - 1; C >= 0; C--) {
2364
2364
  const L = w[C];
2365
2365
  if (L.is(c) || E(L) && L.isParentOf(c)) break;
2366
- L.isAttached() && (!T.has(L) || L.is(_) ? S || P.insertAfter(L, !1) : L.remove());
2366
+ L.isAttached() && (!T.has(L) || L.is(x) ? S || I.insertAfter(L, !1) : L.remove());
2367
2367
  }
2368
2368
  if (!S) {
2369
2369
  let C = b, L = null;
2370
2370
  for (; C !== null; ) {
2371
- const j = C.getChildren(), x = j.length;
2372
- (x === 0 || j[x - 1].is(L)) && (g.delete(C.__key), L = C), C = C.getParent();
2371
+ const j = C.getChildren(), v = j.length;
2372
+ (v === 0 || j[v - 1].is(L)) && (g.delete(C.__key), L = C), C = C.getParent();
2373
2373
  }
2374
2374
  }
2375
2375
  if (c.isToken()) if (a === d) c.select();
@@ -2394,7 +2394,7 @@ class Nt {
2394
2394
  });
2395
2395
  const f = (h, c) => {
2396
2396
  if (h.getTextContent() === "") h.remove();
2397
- else if (c !== 0 && It(h)) {
2397
+ else if (c !== 0 && Pt(h)) {
2398
2398
  const d = ie(h.getTextContent());
2399
2399
  return d.setFormat(h.getFormat()), d.setStyle(h.getStyle()), h.replace(d);
2400
2400
  }
@@ -2432,28 +2432,28 @@ class Nt {
2432
2432
  const b = h.type === "text" ? h.offset : y.getTextContentSize();
2433
2433
  if (d.is(y)) {
2434
2434
  if (p === b) return;
2435
- if (It(d) || p === 0 && b === d.getTextContentSize()) d.setFormat(m);
2435
+ if (Pt(d) || p === 0 && b === d.getTextContentSize()) d.setFormat(m);
2436
2436
  else {
2437
2437
  const w = d.splitText(p, b), T = p === 0 ? w[0] : w[1];
2438
2438
  T.setFormat(m), f.type === "text" && f.set(T.__key, 0, "text"), h.type === "text" && h.set(T.__key, b - p, "text");
2439
2439
  }
2440
2440
  return void (this.format = m);
2441
2441
  }
2442
- p === 0 || It(d) || ([, d] = d.splitText(p), p = 0), d.setFormat(m);
2443
- const _ = y.getFormatFlags(e, m);
2444
- b > 0 && (b === y.getTextContentSize() || It(y) || ([y] = y.splitText(b)), y.setFormat(_));
2442
+ p === 0 || Pt(d) || ([, d] = d.splitText(p), p = 0), d.setFormat(m);
2443
+ const x = y.getFormatFlags(e, m);
2444
+ b > 0 && (b === y.getTextContentSize() || Pt(y) || ([y] = y.splitText(b)), y.setFormat(x));
2445
2445
  for (let w = c + 1; w < g; w++) {
2446
- const T = u[w], S = T.getFormatFlags(e, _);
2446
+ const T = u[w], S = T.getFormatFlags(e, x);
2447
2447
  T.setFormat(S);
2448
2448
  }
2449
- f.type === "text" && f.set(d.__key, p, "text"), h.type === "text" && h.set(y.__key, b, "text"), this.format = m | _;
2449
+ f.type === "text" && f.set(d.__key, p, "text"), h.type === "text" && h.set(y.__key, b, "text"), this.format = m | x;
2450
2450
  }
2451
2451
  insertNodes(e) {
2452
2452
  if (e.length === 0) return;
2453
2453
  if (this.anchor.key === "root") {
2454
2454
  this.insertParagraph();
2455
2455
  const p = q();
2456
- return I(p) || M(134), p.insertNodes(e);
2456
+ return P(p) || M(134), p.insertNodes(e);
2457
2457
  }
2458
2458
  const t = (this.isBackward() ? this.focus : this.anchor).getNode(), r = Tn(t, mt), u = e[e.length - 1];
2459
2459
  if (E(r) && "__language" in r) {
@@ -2473,9 +2473,9 @@ class Nt {
2473
2473
  const m = Ee();
2474
2474
  let g = null;
2475
2475
  for (let y = 0; y < p.length; y++) {
2476
- const b = p[y], _ = St(b);
2477
- if (_ || te(b) && b.isInline() || E(b) && b.isInline() || D(b) || b.isParentRequired()) {
2478
- if (g === null && (g = b.createParentElementNode(), m.append(g), _)) continue;
2476
+ const b = p[y], x = St(b);
2477
+ if (x || te(b) && b.isInline() || E(b) && b.isInline() || D(b) || b.isParentRequired()) {
2478
+ if (g === null && (g = b.createParentElementNode(), m.append(g), x)) continue;
2479
2479
  g !== null && g.append(b);
2480
2480
  } else m.append(b), g = null;
2481
2481
  }
@@ -2486,10 +2486,10 @@ class Nt {
2486
2486
  E(h = f) && mt(h) && !h.isEmpty() && E(r) && (!r.isEmpty() || r.canMergeWhenEmpty()) && (E(r) || M(211, t.constructor.name, t.getType()), r.append(...f.getChildren()), f = o[1]), f && (r === null && M(212, t.constructor.name, t.getType()), function(p, m, g) {
2487
2487
  const y = m.getParentOrThrow().getLastChild();
2488
2488
  let b = m;
2489
- const _ = [m];
2490
- for (; b !== y; ) b.getNextSibling() || M(140), b = b.getNextSibling(), _.push(b);
2489
+ const x = [m];
2490
+ for (; b !== y; ) b.getNextSibling() || M(140), b = b.getNextSibling(), x.push(b);
2491
2491
  let w = p;
2492
- for (const T of _) w = w.insertAfter(T);
2492
+ for (const T of x) w = w.insertAfter(T);
2493
2493
  }(r, f));
2494
2494
  const c = Tn(s, mt);
2495
2495
  a && E(c) && (a.canMergeWhenEmpty() || mt(l)) && (c.append(...a.getChildren()), a.remove()), E(r) && r.isEmpty() && r.remove(), s.selectEnd();
@@ -2554,7 +2554,7 @@ class Nt {
2554
2554
  return E(c) ? (m = c.__key, p = t ? c.getChildrenSize() : 0) : (p = o.getIndexWithinParent(), m = d.__key, t || p++), u.set(m, p, "element"), void (s && i.set(m, p, "element"));
2555
2555
  }
2556
2556
  }
2557
- const a = re(), l = Pe(a._window);
2557
+ const a = re(), l = Ie(a._window);
2558
2558
  if (!l) return;
2559
2559
  const f = a._blockCursorElement, h = a._rootElement;
2560
2560
  if (h === null || f === null || !E(o) || o.isInline() || o.canBeEmpty() || gs(f, a, h), function(c, d, p, m) {
@@ -2565,8 +2565,8 @@ class Nt {
2565
2565
  const m = this.getNodes(), g = [];
2566
2566
  let y = !1;
2567
2567
  for (let b = 0; b < m.length; b++) {
2568
- const _ = m[b];
2569
- Ln(_, p) ? g.push(_) : y = !0;
2568
+ const x = m[b];
2569
+ Ln(x, p) ? g.push(x) : y = !0;
2570
2570
  }
2571
2571
  if (y && g.length > 0) if (t) {
2572
2572
  const b = g[0];
@@ -2576,8 +2576,8 @@ class Nt {
2576
2576
  E(b) ? b.selectEnd() : b.getParentOrThrow().selectEnd();
2577
2577
  }
2578
2578
  l.anchorNode === c.startContainer && l.anchorOffset === c.startOffset || function(b) {
2579
- const _ = b.focus, w = b.anchor, T = w.key, S = w.offset, P = w.type;
2580
- bt(w, _.key, _.offset, _.type), bt(_, T, S, P), b._cachedNodes = null;
2579
+ const x = b.focus, w = b.anchor, T = w.key, S = w.offset, I = w.type;
2580
+ bt(w, x.key, x.offset, x.type), bt(x, T, S, I), b._cachedNodes = null;
2581
2581
  }(this);
2582
2582
  }
2583
2583
  }
@@ -2621,8 +2621,8 @@ class Nt {
2621
2621
  (function(a, l) {
2622
2622
  const f = a.anchor, h = a.focus, c = f.getNode(), d = h.getNode();
2623
2623
  if (c === d && f.type === "text" && h.type === "text") {
2624
- const p = f.offset, m = h.offset, g = p < m, y = g ? p : m, b = g ? m : p, _ = b - 1;
2625
- y !== _ && (ul(c.getTextContent().slice(y, b)) || (l ? h.offset = _ : f.offset = _));
2624
+ const p = f.offset, m = h.offset, g = p < m, y = g ? p : m, b = g ? m : p, x = b - 1;
2625
+ y !== x && (ul(c.getTextContent().slice(y, b)) || (l ? h.offset = x : f.offset = x));
2626
2626
  }
2627
2627
  })(this, e);
2628
2628
  }
@@ -2658,7 +2658,7 @@ class Nt {
2658
2658
  }
2659
2659
  }
2660
2660
  function Ae(n) {
2661
- return n instanceof Pu;
2661
+ return n instanceof Iu;
2662
2662
  }
2663
2663
  function yo(n) {
2664
2664
  const e = n.offset;
@@ -2706,8 +2706,8 @@ function xo(n, e, t, r) {
2706
2706
  d === null && M(214), [c, i] = c.getDOMSlot(d).resolveChildIndex(c, d, n, e), E(c) || M(215), s && i >= c.getChildrenSize() && (i = Math.max(0, c.getChildrenSize() - 1));
2707
2707
  let m = c.getChildAtIndex(i);
2708
2708
  if (E(m) && function(g, y, b) {
2709
- const _ = g.getParent();
2710
- return b === null || _ === null || !_.canBeEmpty() || _ !== b.getNode();
2709
+ const x = g.getParent();
2710
+ return b === null || x === null || !x.canBeEmpty() || x !== b.getNode();
2711
2711
  }(m, 0, t)) {
2712
2712
  const g = s ? m.getLastDescendant() : m.getFirstDescendant();
2713
2713
  g === null ? c = m : (m = g, c = E(m) ? m : m.getParentOrThrow()), i = 0;
@@ -2746,7 +2746,7 @@ function Tl(n, e, t) {
2746
2746
  const r = n.isBefore(e), u = n.is(e);
2747
2747
  vo(n, r, u), vo(e, !r, u), u && (e.key = n.key, e.offset = n.offset, e.type = n.type);
2748
2748
  const i = re();
2749
- if (i.isComposing() && i._compositionKey !== n.key && I(t)) {
2749
+ if (i.isComposing() && i._compositionKey !== n.key && P(t)) {
2750
2750
  const s = t.anchor, o = t.focus;
2751
2751
  bt(n, s.key, s.offset, s.type), bt(e, o.key, o.offset, o.type);
2752
2752
  }
@@ -2754,9 +2754,9 @@ function Tl(n, e, t) {
2754
2754
  }
2755
2755
  function Cl(n, e, t, r, u, i) {
2756
2756
  if (n === null || t === null || !rr(u, n, t)) return null;
2757
- const s = xo(n, e, I(i) ? i.anchor : null, u);
2757
+ const s = xo(n, e, P(i) ? i.anchor : null, u);
2758
2758
  if (s === null) return null;
2759
- const o = xo(t, r, I(i) ? i.focus : null, u);
2759
+ const o = xo(t, r, P(i) ? i.focus : null, u);
2760
2760
  if (o === null) return null;
2761
2761
  if (s.type === "element" && o.type === "element") {
2762
2762
  const a = tn(n), l = tn(t);
@@ -2776,20 +2776,20 @@ function Rf() {
2776
2776
  return new Nt(n, e, 0, "");
2777
2777
  }
2778
2778
  function wo() {
2779
- return new Pu(/* @__PURE__ */ new Set());
2779
+ return new Iu(/* @__PURE__ */ new Set());
2780
2780
  }
2781
2781
  function ys(n, e, t, r) {
2782
2782
  const u = t._window;
2783
2783
  if (u === null) return null;
2784
2784
  const i = r || u.event, s = i ? i.type : void 0, o = s === "selectionchange", a = !ci && (o || s === "beforeinput" || s === "compositionstart" || s === "compositionend" || s === "click" && i && i.detail === 3 || s === "drop" || s === void 0);
2785
2785
  let l, f, h, c;
2786
- if (I(n) && !a) return n.clone();
2786
+ if (P(n) && !a) return n.clone();
2787
2787
  if (e === null) return null;
2788
- if (l = e.anchorNode, f = e.focusNode, h = e.anchorOffset, c = e.focusOffset, o && I(n) && !rr(t, l, f)) return n.clone();
2788
+ if (l = e.anchorNode, f = e.focusNode, h = e.anchorOffset, c = e.focusOffset, o && P(n) && !rr(t, l, f)) return n.clone();
2789
2789
  const d = Cl(l, h, f, c, t, n);
2790
2790
  if (d === null) return null;
2791
2791
  const [p, m] = d;
2792
- return new Nt(p, m, I(n) ? n.format : 0, I(n) ? n.style : "");
2792
+ return new Nt(p, m, P(n) ? n.format : 0, P(n) ? n.style : "");
2793
2793
  }
2794
2794
  function q() {
2795
2795
  return lt()._selection;
@@ -2856,28 +2856,28 @@ function To(n, e, t, r, u) {
2856
2856
  function Bf(n, e, t, r, u, i, s) {
2857
2857
  const o = r.anchorNode, a = r.focusNode, l = r.anchorOffset, f = r.focusOffset, h = document.activeElement;
2858
2858
  if (u.has("collaboration") && h !== i || h !== null && ls(h)) return;
2859
- if (!I(e)) return void (n !== null && rr(t, o, a) && r.removeAllRanges());
2860
- const c = e.anchor, d = e.focus, p = c.key, m = d.key, g = eu(t, p), y = eu(t, m), b = c.offset, _ = d.offset, w = e.format, T = e.style, S = e.isCollapsed();
2861
- let P = g, C = y, L = !1;
2859
+ if (!P(e)) return void (n !== null && rr(t, o, a) && r.removeAllRanges());
2860
+ const c = e.anchor, d = e.focus, p = c.key, m = d.key, g = eu(t, p), y = eu(t, m), b = c.offset, x = d.offset, w = e.format, T = e.style, S = e.isCollapsed();
2861
+ let I = g, C = y, L = !1;
2862
2862
  if (c.type === "text") {
2863
- P = Zr(g);
2864
- const v = c.getNode();
2865
- L = v.getFormat() !== w || v.getStyle() !== T;
2866
- } else I(n) && n.anchor.type === "text" && (L = !0);
2867
- var j, x, N, A, B;
2868
- if (d.type === "text" && (C = Zr(y)), P !== null && C !== null && (S && (n === null || L || I(n) && (n.format !== w || n.style !== T)) && (j = w, x = T, N = b, A = p, B = performance.now(), bl = [j, x, N, A, B]), l !== b || f !== _ || o !== P || a !== C || r.type === "Range" && S || (h !== null && i.contains(h) || i.focus({ preventScroll: !0 }), c.type === "element"))) {
2863
+ I = Zr(g);
2864
+ const _ = c.getNode();
2865
+ L = _.getFormat() !== w || _.getStyle() !== T;
2866
+ } else P(n) && n.anchor.type === "text" && (L = !0);
2867
+ var j, v, N, A, B;
2868
+ if (d.type === "text" && (C = Zr(y)), I !== null && C !== null && (S && (n === null || L || P(n) && (n.format !== w || n.style !== T)) && (j = w, v = T, N = b, A = p, B = performance.now(), bl = [j, v, N, A, B]), l !== b || f !== x || o !== I || a !== C || r.type === "Range" && S || (h !== null && i.contains(h) || i.focus({ preventScroll: !0 }), c.type === "element"))) {
2869
2869
  try {
2870
- r.setBaseAndExtent(P, b, C, _);
2870
+ r.setBaseAndExtent(I, b, C, x);
2871
2871
  } catch {
2872
2872
  }
2873
2873
  if (!u.has("skip-scroll-into-view") && e.isCollapsed() && i !== null && i === document.activeElement) {
2874
- const v = e instanceof Nt && e.anchor.type === "element" ? P.childNodes[b] || null : r.rangeCount > 0 ? r.getRangeAt(0) : null;
2875
- if (v !== null) {
2874
+ const _ = e instanceof Nt && e.anchor.type === "element" ? I.childNodes[b] || null : r.rangeCount > 0 ? r.getRangeAt(0) : null;
2875
+ if (_ !== null) {
2876
2876
  let O;
2877
- if (v instanceof Text) {
2877
+ if (_ instanceof Text) {
2878
2878
  const k = document.createRange();
2879
- k.selectNode(v), O = k.getBoundingClientRect();
2880
- } else O = v.getBoundingClientRect();
2879
+ k.selectNode(_), O = k.getBoundingClientRect();
2880
+ } else O = _.getBoundingClientRect();
2881
2881
  (function(k, U, R) {
2882
2882
  const W = R.ownerDocument, Le = W.defaultView;
2883
2883
  if (Le === null) return;
@@ -2914,7 +2914,7 @@ function Yu(n) {
2914
2914
  let e = n;
2915
2915
  n.isCollapsed() || e.removeText();
2916
2916
  const t = q();
2917
- I(t) && (e = t), I(e) || M(161);
2917
+ P(t) && (e = t), P(e) || M(161);
2918
2918
  const r = e.anchor;
2919
2919
  let u = r.getNode(), i = r.offset;
2920
2920
  for (; !mt(u); ) [u, i] = Ff(u, i);
@@ -3026,8 +3026,8 @@ function _t(n, e) {
3026
3026
  if (n._pendingEditorState = null, n._editorState = t, !u && a && d !== null) {
3027
3027
  le = n, ae = t, xe = !1, n._updating = !0;
3028
3028
  try {
3029
- const S = n._dirtyType, P = n._dirtyElements, C = n._dirtyLeaves;
3030
- d.disconnect(), p = Ef(i, t, n, S, P, C);
3029
+ const S = n._dirtyType, I = n._dirtyElements, C = n._dirtyLeaves;
3030
+ d.disconnect(), p = Ef(i, t, n, S, I, C);
3031
3031
  } catch (S) {
3032
3032
  if (S instanceof Error && n._onError(S), ei) throw S;
3033
3033
  return Ml(n, null, r, t), Za(n), n._dirtyType = an, ei = !0, _t(n, i), void (ei = !1);
@@ -3036,15 +3036,15 @@ function _t(n, e) {
3036
3036
  }
3037
3037
  }
3038
3038
  t._readOnly || (t._readOnly = !0);
3039
- const m = n._dirtyLeaves, g = n._dirtyElements, y = n._normalizedNodes, b = n._updateTags, _ = n._deferred;
3040
- a && (n._dirtyType = Bt, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements = /* @__PURE__ */ new Map(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set()), function(S, P) {
3039
+ const m = n._dirtyLeaves, g = n._dirtyElements, y = n._normalizedNodes, b = n._updateTags, x = n._deferred;
3040
+ a && (n._dirtyType = Bt, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements = /* @__PURE__ */ new Map(), n._normalizedNodes = /* @__PURE__ */ new Set(), n._updateTags = /* @__PURE__ */ new Set()), function(S, I) {
3041
3041
  const C = S._decorators;
3042
3042
  let L = S._pendingDecorators || C;
3043
- const j = P._nodeMap;
3044
- let x;
3045
- for (x in L) j.has(x) || (L === C && (L = nl(S)), delete L[x]);
3043
+ const j = I._nodeMap;
3044
+ let v;
3045
+ for (v in L) j.has(v) || (L === C && (L = nl(S)), delete L[v]);
3046
3046
  }(n, t);
3047
- const w = u ? null : Pe(n._window);
3047
+ const w = u ? null : Ie(n._window);
3048
3048
  if (n._editable && w !== null && (a || o === null || o.dirty)) {
3049
3049
  le = n, ae = t;
3050
3050
  try {
@@ -3057,34 +3057,34 @@ function _t(n, e) {
3057
3057
  le = h, ae = l;
3058
3058
  }
3059
3059
  }
3060
- p !== null && function(S, P, C, L, j) {
3061
- const x = Array.from(S._listeners.mutation), N = x.length;
3060
+ p !== null && function(S, I, C, L, j) {
3061
+ const v = Array.from(S._listeners.mutation), N = v.length;
3062
3062
  for (let A = 0; A < N; A++) {
3063
- const [B, v] = x[A], O = P.get(v);
3063
+ const [B, _] = v[A], O = I.get(_);
3064
3064
  O !== void 0 && B(O, { dirtyLeaves: L, prevEditorState: j, updateTags: C });
3065
3065
  }
3066
- }(n, p, b, m, i), I(o) || o === null || s !== null && s.is(o) || n.dispatchCommand(xu, void 0);
3066
+ }(n, p, b, m, i), P(o) || o === null || s !== null && s.is(o) || n.dispatchCommand(xu, void 0);
3067
3067
  const T = n._pendingDecorators;
3068
- T !== null && (n._decorators = T, n._pendingDecorators = null, Rn("decorator", n, !0, T)), function(S, P, C) {
3069
- const L = Ys(P), j = Ys(C);
3068
+ T !== null && (n._decorators = T, n._pendingDecorators = null, Rn("decorator", n, !0, T)), function(S, I, C) {
3069
+ const L = Ys(I), j = Ys(C);
3070
3070
  L !== j && Rn("textcontent", S, !0, j);
3071
- }(n, e || i, t), Rn("update", n, !0, { dirtyElements: g, dirtyLeaves: m, editorState: t, normalizedNodes: y, prevEditorState: e || i, tags: b }), function(S, P) {
3072
- if (S._deferred = [], P.length !== 0) {
3071
+ }(n, e || i, t), Rn("update", n, !0, { dirtyElements: g, dirtyLeaves: m, editorState: t, normalizedNodes: y, prevEditorState: e || i, tags: b }), function(S, I) {
3072
+ if (S._deferred = [], I.length !== 0) {
3073
3073
  const C = S._updating;
3074
3074
  S._updating = !0;
3075
3075
  try {
3076
- for (let L = 0; L < P.length; L++) P[L]();
3076
+ for (let L = 0; L < I.length; L++) I[L]();
3077
3077
  } finally {
3078
3078
  S._updating = C;
3079
3079
  }
3080
3080
  }
3081
- }(n, _), function(S) {
3082
- const P = S._updates;
3083
- if (P.length !== 0) {
3084
- const C = P.shift();
3081
+ }(n, x), function(S) {
3082
+ const I = S._updates;
3083
+ if (I.length !== 0) {
3084
+ const C = I.shift();
3085
3085
  if (C) {
3086
3086
  const [L, j] = C;
3087
- Pl(S, L, j);
3087
+ Il(S, L, j);
3088
3088
  }
3089
3089
  }
3090
3090
  }(n);
@@ -3139,7 +3139,7 @@ function Ao(n, e) {
3139
3139
  }
3140
3140
  return r;
3141
3141
  }
3142
- function Pl(n, e, t) {
3142
+ function Il(n, e, t) {
3143
3143
  const r = n._updateTags;
3144
3144
  let u, i = !1, s = !1;
3145
3145
  t !== void 0 && (u = t.onUpdate, Al(n, t.tag), i = t.skipTransforms || !1, s = t.discrete || !1), u && n._deferred.push(u);
@@ -3150,35 +3150,35 @@ function Pl(n, e, t) {
3150
3150
  ae = a, xe = !1, n._updating = !0, le = n;
3151
3151
  try {
3152
3152
  l && (n._headless ? o._selection !== null && (a._selection = o._selection.clone()) : a._selection = function(y) {
3153
- const b = y.getEditorState()._selection, _ = Pe(y._window);
3154
- return I(b) || b == null ? ys(b, _, y, null) : b.clone();
3153
+ const b = y.getEditorState()._selection, x = Ie(y._window);
3154
+ return P(b) || b == null ? ys(b, x, y, null) : b.clone();
3155
3155
  }(n));
3156
3156
  const m = n._compositionKey;
3157
3157
  e(), i = Ao(n, i), function(y, b) {
3158
- const _ = b.getEditorState()._selection, w = y._selection;
3159
- if (I(w)) {
3158
+ const x = b.getEditorState()._selection, w = y._selection;
3159
+ if (P(w)) {
3160
3160
  const T = w.anchor, S = w.focus;
3161
- let P;
3162
- if (T.type === "text" && (P = T.getNode(), P.selectionTransform(_, w)), S.type === "text") {
3161
+ let I;
3162
+ if (T.type === "text" && (I = T.getNode(), I.selectionTransform(x, w)), S.type === "text") {
3163
3163
  const C = S.getNode();
3164
- P !== C && C.selectionTransform(_, w);
3164
+ I !== C && C.selectionTransform(x, w);
3165
3165
  }
3166
3166
  }
3167
3167
  }(a, n), n._dirtyType !== Bt && (i ? function(y, b) {
3168
- const _ = b._dirtyLeaves, w = y._nodeMap;
3169
- for (const T of _) {
3168
+ const x = b._dirtyLeaves, w = y._nodeMap;
3169
+ for (const T of x) {
3170
3170
  const S = w.get(T);
3171
3171
  D(S) && S.isAttached() && S.isSimpleText() && !S.isUnmergeable() && Zs(S);
3172
3172
  }
3173
3173
  }(a, n) : function(y, b) {
3174
- const _ = b._dirtyLeaves, w = b._dirtyElements, T = y._nodeMap, S = yt(), P = /* @__PURE__ */ new Map();
3175
- let C = _, L = C.size, j = w, x = j.size;
3176
- for (; L > 0 || x > 0; ) {
3174
+ const x = b._dirtyLeaves, w = b._dirtyElements, T = y._nodeMap, S = yt(), I = /* @__PURE__ */ new Map();
3175
+ let C = x, L = C.size, j = w, v = j.size;
3176
+ for (; L > 0 || v > 0; ) {
3177
3177
  if (L > 0) {
3178
3178
  b._dirtyLeaves = /* @__PURE__ */ new Set();
3179
3179
  for (const N of C) {
3180
3180
  const A = T.get(N);
3181
- D(A) && A.isAttached() && A.isSimpleText() && !A.isUnmergeable() && Zs(A), A !== void 0 && No(A, S) && Eo(b, A, P), _.add(N);
3181
+ D(A) && A.isAttached() && A.isSimpleText() && !A.isUnmergeable() && Zs(A), A !== void 0 && No(A, S) && Eo(b, A, I), x.add(N);
3182
3182
  }
3183
3183
  if (C = b._dirtyLeaves, L = C.size, L > 0) {
3184
3184
  qr++;
@@ -3189,28 +3189,28 @@ function Pl(n, e, t) {
3189
3189
  for (const N of j) {
3190
3190
  const A = N[0], B = N[1];
3191
3191
  if (A !== "root" && !B) continue;
3192
- const v = T.get(A);
3193
- v !== void 0 && No(v, S) && Eo(b, v, P), w.set(A, B);
3192
+ const _ = T.get(A);
3193
+ _ !== void 0 && No(_, S) && Eo(b, _, I), w.set(A, B);
3194
3194
  }
3195
- C = b._dirtyLeaves, L = C.size, j = b._dirtyElements, x = j.size, qr++;
3195
+ C = b._dirtyLeaves, L = C.size, j = b._dirtyElements, v = j.size, qr++;
3196
3196
  }
3197
- b._dirtyLeaves = _, b._dirtyElements = w;
3198
- }(a, n), Ao(n), function(y, b, _, w) {
3199
- const T = y._nodeMap, S = b._nodeMap, P = [];
3197
+ b._dirtyLeaves = x, b._dirtyElements = w;
3198
+ }(a, n), Ao(n), function(y, b, x, w) {
3199
+ const T = y._nodeMap, S = b._nodeMap, I = [];
3200
3200
  for (const [C] of w) {
3201
3201
  const L = S.get(C);
3202
- L !== void 0 && (L.isAttached() || (E(L) && al(L, C, T, S, P, w), T.has(C) || w.delete(C), P.push(C)));
3202
+ L !== void 0 && (L.isAttached() || (E(L) && al(L, C, T, S, I, w), T.has(C) || w.delete(C), I.push(C)));
3203
3203
  }
3204
- for (const C of P) S.delete(C);
3205
- for (const C of _) {
3204
+ for (const C of I) S.delete(C);
3205
+ for (const C of x) {
3206
3206
  const L = S.get(C);
3207
- L === void 0 || L.isAttached() || (T.has(C) || _.delete(C), S.delete(C));
3207
+ L === void 0 || L.isAttached() || (T.has(C) || x.delete(C), S.delete(C));
3208
3208
  }
3209
3209
  }(o, a, n._dirtyLeaves, n._dirtyElements)), m !== n._compositionKey && (a._flushSync = !0);
3210
3210
  const g = a._selection;
3211
- if (I(g)) {
3212
- const y = a._nodeMap, b = g.anchor.key, _ = g.focus.key;
3213
- y.get(b) !== void 0 && y.get(_) !== void 0 || M(19);
3211
+ if (P(g)) {
3212
+ const y = a._nodeMap, b = g.anchor.key, x = g.focus.key;
3213
+ y.get(b) !== void 0 && y.get(x) !== void 0 || M(19);
3214
3214
  } else Ae(g) && g._nodes.size === 0 && (a._selection = null);
3215
3215
  } catch (m) {
3216
3216
  return m instanceof Error && n._onError(m), n._pendingEditorState = o, n._dirtyType = an, n._cloneNotNeeded.clear(), n._dirtyLeaves = /* @__PURE__ */ new Set(), n._dirtyElements.clear(), void _t(n);
@@ -3228,7 +3228,7 @@ function Pl(n, e, t) {
3228
3228
  }) : (a._flushSync = !1, l && (r.clear(), n._deferred = [], n._pendingEditorState = null));
3229
3229
  }
3230
3230
  function Ce(n, e, t) {
3231
- n._updating ? n._updates.push([e, t]) : Pl(n, e, t);
3231
+ n._updating ? n._updates.push([e, t]) : Il(n, e, t);
3232
3232
  }
3233
3233
  class Bn {
3234
3234
  constructor(e, t, r) {
@@ -3482,7 +3482,7 @@ class Gt extends Ou {
3482
3482
  }
3483
3483
  u === void 0 && (u = s), i === void 0 && (i = s);
3484
3484
  const o = this.__key;
3485
- return I(r) ? (r.anchor.set(o, u, "element"), r.focus.set(o, i, "element"), r.dirty = !0, r) : El(o, u, o, i, "element", "element");
3485
+ return P(r) ? (r.anchor.set(o, u, "element"), r.focus.set(o, i, "element"), r.dirty = !0, r) : El(o, u, o, i, "element", "element");
3486
3486
  }
3487
3487
  selectStart() {
3488
3488
  const e = this.getFirstDescendant();
@@ -3555,9 +3555,9 @@ class Gt extends Ou {
3555
3555
  }
3556
3556
  if (s.__size = c, l.length) {
3557
3557
  const p = q();
3558
- if (I(p)) {
3558
+ if (P(p)) {
3559
3559
  const m = new Set(l), g = new Set(a), { anchor: y, focus: b } = p;
3560
- Po(y, m, g) && ou(y, y.getNode(), this, h, f), Po(b, m, g) && ou(b, b.getNode(), this, h, f), c !== 0 || this.canBeEmpty() || st(this) || this.remove();
3560
+ Io(y, m, g) && ou(y, y.getNode(), this, h, f), Io(b, m, g) && ou(b, b.getNode(), this, h, f), c !== 0 || this.canBeEmpty() || st(this) || this.remove();
3561
3561
  }
3562
3562
  }
3563
3563
  return s;
@@ -3630,7 +3630,7 @@ class Gt extends Ou {
3630
3630
  function E(n) {
3631
3631
  return n instanceof Gt;
3632
3632
  }
3633
- function Po(n, e, t) {
3633
+ function Io(n, e, t) {
3634
3634
  let r = n.getNode();
3635
3635
  for (; r; ) {
3636
3636
  const u = r.__key;
@@ -3639,7 +3639,7 @@ function Po(n, e, t) {
3639
3639
  }
3640
3640
  return !1;
3641
3641
  }
3642
- class Il extends Ou {
3642
+ class Pl extends Ou {
3643
3643
  constructor(e) {
3644
3644
  super(e);
3645
3645
  }
@@ -3657,7 +3657,7 @@ class Il extends Ou {
3657
3657
  }
3658
3658
  }
3659
3659
  function te(n) {
3660
- return n instanceof Il;
3660
+ return n instanceof Pl;
3661
3661
  }
3662
3662
  class cr extends Gt {
3663
3663
  static getType() {
@@ -3713,10 +3713,10 @@ function he(n) {
3713
3713
  return n instanceof cr;
3714
3714
  }
3715
3715
  function Ll(n) {
3716
- return new Iu(new Map(n._nodeMap));
3716
+ return new Pu(new Map(n._nodeMap));
3717
3717
  }
3718
3718
  function vs() {
3719
- return new Iu(/* @__PURE__ */ new Map([["root", new cr()]]));
3719
+ return new Pu(/* @__PURE__ */ new Map([["root", new cr()]]));
3720
3720
  }
3721
3721
  function Dl(n) {
3722
3722
  const e = n.exportJSON(), t = n.constructor;
@@ -3731,7 +3731,7 @@ function Dl(n) {
3731
3731
  }
3732
3732
  return e;
3733
3733
  }
3734
- class Iu {
3734
+ class Pu {
3735
3735
  constructor(e, t) {
3736
3736
  this._nodeMap = e, this._selection = t || null, this._flushSync = !1, this._readOnly = !1;
3737
3737
  }
@@ -3742,7 +3742,7 @@ class Iu {
3742
3742
  return ko(t && t.editor || null, this, e);
3743
3743
  }
3744
3744
  clone(e) {
3745
- const t = new Iu(this._nodeMap, e === void 0 ? this._selection : e);
3745
+ const t = new Pu(this._nodeMap, e === void 0 ? this._selection : e);
3746
3746
  return t._readOnly = !0, t;
3747
3747
  }
3748
3748
  toJSON() {
@@ -3792,7 +3792,7 @@ class bn extends Gt {
3792
3792
  super.afterCloneFrom(e), this.__textFormat = e.__textFormat, this.__textStyle = e.__textStyle;
3793
3793
  }
3794
3794
  createDOM(e) {
3795
- const t = document.createElement("p"), r = In(e.theme, "paragraph");
3795
+ const t = document.createElement("p"), r = Pn(e.theme, "paragraph");
3796
3796
  return r !== void 0 && t.classList.add(...r), t;
3797
3797
  }
3798
3798
  updateDOM(e, t, r) {
@@ -3863,12 +3863,12 @@ function $f(n) {
3863
3863
  const S = g;
3864
3864
  g = S.replace, y = S.with, b = S.withKlass || null;
3865
3865
  }
3866
- const _ = g.getType(), w = g.transform(), T = /* @__PURE__ */ new Set();
3867
- w !== null && T.add(w), d.set(_, { exportDOM: h && h.export ? h.export.get(g) : void 0, klass: g, replace: y, replaceWithKlass: b, transforms: T });
3866
+ const x = g.getType(), w = g.transform(), T = /* @__PURE__ */ new Set();
3867
+ w !== null && T.add(w), d.set(x, { exportDOM: h && h.export ? h.export.get(g) : void 0, klass: g, replace: y, replaceWithKlass: b, transforms: T });
3868
3868
  }
3869
3869
  }
3870
3870
  const p = new Lu(s, u, d, { disableEvents: i, namespace: o, theme: r }, f || console.error, function(m, g) {
3871
- const y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Set(), _ = (w) => {
3871
+ const y = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Set(), x = (w) => {
3872
3872
  Object.keys(w).forEach((T) => {
3873
3873
  let S = y.get(T);
3874
3874
  S === void 0 && (S = [], y.set(T, S)), S.push(w[T]);
@@ -3879,8 +3879,8 @@ function $f(n) {
3879
3879
  if (T == null || b.has(T)) return;
3880
3880
  b.add(T);
3881
3881
  const S = T.call(w.klass);
3882
- S !== null && _(S);
3883
- }), g && _(g), y;
3882
+ S !== null && x(S);
3883
+ }), g && x(g), y;
3884
3884
  }(d, h ? h.import : void 0), c);
3885
3885
  return a !== void 0 && (p._pendingEditorState = a, p._dirtyType = an), p;
3886
3886
  }
@@ -3997,7 +3997,7 @@ class Lu {
3997
3997
  setRootElement(e) {
3998
3998
  const t = this._rootElement;
3999
3999
  if (e !== t) {
4000
- const r = In(this._config.theme, "root"), u = this._pendingEditorState || this._editorState;
4000
+ const r = Pn(this._config.theme, "root"), u = this._pendingEditorState || this._editorState;
4001
4001
  if (this._rootElement = e, Ml(this, t, e, u), t !== null && (this._config.disableEvents || Nf(t), r != null && t.classList.remove(...r)), e !== null) {
4002
4002
  const i = function(o) {
4003
4003
  const a = o.ownerDocument;
@@ -4090,7 +4090,7 @@ class Lu {
4090
4090
  blur() {
4091
4091
  const e = this._rootElement;
4092
4092
  e !== null && e.blur();
4093
- const t = Pe(this._window);
4093
+ const t = Ie(this._window);
4094
4094
  t !== null && t.removeAllRanges();
4095
4095
  }
4096
4096
  isEditable() {
@@ -4140,7 +4140,7 @@ function Gf(n) {
4140
4140
  const e = n.getStyle(), t = Vf(e);
4141
4141
  Hf.set(e, t);
4142
4142
  }
4143
- function Io(n, e) {
4143
+ function Po(n, e) {
4144
4144
  const t = zn(n.focus, e);
4145
4145
  return te(t) && !t.isIsolated() || E(t) && !t.isInline() && !t.canBeEmpty();
4146
4146
  }
@@ -4269,8 +4269,8 @@ function Wl(n, e, t, r, u = /* @__PURE__ */ new Map(), i) {
4269
4269
  const a = function(p, m) {
4270
4270
  const { nodeName: g } = p, y = m._htmlConversions.get(g.toLowerCase());
4271
4271
  let b = null;
4272
- if (y !== void 0) for (const _ of y) {
4273
- const w = _(p);
4272
+ if (y !== void 0) for (const x of y) {
4273
+ const w = x(p);
4274
4274
  w !== null && (b === null || (b.priority || 0) <= (w.priority || 0)) && (b = w);
4275
4275
  }
4276
4276
  return b !== null ? b.conversion : null;
@@ -4393,7 +4393,7 @@ let fr = class Hl extends Gt {
4393
4393
  return !0;
4394
4394
  }
4395
4395
  extractWithChild(e, t, r) {
4396
- if (!I(t)) return !1;
4396
+ if (!P(t)) return !1;
4397
4397
  const u = t.anchor.getNode(), i = t.focus.getNode();
4398
4398
  return this.isParentOf(u) && this.isParentOf(i) && t.getTextContent().length > 0;
4399
4399
  }
@@ -4469,7 +4469,7 @@ function Yt(n) {
4469
4469
  const on = mn();
4470
4470
  function ti(n, e = {}) {
4471
4471
  const { target: t, title: r } = e, u = e.rel === void 0 ? "noreferrer" : e.rel, i = q();
4472
- if (!I(i)) return;
4472
+ if (!P(i)) return;
4473
4473
  const s = i.extract();
4474
4474
  if (n === null) s.forEach((o) => {
4475
4475
  const a = Du(o, (l) => !Yt(l) && rt(l));
@@ -4559,7 +4559,7 @@ function Mo(n, e) {
4559
4559
  const t = q();
4560
4560
  if (t !== null) {
4561
4561
  const r = t.getNodes();
4562
- if (I(t)) {
4562
+ if (P(t)) {
4563
4563
  const i = t.getStartEndPoints();
4564
4564
  i === null && We(143);
4565
4565
  const [s] = i, o = s.getNode(), a = o.getParent();
@@ -4630,7 +4630,7 @@ function Ts(n, e) {
4630
4630
  function sd(n) {
4631
4631
  n.update(() => {
4632
4632
  const e = q();
4633
- if (I(e)) {
4633
+ if (P(e)) {
4634
4634
  const t = /* @__PURE__ */ new Set(), r = e.getNodes(), u = e.anchor.getNode();
4635
4635
  if (Kl(u, r)) t.add(Ei(u));
4636
4636
  else for (let i = 0; i < r.length; i++) {
@@ -4694,7 +4694,7 @@ function ad(n) {
4694
4694
  }
4695
4695
  function ld() {
4696
4696
  const n = q();
4697
- if (!I(n) || !n.isCollapsed()) return !1;
4697
+ if (!P(n) || !n.isCollapsed()) return !1;
4698
4698
  const e = n.anchor.getNode();
4699
4699
  if (!ne(e) || e.getChildrenSize() !== 0) return !1;
4700
4700
  const t = Ei(e), r = e.getParent();
@@ -4875,7 +4875,7 @@ let dr = class Jl extends Gt {
4875
4875
  return jt(e) || ne(e);
4876
4876
  }
4877
4877
  extractWithChild(e, t) {
4878
- if (!I(t)) return !1;
4878
+ if (!P(t)) return !1;
4879
4879
  const r = t.anchor.getNode(), u = t.focus.getNode();
4880
4880
  return this.isParentOf(r) && this.isParentOf(u) && this.getTextContent().length === t.getTextContent().length;
4881
4881
  }
@@ -5074,12 +5074,12 @@ function bd(n, e) {
5074
5074
  return e ?? null;
5075
5075
  } };
5076
5076
  }
5077
- function Ie() {
5077
+ function Pe() {
5078
5078
  const n = T0(Ql);
5079
5079
  return n == null && md(8), n;
5080
5080
  }
5081
5081
  function yd({ defaultSelection: n }) {
5082
- const [e] = Ie();
5082
+ const [e] = Pe();
5083
5083
  return Se(() => {
5084
5084
  e.focus(() => {
5085
5085
  const t = document.activeElement, r = e.getRootElement();
@@ -5158,7 +5158,7 @@ function Td(n, e, t, r) {
5158
5158
  o += m;
5159
5159
  }
5160
5160
  const f = q(), h = f ? f.getNodes().find(D) : void 0, c = ie(s.getTextContent());
5161
- return c.setFormat(s.getFormat()), c.setDetail(s.getDetail()), c.setStyle(s.getStyle()), u.append(c, ...a), h && h === s && (I(f) ? c.select(f.anchor.offset, f.focus.offset) : Ae(f) && c.select(0, c.getTextContent().length)), s.replace(u), l;
5161
+ return c.setFormat(s.getFormat()), c.setDetail(s.getDetail()), c.setStyle(s.getStyle()), u.append(c, ...a), h && h === s && (P(f) ? c.select(f.anchor.offset, f.focus.offset) : Ae(f) && c.select(0, c.getTextContent().length)), s.replace(u), l;
5162
5162
  }
5163
5163
  }
5164
5164
  function ni(n, e, t) {
@@ -5206,7 +5206,7 @@ function Cd(n, e, t) {
5206
5206
  for (; (d = Yl(p, l)) && d !== null; ) {
5207
5207
  const g = d.index, y = g + d.length;
5208
5208
  if (wd(m + g, m + y, c, h)) {
5209
- const [b, , _, w] = Sd(h, m + g, m + y), T = Td(_, m + g - b, m + y - b, d);
5209
+ const [b, , x, w] = Sd(h, m + g, m + y), T = Td(x, m + g - b, m + y - b, d);
5210
5210
  h = T ? [T, ...w] : w, f(d.url, null), m = 0;
5211
5211
  } else m += y;
5212
5212
  p = p.substring(y);
@@ -5221,7 +5221,7 @@ function Cd(n, e, t) {
5221
5221
  }
5222
5222
  }), n.registerCommand(on, (u) => {
5223
5223
  const i = q();
5224
- return u !== null || !I(i) || i.extract().forEach((s) => {
5224
+ return u !== null || !P(i) || i.extract().forEach((s) => {
5225
5225
  const o = s.getParent();
5226
5226
  if (Yt(o)) return o.setIsUnlinked(!o.getIsUnlinked()), o.markDirty(), !0;
5227
5227
  }), !1;
@@ -5229,7 +5229,7 @@ function Cd(n, e, t) {
5229
5229
  }, [n, e, t]);
5230
5230
  }
5231
5231
  function Ed({ matchers: n, onChange: e }) {
5232
- const [t] = Ie();
5232
+ const [t] = Pe();
5233
5233
  return Cd(t, n, e), null;
5234
5234
  }
5235
5235
  const rc = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, Nd = rc ? gn : Se, Tr = { tag: "history-merge" };
@@ -5277,7 +5277,7 @@ function Od(n, e = !0) {
5277
5277
  let t = Ad();
5278
5278
  return e && (t = t.trim()), t === "";
5279
5279
  }
5280
- function Pd(n) {
5280
+ function Id(n) {
5281
5281
  if (!Od(n, !1)) return !1;
5282
5282
  const e = ue().getChildren(), t = e.length;
5283
5283
  if (t > 1) return !1;
@@ -5296,31 +5296,31 @@ function Pd(n) {
5296
5296
  return !0;
5297
5297
  }
5298
5298
  function uc(n) {
5299
- return () => Pd(n);
5299
+ return () => Id(n);
5300
5300
  }
5301
- function Id(n) {
5301
+ function Pd(n) {
5302
5302
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
5303
5303
  }
5304
- Id(function(n) {
5304
+ Pd(function(n) {
5305
5305
  const e = new URLSearchParams();
5306
5306
  e.append("code", n);
5307
5307
  for (let t = 1; t < arguments.length; t++) e.append("v", arguments[t]);
5308
5308
  throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
5309
5309
  });
5310
5310
  const ic = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? gn : Se;
5311
- function Ld({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: r, ariaDescribedBy: u, ariaErrorMessage: i, ariaExpanded: s, ariaInvalid: o, ariaLabel: a, ariaLabelledBy: l, ariaMultiline: f, ariaOwns: h, ariaRequired: c, autoCapitalize: d, className: p, id: m, role: g = "textbox", spellCheck: y = !0, style: b, tabIndex: _, "data-testid": w, ...T }, S) {
5312
- const [P, C] = be(n.isEditable()), L = ke((x) => {
5313
- x && x.ownerDocument && x.ownerDocument.defaultView ? n.setRootElement(x) : n.setRootElement(null);
5314
- }, [n]), j = er(() => /* @__PURE__ */ function(...x) {
5311
+ function Ld({ editor: n, ariaActiveDescendant: e, ariaAutoComplete: t, ariaControls: r, ariaDescribedBy: u, ariaErrorMessage: i, ariaExpanded: s, ariaInvalid: o, ariaLabel: a, ariaLabelledBy: l, ariaMultiline: f, ariaOwns: h, ariaRequired: c, autoCapitalize: d, className: p, id: m, role: g = "textbox", spellCheck: y = !0, style: b, tabIndex: x, "data-testid": w, ...T }, S) {
5312
+ const [I, C] = be(n.isEditable()), L = ke((v) => {
5313
+ v && v.ownerDocument && v.ownerDocument.defaultView ? n.setRootElement(v) : n.setRootElement(null);
5314
+ }, [n]), j = er(() => /* @__PURE__ */ function(...v) {
5315
5315
  return (N) => {
5316
- x.forEach((A) => {
5316
+ v.forEach((A) => {
5317
5317
  typeof A == "function" ? A(N) : A != null && (A.current = N);
5318
5318
  });
5319
5319
  };
5320
5320
  }(S, L), [L, S]);
5321
- return ic(() => (C(n.isEditable()), n.registerEditableListener((x) => {
5322
- C(x);
5323
- })), [n]), H("div", { "aria-activedescendant": P ? e : void 0, "aria-autocomplete": P ? t : "none", "aria-controls": P ? r : void 0, "aria-describedby": u, ...i != null ? { "aria-errormessage": i } : {}, "aria-expanded": P && g === "combobox" ? !!s : void 0, ...o != null ? { "aria-invalid": o } : {}, "aria-label": a, "aria-labelledby": l, "aria-multiline": f, "aria-owns": P ? h : void 0, "aria-readonly": !P || void 0, "aria-required": c, autoCapitalize: d, className: p, contentEditable: P, "data-testid": w, id: m, ref: j, role: P ? g : void 0, spellCheck: y, style: b, tabIndex: _, ...T });
5321
+ return ic(() => (C(n.isEditable()), n.registerEditableListener((v) => {
5322
+ C(v);
5323
+ })), [n]), H("div", { "aria-activedescendant": I ? e : void 0, "aria-autocomplete": I ? t : "none", "aria-controls": I ? r : void 0, "aria-describedby": u, ...i != null ? { "aria-errormessage": i } : {}, "aria-expanded": I && g === "combobox" ? !!s : void 0, ...o != null ? { "aria-invalid": o } : {}, "aria-label": a, "aria-labelledby": l, "aria-multiline": f, "aria-owns": I ? h : void 0, "aria-readonly": !I || void 0, "aria-required": c, autoCapitalize: d, className: p, contentEditable: I, "data-testid": w, id: m, ref: j, role: I ? g : void 0, spellCheck: y, style: b, tabIndex: x, ...T });
5324
5324
  }
5325
5325
  const Dd = La(Ld);
5326
5326
  function zo(n) {
@@ -5328,7 +5328,7 @@ function zo(n) {
5328
5328
  }
5329
5329
  const Md = La(Rd);
5330
5330
  function Rd(n, e) {
5331
- const { placeholder: t, ...r } = n, [u] = Ie();
5331
+ const { placeholder: t, ...r } = n, [u] = Pe();
5332
5332
  return Dt(Hr, { children: [H(Dd, { editor: u, ...r, ref: e }), t != null && H(Bd, { editor: u, content: t })] });
5333
5333
  }
5334
5334
  function Bd({ content: n, editor: e }) {
@@ -5400,15 +5400,15 @@ function $d(n, e, t, r, u) {
5400
5400
  if (n === null || t.size === 0 && r.size === 0 && !u) return Be;
5401
5401
  const i = e._selection, s = n._selection;
5402
5402
  if (u) return Ud;
5403
- if (!(I(i) && I(s) && s.isCollapsed() && i.isCollapsed())) return Be;
5404
- const o = function(y, b, _) {
5403
+ if (!(P(i) && P(s) && s.isCollapsed() && i.isCollapsed())) return Be;
5404
+ const o = function(y, b, x) {
5405
5405
  const w = y._nodeMap, T = [];
5406
5406
  for (const S of b) {
5407
- const P = w.get(S);
5408
- P !== void 0 && T.push(P);
5407
+ const I = w.get(S);
5408
+ I !== void 0 && T.push(I);
5409
5409
  }
5410
- for (const [S, P] of _) {
5411
- if (!P) continue;
5410
+ for (const [S, I] of x) {
5411
+ if (!I) continue;
5412
5412
  const C = w.get(S);
5413
5413
  C === void 0 || he(C) || T.push(C);
5414
5414
  }
@@ -5416,8 +5416,8 @@ function $d(n, e, t, r, u) {
5416
5416
  }(e, t, r);
5417
5417
  if (o.length === 0) return Be;
5418
5418
  if (o.length > 1) {
5419
- const y = e._nodeMap, b = y.get(i.anchor.key), _ = y.get(s.anchor.key);
5420
- return b && _ && !n._nodeMap.has(b.__key) && D(b) && b.__text.length === 1 && i.anchor.offset === 1 ? Wo : Be;
5419
+ const y = e._nodeMap, b = y.get(i.anchor.key), x = y.get(s.anchor.key);
5420
+ return b && x && !n._nodeMap.has(b.__key) && D(b) && b.__text.length === 1 && i.anchor.offset === 1 ? Wo : Be;
5421
5421
  }
5422
5422
  const a = o[0], l = n._nodeMap.get(a.__key);
5423
5423
  if (!D(l) || !D(a) || l.__mode !== a.__mode) return Be;
@@ -5439,8 +5439,8 @@ function Wd(n, e) {
5439
5439
  if (u === null) return Ai;
5440
5440
  const m = i._selection;
5441
5441
  return o.size > 0 || a.size > 0 ? p === !1 && h !== Be && h === r && f < t + e && d || o.size === 1 && function(g, y, b) {
5442
- const _ = y._nodeMap.get(g), w = b._nodeMap.get(g), T = y._selection, S = b._selection;
5443
- return !(I(T) && I(S) && T.anchor.type === "element" && T.focus.type === "element" && S.anchor.type === "text" && S.focus.type === "text" || !D(_) || !D(w) || _.__parent !== w.__parent) && JSON.stringify(y.read(() => _.exportJSON())) === JSON.stringify(b.read(() => w.exportJSON()));
5442
+ const x = y._nodeMap.get(g), w = b._nodeMap.get(g), T = y._selection, S = b._selection;
5443
+ return !(P(T) && P(S) && T.anchor.type === "element" && T.focus.type === "element" && S.anchor.type === "text" && S.focus.type === "text" || !D(x) || !D(w) || x.__parent !== w.__parent) && JSON.stringify(y.read(() => x.exportJSON())) === JSON.stringify(b.read(() => w.exportJSON()));
5444
5444
  }(Array.from(o)[0], u, i) ? Cr : Ai : m !== null ? Cr : Oi;
5445
5445
  })();
5446
5446
  return t = f, r = h, c;
@@ -5478,14 +5478,14 @@ function Vd() {
5478
5478
  return { current: null, redoStack: [], undoStack: [] };
5479
5479
  }
5480
5480
  function Gd({ delay: n, externalHistoryState: e }) {
5481
- const [t] = Ie();
5481
+ const [t] = Pe();
5482
5482
  return function(r, u, i = 1e3) {
5483
5483
  const s = er(() => u || Vd(), [u]);
5484
5484
  Se(() => Hd(r, s, i), [i, r, s]);
5485
5485
  }(t, e, n), null;
5486
5486
  }
5487
5487
  function Kd({ validateUrl: n, attributes: e }) {
5488
- const [t] = Ie();
5488
+ const [t] = Pe();
5489
5489
  return Se(() => {
5490
5490
  if (!t.hasNodes([fr])) throw new Error("LinkPlugin: LinkNode not registered on editor");
5491
5491
  return ct(t.registerCommand(on, (r) => {
@@ -5497,7 +5497,7 @@ function Kd({ validateUrl: n, attributes: e }) {
5497
5497
  }
5498
5498
  }, ut), n !== void 0 ? t.registerCommand(vu, (r) => {
5499
5499
  const u = q();
5500
- if (!I(u) || u.isCollapsed() || !xt(r, ClipboardEvent)) return !1;
5500
+ if (!P(u) || u.isCollapsed() || !xt(r, ClipboardEvent)) return !1;
5501
5501
  const i = r;
5502
5502
  if (i.clipboardData === null) return !1;
5503
5503
  const s = i.clipboardData.getData("text");
@@ -5507,7 +5507,7 @@ function Kd({ validateUrl: n, attributes: e }) {
5507
5507
  }, [t, n, e]), null;
5508
5508
  }
5509
5509
  function Jd() {
5510
- const [n] = Ie();
5510
+ const [n] = Pe();
5511
5511
  return Se(() => {
5512
5512
  if (!n.hasNodes([yn, dr])) throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
5513
5513
  }, [n]), function(e) {
@@ -5516,7 +5516,7 @@ function Jd() {
5516
5516
  }
5517
5517
  const Xd = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? gn : Se;
5518
5518
  function Zd({ ignoreHistoryMergeTagChange: n = !0, ignoreSelectionChange: e = !1, onChange: t }) {
5519
- const [r] = Ie();
5519
+ const [r] = Pe();
5520
5520
  return Xd(() => {
5521
5521
  if (t) return r.registerUpdateListener(({ editorState: u, dirtyElements: i, dirtyLeaves: s, prevEditorState: o, tags: a }) => {
5522
5522
  e && i.size === 0 && s.size === 0 || n && a.has("history-merge") || o.isEmpty() || t(u, r, a);
@@ -5529,7 +5529,7 @@ function Yd(n) {
5529
5529
  }
5530
5530
  function eh() {
5531
5531
  return function(n) {
5532
- const [e] = Ie(), t = er(() => n(e), [e, n]), [r, u] = be(() => t.initialValueFn()), i = An(r);
5532
+ const [e] = Pe(), t = er(() => n(e), [e, n]), [r, u] = be(() => t.initialValueFn()), i = An(r);
5533
5533
  return Qd(() => {
5534
5534
  const { initialValueFn: s, subscribe: o } = t, a = s();
5535
5535
  return i.current !== a && (i.current = a, u(a)), o((l) => {
@@ -5559,13 +5559,13 @@ function th(n) {
5559
5559
  const [l, f, h, c, d, p] = a;
5560
5560
  n.update(() => {
5561
5561
  const m = q();
5562
- if (I(m)) {
5562
+ if (P(m)) {
5563
5563
  const g = m.anchor;
5564
- let y = g.getNode(), b = 0, _ = 0;
5565
- if (D(y) && l >= 0 && f >= 0 && (b = l, _ = l + f, m.setTextNodeRange(y, b, y, _)), b === _ && h === "" || (m.insertRawText(h), y = g.getNode()), D(y)) {
5566
- b = c, _ = c + d;
5564
+ let y = g.getNode(), b = 0, x = 0;
5565
+ if (D(y) && l >= 0 && f >= 0 && (b = l, x = l + f, m.setTextNodeRange(y, b, y, x)), b === x && h === "" || (m.insertRawText(h), y = g.getNode()), D(y)) {
5566
+ b = c, x = c + d;
5567
5567
  const w = y.getTextContentSize();
5568
- b = b > w ? w : b, _ = _ > w ? w : _, m.setTextNodeRange(y, b, y, _);
5568
+ b = b > w ? w : b, x = x > w ? w : x, m.setTextNodeRange(y, b, y, x);
5569
5569
  }
5570
5570
  r.stopImmediatePropagation();
5571
5571
  }
@@ -5589,10 +5589,10 @@ var fu = nh(function(n) {
5589
5589
  throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
5590
5590
  });
5591
5591
  function rh(n, e = q()) {
5592
- return e == null && fu(166), I(e) && e.isCollapsed() || e.getNodes().length === 0 ? "" : jl(n, e);
5592
+ return e == null && fu(166), P(e) && e.isCollapsed() || e.getNodes().length === 0 ? "" : jl(n, e);
5593
5593
  }
5594
5594
  function uh(n, e = q()) {
5595
- return e == null && fu(166), I(e) && e.isCollapsed() || e.getNodes().length === 0 ? null : JSON.stringify(ih(n, e));
5595
+ return e == null && fu(166), P(e) && e.isCollapsed() || e.getNodes().length === 0 ? null : JSON.stringify(ih(n, e));
5596
5596
  }
5597
5597
  function Vo(n, e, t) {
5598
5598
  const r = n.getData("application/x-lexical-editor");
@@ -5611,12 +5611,12 @@ function Vo(n, e, t) {
5611
5611
  } catch {
5612
5612
  }
5613
5613
  const i = n.getData("text/plain") || n.getData("text/uri-list");
5614
- if (i != null) if (I(e)) {
5614
+ if (i != null) if (P(e)) {
5615
5615
  const s = i.split(/(\r?\n|\t)/);
5616
5616
  s[s.length - 1] === "" && s.pop();
5617
5617
  for (let o = 0; o < s.length; o++) {
5618
5618
  const a = q();
5619
- if (I(a)) {
5619
+ if (P(a)) {
5620
5620
  const l = s[o];
5621
5621
  l === `
5622
5622
  ` || l === `\r
@@ -5681,7 +5681,7 @@ async function Ko(n, e, t) {
5681
5681
  a(Jo(n, e, t));
5682
5682
  });
5683
5683
  });
5684
- const r = n.getRootElement(), u = n._window == null ? window.document : n._window.document, i = Pe(n._window);
5684
+ const r = n.getRootElement(), u = n._window == null ? window.document : n._window.document, i = Ie(n._window);
5685
5685
  if (r === null || i === null) return !1;
5686
5686
  const s = u.createElement("span");
5687
5687
  s.style.cssText = "position: fixed; top: -1000px;", s.append(u.createTextNode("#")), r.append(s);
@@ -5695,7 +5695,7 @@ async function Ko(n, e, t) {
5695
5695
  }
5696
5696
  function Jo(n, e, t) {
5697
5697
  if (t === void 0) {
5698
- const u = Pe(n._window);
5698
+ const u = Ie(n._window);
5699
5699
  if (!u) return !1;
5700
5700
  const i = u.anchorNode, s = u.focusNode;
5701
5701
  if (i !== null && s !== null && !rr(n, i, s)) return !1;
@@ -5745,7 +5745,7 @@ function Er(n) {
5745
5745
  }
5746
5746
  function Yo(n) {
5747
5747
  const e = q();
5748
- if (!I(e)) return !1;
5748
+ if (!P(e)) return !1;
5749
5749
  const t = /* @__PURE__ */ new Set(), r = e.getNodes();
5750
5750
  for (let u = 0; u < r.length; u++) {
5751
5751
  const i = r[u], s = i.getKey();
@@ -5767,13 +5767,13 @@ function gh(n) {
5767
5767
  return !!Ae(t) && (t.clear(), !0);
5768
5768
  }, 0), n.registerCommand(Mt, (e) => {
5769
5769
  const t = q();
5770
- return !!I(t) && (t.deleteCharacter(e), !0);
5770
+ return !!P(t) && (t.deleteCharacter(e), !0);
5771
5771
  }, Q), n.registerCommand(Un, (e) => {
5772
5772
  const t = q();
5773
- return !!I(t) && (t.deleteWord(e), !0);
5773
+ return !!P(t) && (t.deleteWord(e), !0);
5774
5774
  }, Q), n.registerCommand(jn, (e) => {
5775
5775
  const t = q();
5776
- return !!I(t) && (t.deleteLine(e), !0);
5776
+ return !!P(t) && (t.deleteLine(e), !0);
5777
5777
  }, Q), n.registerCommand(un, (e) => {
5778
5778
  const t = q();
5779
5779
  if (typeof e == "string") t !== null && t.insertText(e);
@@ -5781,7 +5781,7 @@ function gh(n) {
5781
5781
  if (t === null) return !1;
5782
5782
  const r = e.dataTransfer;
5783
5783
  if (r != null) Vo(r, t, n);
5784
- else if (I(t)) {
5784
+ else if (P(t)) {
5785
5785
  const u = e.data;
5786
5786
  return u && t.insertText(u), !0;
5787
5787
  }
@@ -5789,13 +5789,13 @@ function gh(n) {
5789
5789
  return !0;
5790
5790
  }, Q), n.registerCommand(ai, () => {
5791
5791
  const e = q();
5792
- return !!I(e) && (e.removeText(), !0);
5792
+ return !!P(e) && (e.removeText(), !0);
5793
5793
  }, Q), n.registerCommand(Ve, (e) => {
5794
5794
  const t = q();
5795
- return !!I(t) && (t.formatText(e), !0);
5795
+ return !!P(t) && (t.formatText(e), !0);
5796
5796
  }, Q), n.registerCommand(R0, (e) => {
5797
5797
  const t = q();
5798
- if (!I(t) && !Ae(t)) return !1;
5798
+ if (!P(t) && !Ae(t)) return !1;
5799
5799
  const r = t.getNodes();
5800
5800
  for (const u of r) {
5801
5801
  const i = Du(u, (s) => E(s) && !s.isInline());
@@ -5804,10 +5804,10 @@ function gh(n) {
5804
5804
  return !0;
5805
5805
  }, Q), n.registerCommand(rn, (e) => {
5806
5806
  const t = q();
5807
- return !!I(t) && (t.insertLineBreak(e), !0);
5807
+ return !!P(t) && (t.insertLineBreak(e), !0);
5808
5808
  }, Q), n.registerCommand(qn, () => {
5809
5809
  const e = q();
5810
- return !!I(e) && (e.insertParagraph(), !0);
5810
+ return !!P(e) && (e.insertParagraph(), !0);
5811
5811
  }, Q), n.registerCommand(D0, () => (_s([or()]), !0), Q), n.registerCommand(M0, () => Yo((e) => {
5812
5812
  const t = e.getIndent();
5813
5813
  e.setIndent(t + 1);
@@ -5819,7 +5819,7 @@ function gh(n) {
5819
5819
  if (Ae(t) && !Nr(e.target)) {
5820
5820
  const r = t.getNodes();
5821
5821
  if (r.length > 0) return r[0].selectPrevious(), !0;
5822
- } else if (I(t)) {
5822
+ } else if (P(t)) {
5823
5823
  const r = zn(t.focus, !0);
5824
5824
  if (!e.shiftKey && te(r) && !r.isIsolated() && !r.isInline()) return r.selectPrevious(), e.preventDefault(), !0;
5825
5825
  }
@@ -5829,7 +5829,7 @@ function gh(n) {
5829
5829
  if (Ae(t)) {
5830
5830
  const r = t.getNodes();
5831
5831
  if (r.length > 0) return r[0].selectNext(0, 0), !0;
5832
- } else if (I(t)) {
5832
+ } else if (P(t)) {
5833
5833
  if (function(u) {
5834
5834
  const i = u.focus;
5835
5835
  return i.key === "root" && i.offset === ue().getChildrenSize();
@@ -5844,8 +5844,8 @@ function gh(n) {
5844
5844
  const r = t.getNodes();
5845
5845
  if (r.length > 0) return e.preventDefault(), r[0].selectPrevious(), !0;
5846
5846
  }
5847
- if (!I(t)) return !1;
5848
- if (Io(t, !0)) {
5847
+ if (!P(t)) return !1;
5848
+ if (Po(t, !0)) {
5849
5849
  const r = e.shiftKey;
5850
5850
  return e.preventDefault(), Lo(t, r, !0), !0;
5851
5851
  }
@@ -5856,22 +5856,22 @@ function gh(n) {
5856
5856
  const u = t.getNodes();
5857
5857
  if (u.length > 0) return e.preventDefault(), u[0].selectNext(0, 0), !0;
5858
5858
  }
5859
- if (!I(t)) return !1;
5859
+ if (!P(t)) return !1;
5860
5860
  const r = e.shiftKey;
5861
- return !!Io(t, !1) && (e.preventDefault(), Lo(t, r, !1), !0);
5861
+ return !!Po(t, !1) && (e.preventDefault(), Lo(t, r, !1), !0);
5862
5862
  }, Q), n.registerCommand(qa, (e) => {
5863
5863
  if (Nr(e.target)) return !1;
5864
5864
  const t = q();
5865
- if (!I(t)) return !1;
5865
+ if (!P(t)) return !1;
5866
5866
  const { anchor: r } = t, u = r.getNode();
5867
5867
  return t.isCollapsed() && r.offset === 0 && !he(u) && ed(u).getIndent() > 0 ? (e.preventDefault(), n.dispatchCommand(Gs, void 0)) : (!Zo || navigator.language !== "ko-KR") && (e.preventDefault(), n.dispatchCommand(Mt, !0));
5868
5868
  }, Q), n.registerCommand(ja, (e) => {
5869
5869
  if (Nr(e.target)) return !1;
5870
5870
  const t = q();
5871
- return !!I(t) && (e.preventDefault(), n.dispatchCommand(Mt, !1));
5871
+ return !!P(t) && (e.preventDefault(), n.dispatchCommand(Mt, !1));
5872
5872
  }, Q), n.registerCommand(Vr, (e) => {
5873
5873
  const t = q();
5874
- if (!I(t)) return !1;
5874
+ if (!P(t)) return !1;
5875
5875
  if (e !== null) {
5876
5876
  if ((Zo || dh || ph) && fh) return !1;
5877
5877
  if (e.preventDefault(), e.shiftKey) return n.dispatchCommand(rn, !1);
@@ -5879,7 +5879,7 @@ function gh(n) {
5879
5879
  return n.dispatchCommand(qn, void 0);
5880
5880
  }, Q), n.registerCommand(Ua, () => {
5881
5881
  const e = q();
5882
- return !!I(e) && (n.blur(), !0);
5882
+ return !!P(e) && (n.blur(), !0);
5883
5883
  }, Q), n.registerCommand(za, (e) => {
5884
5884
  const [, t] = Er(e);
5885
5885
  if (t.length > 0) {
@@ -5901,13 +5901,13 @@ function gh(n) {
5901
5901
  return e.preventDefault(), !0;
5902
5902
  }
5903
5903
  const r = q();
5904
- return !!I(r);
5904
+ return !!P(r);
5905
5905
  }, Q), n.registerCommand($a, (e) => {
5906
5906
  const [t] = Er(e), r = q();
5907
- return !(t && !I(r));
5907
+ return !(t && !P(r));
5908
5908
  }, Q), n.registerCommand(Wa, (e) => {
5909
5909
  const [t] = Er(e), r = q();
5910
- if (t && !I(r)) return !1;
5910
+ if (t && !P(r)) return !1;
5911
5911
  const u = Xo(e.clientX, e.clientY);
5912
5912
  if (u !== null) {
5913
5913
  const i = ln(u.node);
@@ -5917,7 +5917,7 @@ function gh(n) {
5917
5917
  }, Q), n.registerCommand(li, () => (gf(), !0), Q), n.registerCommand(wu, (e) => (Ko(n, xt(e, ClipboardEvent) ? e : null), !0), Q), n.registerCommand(Yi, (e) => (async function(t, r) {
5918
5918
  await Ko(r, xt(t, ClipboardEvent) ? t : null), r.update(() => {
5919
5919
  const u = q();
5920
- I(u) ? u.removeText() : Ae(u) && u.getNodes().forEach((i) => i.remove());
5920
+ P(u) ? u.removeText() : Ae(u) && u.getNodes().forEach((i) => i.remove());
5921
5921
  });
5922
5922
  }(e, n), !0), Q), n.registerCommand(vu, (e) => {
5923
5923
  const [, t, r] = Er(e);
@@ -5929,14 +5929,14 @@ function gh(n) {
5929
5929
  }(e, n), !0);
5930
5930
  }, Q));
5931
5931
  }
5932
- const Pi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? gn : Se;
5932
+ const Ii = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0 ? gn : Se;
5933
5933
  function ea(n) {
5934
5934
  return n.getEditorState().read(uc(n.isComposing()));
5935
5935
  }
5936
5936
  function mh({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
5937
- const [r] = Ie(), u = function(i, s) {
5937
+ const [r] = Pe(), u = function(i, s) {
5938
5938
  const [o, a] = be(() => i.getDecorators());
5939
- return Pi(() => i.registerDecoratorListener((l) => {
5939
+ return Ii(() => i.registerDecoratorListener((l) => {
5940
5940
  E0(() => {
5941
5941
  a(l);
5942
5942
  });
@@ -5952,13 +5952,13 @@ function mh({ contentEditable: n, placeholder: e = null, ErrorBoundary: t }) {
5952
5952
  }, [s, o, i]);
5953
5953
  }(r, t);
5954
5954
  return function(i) {
5955
- Pi(() => ct(gh(i), th(i)), [i]);
5955
+ Ii(() => ct(gh(i), th(i)), [i]);
5956
5956
  }(r), Dt(Hr, { children: [n, H(bh, { content: e }), u] });
5957
5957
  }
5958
5958
  function bh({ content: n }) {
5959
- const [e] = Ie(), t = function(u) {
5959
+ const [e] = Pe(), t = function(u) {
5960
5960
  const [i, s] = be(() => ea(u));
5961
- return Pi(() => {
5961
+ return Ii(() => {
5962
5962
  function o() {
5963
5963
  const a = ea(u);
5964
5964
  s(a);
@@ -6011,7 +6011,7 @@ Ns.default = new Uint16Array(
6011
6011
  return n.charCodeAt(0);
6012
6012
  })
6013
6013
  );
6014
- var Ii = {};
6014
+ var Pi = {};
6015
6015
  (function(n) {
6016
6016
  var e;
6017
6017
  Object.defineProperty(n, "__esModule", { value: !0 }), n.replaceCodePoint = n.fromCodePoint = void 0;
@@ -6060,78 +6060,78 @@ var Ii = {};
6060
6060
  return (0, n.fromCodePoint)(r(i));
6061
6061
  }
6062
6062
  n.default = u;
6063
- })(Ii);
6063
+ })(Pi);
6064
6064
  (function(n) {
6065
- var e = z && z.__createBinding || (Object.create ? function(x, N, A, B) {
6065
+ var e = z && z.__createBinding || (Object.create ? function(v, N, A, B) {
6066
6066
  B === void 0 && (B = A);
6067
- var v = Object.getOwnPropertyDescriptor(N, A);
6068
- (!v || ("get" in v ? !N.__esModule : v.writable || v.configurable)) && (v = { enumerable: !0, get: function() {
6067
+ var _ = Object.getOwnPropertyDescriptor(N, A);
6068
+ (!_ || ("get" in _ ? !N.__esModule : _.writable || _.configurable)) && (_ = { enumerable: !0, get: function() {
6069
6069
  return N[A];
6070
- } }), Object.defineProperty(x, B, v);
6071
- } : function(x, N, A, B) {
6072
- B === void 0 && (B = A), x[B] = N[A];
6073
- }), t = z && z.__setModuleDefault || (Object.create ? function(x, N) {
6074
- Object.defineProperty(x, "default", { enumerable: !0, value: N });
6075
- } : function(x, N) {
6076
- x.default = N;
6077
- }), r = z && z.__importStar || function(x) {
6078
- if (x && x.__esModule) return x;
6070
+ } }), Object.defineProperty(v, B, _);
6071
+ } : function(v, N, A, B) {
6072
+ B === void 0 && (B = A), v[B] = N[A];
6073
+ }), t = z && z.__setModuleDefault || (Object.create ? function(v, N) {
6074
+ Object.defineProperty(v, "default", { enumerable: !0, value: N });
6075
+ } : function(v, N) {
6076
+ v.default = N;
6077
+ }), r = z && z.__importStar || function(v) {
6078
+ if (v && v.__esModule) return v;
6079
6079
  var N = {};
6080
- if (x != null) for (var A in x) A !== "default" && Object.prototype.hasOwnProperty.call(x, A) && e(N, x, A);
6081
- return t(N, x), N;
6082
- }, u = z && z.__importDefault || function(x) {
6083
- return x && x.__esModule ? x : { default: x };
6080
+ if (v != null) for (var A in v) A !== "default" && Object.prototype.hasOwnProperty.call(v, A) && e(N, v, A);
6081
+ return t(N, v), N;
6082
+ }, u = z && z.__importDefault || function(v) {
6083
+ return v && v.__esModule ? v : { default: v };
6084
6084
  };
6085
6085
  Object.defineProperty(n, "__esModule", { value: !0 }), n.decodeXML = n.decodeHTMLStrict = n.decodeHTMLAttribute = n.decodeHTML = n.determineBranch = n.EntityDecoder = n.DecodingMode = n.BinTrieFlags = n.fromCodePoint = n.replaceCodePoint = n.decodeCodePoint = n.xmlDecodeTree = n.htmlDecodeTree = void 0;
6086
6086
  var i = u(Es);
6087
6087
  n.htmlDecodeTree = i.default;
6088
6088
  var s = u(Ns);
6089
6089
  n.xmlDecodeTree = s.default;
6090
- var o = r(Ii);
6090
+ var o = r(Pi);
6091
6091
  n.decodeCodePoint = o.default;
6092
- var a = Ii;
6092
+ var a = Pi;
6093
6093
  Object.defineProperty(n, "replaceCodePoint", { enumerable: !0, get: function() {
6094
6094
  return a.replaceCodePoint;
6095
6095
  } }), Object.defineProperty(n, "fromCodePoint", { enumerable: !0, get: function() {
6096
6096
  return a.fromCodePoint;
6097
6097
  } });
6098
6098
  var l;
6099
- (function(x) {
6100
- x[x.NUM = 35] = "NUM", x[x.SEMI = 59] = "SEMI", x[x.EQUALS = 61] = "EQUALS", x[x.ZERO = 48] = "ZERO", x[x.NINE = 57] = "NINE", x[x.LOWER_A = 97] = "LOWER_A", x[x.LOWER_F = 102] = "LOWER_F", x[x.LOWER_X = 120] = "LOWER_X", x[x.LOWER_Z = 122] = "LOWER_Z", x[x.UPPER_A = 65] = "UPPER_A", x[x.UPPER_F = 70] = "UPPER_F", x[x.UPPER_Z = 90] = "UPPER_Z";
6099
+ (function(v) {
6100
+ v[v.NUM = 35] = "NUM", v[v.SEMI = 59] = "SEMI", v[v.EQUALS = 61] = "EQUALS", v[v.ZERO = 48] = "ZERO", v[v.NINE = 57] = "NINE", v[v.LOWER_A = 97] = "LOWER_A", v[v.LOWER_F = 102] = "LOWER_F", v[v.LOWER_X = 120] = "LOWER_X", v[v.LOWER_Z = 122] = "LOWER_Z", v[v.UPPER_A = 65] = "UPPER_A", v[v.UPPER_F = 70] = "UPPER_F", v[v.UPPER_Z = 90] = "UPPER_Z";
6101
6101
  })(l || (l = {}));
6102
6102
  var f = 32, h;
6103
- (function(x) {
6104
- x[x.VALUE_LENGTH = 49152] = "VALUE_LENGTH", x[x.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", x[x.JUMP_TABLE = 127] = "JUMP_TABLE";
6103
+ (function(v) {
6104
+ v[v.VALUE_LENGTH = 49152] = "VALUE_LENGTH", v[v.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", v[v.JUMP_TABLE = 127] = "JUMP_TABLE";
6105
6105
  })(h = n.BinTrieFlags || (n.BinTrieFlags = {}));
6106
- function c(x) {
6107
- return x >= l.ZERO && x <= l.NINE;
6106
+ function c(v) {
6107
+ return v >= l.ZERO && v <= l.NINE;
6108
6108
  }
6109
- function d(x) {
6110
- return x >= l.UPPER_A && x <= l.UPPER_F || x >= l.LOWER_A && x <= l.LOWER_F;
6109
+ function d(v) {
6110
+ return v >= l.UPPER_A && v <= l.UPPER_F || v >= l.LOWER_A && v <= l.LOWER_F;
6111
6111
  }
6112
- function p(x) {
6113
- return x >= l.UPPER_A && x <= l.UPPER_Z || x >= l.LOWER_A && x <= l.LOWER_Z || c(x);
6112
+ function p(v) {
6113
+ return v >= l.UPPER_A && v <= l.UPPER_Z || v >= l.LOWER_A && v <= l.LOWER_Z || c(v);
6114
6114
  }
6115
- function m(x) {
6116
- return x === l.EQUALS || p(x);
6115
+ function m(v) {
6116
+ return v === l.EQUALS || p(v);
6117
6117
  }
6118
6118
  var g;
6119
- (function(x) {
6120
- x[x.EntityStart = 0] = "EntityStart", x[x.NumericStart = 1] = "NumericStart", x[x.NumericDecimal = 2] = "NumericDecimal", x[x.NumericHex = 3] = "NumericHex", x[x.NamedEntity = 4] = "NamedEntity";
6119
+ (function(v) {
6120
+ v[v.EntityStart = 0] = "EntityStart", v[v.NumericStart = 1] = "NumericStart", v[v.NumericDecimal = 2] = "NumericDecimal", v[v.NumericHex = 3] = "NumericHex", v[v.NamedEntity = 4] = "NamedEntity";
6121
6121
  })(g || (g = {}));
6122
6122
  var y;
6123
- (function(x) {
6124
- x[x.Legacy = 0] = "Legacy", x[x.Strict = 1] = "Strict", x[x.Attribute = 2] = "Attribute";
6123
+ (function(v) {
6124
+ v[v.Legacy = 0] = "Legacy", v[v.Strict = 1] = "Strict", v[v.Attribute = 2] = "Attribute";
6125
6125
  })(y = n.DecodingMode || (n.DecodingMode = {}));
6126
6126
  var b = (
6127
6127
  /** @class */
6128
6128
  function() {
6129
- function x(N, A, B) {
6129
+ function v(N, A, B) {
6130
6130
  this.decodeTree = N, this.emitCodePoint = A, this.errors = B, this.state = g.EntityStart, this.consumed = 1, this.result = 0, this.treeIndex = 0, this.excess = 1, this.decodeMode = y.Strict;
6131
6131
  }
6132
- return x.prototype.startEntity = function(N) {
6132
+ return v.prototype.startEntity = function(N) {
6133
6133
  this.decodeMode = N, this.state = g.EntityStart, this.result = 0, this.treeIndex = 0, this.excess = 1, this.consumed = 1;
6134
- }, x.prototype.write = function(N, A) {
6134
+ }, v.prototype.write = function(N, A) {
6135
6135
  switch (this.state) {
6136
6136
  case g.EntityStart:
6137
6137
  return N.charCodeAt(A) === l.NUM ? (this.state = g.NumericStart, this.consumed += 1, this.stateNumericStart(N, A + 1)) : (this.state = g.NamedEntity, this.stateNamedEntity(N, A));
@@ -6144,32 +6144,32 @@ var Ii = {};
6144
6144
  case g.NamedEntity:
6145
6145
  return this.stateNamedEntity(N, A);
6146
6146
  }
6147
- }, x.prototype.stateNumericStart = function(N, A) {
6147
+ }, v.prototype.stateNumericStart = function(N, A) {
6148
6148
  return A >= N.length ? -1 : (N.charCodeAt(A) | f) === l.LOWER_X ? (this.state = g.NumericHex, this.consumed += 1, this.stateNumericHex(N, A + 1)) : (this.state = g.NumericDecimal, this.stateNumericDecimal(N, A));
6149
- }, x.prototype.addToNumericResult = function(N, A, B, v) {
6149
+ }, v.prototype.addToNumericResult = function(N, A, B, _) {
6150
6150
  if (A !== B) {
6151
6151
  var O = B - A;
6152
- this.result = this.result * Math.pow(v, O) + parseInt(N.substr(A, O), v), this.consumed += O;
6152
+ this.result = this.result * Math.pow(_, O) + parseInt(N.substr(A, O), _), this.consumed += O;
6153
6153
  }
6154
- }, x.prototype.stateNumericHex = function(N, A) {
6154
+ }, v.prototype.stateNumericHex = function(N, A) {
6155
6155
  for (var B = A; A < N.length; ) {
6156
- var v = N.charCodeAt(A);
6157
- if (c(v) || d(v))
6156
+ var _ = N.charCodeAt(A);
6157
+ if (c(_) || d(_))
6158
6158
  A += 1;
6159
6159
  else
6160
- return this.addToNumericResult(N, B, A, 16), this.emitNumericEntity(v, 3);
6160
+ return this.addToNumericResult(N, B, A, 16), this.emitNumericEntity(_, 3);
6161
6161
  }
6162
6162
  return this.addToNumericResult(N, B, A, 16), -1;
6163
- }, x.prototype.stateNumericDecimal = function(N, A) {
6163
+ }, v.prototype.stateNumericDecimal = function(N, A) {
6164
6164
  for (var B = A; A < N.length; ) {
6165
- var v = N.charCodeAt(A);
6166
- if (c(v))
6165
+ var _ = N.charCodeAt(A);
6166
+ if (c(_))
6167
6167
  A += 1;
6168
6168
  else
6169
- return this.addToNumericResult(N, B, A, 10), this.emitNumericEntity(v, 2);
6169
+ return this.addToNumericResult(N, B, A, 10), this.emitNumericEntity(_, 2);
6170
6170
  }
6171
6171
  return this.addToNumericResult(N, B, A, 10), -1;
6172
- }, x.prototype.emitNumericEntity = function(N, A) {
6172
+ }, v.prototype.emitNumericEntity = function(N, A) {
6173
6173
  var B;
6174
6174
  if (this.consumed <= A)
6175
6175
  return (B = this.errors) === null || B === void 0 || B.absenceOfDigitsInNumericCharacterReference(this.consumed), 0;
@@ -6178,28 +6178,28 @@ var Ii = {};
6178
6178
  else if (this.decodeMode === y.Strict)
6179
6179
  return 0;
6180
6180
  return this.emitCodePoint((0, o.replaceCodePoint)(this.result), this.consumed), this.errors && (N !== l.SEMI && this.errors.missingSemicolonAfterCharacterReference(), this.errors.validateNumericCharacterReference(this.result)), this.consumed;
6181
- }, x.prototype.stateNamedEntity = function(N, A) {
6182
- for (var B = this.decodeTree, v = B[this.treeIndex], O = (v & h.VALUE_LENGTH) >> 14; A < N.length; A++, this.excess++) {
6181
+ }, v.prototype.stateNamedEntity = function(N, A) {
6182
+ for (var B = this.decodeTree, _ = B[this.treeIndex], O = (_ & h.VALUE_LENGTH) >> 14; A < N.length; A++, this.excess++) {
6183
6183
  var k = N.charCodeAt(A);
6184
- if (this.treeIndex = w(B, v, this.treeIndex + Math.max(1, O), k), this.treeIndex < 0)
6184
+ if (this.treeIndex = w(B, _, this.treeIndex + Math.max(1, O), k), this.treeIndex < 0)
6185
6185
  return this.result === 0 || // If we are parsing an attribute
6186
6186
  this.decodeMode === y.Attribute && // We shouldn't have consumed any characters after the entity,
6187
6187
  (O === 0 || // And there should be no invalid characters.
6188
6188
  m(k)) ? 0 : this.emitNotTerminatedNamedEntity();
6189
- if (v = B[this.treeIndex], O = (v & h.VALUE_LENGTH) >> 14, O !== 0) {
6189
+ if (_ = B[this.treeIndex], O = (_ & h.VALUE_LENGTH) >> 14, O !== 0) {
6190
6190
  if (k === l.SEMI)
6191
6191
  return this.emitNamedEntityData(this.treeIndex, O, this.consumed + this.excess);
6192
6192
  this.decodeMode !== y.Strict && (this.result = this.treeIndex, this.consumed += this.excess, this.excess = 0);
6193
6193
  }
6194
6194
  }
6195
6195
  return -1;
6196
- }, x.prototype.emitNotTerminatedNamedEntity = function() {
6197
- var N, A = this, B = A.result, v = A.decodeTree, O = (v[B] & h.VALUE_LENGTH) >> 14;
6196
+ }, v.prototype.emitNotTerminatedNamedEntity = function() {
6197
+ var N, A = this, B = A.result, _ = A.decodeTree, O = (_[B] & h.VALUE_LENGTH) >> 14;
6198
6198
  return this.emitNamedEntityData(B, O, this.consumed), (N = this.errors) === null || N === void 0 || N.missingSemicolonAfterCharacterReference(), this.consumed;
6199
- }, x.prototype.emitNamedEntityData = function(N, A, B) {
6200
- var v = this.decodeTree;
6201
- return this.emitCodePoint(A === 1 ? v[N] & ~h.VALUE_LENGTH : v[N + 1], B), A === 3 && this.emitCodePoint(v[N + 2], B), B;
6202
- }, x.prototype.end = function() {
6199
+ }, v.prototype.emitNamedEntityData = function(N, A, B) {
6200
+ var _ = this.decodeTree;
6201
+ return this.emitCodePoint(A === 1 ? _[N] & ~h.VALUE_LENGTH : _[N + 1], B), A === 3 && this.emitCodePoint(_[N + 2], B), B;
6202
+ }, v.prototype.end = function() {
6203
6203
  var N;
6204
6204
  switch (this.state) {
6205
6205
  case g.NamedEntity:
@@ -6213,19 +6213,19 @@ var Ii = {};
6213
6213
  case g.EntityStart:
6214
6214
  return 0;
6215
6215
  }
6216
- }, x;
6216
+ }, v;
6217
6217
  }()
6218
6218
  );
6219
6219
  n.EntityDecoder = b;
6220
- function _(x) {
6221
- var N = "", A = new b(x, function(B) {
6220
+ function x(v) {
6221
+ var N = "", A = new b(v, function(B) {
6222
6222
  return N += (0, o.fromCodePoint)(B);
6223
6223
  });
6224
- return function(v, O) {
6225
- for (var k = 0, U = 0; (U = v.indexOf("&", U)) >= 0; ) {
6226
- N += v.slice(k, U), A.startEntity(O);
6224
+ return function(_, O) {
6225
+ for (var k = 0, U = 0; (U = _.indexOf("&", U)) >= 0; ) {
6226
+ N += _.slice(k, U), A.startEntity(O);
6227
6227
  var R = A.write(
6228
- v,
6228
+ _,
6229
6229
  // Skip the "&"
6230
6230
  U + 1
6231
6231
  );
@@ -6235,45 +6235,45 @@ var Ii = {};
6235
6235
  }
6236
6236
  k = U + R, U = R === 0 ? k + 1 : k;
6237
6237
  }
6238
- var W = N + v.slice(k);
6238
+ var W = N + _.slice(k);
6239
6239
  return N = "", W;
6240
6240
  };
6241
6241
  }
6242
- function w(x, N, A, B) {
6243
- var v = (N & h.BRANCH_LENGTH) >> 7, O = N & h.JUMP_TABLE;
6244
- if (v === 0)
6242
+ function w(v, N, A, B) {
6243
+ var _ = (N & h.BRANCH_LENGTH) >> 7, O = N & h.JUMP_TABLE;
6244
+ if (_ === 0)
6245
6245
  return O !== 0 && B === O ? A : -1;
6246
6246
  if (O) {
6247
6247
  var k = B - O;
6248
- return k < 0 || k >= v ? -1 : x[A + k] - 1;
6248
+ return k < 0 || k >= _ ? -1 : v[A + k] - 1;
6249
6249
  }
6250
- for (var U = A, R = U + v - 1; U <= R; ) {
6251
- var W = U + R >>> 1, Le = x[W];
6250
+ for (var U = A, R = U + _ - 1; U <= R; ) {
6251
+ var W = U + R >>> 1, Le = v[W];
6252
6252
  if (Le < B)
6253
6253
  U = W + 1;
6254
6254
  else if (Le > B)
6255
6255
  R = W - 1;
6256
6256
  else
6257
- return x[W + v];
6257
+ return v[W + _];
6258
6258
  }
6259
6259
  return -1;
6260
6260
  }
6261
6261
  n.determineBranch = w;
6262
- var T = _(i.default), S = _(s.default);
6263
- function P(x, N) {
6264
- return N === void 0 && (N = y.Legacy), T(x, N);
6262
+ var T = x(i.default), S = x(s.default);
6263
+ function I(v, N) {
6264
+ return N === void 0 && (N = y.Legacy), T(v, N);
6265
6265
  }
6266
- n.decodeHTML = P;
6267
- function C(x) {
6268
- return T(x, y.Attribute);
6266
+ n.decodeHTML = I;
6267
+ function C(v) {
6268
+ return T(v, y.Attribute);
6269
6269
  }
6270
6270
  n.decodeHTMLAttribute = C;
6271
- function L(x) {
6272
- return T(x, y.Strict);
6271
+ function L(v) {
6272
+ return T(v, y.Strict);
6273
6273
  }
6274
6274
  n.decodeHTMLStrict = L;
6275
- function j(x) {
6276
- return S(x, y.Strict);
6275
+ function j(v) {
6276
+ return S(v, y.Strict);
6277
6277
  }
6278
6278
  n.decodeXML = j;
6279
6279
  })(Gn);
@@ -7360,14 +7360,14 @@ var kh = z && z.__importDefault || function(n) {
7360
7360
  Object.defineProperty($t, "__esModule", { value: !0 });
7361
7361
  $t.encodeNonAsciiHTML = $t.encodeHTML = void 0;
7362
7362
  var Ah = kh(Os), vc = du, Oh = /[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;
7363
- function Ph(n) {
7363
+ function Ih(n) {
7364
7364
  return wc(Oh, n);
7365
7365
  }
7366
- $t.encodeHTML = Ph;
7367
- function Ih(n) {
7366
+ $t.encodeHTML = Ih;
7367
+ function Ph(n) {
7368
7368
  return wc(vc.xmlReplacer, n);
7369
7369
  }
7370
- $t.encodeNonAsciiHTML = Ih;
7370
+ $t.encodeNonAsciiHTML = Ph;
7371
7371
  function wc(n, e) {
7372
7372
  for (var t = "", r = 0, u; (u = n.exec(e)) !== null; ) {
7373
7373
  var i = u.index;
@@ -7752,9 +7752,9 @@ Je.hasAttrib = Yh;
7752
7752
  Je.getName = ep;
7753
7753
  Je.nextElementSibling = tp;
7754
7754
  Je.prevElementSibling = np;
7755
- var Ps = ot;
7755
+ var Is = ot;
7756
7756
  function Cc(n) {
7757
- return (0, Ps.hasChildren)(n) ? n.children : [];
7757
+ return (0, Is.hasChildren)(n) ? n.children : [];
7758
7758
  }
7759
7759
  function Ec(n) {
7760
7760
  return n.parent || null;
@@ -7780,12 +7780,12 @@ function ep(n) {
7780
7780
  return n.name;
7781
7781
  }
7782
7782
  function tp(n) {
7783
- for (var e, t = n.next; t !== null && !(0, Ps.isTag)(t); )
7783
+ for (var e, t = n.next; t !== null && !(0, Is.isTag)(t); )
7784
7784
  e = t, t = e.next;
7785
7785
  return t;
7786
7786
  }
7787
7787
  function np(n) {
7788
- for (var e, t = n.prev; t !== null && !(0, Ps.isTag)(t); )
7788
+ for (var e, t = n.prev; t !== null && !(0, Is.isTag)(t); )
7789
7789
  e = t, t = e.prev;
7790
7790
  return t;
7791
7791
  }
@@ -7939,7 +7939,7 @@ var Lt = ot, gr = ft, pu = {
7939
7939
  };
7940
7940
  }
7941
7941
  };
7942
- function Is(n, e) {
7942
+ function Ps(n, e) {
7943
7943
  return typeof e == "function" ? function(t) {
7944
7944
  return (0, Lt.isTag)(t) && e(t.attribs[n]);
7945
7945
  } : function(t) {
@@ -7954,7 +7954,7 @@ function fp(n, e) {
7954
7954
  function Oc(n) {
7955
7955
  var e = Object.keys(n).map(function(t) {
7956
7956
  var r = n[t];
7957
- return Object.prototype.hasOwnProperty.call(pu, t) ? pu[t](r) : Is(t, r);
7957
+ return Object.prototype.hasOwnProperty.call(pu, t) ? pu[t](r) : Ps(t, r);
7958
7958
  });
7959
7959
  return e.length === 0 ? null : e.reduce(fp);
7960
7960
  }
@@ -7968,13 +7968,13 @@ function hp(n, e, t, r) {
7968
7968
  return u ? (0, gr.filter)(u, e, t, r) : [];
7969
7969
  }
7970
7970
  function pp(n, e, t) {
7971
- return t === void 0 && (t = !0), Array.isArray(e) || (e = [e]), (0, gr.findOne)(Is("id", n), e, t);
7971
+ return t === void 0 && (t = !0), Array.isArray(e) || (e = [e]), (0, gr.findOne)(Ps("id", n), e, t);
7972
7972
  }
7973
7973
  function gp(n, e, t, r) {
7974
7974
  return t === void 0 && (t = !0), r === void 0 && (r = 1 / 0), (0, gr.filter)(pu.tag_name(n), e, t, r);
7975
7975
  }
7976
7976
  function mp(n, e, t, r) {
7977
- return t === void 0 && (t = !0), r === void 0 && (r = 1 / 0), (0, gr.filter)(Is("class", n), e, t, r);
7977
+ return t === void 0 && (t = !0), r === void 0 && (r = 1 / 0), (0, gr.filter)(Ps("class", n), e, t, r);
7978
7978
  }
7979
7979
  function bp(n, e, t, r) {
7980
7980
  return t === void 0 && (t = !0), r === void 0 && (r = 1 / 0), (0, gr.filter)(pu.tag_type(n), e, t, r);
@@ -7983,7 +7983,7 @@ var Kt = {};
7983
7983
  Object.defineProperty(Kt, "__esModule", { value: !0 });
7984
7984
  Kt.DocumentPosition = void 0;
7985
7985
  Kt.removeSubsets = yp;
7986
- Kt.compareDocumentPosition = Pc;
7986
+ Kt.compareDocumentPosition = Ic;
7987
7987
  Kt.uniqueSort = _p;
7988
7988
  var aa = ot;
7989
7989
  function yp(n) {
@@ -8005,7 +8005,7 @@ var Fe;
8005
8005
  (function(n) {
8006
8006
  n[n.DISCONNECTED = 1] = "DISCONNECTED", n[n.PRECEDING = 2] = "PRECEDING", n[n.FOLLOWING = 4] = "FOLLOWING", n[n.CONTAINS = 8] = "CONTAINS", n[n.CONTAINED_BY = 16] = "CONTAINED_BY";
8007
8007
  })(Fe || (Kt.DocumentPosition = Fe = {}));
8008
- function Pc(n, e) {
8008
+ function Ic(n, e) {
8009
8009
  var t = [], r = [];
8010
8010
  if (n === e)
8011
8011
  return 0;
@@ -8024,7 +8024,7 @@ function _p(n) {
8024
8024
  return n = n.filter(function(e, t, r) {
8025
8025
  return !r.includes(e, t + 1);
8026
8026
  }), n.sort(function(e, t) {
8027
- var r = Pc(e, t);
8027
+ var r = Ic(e, t);
8028
8028
  return r & Fe.PRECEDING ? -1 : r & Fe.FOLLOWING ? 1 : 0;
8029
8029
  }), n;
8030
8030
  }
@@ -8040,7 +8040,7 @@ function wp(n) {
8040
8040
  var e, t = n.children, r = {
8041
8041
  type: "atom",
8042
8042
  items: (0, mr.getElementsByTagName)("entry", t).map(function(s) {
8043
- var o, a = s.children, l = { media: Ic(a) };
8043
+ var o, a = s.children, l = { media: Pc(a) };
8044
8044
  ye(l, "id", "id", a), ye(l, "title", "title", a);
8045
8045
  var f = (o = gu("link", a)) === null || o === void 0 ? void 0 : o.attribs.href;
8046
8046
  f && (l.link = f);
@@ -8061,7 +8061,7 @@ function Sp(n) {
8061
8061
  type: n.name.substr(0, 3),
8062
8062
  id: "",
8063
8063
  items: (0, mr.getElementsByTagName)("item", n.children).map(function(s) {
8064
- var o = s.children, a = { media: Ic(o) };
8064
+ var o = s.children, a = { media: Pc(o) };
8065
8065
  ye(a, "id", "guid", o), ye(a, "title", "title", o), ye(a, "link", "link", o), ye(a, "description", "description", o);
8066
8066
  var l = vt("pubDate", o) || vt("dc:date", o);
8067
8067
  return l && (a.pubDate = new Date(l)), a;
@@ -8081,7 +8081,7 @@ var Tp = ["url", "type", "lang"], Cp = [
8081
8081
  "height",
8082
8082
  "width"
8083
8083
  ];
8084
- function Ic(n) {
8084
+ function Pc(n) {
8085
8085
  return (0, mr.getElementsByTagName)("media:content", n).map(function(e) {
8086
8086
  for (var t = e.attribs, r = {
8087
8087
  medium: t.medium,
@@ -8140,14 +8140,14 @@ function Ep(n) {
8140
8140
  } });
8141
8141
  })(jr);
8142
8142
  (function(n) {
8143
- var e = z && z.__createBinding || (Object.create ? function(y, b, _, w) {
8144
- w === void 0 && (w = _);
8145
- var T = Object.getOwnPropertyDescriptor(b, _);
8143
+ var e = z && z.__createBinding || (Object.create ? function(y, b, x, w) {
8144
+ w === void 0 && (w = x);
8145
+ var T = Object.getOwnPropertyDescriptor(b, x);
8146
8146
  (!T || ("get" in T ? !b.__esModule : T.writable || T.configurable)) && (T = { enumerable: !0, get: function() {
8147
- return b[_];
8147
+ return b[x];
8148
8148
  } }), Object.defineProperty(y, w, T);
8149
- } : function(y, b, _, w) {
8150
- w === void 0 && (w = _), y[w] = b[_];
8149
+ } : function(y, b, x, w) {
8150
+ w === void 0 && (w = x), y[w] = b[x];
8151
8151
  }), t = z && z.__setModuleDefault || (Object.create ? function(y, b) {
8152
8152
  Object.defineProperty(y, "default", { enumerable: !0, value: b });
8153
8153
  } : function(y, b) {
@@ -8155,7 +8155,7 @@ function Ep(n) {
8155
8155
  }), r = z && z.__importStar || function(y) {
8156
8156
  if (y && y.__esModule) return y;
8157
8157
  var b = {};
8158
- if (y != null) for (var _ in y) _ !== "default" && Object.prototype.hasOwnProperty.call(y, _) && e(b, y, _);
8158
+ if (y != null) for (var x in y) x !== "default" && Object.prototype.hasOwnProperty.call(y, x) && e(b, y, x);
8159
8159
  return t(b, y), b;
8160
8160
  }, u = z && z.__importDefault || function(y) {
8161
8161
  return y && y.__esModule ? y : { default: y };
@@ -8172,16 +8172,16 @@ function Ep(n) {
8172
8172
  return a.DomHandler;
8173
8173
  } });
8174
8174
  function l(y, b) {
8175
- var _ = new o.DomHandler(void 0, b);
8176
- return new i.Parser(_, b).end(y), _.root;
8175
+ var x = new o.DomHandler(void 0, b);
8176
+ return new i.Parser(x, b).end(y), x.root;
8177
8177
  }
8178
8178
  n.parseDocument = l;
8179
8179
  function f(y, b) {
8180
8180
  return l(y, b).children;
8181
8181
  }
8182
8182
  n.parseDOM = f;
8183
- function h(y, b, _) {
8184
- var w = new o.DomHandler(y, b, _);
8183
+ function h(y, b, x) {
8184
+ var w = new o.DomHandler(y, b, x);
8185
8185
  return new i.Parser(w, b);
8186
8186
  }
8187
8187
  n.createDomStream = h;
@@ -8220,16 +8220,16 @@ function kp(n) {
8220
8220
  }
8221
8221
  Ds.isPlainObject = kp;
8222
8222
  var Ap = function(e) {
8223
- return Op(e) && !Pp(e);
8223
+ return Op(e) && !Ip(e);
8224
8224
  };
8225
8225
  function Op(n) {
8226
8226
  return !!n && typeof n == "object";
8227
8227
  }
8228
- function Pp(n) {
8228
+ function Ip(n) {
8229
8229
  var e = Object.prototype.toString.call(n);
8230
8230
  return e === "[object RegExp]" || e === "[object Date]" || Dp(n);
8231
8231
  }
8232
- var Ip = typeof Symbol == "function" && Symbol.for, Lp = Ip ? Symbol.for("react.element") : 60103;
8232
+ var Pp = typeof Symbol == "function" && Symbol.for, Lp = Pp ? Symbol.for("react.element") : 60103;
8233
8233
  function Dp(n) {
8234
8234
  return n.$$typeof === Lp;
8235
8235
  }
@@ -8310,7 +8310,7 @@ var jp = fn, zp = jp, Dc = { exports: {} };
8310
8310
  for (var u = e.length, i = /^[ \t\n\r\u000c]+/, s = /^[, \t\n\r\u000c]+/, o = /^[^ \t\n\r\u000c]+/, a = /[,]+$/, l = /^\d+$/, f = /^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/, h, c, d, p, m, g = 0, y = []; ; ) {
8311
8311
  if (r(s), g >= u)
8312
8312
  return y;
8313
- h = r(o), c = [], h.slice(-1) === "," ? (h = h.replace(a, ""), _()) : b();
8313
+ h = r(o), c = [], h.slice(-1) === "," ? (h = h.replace(a, ""), x()) : b();
8314
8314
  }
8315
8315
  function b() {
8316
8316
  for (r(i), d = "", p = "in descriptor"; ; ) {
@@ -8318,12 +8318,12 @@ var jp = fn, zp = jp, Dc = { exports: {} };
8318
8318
  if (t(m))
8319
8319
  d && (c.push(d), d = "", p = "after descriptor");
8320
8320
  else if (m === ",") {
8321
- g += 1, d && c.push(d), _();
8321
+ g += 1, d && c.push(d), x();
8322
8322
  return;
8323
8323
  } else if (m === "(")
8324
8324
  d = d + m, p = "in parens";
8325
8325
  else if (m === "") {
8326
- d && c.push(d), _();
8326
+ d && c.push(d), x();
8327
8327
  return;
8328
8328
  } else
8329
8329
  d = d + m;
@@ -8331,24 +8331,24 @@ var jp = fn, zp = jp, Dc = { exports: {} };
8331
8331
  if (m === ")")
8332
8332
  d = d + m, p = "in descriptor";
8333
8333
  else if (m === "") {
8334
- c.push(d), _();
8334
+ c.push(d), x();
8335
8335
  return;
8336
8336
  } else
8337
8337
  d = d + m;
8338
8338
  else if (p === "after descriptor" && !t(m))
8339
8339
  if (m === "") {
8340
- _();
8340
+ x();
8341
8341
  return;
8342
8342
  } else
8343
8343
  p = "in descriptor", g -= 1;
8344
8344
  g += 1;
8345
8345
  }
8346
8346
  }
8347
- function _() {
8348
- var w = !1, T, S, P, C, L = {}, j, x, N, A, B;
8347
+ function x() {
8348
+ var w = !1, T, S, I, C, L = {}, j, v, N, A, B;
8349
8349
  for (C = 0; C < c.length; C++)
8350
- j = c[C], x = j[j.length - 1], N = j.substring(0, j.length - 1), A = parseInt(N, 10), B = parseFloat(N), l.test(N) && x === "w" ? ((T || S) && (w = !0), A === 0 ? w = !0 : T = A) : f.test(N) && x === "x" ? ((T || S || P) && (w = !0), B < 0 ? w = !0 : S = B) : l.test(N) && x === "h" ? ((P || S) && (w = !0), A === 0 ? w = !0 : P = A) : w = !0;
8351
- w ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + j + "'.") : (L.url = h, T && (L.w = T), S && (L.d = S), P && (L.h = P), y.push(L));
8350
+ j = c[C], v = j[j.length - 1], N = j.substring(0, j.length - 1), A = parseInt(N, 10), B = parseFloat(N), l.test(N) && v === "w" ? ((T || S) && (w = !0), A === 0 ? w = !0 : T = A) : f.test(N) && v === "x" ? ((T || S || I) && (w = !0), B < 0 ? w = !0 : S = B) : l.test(N) && v === "h" ? ((I || S) && (w = !0), A === 0 ? w = !0 : I = A) : w = !0;
8351
+ w ? console && console.log && console.log("Invalid srcset descriptor found in '" + e + "' at '" + j + "'.") : (L.url = h, T && (L.w = T), S && (L.d = S), I && (L.h = I), y.push(L));
8352
8352
  }
8353
8353
  };
8354
8354
  });
@@ -8387,9 +8387,9 @@ let fa = Wp, da = je, Mi = class Rc extends Error {
8387
8387
  let m = 20, g = Math.max(0, this.column - m), y = Math.max(
8388
8388
  this.column + m,
8389
8389
  this.endColumn + m
8390
- ), b = f.slice(g, y), _ = r(d.replace(/\d/g, " ")) + f.slice(0, Math.min(this.column - 1, m - 1)).replace(/[^\t]/g, " ");
8390
+ ), b = f.slice(g, y), x = r(d.replace(/\d/g, " ")) + f.slice(0, Math.min(this.column - 1, m - 1)).replace(/[^\t]/g, " ");
8391
8391
  return u(">") + r(d) + i(b) + `
8392
- ` + _ + u("^");
8392
+ ` + x + u("^");
8393
8393
  }
8394
8394
  let p = r(d.replace(/\d/g, " ")) + f.slice(0, this.column - 1).replace(/[^\t]/g, " ");
8395
8395
  return u(">") + r(d) + i(f) + `
@@ -9596,10 +9596,10 @@ let { dirname: $r, relative: n0, resolve: r0, sep: u0 } = je, { SourceMapConsume
9596
9596
  }
9597
9597
  };
9598
9598
  var s0 = Ng;
9599
- const oi = 39, va = 34, Pr = 92, wa = 47, Ir = 10, Nn = 32, Lr = 12, Dr = 9, Mr = 13, kg = 91, Ag = 93, Og = 40, Pg = 41, Ig = 123, Lg = 125, Dg = 59, Mg = 42, Rg = 58, Bg = 64, Rr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Br = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Fg = /.[\r\n"'(/\\]/, Sa = /[\da-f]/i;
9599
+ const oi = 39, va = 34, Ir = 92, wa = 47, Pr = 10, Nn = 32, Lr = 12, Dr = 9, Mr = 13, kg = 91, Ag = 93, Og = 40, Ig = 41, Pg = 123, Lg = 125, Dg = 59, Mg = 42, Rg = 58, Bg = 64, Rr = /[\t\n\f\r "#'()/;[\\\]{}]/g, Br = /[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g, Fg = /.[\r\n"'(/\\]/, Sa = /[\da-f]/i;
9600
9600
  var qg = function(e, t = {}) {
9601
9601
  let r = e.css.valueOf(), u = t.ignoreErrors, i, s, o, a, l, f, h, c, d, p, m = r.length, g = 0, y = [], b = [];
9602
- function _() {
9602
+ function x() {
9603
9603
  return g;
9604
9604
  }
9605
9605
  function w(C) {
@@ -9613,7 +9613,7 @@ var qg = function(e, t = {}) {
9613
9613
  if (g >= m) return;
9614
9614
  let L = C ? C.ignoreUnclosed : !1;
9615
9615
  switch (i = r.charCodeAt(g), i) {
9616
- case Ir:
9616
+ case Pr:
9617
9617
  case Nn:
9618
9618
  case Dr:
9619
9619
  case Mr:
@@ -9621,23 +9621,23 @@ var qg = function(e, t = {}) {
9621
9621
  a = g;
9622
9622
  do
9623
9623
  a += 1, i = r.charCodeAt(a);
9624
- while (i === Nn || i === Ir || i === Dr || i === Mr || i === Lr);
9624
+ while (i === Nn || i === Pr || i === Dr || i === Mr || i === Lr);
9625
9625
  f = ["space", r.slice(g, a)], g = a - 1;
9626
9626
  break;
9627
9627
  }
9628
9628
  case kg:
9629
9629
  case Ag:
9630
- case Ig:
9630
+ case Pg:
9631
9631
  case Lg:
9632
9632
  case Rg:
9633
9633
  case Dg:
9634
- case Pg: {
9634
+ case Ig: {
9635
9635
  let j = String.fromCharCode(i);
9636
9636
  f = [j, j, g];
9637
9637
  break;
9638
9638
  }
9639
9639
  case Og: {
9640
- if (p = y.length ? y.pop()[1] : "", d = r.charCodeAt(g + 1), p === "url" && d !== oi && d !== va && d !== Nn && d !== Ir && d !== Dr && d !== Lr && d !== Mr) {
9640
+ if (p = y.length ? y.pop()[1] : "", d = r.charCodeAt(g + 1), p === "url" && d !== oi && d !== va && d !== Nn && d !== Pr && d !== Dr && d !== Lr && d !== Mr) {
9641
9641
  a = g;
9642
9642
  do {
9643
9643
  if (h = !1, a = r.indexOf(")", a + 1), a === -1)
@@ -9646,7 +9646,7 @@ var qg = function(e, t = {}) {
9646
9646
  break;
9647
9647
  } else
9648
9648
  w("bracket");
9649
- for (c = a; r.charCodeAt(c - 1) === Pr; )
9649
+ for (c = a; r.charCodeAt(c - 1) === Ir; )
9650
9650
  c -= 1, h = !h;
9651
9651
  } while (h);
9652
9652
  f = ["brackets", r.slice(g, a + 1), g, a], g = a;
@@ -9664,7 +9664,7 @@ var qg = function(e, t = {}) {
9664
9664
  break;
9665
9665
  } else
9666
9666
  w("string");
9667
- for (c = a; r.charCodeAt(c - 1) === Pr; )
9667
+ for (c = a; r.charCodeAt(c - 1) === Ir; )
9668
9668
  c -= 1, h = !h;
9669
9669
  } while (h);
9670
9670
  f = ["string", r.slice(g, a + 1), g, a], g = a;
@@ -9674,10 +9674,10 @@ var qg = function(e, t = {}) {
9674
9674
  Rr.lastIndex = g + 1, Rr.test(r), Rr.lastIndex === 0 ? a = r.length - 1 : a = Rr.lastIndex - 2, f = ["at-word", r.slice(g, a + 1), g, a], g = a;
9675
9675
  break;
9676
9676
  }
9677
- case Pr: {
9678
- for (a = g, o = !0; r.charCodeAt(a + 1) === Pr; )
9677
+ case Ir: {
9678
+ for (a = g, o = !0; r.charCodeAt(a + 1) === Ir; )
9679
9679
  a += 1, o = !o;
9680
- if (i = r.charCodeAt(a + 1), o && i !== wa && i !== Nn && i !== Ir && i !== Dr && i !== Mr && i !== Lr && (a += 1, Sa.test(r.charAt(a)))) {
9680
+ if (i = r.charCodeAt(a + 1), o && i !== wa && i !== Nn && i !== Pr && i !== Dr && i !== Mr && i !== Lr && (a += 1, Sa.test(r.charAt(a)))) {
9681
9681
  for (; Sa.test(r.charAt(a + 1)); )
9682
9682
  a += 1;
9683
9683
  r.charCodeAt(a + 1) === Nn && (a += 1);
@@ -9692,14 +9692,14 @@ var qg = function(e, t = {}) {
9692
9692
  }
9693
9693
  return g++, f;
9694
9694
  }
9695
- function P(C) {
9695
+ function I(C) {
9696
9696
  b.push(C);
9697
9697
  }
9698
9698
  return {
9699
- back: P,
9699
+ back: I,
9700
9700
  endOfFile: T,
9701
9701
  nextToken: S,
9702
- position: _
9702
+ position: x
9703
9703
  };
9704
9704
  };
9705
9705
  let Ug = qs, jg = ju, zg = zu, $g = yr, Ta = js, Wg = qg;
@@ -10565,9 +10565,9 @@ Y.Rule = b0;
10565
10565
  Y.Root = m0;
10566
10566
  Y.Node = E1;
10567
10567
  T1.registerPostcss(Y);
10568
- var P1 = Y;
10568
+ var I1 = Y;
10569
10569
  Y.default = Y;
10570
- const I1 = oc, Aa = Np, { isPlainObject: L1 } = Ds, Oa = zp, D1 = $p, { parse: M1 } = P1, R1 = [
10570
+ const P1 = oc, Aa = Np, { isPlainObject: L1 } = Ds, Oa = zp, D1 = $p, { parse: M1 } = I1, R1 = [
10571
10571
  "img",
10572
10572
  "audio",
10573
10573
  "video",
@@ -10586,7 +10586,7 @@ function en(n, e) {
10586
10586
  function tt(n, e) {
10587
10587
  return {}.hasOwnProperty.call(n, e);
10588
10588
  }
10589
- function Pa(n, e) {
10589
+ function Ia(n, e) {
10590
10590
  const t = [];
10591
10591
  return en(n, function(r) {
10592
10592
  e(r) && t.push(r);
@@ -10612,9 +10612,9 @@ function Yn(n, e, t) {
10612
10612
  return "";
10613
10613
  typeof n == "number" && (n = n.toString());
10614
10614
  let r = "", u = "";
10615
- function i(v, O) {
10615
+ function i(_, O) {
10616
10616
  const k = this;
10617
- this.tag = v, this.attribs = O || {}, this.tagPosition = r.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() {
10617
+ this.tag = _, this.attribs = O || {}, this.tagPosition = r.length, this.text = "", this.openingTagLength = 0, this.mediaChildren = [], this.updateParentNodeText = function() {
10618
10618
  if (g.length) {
10619
10619
  const U = g[g.length - 1];
10620
10620
  U.text += k.text;
@@ -10624,13 +10624,13 @@ function Yn(n, e, t) {
10624
10624
  };
10625
10625
  }
10626
10626
  e = Object.assign({}, Yn.defaults, e), e.parser = Object.assign({}, z1, e.parser);
10627
- const s = function(v) {
10628
- return e.allowedTags === !1 || (e.allowedTags || []).indexOf(v) > -1;
10627
+ const s = function(_) {
10628
+ return e.allowedTags === !1 || (e.allowedTags || []).indexOf(_) > -1;
10629
10629
  };
10630
- B1.forEach(function(v) {
10631
- s(v) && !e.allowVulnerableTags && console.warn(`
10630
+ B1.forEach(function(_) {
10631
+ s(_) && !e.allowVulnerableTags && console.warn(`
10632
10632
 
10633
- ⚠️ Your \`allowedTags\` option includes, \`${v}\`, which is inherently
10633
+ ⚠️ Your \`allowedTags\` option includes, \`${_}\`, which is inherently
10634
10634
  vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
10635
10635
  Or, to disable this warning, add the \`allowVulnerableTags\` option
10636
10636
  and ensure you are accounting for this risk.
@@ -10644,54 +10644,54 @@ and ensure you are accounting for this risk.
10644
10644
  "option"
10645
10645
  ];
10646
10646
  let a, l;
10647
- e.allowedAttributes && (a = {}, l = {}, en(e.allowedAttributes, function(v, O) {
10647
+ e.allowedAttributes && (a = {}, l = {}, en(e.allowedAttributes, function(_, O) {
10648
10648
  a[O] = [];
10649
10649
  const k = [];
10650
- v.forEach(function(U) {
10650
+ _.forEach(function(U) {
10651
10651
  typeof U == "string" && U.indexOf("*") >= 0 ? k.push(Aa(U).replace(/\\\*/g, ".*")) : a[O].push(U);
10652
10652
  }), k.length && (l[O] = new RegExp("^(" + k.join("|") + ")$"));
10653
10653
  }));
10654
10654
  const f = {}, h = {}, c = {};
10655
- en(e.allowedClasses, function(v, O) {
10656
- if (a && (tt(a, O) || (a[O] = []), a[O].push("class")), f[O] = v, Array.isArray(v)) {
10655
+ en(e.allowedClasses, function(_, O) {
10656
+ if (a && (tt(a, O) || (a[O] = []), a[O].push("class")), f[O] = _, Array.isArray(_)) {
10657
10657
  const k = [];
10658
- f[O] = [], c[O] = [], v.forEach(function(U) {
10658
+ f[O] = [], c[O] = [], _.forEach(function(U) {
10659
10659
  typeof U == "string" && U.indexOf("*") >= 0 ? k.push(Aa(U).replace(/\\\*/g, ".*")) : U instanceof RegExp ? c[O].push(U) : f[O].push(U);
10660
10660
  }), k.length && (h[O] = new RegExp("^(" + k.join("|") + ")$"));
10661
10661
  }
10662
10662
  });
10663
10663
  const d = {};
10664
10664
  let p;
10665
- en(e.transformTags, function(v, O) {
10665
+ en(e.transformTags, function(_, O) {
10666
10666
  let k;
10667
- typeof v == "function" ? k = v : typeof v == "string" && (k = Yn.simpleTransform(v)), O === "*" ? p = k : d[O] = k;
10667
+ typeof _ == "function" ? k = _ : typeof _ == "string" && (k = Yn.simpleTransform(_)), O === "*" ? p = k : d[O] = k;
10668
10668
  });
10669
- let m, g, y, b, _, w, T = !1;
10670
- P();
10671
- const S = new I1.Parser({
10672
- onopentag: function(v, O) {
10673
- if (e.onOpenTag && e.onOpenTag(v, O), e.enforceHtmlBoundary && v === "html" && P(), _) {
10669
+ let m, g, y, b, x, w, T = !1;
10670
+ I();
10671
+ const S = new P1.Parser({
10672
+ onopentag: function(_, O) {
10673
+ if (e.onOpenTag && e.onOpenTag(_, O), e.enforceHtmlBoundary && _ === "html" && I(), x) {
10674
10674
  w++;
10675
10675
  return;
10676
10676
  }
10677
- const k = new i(v, O);
10677
+ const k = new i(_, O);
10678
10678
  g.push(k);
10679
10679
  let U = !1;
10680
10680
  const R = !!k.text;
10681
10681
  let W;
10682
- if (tt(d, v) && (W = d[v](v, O), k.attribs = O = W.attribs, W.text !== void 0 && (k.innerText = W.text), v !== W.tagName && (k.name = v = W.tagName, b[m] = W.tagName)), p && (W = p(v, O), k.attribs = O = W.attribs, v !== W.tagName && (k.name = v = W.tagName, b[m] = W.tagName)), (!s(v) || e.disallowedTagsMode === "recursiveEscape" && !F1(y) || e.nestingLimit != null && m >= e.nestingLimit) && (U = !0, y[m] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && o.indexOf(v) !== -1 && (_ = !0, w = 1)), m++, U) {
10682
+ if (tt(d, _) && (W = d[_](_, O), k.attribs = O = W.attribs, W.text !== void 0 && (k.innerText = W.text), _ !== W.tagName && (k.name = _ = W.tagName, b[m] = W.tagName)), p && (W = p(_, O), k.attribs = O = W.attribs, _ !== W.tagName && (k.name = _ = W.tagName, b[m] = W.tagName)), (!s(_) || e.disallowedTagsMode === "recursiveEscape" && !F1(y) || e.nestingLimit != null && m >= e.nestingLimit) && (U = !0, y[m] = !0, (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && o.indexOf(_) !== -1 && (x = !0, w = 1)), m++, U) {
10683
10683
  if (e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
10684
10684
  if (k.innerText && !R) {
10685
10685
  const G = C(k.innerText);
10686
- e.textFilter ? r += e.textFilter(G, v) : r += G, T = !0;
10686
+ e.textFilter ? r += e.textFilter(G, _) : r += G, T = !0;
10687
10687
  }
10688
10688
  return;
10689
10689
  }
10690
10690
  u = r, r = "";
10691
10691
  }
10692
- r += "<" + v, v === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (k.innerText = ""), U && (e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") && e.preserveEscapedAttributes ? en(O, function(G, K) {
10692
+ r += "<" + _, _ === "script" && (e.allowedScriptHostnames || e.allowedScriptDomains) && (k.innerText = ""), U && (e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") && e.preserveEscapedAttributes ? en(O, function(G, K) {
10693
10693
  r += " " + K + '="' + C(G || "", !0) + '"';
10694
- }) : (!a || tt(a, v) || a["*"]) && en(O, function(G, K) {
10694
+ }) : (!a || tt(a, _) || a["*"]) && en(O, function(G, K) {
10695
10695
  if (!j1.test(K)) {
10696
10696
  delete k.attribs[K];
10697
10697
  return;
@@ -10701,10 +10701,10 @@ and ensure you are accounting for this risk.
10701
10701
  return;
10702
10702
  }
10703
10703
  let De = !1;
10704
- if (!a || tt(a, v) && a[v].indexOf(K) !== -1 || a["*"] && a["*"].indexOf(K) !== -1 || tt(l, v) && l[v].test(K) || l["*"] && l["*"].test(K))
10704
+ if (!a || tt(a, _) && a[_].indexOf(K) !== -1 || a["*"] && a["*"].indexOf(K) !== -1 || tt(l, _) && l[_].test(K) || l["*"] && l["*"].test(K))
10705
10705
  De = !0;
10706
- else if (a && a[v]) {
10707
- for (const $ of a[v])
10706
+ else if (a && a[_]) {
10707
+ for (const $ of a[_])
10708
10708
  if (L1($) && $.name && $.name === K) {
10709
10709
  De = !0;
10710
10710
  let Z = "";
@@ -10717,11 +10717,11 @@ and ensure you are accounting for this risk.
10717
10717
  }
10718
10718
  }
10719
10719
  if (De) {
10720
- if (e.allowedSchemesAppliedToAttributes.indexOf(K) !== -1 && L(v, G)) {
10720
+ if (e.allowedSchemesAppliedToAttributes.indexOf(K) !== -1 && L(_, G)) {
10721
10721
  delete k.attribs[K];
10722
10722
  return;
10723
10723
  }
10724
- if (v === "script" && K === "src") {
10724
+ if (_ === "script" && K === "src") {
10725
10725
  let $ = !0;
10726
10726
  try {
10727
10727
  const Z = j(G);
@@ -10741,7 +10741,7 @@ and ensure you are accounting for this risk.
10741
10741
  return;
10742
10742
  }
10743
10743
  }
10744
- if (v === "iframe" && K === "src") {
10744
+ if (_ === "iframe" && K === "src") {
10745
10745
  let $ = !0;
10746
10746
  try {
10747
10747
  const Z = j(G);
@@ -10768,10 +10768,10 @@ and ensure you are accounting for this risk.
10768
10768
  let $ = D1(G);
10769
10769
  if ($.forEach(function(Z) {
10770
10770
  L("srcset", Z.url) && (Z.evil = !0);
10771
- }), $ = Pa($, function(Z) {
10771
+ }), $ = Ia($, function(Z) {
10772
10772
  return !Z.evil;
10773
10773
  }), $.length)
10774
- G = q1(Pa($, function(Z) {
10774
+ G = q1(Ia($, function(Z) {
10775
10775
  return !Z.evil;
10776
10776
  })), k.attribs[K] = G;
10777
10777
  else {
@@ -10783,13 +10783,21 @@ and ensure you are accounting for this risk.
10783
10783
  return;
10784
10784
  }
10785
10785
  if (K === "class") {
10786
- const $ = f[v], Z = f["*"], Te = h[v], ge = c[v], me = c["*"], _0 = h["*"], Hs = [
10786
+ const $ = f[_], Z = f["*"], Te = h[_], ge = c[_], me = c["*"], _0 = h["*"], Hs = [
10787
10787
  Te,
10788
10788
  _0
10789
10789
  ].concat(ge, me).filter(function(x0) {
10790
10790
  return x0;
10791
10791
  });
10792
- if ($ && Z ? G = B(G, Oa($, Z), Hs) : G = B(G, $ || Z, Hs), !G.length) {
10792
+ if ($ && Z ? G = B(
10793
+ G,
10794
+ Oa($, Z),
10795
+ Hs
10796
+ ) : G = B(
10797
+ G,
10798
+ $ || Z,
10799
+ Hs
10800
+ ), !G.length) {
10793
10801
  delete k.attribs[K];
10794
10802
  return;
10795
10803
  }
@@ -10797,13 +10805,16 @@ and ensure you are accounting for this risk.
10797
10805
  if (K === "style") {
10798
10806
  if (e.parseStyleAttributes)
10799
10807
  try {
10800
- const $ = M1(v + " {" + G + "}", { map: !1 }), Z = x($, e.allowedStyles);
10808
+ const $ = M1(_ + " {" + G + "}", { map: !1 }), Z = v(
10809
+ $,
10810
+ e.allowedStyles
10811
+ );
10801
10812
  if (G = N(Z), G.length === 0) {
10802
10813
  delete k.attribs[K];
10803
10814
  return;
10804
10815
  }
10805
10816
  } catch {
10806
- typeof window < "u" && console.warn('Failed to parse "' + v + " {" + G + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete k.attribs[K];
10817
+ typeof window < "u" && console.warn('Failed to parse "' + _ + " {" + G + `}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`), delete k.attribs[K];
10807
10818
  return;
10808
10819
  }
10809
10820
  else if (e.allowedStyles)
@@ -10812,40 +10823,40 @@ and ensure you are accounting for this risk.
10812
10823
  r += " " + K, G && G.length ? r += '="' + C(G, !0) + '"' : e.allowedEmptyAttributes.includes(K) && (r += '=""');
10813
10824
  } else
10814
10825
  delete k.attribs[K];
10815
- }), e.selfClosing.indexOf(v) !== -1 ? r += " />" : (r += ">", k.innerText && !R && !e.textFilter && (r += C(k.innerText), T = !0)), U && (r = u + C(r), u = ""), k.openingTagLength = r.length - k.tagPosition;
10826
+ }), e.selfClosing.indexOf(_) !== -1 ? r += " />" : (r += ">", k.innerText && !R && !e.textFilter && (r += C(k.innerText), T = !0)), U && (r = u + C(r), u = ""), k.openingTagLength = r.length - k.tagPosition;
10816
10827
  },
10817
- ontext: function(v) {
10818
- if (_)
10828
+ ontext: function(_) {
10829
+ if (x)
10819
10830
  return;
10820
10831
  const O = g[g.length - 1];
10821
10832
  let k;
10822
- if (O && (k = O.tag, v = O.innerText !== void 0 ? O.innerText : v), e.disallowedTagsMode === "completelyDiscard" && !s(k))
10823
- v = "";
10833
+ if (O && (k = O.tag, _ = O.innerText !== void 0 ? O.innerText : _), e.disallowedTagsMode === "completelyDiscard" && !s(k))
10834
+ _ = "";
10824
10835
  else if ((e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") && (k === "script" || k === "style"))
10825
- r += v;
10836
+ r += _;
10826
10837
  else if (!T) {
10827
- const U = C(v, !1);
10838
+ const U = C(_, !1);
10828
10839
  e.textFilter ? r += e.textFilter(U, k) : r += U;
10829
10840
  }
10830
10841
  if (g.length) {
10831
10842
  const U = g[g.length - 1];
10832
- U.text += v;
10843
+ U.text += _;
10833
10844
  }
10834
10845
  },
10835
- onclosetag: function(v, O) {
10836
- if (e.onCloseTag && e.onCloseTag(v, O), _)
10846
+ onclosetag: function(_, O) {
10847
+ if (e.onCloseTag && e.onCloseTag(_, O), x)
10837
10848
  if (w--, !w)
10838
- _ = !1;
10849
+ x = !1;
10839
10850
  else
10840
10851
  return;
10841
10852
  const k = g.pop();
10842
10853
  if (!k)
10843
10854
  return;
10844
- if (k.tag !== v) {
10855
+ if (k.tag !== _) {
10845
10856
  g.push(k);
10846
10857
  return;
10847
10858
  }
10848
- _ = e.enforceHtmlBoundary ? v === "html" : !1, m--;
10859
+ x = e.enforceHtmlBoundary ? _ === "html" : !1, m--;
10849
10860
  const U = y[m];
10850
10861
  if (U) {
10851
10862
  if (delete y[m], e.disallowedTagsMode === "discard" || e.disallowedTagsMode === "completelyDiscard") {
@@ -10854,7 +10865,7 @@ and ensure you are accounting for this risk.
10854
10865
  }
10855
10866
  u = r, r = "";
10856
10867
  }
10857
- if (b[m] && (v = b[m], delete b[m]), e.exclusiveFilter) {
10868
+ if (b[m] && (_ = b[m], delete b[m]), e.exclusiveFilter) {
10858
10869
  const R = e.exclusiveFilter(k);
10859
10870
  if (R === "excludeTag") {
10860
10871
  U && (r = u, u = ""), r = r.substring(0, k.tagPosition) + r.substring(k.tagPosition + k.openingTagLength);
@@ -10865,22 +10876,29 @@ and ensure you are accounting for this risk.
10865
10876
  }
10866
10877
  }
10867
10878
  if (k.updateParentNodeMediaChildren(), k.updateParentNodeText(), // Already output />
10868
- e.selfClosing.indexOf(v) !== -1 || // Escaped tag, closing tag is implied
10869
- O && !s(v) && ["escape", "recursiveEscape"].indexOf(e.disallowedTagsMode) >= 0) {
10879
+ e.selfClosing.indexOf(_) !== -1 || // Escaped tag, closing tag is implied
10880
+ O && !s(_) && ["escape", "recursiveEscape"].indexOf(e.disallowedTagsMode) >= 0) {
10870
10881
  U && (r = u, u = "");
10871
10882
  return;
10872
10883
  }
10873
- r += "</" + v + ">", U && (r = u + C(r), u = ""), T = !1;
10884
+ r += "</" + _ + ">", U && (r = u + C(r), u = ""), T = !1;
10874
10885
  }
10875
10886
  }, e.parser);
10876
- return S.write(n), S.end(), r;
10877
- function P() {
10878
- r = "", m = 0, g = [], y = {}, b = {}, _ = !1, w = 0;
10887
+ if (S.write(n), S.end(), e.disallowedTagsMode === "escape" || e.disallowedTagsMode === "recursiveEscape") {
10888
+ const _ = S.endIndex;
10889
+ if (_ != null && _ >= 0 && _ < n.length) {
10890
+ const O = n.substring(_);
10891
+ r += C(O);
10892
+ } else (_ == null || _ < 0) && n.length > 0 && r === "" && (r = C(n));
10879
10893
  }
10880
- function C(v, O) {
10881
- return typeof v != "string" && (v = v + ""), e.parser.decodeEntities && (v = v.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O && (v = v.replace(/"/g, "&quot;"))), v = v.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O && (v = v.replace(/"/g, "&quot;")), v;
10894
+ return r;
10895
+ function I() {
10896
+ r = "", m = 0, g = [], y = {}, b = {}, x = !1, w = 0;
10897
+ }
10898
+ function C(_, O) {
10899
+ return typeof _ != "string" && (_ = _ + ""), e.parser.decodeEntities && (_ = _.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O && (_ = _.replace(/"/g, "&quot;"))), _ = _.replace(/&(?![a-zA-Z0-9#]{1,20};)/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), O && (_ = _.replace(/"/g, "&quot;")), _;
10882
10900
  }
10883
- function L(v, O) {
10901
+ function L(_, O) {
10884
10902
  for (O = O.replace(/[\x00-\x20]+/g, ""); ; ) {
10885
10903
  const R = O.indexOf("<!--");
10886
10904
  if (R === -1)
@@ -10894,50 +10912,50 @@ and ensure you are accounting for this risk.
10894
10912
  if (!k)
10895
10913
  return O.match(/^[/\\]{2}/) ? !e.allowProtocolRelative : !1;
10896
10914
  const U = k[1].toLowerCase();
10897
- return tt(e.allowedSchemesByTag, v) ? e.allowedSchemesByTag[v].indexOf(U) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(U) === -1;
10915
+ return tt(e.allowedSchemesByTag, _) ? e.allowedSchemesByTag[_].indexOf(U) === -1 : !e.allowedSchemes || e.allowedSchemes.indexOf(U) === -1;
10898
10916
  }
10899
- function j(v) {
10900
- if (v = v.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), v.startsWith("relative:"))
10917
+ function j(_) {
10918
+ if (_ = _.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/, "$1//"), _.startsWith("relative:"))
10901
10919
  throw new Error("relative: exploit attempt");
10902
10920
  let O = "relative://relative-site";
10903
10921
  for (let R = 0; R < 100; R++)
10904
10922
  O += `/${R}`;
10905
- const k = new URL(v, O);
10923
+ const k = new URL(_, O);
10906
10924
  return {
10907
10925
  isRelativeUrl: k && k.hostname === "relative-site" && k.protocol === "relative:",
10908
10926
  url: k
10909
10927
  };
10910
10928
  }
10911
- function x(v, O) {
10929
+ function v(_, O) {
10912
10930
  if (!O)
10913
- return v;
10914
- const k = v.nodes[0];
10931
+ return _;
10932
+ const k = _.nodes[0];
10915
10933
  let U;
10916
10934
  return O[k.selector] && O["*"] ? U = Oa(
10917
10935
  O[k.selector],
10918
10936
  O["*"]
10919
- ) : U = O[k.selector] || O["*"], U && (v.nodes[0].nodes = k.nodes.reduce(A(U), [])), v;
10937
+ ) : U = O[k.selector] || O["*"], U && (_.nodes[0].nodes = k.nodes.reduce(A(U), [])), _;
10920
10938
  }
10921
- function N(v) {
10922
- return v.nodes[0].nodes.reduce(function(O, k) {
10939
+ function N(_) {
10940
+ return _.nodes[0].nodes.reduce(function(O, k) {
10923
10941
  return O.push(
10924
10942
  `${k.prop}:${k.value}${k.important ? " !important" : ""}`
10925
10943
  ), O;
10926
10944
  }, []).join(";");
10927
10945
  }
10928
- function A(v) {
10946
+ function A(_) {
10929
10947
  return function(O, k) {
10930
- return tt(v, k.prop) && v[k.prop].some(function(R) {
10948
+ return tt(_, k.prop) && _[k.prop].some(function(R) {
10931
10949
  return R.test(k.value);
10932
10950
  }) && O.push(k), O;
10933
10951
  };
10934
10952
  }
10935
- function B(v, O, k) {
10936
- return O ? (v = v.split(/\s+/), v.filter(function(U) {
10953
+ function B(_, O, k) {
10954
+ return O ? (_ = _.split(/\s+/), _.filter(function(U) {
10937
10955
  return O.indexOf(U) !== -1 || k.some(function(R) {
10938
10956
  return R.test(U);
10939
10957
  });
10940
- }).join(" ")) : v;
10958
+ }).join(" ")) : _;
10941
10959
  }
10942
10960
  }
10943
10961
  const z1 = {
@@ -11253,7 +11271,7 @@ Yn.simpleTransform = function(n, e, t) {
11253
11271
  };
11254
11272
  };
11255
11273
  const $1 = /* @__PURE__ */ yh(U1), y0 = mn();
11256
- class _r extends Il {
11274
+ class _r extends Pl {
11257
11275
  constructor(t, r, u, i, s) {
11258
11276
  super(s);
11259
11277
  vn(this, "__src");
@@ -11348,7 +11366,7 @@ function Xi({
11348
11366
  }) {
11349
11367
  return new _r(t, n, r, e);
11350
11368
  }
11351
- function Ia(n) {
11369
+ function Pa(n) {
11352
11370
  return n instanceof _r;
11353
11371
  }
11354
11372
  const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1 = "_toolbar_1vazb_36", K1 = "_bold_1vazb_55", J1 = "_italic_1vazb_59", X1 = "_link_1vazb_63", Z1 = "_list_1vazb_69", Q1 = "_paragraph_1vazb_70", ce = {
@@ -11362,12 +11380,12 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11362
11380
  list: Z1,
11363
11381
  paragraph: Q1
11364
11382
  }, Y1 = () => {
11365
- const [n] = Ie(), [e, t] = be(!1), [r, u] = be(!1), [i, s] = be(!1), [o, a] = be(!1), [l, f] = be(!1), [h, c] = be(""), [d, p] = be(null), [m, g] = be(""), y = An(null), b = An(null), _ = An(null), w = An(!1), T = (R) => R.preventDefault(), S = ke((R) => {
11366
- _.current = I(R) ? R.clone() : null;
11367
- }, []), P = ke((R) => {
11383
+ const [n] = Pe(), [e, t] = be(!1), [r, u] = be(!1), [i, s] = be(!1), [o, a] = be(!1), [l, f] = be(!1), [h, c] = be(""), [d, p] = be(null), [m, g] = be(""), y = An(null), b = An(null), x = An(null), w = An(!1), T = (R) => R.preventDefault(), S = ke((R) => {
11384
+ x.current = P(R) ? R.clone() : null;
11385
+ }, []), I = ke((R) => {
11368
11386
  n.update(() => {
11369
- _.current && Oe(_.current);
11370
- }), R(), _.current = null;
11387
+ x.current && Oe(x.current);
11388
+ }), R(), x.current = null;
11371
11389
  }, [n]), C = (R) => {
11372
11390
  w.current = !0, R.preventDefault();
11373
11391
  }, L = () => {
@@ -11375,17 +11393,17 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11375
11393
  w.current = !1;
11376
11394
  return;
11377
11395
  }
11378
- v();
11396
+ _();
11379
11397
  }, j = ke(() => {
11380
11398
  u(!1), c(""), p(null);
11381
- }, []), x = ke(() => {
11399
+ }, []), v = ke(() => {
11382
11400
  a(!1), g("");
11383
11401
  }, []), N = ke((R) => {
11384
- u(!0), c((R == null ? void 0 : R.src) ?? ""), p((R == null ? void 0 : R.key) ?? null), x(), setTimeout(() => {
11402
+ u(!0), c((R == null ? void 0 : R.src) ?? ""), p((R == null ? void 0 : R.key) ?? null), v(), setTimeout(() => {
11385
11403
  var W;
11386
11404
  return (W = y.current) == null ? void 0 : W.focus();
11387
11405
  }, 0);
11388
- }, [x]), A = ke((R) => {
11406
+ }, [v]), A = ke((R) => {
11389
11407
  n.getEditorState().read(() => {
11390
11408
  S(q());
11391
11409
  }), a(!0), g(R), j(), setTimeout(() => {
@@ -11393,13 +11411,13 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11393
11411
  return (W = b.current) == null ? void 0 : W.focus();
11394
11412
  }, 0);
11395
11413
  }, [j, n, S]), B = ke(() => {
11396
- P(() => {
11414
+ I(() => {
11397
11415
  n.dispatchCommand(on, {
11398
11416
  url: m,
11399
11417
  target: "_blank"
11400
11418
  });
11401
- }), x();
11402
- }, [x, n, m, P]), v = ke(() => {
11419
+ }), v();
11420
+ }, [v, n, m, I]), _ = ke(() => {
11403
11421
  const R = h.trim();
11404
11422
  if (!R) {
11405
11423
  j();
@@ -11408,7 +11426,7 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11408
11426
  n.update(() => {
11409
11427
  if (d) {
11410
11428
  const W = oe(d);
11411
- Ia(W) && W.setSrc(R);
11429
+ Pa(W) && W.setSrc(R);
11412
11430
  return;
11413
11431
  }
11414
11432
  _s([Xi({
@@ -11422,18 +11440,18 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11422
11440
  }
11423
11441
  n.update(() => {
11424
11442
  const R = oe(d);
11425
- if (Ia(R)) {
11443
+ if (Pa(R)) {
11426
11444
  const W = R.getParent();
11427
11445
  jt(W) && W.getChildrenSize() === 1 ? W.remove() : R.remove();
11428
11446
  }
11429
11447
  }), j();
11430
11448
  }, [j, n, d]), k = ke(() => {
11431
- P(() => {
11449
+ I(() => {
11432
11450
  n.dispatchCommand(on, null);
11433
- }), x();
11434
- }, [x, n, P]), U = ke(() => {
11451
+ }), v();
11452
+ }, [v, n, I]), U = ke(() => {
11435
11453
  const R = q();
11436
- if (!I(R)) {
11454
+ if (!P(R)) {
11437
11455
  if (Ae(R)) {
11438
11456
  const ht = R.getNodes(), G = ht[0] ?? null, K = (G == null ? void 0 : G.getParent()) ?? null;
11439
11457
  t(ht.some(($) => D($) && $.hasFormat("bold"))), s(ht.some(($) => D($) && $.hasFormat("italic"))), f(X(K) || ne(K) || X(G) || ne(G));
@@ -11442,10 +11460,10 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11442
11460
  a(!0), g(De.getURL());
11443
11461
  return;
11444
11462
  }
11445
- a(!1), g(""), _.current = null;
11463
+ a(!1), g(""), x.current = null;
11446
11464
  return;
11447
11465
  }
11448
- t(!1), s(!1), f(!1), a(!1), g(""), _.current = null;
11466
+ t(!1), s(!1), f(!1), a(!1), g(""), x.current = null;
11449
11467
  return;
11450
11468
  }
11451
11469
  const [W] = R.getNodes(), Le = (W == null ? void 0 : W.getParent()) ?? null;
@@ -11453,7 +11471,7 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11453
11471
  a(!0), g(Le.getURL()), S(R);
11454
11472
  return;
11455
11473
  }
11456
- a(!1), g(""), _.current = null;
11474
+ a(!1), g(""), x.current = null;
11457
11475
  }, [S]);
11458
11476
  return Se(() => ct(n.registerUpdateListener(({
11459
11477
  editorState: R
@@ -11495,9 +11513,9 @@ const W1 = "_editor_1vazb_1", H1 = "_meta_1vazb_17", V1 = "_active_1vazb_25", G1
11495
11513
  ] }),
11496
11514
  r && /* @__PURE__ */ Dt(Hr, { children: [
11497
11515
  /* @__PURE__ */ H(Vs, { className: pt(ce.active), onBlur: L, onChange: (R) => c(R.target.value), onKeyDown: (R) => {
11498
- R.key === "Enter" && (R.preventDefault(), w.current = !0, v());
11516
+ R.key === "Enter" && (R.preventDefault(), w.current = !0, _());
11499
11517
  }, ref: y, value: h }),
11500
- /* @__PURE__ */ H(Xe, { onClick: () => v(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "check", variant: "primary" }) }),
11518
+ /* @__PURE__ */ H(Xe, { onClick: () => _(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "check", variant: "primary" }) }),
11501
11519
  /* @__PURE__ */ H(Xe, { onClick: () => O(), onMouseDown: C, variant: "minimal", children: /* @__PURE__ */ H(Ze, { name: "trash", variant: "danger" }) })
11502
11520
  ] })
11503
11521
  ] })
@@ -11530,7 +11548,7 @@ function rm(n) {
11530
11548
  function um({
11531
11549
  content: n = ""
11532
11550
  }) {
11533
- const [e] = Ie();
11551
+ const [e] = Pe();
11534
11552
  return Se(() => {
11535
11553
  e.update(() => {
11536
11554
  const r = new DOMParser().parseFromString(n, "text/html"), u = Ul(e, r);