bible-note 0.6.0 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/bible-note.cjs +154 -112
  2. package/dist/bible-note.css +1 -1
  3. package/dist/bible-note.mjs +7574 -7236
  4. package/dist/chunks/{ContentEditable-C_wyHFh1.mjs → ContentEditable-BaXBKC3m.mjs} +1 -1
  5. package/dist/chunks/{ContentEditable-DgthEFHJ.cjs → ContentEditable-Ce294XLd.cjs} +2 -2
  6. package/dist/chunks/{ExcalidrawComponent-bEqDGYRW.cjs → ExcalidrawComponent-DdmtbuXc.cjs} +1 -1
  7. package/dist/chunks/{ExcalidrawComponent-iTobN_Hf.mjs → ExcalidrawComponent-OMjYgJCL.mjs} +2 -2
  8. package/dist/chunks/{ExcalidrawModal-DAEdxIBk.mjs → ExcalidrawModal-DSotOBGc.mjs} +2 -2
  9. package/dist/chunks/{ExcalidrawModal-Bbez9U5x.cjs → ExcalidrawModal-Db1LI01l.cjs} +2 -2
  10. package/dist/chunks/LexicalUtils.prod-CYv8J7Gq.cjs +3 -0
  11. package/dist/chunks/{LexicalUtils.prod-5zbJxaQa.mjs → LexicalUtils.prod-D2Igim2c.mjs} +28 -32
  12. package/dist/chunks/{MediaComponent-BTaaADsV.mjs → MediaComponent-CSawoM2p.mjs} +3 -3
  13. package/dist/chunks/{MediaComponent-BhjGu3D-.cjs → MediaComponent-qZBSiJiq.cjs} +1 -1
  14. package/dist/chunks/{MediaResizer-C7UGQ3Kl.mjs → MediaResizer-C_ZJbHAU.mjs} +1 -1
  15. package/dist/chunks/{MediaResizer-DGw5LvDR.cjs → MediaResizer-Dzro5TVg.cjs} +1 -1
  16. package/dist/chunks/{StickyComponent-B8skHBRs.mjs → StickyComponent-Ce5jkV0z.mjs} +13 -13
  17. package/dist/chunks/{StickyComponent-C6xBrvrK.cjs → StickyComponent-CoU6Bu8d.cjs} +1 -1
  18. package/dist/chunks/{StickyNode-B2B6di-N.mjs → StickyNode-CN3WkBD3.mjs} +11 -11
  19. package/dist/chunks/{StickyNode-GgIn3-zY.cjs → StickyNode-Dm3H0XUa.cjs} +1 -1
  20. package/dist/chunks/{TreeViewPlugin-B0UnxNiM.mjs → TreeViewPlugin-BV40YjJ0.mjs} +948 -887
  21. package/dist/chunks/{TreeViewPlugin-DkUjU27t.cjs → TreeViewPlugin-BlY6n0zI.cjs} +10 -10
  22. package/knowledge/development.md +8 -4
  23. package/knowledge/ui-rag.md +248 -140
  24. package/package.json +2 -2
  25. package/dist/chunks/LexicalUtils.prod-W-Xb5dGB.cjs +0 -3
@@ -1,14 +1,14 @@
1
- import { $ as e, $n as t, A as n, Ar as r, B as i, Bn as a, C as o, Cr as s, Ct as c, D as l, Dn as u, Dr as d, E as f, En as p, Er as m, Et as h, F as g, Fr as _, Ft as v, Gn as y, Gr as b, Gt as x, H as S, Hn as C, Hr as w, Ht as T, I as E, It as D, J as ee, Jt as O, K as te, Kt as ne, Ln as k, M as re, Nr as ie, Nt as ae, O as oe, P as se, Pn as ce, Pt as le, Q as ue, Qn as de, Qr as fe, R as pe, Rr as me, Rt as he, S as ge, Sn as _e, Tn as ve, Tr as ye, Un as be, Ut as xe, V as Se, Vn as Ce, Vr as A, W as we, Wn as Te, Wt as Ee, X as De, Xn as Oe, Y as ke, Yn as Ae, Yr as je, Yt as Me, Z as Ne, Zn as Pe, Zr as Fe, Zt as Ie, _ as Le, _r as Re, _t as ze, a as Be, ar as Ve, b as He, bn as j, br as Ue, bt as We, cn as Ge, cr as Ke, dn as qe, dr as Je, en as Ye, et as Xe, f as Ze, fn as Qe, gn as $e, gr as et, h as tt, i as nt, ii as rt, jn as it, jt as at, kn as ot, kr as st, l as ct, ln as lt, lr as ut, m as dt, mr as ft, mt as pt, n as mt, ni as ht, o as gt, oi as _t, on as vt, or as yt, p as bt, pr as xt, q as St, qn as Ct, qr as wt, qt as M, ri as Tt, rn as Et, rr as Dt, s as Ot, sr as kt, t as At, ti as jt, tn as Mt, tr as Nt, tt as N, un as Pt, ur as Ft, vn as It, vr as Lt, vt as P, w as Rt, wn as zt, wr as Bt, wt as Vt, x as Ht, xn as Ut, xr as Wt, xt as Gt, yn as Kt, yt as qt, zn as Jt, zt as Yt } from "./Lexical.prod-DYDuARMX.mjs";
2
- import { C as Xt, I as Zt, N as Qt, T as $t, a as en, f as tn, g as nn, i as rn, k as an, n as on, o as sn, s as cn, t as ln } from "./LexicalUtils.prod-5zbJxaQa.mjs";
3
- import { B as un, H as dn, I as fn, K as pn, M as mn, R as hn, V as gn, c as _n, d as vn, f as yn, h as bn, j as xn, l as Sn, m as Cn, n as wn, s as Tn, u as En, v as Dn, x as On, y as kn } from "./ContentEditable-C_wyHFh1.mjs";
4
- import { t as An } from "./useLexicalEditable.prod-CgMasHPY.mjs";
5
- import * as jn from "react";
6
- import { Suspense as Mn, createContext as Nn, forwardRef as Pn, startTransition as Fn, useCallback as F, useContext as In, useEffect as I, useLayoutEffect as Ln, useMemo as Rn, useRef as L, useState as R } from "react";
7
- import { Fragment as zn, jsx as z, jsxs as B } from "react/jsx-runtime";
8
- import * as Bn from "react-dom";
9
- import Vn, { createPortal as Hn, flushSync as Un } from "react-dom";
10
- kn.tag("h1", "h2", "h3", "h4", "h5", "h6"), kn.tag("blockquote"), kn.tag("blockquote"), kn.tag("p"), kn.tag("span");
11
- var Wn = /* @__PURE__ */ Ht("DRAG_DROP_PASTE_FILE"), Gn = /* @__PURE__ */ Dt("shadowRoot", { parse: Boolean }), Kn = class e extends dt {
1
+ import { $ as e, $n as t, A as n, Ar as r, B as i, Bn as a, C as o, Cr as s, Ct as c, D as l, Dn as u, Dr as d, E as f, En as p, Er as m, Et as h, F as g, Fr as _, Ft as v, Gn as y, Gr as b, Gt as x, H as S, Hn as ee, Hr as C, Ht as w, I as T, It as E, J as D, Jt as O, K as te, Kt as ne, Ln as k, M as re, Nr as ie, Nt as ae, O as oe, P as se, Pn as ce, Pt as le, Q as ue, Qn as de, Qr as fe, R as pe, Rr as me, Rt as he, S as ge, Sn as _e, Tn as ve, Tr as ye, Un as be, Ut as xe, V as Se, Vn as Ce, Vr as A, W as we, Wn as Te, Wt as Ee, X as De, Xn as Oe, Y as ke, Yn as Ae, Yr as je, Yt as Me, Z as Ne, Zn as Pe, Zr as Fe, Zt as Ie, _ as Le, _r as Re, _t as ze, a as Be, ar as Ve, b as He, bn as j, br as Ue, bt as We, cn as Ge, cr as Ke, dn as qe, dr as Je, en as Ye, et as Xe, f as Ze, fn as Qe, gn as $e, gr as et, h as tt, i as nt, ii as rt, jn as it, jt as at, kn as ot, kr as st, l as ct, ln as lt, lr as ut, m as dt, mr as ft, mt as pt, n as mt, ni as ht, o as gt, oi as M, on as _t, or as vt, p as yt, pr as bt, q as xt, qn as St, qr as Ct, qt as N, ri as wt, rn as Tt, rr as Et, s as Dt, sr as Ot, t as kt, ti as At, tn as jt, tr as Mt, tt as P, un as Nt, ur as Pt, vn as Ft, vr as It, vt as F, w as Lt, wn as Rt, wr as zt, wt as Bt, x as Vt, xn as Ht, xr as Ut, xt as Wt, yn as Gt, yt as Kt, zn as qt, zt as Jt } from "./Lexical.prod-DYDuARMX.mjs";
2
+ import { C as Yt, F as Xt, M as Zt, O as Qt, a as $t, f as en, g as tn, i as nn, n as rn, o as an, s as on, t as sn, w as cn } from "./LexicalUtils.prod-D2Igim2c.mjs";
3
+ import { B as ln, H as un, I as dn, K as fn, M as pn, R as mn, V as hn, c as gn, d as _n, f as vn, h as yn, j as bn, l as xn, m as Sn, n as Cn, s as wn, u as Tn, v as En, x as Dn, y as On } from "./ContentEditable-BaXBKC3m.mjs";
4
+ import { t as kn } from "./useLexicalEditable.prod-CgMasHPY.mjs";
5
+ import * as An from "react";
6
+ import { Suspense as jn, createContext as Mn, forwardRef as Nn, startTransition as Pn, useCallback as I, useContext as Fn, useEffect as L, useLayoutEffect as In, useMemo as Ln, useRef as R, useState as z } from "react";
7
+ import { Fragment as Rn, jsx as B, jsxs as V } from "react/jsx-runtime";
8
+ import * as zn from "react-dom";
9
+ import Bn, { createPortal as Vn, flushSync as Hn } from "react-dom";
10
+ On.tag("h1", "h2", "h3", "h4", "h5", "h6"), On.tag("blockquote"), On.tag("blockquote"), On.tag("p"), On.tag("span");
11
+ var Un = /* @__PURE__ */ Vt("DRAG_DROP_PASTE_FILE"), Wn = /* @__PURE__ */ Et("shadowRoot", { parse: Boolean }), Gn = class e extends dt {
12
12
  static getType() {
13
13
  return "quote";
14
14
  }
@@ -20,18 +20,18 @@ var Wn = /* @__PURE__ */ Ht("DRAG_DROP_PASTE_FILE"), Gn = /* @__PURE__ */ Dt("sh
20
20
  extends: dt,
21
21
  stateConfigs: [{
22
22
  flat: !0,
23
- stateConfig: Gn
23
+ stateConfig: Wn
24
24
  }]
25
25
  });
26
26
  }
27
27
  isShadowRoot() {
28
- return je(this, Gn);
28
+ return je(this, Wn);
29
29
  }
30
30
  setIsShadowRoot(e) {
31
- return at(this, Gn, e);
31
+ return at(this, Wn, e);
32
32
  }
33
33
  createDOM(e) {
34
- let t = M().createElement("blockquote");
34
+ let t = N().createElement("blockquote");
35
35
  return A(t, e.theme.quote), t;
36
36
  }
37
37
  updateDOM(e, t) {
@@ -39,14 +39,14 @@ var Wn = /* @__PURE__ */ Ht("DRAG_DROP_PASTE_FILE"), Gn = /* @__PURE__ */ Dt("sh
39
39
  }
40
40
  static importDOM() {
41
41
  return { blockquote: (e) => ({
42
- conversion: Qn,
42
+ conversion: Zn,
43
43
  priority: 0
44
44
  }) };
45
45
  }
46
46
  exportDOM(e) {
47
47
  let { element: t } = super.exportDOM(e);
48
48
  if (_e(t)) {
49
- this.isEmpty() && t.append(M().createElement("br"));
49
+ this.isEmpty() && t.append(N().createElement("br"));
50
50
  let e = this.getFormatType();
51
51
  e && (t.style.textAlign = e);
52
52
  let n = this.getDirection();
@@ -55,7 +55,7 @@ var Wn = /* @__PURE__ */ Ht("DRAG_DROP_PASTE_FILE"), Gn = /* @__PURE__ */ Dt("sh
55
55
  return { element: t };
56
56
  }
57
57
  static importJSON(e) {
58
- return qn().updateFromJSON(e);
58
+ return Kn().updateFromJSON(e);
59
59
  }
60
60
  exportJSON() {
61
61
  return super.exportJSON();
@@ -76,14 +76,14 @@ var Wn = /* @__PURE__ */ Ht("DRAG_DROP_PASTE_FILE"), Gn = /* @__PURE__ */ Dt("sh
76
76
  return !0;
77
77
  }
78
78
  };
79
- function qn(e) {
80
- let t = gt(new Kn());
79
+ function Kn(e) {
80
+ let t = gt(new Gn());
81
81
  return e && e.shadowRoot ? t.setIsShadowRoot(!0) : t;
82
82
  }
83
- function Jn(e) {
84
- return e instanceof Kn;
83
+ function qn(e) {
84
+ return e instanceof Gn;
85
85
  }
86
- var Yn = class e extends dt {
86
+ var Jn = class e extends dt {
87
87
  __tag;
88
88
  static getType() {
89
89
  return "heading";
@@ -105,7 +105,7 @@ var Yn = class e extends dt {
105
105
  return t.__tag = e, t;
106
106
  }
107
107
  createDOM(e) {
108
- let t = this.__tag, n = M().createElement(t), r = e.theme.heading;
108
+ let t = this.__tag, n = N().createElement(t), r = e.theme.heading;
109
109
  if (r !== void 0) {
110
110
  let e = r[t];
111
111
  A(n, e);
@@ -118,38 +118,38 @@ var Yn = class e extends dt {
118
118
  static importDOM() {
119
119
  return {
120
120
  h1: (e) => ({
121
- conversion: Zn,
121
+ conversion: Xn,
122
122
  priority: 0
123
123
  }),
124
124
  h2: (e) => ({
125
- conversion: Zn,
125
+ conversion: Xn,
126
126
  priority: 0
127
127
  }),
128
128
  h3: (e) => ({
129
- conversion: Zn,
129
+ conversion: Xn,
130
130
  priority: 0
131
131
  }),
132
132
  h4: (e) => ({
133
- conversion: Zn,
133
+ conversion: Xn,
134
134
  priority: 0
135
135
  }),
136
136
  h5: (e) => ({
137
- conversion: Zn,
137
+ conversion: Xn,
138
138
  priority: 0
139
139
  }),
140
140
  h6: (e) => ({
141
- conversion: Zn,
141
+ conversion: Xn,
142
142
  priority: 0
143
143
  }),
144
144
  p: (e) => {
145
145
  let t = e.firstChild;
146
- return t !== null && Xn(t) ? {
146
+ return t !== null && Yn(t) ? {
147
147
  conversion: () => ({ node: null }),
148
148
  priority: 3
149
149
  } : null;
150
150
  },
151
- span: (e) => Xn(e) ? {
152
- conversion: (e) => ({ node: $n("h1") }),
151
+ span: (e) => Yn(e) ? {
152
+ conversion: (e) => ({ node: Qn("h1") }),
153
153
  priority: 3
154
154
  } : null
155
155
  };
@@ -157,7 +157,7 @@ var Yn = class e extends dt {
157
157
  exportDOM(e) {
158
158
  let { element: t } = super.exportDOM(e);
159
159
  if (_e(t)) {
160
- this.isEmpty() && t.append(M().createElement("br"));
160
+ this.isEmpty() && t.append(N().createElement("br"));
161
161
  let e = this.getFormatType();
162
162
  e && (t.style.textAlign = e);
163
163
  let n = this.getDirection();
@@ -166,7 +166,7 @@ var Yn = class e extends dt {
166
166
  return { element: t };
167
167
  }
168
168
  static importJSON(e) {
169
- return $n(e.tag).updateFromJSON(e);
169
+ return Qn(e.tag).updateFromJSON(e);
170
170
  }
171
171
  updateFromJSON(e) {
172
172
  return super.updateFromJSON(e).setTag(e.tag);
@@ -178,7 +178,7 @@ var Yn = class e extends dt {
178
178
  };
179
179
  }
180
180
  insertNewAfter(e, t = !0) {
181
- let n = e ? e.anchor.offset : 0, i = this.getLastDescendant(), a = !i || e && e.anchor.key === i.getKey() && n === i.getTextContentSize() || !e ? r() : $n(this.getTag()), o = this.getDirection();
181
+ let n = e ? e.anchor.offset : 0, i = this.getLastDescendant(), a = !i || e && e.anchor.key === i.getKey() && n === i.getTextContentSize() || !e ? r() : Qn(this.getTag()), o = this.getDirection();
182
182
  if (a.setDirection(o), this.insertAfter(a, t), n === 0 && !this.isEmpty() && e) {
183
183
  let e = r();
184
184
  e.select(), this.replace(e, !0);
@@ -196,27 +196,27 @@ var Yn = class e extends dt {
196
196
  return !0;
197
197
  }
198
198
  };
199
- function Xn(e) {
199
+ function Yn(e) {
200
200
  return e.nodeName.toLowerCase() === "span" && e.style.fontSize === "26pt";
201
201
  }
202
- function Zn(e) {
202
+ function Xn(e) {
203
203
  let t = e.nodeName.toLowerCase(), n = null;
204
- return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6" || (n = $n(t), bt(e, n), He(n, e), ze(n, e)), { node: n };
204
+ return t !== "h1" && t !== "h2" && t !== "h3" && t !== "h4" && t !== "h5" && t !== "h6" || (n = Qn(t), yt(e, n), He(n, e), ze(n, e)), { node: n };
205
205
  }
206
- function Qn(e) {
207
- let t = qn();
208
- return He(t, e), bt(e, t), ze(t, e), { node: t };
206
+ function Zn(e) {
207
+ let t = Kn();
208
+ return He(t, e), yt(e, t), ze(t, e), { node: t };
209
209
  }
210
- function $n(e = "h1") {
211
- return gt(new Yn(e));
210
+ function Qn(e = "h1") {
211
+ return gt(new Jn(e));
212
212
  }
213
- function er(e) {
214
- return e instanceof Yn;
213
+ function $n(e) {
214
+ return e instanceof Jn;
215
215
  }
216
- function tr(t) {
216
+ function er(t) {
217
217
  return e(Me(t));
218
218
  }
219
- function nr(e, t, n, r) {
219
+ function tr(e, t, n, r) {
220
220
  let i = !1, a = null;
221
221
  if (e.isCollapsed() && e.anchor.type === "text") {
222
222
  let t = e.anchor.getNode();
@@ -238,7 +238,7 @@ function nr(e, t, n, r) {
238
238
  }
239
239
  o && e.setStyle("");
240
240
  }
241
- var rr = {
241
+ var nr = {
242
242
  capitalize: {
243
243
  enter: !0,
244
244
  space: !0,
@@ -255,7 +255,7 @@ var rr = {
255
255
  tab: !0
256
256
  }
257
257
  };
258
- function ir(e, t) {
258
+ function rr(e, t) {
259
259
  return function(e, t) {
260
260
  if (!e.isCollapsed()) return !1;
261
261
  let n = x(e.focus, t), r = i(n.origin, Xe);
@@ -266,7 +266,7 @@ function ir(e, t) {
266
266
  if (o.getTextSlices().some((e) => e && e.getTextContentSize() > 0)) return !1;
267
267
  let s = oe(o.anchor.getSiblingCaret(), o.focus), c = s.anchor.origin;
268
268
  for (let e of s) {
269
- if (!w(e) || !e.origin.is(c.getParent())) return !1;
269
+ if (!C(e) || !e.origin.is(c.getParent())) return !1;
270
270
  c = e.origin;
271
271
  }
272
272
  let l = r;
@@ -285,52 +285,52 @@ function ir(e, t) {
285
285
  }(e, t) || function(e, t) {
286
286
  if (!e.isCollapsed() || e.anchor.type !== "element") return !1;
287
287
  let n = x(e.anchor, t).getNodeAtCaret();
288
- return !(!Xe(n) || n.isInline() || (Ye(At(Bt(Ne(n, t)))), 0));
288
+ return !(!Xe(n) || n.isInline() || (Ye(kt(zt(Ne(n, t)))), 0));
289
289
  }(e, t);
290
290
  }
291
- function ar(t) {
291
+ function ir(t) {
292
292
  return e(t) && !t.isInline() && !t.isIsolated() && t.isKeyboardSelectable();
293
293
  }
294
- function or(e) {
295
- let t = Gt();
294
+ function ar(e) {
295
+ let t = Wt();
296
296
  t.add(e), p(t);
297
297
  }
298
- function sr(e, t) {
298
+ function or(e, t) {
299
299
  if (!e.isCollapsed()) return !1;
300
300
  let n = e.focus, r = n.getNode(), a = t ? "previous" : "next", o = x(n, a);
301
- if (n.type === "element" && P(r) && (Tt(r) || Xe(r))) {
301
+ if (n.type === "element" && F(r) && (wt(r) || Xe(r))) {
302
302
  let e = o.getNodeAtCaret();
303
- return !(e === null || !ar(e)) && (or(e.__key), !0);
303
+ return !(e === null || !ir(e)) && (ar(e.__key), !0);
304
304
  }
305
- let s = i(P(r) ? r : r.getParentOrThrow(), (e) => P(e) && !e.isInline() && ee(e.getParent()));
305
+ let s = i(F(r) ? r : r.getParentOrThrow(), (e) => F(e) && !e.isInline() && D(e.getParent()));
306
306
  if (s === null) return !1;
307
307
  let c = Ze(s, a).getNodeAtCaret();
308
- if (c === null || !ar(c)) return !1;
309
- if (s.getTextContentSize() === 0) return or(c.__key), !0;
310
- let l = Ot().getRootElement();
308
+ if (c === null || !ir(c)) return !1;
309
+ if (s.getTextContentSize() === 0) return ar(c.__key), !0;
310
+ let l = Dt().getRootElement();
311
311
  if (l === null) return !1;
312
312
  let u = re(l.ownerDocument.defaultView);
313
313
  if (u === null || u.rangeCount === 0) return !1;
314
314
  let d = u.anchorNode, f = u.anchorOffset, p = u.focusNode, m = u.focusOffset;
315
315
  u.modify("move", t ? "backward" : "forward", "line");
316
316
  let h = u.anchorNode, g = u.anchorOffset;
317
- if (h === null) return cr(u, d, f, p, m), !1;
317
+ if (h === null) return sr(u, d, f, p, m), !1;
318
318
  let _ = Me(h);
319
- return cr(u, d, f, p, m), _ !== null && (h === d && g === f || !_.is(s) && !nt(_, s)) && (or(c.__key), !0);
319
+ return sr(u, d, f, p, m), _ !== null && (h === d && g === f || !_.is(s) && !nt(_, s)) && (ar(c.__key), !0);
320
320
  }
321
- function cr(e, t, n, r, i) {
321
+ function sr(e, t, n, r, i) {
322
322
  t !== null && r !== null && e.setBaseAndExtent(t, n, r, i);
323
323
  }
324
- function lr(e, t) {
324
+ function cr(e, t) {
325
325
  if (!e.isCollapsed()) return !1;
326
- let n = e.focus.getNode(), r = i(P(n) ? n : n.getParentOrThrow(), (e) => P(e) && !e.isInline());
326
+ let n = e.focus.getNode(), r = i(F(n) ? n : n.getParentOrThrow(), (e) => F(e) && !e.isInline());
327
327
  if (r === null) return !1;
328
- let a = Ot(), o = a.getRootElement();
328
+ let a = Dt(), o = a.getRootElement();
329
329
  if (o === null) return !1;
330
330
  let s = o.ownerDocument.defaultView;
331
331
  if (s === null) return !1;
332
332
  let c = !1;
333
- for (let e of r.getChildren()) if (P(e) && e.isInline()) {
333
+ for (let e of r.getChildren()) if (F(e) && e.isInline()) {
334
334
  let t = a.getElementByKey(e.getKey());
335
335
  if (t !== null) {
336
336
  let e = s.getComputedStyle(t).display;
@@ -342,7 +342,7 @@ function lr(e, t) {
342
342
  }
343
343
  if (!c) return !1;
344
344
  let l = Ze(r, t ? "previous" : "next").getNodeAtCaret();
345
- if (l === null || !P(l)) {
345
+ if (l === null || !F(l)) {
346
346
  if (t) {
347
347
  let e = r.getFirstDescendant();
348
348
  O(e) ? e.select(0, 0) : r.select(0, 0);
@@ -366,7 +366,7 @@ function lr(e, t) {
366
366
  f.collapse(!0);
367
367
  let p = f.getBoundingClientRect(), m = u.getBoundingClientRect(), h = m.top + m.height / 2;
368
368
  if (p.height > 0) {
369
- let t = Cn(p.left, h, o);
369
+ let t = Sn(p.left, h, o);
370
370
  if (t !== null && u.contains(t.node)) {
371
371
  let n = o.ownerDocument.createRange();
372
372
  return n.setStart(t.node, t.offset), n.collapse(!0), e.applyDOMRange(n), e.dirty = !0, !0;
@@ -382,154 +382,154 @@ function lr(e, t) {
382
382
  }
383
383
  return !0;
384
384
  }
385
- function ur(e, t) {
385
+ function lr(e, t) {
386
386
  let n = Ze(e, t), r = n.getAdjacentCaret();
387
- r !== null && P(r.origin) && !r.origin.isInline() && r.origin.isShadowRoot() ? Ye(At(n)) : t === "next" ? e.selectNext(0, 0) : e.selectPrevious();
387
+ r !== null && F(r.origin) && !r.origin.isInline() && r.origin.isShadowRoot() ? Ye(kt(n)) : t === "next" ? e.selectNext(0, 0) : e.selectPrevious();
388
388
  }
389
- function dr(e, t, n) {
389
+ function ur(e, t, n) {
390
390
  n.preventDefault(), n.stopPropagation();
391
391
  let r = e.getNodes();
392
392
  if (r.length === 0) return !0;
393
- let a = r.map((e) => Ze(e, "next")).sort(be), o = (t ? a[0] : a[a.length - 1]).origin, s = i(o, (e) => e !== o && P(e) && !e.isInline()) ?? d(), c = t ? 0 : s.getChildrenSize();
393
+ let a = r.map((e) => Ze(e, "next")).sort(be), o = (t ? a[0] : a[a.length - 1]).origin, s = i(o, (e) => e !== o && F(e) && !e.isInline()) ?? d(), c = t ? 0 : s.getChildrenSize();
394
394
  return s.select(c, c), !0;
395
395
  }
396
- function fr(t, r = un(rr)) {
396
+ function dr(t, r = ln(nr)) {
397
397
  return Ae(t.registerCommand(te, () => {
398
- let e = N();
399
- return _(e) ? (e.clear(), !0) : (j(e) && nr(e, "click", "both", r.peek()), !1);
400
- }, 0), t.registerCommand(D, (e) => {
401
- let t = N();
398
+ let e = P();
399
+ return _(e) ? (e.clear(), !0) : (j(e) && tr(e, "click", "both", r.peek()), !1);
400
+ }, 0), t.registerCommand(E, (e) => {
401
+ let t = P();
402
402
  return j(t) ? (t.deleteCharacter(e), !0) : !!_(t) && (t.deleteNodes(), !0);
403
403
  }, 0), t.registerCommand(et, (e) => {
404
- let t = N();
404
+ let t = P();
405
405
  return !!j(t) && (t.deleteWord(e), !0);
406
406
  }, 0), t.registerCommand(Ie, (e) => {
407
- let t = N();
407
+ let t = P();
408
408
  return !!j(t) && (t.deleteLine(e), !0);
409
409
  }, 0), t.registerCommand(Se, (e) => {
410
- let n = N();
410
+ let n = P();
411
411
  if (typeof e == "string") n !== null && n.insertText(e);
412
412
  else {
413
413
  if (n === null) return !1;
414
414
  let r = e.dataTransfer;
415
- if (r != null) bn(r, n, t);
415
+ if (r != null) yn(r, n, t);
416
416
  else if (j(n)) {
417
417
  let t = e.data;
418
418
  return t && n.insertText(t), !0;
419
419
  }
420
420
  }
421
421
  return !0;
422
- }, 0), t.registerCommand(Yt, () => {
423
- let e = N();
422
+ }, 0), t.registerCommand(Jt, () => {
423
+ let e = P();
424
424
  return !!j(e) && (e.removeText(), !0);
425
- }, 0), t.registerCommand(Rt, (e) => {
426
- let t = N();
425
+ }, 0), t.registerCommand(Lt, (e) => {
426
+ let t = P();
427
427
  return !(!j(t) && !_(t)) && (a(t, e), !0);
428
428
  }, 0), t.registerCommand(ne, (e) => {
429
- let t = N();
429
+ let t = P();
430
430
  return !(!j(t) && !_(t)) && (ve(t, e), !0);
431
- }, 0), t.registerCommand(Nt, (e) => {
432
- let t = N();
431
+ }, 0), t.registerCommand(Mt, (e) => {
432
+ let t = P();
433
433
  if (!j(t) && !_(t)) return !1;
434
434
  let n = t.getNodes();
435
435
  for (let t of n) {
436
- let n = i(t, (e) => P(e) && !e.isInline());
436
+ let n = i(t, (e) => F(e) && !e.isInline());
437
437
  n !== null && n.setFormat(e);
438
438
  }
439
439
  return !0;
440
440
  }, 0), t.registerCommand(mt, (e) => {
441
- let t = N();
441
+ let t = P();
442
442
  return !!j(t) && (t.insertLineBreak(e), !0);
443
443
  }, 0), t.registerCommand(n, () => {
444
- let e = N();
444
+ let e = P();
445
445
  return !!j(e) && (e.insertParagraph(), !0);
446
446
  }, 0), t.registerCommand(ce, () => {
447
- let e = st(), t = N();
447
+ let e = st(), t = P();
448
448
  return j(t) && (e.setFormat(t.format), e.setStyle(t.style)), we([e]), !0;
449
- }, 0), t.registerCommand(vt, () => ln((e) => {
449
+ }, 0), t.registerCommand(_t, () => sn((e) => {
450
450
  let t = e.getIndent();
451
451
  e.setIndent(t + 1);
452
- }), 0), t.registerCommand(xt, () => ln((e) => {
452
+ }), 0), t.registerCommand(bt, () => sn((e) => {
453
453
  let t = e.getIndent();
454
454
  t > 0 && e.setIndent(Math.max(0, t - 1));
455
455
  }), 0), t.registerCommand(s, (e) => {
456
- let t = N();
456
+ let t = P();
457
457
  if (_(t)) {
458
458
  let n = t.getNodes();
459
- if (n.length > 0) return e.preventDefault(), ur(n[0], "previous"), !0;
460
- } else if (j(t) && (!e.shiftKey && ir(t, "previous") || !e.shiftKey && sr(t, !0) || !e.shiftKey && lr(t, !0))) return e.preventDefault(), !0;
459
+ if (n.length > 0) return e.preventDefault(), lr(n[0], "previous"), !0;
460
+ } else if (j(t) && (!e.shiftKey && rr(t, "previous") || !e.shiftKey && or(t, !0) || !e.shiftKey && cr(t, !0))) return e.preventDefault(), !0;
461
461
  return !1;
462
462
  }, 0), t.registerCommand(de, (e) => {
463
- let t = N();
463
+ let t = P();
464
464
  if (_(t)) {
465
465
  let n = t.getNodes();
466
- if (n.length > 0) return e.preventDefault(), ur(n[0], "next"), !0;
466
+ if (n.length > 0) return e.preventDefault(), lr(n[0], "next"), !0;
467
467
  } else if (j(t) && (function(e) {
468
468
  let t = e.focus;
469
469
  return t.key === "root" && t.offset === d().getChildrenSize();
470
- }(t) || !e.shiftKey && ir(t, "next") || !e.shiftKey && sr(t, !1) || !e.shiftKey && lr(t, !1))) return e.preventDefault(), !0;
470
+ }(t) || !e.shiftKey && rr(t, "next") || !e.shiftKey && or(t, !1) || !e.shiftKey && cr(t, !1))) return e.preventDefault(), !0;
471
471
  return !1;
472
- }, 0), t.registerCommand(Ft, (e) => {
473
- let t = N();
472
+ }, 0), t.registerCommand(Pt, (e) => {
473
+ let t = P();
474
474
  if (_(t)) {
475
475
  let n = t.getNodes();
476
- if (n.length > 0) return e.preventDefault(), ur(n[0], an(n[0]) ? "next" : "previous"), !0;
476
+ if (n.length > 0) return e.preventDefault(), lr(n[0], Qt(n[0]) ? "next" : "previous"), !0;
477
477
  }
478
478
  if (!j(t)) return !1;
479
- if (!e.shiftKey && ir(t, an(t.anchor.getNode()) ? "next" : "previous")) return e.preventDefault(), !0;
480
- if (e.shiftKey || nr(t, "arrow", "start", r.peek()), Zt(t, !0)) {
479
+ if (!e.shiftKey && rr(t, Qt(t.anchor.getNode()) ? "next" : "previous")) return e.preventDefault(), !0;
480
+ if (e.shiftKey || tr(t, "arrow", "start", r.peek()), Xt(t, !0)) {
481
481
  let n = e.shiftKey;
482
- return e.preventDefault(), Qt(t, n, !0), !0;
482
+ return e.preventDefault(), Zt(t, n, !0), !0;
483
483
  }
484
484
  return !1;
485
485
  }, 0), t.registerCommand(u, (e) => {
486
- let t = N();
486
+ let t = P();
487
487
  if (_(t)) {
488
488
  let n = t.getNodes();
489
- if (n.length > 0) return e.preventDefault(), ur(n[0], an(n[0]) ? "previous" : "next"), !0;
489
+ if (n.length > 0) return e.preventDefault(), lr(n[0], Qt(n[0]) ? "previous" : "next"), !0;
490
490
  }
491
491
  if (!j(t)) return !1;
492
- if (!e.shiftKey && ir(t, an(t.anchor.getNode()) ? "previous" : "next")) return e.preventDefault(), !0;
493
- if (e.shiftKey || nr(t, "arrow", "end", r.peek()), Zt(t, !1)) {
492
+ if (!e.shiftKey && rr(t, Qt(t.anchor.getNode()) ? "previous" : "next")) return e.preventDefault(), !0;
493
+ if (e.shiftKey || tr(t, "arrow", "end", r.peek()), Xt(t, !1)) {
494
494
  let n = e.shiftKey;
495
- return e.preventDefault(), Qt(t, n, !1), !0;
495
+ return e.preventDefault(), Zt(t, n, !1), !0;
496
496
  }
497
497
  return !1;
498
498
  }, 0), t.registerCommand(ie, (e) => {
499
- let n = N();
500
- if (!_(n) && tr(e.target)) return !1;
499
+ let n = P();
500
+ if (!_(n) && er(e.target)) return !1;
501
501
  if (j(n)) {
502
502
  if (function(e) {
503
503
  if (!e.isCollapsed()) return !1;
504
504
  let { anchor: t } = e;
505
505
  if (t.offset !== 0) return !1;
506
506
  let n = t.getNode();
507
- if (Tt(n)) return !1;
508
- let r = sn(n);
507
+ if (wt(n)) return !1;
508
+ let r = an(n);
509
509
  return r.getIndent() > 0 && (r.is(n) || n.is(r.getFirstDescendant()));
510
- }(n)) return e.preventDefault(), t.dispatchCommand(xt, void 0);
511
- if (Oe && Wt) return !1;
510
+ }(n)) return e.preventDefault(), t.dispatchCommand(bt, void 0);
511
+ if (Oe && Ut) return !1;
512
512
  } else if (!_(n)) return !1;
513
- return e.preventDefault(), t.dispatchCommand(D, !0);
514
- }, 0), t.registerCommand(zt, (e) => {
515
- let n = N();
516
- return !(!_(n) && tr(e.target)) && !(!j(n) && !_(n)) && (e.preventDefault(), t.dispatchCommand(D, !1));
517
- }, 0), t.registerCommand(Kt, (i) => {
518
- let a = N();
513
+ return e.preventDefault(), t.dispatchCommand(E, !0);
514
+ }, 0), t.registerCommand(Rt, (e) => {
515
+ let n = P();
516
+ return !(!_(n) && er(e.target)) && !(!j(n) && !_(n)) && (e.preventDefault(), t.dispatchCommand(E, !1));
517
+ }, 0), t.registerCommand(Gt, (i) => {
518
+ let a = P();
519
519
  if (_(a)) {
520
520
  let t = a.getNodes();
521
521
  t.length === 1 && e(t[0]) && !t[0].isInline() && (a = t[0].selectNext());
522
522
  }
523
523
  if (!j(a)) return !1;
524
- if (nr(a, "enter", "both", r.peek()), i !== null) {
525
- if ((Oe || lt || Ut) && Wt) return !1;
524
+ if (tr(a, "enter", "both", r.peek()), i !== null) {
525
+ if ((Oe || lt || Ht) && Ut) return !1;
526
526
  if (i.preventDefault(), i.shiftKey) return t.dispatchCommand(mt, !1);
527
527
  }
528
528
  return t.dispatchCommand(n, void 0);
529
- }, 0), t.registerCommand(it, () => !!j(N()) && (t.blur(), !0), 0), t.registerCommand(fe, (e) => {
530
- let [, n] = rn(e);
529
+ }, 0), t.registerCommand(it, () => !!j(P()) && (t.blur(), !0), 0), t.registerCommand(fe, (e) => {
530
+ let [, n] = nn(e);
531
531
  if (n.length > 0) {
532
- let r = e.clientX, i = e.clientY, a = Cn(r, i, t.getRootElement());
532
+ let r = e.clientX, i = e.clientY, a = Sn(r, i, t.getRootElement());
533
533
  if (a !== null) {
534
534
  let { offset: e, node: r } = a, i = Me(r);
535
535
  if (i !== null) {
@@ -541,73 +541,73 @@ function fr(t, r = un(rr)) {
541
541
  }
542
542
  p(pe(t));
543
543
  }
544
- t.dispatchCommand(Wn, n);
544
+ t.dispatchCommand(Un, n);
545
545
  }
546
546
  return e.preventDefault(), !0;
547
547
  }
548
- return yn(e, t);
549
- }, 0), t.registerCommand(wt, (e) => {
550
- let [n] = rn(e), r = N();
551
- return !(n && !j(r)) && (j(r) && !r.isCollapsed() && e.dataTransfer !== null && (vn(e.dataTransfer, En(r)), Dn(e.dataTransfer, t)), !0);
548
+ return vn(e, t);
549
+ }, 0), t.registerCommand(Ct, (e) => {
550
+ let [n] = nn(e), r = P();
551
+ return !(n && !j(r)) && (j(r) && !r.isCollapsed() && e.dataTransfer !== null && (_n(e.dataTransfer, Tn(r)), En(e.dataTransfer, t)), !0);
552
552
  }, 0), t.registerCommand(ct, (n) => {
553
- let [r] = rn(n), i = N();
553
+ let [r] = nn(n), i = P();
554
554
  if (r && !j(i)) return !1;
555
- let a = n.clientX, o = n.clientY, s = Cn(a, o, t.getRootElement());
555
+ let a = n.clientX, o = n.clientY, s = Sn(a, o, t.getRootElement());
556
556
  return s !== null && e(Me(s.node)) && n.preventDefault(), !0;
557
- }, 0), t.registerCommand(Ct, () => {
558
- let e = N();
557
+ }, 0), t.registerCommand(St, () => {
558
+ let e = P();
559
559
  return Fe(j(e) && ye(e.anchor.getNode()) !== null ? e : null), !0;
560
- }, 0), t.registerCommand(me, (e) => (_n(t, cn(e, ClipboardEvent) ? e : null), !0), 0), t.registerCommand(ae, (e) => (async function(e, t) {
561
- await _n(t, cn(e, ClipboardEvent) ? e : null), t.update(() => {
562
- let e = N();
560
+ }, 0), t.registerCommand(me, (e) => (gn(t, on(e, ClipboardEvent) ? e : null), !0), 0), t.registerCommand(ae, (e) => (async function(e, t) {
561
+ await gn(t, on(e, ClipboardEvent) ? e : null), t.update(() => {
562
+ let e = P();
563
563
  j(e) ? e.removeText() : _(e) && e.getNodes().forEach((e) => e.remove());
564
564
  }, { tag: "cut" });
565
565
  }(e, t), !0), 0), t.registerCommand(Te, (e) => {
566
- let [, n, r] = rn(e);
567
- return n.length > 0 && !r ? (t.dispatchCommand(Wn, n), !0) : k(e.target) && b(e.target) ? !1 : N() !== null && (function(e, t) {
566
+ let [, n, r] = nn(e);
567
+ return n.length > 0 && !r ? (t.dispatchCommand(Un, n), !0) : k(e.target) && b(e.target) ? !1 : P() !== null && (function(e, t) {
568
568
  e.preventDefault(), t.update(() => {
569
- let n = N(), r = cn(e, InputEvent) || cn(e, KeyboardEvent) ? null : e.clipboardData;
570
- r != null && n !== null && bn(r, n, t);
569
+ let n = P(), r = on(e, InputEvent) || on(e, KeyboardEvent) ? null : e.clipboardData;
570
+ r != null && n !== null && yn(r, n, t);
571
571
  }, { tag: "paste" });
572
572
  }(e, t), !0);
573
573
  }, 0), t.registerCommand(Qe, () => {
574
- let e = N();
575
- return j(e) && nr(e, "space", "both", r.peek()), !1;
576
- }, 0), t.registerCommand(Jt, () => {
577
- let e = N();
578
- return j(e) && nr(e, "tab", "both", r.peek()), !1;
579
- }, 0), t.registerCommand(kt, (t) => {
580
- let n = N();
581
- if (_(n)) return dr(n, !1, t);
574
+ let e = P();
575
+ return j(e) && tr(e, "space", "both", r.peek()), !1;
576
+ }, 0), t.registerCommand(qt, () => {
577
+ let e = P();
578
+ return j(e) && tr(e, "tab", "both", r.peek()), !1;
579
+ }, 0), t.registerCommand(Ot, (t) => {
580
+ let n = P();
581
+ if (_(n)) return ur(n, !1, t);
582
582
  if (!j(n)) return !1;
583
583
  let { anchor: r } = n;
584
584
  if (r.type !== "element" || r.offset !== 0) return !1;
585
585
  let i = r.getNode();
586
- if (!P(i)) return !1;
586
+ if (!F(i)) return !1;
587
587
  let a = i.getFirstChild();
588
588
  if (!e(a) || !a.isInline()) return !1;
589
589
  let o = i.getKey(), s = i.selectEnd();
590
590
  return t.shiftKey && s.anchor.set(o, 0, "element"), t.preventDefault(), t.stopPropagation(), !0;
591
591
  }, 0), t.registerCommand(Ue, (t) => {
592
- let n = N();
593
- if (_(n)) return dr(n, !0, t);
592
+ let n = P();
593
+ if (_(n)) return ur(n, !0, t);
594
594
  if (!j(n)) return !1;
595
- let { anchor: r, focus: a } = n, o = i(a.getNode(), (e) => P(e) && !e.isInline());
595
+ let { anchor: r, focus: a } = n, o = i(a.getNode(), (e) => F(e) && !e.isInline());
596
596
  if (o === null) return !1;
597
597
  let s = o.getFirstChild();
598
- if (!e(s) || !s.isInline() || i(r.getNode(), (e) => P(e) && !e.isInline()) !== o) return !1;
598
+ if (!e(s) || !s.isInline() || i(r.getNode(), (e) => F(e) && !e.isInline()) !== o) return !1;
599
599
  let c = o.getKey();
600
600
  return (a.type !== "element" || a.key !== c || a.offset !== 0) && (n.focus.set(c, 0, "element"), t.shiftKey || n.anchor.set(c, 0, "element"), t.preventDefault(), t.stopPropagation(), !0);
601
601
  }, 0));
602
602
  }
603
603
  //#endregion
604
604
  //#region node_modules/@lexical/table/dist/LexicalTable.prod.mjs
605
- var pr = /^(\d+(?:\.\d+)?)px$/, V = {
605
+ var fr = /^(\d+(?:\.\d+)?)px$/, H = {
606
606
  BOTH: 3,
607
607
  COLUMN: 2,
608
608
  NO_STATUS: 0,
609
609
  ROW: 1
610
- }, mr = class e extends dt {
610
+ }, pr = class e extends dt {
611
611
  __colSpan;
612
612
  __rowSpan;
613
613
  __headerState;
@@ -626,27 +626,27 @@ var pr = /^(\d+(?:\.\d+)?)px$/, V = {
626
626
  static importDOM() {
627
627
  return {
628
628
  td: (e) => ({
629
- conversion: gr,
629
+ conversion: hr,
630
630
  priority: 0
631
631
  }),
632
632
  th: (e) => ({
633
- conversion: gr,
633
+ conversion: hr,
634
634
  priority: 0
635
635
  })
636
636
  };
637
637
  }
638
638
  static importJSON(e) {
639
- return H().updateFromJSON(e);
639
+ return gr().updateFromJSON(e);
640
640
  }
641
641
  updateFromJSON(e) {
642
642
  return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan || 1).setRowSpan(e.rowSpan || 1).setWidth(e.width || void 0).setBackgroundColor(e.backgroundColor || null).setVerticalAlign(e.verticalAlign || void 0);
643
643
  }
644
- constructor(e = V.NO_STATUS, t = 1, n, r) {
644
+ constructor(e = H.NO_STATUS, t = 1, n, r) {
645
645
  super(r), this.__colSpan = t, this.__rowSpan = 1, this.__headerState = e, this.__width = n, this.__backgroundColor = null, this.__verticalAlign = void 0;
646
646
  }
647
647
  createDOM(e) {
648
- let t = M().createElement(this.getTag());
649
- return this.__width && (t.style.width = `${this.__width}px`), this.__colSpan > 1 && (t.colSpan = this.__colSpan), this.__rowSpan > 1 && (t.rowSpan = this.__rowSpan), this.__backgroundColor !== null && (t.style.backgroundColor = this.__backgroundColor), hr(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), A(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
648
+ let t = N().createElement(this.getTag());
649
+ return this.__width && (t.style.width = `${this.__width}px`), this.__colSpan > 1 && (t.colSpan = this.__colSpan), this.__rowSpan > 1 && (t.rowSpan = this.__rowSpan), this.__backgroundColor !== null && (t.style.backgroundColor = this.__backgroundColor), mr(this.__verticalAlign) && (t.style.verticalAlign = this.__verticalAlign), A(t, e.theme.tableCell, this.hasHeader() && e.theme.tableCellHeader), t;
650
650
  }
651
651
  exportDOM(e) {
652
652
  let t = super.exportDOM(e);
@@ -659,7 +659,7 @@ var pr = /^(\d+(?:\.\d+)?)px$/, V = {
659
659
  exportJSON() {
660
660
  return {
661
661
  ...super.exportJSON(),
662
- ...hr(this.__verticalAlign) && { verticalAlign: this.__verticalAlign },
662
+ ...mr(this.__verticalAlign) && { verticalAlign: this.__verticalAlign },
663
663
  backgroundColor: this.getBackgroundColor(),
664
664
  colSpan: this.__colSpan,
665
665
  headerState: this.__headerState,
@@ -684,7 +684,7 @@ var pr = /^(\d+(?:\.\d+)?)px$/, V = {
684
684
  getTag() {
685
685
  return this.hasHeader() ? "th" : "td";
686
686
  }
687
- setHeaderStyles(e, t = V.BOTH) {
687
+ setHeaderStyles(e, t = H.BOTH) {
688
688
  let n = this.getWritable();
689
689
  return n.__headerState = e & t | n.__headerState & ~t, n;
690
690
  }
@@ -720,7 +720,7 @@ var pr = /^(\d+(?:\.\d+)?)px$/, V = {
720
720
  return (this.getHeaderStyles() & e) === e;
721
721
  }
722
722
  hasHeader() {
723
- return this.getLatest().__headerState !== V.NO_STATUS;
723
+ return this.getLatest().__headerState !== H.NO_STATUS;
724
724
  }
725
725
  updateDOM(e) {
726
726
  return e.__headerState !== this.__headerState || e.__width !== this.__width || e.__colSpan !== this.__colSpan || e.__rowSpan !== this.__rowSpan || e.__backgroundColor !== this.__backgroundColor || e.__verticalAlign !== this.__verticalAlign;
@@ -738,28 +738,28 @@ var pr = /^(\d+(?:\.\d+)?)px$/, V = {
738
738
  return !1;
739
739
  }
740
740
  };
741
- function hr(e) {
741
+ function mr(e) {
742
742
  return e === "middle" || e === "bottom";
743
743
  }
744
- function gr(e) {
744
+ function hr(e) {
745
745
  let t = e, n = e.nodeName.toLowerCase(), i;
746
- pr.test(t.style.width) && (i = parseFloat(t.style.width));
747
- let a = V.NO_STATUS;
746
+ fr.test(t.style.width) && (i = parseFloat(t.style.width));
747
+ let a = H.NO_STATUS;
748
748
  if (n === "th") {
749
749
  let e = t.getAttribute("scope");
750
- if (e === "col") a = V.COLUMN;
751
- else if (e === "row") a = V.ROW;
750
+ if (e === "col") a = H.COLUMN;
751
+ else if (e === "row") a = H.ROW;
752
752
  else {
753
753
  let e = t.parentElement, n = _e(e) && e.nodeName.toLowerCase() === "tr" && _e(e.parentElement) && (e.parentElement.nodeName.toLowerCase() === "thead" || e.rowIndex === 0), r = t.cellIndex === 0;
754
- n && (a |= V.ROW), r && (a |= V.COLUMN), a === V.NO_STATUS && (a = V.ROW);
754
+ n && (a |= H.ROW), r && (a |= H.COLUMN), a === H.NO_STATUS && (a = H.ROW);
755
755
  }
756
756
  }
757
- let o = H(a, t.colSpan, i);
757
+ let o = gr(a, t.colSpan, i);
758
758
  o.__rowSpan = t.rowSpan;
759
759
  let s = t.style.backgroundColor;
760
760
  s !== "" && (o.__backgroundColor = s);
761
761
  let c = t.style.verticalAlign;
762
- hr(c) && (o.__verticalAlign = c);
762
+ mr(c) && (o.__verticalAlign = c);
763
763
  let l = t.style, u = (l && l.textDecoration || "").split(" "), d = l.fontWeight === "700" || l.fontWeight === "bold", f = u.includes("line-through"), p = l.fontStyle === "italic", m = u.includes("underline"), h = l.color;
764
764
  return {
765
765
  after: (e) => {
@@ -781,13 +781,13 @@ function gr(e) {
781
781
  node: o
782
782
  };
783
783
  }
784
- function H(e = V.NO_STATUS, t = 1, n) {
785
- return gt(new mr(e, t, n));
784
+ function gr(e = H.NO_STATUS, t = 1, n) {
785
+ return gt(new pr(e, t, n));
786
786
  }
787
787
  function U(e) {
788
- return e instanceof mr;
788
+ return e instanceof pr;
789
789
  }
790
- var _r = /* @__PURE__ */ Ht("INSERT_TABLE_COMMAND");
790
+ var _r = /* @__PURE__ */ Vt("INSERT_TABLE_COMMAND");
791
791
  function W(e, ...t) {
792
792
  let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
793
793
  r.append("code", e);
@@ -828,7 +828,7 @@ var vr = class e extends dt {
828
828
  };
829
829
  }
830
830
  createDOM(e) {
831
- let t = M().createElement("tr");
831
+ let t = N().createElement("tr");
832
832
  return this.__height && (t.style.height = `${this.__height}px`), A(t, e.theme.tableRow), t;
833
833
  }
834
834
  extractWithChild(e, t, n) {
@@ -856,8 +856,8 @@ var vr = class e extends dt {
856
856
  };
857
857
  function yr(e) {
858
858
  let t = e, n;
859
- return pr.test(t.style.height) && (n = parseFloat(t.style.height)), {
860
- after: (e) => tn(e, U),
859
+ return fr.test(t.style.height) && (n = parseFloat(t.style.height)), {
860
+ after: (e) => en(e, U),
861
861
  node: br(n)
862
862
  };
863
863
  }
@@ -872,9 +872,9 @@ function xr(e, t, n = !0) {
872
872
  for (let a = 0; a < e; a++) {
873
873
  let e = br();
874
874
  for (let i = 0; i < t; i++) {
875
- let t = V.NO_STATUS;
876
- typeof n == "object" ? (a === 0 && n.rows && (t |= V.ROW), i === 0 && n.columns && (t |= V.COLUMN)) : n && (a === 0 && (t |= V.ROW), i === 0 && (t |= V.COLUMN));
877
- let o = H(t), s = r();
875
+ let t = H.NO_STATUS;
876
+ typeof n == "object" ? (a === 0 && n.rows && (t |= H.ROW), i === 0 && n.columns && (t |= H.COLUMN)) : n && (a === 0 && (t |= H.ROW), i === 0 && (t |= H.COLUMN));
877
+ let o = gr(t), s = r();
878
878
  s.append(l()), o.append(s), e.append(o);
879
879
  }
880
880
  i.append(e);
@@ -902,9 +902,9 @@ function Tr(e) {
902
902
  function Er(e) {
903
903
  return Cr(e).getChildren().findIndex((t) => t.is(e));
904
904
  }
905
- var Dr = (e, t) => e === V.BOTH || e === t ? t : V.NO_STATUS;
905
+ var Dr = (e, t) => e === H.BOTH || e === t ? t : H.NO_STATUS;
906
906
  function Or(e = !0) {
907
- let t = N();
907
+ let t = P();
908
908
  j(t) || J(t) || W(188);
909
909
  let n = t.anchor.getNode(), r = t.focus.getNode(), [i] = q(n), [a, , o] = q(r), [, s, c] = K(o, a, i), { startRow: l } = c, { startRow: u } = s;
910
910
  return e ? kr(l + i.__rowSpan > u + a.__rowSpan ? i : a, !0) : kr(u < l ? a : i, !1);
@@ -916,8 +916,8 @@ function kr(e, t = !0) {
916
916
  for (let e = 0; e < o; e++) {
917
917
  let { cell: n, startRow: i } = a[e];
918
918
  if (i + n.__rowSpan - 1 <= t) {
919
- let t = a[e].cell.__headerState, n = Dr(t, V.COLUMN);
920
- l.append(H(n).append(r()));
919
+ let t = a[e].cell.__headerState, n = Dr(t, H.COLUMN);
920
+ l.append(gr(n).append(r()));
921
921
  } else n.setRowSpan(n.__rowSpan + 1);
922
922
  }
923
923
  let u = n.getChildAtIndex(t);
@@ -927,8 +927,8 @@ function kr(e, t = !0) {
927
927
  for (let n = 0; n < o; n++) {
928
928
  let { cell: i, startRow: o } = t[n];
929
929
  if (o === e) {
930
- let e = t[n].cell.__headerState, i = Dr(e, V.COLUMN);
931
- a.append(H(i).append(r()));
930
+ let e = t[n].cell.__headerState, i = Dr(e, H.COLUMN);
931
+ a.append(gr(i).append(r()));
932
932
  } else i.setRowSpan(i.__rowSpan + 1);
933
933
  }
934
934
  let l = n.getChildAtIndex(e);
@@ -937,7 +937,7 @@ function kr(e, t = !0) {
937
937
  return c;
938
938
  }
939
939
  function Ar(e = !0) {
940
- let t = N();
940
+ let t = P();
941
941
  j(t) || J(t) || W(188);
942
942
  let n = t.anchor.getNode(), r = t.focus.getNode(), [i] = q(n), [a, , o] = q(r), [, s, c] = K(o, a, i), { startColumn: l } = c, { startColumn: u } = s;
943
943
  return e ? jr(l + i.__colSpan > u + a.__colSpan ? i : a, !0) : jr(u < l ? a : i, !1);
@@ -946,8 +946,8 @@ function jr(e, t = !0, n = !0) {
946
946
  let [, , i] = q(e), [a, o] = K(i, e, e), s = a.length, { startColumn: c } = o, l = t ? c + e.__colSpan - 1 : c - 1, u = i.getFirstChild();
947
947
  G(u) || W(120);
948
948
  let d = null;
949
- function f(e = V.NO_STATUS) {
950
- let t = H(e).append(r());
949
+ function f(e = H.NO_STATUS) {
950
+ let t = gr(e).append(r());
951
951
  return d === null && (d = t), t;
952
952
  }
953
953
  let p = u;
@@ -956,7 +956,7 @@ function jr(e, t = !0, n = !0) {
956
956
  let e = p.getNextSibling();
957
957
  G(e) || W(121), p = e;
958
958
  }
959
- let t = a[e], n = t[l < 0 ? 0 : l].cell.__headerState, r = Dr(n, V.ROW);
959
+ let t = a[e], n = t[l < 0 ? 0 : l].cell.__headerState, r = Dr(n, H.ROW);
960
960
  if (l < 0) {
961
961
  Fr(p, f(r));
962
962
  continue;
@@ -986,7 +986,7 @@ function jr(e, t = !0, n = !0) {
986
986
  return d;
987
987
  }
988
988
  function Mr() {
989
- let e = N();
989
+ let e = P();
990
990
  j(e) || J(e) || W(188);
991
991
  let [t, n] = e.isBackward() ? [e.focus.getNode(), e.anchor.getNode()] : [e.anchor.getNode(), e.focus.getNode()], [r, , i] = q(t), [a] = q(n), [o, s, c] = K(i, r, a), { startRow: l } = s, { startRow: u } = c, d = u + a.__rowSpan - 1;
992
992
  if (o.length === d - l + 1) return void i.remove();
@@ -1022,7 +1022,7 @@ function Mr() {
1022
1022
  }
1023
1023
  }
1024
1024
  function Nr() {
1025
- let e = N();
1025
+ let e = P();
1026
1026
  j(e) || J(e) || W(188);
1027
1027
  let t = e.anchor.getNode(), n = e.focus.getNode(), [r, , i] = q(t), [a] = q(n), [o, s, c] = K(i, r, a), { startColumn: l } = s, { startRow: u, startColumn: d } = c, f = Math.min(l, d), p = Math.max(l + r.__colSpan - 1, d + a.__colSpan - 1), m = p - f + 1;
1028
1028
  if (o[0].length === p - f + 1) return i.selectPrevious(), void i.remove();
@@ -1095,7 +1095,7 @@ function Lr(e) {
1095
1095
  return !(!ot(t) || !t.isEmpty());
1096
1096
  }
1097
1097
  function Rr() {
1098
- let e = N();
1098
+ let e = P();
1099
1099
  j(e) || J(e) || W(188);
1100
1100
  let t = i(e.anchor.getNode(), U);
1101
1101
  return U(t) || W(148), zr(t);
@@ -1103,17 +1103,17 @@ function Rr() {
1103
1103
  function zr(e) {
1104
1104
  let [t, n, i] = q(e), a = t.__colSpan, o = t.__rowSpan;
1105
1105
  if (a === 1 && o === 1) return;
1106
- let [s, c] = K(i, t, t), { startColumn: l, startRow: u } = c, d = t.__headerState & V.COLUMN, f = Array.from({ length: a }, (e, t) => {
1106
+ let [s, c] = K(i, t, t), { startColumn: l, startRow: u } = c, d = t.__headerState & H.COLUMN, f = Array.from({ length: a }, (e, t) => {
1107
1107
  let n = d;
1108
1108
  for (let e = 0; n !== 0 && e < s.length; e++) n &= s[e][t + l].cell.__headerState;
1109
1109
  return n;
1110
- }), p = t.__headerState & V.ROW, m = Array.from({ length: o }, (e, t) => {
1110
+ }), p = t.__headerState & H.ROW, m = Array.from({ length: o }, (e, t) => {
1111
1111
  let n = p;
1112
1112
  for (let e = 0; n !== 0 && e < s[0].length; e++) n &= s[t + u][e].cell.__headerState;
1113
1113
  return n;
1114
1114
  });
1115
1115
  if (a > 1) {
1116
- for (let e = 1; e < a; e++) t.insertAfter(H(f[e] | m[0]).append(r()));
1116
+ for (let e = 1; e < a; e++) t.insertAfter(gr(f[e] | m[0]).append(r()));
1117
1117
  t.setColSpan(1);
1118
1118
  }
1119
1119
  if (o > 1) {
@@ -1126,8 +1126,8 @@ function zr(e) {
1126
1126
  let t = o[e], n = t.cell;
1127
1127
  t.startRow === i && (c = n), n.__colSpan > 1 && (e += n.__colSpan - 1);
1128
1128
  }
1129
- if (c === null) for (let n = a - 1; n >= 0; n--) Fr(e, H(f[n] | m[t]).append(r()));
1130
- else for (let e = a - 1; e >= 0; e--) c.insertAfter(H(f[e] | m[t]).append(r()));
1129
+ if (c === null) for (let n = a - 1; n >= 0; n--) Fr(e, gr(f[n] | m[t]).append(r()));
1130
+ else for (let e = a - 1; e >= 0; e--) c.insertAfter(gr(f[e] | m[t]).append(r()));
1131
1131
  }
1132
1132
  t.setRowSpan(1);
1133
1133
  }
@@ -1173,7 +1173,7 @@ function Br(e, t, n) {
1173
1173
  }
1174
1174
  function q(e) {
1175
1175
  let t;
1176
- if (e instanceof mr) t = e;
1176
+ if (e instanceof pr) t = e;
1177
1177
  else if ("__type" in e) {
1178
1178
  let n = i(e, U);
1179
1179
  U(n) || W(148), t = n;
@@ -1241,16 +1241,16 @@ function Ur(e, t) {
1241
1241
  let e = Vr(f, p, m), t = e.maxRow - e.minRow + 1, n = e.maxColumn - e.minColumn + 1;
1242
1242
  v = e.minRow, y = e.minColumn, b = Math.min(b, t), x = Math.min(x, n);
1243
1243
  }
1244
- let S = !1, C = Math.min(g, v + b) - 1, w = Math.min(_, y + x) - 1, T = /* @__PURE__ */ new Set();
1245
- for (let e = v; e <= C; e++) for (let t = y; t <= w; t++) {
1244
+ let S = !1, ee = Math.min(g, v + b) - 1, C = Math.min(_, y + x) - 1, w = /* @__PURE__ */ new Set();
1245
+ for (let e = v; e <= ee; e++) for (let t = y; t <= C; t++) {
1246
1246
  let n = f[e][t];
1247
- T.has(n.cell.getKey()) || n.cell.__rowSpan === 1 && n.cell.__colSpan === 1 || (zr(n.cell), T.add(n.cell.getKey()), S = !0);
1247
+ w.has(n.cell.getKey()) || n.cell.__rowSpan === 1 && n.cell.__colSpan === 1 || (zr(n.cell), w.add(n.cell.getKey()), S = !0);
1248
1248
  }
1249
- let [E] = Br(u.getWritable(), null, null), D = b - g + v;
1250
- for (let e = 0; e < D; e++) kr(E[g - 1][0].cell);
1251
- let ee = x - _ + y;
1252
- for (let e = 0; e < ee; e++) jr(E[0][_ - 1].cell, !0, !1);
1253
- [E] = Br(u.getWritable(), null, null);
1249
+ let [T] = Br(u.getWritable(), null, null), E = b - g + v;
1250
+ for (let e = 0; e < E; e++) kr(T[g - 1][0].cell);
1251
+ let D = x - _ + y;
1252
+ for (let e = 0; e < D; e++) jr(T[0][_ - 1].cell, !0, !1);
1253
+ [T] = Br(u.getWritable(), null, null);
1254
1254
  for (let e = v; e < v + b; e++) for (let t = y; t < y + x; t++) {
1255
1255
  let n = e - v, i = t - y, a = h[n][i];
1256
1256
  if (a.startRow !== n || a.startColumn !== i) continue;
@@ -1258,12 +1258,12 @@ function Ur(e, t) {
1258
1258
  if (o.__rowSpan !== 1 || o.__colSpan !== 1) {
1259
1259
  let n = [], r = Math.min(e + o.__rowSpan, v + b) - 1, i = Math.min(t + o.__colSpan, y + x) - 1;
1260
1260
  for (let a = e; a <= r; a++) for (let e = t; e <= i; e++) {
1261
- let t = E[a][e];
1261
+ let t = T[a][e];
1262
1262
  n.push(t.cell);
1263
1263
  }
1264
1264
  Ir(n), S = !0;
1265
1265
  }
1266
- let { cell: s } = E[e][t], c = o.getBackgroundColor();
1266
+ let { cell: s } = T[e][t], c = o.getBackgroundColor();
1267
1267
  c != null && s.setBackgroundColor(c);
1268
1268
  let l = s.getChildren();
1269
1269
  o.getChildren().forEach((e) => {
@@ -1315,7 +1315,7 @@ var Gr = class e {
1315
1315
  }
1316
1316
  isValid() {
1317
1317
  if (this.tableKey === "root" || this.anchor.key === "root" || this.anchor.type !== "element" || this.focus.key === "root" || this.focus.type !== "element") return !1;
1318
- let e = T(this.tableKey), t = T(this.anchor.key), n = T(this.focus.key);
1318
+ let e = w(this.tableKey), t = w(this.anchor.key), n = w(this.focus.key);
1319
1319
  return e !== null && t !== null && n !== null;
1320
1320
  }
1321
1321
  isBackward() {
@@ -1348,7 +1348,7 @@ var Gr = class e {
1348
1348
  for (let e of t) {
1349
1349
  let t = br();
1350
1350
  for (let n of e) {
1351
- let e = H(V.NO_STATUS), i = r();
1351
+ let e = gr(H.NO_STATUS), i = r();
1352
1352
  n && i.append(l(n)), e.append(i), t.append(e);
1353
1353
  }
1354
1354
  n.append(t);
@@ -1363,12 +1363,12 @@ var Gr = class e {
1363
1363
  let n = e.getFirstChild();
1364
1364
  ot(n) && (t |= n.getTextFormat());
1365
1365
  });
1366
- let n = jt[e];
1366
+ let n = At[e];
1367
1367
  return (t & n) !== 0;
1368
1368
  }
1369
1369
  insertNodes(e) {
1370
1370
  let t = this.focus.getNode();
1371
- P(t) || W(151), pe(t.select(0, t.getChildrenSize())).insertNodes(e);
1371
+ F(t) || W(151), pe(t.select(0, t.getChildrenSize())).insertNodes(e);
1372
1372
  }
1373
1373
  getShape() {
1374
1374
  let { anchorCell: e, focusCell: t } = Wr(this), n = Hr(e);
@@ -1425,18 +1425,18 @@ function Kr() {
1425
1425
  }
1426
1426
  function qr(e, t, n) {
1427
1427
  e.getKey(), t.getKey(), n.getKey();
1428
- let r = N(), i = J(r) ? r.clone() : Kr();
1428
+ let r = P(), i = J(r) ? r.clone() : Kr();
1429
1429
  return i.set(e.getKey(), t.getKey(), n.getKey()), i;
1430
1430
  }
1431
1431
  function Jr(e, t) {
1432
1432
  let n = [[e]];
1433
1433
  for (let e = n.at(-1); e !== void 0 && n.length > 0; e = n.at(-1)) {
1434
1434
  let r = e.pop();
1435
- r === void 0 ? n.pop() : !1 !== t(r) && P(r) && n.push(r.getChildren());
1435
+ r === void 0 ? n.pop() : !1 !== t(r) && F(r) && n.push(r.getChildren());
1436
1436
  }
1437
1437
  }
1438
- function Yr(e, t = Ot()) {
1439
- let n = T(e);
1438
+ function Yr(e, t = Dt()) {
1439
+ let n = w(e);
1440
1440
  Y(n) || W(231, e);
1441
1441
  let r = ri(n, t.getElementByKey(e));
1442
1442
  return r === null && W(232, e), {
@@ -1475,7 +1475,7 @@ var Xr = class {
1475
1475
  $getTableNodesAndObservers() {
1476
1476
  let e = [];
1477
1477
  for (let [t, [n]] of Array.from(this.observers.entries())) {
1478
- let r = T(t);
1478
+ let r = w(t);
1479
1479
  Y(r) ? e.push([r, n]) : this.removeObserver(t);
1480
1480
  }
1481
1481
  return e;
@@ -1545,7 +1545,7 @@ var Xr = class {
1545
1545
  let t = this.editor;
1546
1546
  this.isHighlightingCells = !1, this.anchorX = -1, this.anchorY = -1, this.focusX = -1, this.focusY = -1, this.tableSelection = null, this.anchorCellNodeKey = null, this.focusCellNodeKey = null, this.anchorCell = null, this.focusCell = null, this.hasHijackedSelectionStyles = !1, this.$enableHighlightStyle();
1547
1547
  let { tableNode: n, tableElement: r } = this.$lookup();
1548
- _i(t, gi(n, r), null), e && N() !== null && (p(null), t.dispatchCommand(g, void 0));
1548
+ _i(t, gi(n, r), null), e && P() !== null && (p(null), t.dispatchCommand(g, void 0));
1549
1549
  }
1550
1550
  $enableHighlightStyle() {
1551
1551
  let e = this.editor, { tableElement: t } = this.$lookup();
@@ -1584,7 +1584,7 @@ var Xr = class {
1584
1584
  return !1;
1585
1585
  }
1586
1586
  $getAnchorTableCell() {
1587
- let e = this.anchorCellNodeKey ? T(this.anchorCellNodeKey) : null;
1587
+ let e = this.anchorCellNodeKey ? w(this.anchorCellNodeKey) : null;
1588
1588
  return U(e) ? e : null;
1589
1589
  }
1590
1590
  $getAnchorTableCellOrThrow() {
@@ -1592,7 +1592,7 @@ var Xr = class {
1592
1592
  return e === null && W(234), e;
1593
1593
  }
1594
1594
  $getFocusTableCell() {
1595
- let e = this.focusCellNodeKey ? T(this.focusCellNodeKey) : null;
1595
+ let e = this.focusCellNodeKey ? w(this.focusCellNodeKey) : null;
1596
1596
  return U(e) ? e : null;
1597
1597
  }
1598
1598
  $getFocusTableCellOrThrow() {
@@ -1608,7 +1608,7 @@ var Xr = class {
1608
1608
  }
1609
1609
  }
1610
1610
  $formatCells(e) {
1611
- let t = N();
1611
+ let t = P();
1612
1612
  J(t) || W(236);
1613
1613
  let n = tt(), r = n.anchor, i = n.focus, a = t.getNodes().filter(U);
1614
1614
  a.length > 0 || W(237);
@@ -1618,19 +1618,19 @@ var Xr = class {
1618
1618
  }), p(t), this.editor.dispatchCommand(g, void 0);
1619
1619
  }
1620
1620
  $clearText() {
1621
- let { editor: e } = this, t = T(this.tableNodeKey);
1621
+ let { editor: e } = this, t = w(this.tableNodeKey);
1622
1622
  if (!Y(t)) throw Error("Expected TableNode.");
1623
- let i = N();
1623
+ let i = P();
1624
1624
  J(i) || W(253);
1625
1625
  let a = i.getNodes().filter(U), o = t.getFirstChild(), s = t.getLastChild();
1626
1626
  if (a.length > 0 && o !== null && s !== null && G(o) && G(s) && a[0] === o.getFirstChild() && a[a.length - 1] === s.getLastChild()) {
1627
1627
  t.selectPrevious();
1628
1628
  let r = t.getParent();
1629
- t.remove(), Tt(r) && r.isEmpty() && e.dispatchCommand(n, void 0);
1629
+ t.remove(), wt(r) && r.isEmpty() && e.dispatchCommand(n, void 0);
1630
1630
  return;
1631
1631
  }
1632
1632
  a.forEach((e) => {
1633
- if (P(e)) {
1633
+ if (F(e)) {
1634
1634
  let t = r(), n = l();
1635
1635
  t.append(n), e.append(t), e.getChildren().forEach((e) => {
1636
1636
  e !== t && e.remove();
@@ -1669,18 +1669,18 @@ function ai(e, t) {
1669
1669
  var oi = [
1670
1670
  [de, "down"],
1671
1671
  [s, "up"],
1672
- [Ft, "backward"],
1672
+ [Pt, "backward"],
1673
1673
  [u, "forward"]
1674
1674
  ], si = [
1675
1675
  et,
1676
1676
  Ie,
1677
- D
1678
- ], ci = [ie, zt];
1677
+ E
1678
+ ], ci = [ie, Rt];
1679
1679
  function li(e, t) {
1680
1680
  return e.registerRootListener((n) => {
1681
1681
  if (n === null) return;
1682
1682
  let r = e._window;
1683
- if (r !== null) return qt(r, "pointerdown", (r) => {
1683
+ if (r !== null) return Kt(r, "pointerdown", (r) => {
1684
1684
  let i = Pe(r);
1685
1685
  if (r.button !== 0 || !k(i) || !n.contains(i)) return;
1686
1686
  let a = function(e) {
@@ -1698,7 +1698,7 @@ function li(e, t) {
1698
1698
  return null;
1699
1699
  }(i);
1700
1700
  e.update(() => {
1701
- if (J(N())) {
1701
+ if (J(P())) {
1702
1702
  for (let [e] of t.observers.values()) e.$clearHighlight(!1);
1703
1703
  p(null), e.dispatchCommand(g, void 0);
1704
1704
  }
@@ -1817,13 +1817,13 @@ function ui(e, t, r, a, o) {
1817
1817
  pi(e) !== null && W(205), e[Qr] = t;
1818
1818
  })(d, u), u.listenersToRemove.add(() => function(e, t) {
1819
1819
  pi(e) === t && delete e[Qr];
1820
- }(d, u)), u.listenersToRemove.add(qt(d, "mousedown", (e) => {
1820
+ }(d, u)), u.listenersToRemove.add(Kt(d, "mousedown", (e) => {
1821
1821
  let t = Pe(e);
1822
1822
  e.detail >= 3 && k(t) && mi(t) !== null && e.preventDefault();
1823
1823
  }, u.listenerOptions));
1824
1824
  for (let [t, n] of oi) u.listenersToRemove.add(r.registerCommand(t, (t) => ji(r, t, n, e, u, o), 3));
1825
1825
  u.listenersToRemove.add(r.registerCommand(it, (t) => {
1826
- let n = N();
1826
+ let n = P();
1827
1827
  if (J(n)) {
1828
1828
  let r = ai(e, n.focus.getNode());
1829
1829
  if (r !== null) return Mi(t), r.selectEnd(), !0;
@@ -1831,22 +1831,22 @@ function ui(e, t, r, a, o) {
1831
1831
  return !1;
1832
1832
  }, 3));
1833
1833
  let f = (t) => () => {
1834
- let n = N();
1834
+ let n = P();
1835
1835
  if (!wi(n, e)) return !1;
1836
1836
  if (J(n)) return u.$clearText(), !0;
1837
1837
  if (j(n)) {
1838
1838
  if (!U(ai(e, n.anchor.getNode()))) return !1;
1839
1839
  let r = n.anchor.getNode(), a = n.focus.getNode(), o = e.isParentOf(r), s = e.isParentOf(a);
1840
1840
  if (o && !s || s && !o) return u.$clearText(), !0;
1841
- let c = i(n.anchor.getNode(), (e) => P(e)), l = c && i(c, (e) => P(e) && U(e.getParent()));
1842
- if (!P(l) || !P(c)) return !1;
1841
+ let c = i(n.anchor.getNode(), (e) => F(e)), l = c && i(c, (e) => F(e) && U(e.getParent()));
1842
+ if (!F(l) || !F(c)) return !1;
1843
1843
  if (t === Ie && l.getPreviousSibling() === null) return !0;
1844
1844
  }
1845
1845
  return !1;
1846
1846
  };
1847
1847
  for (let e of si) u.listenersToRemove.add(r.registerCommand(e, f(e), 3));
1848
1848
  let p = (t) => {
1849
- let n = N();
1849
+ let n = P();
1850
1850
  if (!J(n) && !j(n)) return !1;
1851
1851
  let r = e.isParentOf(n.anchor.getNode());
1852
1852
  if (r !== e.isParentOf(n.focus.getNode())) {
@@ -1857,33 +1857,33 @@ function ui(e, t, r, a, o) {
1857
1857
  };
1858
1858
  for (let e of ci) u.listenersToRemove.add(r.registerCommand(e, p, 3));
1859
1859
  u.listenersToRemove.add(r.registerCommand(ae, (e) => {
1860
- let t = N();
1860
+ let t = P();
1861
1861
  if (t) {
1862
1862
  if (!J(t) && !j(t)) return !1;
1863
- _n(r, cn(e, ClipboardEvent) ? e : null, En(t));
1863
+ gn(r, on(e, ClipboardEvent) ? e : null, Tn(t));
1864
1864
  let n = p(e);
1865
1865
  return j(t) ? (t.removeText(), !0) : n;
1866
1866
  }
1867
1867
  return !1;
1868
1868
  }, 3));
1869
1869
  let m = s.ownerDocument;
1870
- return u.listenersToRemove.add(qt(m, "paste", (t) => {
1870
+ return u.listenersToRemove.add(Kt(m, "paste", (t) => {
1871
1871
  t.defaultPrevented || r.read("latest", () => {
1872
- let t = N();
1872
+ let t = P();
1873
1873
  return s.contains(m.activeElement) && J(t) && wi(t, e);
1874
1874
  }) && (t.preventDefault(), r.dispatchCommand(Te, t));
1875
- })), u.listenersToRemove.add(qt(m, "copy", (t) => {
1875
+ })), u.listenersToRemove.add(Kt(m, "copy", (t) => {
1876
1876
  if (t.defaultPrevented) return;
1877
1877
  let n = Pe(t);
1878
1878
  n === s || k(n) && s.contains(n) || r.read("latest", () => {
1879
- let t = N();
1880
- return s.contains(C(s)) && J(t) && wi(t, e);
1879
+ let t = P();
1880
+ return s.contains(ee(s)) && J(t) && wi(t, e);
1881
1881
  }) && (t.preventDefault(), r.dispatchCommand(me, t));
1882
- })), u.listenersToRemove.add(r.registerCommand(Rt, (t) => {
1883
- let n = N();
1882
+ })), u.listenersToRemove.add(r.registerCommand(Lt, (t) => {
1883
+ let n = P();
1884
1884
  return wi(n, e) ? J(n) ? (u.$formatCells(t), !0) : (j(n) && U(i(n.anchor.getNode(), (e) => U(e))), !1) : !1;
1885
- }, 3)), u.listenersToRemove.add(r.registerCommand(Nt, (t) => {
1886
- let n = N();
1885
+ }, 3)), u.listenersToRemove.add(r.registerCommand(Mt, (t) => {
1886
+ let n = P();
1887
1887
  if (!J(n) || !wi(n, e)) return !1;
1888
1888
  let r = n.anchor.getNode(), i = n.focus.getNode();
1889
1889
  if (!U(r) || !U(i)) return !1;
@@ -1905,12 +1905,12 @@ function ui(e, t, r, a, o) {
1905
1905
  let i = r.getChildren();
1906
1906
  for (let e = 0; e < i.length; e++) {
1907
1907
  let n = i[e];
1908
- P(n) && !n.isInline() && n.setFormat(t);
1908
+ F(n) && !n.isInline() && n.setFormat(t);
1909
1909
  }
1910
1910
  }
1911
1911
  return !0;
1912
1912
  }, 3)), u.listenersToRemove.add(r.registerCommand(Se, (t) => {
1913
- let n = N();
1913
+ let n = P();
1914
1914
  if (!wi(n, e)) return !1;
1915
1915
  if (J(n)) return u.$clearHighlight(), !1;
1916
1916
  if (j(n)) {
@@ -1921,31 +1921,31 @@ function ui(e, t, r, a, o) {
1921
1921
  }
1922
1922
  }
1923
1923
  return !1;
1924
- }, 3)), a && u.listenersToRemove.add(r.registerCommand(Jt, (t) => {
1925
- let n = N();
1924
+ }, 3)), a && u.listenersToRemove.add(r.registerCommand(qt, (t) => {
1925
+ let n = P();
1926
1926
  if (!j(n) || !n.isCollapsed() || !wi(n, e)) return !1;
1927
1927
  let r = Oi(n.anchor.getNode());
1928
1928
  return !(r === null || !e.is(ki(r))) && (Mi(t), function(e, t) {
1929
1929
  let n = t === "next" ? "getNextSibling" : "getPreviousSibling", r = t === "next" ? "getFirstChild" : "getLastChild", a = e[n]();
1930
- if (P(a)) return a.selectEnd();
1930
+ if (F(a)) return a.selectEnd();
1931
1931
  let o = i(e, G);
1932
1932
  o === null && W(247);
1933
1933
  for (let e = o[n](); G(e); e = e[n]()) {
1934
1934
  let t = e[r]();
1935
- if (P(t)) return t.selectEnd();
1935
+ if (F(t)) return t.selectEnd();
1936
1936
  }
1937
1937
  let s = i(o, Y);
1938
1938
  s === null && W(248), t === "next" ? s.selectNext() : s.selectPrevious();
1939
1939
  }(r, t.shiftKey ? "previous" : "next"), !0);
1940
1940
  }, 3)), u.listenersToRemove.add(r.registerCommand(pt, (t) => e.isSelected(), 3)), u.listenersToRemove.add(r.registerCommand(n, () => {
1941
- let t = N();
1941
+ let t = P();
1942
1942
  if (!j(t) || !t.isCollapsed() || !wi(t, e)) return !1;
1943
1943
  let n = Pi(r, t, e);
1944
1944
  return !!n && (Ni(n, e), !0);
1945
1945
  }, 3)), u;
1946
1946
  }
1947
1947
  function di(e, t) {
1948
- let n = N(), r = ke(), a = e.getAndClearNextFocus();
1948
+ let n = P(), r = ke(), a = e.getAndClearNextFocus();
1949
1949
  if (a !== null) {
1950
1950
  let { tableKey: t, focusCell: r } = a, i = e.observers.get(t);
1951
1951
  i || W(335, t);
@@ -1955,7 +1955,7 @@ function di(e, t) {
1955
1955
  }
1956
1956
  let s = e.getAndClearShouldCheckSelectionForTable();
1957
1957
  if (s && j(r) && j(n) && n.isCollapsed()) {
1958
- let e = T(s);
1958
+ let e = w(s);
1959
1959
  if (Y(e)) {
1960
1960
  let t = n.anchor.getNode(), r = e.getFirstChild(), a = Oi(t);
1961
1961
  if (a !== null && G(r)) {
@@ -1997,7 +1997,7 @@ function di(e, t) {
1997
1997
  return !1;
1998
1998
  }
1999
1999
  function fi(e, t, n) {
2000
- let r = N(), i = ke();
2000
+ let r = P(), i = ke();
2001
2001
  r && !r.is(i) && (J(r) || J(i)) && n.tableSelection && !n.tableSelection.is(i) && (J(r) && r.tableKey === n.tableNodeKey ? n.$updateTableTableSelection(r) : !J(r) && J(i) && i.tableKey === n.tableNodeKey && n.$updateTableTableSelection(null)), n.hasHijackedSelectionStyles && !t.isSelected() ? function(e, t) {
2002
2002
  t.$enableHighlightStyle(), vi(t.table, (t) => {
2003
2003
  let n = t.elem;
@@ -2192,7 +2192,7 @@ function Ai(e, n, r, a, o, s, l) {
2192
2192
  if (t(u)) return !1;
2193
2193
  let d = u;
2194
2194
  for (let e of v(u).iterNodeCarets("shadowRoot")) {
2195
- if (!w(e) || !P(e.origin)) return !1;
2195
+ if (!C(e) || !F(e.origin)) return !1;
2196
2196
  d = e;
2197
2197
  }
2198
2198
  let f = d.getParentAtCaret();
@@ -2214,14 +2214,14 @@ function Ai(e, n, r, a, o, s, l) {
2214
2214
  if (!t) return !1;
2215
2215
  l.$setAnchorCellForSelection(_), l.$setFocusCellForSelection(t, !0);
2216
2216
  } else {
2217
- let e = Bt(m);
2217
+ let e = zt(m);
2218
2218
  c(r.anchor, e), c(r.focus, e);
2219
2219
  }
2220
2220
  else if (a === "extend") l.$setAnchorCellForSelection(_), l.$setFocusCellForSelection(_, !0);
2221
2221
  else {
2222
2222
  let e = function(e) {
2223
2223
  let t = ht(e);
2224
- return Le(t) ? Bt(t) : e;
2224
+ return Le(t) ? zt(t) : e;
2225
2225
  }(Ze(h, u.direction));
2226
2226
  c(r.anchor, e), c(r.focus, e);
2227
2227
  }
@@ -2232,13 +2232,13 @@ function ji(e, t, n, r, a, o) {
2232
2232
  let t = e.getRootElement();
2233
2233
  return t ? t.hasAttribute("aria-controls") && t.getAttribute("aria-controls") === "typeahead-menu" : !1;
2234
2234
  }(e)) return !1;
2235
- let s = N();
2235
+ let s = P();
2236
2236
  if (!wi(s, r)) {
2237
2237
  if (j(s)) {
2238
2238
  if (n === "backward") {
2239
2239
  if (s.focus.offset > 0) return !1;
2240
2240
  let e = function(e) {
2241
- for (let t = e, n = e; n !== null; t = n, n = n.getParent()) if (P(n)) {
2241
+ for (let t = e, n = e; n !== null; t = n, n = n.getParent()) if (F(n)) {
2242
2242
  if (n !== t && n.getFirstChild() !== t) return null;
2243
2243
  if (!n.isInline()) return n;
2244
2244
  }
@@ -2256,13 +2256,13 @@ function ji(e, t, n, r, a, o) {
2256
2256
  let o = n === "down" ? a.getNextSibling() : a.getPreviousSibling();
2257
2257
  if (!o) return !1;
2258
2258
  let c = 0;
2259
- n === "up" && P(o) && (c = o.getChildrenSize());
2259
+ n === "up" && F(o) && (c = o.getChildrenSize());
2260
2260
  let l = o;
2261
- n === "up" && P(o) && (l = o.getLastChild() || o, c = O(l) ? l.getTextContentSize() : 0);
2261
+ n === "up" && F(o) && (l = o.getLastChild() || o, c = O(l) ? l.getTextContentSize() : 0);
2262
2262
  let u = s.clone();
2263
2263
  return u.focus.set(l.getKey(), c, O(l) ? "text" : "element"), p(u), Mi(t), !0;
2264
2264
  }
2265
- if (ee(e)) {
2265
+ if (D(e)) {
2266
2266
  let e = n === "up" ? s.getNodes()[s.getNodes().length - 1] : s.getNodes()[0];
2267
2267
  if (e && ai(r, e) !== null) {
2268
2268
  let e = r.getFirstDescendant(), t = r.getLastDescendant();
@@ -2273,7 +2273,7 @@ function ji(e, t, n, r, a, o) {
2273
2273
  return !1;
2274
2274
  }
2275
2275
  {
2276
- let r = i(e, (e) => P(e) && !e.isInline());
2276
+ let r = i(e, (e) => F(e) && !e.isInline());
2277
2277
  if (U(r) && (r = i(r, Y)), !r) return !1;
2278
2278
  let o = n === "down" ? r.getNextSibling() : r.getPreviousSibling();
2279
2279
  if (Y(o) && a.tableNodeKey === o.getKey()) {
@@ -2304,7 +2304,7 @@ function ji(e, t, n, r, a, o) {
2304
2304
  else {
2305
2305
  let t = re(ii(e));
2306
2306
  if (t === null || t.rangeCount === 0) return !1;
2307
- let n = Et(t, e.getRootElement());
2307
+ let n = Tt(t, e.getRootElement());
2308
2308
  if (n === null) return !1;
2309
2309
  h = n.getBoundingClientRect();
2310
2310
  }
@@ -2374,7 +2374,7 @@ function Li(e, t, n) {
2374
2374
  if (!r) return;
2375
2375
  let i = [];
2376
2376
  for (let e = 0; e < t; e++) {
2377
- let t = M().createElement("col"), r = n && n[e];
2377
+ let t = N().createElement("col"), r = n && n[e];
2378
2378
  r && (t.style.width = `${r}px`), i.push(t);
2379
2379
  }
2380
2380
  r.replaceChildren(...i);
@@ -2389,7 +2389,7 @@ function Ri(e, t, n) {
2389
2389
  le(e, ...r), A(e, ...i);
2390
2390
  }
2391
2391
  var zi = /* @__PURE__ */ new WeakSet();
2392
- function Bi(e = Ot()) {
2392
+ function Bi(e = Dt()) {
2393
2393
  return zi.has(e);
2394
2394
  }
2395
2395
  function Vi(e, t) {
@@ -2448,11 +2448,11 @@ var Hi = class e extends dt {
2448
2448
  return ni(t) || W(229), super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"));
2449
2449
  }
2450
2450
  createDOM(e, t) {
2451
- let n = M().createElement("table");
2451
+ let n = N().createElement("table");
2452
2452
  this.__style && We(n.style, this.__style);
2453
- let r = M().createElement("colgroup");
2453
+ let r = N().createElement("colgroup");
2454
2454
  if (n.appendChild(r), se(r), A(n, e.theme.table), this.updateTableElement(null, n, e), Bi(t)) {
2455
- let t = M().createElement("div"), r = e.theme.tableScrollableWrapper;
2455
+ let t = N().createElement("div"), r = e.theme.tableScrollableWrapper;
2456
2456
  return r ? A(t, r) : t.style.overflowX = "auto", t.appendChild(n), this.updateTableWrapper(null, t, n, e), t;
2457
2457
  }
2458
2458
  return n;
@@ -2512,7 +2512,7 @@ var Hi = class e extends dt {
2512
2512
  }
2513
2513
  let s = n.querySelectorAll(":scope > tr");
2514
2514
  if (s.length > 0) {
2515
- let e = M().createElement("tbody");
2515
+ let e = N().createElement("tbody");
2516
2516
  for (let t of s) e.appendChild(t);
2517
2517
  n.append(e);
2518
2518
  }
@@ -2611,7 +2611,7 @@ function Wi(e) {
2611
2611
  let e = [];
2612
2612
  for (let t of n.querySelectorAll(":scope > col")) {
2613
2613
  let n = t.style.width || "";
2614
- if (!pr.test(n) && (n = t.getAttribute("width") || "", !/^\d+$/.test(n))) {
2614
+ if (!fr.test(n) && (n = t.getAttribute("width") || "", !/^\d+$/.test(n))) {
2615
2615
  e = void 0;
2616
2616
  break;
2617
2617
  }
@@ -2620,7 +2620,7 @@ function Wi(e) {
2620
2620
  e && t.setColWidths(e);
2621
2621
  }
2622
2622
  return {
2623
- after: (e) => tn(e, G),
2623
+ after: (e) => en(e, G),
2624
2624
  node: t
2625
2625
  };
2626
2626
  }
@@ -2634,10 +2634,10 @@ function Ki(e) {
2634
2634
  G(e.getParent()) ? e.isEmpty() && e.append(r()) : e.remove();
2635
2635
  }
2636
2636
  function qi(e) {
2637
- Y(e.getParent()) ? $t(e, U) : e.remove();
2637
+ Y(e.getParent()) ? cn(e, U) : e.remove();
2638
2638
  }
2639
2639
  function Ji(e) {
2640
- $t(e, G);
2640
+ cn(e, G);
2641
2641
  let [t] = Br(e, null, null), n = t.reduce((e, t) => Math.max(e, t.length), 0), i = e.getChildren();
2642
2642
  for (let e = 0; e < t.length; ++e) {
2643
2643
  let a = i[e];
@@ -2645,7 +2645,7 @@ function Ji(e) {
2645
2645
  G(a) || W(254, a.constructor.name, a.getType());
2646
2646
  let o = t[e].reduce((e, t) => t ? 1 + e : e, 0);
2647
2647
  if (o !== n) for (let e = o; e < n; ++e) {
2648
- let e = H();
2648
+ let e = gr();
2649
2649
  e.append(r()), a.append(e);
2650
2650
  }
2651
2651
  }
@@ -2664,11 +2664,11 @@ function Yi(e) {
2664
2664
  if (e.detail < 3 || !k(e.target)) return !1;
2665
2665
  let t = Me(e.target);
2666
2666
  if (t === null) return !1;
2667
- let n = i(t, (e) => P(e) && !e.isInline());
2667
+ let n = i(t, (e) => F(e) && !e.isInline());
2668
2668
  return n !== null && !!U(n.getParent()) && (n.select(0), !0);
2669
2669
  }
2670
2670
  function Xi() {
2671
- let e = N();
2671
+ let e = P();
2672
2672
  if (!j(e)) return !1;
2673
2673
  let t = ki(e.anchor.getNode());
2674
2674
  if (t === null) return !1;
@@ -2682,7 +2682,7 @@ function Xi() {
2682
2682
  return !o || !o.cell ? !1 : (p(qr(t, i.cell, o.cell)), !0);
2683
2683
  }
2684
2684
  function Zi(e) {
2685
- return e.registerNodeTransform(mr, (e) => {
2685
+ return e.registerNodeTransform(pr, (e) => {
2686
2686
  if (e.getColSpan() > 1 || e.getRowSpan() > 1) {
2687
2687
  let [, , t] = q(e), [n] = K(t, e, e), r = n.length, i = n[0].length, a = t.getFirstChild();
2688
2688
  G(a) || W(175);
@@ -2695,8 +2695,8 @@ function Zi(e) {
2695
2695
  if (i.startRow === e && i.startColumn === r) t = s, o.push(s);
2696
2696
  else if (s.getColSpan() > 1 || s.getRowSpan() > 1) {
2697
2697
  U(s) || W(176);
2698
- let e = H(s.__headerState);
2699
- t === null ? en(a, e) : t.insertAfter(e);
2698
+ let e = gr(s.__headerState);
2699
+ t === null ? $t(a, e) : t.insertAfter(e);
2700
2700
  }
2701
2701
  }
2702
2702
  }
@@ -2725,21 +2725,21 @@ function Qi(e, t = !0) {
2725
2725
  }
2726
2726
  function $i(e, t) {
2727
2727
  e.hasNodes([Hi]) || W(255);
2728
- let { hasNestedTables: n = un(!1) } = t ?? {};
2728
+ let { hasNestedTables: n = ln(!1) } = t ?? {};
2729
2729
  return Ae(e.registerCommand(_r, (e) => function({ rows: e, columns: t, includeHeaders: n }, r) {
2730
- let i = N() || ke();
2730
+ let i = P() || ke();
2731
2731
  if (!i || !j(i) || !r && ki(i.anchor.getNode())) return !1;
2732
2732
  let a = xr(Number(e), Number(t), n);
2733
- on(a);
2733
+ rn(a);
2734
2734
  let o = a.getFirstDescendant();
2735
2735
  return O(o) && o.select(), !0;
2736
2736
  }(e, n.peek()), 0), e.registerCommand(ue, (t, r) => e === r && function(e, t) {
2737
2737
  let { nodes: n, selection: r } = e;
2738
- if (!n.some((e) => Y(e) || nn(e).some((e) => Y(e.node)))) {
2738
+ if (!n.some((e) => Y(e) || tn(e).some((e) => Y(e.node)))) {
2739
2739
  if (J(r)) {
2740
2740
  let e = "", t = !1;
2741
2741
  for (let r of n) {
2742
- let n = P(r) && !r.isInline();
2742
+ let n = F(r) && !r.isInline();
2743
2743
  e.length > 0 && (n || t) && (e += "\n"), e += r.getTextContent(), t = n;
2744
2744
  }
2745
2745
  return r.insertRawText(e), !0;
@@ -2750,27 +2750,27 @@ function $i(e, t) {
2750
2750
  return o && i(r.anchor.getNode(), (e) => U(e)) !== null && i(r.focus.getNode(), (e) => U(e)) !== null || a ? n.length === 1 && Y(n[0]) ? Ur(n[0], r) : !(o && t.peek() && !function(e) {
2751
2751
  return !!(J(e) && !e.focus.getNode().is(e.anchor.getNode()) || j(e) && U(e.anchor.getNode()) && !e.anchor.getNode().is(e.focus.getNode()));
2752
2752
  }(r)) : !1;
2753
- }(t, n), 0), e.registerCommand(Ct, Xi, 1), e.registerCommand(te, Yi, 0), e.registerNodeTransform(Hi, Ji), e.registerNodeTransform(vr, qi), e.registerNodeTransform(mr, Ki));
2753
+ }(t, n), 0), e.registerCommand(St, Xi, 1), e.registerCommand(te, Yi, 0), e.registerNodeTransform(Hi, Ji), e.registerNodeTransform(vr, qi), e.registerNodeTransform(pr, Ki));
2754
2754
  }
2755
- kn.tag("table"), kn.tag("tr"), kn.tag("td", "th");
2755
+ On.tag("table"), On.tag("tr"), On.tag("td", "th");
2756
2756
  //#endregion
2757
2757
  //#region src/context/MediaFileActionsContext.tsx
2758
- var ea = Nn({});
2758
+ var ea = Mn({});
2759
2759
  function ta({ children: e, revealFile: t }) {
2760
- let n = Rn(() => ({ revealFile: t }), [t]);
2761
- return /* @__PURE__ */ z(ea.Provider, {
2760
+ let n = Ln(() => ({ revealFile: t }), [t]);
2761
+ return /* @__PURE__ */ B(ea.Provider, {
2762
2762
  value: n,
2763
2763
  children: e
2764
2764
  });
2765
2765
  }
2766
2766
  function na() {
2767
- return In(ea);
2767
+ return Fn(ea);
2768
2768
  }
2769
2769
  //#endregion
2770
2770
  //#region src/context/BibleVerseActionsContext.tsx
2771
- var ra = Nn({});
2771
+ var ra = Mn({});
2772
2772
  function ia({ children: e, shortToVerseData: t, verseFullTextToListShorts: n, changeBibleKey: r }) {
2773
- let i = Rn(() => ({
2773
+ let i = Ln(() => ({
2774
2774
  shortToVerseData: t,
2775
2775
  verseFullTextToListShorts: n,
2776
2776
  changeBibleKey: r
@@ -2779,13 +2779,13 @@ function ia({ children: e, shortToVerseData: t, verseFullTextToListShorts: n, ch
2779
2779
  n,
2780
2780
  r
2781
2781
  ]);
2782
- return /* @__PURE__ */ z(ra.Provider, {
2782
+ return /* @__PURE__ */ B(ra.Provider, {
2783
2783
  value: i,
2784
2784
  children: e
2785
2785
  });
2786
2786
  }
2787
2787
  function aa() {
2788
- return In(ra);
2788
+ return Fn(ra);
2789
2789
  }
2790
2790
  //#endregion
2791
2791
  //#region src/lookupTypes.ts
@@ -3124,28 +3124,28 @@ var Da = class {
3124
3124
  getVerseRecordIds(e) {
3125
3125
  return e.verseLocationsMap ?? {};
3126
3126
  }
3127
- }, Aa = Oa.createEmpty(), ja = ka.createEmpty(), Ma = Nn({
3127
+ }, Aa = Oa.createEmpty(), ja = ka.createEmpty(), Ma = Mn({
3128
3128
  locationsLookupManager: ja,
3129
3129
  namesLookupManager: Aa
3130
3130
  });
3131
3131
  function Na({ children: e, locationsLookupManager: t, namesLookupManager: n }) {
3132
- let r = Rn(() => ({
3132
+ let r = Ln(() => ({
3133
3133
  locationsLookupManager: t ?? ja,
3134
3134
  namesLookupManager: n ?? Aa
3135
3135
  }), [t, n]);
3136
- return /* @__PURE__ */ z(Ma.Provider, {
3136
+ return /* @__PURE__ */ B(Ma.Provider, {
3137
3137
  value: r,
3138
3138
  children: e
3139
3139
  });
3140
3140
  }
3141
3141
  function Pa() {
3142
- return In(Ma);
3142
+ return Fn(Ma);
3143
3143
  }
3144
3144
  function Fa() {
3145
- return In(Ma).namesLookupManager;
3145
+ return Fn(Ma).namesLookupManager;
3146
3146
  }
3147
3147
  function Ia() {
3148
- return In(Ma).locationsLookupManager;
3148
+ return Fn(Ma).locationsLookupManager;
3149
3149
  }
3150
3150
  //#endregion
3151
3151
  //#region node_modules/@lexical/link/dist/LexicalLink.prod.mjs
@@ -3179,11 +3179,11 @@ var La = /* @__PURE__ */ new Set([
3179
3179
  super.afterCloneFrom(e), this.__url = e.__url, this.__rel = e.__rel, this.__target = e.__target, this.__title = e.__title;
3180
3180
  }
3181
3181
  createDOM(e) {
3182
- let t = M().createElement("a");
3182
+ let t = N().createElement("a");
3183
3183
  return this.updateLinkDOM(null, t, e), A(t, e.theme.link), t;
3184
3184
  }
3185
3185
  updateLinkDOM(e, t, n) {
3186
- if (Pt(t)) {
3186
+ if (Nt(t)) {
3187
3187
  e && e.__url === this.__url || (t.href = this.sanitizeUrl(this.__url));
3188
3188
  for (let n of [
3189
3189
  "target",
@@ -3296,12 +3296,12 @@ function za(e) {
3296
3296
  }
3297
3297
  function Ba(e, t) {
3298
3298
  for (let n of t) if (n.origin.isAttached()) {
3299
- c(e, Bt(n));
3299
+ c(e, zt(n));
3300
3300
  return;
3301
3301
  }
3302
3302
  }
3303
3303
  function Va(e) {
3304
- let t = N(), n = null, r = null;
3304
+ let t = P(), n = null, r = null;
3305
3305
  function i() {
3306
3306
  j(t) && (Ba(t.anchor, n), Ba(t.focus, r), pe(t));
3307
3307
  }
@@ -3309,7 +3309,7 @@ function Va(e) {
3309
3309
  let a = !1;
3310
3310
  for (let t of Ne(e, "next")) {
3311
3311
  let n = t.origin;
3312
- if (P(n) && !n.isInline()) {
3312
+ if (F(n) && !n.isInline()) {
3313
3313
  let r = n.getChildren();
3314
3314
  if (r.length > 0) {
3315
3315
  let t = rt(e);
@@ -3319,9 +3319,9 @@ function Va(e) {
3319
3319
  }
3320
3320
  }
3321
3321
  function o(e, t, n) {
3322
- let [r, i] = e, a = (e) => w(e) && e.origin.is(t);
3322
+ let [r, i] = e, a = (e) => C(e) && e.origin.is(t);
3323
3323
  if (!a(r) && !a(i)) return e;
3324
- let o = Bt(Ne(n, "next"));
3324
+ let o = zt(Ne(n, "next"));
3325
3325
  return [o, o.getFlipped()];
3326
3326
  }
3327
3327
  if (e.isAttached()) {
@@ -3340,7 +3340,7 @@ function Va(e) {
3340
3340
  }
3341
3341
  function Ha(e) {
3342
3342
  let t = null;
3343
- if (Pt(e)) {
3343
+ if (Nt(e)) {
3344
3344
  let n = e.textContent;
3345
3345
  (n !== null && n !== "" || e.children.length > 0) && (t = Ua(e.getAttribute("href") || "", {
3346
3346
  rel: e.getAttribute("rel"),
@@ -3386,7 +3386,7 @@ var Wa = class e extends Ra {
3386
3386
  return t.__isUnlinked = e, t;
3387
3387
  }
3388
3388
  createDOM(e) {
3389
- return this.__isUnlinked ? M().createElement("span") : super.createDOM(e);
3389
+ return this.__isUnlinked ? N().createElement("span") : super.createDOM(e);
3390
3390
  }
3391
3391
  updateDOM(e, t, n) {
3392
3392
  return super.updateDOM(e, t, n) || e.__isUnlinked !== this.__isUnlinked;
@@ -3422,11 +3422,11 @@ function Ga(e = "", t) {
3422
3422
  function Q(e) {
3423
3423
  return e instanceof Wa;
3424
3424
  }
3425
- var Ka = /* @__PURE__ */ Ht("TOGGLE_LINK_COMMAND");
3425
+ var Ka = /* @__PURE__ */ Vt("TOGGLE_LINK_COMMAND");
3426
3426
  function qa(e, t) {
3427
3427
  if (e.type === "element") {
3428
3428
  let n = e.getNode();
3429
- return P(n) || function(e, ...t) {
3429
+ return F(n) || function(e, ...t) {
3430
3430
  let n = new URL("https://lexical.dev/docs/error"), r = new URLSearchParams();
3431
3431
  r.append("code", e);
3432
3432
  for (let e of t) r.append("v", e);
@@ -3444,7 +3444,7 @@ function Ja(e, t = {}) {
3444
3444
  ...t
3445
3445
  };
3446
3446
  } else n = e;
3447
- let { target: r, title: a } = t, o = t.rel === void 0 ? "noreferrer" : t.rel, s = N();
3447
+ let { target: r, title: a } = t, o = t.rel === void 0 ? "noreferrer" : t.rel, s = P();
3448
3448
  if (s === null || !j(s) && !_(s)) return;
3449
3449
  if (_(s)) {
3450
3450
  let e = s.getNodes();
@@ -3481,7 +3481,7 @@ function Ja(e, t = {}) {
3481
3481
  let t = n.getKey();
3482
3482
  if (e.has(t)) return;
3483
3483
  (function(e, t) {
3484
- let n = new Set(t.filter((t) => e.isParentOf(t)).map((e) => e.getKey())), r = e.getChildren(), i = (r) => n.has(r.getKey()) || P(r) && t.some((t) => e.isParentOf(t) && r.isParentOf(t)), a = r.filter(i);
3484
+ let n = new Set(t.filter((t) => e.isParentOf(t)).map((e) => e.getKey())), r = e.getChildren(), i = (r) => n.has(r.getKey()) || F(r) && t.some((t) => e.isParentOf(t) && r.isParentOf(t)), a = r.filter(i);
3485
3485
  if (a.length === r.length) return r.forEach((t) => e.insertBefore(t)), void e.remove();
3486
3486
  let o = r.findIndex(i), s = r.findLastIndex(i), c = o === 0, l = s === r.length - 1;
3487
3487
  if (c) a.forEach((t) => e.insertBefore(t));
@@ -3507,11 +3507,11 @@ function Ja(e, t = {}) {
3507
3507
  if (t !== null) return u(t);
3508
3508
  }
3509
3509
  (function(e) {
3510
- let t = N();
3510
+ let t = P();
3511
3511
  if (!j(t)) return e();
3512
3512
  let n = pe(t), r = n.isBackward(), i = qa(n.anchor, r ? -1 : 0), a = qa(n.focus, r ? 0 : -1);
3513
3513
  if (e(), i || a) {
3514
- let e = N();
3514
+ let e = P();
3515
3515
  if (j(e)) {
3516
3516
  let t = e.clone();
3517
3517
  if (i) {
@@ -3534,7 +3534,7 @@ function Ja(e, t = {}) {
3534
3534
  u(s);
3535
3535
  continue;
3536
3536
  }
3537
- if (P(t)) {
3537
+ if (F(t)) {
3538
3538
  if (!t.isInline()) continue;
3539
3539
  if (Z(t)) {
3540
3540
  if (!(Q(t) || e !== null && e.getParentOrThrow().isParentOf(t))) {
@@ -3559,7 +3559,7 @@ var Ya = /^\+?[0-9\s()-]{5,}$/;
3559
3559
  function Xa(e) {
3560
3560
  return e.match(/^[a-z][a-z0-9+.-]*:/i) || e.match(/^[/#.]/) ? e : e.includes("@") ? `mailto:${e}` : Ya.test(e) ? `tel:${e}` : `https://${e}`;
3561
3561
  }
3562
- kn.tag("a");
3562
+ On.tag("a");
3563
3563
  function Za(e, t) {
3564
3564
  return Ae(e.registerNodeTransform(Ra, Va), e.registerCommand(Ka, (e) => {
3565
3565
  let n = t.validateUrl.peek(), r = t.attributes.peek();
@@ -3574,15 +3574,15 @@ function Za(e, t) {
3574
3574
  title: a
3575
3575
  }), !0;
3576
3576
  }
3577
- }, 0), dn(() => {
3577
+ }, 0), un(() => {
3578
3578
  let n = t.validateUrl.value;
3579
3579
  if (!n) return;
3580
3580
  let r = t.attributes.value;
3581
3581
  return e.registerCommand(Te, (t) => {
3582
- let i = N();
3583
- if (!j(i) || i.isCollapsed() || !cn(t, ClipboardEvent) || t.clipboardData === null) return !1;
3582
+ let i = P();
3583
+ if (!j(i) || i.isCollapsed() || !on(t, ClipboardEvent) || t.clipboardData === null) return !1;
3584
3584
  let a = t.clipboardData.getData("text");
3585
- return n(a) ? !i.getNodes().some((e) => P(e) || O(e) && !e.isSimpleText()) && (e.dispatchCommand(Ka, {
3585
+ return n(a) ? !i.getNodes().some((e) => F(e) || O(e) && !e.isSimpleText()) && (e.dispatchCommand(Ka, {
3586
3586
  ...r,
3587
3587
  url: a
3588
3588
  }), t.preventDefault(), !0) : !1;
@@ -3599,7 +3599,7 @@ function Qa(e, t, n = {}) {
3599
3599
  if (a.update(() => {
3600
3600
  let e = Me(r);
3601
3601
  if (e !== null) {
3602
- let n = i(e, P);
3602
+ let n = i(e, F);
3603
3603
  if (!t.disabled.peek()) if (Z(n)) c = Q(n) && n.getIsUnlinked(), o = n.sanitizeUrl(n.getURL()), s = n.getTarget();
3604
3604
  else {
3605
3605
  let e = function(e, t) {
@@ -3609,12 +3609,12 @@ function Qa(e, t, n = {}) {
3609
3609
  n = n.parentNode;
3610
3610
  }
3611
3611
  return null;
3612
- }(r, Pt);
3612
+ }(r, Nt);
3613
3613
  e !== null && (o = e.href, s = e.target);
3614
3614
  }
3615
3615
  }
3616
3616
  }), o === null || o === "" || c) return;
3617
- let l = e.read("latest", N);
3617
+ let l = e.read("latest", P);
3618
3618
  if (j(l) && !l.isCollapsed()) return void n.preventDefault();
3619
3619
  let u = n.type === "auxclick" && n.button === 1;
3620
3620
  window.open(o, t.newTab.peek() || u || n.metaKey || n.ctrlKey || s === "_blank" ? "_blank" : "_self"), n.preventDefault();
@@ -3622,7 +3622,7 @@ function Qa(e, t, n = {}) {
3622
3622
  e.button === 1 && r(e);
3623
3623
  };
3624
3624
  return e.registerRootListener((e) => {
3625
- if (e) return It(e, {
3625
+ if (e) return Ft(e, {
3626
3626
  click: r,
3627
3627
  mouseup: a
3628
3628
  }, n);
@@ -3658,11 +3658,11 @@ function io(e, t) {
3658
3658
  }
3659
3659
  function ao(e, t) {
3660
3660
  let n = e.getPreviousSibling();
3661
- return P(n) && (n = n.getLastDescendant()), n === null || Re(n) || O(n) && ro(n.getTextContent(), t);
3661
+ return F(n) && (n = n.getLastDescendant()), n === null || Re(n) || O(n) && ro(n.getTextContent(), t);
3662
3662
  }
3663
3663
  function oo(e, t) {
3664
3664
  let n = e.getNextSibling();
3665
- return P(n) && (n = n.getFirstDescendant()), n === null || Re(n) || O(n) && io(n.getTextContent(), t);
3665
+ return F(n) && (n = n.getFirstDescendant()), n === null || Re(n) || O(n) && io(n.getTextContent(), t);
3666
3666
  }
3667
3667
  function so(e, t, n, r, i) {
3668
3668
  return (e > 0 ? no(r[e - 1], n) : ao(i[0], n)) ? t < r.length ? no(r[t], n) : oo(i[i.length - 1], n) : !1;
@@ -3701,7 +3701,7 @@ function lo(e, t, n, r) {
3701
3701
  }
3702
3702
  o += i;
3703
3703
  }
3704
- let u = N(), d = u ? u.getNodes().find(O) : void 0, f = l(a.getTextContent());
3704
+ let u = P(), d = u ? u.getNodes().find(O) : void 0, f = l(a.getTextContent());
3705
3705
  return f.setFormat(a.getFormat()), f.setDetail(a.getDetail()), f.setStyle(a.getStyle()), i.append(f, ...s), d && d === a && (j(u) ? f.select(u.anchor.offset, u.focus.offset) : _(u) && f.select(0, f.getTextContent().length)), a.replace(i), c;
3706
3706
  }
3707
3707
  }
@@ -3783,7 +3783,7 @@ function mo(e, t = po) {
3783
3783
  }
3784
3784
  })(e, n, o, a));
3785
3785
  }), e.registerCommand(Ka, (e) => {
3786
- let t = N();
3786
+ let t = P();
3787
3787
  return e !== null || !j(t) || t.extract().forEach((e) => {
3788
3788
  let t = e.getParent();
3789
3789
  Q(t) && (t.setIsUnlinked(!t.getIsUnlinked()), t.markDirty());
@@ -3798,27 +3798,27 @@ function ho(e, ...t) {
3798
3798
  for (let e of t) r.append("v", e);
3799
3799
  throw n.search = r.toString(), Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`);
3800
3800
  }
3801
- var go = Ve ? Ln : I;
3801
+ var go = Ve ? In : L;
3802
3802
  function _o({ editor: e, ErrorBoundary: t }) {
3803
3803
  return function(e, t) {
3804
- let [n, r] = R(() => e.getDecorators());
3804
+ let [n, r] = z(() => e.getDecorators());
3805
3805
  return go(() => e.registerDecoratorListener((e) => {
3806
- Un(() => {
3806
+ Hn(() => {
3807
3807
  r(e);
3808
3808
  });
3809
- }), [e]), I(() => {
3809
+ }), [e]), L(() => {
3810
3810
  r(e.getDecorators());
3811
- }, [e]), Rn(() => {
3811
+ }, [e]), Ln(() => {
3812
3812
  let r = [], i = Object.keys(n);
3813
3813
  for (let a = 0; a < i.length; a++) {
3814
- let o = i[a], s = /*#__PURE__*/ z(t, {
3814
+ let o = i[a], s = /*#__PURE__*/ B(t, {
3815
3815
  onError: (t) => e._onError(t),
3816
- children: /*#__PURE__*/ z(Mn, {
3816
+ children: /*#__PURE__*/ B(jn, {
3817
3817
  fallback: null,
3818
3818
  children: n[o]
3819
3819
  })
3820
3820
  }), c = e.getElementByKey(o);
3821
- c !== null && r.push(/*#__PURE__*/ Hn(s, c, o));
3821
+ c !== null && r.push(/*#__PURE__*/ Vn(s, c, o));
3822
3822
  }
3823
3823
  return r;
3824
3824
  }, [
@@ -3830,36 +3830,36 @@ function _o({ editor: e, ErrorBoundary: t }) {
3830
3830
  }
3831
3831
  function vo({ editor: e, ErrorBoundary: t }) {
3832
3832
  return function(e) {
3833
- let t = pn.maybeFromEditor(e);
3834
- if (t && t.hasExtensionByName(mn.name)) {
3833
+ let t = fn.maybeFromEditor(e);
3834
+ if (t && t.hasExtensionByName(pn.name)) {
3835
3835
  for (let e of ["@lexical/plain-text", "@lexical/rich-text"]) t.hasExtensionByName(e) && ho(320, e);
3836
3836
  return !0;
3837
3837
  }
3838
3838
  return !1;
3839
- }(e) ? null : /*#__PURE__*/ z(_o, {
3839
+ }(e) ? null : /*#__PURE__*/ B(_o, {
3840
3840
  editor: e,
3841
3841
  ErrorBoundary: t
3842
3842
  });
3843
3843
  }
3844
3844
  function yo(e) {
3845
- return e.read("latest", fn(e.isComposing()));
3845
+ return e.read("latest", dn(e.isComposing()));
3846
3846
  }
3847
3847
  function bo({ contentEditable: e, placeholder: t = null, ErrorBoundary: n }) {
3848
- let [r] = _t();
3848
+ let [r] = M();
3849
3849
  return function(e) {
3850
- go(() => Ae(fr(e), Tn(e)), [e]);
3851
- }(r), /*#__PURE__*/ B(zn, { children: [
3850
+ go(() => Ae(dr(e), wn(e)), [e]);
3851
+ }(r), /*#__PURE__*/ V(Rn, { children: [
3852
3852
  e,
3853
- /*#__PURE__*/ z(xo, { content: t }),
3854
- /*#__PURE__*/ z(vo, {
3853
+ /*#__PURE__*/ B(xo, { content: t }),
3854
+ /*#__PURE__*/ B(vo, {
3855
3855
  editor: r,
3856
3856
  ErrorBoundary: n
3857
3857
  })
3858
3858
  ] });
3859
3859
  }
3860
3860
  function xo({ content: e }) {
3861
- let [t] = _t(), n = function(e) {
3862
- let [t, n] = R(() => yo(e));
3861
+ let [t] = M(), n = function(e) {
3862
+ let [t, n] = z(() => yo(e));
3863
3863
  return go(() => {
3864
3864
  function t() {
3865
3865
  let t = yo(e);
@@ -3871,7 +3871,7 @@ function xo({ content: e }) {
3871
3871
  t();
3872
3872
  }));
3873
3873
  }, [e]), t;
3874
- }(t), r = An();
3874
+ }(t), r = kn();
3875
3875
  return n ? typeof e == "function" ? e(r) : e : null;
3876
3876
  }
3877
3877
  //#endregion
@@ -3953,7 +3953,7 @@ function Mo({ locationsLookupManager: e, namesLookupManager: t }, n, r) {
3953
3953
  }
3954
3954
  function No({ value: e }) {
3955
3955
  let t = Pa();
3956
- return /* @__PURE__ */ z(zn, { children: Rn(() => jo(e), [e]).map((e, n) => e.kind === "text" ? /* @__PURE__ */ z(jn.Fragment, { children: e.text }, n) : /* @__PURE__ */ z("button", {
3956
+ return /* @__PURE__ */ B(Rn, { children: Ln(() => jo(e), [e]).map((e, n) => e.kind === "text" ? /* @__PURE__ */ B(An.Fragment, { children: e.text }, n) : /* @__PURE__ */ B("button", {
3957
3957
  className: `mention-reference-link mention-reference-link--${e.kind}`,
3958
3958
  type: "button",
3959
3959
  onClick: (n) => {
@@ -4017,7 +4017,7 @@ function Jo(e, t, n) {
4017
4017
  return Math.min(Math.max(e, t), n);
4018
4018
  }
4019
4019
  function Yo(e, t) {
4020
- return wn(e ?? t?.closest(".editor-zoom-surface") ?? document.querySelector(".editor-zoom-surface"));
4020
+ return Cn(e ?? t?.closest(".editor-zoom-surface") ?? document.querySelector(".editor-zoom-surface"));
4021
4021
  }
4022
4022
  var Xo = 420, Zo = 10, Qo = 12;
4023
4023
  function $o(e, t) {
@@ -4329,7 +4329,7 @@ function Os(e, t, n, r, i) {
4329
4329
  }
4330
4330
  //#endregion
4331
4331
  //#region src/nodes/MediaNode.tsx
4332
- var ks = jn.lazy(() => import("./MediaComponent-BTaaADsV.mjs"));
4332
+ var ks = An.lazy(() => import("./MediaComponent-CSawoM2p.mjs"));
4333
4333
  function As(e) {
4334
4334
  return e.parentElement != null && e.parentElement.tagName === "LI" && e.previousSibling === null && e.getAttribute("aria-roledescription") === "checkbox";
4335
4335
  }
@@ -4379,10 +4379,10 @@ function Fs(e) {
4379
4379
  }) };
4380
4380
  }
4381
4381
  function Is() {
4382
- for (let { origin: e } of v(Ne(d(), "next"))) if (!P(e)) return !1;
4382
+ for (let { origin: e } of v(Ne(d(), "next"))) if (!F(e)) return !1;
4383
4383
  return !0;
4384
4384
  }
4385
- var Ls = class e extends E {
4385
+ var Ls = class e extends T {
4386
4386
  __src;
4387
4387
  __altText;
4388
4388
  __width;
@@ -4421,7 +4421,7 @@ var Ls = class e extends E {
4421
4421
  let t = this.__caption, n = t.read(() => {
4422
4422
  if (Is()) return null;
4423
4423
  let e = null, n = d().getFirstChild();
4424
- return ot(n) && n.getNextSibling() === null && (e = tt(), e.anchor.set(n.getKey(), 0, "element"), e.focus.set(n.getKey(), n.getChildrenSize(), "element")), On(t, e);
4424
+ return ot(n) && n.getNextSibling() === null && (e = tt(), e.anchor.set(n.getKey(), 0, "element"), e.focus.set(n.getKey(), n.getChildrenSize(), "element")), Dn(t, e);
4425
4425
  });
4426
4426
  if (n) {
4427
4427
  let t = document.createElement("figure"), r = document.createElement("figcaption");
@@ -4465,8 +4465,8 @@ var Ls = class e extends E {
4465
4465
  after: (t) => {
4466
4466
  let n = t.filter(zs), r = e.querySelector("figcaption");
4467
4467
  if (r) for (let e of n) e.setShowCaption(!0), e.__caption.update(() => {
4468
- let e = Ot();
4469
- Sn(e, xn(e, r), Fe()), p(null);
4468
+ let e = Dt();
4469
+ xn(e, bn(e, r), Fe()), p(null);
4470
4470
  }, { tag: $e });
4471
4471
  return n;
4472
4472
  },
@@ -4496,7 +4496,7 @@ var Ls = class e extends E {
4496
4496
  super(c), this.__src = e, this.__altText = t, this.__maxWidth = n, this.__width = r || "inherit", this.__height = i || "inherit", this.__mediaType = l, this.__previewSrc = u, this.__showCaption = a || !1, this.__caption = o || ft({
4497
4497
  namespace: "Playground/MediaNodeCaption",
4498
4498
  nodes: [
4499
- St,
4499
+ xt,
4500
4500
  Ee,
4501
4501
  S,
4502
4502
  h,
@@ -4545,7 +4545,7 @@ var Ls = class e extends E {
4545
4545
  return this.__mediaType;
4546
4546
  }
4547
4547
  decorate() {
4548
- return /* @__PURE__ */ z(ks, {
4548
+ return /* @__PURE__ */ B(ks, {
4549
4549
  src: this.__src,
4550
4550
  altText: this.__altText,
4551
4551
  mediaType: this.__mediaType,
@@ -4621,7 +4621,7 @@ var Ws = [], Gs = class e extends dt {
4621
4621
  super(t), this.__ids = e;
4622
4622
  }
4623
4623
  createDOM(e) {
4624
- let t = M().createElement("mark");
4624
+ let t = N().createElement("mark");
4625
4625
  return A(t, e.theme.mark), this.__ids.length > 1 && A(t, e.theme.markOverlap), t;
4626
4626
  }
4627
4627
  updateDOM(e, t, n) {
@@ -4692,12 +4692,12 @@ function Ys(t, n, r, i) {
4692
4692
  a.anchor.set(o.key, o.offset, o.type), a.focus.set(s.key, s.offset, s.type);
4693
4693
  let u = a.extract();
4694
4694
  for (let t of u) {
4695
- if (P(l) && l.isParentOf(t)) continue;
4695
+ if (F(l) && l.isParentOf(t)) continue;
4696
4696
  let n = null;
4697
4697
  if (O(t)) n = t;
4698
4698
  else {
4699
4699
  if (qs(t)) continue;
4700
- (P(t) || e(t)) && t.isInline() && (n = t);
4700
+ (F(t) || e(t)) && t.isInline() && (n = t);
4701
4701
  }
4702
4702
  if (n !== null) {
4703
4703
  if (n && n.is(c)) continue;
@@ -4705,7 +4705,7 @@ function Ys(t, n, r, i) {
4705
4705
  e != null && e.is(c) || (l = void 0), c = e, l === void 0 && (l = (i || Ks)([r]), n.insertBefore(l)), l.append(n);
4706
4706
  } else c = void 0, l = void 0;
4707
4707
  }
4708
- P(l) && (n ? l.selectStart() : l.selectEnd());
4708
+ F(l) && (n ? l.selectStart() : l.selectEnd());
4709
4709
  }
4710
4710
  function Xs(e, t) {
4711
4711
  let n = e;
@@ -4721,7 +4721,7 @@ function Xs(e, t) {
4721
4721
  }
4722
4722
  //#endregion
4723
4723
  //#region node_modules/@lexical/react/dist/LexicalTypeaheadMenuPlugin.prod.mjs
4724
- var Zs = Ve ? Ln : I, Qs = class {
4724
+ var Zs = Ve ? In : L, Qs = class {
4725
4725
  key;
4726
4726
  ref;
4727
4727
  icon;
@@ -4743,20 +4743,20 @@ function ec(e, t) {
4743
4743
  return n.top >= r.top - 6 && n.top <= r.bottom + 6;
4744
4744
  }
4745
4745
  function tc(e, t, n, r) {
4746
- let [i] = _t();
4747
- I(() => {
4746
+ let [i] = M();
4747
+ L(() => {
4748
4748
  if (t != null && e != null) {
4749
- let e = i.getRootElement(), a = e == null ? document.body : Xt(e, !1), o = !1, s = ec(t, a), c = function() {
4749
+ let e = i.getRootElement(), a = e == null ? document.body : Yt(e, !1), o = !1, s = ec(t, a), c = function() {
4750
4750
  o ||= (window.requestAnimationFrame(function() {
4751
4751
  n(), o = !1;
4752
4752
  }), !0);
4753
4753
  let e = ec(t, a);
4754
4754
  e !== s && (s = e, r?.(e));
4755
- }, l = new ResizeObserver(n), u = Lt(e ?? t);
4756
- return l.observe(t), Ae(qt(window, "resize", n), qt(document, "scroll", c, {
4755
+ }, l = new ResizeObserver(n), u = It(e ?? t);
4756
+ return l.observe(t), Ae(Kt(window, "resize", n), Kt(document, "scroll", c, {
4757
4757
  capture: !0,
4758
4758
  passive: !0
4759
- }), ...u.map((e) => qt(e, "scroll", c, {
4759
+ }), ...u.map((e) => Kt(e, "scroll", c, {
4760
4760
  capture: !0,
4761
4761
  passive: !0
4762
4762
  })), () => l.unobserve(t));
@@ -4769,10 +4769,10 @@ function tc(e, t, n, r) {
4769
4769
  e
4770
4770
  ]);
4771
4771
  }
4772
- var nc = /* @__PURE__ */ Ht("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");
4772
+ var nc = /* @__PURE__ */ Vt("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");
4773
4773
  function rc({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i }) {
4774
4774
  let a = "item";
4775
- return t && (a += " selected"), /*#__PURE__*/ B("li", {
4775
+ return t && (a += " selected"), /*#__PURE__*/ V("li", {
4776
4776
  tabIndex: -1,
4777
4777
  className: a,
4778
4778
  ref: i.setRefElement,
@@ -4781,21 +4781,21 @@ function rc({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i })
4781
4781
  id: "typeahead-item-" + e,
4782
4782
  onMouseEnter: r,
4783
4783
  onClick: n,
4784
- children: [i.icon, /*#__PURE__*/ z("span", {
4784
+ children: [i.icon, /*#__PURE__*/ B("span", {
4785
4785
  className: "text",
4786
4786
  children: i.title
4787
4787
  })]
4788
4788
  }, i.key);
4789
4789
  }
4790
4790
  function ic({ close: e, editor: t, anchorElementRef: n, resolution: r, options: i, menuRenderFn: a, onSelectOption: o, shouldSplitNodeWithQuery: c = !1, commandPriority: l = 1, preselectFirstItem: u = !0 }) {
4791
- let [d, f] = R(null), p = d === null ? null : Math.min(i.length - 1, d);
4792
- I(() => {
4791
+ let [d, f] = z(null), p = d === null ? null : Math.min(i.length - 1, d);
4792
+ L(() => {
4793
4793
  u && f(0);
4794
4794
  }, [r.match && r.match.matchingString, u]);
4795
- let m = F((n) => {
4795
+ let m = I((n) => {
4796
4796
  t.update(() => {
4797
4797
  o(n, r.match != null && c ? function(e) {
4798
- let t = N();
4798
+ let t = P();
4799
4799
  if (!j(t) || !t.isCollapsed()) return null;
4800
4800
  let n = t.anchor;
4801
4801
  if (n.type !== "text") return null;
@@ -4817,12 +4817,12 @@ function ic({ close: e, editor: t, anchorElementRef: n, resolution: r, options:
4817
4817
  r.match,
4818
4818
  o,
4819
4819
  e
4820
- ]), h = F((e) => {
4820
+ ]), h = I((e) => {
4821
4821
  let n = t.getRootElement();
4822
4822
  n !== null && (n.setAttribute("aria-activedescendant", "typeahead-item-" + e), f(e));
4823
- }, [t]), g = F(() => n.current && i.length ? /*#__PURE__*/ Vn.createPortal(/*#__PURE__*/ z("div", {
4823
+ }, [t]), g = I(() => n.current && i.length ? /*#__PURE__*/ Bn.createPortal(/*#__PURE__*/ B("div", {
4824
4824
  className: "typeahead-popover mentions-menu",
4825
- children: /*#__PURE__*/ z("ul", { children: i.map((e, t) => /*#__PURE__*/ z(rc, {
4825
+ children: /*#__PURE__*/ B("ul", { children: i.map((e, t) => /*#__PURE__*/ B(rc, {
4826
4826
  index: t,
4827
4827
  isSelected: p === t,
4828
4828
  onClick: () => {
@@ -4840,7 +4840,7 @@ function ic({ close: e, editor: t, anchorElementRef: n, resolution: r, options:
4840
4840
  m,
4841
4841
  f
4842
4842
  ]);
4843
- I(() => () => {
4843
+ L(() => () => {
4844
4844
  let e = t.getRootElement();
4845
4845
  e !== null && e.removeAttribute("aria-activedescendant");
4846
4846
  }, [t]), Zs(() => {
@@ -4850,11 +4850,11 @@ function ic({ close: e, editor: t, anchorElementRef: n, resolution: r, options:
4850
4850
  p,
4851
4851
  h,
4852
4852
  u
4853
- ]), I(() => Ae(t.registerCommand(nc, ({ option: e }) => !(!e.ref || e.ref.current == null) && ($s(e.ref.current), !0), l)), [
4853
+ ]), L(() => Ae(t.registerCommand(nc, ({ option: e }) => !(!e.ref || e.ref.current == null) && ($s(e.ref.current), !0), l)), [
4854
4854
  t,
4855
4855
  h,
4856
4856
  l
4857
- ]), I(() => Ae(t.registerCommand(de, (e) => {
4857
+ ]), L(() => Ae(t.registerCommand(de, (e) => {
4858
4858
  let n = e;
4859
4859
  if (i !== null && i.length) {
4860
4860
  let e = p === null || p === i.length - 1 ? 0 : p + 1;
@@ -4880,10 +4880,10 @@ function ic({ close: e, editor: t, anchorElementRef: n, resolution: r, options:
4880
4880
  }, l), t.registerCommand(it, (t) => {
4881
4881
  let n = t;
4882
4882
  return n.preventDefault(), n.stopImmediatePropagation(), e(), !0;
4883
- }, l), t.registerCommand(Jt, (e) => {
4883
+ }, l), t.registerCommand(qt, (e) => {
4884
4884
  let t = e;
4885
4885
  return i !== null && p !== null && i[p] != null && (t.preventDefault(), t.stopImmediatePropagation(), m(i[p]), !0);
4886
- }, l), t.registerCommand(Kt, (e) => !(i === null || p === null || i[p] == null || e && e.shiftKey) && (e !== null && (e.preventDefault(), e.stopImmediatePropagation()), m(i[p]), !0), l)), [
4886
+ }, l), t.registerCommand(Gt, (e) => !(i === null || p === null || i[p] == null || e && e.shiftKey) && (e !== null && (e.preventDefault(), e.stopImmediatePropagation()), m(i[p]), !0), l)), [
4887
4887
  m,
4888
4888
  e,
4889
4889
  t,
@@ -4892,7 +4892,7 @@ function ic({ close: e, editor: t, anchorElementRef: n, resolution: r, options:
4892
4892
  h,
4893
4893
  l
4894
4894
  ]);
4895
- let _ = Rn(() => ({
4895
+ let _ = Ln(() => ({
4896
4896
  options: i,
4897
4897
  selectOptionAndCleanUp: m,
4898
4898
  selectedIndex: p,
@@ -4908,7 +4908,7 @@ function ac(e, t) {
4908
4908
  t != null && (e.className = t), e.setAttribute("aria-label", "Typeahead menu"), e.setAttribute("role", "listbox"), e.style.display = "block", e.style.position = "absolute";
4909
4909
  }
4910
4910
  function oc(e, t, n, r, i = !0) {
4911
- let [a] = _t(), o = r ?? function(e) {
4911
+ let [a] = M(), o = r ?? function(e) {
4912
4912
  if (!Ve) return;
4913
4913
  let t = e.getRootElement();
4914
4914
  if (t !== null) {
@@ -4916,7 +4916,7 @@ function oc(e, t, n, r, i = !0) {
4916
4916
  return y(e) ? e : t.ownerDocument.body;
4917
4917
  }
4918
4918
  return document.body;
4919
- }(a), s = Ve ? f(a.getRootElement()).createElement("div") : null, c = L(s), l = F(() => {
4919
+ }(a), s = Ve ? f(a.getRootElement()).createElement("div") : null, c = R(s), l = I(() => {
4920
4920
  if (c.current === null || o === void 0) return;
4921
4921
  c.current.style.top = c.current.style.bottom;
4922
4922
  let t = a.getRootElement(), r = c.current, s = r.firstChild;
@@ -4936,7 +4936,7 @@ function oc(e, t, n, r, i = !0) {
4936
4936
  n,
4937
4937
  o
4938
4938
  ]);
4939
- I(() => {
4939
+ L(() => {
4940
4940
  let t = a.getRootElement();
4941
4941
  return e !== null && l(), () => {
4942
4942
  t !== null && t.removeAttribute("aria-controls");
@@ -4948,14 +4948,14 @@ function oc(e, t, n, r, i = !0) {
4948
4948
  l,
4949
4949
  e
4950
4950
  ]);
4951
- let u = F((n) => {
4951
+ let u = I((n) => {
4952
4952
  e !== null && (n || t(null));
4953
4953
  }, [e, t]);
4954
4954
  return tc(e, c.current, l, u), s != null && s === c.current && (ac(s, n), o?.append(s)), c;
4955
4955
  }
4956
4956
  var sc = "\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;";
4957
4957
  function cc(e, { minLength: t = 1, maxLength: n = 75, punctuation: r = sc, allowWhitespace: i = !1 }) {
4958
- return F((a) => {
4958
+ return I((a) => {
4959
4959
  let o = RegExp("(^|\\s|\\()([" + e + "]((?:" + ("[^" + e + r + (i ? "" : "\\s") + "]") + "){0," + n + "}))$").exec(a);
4960
4960
  if (o !== null) {
4961
4961
  let e = o[1], n = o[3];
@@ -4975,7 +4975,7 @@ function cc(e, { minLength: t = 1, maxLength: n = 75, punctuation: r = sc, allow
4975
4975
  ]);
4976
4976
  }
4977
4977
  function lc({ options: e, onQueryChange: t, onSelectOption: n, onOpen: r, onClose: i, menuRenderFn: a, triggerFn: o, anchorClassName: s, commandPriority: c = 1, parent: l, preselectFirstItem: u = !0, ignoreEntityBoundary: d = !1 }) {
4978
- let [f] = _t(), [p, h] = R(null), g = oc(p, h, s, l), _ = F(() => {
4978
+ let [f] = M(), [p, h] = z(null), g = oc(p, h, s, l), _ = I(() => {
4979
4979
  if (p === null) return;
4980
4980
  let e = () => {
4981
4981
  h(null);
@@ -4985,18 +4985,18 @@ function lc({ options: e, onQueryChange: t, onSelectOption: n, onOpen: r, onClos
4985
4985
  } finally {
4986
4986
  t ? t.then(e, e) : e();
4987
4987
  }
4988
- }, [i, p]), v = F((e) => {
4988
+ }, [i, p]), v = I((e) => {
4989
4989
  h(e), r != null && p === null && r(e);
4990
4990
  }, [r, p]);
4991
- return I(() => {
4991
+ return L(() => {
4992
4992
  let e = f.registerUpdateListener(() => {
4993
4993
  f.read("latest", () => {
4994
4994
  if (!f.isEditable()) return void _();
4995
4995
  if (f.isComposing()) return;
4996
- let e = f._window || window, n = e.document.createRange(), r = N(), i = function(e) {
4996
+ let e = f._window || window, n = e.document.createRange(), r = P(), i = function(e) {
4997
4997
  let t = null;
4998
4998
  return e.read("latest", () => {
4999
- let e = N();
4999
+ let e = P();
5000
5000
  j(e) && (t = function(e) {
5001
5001
  let t = e.anchor;
5002
5002
  if (t.type !== "text") return null;
@@ -5011,7 +5011,7 @@ function lc({ options: e, onQueryChange: t, onSelectOption: n, onOpen: r, onClos
5011
5011
  let a = o(i, f);
5012
5012
  if (t(a ? a.matchingString : null), a !== null && (d || !function(e, t) {
5013
5013
  return t === 0 && e.read("latest", () => {
5014
- let e = N();
5014
+ let e = P();
5015
5015
  if (j(e)) {
5016
5016
  let t = e.anchor.getNode().getPreviousSibling();
5017
5017
  return O(t) && t.isTextEntity();
@@ -5029,7 +5029,7 @@ function lc({ options: e, onQueryChange: t, onSelectOption: n, onOpen: r, onClos
5029
5029
  return !1;
5030
5030
  }
5031
5031
  return !0;
5032
- }(a.leadOffset, n, e, f.getRootElement()) !== null) return void Fn(() => v({
5032
+ }(a.leadOffset, n, e, f.getRootElement()) !== null) return void Pn(() => v({
5033
5033
  getRect: () => n.getBoundingClientRect(),
5034
5034
  match: a
5035
5035
  }));
@@ -5047,9 +5047,9 @@ function lc({ options: e, onQueryChange: t, onSelectOption: n, onOpen: r, onClos
5047
5047
  _,
5048
5048
  v,
5049
5049
  d
5050
- ]), I(() => f.registerEditableListener((e) => {
5050
+ ]), L(() => f.registerEditableListener((e) => {
5051
5051
  e || _();
5052
- }), [f, _]), p === null || f === null || g.current === null ? null : /*#__PURE__*/ z(ic, {
5052
+ }), [f, _]), p === null || f === null || g.current === null ? null : /*#__PURE__*/ B(ic, {
5053
5053
  close: _,
5054
5054
  resolution: p,
5055
5055
  editor: f,
@@ -5176,20 +5176,20 @@ function Ec(e) {
5176
5176
  }
5177
5177
  }
5178
5178
  function Dc(e) {
5179
- I(() => {
5179
+ L(() => {
5180
5180
  if (!e.hasNodes([_s])) throw Error("EmojisPlugin: EmojiNode not registered on editor");
5181
5181
  return e.registerNodeTransform(Ee, Ec);
5182
5182
  }, [e]);
5183
5183
  }
5184
5184
  function Oc() {
5185
- let [e] = _t();
5185
+ let [e] = M();
5186
5186
  return Dc(e), null;
5187
5187
  }
5188
5188
  //#endregion
5189
5189
  //#region node_modules/@lexical/react/dist/useLexicalTextEntity.prod.mjs
5190
5190
  function kc(e, t, n) {
5191
- let [r] = _t();
5192
- I(() => Ae(...hn(r, e, t, n)), [
5191
+ let [r] = M();
5192
+ L(() => Ae(...mn(r, e, t, n)), [
5193
5193
  n,
5194
5194
  r,
5195
5195
  e,
@@ -5200,12 +5200,12 @@ function kc(e, t, n) {
5200
5200
  //#region src/plugins/KeywordsPlugin/index.ts
5201
5201
  var Ac = /(^|$|[^A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ])(congrats|congratulations|gratuluju|gratuluji|gratulujeme|blahopřeju|blahopřeji|blahopřejeme|Til lykke|Tillykke|Glückwunsch|Gratuliere|felicitaciones|enhorabuena|paljon onnea|onnittelut|Félicitations|gratula|gratulálok|gratulálunk|congratulazioni|complimenti|おめでとう|おめでとうございます|축하해|축하해요|gratulerer|Gefeliciteerd|gratulacje|Parabéns|parabéns|felicitações|felicitări|мои поздравления|поздравляем|поздравляю|gratulujem|blahoželám|ยินดีด้วย|ขอแสดงความยินดี|tebrikler|tebrik ederim|恭喜|祝贺你|恭喜你|恭喜|恭喜|baie geluk|veels geluk|অভিনন্দন|Čestitam|Čestitke|Čestitamo|Συγχαρητήρια|Μπράβο|અભિનંદન|badhai|बधाई|अभिनंदन|Честитам|Свака част|hongera|வாழ்த்துகள்|வாழ்த்துக்கள்|అభినందనలు|അഭിനന്ദനങ്ങൾ|Chúc mừng|מזל טוב|mazel tov|mazal tov)(^|$|[^A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ])/i;
5202
5202
  function jc() {
5203
- let [e] = _t();
5204
- I(() => {
5203
+ let [e] = M();
5204
+ L(() => {
5205
5205
  if (!e.hasNodes([ys])) throw Error("KeywordsPlugin: KeywordNode not registered on editor");
5206
5206
  }, [e]);
5207
- let t = F((e) => bs(e.getTextContent()), []);
5208
- return kc(F((e) => {
5207
+ let t = I((e) => bs(e.getTextContent()), []);
5208
+ return kc(I((e) => {
5209
5209
  let t = Ac.exec(e);
5210
5210
  if (t === null) return null;
5211
5211
  let n = t[2].length, r = t.index + t[1].length;
@@ -5218,10 +5218,10 @@ function jc() {
5218
5218
  //#endregion
5219
5219
  //#region node_modules/@lexical/react/dist/LexicalLinkPlugin.prod.mjs
5220
5220
  function Mc({ validateUrl: e, attributes: t }) {
5221
- let [n] = _t();
5222
- return I(() => {
5221
+ let [n] = M();
5222
+ return L(() => {
5223
5223
  if (!n.hasNodes([Ra])) throw Error("LinkPlugin: LinkNode not registered on editor");
5224
- }), I(() => Za(n, gn({
5224
+ }), L(() => Za(n, hn({
5225
5225
  attributes: t,
5226
5226
  validateUrl: e
5227
5227
  })), [
@@ -5233,7 +5233,7 @@ function Mc({ validateUrl: e, attributes: t }) {
5233
5233
  //#endregion
5234
5234
  //#region src/plugins/LinkPlugin/index.tsx
5235
5235
  function Nc({ hasLinkAttributes: e = !1 }) {
5236
- return /* @__PURE__ */ z(Mc, {
5236
+ return /* @__PURE__ */ B(Mc, {
5237
5237
  validateUrl: Us,
5238
5238
  attributes: e ? {
5239
5239
  rel: "noopener noreferrer",
@@ -5264,43 +5264,43 @@ function Lc(e, t) {
5264
5264
  return e.left === t.left && e.top === t.top;
5265
5265
  }
5266
5266
  function Rc({ anchorElement: e, iconClassName: t, name: n, nameContent: r, panelKind: i, position: a, copyLabel: o, textStyle: s, title: c, zIndex: l, onBringToFront: u, onClose: d, onCopy: f, onPositionChange: p }) {
5267
- let m = L(null), h = L(null), g = L(e), _ = L(p), v = L(null), [y, b] = R(!1), [x, S] = R(!1);
5268
- g.current = e, _.current = p, I(() => () => {
5267
+ let m = R(null), h = R(null), g = R(e), _ = R(p), v = R(null), [y, b] = z(!1), [x, S] = z(!1);
5268
+ g.current = e, _.current = p, L(() => () => {
5269
5269
  v.current !== null && clearTimeout(v.current);
5270
5270
  }, []);
5271
- let C = F(() => {
5271
+ let ee = I(() => {
5272
5272
  f !== void 0 && Promise.resolve(f()).then(() => {
5273
5273
  S(!0), v.current !== null && clearTimeout(v.current), v.current = setTimeout(() => {
5274
5274
  S(!1), v.current = null;
5275
5275
  }, Ic);
5276
5276
  });
5277
- }, [f]), w = F((e) => {
5277
+ }, [f]), C = I((e) => {
5278
5278
  let t = h.current;
5279
5279
  t === null || t.pointerId !== e.pointerId || (_.current(es({
5280
5280
  left: t.startLeft + e.clientX - t.startClientX,
5281
5281
  top: t.startTop + e.clientY - t.startClientY
5282
5282
  }, m.current, g.current)), e.preventDefault());
5283
- }, []), T = F((e) => {
5283
+ }, []), w = I((e) => {
5284
5284
  let t = h.current;
5285
- t === null || t.pointerId !== e.pointerId || (h.current = null, b(!1), document.removeEventListener("pointermove", w), document.removeEventListener("pointerup", T), document.removeEventListener("pointercancel", T), e.preventDefault());
5286
- }, [w]), E = F((e) => {
5285
+ t === null || t.pointerId !== e.pointerId || (h.current = null, b(!1), document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", w), document.removeEventListener("pointercancel", w), e.preventDefault());
5286
+ }, [C]), T = I((e) => {
5287
5287
  e.button === 0 && (e.target instanceof Element && e.target.closest("button, .mention-advanced-panel__name") || (u(), h.current = {
5288
5288
  pointerId: e.pointerId,
5289
5289
  startClientX: e.clientX,
5290
5290
  startClientY: e.clientY,
5291
5291
  startLeft: a.left,
5292
5292
  startTop: a.top
5293
- }, b(!0), document.addEventListener("pointermove", w), document.addEventListener("pointerup", T), document.addEventListener("pointercancel", T), e.preventDefault(), e.stopPropagation()));
5293
+ }, b(!0), document.addEventListener("pointermove", C), document.addEventListener("pointerup", w), document.addEventListener("pointercancel", w), e.preventDefault(), e.stopPropagation()));
5294
5294
  }, [
5295
+ C,
5295
5296
  w,
5296
- T,
5297
5297
  u,
5298
5298
  a.left,
5299
5299
  a.top
5300
5300
  ]);
5301
- I(() => () => {
5302
- document.removeEventListener("pointermove", w), document.removeEventListener("pointerup", T), document.removeEventListener("pointercancel", T);
5303
- }, [w, T]), I(() => {
5301
+ L(() => () => {
5302
+ document.removeEventListener("pointermove", C), document.removeEventListener("pointerup", w), document.removeEventListener("pointercancel", w);
5303
+ }, [C, w]), L(() => {
5304
5304
  let t = () => {
5305
5305
  let t = es(a, m.current, e);
5306
5306
  Lc(t, a) || p(t);
@@ -5313,15 +5313,15 @@ function Rc({ anchorElement: e, iconClassName: t, name: n, nameContent: r, panel
5313
5313
  p,
5314
5314
  a
5315
5315
  ]);
5316
- let D = qo(e), ee = Yo(m.current, e), O = {
5317
- left: a.left / ee,
5318
- maxHeight: Math.max(96, D.bottom - a.top) / ee,
5319
- maxWidth: Math.max(220, D.right - a.left) / ee,
5316
+ let E = qo(e), D = Yo(m.current, e), O = {
5317
+ left: a.left / D,
5318
+ maxHeight: Math.max(96, E.bottom - a.top) / D,
5319
+ maxWidth: Math.max(220, E.right - a.left) / D,
5320
5320
  position: "fixed",
5321
- top: a.top / ee,
5321
+ top: a.top / D,
5322
5322
  zIndex: l
5323
5323
  };
5324
- return /* @__PURE__ */ B("div", {
5324
+ return /* @__PURE__ */ V("div", {
5325
5325
  ref: m,
5326
5326
  "aria-label": `${n} advanced panel`,
5327
5327
  className: `mention-advanced-panel${y ? " dragging" : ""}`,
@@ -5330,41 +5330,41 @@ function Rc({ anchorElement: e, iconClassName: t, name: n, nameContent: r, panel
5330
5330
  tabIndex: 0,
5331
5331
  onFocus: u,
5332
5332
  onPointerDown: u,
5333
- children: [/* @__PURE__ */ B("div", {
5333
+ children: [/* @__PURE__ */ V("div", {
5334
5334
  className: "mention-advanced-panel__header",
5335
- onPointerDown: E,
5336
- children: [/* @__PURE__ */ B("div", {
5335
+ onPointerDown: T,
5336
+ children: [/* @__PURE__ */ V("div", {
5337
5337
  className: "mention-advanced-panel__name d-inline-flex align-items-center gap-2",
5338
5338
  style: s,
5339
- children: [/* @__PURE__ */ z("i", {
5339
+ children: [/* @__PURE__ */ B("i", {
5340
5340
  className: t,
5341
5341
  "aria-hidden": "true"
5342
- }), r ?? /* @__PURE__ */ z("span", { children: n })]
5343
- }), /* @__PURE__ */ B("div", {
5342
+ }), r ?? /* @__PURE__ */ B("span", { children: n })]
5343
+ }), /* @__PURE__ */ V("div", {
5344
5344
  className: "mention-advanced-panel__actions",
5345
- children: [f === void 0 ? null : /* @__PURE__ */ z("button", {
5345
+ children: [f === void 0 ? null : /* @__PURE__ */ B("button", {
5346
5346
  "aria-label": x ? "Copied" : o ?? `Copy ${i} text`,
5347
5347
  className: `mention-advanced-panel__copy${x ? " mention-advanced-panel__copy--copied" : ""}`,
5348
5348
  title: x ? "Copied!" : "Copy",
5349
5349
  type: "button",
5350
- onClick: C,
5351
- children: /* @__PURE__ */ z("i", {
5350
+ onClick: ee,
5351
+ children: /* @__PURE__ */ B("i", {
5352
5352
  className: x ? "bi bi-check2" : "bi bi-copy",
5353
5353
  "aria-hidden": "true"
5354
5354
  })
5355
- }), /* @__PURE__ */ z("button", {
5355
+ }), /* @__PURE__ */ B("button", {
5356
5356
  "aria-label": `Close ${i} panel`,
5357
5357
  className: "mention-advanced-panel__close",
5358
5358
  title: "Close",
5359
5359
  type: "button",
5360
5360
  onClick: d,
5361
- children: /* @__PURE__ */ z("i", {
5361
+ children: /* @__PURE__ */ B("i", {
5362
5362
  className: "bi bi-x-lg",
5363
5363
  "aria-hidden": "true"
5364
5364
  })
5365
5365
  })]
5366
5366
  })]
5367
- }), c ? /* @__PURE__ */ z("div", {
5367
+ }), c ? /* @__PURE__ */ B("div", {
5368
5368
  className: "mention-advanced-panel__title",
5369
5369
  style: s,
5370
5370
  children: c
@@ -5372,10 +5372,61 @@ function Rc({ anchorElement: e, iconClassName: t, name: n, nameContent: r, panel
5372
5372
  });
5373
5373
  }
5374
5374
  //#endregion
5375
+ //#region src/hooks/useTypeaheadMenuReposition.ts
5376
+ var zc = 3;
5377
+ function Bc({ menuHeight: e, menuWidth: t, rootRect: n, scrollX: r, scrollY: i, triggerRect: a, viewportHeight: o }) {
5378
+ let { height: s, left: c, top: l } = a, u = c + t > n.right ? n.right - t : c, d = l + e > o || l + e > n.bottom, f = l - n.top > e + s, p = d && f ? l - e - s : l + s + zc;
5379
+ return {
5380
+ left: u + r,
5381
+ top: p + i
5382
+ };
5383
+ }
5384
+ function Vc(e, t) {
5385
+ let n = e.ownerDocument, r = re(n.defaultView);
5386
+ if (r === null || !r.isCollapsed) return null;
5387
+ let { anchorNode: i, anchorOffset: a } = m(r, e);
5388
+ if (i === null) return null;
5389
+ let o = n.createRange();
5390
+ try {
5391
+ o.setStart(i, t), o.setEnd(i, a);
5392
+ } catch {
5393
+ return null;
5394
+ }
5395
+ return o.getBoundingClientRect();
5396
+ }
5397
+ function Hc() {
5398
+ let [e] = M(), [t, n] = z(null), r = R(null), i = I((e) => (r.current = e, e), []);
5399
+ return L(() => {
5400
+ if (t === null || typeof ResizeObserver > "u") return;
5401
+ let n = new ResizeObserver(() => {
5402
+ let n = t.parentElement, i = e.getRootElement(), a = r.current;
5403
+ if (n === null || i === null || a === null) return;
5404
+ let o = Vc(i, a.leadOffset);
5405
+ if (o === null) return;
5406
+ let s = i.ownerDocument.defaultView ?? window, c = t.getBoundingClientRect(), { left: l, top: u } = Bc({
5407
+ menuHeight: c.height,
5408
+ menuWidth: c.width,
5409
+ rootRect: i.getBoundingClientRect(),
5410
+ scrollX: s.scrollX,
5411
+ scrollY: s.scrollY,
5412
+ triggerRect: o,
5413
+ viewportHeight: s.innerHeight
5414
+ });
5415
+ n.style.left = `${l}px`, n.style.top = `${u}px`;
5416
+ });
5417
+ return n.observe(t), () => {
5418
+ n.disconnect();
5419
+ };
5420
+ }, [e, t]), {
5421
+ popoverRef: n,
5422
+ trackMatch: i
5423
+ };
5424
+ }
5425
+ //#endregion
5375
5426
  //#region src/plugins/MentionVerseReferenceList.tsx
5376
- function zc({ buttonClassName: e, enabled: t = !0, listClassName: n, values: r }) {
5377
- let { shortToVerseData: i } = aa(), [a, o] = R({});
5378
- return I(() => {
5427
+ function Uc({ buttonClassName: e, enabled: t = !0, listClassName: n, values: r }) {
5428
+ let { shortToVerseData: i } = aa(), [a, o] = z({});
5429
+ return L(() => {
5379
5430
  if (!t || i === void 0) return;
5380
5431
  let e = !0;
5381
5432
  return Promise.all(r.map(async (e) => {
@@ -5397,11 +5448,11 @@ function zc({ buttonClassName: e, enabled: t = !0, listClassName: n, values: r }
5397
5448
  t,
5398
5449
  i,
5399
5450
  r
5400
- ]), /* @__PURE__ */ z("ul", {
5451
+ ]), /* @__PURE__ */ B("ul", {
5401
5452
  className: n,
5402
5453
  children: r.map((t) => {
5403
5454
  let n = a[t], r = n?.label ?? t;
5404
- return /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z("button", {
5455
+ return /* @__PURE__ */ B("li", { children: /* @__PURE__ */ B("button", {
5405
5456
  className: e,
5406
5457
  style: n?.style,
5407
5458
  type: "button",
@@ -5418,11 +5469,11 @@ function zc({ buttonClassName: e, enabled: t = !0, listClassName: n, values: r }
5418
5469
  }
5419
5470
  //#endregion
5420
5471
  //#region src/plugins/MentionLocationsPlugin/index.tsx
5421
- var Bc = {
5472
+ var Wc = {
5422
5473
  NAME: "\\b[A-Z][^\\s\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;]",
5423
5474
  PUNCTUATION: "\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;"
5424
- }.PUNCTUATION, Vc = ["#"].join(""), Hc = "[^" + Vc + Bc + "\\s]", Uc = "(?:\\.[ |$]| |[" + Bc + "]|)", Wc = RegExp("(^|\\s|\\()([" + Vc + "]((?:" + Hc + Uc + "){0,75}))$"), Gc = RegExp("(^|\\s|\\()([" + Vc + "]((?:" + Hc + "){0,50}))$"), Kc = 20, qc = 2e3, Jc = 150;
5425
- function Yc(e, t, n) {
5475
+ }.PUNCTUATION, Gc = ["#"].join(""), Kc = "[^" + Gc + Wc + "\\s]", qc = "(?:\\.[ |$]| |[" + Wc + "]|)", Jc = RegExp("(^|\\s|\\()([" + Gc + "]((?:" + Kc + qc + "){0,75}))$"), Yc = RegExp("(^|\\s|\\()([" + Gc + "]((?:" + Kc + "){0,50}))$"), Xc = 20, Zc = 2e3, Qc = 150;
5476
+ function $c(e, t, n) {
5426
5477
  return {
5427
5478
  id: e,
5428
5479
  name: t,
@@ -5441,7 +5492,7 @@ function Yc(e, t, n) {
5441
5492
  matterRange: Infinity
5442
5493
  };
5443
5494
  }
5444
- async function Xc(e) {
5495
+ async function el(e) {
5445
5496
  if (navigator.clipboard !== void 0 && typeof navigator.clipboard.writeText == "function") {
5446
5497
  await navigator.clipboard.writeText(e);
5447
5498
  return;
@@ -5449,24 +5500,24 @@ async function Xc(e) {
5449
5500
  let t = document.createElement("textarea");
5450
5501
  t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.top = "-9999px", document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
5451
5502
  }
5452
- function Zc({ inline: e = !1, label: t, value: n }) {
5453
- return /* @__PURE__ */ B("div", {
5503
+ function tl({ inline: e = !1, label: t, value: n }) {
5504
+ return /* @__PURE__ */ V("div", {
5454
5505
  className: `mention-location-details__row${e ? " mention-location-details__row--inline" : ""}`,
5455
- children: [/* @__PURE__ */ z("dt", { children: e ? `${t}:` : t }), /* @__PURE__ */ z("dd", { children: n })]
5506
+ children: [/* @__PURE__ */ B("dt", { children: e ? `${t}:` : t }), /* @__PURE__ */ B("dd", { children: n })]
5456
5507
  });
5457
5508
  }
5458
- function Qc({ label: e, value: t }) {
5459
- return rs(t) ? /* @__PURE__ */ z(Zc, {
5509
+ function nl({ label: e, value: t }) {
5510
+ return rs(t) ? /* @__PURE__ */ B(tl, {
5460
5511
  inline: !0,
5461
5512
  label: e,
5462
5513
  value: ns(t)
5463
5514
  }) : null;
5464
5515
  }
5465
- function $c({ children: e, count: t, defaultOpen: n, label: r, onOpen: i }) {
5466
- let [a, o] = R(n);
5467
- return /* @__PURE__ */ B("div", {
5516
+ function rl({ children: e, count: t, defaultOpen: n, label: r, onOpen: i }) {
5517
+ let [a, o] = z(n);
5518
+ return /* @__PURE__ */ V("div", {
5468
5519
  className: "mention-location-details__row mention-location-details__row--collapsible",
5469
- children: [/* @__PURE__ */ z("dt", { children: /* @__PURE__ */ B("button", {
5520
+ children: [/* @__PURE__ */ B("dt", { children: /* @__PURE__ */ V("button", {
5470
5521
  "aria-expanded": a,
5471
5522
  className: "mention-location-details__section-toggle",
5472
5523
  type: "button",
@@ -5475,26 +5526,26 @@ function $c({ children: e, count: t, defaultOpen: n, label: r, onOpen: i }) {
5475
5526
  o(e), e && i?.();
5476
5527
  },
5477
5528
  children: [
5478
- /* @__PURE__ */ z("i", {
5529
+ /* @__PURE__ */ B("i", {
5479
5530
  className: "bi bi-chevron-right mention-location-details__section-icon",
5480
5531
  "aria-hidden": "true"
5481
5532
  }),
5482
- /* @__PURE__ */ z("span", { children: r }),
5483
- t > 0 ? /* @__PURE__ */ z("span", {
5533
+ /* @__PURE__ */ B("span", { children: r }),
5534
+ t > 0 ? /* @__PURE__ */ B("span", {
5484
5535
  className: "mention-location-details__section-count",
5485
5536
  children: t
5486
5537
  }) : null
5487
5538
  ]
5488
- }) }), a ? /* @__PURE__ */ z("dd", { children: e }) : null]
5539
+ }) }), a ? /* @__PURE__ */ B("dd", { children: e }) : null]
5489
5540
  });
5490
5541
  }
5491
- function el({ onOpenLocationReference: e, values: t }) {
5542
+ function il({ onOpenLocationReference: e, values: t }) {
5492
5543
  let n = Ia();
5493
- return /* @__PURE__ */ z("ul", {
5544
+ return /* @__PURE__ */ B("ul", {
5494
5545
  className: "mention-location-details__list",
5495
5546
  children: t.map((t) => {
5496
5547
  let r = ss(n, t), i = r?.name ?? t;
5497
- return /* @__PURE__ */ z("li", { children: r === null ? i : /* @__PURE__ */ z("button", {
5548
+ return /* @__PURE__ */ B("li", { children: r === null ? i : /* @__PURE__ */ B("button", {
5498
5549
  className: "mention-location-details__location-button",
5499
5550
  type: "button",
5500
5551
  onClick: (t) => {
@@ -5505,27 +5556,27 @@ function el({ onOpenLocationReference: e, values: t }) {
5505
5556
  })
5506
5557
  });
5507
5558
  }
5508
- function tl({ label: e, onOpenLocationReference: t, values: n }) {
5509
- return n.length === 0 ? null : /* @__PURE__ */ z($c, {
5559
+ function al({ label: e, onOpenLocationReference: t, values: n }) {
5560
+ return n.length === 0 ? null : /* @__PURE__ */ B(rl, {
5510
5561
  count: n.length,
5511
5562
  defaultOpen: !0,
5512
5563
  label: e,
5513
- children: /* @__PURE__ */ z(el, {
5564
+ children: /* @__PURE__ */ B(il, {
5514
5565
  onOpenLocationReference: t,
5515
5566
  values: n
5516
5567
  })
5517
5568
  });
5518
5569
  }
5519
- function nl({ enabled: e, values: t }) {
5520
- let [n, r] = R(!1);
5521
- return t.length === 0 ? null : /* @__PURE__ */ z($c, {
5570
+ function ol({ enabled: e, values: t }) {
5571
+ let [n, r] = z(!1);
5572
+ return t.length === 0 ? null : /* @__PURE__ */ B(rl, {
5522
5573
  count: t.length,
5523
5574
  defaultOpen: !1,
5524
5575
  label: "Verses",
5525
5576
  onOpen: () => {
5526
5577
  r(!0);
5527
5578
  },
5528
- children: /* @__PURE__ */ z(zc, {
5579
+ children: /* @__PURE__ */ B(Uc, {
5529
5580
  buttonClassName: "mention-location-details__location-button",
5530
5581
  enabled: e && n,
5531
5582
  listClassName: "mention-location-details__list",
@@ -5533,10 +5584,10 @@ function nl({ enabled: e, values: t }) {
5533
5584
  })
5534
5585
  });
5535
5586
  }
5536
- function rl({ links: e }) {
5537
- return /* @__PURE__ */ z("ul", {
5587
+ function sl({ links: e }) {
5588
+ return /* @__PURE__ */ B("ul", {
5538
5589
  className: "mention-location-details__list",
5539
- children: e.map((e) => /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z("a", {
5590
+ children: e.map((e) => /* @__PURE__ */ B("li", { children: /* @__PURE__ */ B("a", {
5540
5591
  href: e.url,
5541
5592
  rel: "noreferrer",
5542
5593
  target: "_blank",
@@ -5544,24 +5595,24 @@ function rl({ links: e }) {
5544
5595
  }) }, `${e.type}:${e.url}`))
5545
5596
  });
5546
5597
  }
5547
- function il({ links: e }) {
5548
- return e.length === 0 ? null : /* @__PURE__ */ z($c, {
5598
+ function cl({ links: e }) {
5599
+ return e.length === 0 ? null : /* @__PURE__ */ B(rl, {
5549
5600
  count: e.length,
5550
5601
  defaultOpen: !0,
5551
5602
  label: "Links",
5552
- children: /* @__PURE__ */ z(rl, { links: e })
5603
+ children: /* @__PURE__ */ B(sl, { links: e })
5553
5604
  });
5554
5605
  }
5555
- function al({ coordinates: e, name: t }) {
5606
+ function ll({ coordinates: e, name: t }) {
5556
5607
  let { latitude: n, longitude: r } = e, i = `${n},${r}`, a = `https://maps.google.com/maps?q=${encodeURIComponent(i)}&z=8&output=embed`, o = `https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(i)}`, s = t === "" ? "Location map" : `Map of ${t}`;
5557
- return /* @__PURE__ */ B("div", {
5608
+ return /* @__PURE__ */ V("div", {
5558
5609
  className: "mention-location-details__map",
5559
5610
  children: [
5560
- /* @__PURE__ */ z("p", {
5611
+ /* @__PURE__ */ B("p", {
5561
5612
  className: "mention-location-details__map-note",
5562
5613
  children: "Approximate location — the marker is an estimated point and may not be exact."
5563
5614
  }),
5564
- /* @__PURE__ */ z("iframe", {
5615
+ /* @__PURE__ */ B("iframe", {
5565
5616
  className: "mention-location-details__map-frame",
5566
5617
  title: s,
5567
5618
  src: a,
@@ -5569,7 +5620,7 @@ function al({ coordinates: e, name: t }) {
5569
5620
  referrerPolicy: "no-referrer-when-downgrade",
5570
5621
  allowFullScreen: !0
5571
5622
  }),
5572
- /* @__PURE__ */ z("a", {
5623
+ /* @__PURE__ */ B("a", {
5573
5624
  className: "mention-location-details__map-link",
5574
5625
  href: o,
5575
5626
  rel: "noreferrer",
@@ -5579,83 +5630,83 @@ function al({ coordinates: e, name: t }) {
5579
5630
  ]
5580
5631
  });
5581
5632
  }
5582
- function ol({ includeTitle: e = !0, mentionLocation: t }) {
5633
+ function ul({ includeTitle: e = !0, mentionLocation: t }) {
5583
5634
  let n = [t.type].filter((e) => e !== "" && e.toLowerCase() !== "unknown");
5584
- return /* @__PURE__ */ B("div", {
5635
+ return /* @__PURE__ */ V("div", {
5585
5636
  className: "mention-location-basic-info",
5586
5637
  children: [
5587
- e && t.title ? /* @__PURE__ */ z("div", {
5638
+ e && t.title ? /* @__PURE__ */ B("div", {
5588
5639
  className: "mention-location-basic-info__title",
5589
- children: /* @__PURE__ */ z(No, { value: t.title })
5640
+ children: /* @__PURE__ */ B(No, { value: t.title })
5590
5641
  }) : null,
5591
- t.description ? /* @__PURE__ */ z("p", {
5642
+ t.description ? /* @__PURE__ */ B("p", {
5592
5643
  className: "mention-location-basic-info__description",
5593
- children: /* @__PURE__ */ z(No, { value: t.description })
5644
+ children: /* @__PURE__ */ B(No, { value: t.description })
5594
5645
  }) : null,
5595
- n.length > 0 ? /* @__PURE__ */ z("div", {
5646
+ n.length > 0 ? /* @__PURE__ */ B("div", {
5596
5647
  className: "mention-location-basic-info__facts",
5597
- children: n.map((e) => /* @__PURE__ */ z("span", { children: e }, e))
5648
+ children: n.map((e) => /* @__PURE__ */ B("span", { children: e }, e))
5598
5649
  }) : null
5599
5650
  ]
5600
5651
  });
5601
5652
  }
5602
- function sl({ includeTitle: e = !0, mentionLocation: t, onOpenLocationReference: n }) {
5603
- let [r, i] = R(!1);
5604
- return /* @__PURE__ */ B("details", {
5653
+ function dl({ includeTitle: e = !0, mentionLocation: t, onOpenLocationReference: n }) {
5654
+ let [r, i] = z(!1);
5655
+ return /* @__PURE__ */ V("details", {
5605
5656
  className: "mention-location-details",
5606
- children: [/* @__PURE__ */ B("summary", {
5657
+ children: [/* @__PURE__ */ V("summary", {
5607
5658
  className: "mention-location-details__summary",
5608
5659
  onClick: () => {
5609
5660
  i(!0);
5610
5661
  },
5611
- children: [/* @__PURE__ */ z("i", {
5662
+ children: [/* @__PURE__ */ B("i", {
5612
5663
  className: "bi bi-chevron-right mention-location-details__summary-icon",
5613
5664
  "aria-hidden": "true"
5614
- }), /* @__PURE__ */ z("span", { children: "Details" })]
5615
- }), /* @__PURE__ */ B("div", {
5665
+ }), /* @__PURE__ */ B("span", { children: "Details" })]
5666
+ }), /* @__PURE__ */ V("div", {
5616
5667
  className: "mention-location-details__body",
5617
5668
  children: [
5618
- t.description ? /* @__PURE__ */ z("p", {
5669
+ t.description ? /* @__PURE__ */ B("p", {
5619
5670
  className: "mention-location-details__description",
5620
- children: /* @__PURE__ */ z(No, { value: t.description })
5671
+ children: /* @__PURE__ */ B(No, { value: t.description })
5621
5672
  }) : null,
5622
- /* @__PURE__ */ B("dl", {
5673
+ /* @__PURE__ */ V("dl", {
5623
5674
  className: "mention-location-details__grid",
5624
5675
  children: [
5625
- e && rs(t.title) ? /* @__PURE__ */ z(Zc, {
5676
+ e && rs(t.title) ? /* @__PURE__ */ B(tl, {
5626
5677
  inline: !0,
5627
5678
  label: "Title",
5628
- value: /* @__PURE__ */ z(No, { value: t.title })
5679
+ value: /* @__PURE__ */ B(No, { value: t.title })
5629
5680
  }) : null,
5630
- /* @__PURE__ */ z(Qc, {
5681
+ /* @__PURE__ */ B(nl, {
5631
5682
  label: "KJV name",
5632
5683
  value: ca(t)
5633
5684
  }),
5634
- /* @__PURE__ */ z(Qc, {
5685
+ /* @__PURE__ */ B(nl, {
5635
5686
  label: "Also called",
5636
5687
  value: t.oldName
5637
5688
  }),
5638
- /* @__PURE__ */ z(Qc, {
5689
+ /* @__PURE__ */ B(nl, {
5639
5690
  label: "Type",
5640
5691
  value: t.type
5641
5692
  }),
5642
- /* @__PURE__ */ z(Qc, {
5693
+ /* @__PURE__ */ B(nl, {
5643
5694
  label: "Modern identification",
5644
5695
  value: t.modernIdentification
5645
5696
  }),
5646
- /* @__PURE__ */ z(tl, {
5697
+ /* @__PURE__ */ B(al, {
5647
5698
  label: "Related locations",
5648
5699
  onOpenLocationReference: n,
5649
5700
  values: t.relatedLocations
5650
5701
  }),
5651
- /* @__PURE__ */ z(nl, {
5702
+ /* @__PURE__ */ B(ol, {
5652
5703
  enabled: r,
5653
5704
  values: t.verses
5654
5705
  }),
5655
- /* @__PURE__ */ z(il, { links: os(t) })
5706
+ /* @__PURE__ */ B(cl, { links: os(t) })
5656
5707
  ]
5657
5708
  }),
5658
- t.coordinates === null ? null : /* @__PURE__ */ z(al, {
5709
+ t.coordinates === null ? null : /* @__PURE__ */ B(ll, {
5659
5710
  coordinates: t.coordinates,
5660
5711
  name: t.name
5661
5712
  })
@@ -5663,32 +5714,32 @@ function sl({ includeTitle: e = !0, mentionLocation: t, onOpenLocationReference:
5663
5714
  })]
5664
5715
  });
5665
5716
  }
5666
- function cl(e) {
5717
+ function fl(e) {
5667
5718
  return e instanceof Element && e.closest("a, button, .mention-location-details") !== null;
5668
5719
  }
5669
- function ll(e) {
5720
+ function pl(e) {
5670
5721
  if (!(e instanceof Element)) return null;
5671
5722
  let t = e.closest("[data-lexical-mention]");
5672
5723
  return t instanceof HTMLElement ? t : null;
5673
5724
  }
5674
- function ul(e) {
5725
+ function ml(e) {
5675
5726
  if (!(e instanceof Element)) return null;
5676
5727
  let t = e.closest("[data-mention-location-hover-card]");
5677
5728
  return t instanceof HTMLElement ? t : null;
5678
5729
  }
5679
- function dl(e) {
5730
+ function hl(e) {
5680
5731
  let t = e.getAttribute("data-lexical-mention-kind");
5681
5732
  return t === "mention" || t === "bible-verse" ? t : t === "location" || t === "hashtag" || (e.textContent?.trim() ?? "").startsWith("#") ? "location" : "mention";
5682
5733
  }
5683
- function fl(e) {
5684
- let t = dl(e);
5734
+ function gl(e) {
5735
+ let t = hl(e);
5685
5736
  t !== "bible-verse" && e.setAttribute("data-lexical-mention-kind", t);
5686
5737
  }
5687
- function pl(e) {
5688
- e.querySelectorAll("[data-lexical-mention]").forEach(fl);
5738
+ function _l(e) {
5739
+ e.querySelectorAll("[data-lexical-mention]").forEach(gl);
5689
5740
  }
5690
- function ml(e, t) {
5691
- if (dl(t) !== "location") return null;
5741
+ function vl(e, t) {
5742
+ if (hl(t) !== "location") return null;
5692
5743
  let n = t.textContent?.trim() ?? "", r = t.getAttribute("data-lexical-mention-id");
5693
5744
  if (r !== null) {
5694
5745
  let t = e.getRecordById(r);
@@ -5697,9 +5748,9 @@ function ml(e, t) {
5697
5748
  let i = t.getAttribute("data-lexical-mention-name")?.trim() ?? n ?? "", a = i.startsWith("#") ? i.slice(1) : i;
5698
5749
  if (a === "") return null;
5699
5750
  let o = e.getRecordsByName(a);
5700
- return o.length === 1 ? o[0] : Yc(r, a, "");
5751
+ return o.length === 1 ? o[0] : $c(r, a, "");
5701
5752
  }
5702
- function hl(e, t) {
5753
+ function yl(e, t) {
5703
5754
  let n = la(t.id), r = X(t.name);
5704
5755
  if (n !== null) {
5705
5756
  let t = e.getRecordById(n);
@@ -5707,18 +5758,18 @@ function hl(e, t) {
5707
5758
  }
5708
5759
  if (r === "") return null;
5709
5760
  let i = e.getRecordsByName(r);
5710
- return i.length === 1 ? i[0] : Yc(n, r, "");
5761
+ return i.length === 1 ? i[0] : $c(n, r, "");
5711
5762
  }
5712
- function gl(e) {
5763
+ function bl(e) {
5713
5764
  return $o(e, 112);
5714
5765
  }
5715
- function _l(e) {
5766
+ function xl(e) {
5716
5767
  return `location:${e.id ?? e.name}`;
5717
5768
  }
5718
- var vl = 500;
5719
- function yl(e) {
5720
- let [t, n] = R([]), r = Ia(), i = L(/* @__PURE__ */ new Map());
5721
- return I(() => {
5769
+ var Sl = 500;
5770
+ function Cl(e) {
5771
+ let [t, n] = z([]), r = Ia(), i = R(/* @__PURE__ */ new Map());
5772
+ return L(() => {
5722
5773
  if (e == null) {
5723
5774
  n([]);
5724
5775
  return;
@@ -5732,15 +5783,15 @@ function yl(e) {
5732
5783
  t.set(e, null), setTimeout(() => {
5733
5784
  let i = r.searchLocations(e);
5734
5785
  t.set(e, i), n(i);
5735
- }, vl);
5786
+ }, Sl);
5736
5787
  }
5737
- }, [e, r]), I(() => {
5788
+ }, [e, r]), L(() => {
5738
5789
  i.current = /* @__PURE__ */ new Map();
5739
5790
  }, [r]), t;
5740
5791
  }
5741
- function bl(e, t) {
5742
- let n = Wc.exec(e);
5743
- if (n === null && (n = Gc.exec(e)), n !== null) {
5792
+ function wl(e, t) {
5793
+ let n = Jc.exec(e);
5794
+ if (n === null && (n = Yc.exec(e)), n !== null) {
5744
5795
  let e = n[1], r = n[3];
5745
5796
  if (r.length >= t) return {
5746
5797
  leadOffset: n.index + e.length,
@@ -5750,10 +5801,10 @@ function bl(e, t) {
5750
5801
  }
5751
5802
  return null;
5752
5803
  }
5753
- function xl(e) {
5754
- return bl(e, 1);
5804
+ function Tl(e) {
5805
+ return wl(e, 1);
5755
5806
  }
5756
- var Sl = class extends Qs {
5807
+ var El = class extends Qs {
5757
5808
  id;
5758
5809
  name;
5759
5810
  kjvName;
@@ -5762,9 +5813,9 @@ var Sl = class extends Qs {
5762
5813
  super(e.id), this.id = e.id, this.name = e.name, this.kjvName = ca(e), this.title = ko(e.title), this.picture = t;
5763
5814
  }
5764
5815
  };
5765
- function Cl({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i }) {
5816
+ function Dl({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i }) {
5766
5817
  let a = "item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0";
5767
- return t && (a += " selected"), /* @__PURE__ */ B("li", {
5818
+ return t && (a += " selected"), /* @__PURE__ */ V("li", {
5768
5819
  tabIndex: -1,
5769
5820
  className: a,
5770
5821
  ref: i.setRefElement,
@@ -5773,16 +5824,16 @@ function Cl({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i })
5773
5824
  id: "typeahead-item-" + e,
5774
5825
  onMouseEnter: r,
5775
5826
  onClick: n,
5776
- children: [i.picture, /* @__PURE__ */ B("span", {
5827
+ children: [i.picture, /* @__PURE__ */ V("span", {
5777
5828
  className: "text flex-column",
5778
- children: [/* @__PURE__ */ B("span", { children: [i.name, i.kjvName === null ? null : /* @__PURE__ */ B("span", {
5829
+ children: [/* @__PURE__ */ V("span", { children: [i.name, i.kjvName === null ? null : /* @__PURE__ */ V("span", {
5779
5830
  className: "opacity-75",
5780
5831
  children: [
5781
5832
  " (",
5782
5833
  i.kjvName,
5783
5834
  ")"
5784
5835
  ]
5785
- })] }), i.title ? /* @__PURE__ */ B("span", {
5836
+ })] }), i.title ? /* @__PURE__ */ V("span", {
5786
5837
  className: "small opacity-75",
5787
5838
  children: [
5788
5839
  "(",
@@ -5793,34 +5844,38 @@ function Cl({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i })
5793
5844
  })]
5794
5845
  }, i.key);
5795
5846
  }
5796
- function wl() {
5797
- let [e] = _t(), t = Ia(), n = t.style, r = L(null), i = L(null), [a, o] = R(null), [s, c] = R(null), [l, u] = R(null), [d, f] = R(null), [p, m] = R([]), { shortToVerseData: h } = aa(), g = F(async (e) => {
5847
+ function Ol() {
5848
+ let [e] = M(), t = Ia(), n = t.style, r = R(null), i = R(null), [a, o] = z(null), [s, c] = z(null), [l, u] = z(null), [d, f] = z(null), [p, m] = z([]), { shortToVerseData: h } = aa(), g = I(async (e) => {
5798
5849
  if (h === void 0) return e;
5799
5850
  try {
5800
5851
  return (await h(e))?.title ?? e;
5801
5852
  } catch {
5802
5853
  return e;
5803
5854
  }
5804
- }, [h]), _ = yl(a), v = cc("/", { minLength: 0 }), y = Rn(() => _.map((e) => new Sl(e, /* @__PURE__ */ z("i", {
5855
+ }, [h]), _ = Cl(a), { popoverRef: v, trackMatch: y } = Hc(), b = cc("/", { minLength: 0 }), x = Ln(() => _.map((e) => new El(e, /* @__PURE__ */ B("i", {
5805
5856
  className: "bi bi-pin icon",
5806
5857
  "aria-hidden": "true"
5807
- }))).slice(0, Kc), [_]), b = F((t, n, r) => {
5858
+ }))).slice(0, Xc), [_]), S = I((t, n, r) => {
5808
5859
  e.update(() => {
5809
5860
  let e = Os(t.name, t.name, t.id, "location");
5810
5861
  n && n.replace(e), e.select(), r();
5811
5862
  });
5812
- }, [e]), x = F((t) => v(t, e) === null ? xl(t) : null, [v, e]), S = F(() => {
5863
+ }, [e]), ee = I((t) => b(t, e) === null ? y(Tl(t)) : y(null), [
5864
+ b,
5865
+ e,
5866
+ y
5867
+ ]), C = I(() => {
5813
5868
  r.current !== null && (window.clearTimeout(r.current), r.current = null);
5814
- }, []), C = F(() => {
5869
+ }, []), w = I(() => {
5815
5870
  i.current !== null && (window.clearTimeout(i.current), i.current = null);
5816
- }, []), w = F(() => {
5817
- S(), C(), u(null), c(null);
5818
- }, [C, S]), T = F(() => {
5819
- S(), C(), i.current = window.setTimeout(() => {
5871
+ }, []), T = I(() => {
5872
+ C(), w(), u(null), c(null);
5873
+ }, [w, C]), E = I(() => {
5874
+ C(), w(), i.current = window.setTimeout(() => {
5820
5875
  u(null), c(null), i.current = null;
5821
- }, Jc);
5822
- }, [C, S]), E = F((e, t) => {
5823
- let n = _l(e), r = Vo(), i = ts(t);
5876
+ }, Qc);
5877
+ }, [w, C]), D = I((e, t) => {
5878
+ let n = xl(e), r = Vo(), i = ts(t);
5824
5879
  m((a) => {
5825
5880
  let o = a.find((e) => e.panelKey === n), s = {
5826
5881
  ...e,
@@ -5830,16 +5885,16 @@ function wl() {
5830
5885
  zIndex: r
5831
5886
  };
5832
5887
  return o === void 0 ? [...a, s] : a.map((e) => e.panelKey === n ? s : e);
5833
- }), w();
5834
- }, [w]), D = F((e) => {
5888
+ }), T();
5889
+ }, [T]), O = I((e) => {
5835
5890
  m((t) => t.filter((t) => t.panelKey !== e));
5836
- }, []), ee = F((e) => {
5891
+ }, []), te = I((e) => {
5837
5892
  let t = Vo();
5838
5893
  m((n) => n.map((n) => n.panelKey === e ? {
5839
5894
  ...n,
5840
5895
  zIndex: t
5841
5896
  } : n));
5842
- }, []), O = F((e, t) => {
5897
+ }, []), ne = I((e, t) => {
5843
5898
  m((n) => {
5844
5899
  let r = !1, i = n.map((n) => n.panelKey !== e || n.position.left === t.left && n.position.top === t.top ? n : (r = !0, {
5845
5900
  ...n,
@@ -5848,34 +5903,34 @@ function wl() {
5848
5903
  return r ? i : n;
5849
5904
  });
5850
5905
  }, []);
5851
- return I(() => {
5906
+ return L(() => {
5852
5907
  let e = (e) => {
5853
5908
  let n = e.detail;
5854
5909
  if (typeof n != "object" || !n || !(n.anchorElement instanceof HTMLElement)) return;
5855
- let r = hl(t, n);
5856
- r !== null && E(r, n.anchorElement);
5910
+ let r = yl(t, n);
5911
+ r !== null && D(r, n.anchorElement);
5857
5912
  };
5858
5913
  return window.addEventListener(wo, e), () => {
5859
5914
  window.removeEventListener(wo, e);
5860
5915
  };
5861
- }, [t, E]), I(() => {
5916
+ }, [t, D]), L(() => {
5862
5917
  let e = (e) => {
5863
5918
  if (e.button !== 0) return;
5864
- let n = ll(e.target);
5919
+ let n = pl(e.target);
5865
5920
  if (n === null || !Go(e, n)) return;
5866
- fl(n);
5867
- let r = ml(t, n);
5868
- r !== null && (E(r, n), e.preventDefault(), e.stopPropagation());
5921
+ gl(n);
5922
+ let r = vl(t, n);
5923
+ r !== null && (D(r, n), e.preventDefault(), e.stopPropagation());
5869
5924
  };
5870
5925
  return document.addEventListener("pointerdown", e, !0), () => {
5871
5926
  document.removeEventListener("pointerdown", e, !0);
5872
5927
  };
5873
- }, [t, E]), I(() => e.registerNodeTransform(Ds, (e) => {
5928
+ }, [t, D]), L(() => e.registerNodeTransform(Ds, (e) => {
5874
5929
  e.getTextContent().startsWith("#") && (e.setMentionKind("location"), e.setTextContent(e.getTextContent().slice(1)));
5875
- }), [e]), I(() => {
5930
+ }), [e]), L(() => {
5876
5931
  let t = null, n = e.registerRootListener((e) => {
5877
- t?.disconnect(), t = null, e !== null && (pl(e), t = new MutationObserver(() => {
5878
- pl(e);
5932
+ t?.disconnect(), t = null, e !== null && (_l(e), t = new MutationObserver(() => {
5933
+ _l(e);
5879
5934
  }), t.observe(e, {
5880
5935
  characterData: !0,
5881
5936
  childList: !0,
@@ -5885,71 +5940,72 @@ function wl() {
5885
5940
  return () => {
5886
5941
  t?.disconnect(), n();
5887
5942
  };
5888
- }, [e]), I(() => {
5943
+ }, [e]), L(() => {
5889
5944
  let e = (e) => {
5890
- if (ul(e.target) !== null) {
5891
- C();
5945
+ if (ml(e.target) !== null) {
5946
+ w();
5892
5947
  return;
5893
5948
  }
5894
- let n = ll(e.target), i = ll(e.relatedTarget);
5949
+ let n = pl(e.target), i = pl(e.relatedTarget);
5895
5950
  if (n === null) return;
5896
5951
  if (n === l) {
5897
- C();
5952
+ w();
5898
5953
  return;
5899
5954
  }
5900
5955
  if (n === i) return;
5901
- fl(n);
5902
- let a = ml(t, n);
5903
- a !== null && (w(), r.current = window.setTimeout(() => {
5956
+ gl(n);
5957
+ let a = vl(t, n);
5958
+ a !== null && (T(), r.current = window.setTimeout(() => {
5904
5959
  u(n), c(a), r.current = null;
5905
- }, qc));
5960
+ }, Zc));
5906
5961
  }, n = (e) => {
5907
- let t = ll(e.target), n = ul(e.target), r = ll(e.relatedTarget), i = ul(e.relatedTarget);
5962
+ let t = pl(e.target), n = ml(e.target), r = pl(e.relatedTarget), i = ml(e.relatedTarget);
5908
5963
  if (!(t === null && n === null)) {
5909
5964
  if (r !== null || i !== null) {
5910
- C();
5965
+ w();
5911
5966
  return;
5912
5967
  }
5913
- T();
5968
+ E();
5914
5969
  }
5915
5970
  };
5916
5971
  return document.addEventListener("mouseover", e), document.addEventListener("mouseout", n), () => {
5917
- S(), C(), document.removeEventListener("mouseover", e), document.removeEventListener("mouseout", n);
5972
+ C(), w(), document.removeEventListener("mouseover", e), document.removeEventListener("mouseout", n);
5918
5973
  };
5919
5974
  }, [
5920
- C,
5921
- S,
5922
5975
  w,
5976
+ C,
5977
+ T,
5923
5978
  l,
5924
5979
  t,
5925
- T
5926
- ]), I(() => {
5980
+ E
5981
+ ]), L(() => {
5927
5982
  if (l === null) {
5928
5983
  f(null);
5929
5984
  return;
5930
5985
  }
5931
5986
  let e = () => {
5932
5987
  if (!l.isConnected) {
5933
- w(), f(null);
5988
+ T(), f(null);
5934
5989
  return;
5935
5990
  }
5936
- f(gl(l));
5991
+ f(bl(l));
5937
5992
  };
5938
5993
  return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
5939
5994
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
5940
5995
  };
5941
- }, [w, l]), /* @__PURE__ */ B(zn, { children: [
5942
- /* @__PURE__ */ z(lc, {
5996
+ }, [T, l]), /* @__PURE__ */ V(Rn, { children: [
5997
+ /* @__PURE__ */ B(lc, {
5943
5998
  onQueryChange: o,
5944
- onSelectOption: b,
5945
- triggerFn: x,
5946
- options: y,
5947
- menuRenderFn: (e, { selectedIndex: t, selectOptionAndCleanUp: r, setHighlightedIndex: i }) => e.current && _.length ? Bn.createPortal(/* @__PURE__ */ z("div", {
5999
+ onSelectOption: S,
6000
+ triggerFn: ee,
6001
+ options: x,
6002
+ menuRenderFn: (e, { selectedIndex: t, selectOptionAndCleanUp: r, setHighlightedIndex: i }) => e.current && _.length ? zn.createPortal(/* @__PURE__ */ B("div", {
6003
+ ref: v,
5948
6004
  className: "typeahead-popover mention-locations-menu",
5949
6005
  style: n,
5950
- children: /* @__PURE__ */ z("ul", {
6006
+ children: /* @__PURE__ */ B("ul", {
5951
6007
  className: "list-unstyled m-0 p-0",
5952
- children: y.map((e, n) => /* @__PURE__ */ z(Cl, {
6008
+ children: x.map((e, n) => /* @__PURE__ */ B(Dl, {
5953
6009
  index: n,
5954
6010
  isSelected: t === n,
5955
6011
  onClick: () => {
@@ -5963,7 +6019,7 @@ function wl() {
5963
6019
  })
5964
6020
  }), e.current) : null
5965
6021
  }),
5966
- s !== null && d !== null ? Bn.createPortal(/* @__PURE__ */ B("div", {
6022
+ s !== null && d !== null ? zn.createPortal(/* @__PURE__ */ V("div", {
5967
6023
  className: "mention-hover-card",
5968
6024
  "data-mention-location-hover-card": "true",
5969
6025
  role: "tooltip",
@@ -5973,22 +6029,22 @@ function wl() {
5973
6029
  },
5974
6030
  tabIndex: 0,
5975
6031
  onClick: (e) => {
5976
- cl(e.target) || l !== null && E(s, l);
6032
+ fl(e.target) || l !== null && D(s, l);
5977
6033
  },
5978
6034
  onKeyDown: (e) => {
5979
- (e.key === "Enter" || e.key === " ") && l !== null && !cl(e.target) && (E(s, l), e.preventDefault());
6035
+ (e.key === "Enter" || e.key === " ") && l !== null && !fl(e.target) && (D(s, l), e.preventDefault());
5980
6036
  },
5981
6037
  children: [
5982
- /* @__PURE__ */ B("div", {
6038
+ /* @__PURE__ */ V("div", {
5983
6039
  className: "mention-hover-card__name d-inline-flex align-items-center gap-2",
5984
6040
  children: [
5985
- /* @__PURE__ */ z("i", {
6041
+ /* @__PURE__ */ B("i", {
5986
6042
  className: "bi bi-pin icon",
5987
6043
  "aria-hidden": "true"
5988
6044
  }),
5989
- /* @__PURE__ */ B("span", {
6045
+ /* @__PURE__ */ V("span", {
5990
6046
  className: "mention-hover-card__name-text",
5991
- children: [s.name, ca(s) === null ? null : /* @__PURE__ */ B("span", {
6047
+ children: [s.name, ca(s) === null ? null : /* @__PURE__ */ V("span", {
5992
6048
  className: "mention-hover-card__kjv-name",
5993
6049
  children: [
5994
6050
  " ",
@@ -5998,37 +6054,37 @@ function wl() {
5998
6054
  ]
5999
6055
  })]
6000
6056
  }),
6001
- /* @__PURE__ */ z("button", {
6057
+ /* @__PURE__ */ B("button", {
6002
6058
  "aria-label": "Copy mentioned location name",
6003
6059
  className: "mention-hover-card__copy",
6004
6060
  title: "Copy name",
6005
6061
  type: "button",
6006
6062
  onClick: (e) => {
6007
- e.preventDefault(), e.stopPropagation(), Xc(s.name);
6063
+ e.preventDefault(), e.stopPropagation(), el(s.name);
6008
6064
  },
6009
- children: /* @__PURE__ */ z("i", {
6065
+ children: /* @__PURE__ */ B("i", {
6010
6066
  className: "bi bi-copy",
6011
6067
  "aria-hidden": "true"
6012
6068
  })
6013
6069
  })
6014
6070
  ]
6015
6071
  }),
6016
- s.title ? /* @__PURE__ */ z("div", {
6072
+ s.title ? /* @__PURE__ */ B("div", {
6017
6073
  className: "mention-hover-card__title",
6018
- children: /* @__PURE__ */ z(No, { value: s.title })
6074
+ children: /* @__PURE__ */ B(No, { value: s.title })
6019
6075
  }) : null,
6020
- /* @__PURE__ */ z(ol, {
6076
+ /* @__PURE__ */ B(ul, {
6021
6077
  includeTitle: !1,
6022
6078
  mentionLocation: s
6023
6079
  }),
6024
- /* @__PURE__ */ z(sl, {
6080
+ /* @__PURE__ */ B(dl, {
6025
6081
  includeTitle: !1,
6026
6082
  mentionLocation: s,
6027
- onOpenLocationReference: E
6083
+ onOpenLocationReference: D
6028
6084
  })
6029
6085
  ]
6030
6086
  }), document.body) : null,
6031
- p.map((e) => /* @__PURE__ */ z(Rc, {
6087
+ p.map((e) => /* @__PURE__ */ B(Rc, {
6032
6088
  anchorElement: e.anchorElement,
6033
6089
  copyLabel: "Copy mentioned location details",
6034
6090
  iconClassName: "bi bi-pin icon",
@@ -6036,9 +6092,9 @@ function wl() {
6036
6092
  panelKind: "location",
6037
6093
  position: e.position,
6038
6094
  textStyle: n,
6039
- title: /* @__PURE__ */ B(zn, { children: [/* @__PURE__ */ z(ol, { mentionLocation: e }), /* @__PURE__ */ z(sl, {
6095
+ title: /* @__PURE__ */ V(Rn, { children: [/* @__PURE__ */ B(ul, { mentionLocation: e }), /* @__PURE__ */ B(dl, {
6040
6096
  mentionLocation: e,
6041
- onOpenLocationReference: E
6097
+ onOpenLocationReference: D
6042
6098
  })] }),
6043
6099
  zIndex: e.zIndex,
6044
6100
  onCopy: async () => {
@@ -6046,24 +6102,24 @@ function wl() {
6046
6102
  return Wo(n, r);
6047
6103
  },
6048
6104
  onBringToFront: () => {
6049
- ee(e.panelKey);
6105
+ te(e.panelKey);
6050
6106
  },
6051
6107
  onClose: () => {
6052
- D(e.panelKey);
6108
+ O(e.panelKey);
6053
6109
  },
6054
6110
  onPositionChange: (t) => {
6055
- O(e.panelKey, t);
6111
+ ne(e.panelKey, t);
6056
6112
  }
6057
6113
  }, e.panelKey))
6058
6114
  ] });
6059
6115
  }
6060
6116
  //#endregion
6061
6117
  //#region src/plugins/MentionNamePlugin/index.tsx
6062
- var Tl = {
6118
+ var kl = {
6063
6119
  NAME: "\\b[A-Z][^\\s\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;]",
6064
6120
  PUNCTUATION: "\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;"
6065
- }.PUNCTUATION, El = ["@"].join(""), Dl = "[^" + El + Tl + "\\s]", Ol = "(?:\\.[ |$]| |[" + Tl + "]|)", kl = RegExp("(^|\\s|\\()([" + El + "]((?:" + Dl + Ol + "){0,75}))$"), Al = RegExp("(^|\\s|\\()([" + El + "]((?:" + Dl + "){0,50}))$"), jl = 20, Ml = 2e3, Nl = 150;
6066
- function Pl(e, t, n) {
6121
+ }.PUNCTUATION, Al = ["@"].join(""), jl = "[^" + Al + kl + "\\s]", Ml = "(?:\\.[ |$]| |[" + kl + "]|)", Nl = RegExp("(^|\\s|\\()([" + Al + "]((?:" + jl + Ml + "){0,75}))$"), Pl = RegExp("(^|\\s|\\()([" + Al + "]((?:" + jl + "){0,50}))$"), Fl = 20, Il = 2e3, Ll = 150;
6122
+ function Rl(e, t, n) {
6067
6123
  return {
6068
6124
  id: e,
6069
6125
  name: t,
@@ -6087,7 +6143,7 @@ function Pl(e, t, n) {
6087
6143
  matterRange: Infinity
6088
6144
  };
6089
6145
  }
6090
- async function Fl(e) {
6146
+ async function zl(e) {
6091
6147
  if (navigator.clipboard !== void 0 && typeof navigator.clipboard.writeText == "function") {
6092
6148
  await navigator.clipboard.writeText(e);
6093
6149
  return;
@@ -6095,38 +6151,38 @@ async function Fl(e) {
6095
6151
  let t = document.createElement("textarea");
6096
6152
  t.value = e, t.setAttribute("readonly", ""), t.style.position = "fixed", t.style.top = "-9999px", document.body.appendChild(t), t.select(), document.execCommand("copy"), t.remove();
6097
6153
  }
6098
- function Il({ inline: e = !1, label: t, value: n }) {
6099
- return /* @__PURE__ */ B("div", {
6154
+ function Bl({ inline: e = !1, label: t, value: n }) {
6155
+ return /* @__PURE__ */ V("div", {
6100
6156
  className: `mention-person-details__row${e ? " mention-person-details__row--inline" : ""}`,
6101
- children: [/* @__PURE__ */ z("dt", { children: e ? `${t}:` : t }), /* @__PURE__ */ z("dd", { children: n })]
6157
+ children: [/* @__PURE__ */ B("dt", { children: e ? `${t}:` : t }), /* @__PURE__ */ B("dd", { children: n })]
6102
6158
  });
6103
6159
  }
6104
- function Ll({ label: e, value: t }) {
6105
- return rs(t) ? /* @__PURE__ */ z(Il, {
6160
+ function Vl({ label: e, value: t }) {
6161
+ return rs(t) ? /* @__PURE__ */ B(Bl, {
6106
6162
  inline: !0,
6107
6163
  label: e,
6108
6164
  value: ns(t)
6109
6165
  }) : null;
6110
6166
  }
6111
- function Rl({ values: e }) {
6112
- return /* @__PURE__ */ z("ul", {
6167
+ function Hl({ values: e }) {
6168
+ return /* @__PURE__ */ B("ul", {
6113
6169
  className: "mention-person-details__list",
6114
- children: e.map((e) => /* @__PURE__ */ z("li", { children: e }, e))
6170
+ children: e.map((e) => /* @__PURE__ */ B("li", { children: e }, e))
6115
6171
  });
6116
6172
  }
6117
- function zl({ label: e, values: t }) {
6118
- return t.length === 0 ? null : /* @__PURE__ */ z(Il, {
6173
+ function Ul({ label: e, values: t }) {
6174
+ return t.length === 0 ? null : /* @__PURE__ */ B(Bl, {
6119
6175
  label: e,
6120
- value: /* @__PURE__ */ z(Rl, { values: t })
6176
+ value: /* @__PURE__ */ B(Hl, { values: t })
6121
6177
  });
6122
6178
  }
6123
- function Bl({ locations: e }) {
6179
+ function Wl({ locations: e }) {
6124
6180
  let t = Ia();
6125
- return /* @__PURE__ */ z("ul", {
6181
+ return /* @__PURE__ */ B("ul", {
6126
6182
  className: "mention-person-details__list",
6127
6183
  children: e.map((e) => {
6128
6184
  let n = ss(t, e), r = n?.name ?? e;
6129
- return /* @__PURE__ */ z("li", { children: n === null ? r : /* @__PURE__ */ z("button", {
6185
+ return /* @__PURE__ */ B("li", { children: n === null ? r : /* @__PURE__ */ B("button", {
6130
6186
  className: "mention-person-details__location-button",
6131
6187
  title: ko(n.title) || void 0,
6132
6188
  type: "button",
@@ -6142,19 +6198,19 @@ function Bl({ locations: e }) {
6142
6198
  })
6143
6199
  });
6144
6200
  }
6145
- function Vl({ locations: e }) {
6146
- return e.length === 0 ? null : /* @__PURE__ */ z(Il, {
6201
+ function Gl({ locations: e }) {
6202
+ return e.length === 0 ? null : /* @__PURE__ */ B(Bl, {
6147
6203
  label: "Locations",
6148
- value: /* @__PURE__ */ z(Bl, { locations: e })
6204
+ value: /* @__PURE__ */ B(Wl, { locations: e })
6149
6205
  });
6150
6206
  }
6151
- function Hl({ ids: e, onOpenPersonReference: t }) {
6207
+ function Kl({ ids: e, onOpenPersonReference: t }) {
6152
6208
  let n = Fa();
6153
- return /* @__PURE__ */ z("ul", {
6209
+ return /* @__PURE__ */ B("ul", {
6154
6210
  className: "mention-person-details__list",
6155
6211
  children: e.map((e) => {
6156
6212
  let r = n.getRecordById(e), i = r?.name ?? e;
6157
- return /* @__PURE__ */ z("li", { children: r === null ? i : /* @__PURE__ */ z("button", {
6213
+ return /* @__PURE__ */ B("li", { children: r === null ? i : /* @__PURE__ */ B("button", {
6158
6214
  className: "mention-person-details__person-button",
6159
6215
  type: "button",
6160
6216
  onClick: (e) => {
@@ -6165,19 +6221,19 @@ function Hl({ ids: e, onOpenPersonReference: t }) {
6165
6221
  })
6166
6222
  });
6167
6223
  }
6168
- function Ul({ ids: e, label: t, onOpenPersonReference: n }) {
6169
- return e.length === 0 ? null : /* @__PURE__ */ z(Il, {
6224
+ function ql({ ids: e, label: t, onOpenPersonReference: n }) {
6225
+ return e.length === 0 ? null : /* @__PURE__ */ B(Bl, {
6170
6226
  label: t,
6171
- value: /* @__PURE__ */ z(Hl, {
6227
+ value: /* @__PURE__ */ B(Kl, {
6172
6228
  ids: e,
6173
6229
  onOpenPersonReference: n
6174
6230
  })
6175
6231
  });
6176
6232
  }
6177
- function Wl({ links: e }) {
6178
- return /* @__PURE__ */ z("ul", {
6233
+ function Jl({ links: e }) {
6234
+ return /* @__PURE__ */ B("ul", {
6179
6235
  className: "mention-person-details__list",
6180
- children: e.map((e) => /* @__PURE__ */ z("li", { children: /* @__PURE__ */ z("a", {
6236
+ children: e.map((e) => /* @__PURE__ */ B("li", { children: /* @__PURE__ */ B("a", {
6181
6237
  href: e.url,
6182
6238
  rel: "noreferrer",
6183
6239
  target: "_blank",
@@ -6185,10 +6241,10 @@ function Wl({ links: e }) {
6185
6241
  }) }, `${e.type}:${e.url}`))
6186
6242
  });
6187
6243
  }
6188
- function Gl({ enabled: e, values: t }) {
6189
- return t.length === 0 ? null : /* @__PURE__ */ z(Il, {
6244
+ function Yl({ enabled: e, values: t }) {
6245
+ return t.length === 0 ? null : /* @__PURE__ */ B(Bl, {
6190
6246
  label: "Verses",
6191
- value: /* @__PURE__ */ z(zc, {
6247
+ value: /* @__PURE__ */ B(Uc, {
6192
6248
  buttonClassName: "mention-person-details__location-button",
6193
6249
  enabled: e,
6194
6250
  listClassName: "mention-person-details__list",
@@ -6196,136 +6252,136 @@ function Gl({ enabled: e, values: t }) {
6196
6252
  })
6197
6253
  });
6198
6254
  }
6199
- function Kl({ links: e }) {
6200
- return e.length === 0 ? null : /* @__PURE__ */ z(Il, {
6255
+ function Xl({ links: e }) {
6256
+ return e.length === 0 ? null : /* @__PURE__ */ B(Bl, {
6201
6257
  label: "Links",
6202
- value: /* @__PURE__ */ z(Wl, { links: e })
6258
+ value: /* @__PURE__ */ B(Jl, { links: e })
6203
6259
  });
6204
6260
  }
6205
- function ql({ includeTitle: e = !0, mentionPerson: t }) {
6261
+ function Zl({ includeTitle: e = !0, mentionPerson: t }) {
6206
6262
  let n = [
6207
6263
  t.type,
6208
6264
  t.gender,
6209
6265
  t.age
6210
6266
  ].filter((e) => e !== "" && e.toLowerCase() !== "unknown");
6211
- return /* @__PURE__ */ B("div", {
6267
+ return /* @__PURE__ */ V("div", {
6212
6268
  className: "mention-person-basic-info",
6213
6269
  children: [
6214
- e && t.title ? /* @__PURE__ */ z("div", {
6270
+ e && t.title ? /* @__PURE__ */ B("div", {
6215
6271
  className: "mention-person-basic-info__title",
6216
- children: /* @__PURE__ */ z(No, { value: t.title })
6272
+ children: /* @__PURE__ */ B(No, { value: t.title })
6217
6273
  }) : null,
6218
- t.description ? /* @__PURE__ */ z("p", {
6274
+ t.description ? /* @__PURE__ */ B("p", {
6219
6275
  className: "mention-person-basic-info__description",
6220
- children: /* @__PURE__ */ z(No, { value: t.description })
6276
+ children: /* @__PURE__ */ B(No, { value: t.description })
6221
6277
  }) : null,
6222
- n.length > 0 ? /* @__PURE__ */ z("div", {
6278
+ n.length > 0 ? /* @__PURE__ */ B("div", {
6223
6279
  className: "mention-person-basic-info__facts",
6224
- children: n.map((e) => /* @__PURE__ */ z("span", { children: e }, e))
6280
+ children: n.map((e) => /* @__PURE__ */ B("span", { children: e }, e))
6225
6281
  }) : null
6226
6282
  ]
6227
6283
  });
6228
6284
  }
6229
- function Jl({ includeTitle: e = !0, mentionPerson: t, onOpenPersonReference: n }) {
6230
- let [r, i] = R(!1);
6231
- return /* @__PURE__ */ B("details", {
6285
+ function Ql({ includeTitle: e = !0, mentionPerson: t, onOpenPersonReference: n }) {
6286
+ let [r, i] = z(!1);
6287
+ return /* @__PURE__ */ V("details", {
6232
6288
  className: "mention-person-details",
6233
- children: [/* @__PURE__ */ B("summary", {
6289
+ children: [/* @__PURE__ */ V("summary", {
6234
6290
  className: "mention-person-details__summary",
6235
6291
  onClick: () => {
6236
6292
  i(!0);
6237
6293
  },
6238
- children: [/* @__PURE__ */ z("i", {
6294
+ children: [/* @__PURE__ */ B("i", {
6239
6295
  className: "bi bi-chevron-right mention-person-details__summary-icon",
6240
6296
  "aria-hidden": "true"
6241
- }), /* @__PURE__ */ z("span", { children: "Details" })]
6242
- }), /* @__PURE__ */ B("div", {
6297
+ }), /* @__PURE__ */ B("span", { children: "Details" })]
6298
+ }), /* @__PURE__ */ V("div", {
6243
6299
  className: "mention-person-details__body",
6244
- children: [t.description ? /* @__PURE__ */ z("p", {
6300
+ children: [t.description ? /* @__PURE__ */ B("p", {
6245
6301
  className: "mention-person-details__description",
6246
- children: /* @__PURE__ */ z(No, { value: t.description })
6247
- }) : null, /* @__PURE__ */ B("dl", {
6302
+ children: /* @__PURE__ */ B(No, { value: t.description })
6303
+ }) : null, /* @__PURE__ */ V("dl", {
6248
6304
  className: "mention-person-details__grid",
6249
6305
  children: [
6250
- e && rs(t.title) ? /* @__PURE__ */ z(Il, {
6306
+ e && rs(t.title) ? /* @__PURE__ */ B(Bl, {
6251
6307
  inline: !0,
6252
6308
  label: "Title",
6253
- value: /* @__PURE__ */ z(No, { value: t.title })
6309
+ value: /* @__PURE__ */ B(No, { value: t.title })
6254
6310
  }) : null,
6255
- /* @__PURE__ */ z(Ll, {
6311
+ /* @__PURE__ */ B(Vl, {
6256
6312
  label: "KJV name",
6257
6313
  value: ca(t)
6258
6314
  }),
6259
- /* @__PURE__ */ z(Ll, {
6315
+ /* @__PURE__ */ B(Vl, {
6260
6316
  label: "Also called",
6261
6317
  value: t.oldName
6262
6318
  }),
6263
- /* @__PURE__ */ z(Ll, {
6319
+ /* @__PURE__ */ B(Vl, {
6264
6320
  label: "Type",
6265
6321
  value: t.type
6266
6322
  }),
6267
- /* @__PURE__ */ z(Ll, {
6323
+ /* @__PURE__ */ B(Vl, {
6268
6324
  label: "Gender",
6269
6325
  value: t.gender
6270
6326
  }),
6271
- /* @__PURE__ */ z(Ll, {
6327
+ /* @__PURE__ */ B(Vl, {
6272
6328
  label: "Age",
6273
6329
  value: t.age
6274
6330
  }),
6275
- /* @__PURE__ */ z(zl, {
6331
+ /* @__PURE__ */ B(Ul, {
6276
6332
  label: "Years",
6277
6333
  values: t.years.map(as)
6278
6334
  }),
6279
- /* @__PURE__ */ z(Vl, { locations: t.locations }),
6280
- /* @__PURE__ */ z(Ul, {
6335
+ /* @__PURE__ */ B(Gl, { locations: t.locations }),
6336
+ /* @__PURE__ */ B(ql, {
6281
6337
  label: "Parents",
6282
6338
  ids: t.parents,
6283
6339
  onOpenPersonReference: n
6284
6340
  }),
6285
- /* @__PURE__ */ z(Ul, {
6341
+ /* @__PURE__ */ B(ql, {
6286
6342
  label: "Spouses",
6287
6343
  ids: t.spouses,
6288
6344
  onOpenPersonReference: n
6289
6345
  }),
6290
- /* @__PURE__ */ z(Ul, {
6346
+ /* @__PURE__ */ B(ql, {
6291
6347
  label: "Children",
6292
6348
  ids: t.children,
6293
6349
  onOpenPersonReference: n
6294
6350
  }),
6295
- /* @__PURE__ */ z(Ul, {
6351
+ /* @__PURE__ */ B(ql, {
6296
6352
  label: "Siblings",
6297
6353
  ids: t.siblings,
6298
6354
  onOpenPersonReference: n
6299
6355
  }),
6300
- /* @__PURE__ */ z(Ul, {
6356
+ /* @__PURE__ */ B(ql, {
6301
6357
  label: "Cousins",
6302
6358
  ids: t.cousin,
6303
6359
  onOpenPersonReference: n
6304
6360
  }),
6305
- /* @__PURE__ */ z(Gl, {
6361
+ /* @__PURE__ */ B(Yl, {
6306
6362
  enabled: r,
6307
6363
  values: t.verses
6308
6364
  }),
6309
- /* @__PURE__ */ z(Kl, { links: os(t) })
6365
+ /* @__PURE__ */ B(Xl, { links: os(t) })
6310
6366
  ]
6311
6367
  })]
6312
6368
  })]
6313
6369
  });
6314
6370
  }
6315
- function Yl(e) {
6371
+ function $l(e) {
6316
6372
  return e instanceof Element && e.closest("a, button, .mention-person-details") !== null;
6317
6373
  }
6318
- function Xl(e) {
6374
+ function eu(e) {
6319
6375
  if (!(e instanceof Element)) return null;
6320
6376
  let t = e.closest("[data-lexical-mention]");
6321
6377
  return t instanceof HTMLElement ? t : null;
6322
6378
  }
6323
- function Zl(e) {
6379
+ function tu(e) {
6324
6380
  if (!(e instanceof Element)) return null;
6325
6381
  let t = e.closest("[data-mention-name-hover-card]");
6326
6382
  return t instanceof HTMLElement ? t : null;
6327
6383
  }
6328
- function Ql(e, t) {
6384
+ function nu(e, t) {
6329
6385
  let n = t.textContent?.trim() ?? "", r = t.getAttribute("data-lexical-mention-kind");
6330
6386
  if (r === "location" || r === "bible-verse" || r === "hashtag" || n.startsWith("#")) return null;
6331
6387
  let i = t.getAttribute("data-lexical-mention-id");
@@ -6336,15 +6392,15 @@ function Ql(e, t) {
6336
6392
  let a = t.getAttribute("data-lexical-mention-name")?.trim() ?? n ?? "";
6337
6393
  if (a === "") return null;
6338
6394
  let o = e.getRecordsByName(a);
6339
- return Pl(i, a, o.length === 1 ? o[0].title : "");
6395
+ return Rl(i, a, o.length === 1 ? o[0].title : "");
6340
6396
  }
6341
- function $l(e) {
6397
+ function ru(e) {
6342
6398
  return $o(e, 360);
6343
6399
  }
6344
- function eu(e) {
6400
+ function iu(e) {
6345
6401
  return `person:${e.id ?? e.name}`;
6346
6402
  }
6347
- function tu(e, t) {
6403
+ function au(e, t) {
6348
6404
  let n = la(t.id), r = X(t.name);
6349
6405
  if (n !== null) {
6350
6406
  let t = e.getRecordById(n);
@@ -6354,10 +6410,10 @@ function tu(e, t) {
6354
6410
  let i = e.getRecordsByName(r);
6355
6411
  return i.length >= 1 ? i[0] : null;
6356
6412
  }
6357
- var nu = 500;
6358
- function ru(e) {
6359
- let [t, n] = R([]), r = Fa(), i = L(/* @__PURE__ */ new Map());
6360
- return I(() => {
6413
+ var ou = 500;
6414
+ function su(e) {
6415
+ let [t, n] = z([]), r = Fa(), i = R(/* @__PURE__ */ new Map());
6416
+ return L(() => {
6361
6417
  if (e == null) {
6362
6418
  n([]);
6363
6419
  return;
@@ -6371,15 +6427,15 @@ function ru(e) {
6371
6427
  t.set(e, null), setTimeout(() => {
6372
6428
  let i = r.searchNames(e);
6373
6429
  t.set(e, i), n(i);
6374
- }, nu);
6430
+ }, ou);
6375
6431
  }
6376
- }, [e, r]), I(() => {
6432
+ }, [e, r]), L(() => {
6377
6433
  i.current = /* @__PURE__ */ new Map();
6378
6434
  }, [r]), t;
6379
6435
  }
6380
- function iu(e, t) {
6381
- let n = kl.exec(e);
6382
- if (n === null && (n = Al.exec(e)), n !== null) {
6436
+ function cu(e, t) {
6437
+ let n = Nl.exec(e);
6438
+ if (n === null && (n = Pl.exec(e)), n !== null) {
6383
6439
  let e = n[1], r = n[3];
6384
6440
  if (r.length >= t) return {
6385
6441
  leadOffset: n.index + e.length,
@@ -6389,10 +6445,10 @@ function iu(e, t) {
6389
6445
  }
6390
6446
  return null;
6391
6447
  }
6392
- function au(e) {
6393
- return iu(e, 1);
6448
+ function lu(e) {
6449
+ return cu(e, 1);
6394
6450
  }
6395
- var ou = class extends Qs {
6451
+ var uu = class extends Qs {
6396
6452
  id;
6397
6453
  name;
6398
6454
  kjvName;
@@ -6401,9 +6457,9 @@ var ou = class extends Qs {
6401
6457
  super(e.id), this.id = e.id, this.name = e.name, this.kjvName = ca(e), this.title = ko(e.title), this.picture = t;
6402
6458
  }
6403
6459
  };
6404
- function su({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i }) {
6460
+ function du({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i }) {
6405
6461
  let a = "item mx-2 p-2 d-flex flex-row align-items-center flex-shrink-0";
6406
- return t && (a += " selected"), /* @__PURE__ */ B("li", {
6462
+ return t && (a += " selected"), /* @__PURE__ */ V("li", {
6407
6463
  tabIndex: -1,
6408
6464
  className: a,
6409
6465
  ref: i.setRefElement,
@@ -6412,16 +6468,16 @@ function su({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i })
6412
6468
  id: "typeahead-item-" + e,
6413
6469
  onMouseEnter: r,
6414
6470
  onClick: n,
6415
- children: [i.picture, /* @__PURE__ */ B("span", {
6471
+ children: [i.picture, /* @__PURE__ */ V("span", {
6416
6472
  className: "text flex-column",
6417
- children: [/* @__PURE__ */ B("span", { children: [i.name, i.kjvName === null ? null : /* @__PURE__ */ B("span", {
6473
+ children: [/* @__PURE__ */ V("span", { children: [i.name, i.kjvName === null ? null : /* @__PURE__ */ V("span", {
6418
6474
  className: "opacity-75",
6419
6475
  children: [
6420
6476
  " (",
6421
6477
  i.kjvName,
6422
6478
  ")"
6423
6479
  ]
6424
- })] }), i.title ? /* @__PURE__ */ B("span", {
6480
+ })] }), i.title ? /* @__PURE__ */ V("span", {
6425
6481
  className: "small opacity-75",
6426
6482
  children: [
6427
6483
  "(",
@@ -6432,31 +6488,35 @@ function su({ index: e, isSelected: t, onClick: n, onMouseEnter: r, option: i })
6432
6488
  })]
6433
6489
  }, i.key);
6434
6490
  }
6435
- function cu() {
6436
- let [e] = _t(), t = Pa(), { namesLookupManager: n } = t, r = n.style, i = L(null), a = L(null), [o, s] = R(null), [c, l] = R(null), [u, d] = R(null), [f, p] = R(null), [m, h] = R([]), { shortToVerseData: g } = aa(), _ = F(async (e) => {
6491
+ function fu() {
6492
+ let [e] = M(), t = Pa(), { namesLookupManager: n } = t, r = n.style, i = R(null), a = R(null), [o, s] = z(null), [c, l] = z(null), [u, d] = z(null), [f, p] = z(null), [m, h] = z([]), { shortToVerseData: g } = aa(), _ = I(async (e) => {
6437
6493
  if (g === void 0) return e;
6438
6494
  try {
6439
6495
  return (await g(e))?.title ?? e;
6440
6496
  } catch {
6441
6497
  return e;
6442
6498
  }
6443
- }, [g]), v = ru(o), y = cc("/", { minLength: 0 }), b = Rn(() => v.map((e) => new ou(e, /* @__PURE__ */ z("i", { className: Fc(e.type) }))).slice(0, jl), [v]), x = F((t, n, r) => {
6499
+ }, [g]), v = su(o), { popoverRef: y, trackMatch: b } = Hc(), x = cc("/", { minLength: 0 }), S = Ln(() => v.map((e) => new uu(e, /* @__PURE__ */ B("i", { className: Fc(e.type) }))).slice(0, Fl), [v]), ee = I((t, n, r) => {
6444
6500
  e.update(() => {
6445
6501
  let e = Os(t.name, t.name, t.id);
6446
6502
  n && n.replace(e), e.select(), r();
6447
6503
  });
6448
- }, [e]), S = F((t) => y(t, e) === null ? au(t) : null, [y, e]), C = F(() => {
6504
+ }, [e]), C = I((t) => x(t, e) === null ? b(lu(t)) : b(null), [
6505
+ x,
6506
+ e,
6507
+ b
6508
+ ]), w = I(() => {
6449
6509
  i.current !== null && (window.clearTimeout(i.current), i.current = null);
6450
- }, []), w = F(() => {
6510
+ }, []), T = I(() => {
6451
6511
  a.current !== null && (window.clearTimeout(a.current), a.current = null);
6452
- }, []), T = F(() => {
6453
- C(), w(), d(null), l(null);
6454
- }, [w, C]), E = F(() => {
6455
- C(), w(), a.current = window.setTimeout(() => {
6512
+ }, []), E = I(() => {
6513
+ w(), T(), d(null), l(null);
6514
+ }, [T, w]), D = I(() => {
6515
+ w(), T(), a.current = window.setTimeout(() => {
6456
6516
  d(null), l(null), a.current = null;
6457
- }, Nl);
6458
- }, [w, C]), D = F((e, t) => {
6459
- let n = eu(e), r = Vo(), i = ts(t);
6517
+ }, Ll);
6518
+ }, [T, w]), O = I((e, t) => {
6519
+ let n = iu(e), r = Vo(), i = ts(t);
6460
6520
  h((a) => {
6461
6521
  let o = a.find((e) => e.panelKey === n), s = {
6462
6522
  ...e,
@@ -6466,16 +6526,16 @@ function cu() {
6466
6526
  zIndex: r
6467
6527
  };
6468
6528
  return o === void 0 ? [...a, s] : a.map((e) => e.panelKey === n ? s : e);
6469
- }), T();
6470
- }, [T]), ee = F((e) => {
6529
+ }), E();
6530
+ }, [E]), te = I((e) => {
6471
6531
  h((t) => t.filter((t) => t.panelKey !== e));
6472
- }, []), O = F((e) => {
6532
+ }, []), ne = I((e) => {
6473
6533
  let t = Vo();
6474
6534
  h((n) => n.map((n) => n.panelKey === e ? {
6475
6535
  ...n,
6476
6536
  zIndex: t
6477
6537
  } : n));
6478
- }, []), te = F((e, t) => {
6538
+ }, []), k = I((e, t) => {
6479
6539
  h((n) => {
6480
6540
  let r = !1, i = n.map((n) => n.panelKey !== e || n.position.left === t.left && n.position.top === t.top ? n : (r = !0, {
6481
6541
  ...n,
@@ -6484,7 +6544,7 @@ function cu() {
6484
6544
  return r ? i : n;
6485
6545
  });
6486
6546
  }, []);
6487
- return I(() => {
6547
+ return L(() => {
6488
6548
  let t = (e) => {
6489
6549
  if (e.getAttribute("data-lexical-mention-kind") !== "mention") {
6490
6550
  e.removeAttribute("data-lexical-mention-name-type");
@@ -6506,91 +6566,92 @@ function cu() {
6506
6566
  }
6507
6567
  });
6508
6568
  }, { skipInitialization: !1 });
6509
- }, [e, n]), I(() => {
6569
+ }, [e, n]), L(() => {
6510
6570
  let e = (e) => {
6511
6571
  if (e.button !== 0) return;
6512
- let t = Xl(e.target);
6572
+ let t = eu(e.target);
6513
6573
  if (t === null || !Go(e, t)) return;
6514
- let r = Ql(n, t);
6515
- r !== null && (D(r, t), e.preventDefault(), e.stopPropagation());
6574
+ let r = nu(n, t);
6575
+ r !== null && (O(r, t), e.preventDefault(), e.stopPropagation());
6516
6576
  };
6517
6577
  return document.addEventListener("pointerdown", e, !0), () => {
6518
6578
  document.removeEventListener("pointerdown", e, !0);
6519
6579
  };
6520
- }, [n, D]), I(() => {
6580
+ }, [n, O]), L(() => {
6521
6581
  let e = (e) => {
6522
6582
  let t = e.detail;
6523
6583
  if (typeof t != "object" || !t || !(t.anchorElement instanceof HTMLElement)) return;
6524
- let r = tu(n, t);
6525
- r !== null && D(r, t.anchorElement);
6584
+ let r = au(n, t);
6585
+ r !== null && O(r, t.anchorElement);
6526
6586
  };
6527
6587
  return window.addEventListener(Eo, e), () => {
6528
6588
  window.removeEventListener(Eo, e);
6529
6589
  };
6530
- }, [n, D]), I(() => {
6590
+ }, [n, O]), L(() => {
6531
6591
  let e = (e) => {
6532
- if (Zl(e.target) !== null) {
6533
- w();
6592
+ if (tu(e.target) !== null) {
6593
+ T();
6534
6594
  return;
6535
6595
  }
6536
- let t = Xl(e.target), r = Xl(e.relatedTarget);
6596
+ let t = eu(e.target), r = eu(e.relatedTarget);
6537
6597
  if (t === null) return;
6538
6598
  if (t === u) {
6539
- w();
6599
+ T();
6540
6600
  return;
6541
6601
  }
6542
6602
  if (t === r) return;
6543
- let a = Ql(n, t);
6544
- a !== null && (T(), i.current = window.setTimeout(() => {
6603
+ let a = nu(n, t);
6604
+ a !== null && (E(), i.current = window.setTimeout(() => {
6545
6605
  d(t), l(a), i.current = null;
6546
- }, Ml));
6606
+ }, Il));
6547
6607
  }, t = (e) => {
6548
- let t = Xl(e.target), n = Zl(e.target), r = Xl(e.relatedTarget), i = Zl(e.relatedTarget);
6608
+ let t = eu(e.target), n = tu(e.target), r = eu(e.relatedTarget), i = tu(e.relatedTarget);
6549
6609
  if (!(t === null && n === null)) {
6550
6610
  if (r !== null || i !== null) {
6551
- w();
6611
+ T();
6552
6612
  return;
6553
6613
  }
6554
- E();
6614
+ D();
6555
6615
  }
6556
6616
  };
6557
6617
  return document.addEventListener("mouseover", e), document.addEventListener("mouseout", t), () => {
6558
- C(), w(), document.removeEventListener("mouseover", e), document.removeEventListener("mouseout", t);
6618
+ w(), T(), document.removeEventListener("mouseover", e), document.removeEventListener("mouseout", t);
6559
6619
  };
6560
6620
  }, [
6561
- w,
6562
- C,
6563
6621
  T,
6622
+ w,
6623
+ E,
6564
6624
  u,
6565
6625
  n,
6566
- E
6567
- ]), I(() => {
6626
+ D
6627
+ ]), L(() => {
6568
6628
  if (u === null) {
6569
6629
  p(null);
6570
6630
  return;
6571
6631
  }
6572
6632
  let e = () => {
6573
6633
  if (!u.isConnected) {
6574
- T(), p(null);
6634
+ E(), p(null);
6575
6635
  return;
6576
6636
  }
6577
- p($l(u));
6637
+ p(ru(u));
6578
6638
  };
6579
6639
  return e(), window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
6580
6640
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
6581
6641
  };
6582
- }, [T, u]), /* @__PURE__ */ B(zn, { children: [
6583
- /* @__PURE__ */ z(lc, {
6642
+ }, [E, u]), /* @__PURE__ */ V(Rn, { children: [
6643
+ /* @__PURE__ */ B(lc, {
6584
6644
  onQueryChange: s,
6585
- onSelectOption: x,
6586
- triggerFn: S,
6587
- options: b,
6588
- menuRenderFn: (e, { selectedIndex: t, selectOptionAndCleanUp: n, setHighlightedIndex: i }) => e.current && v.length ? Bn.createPortal(/* @__PURE__ */ z("div", {
6645
+ onSelectOption: ee,
6646
+ triggerFn: C,
6647
+ options: S,
6648
+ menuRenderFn: (e, { selectedIndex: t, selectOptionAndCleanUp: n, setHighlightedIndex: i }) => e.current && v.length ? zn.createPortal(/* @__PURE__ */ B("div", {
6649
+ ref: y,
6589
6650
  className: "typeahead-popover mention-name-menu",
6590
6651
  style: r,
6591
- children: /* @__PURE__ */ z("ul", {
6652
+ children: /* @__PURE__ */ B("ul", {
6592
6653
  className: "list-unstyled m-0 p-0",
6593
- children: b.map((e, r) => /* @__PURE__ */ z(su, {
6654
+ children: S.map((e, r) => /* @__PURE__ */ B(du, {
6594
6655
  index: r,
6595
6656
  isSelected: t === r,
6596
6657
  onClick: () => {
@@ -6604,7 +6665,7 @@ function cu() {
6604
6665
  })
6605
6666
  }), e.current) : null
6606
6667
  }),
6607
- c !== null && f !== null ? Bn.createPortal(/* @__PURE__ */ B("div", {
6668
+ c !== null && f !== null ? zn.createPortal(/* @__PURE__ */ V("div", {
6608
6669
  className: "mention-hover-card",
6609
6670
  "data-mention-name-hover-card": "true",
6610
6671
  role: "tooltip",
@@ -6614,22 +6675,22 @@ function cu() {
6614
6675
  },
6615
6676
  tabIndex: 0,
6616
6677
  onClick: (e) => {
6617
- Yl(e.target) || u !== null && D(c, u);
6678
+ $l(e.target) || u !== null && O(c, u);
6618
6679
  },
6619
6680
  onKeyDown: (e) => {
6620
- (e.key === "Enter" || e.key === " ") && u !== null && !Yl(e.target) && (D(c, u), e.preventDefault());
6681
+ (e.key === "Enter" || e.key === " ") && u !== null && !$l(e.target) && (O(c, u), e.preventDefault());
6621
6682
  },
6622
6683
  children: [
6623
- /* @__PURE__ */ B("div", {
6684
+ /* @__PURE__ */ V("div", {
6624
6685
  className: "mention-hover-card__name d-inline-flex align-items-center gap-2",
6625
6686
  children: [
6626
- /* @__PURE__ */ z("i", {
6687
+ /* @__PURE__ */ B("i", {
6627
6688
  className: Fc(c.type),
6628
6689
  "aria-hidden": "true"
6629
6690
  }),
6630
- /* @__PURE__ */ B("span", {
6691
+ /* @__PURE__ */ V("span", {
6631
6692
  className: "mention-hover-card__name-text",
6632
- children: [c.name, ca(c) === null ? null : /* @__PURE__ */ B("span", {
6693
+ children: [c.name, ca(c) === null ? null : /* @__PURE__ */ V("span", {
6633
6694
  className: "mention-hover-card__kjv-name",
6634
6695
  children: [
6635
6696
  " ",
@@ -6639,37 +6700,37 @@ function cu() {
6639
6700
  ]
6640
6701
  })]
6641
6702
  }),
6642
- /* @__PURE__ */ z("button", {
6703
+ /* @__PURE__ */ B("button", {
6643
6704
  "aria-label": "Copy mentioned person name",
6644
6705
  className: "mention-hover-card__copy",
6645
6706
  title: "Copy name",
6646
6707
  type: "button",
6647
6708
  onClick: (e) => {
6648
- e.preventDefault(), e.stopPropagation(), Fl(c.name);
6709
+ e.preventDefault(), e.stopPropagation(), zl(c.name);
6649
6710
  },
6650
- children: /* @__PURE__ */ z("i", {
6711
+ children: /* @__PURE__ */ B("i", {
6651
6712
  className: "bi bi-copy",
6652
6713
  "aria-hidden": "true"
6653
6714
  })
6654
6715
  })
6655
6716
  ]
6656
6717
  }),
6657
- c.title ? /* @__PURE__ */ z("div", {
6718
+ c.title ? /* @__PURE__ */ B("div", {
6658
6719
  className: "mention-hover-card__title",
6659
- children: /* @__PURE__ */ z(No, { value: c.title })
6720
+ children: /* @__PURE__ */ B(No, { value: c.title })
6660
6721
  }) : null,
6661
- /* @__PURE__ */ z(ql, {
6722
+ /* @__PURE__ */ B(Zl, {
6662
6723
  includeTitle: !1,
6663
6724
  mentionPerson: c
6664
6725
  }),
6665
- /* @__PURE__ */ z(Jl, {
6726
+ /* @__PURE__ */ B(Ql, {
6666
6727
  includeTitle: !1,
6667
6728
  mentionPerson: c,
6668
- onOpenPersonReference: D
6729
+ onOpenPersonReference: O
6669
6730
  })
6670
6731
  ]
6671
6732
  }), document.body) : null,
6672
- m.map((e) => /* @__PURE__ */ z(Rc, {
6733
+ m.map((e) => /* @__PURE__ */ B(Rc, {
6673
6734
  anchorElement: e.anchorElement,
6674
6735
  copyLabel: "Copy mentioned person details",
6675
6736
  iconClassName: Fc(e.type),
@@ -6677,9 +6738,9 @@ function cu() {
6677
6738
  panelKind: "mentioned person",
6678
6739
  position: e.position,
6679
6740
  textStyle: r,
6680
- title: /* @__PURE__ */ B(zn, { children: [/* @__PURE__ */ z(ql, { mentionPerson: e }), /* @__PURE__ */ z(Jl, {
6741
+ title: /* @__PURE__ */ V(Rn, { children: [/* @__PURE__ */ B(Zl, { mentionPerson: e }), /* @__PURE__ */ B(Ql, {
6681
6742
  mentionPerson: e,
6682
- onOpenPersonReference: D
6743
+ onOpenPersonReference: O
6683
6744
  })] }),
6684
6745
  zIndex: e.zIndex,
6685
6746
  onCopy: async () => {
@@ -6687,30 +6748,30 @@ function cu() {
6687
6748
  return Wo(n, r);
6688
6749
  },
6689
6750
  onBringToFront: () => {
6690
- O(e.panelKey);
6751
+ ne(e.panelKey);
6691
6752
  },
6692
6753
  onClose: () => {
6693
- ee(e.panelKey);
6754
+ te(e.panelKey);
6694
6755
  },
6695
6756
  onPositionChange: (t) => {
6696
- te(e.panelKey, t);
6757
+ k(e.panelKey, t);
6697
6758
  }
6698
6759
  }, e.panelKey))
6699
6760
  ] });
6700
6761
  }
6701
6762
  //#endregion
6702
6763
  //#region node_modules/@lexical/devtools-core/dist/LexicalDevtoolsCore.prod.mjs
6703
- var lu = Object.freeze({
6764
+ var pu = Object.freeze({
6704
6765
  " ": "\\t",
6705
6766
  "\n": "\\n"
6706
- }), uu = new RegExp(Object.keys(lu).join("|"), "g"), $ = Object.freeze({
6767
+ }), mu = new RegExp(Object.keys(pu).join("|"), "g"), $ = Object.freeze({
6707
6768
  ancestorHasNextSibling: "|",
6708
6769
  ancestorIsLastChild: " ",
6709
6770
  hasNextSibling: "├",
6710
6771
  isLastChild: "└",
6711
6772
  selectedChar: "^",
6712
6773
  selectedLine: ">"
6713
- }), du = [
6774
+ }), hu = [
6714
6775
  (e) => e.hasFormat("bold") && "Bold",
6715
6776
  (e) => e.hasFormat("code") && "Code",
6716
6777
  (e) => e.hasFormat("italic") && "Italic",
@@ -6719,7 +6780,7 @@ var lu = Object.freeze({
6719
6780
  (e) => e.hasFormat("superscript") && "Superscript",
6720
6781
  (e) => e.hasFormat("underline") && "Underline",
6721
6782
  (e) => e.hasFormat("highlight") && "Highlight"
6722
- ], fu = [
6783
+ ], gu = [
6723
6784
  (e) => e.hasTextFormat("bold") && "Bold",
6724
6785
  (e) => e.hasTextFormat("code") && "Code",
6725
6786
  (e) => e.hasTextFormat("italic") && "Italic",
@@ -6728,45 +6789,45 @@ var lu = Object.freeze({
6728
6789
  (e) => e.hasTextFormat("superscript") && "Superscript",
6729
6790
  (e) => e.hasTextFormat("underline") && "Underline",
6730
6791
  (e) => e.hasTextFormat("highlight") && "Highlight"
6731
- ], pu = [(e) => e.isDirectionless() && "Directionless", (e) => e.isUnmergeable() && "Unmergeable"], mu = [(e) => e.isToken() && "Token", (e) => e.isSegmented() && "Segmented"];
6732
- function hu(t, n, r, i, a = !1) {
6792
+ ], _u = [(e) => e.isDirectionless() && "Directionless", (e) => e.isUnmergeable() && "Unmergeable"], vu = [(e) => e.isToken() && "Token", (e) => e.isSegmented() && "Segmented"];
6793
+ function yu(t, n, r, i, a = !1) {
6733
6794
  let o = t.getEditorState(), s = t._config, c = t._compositionKey, l = t._editable;
6734
6795
  if (r) {
6735
6796
  let e = "";
6736
6797
  return o.read(() => {
6737
6798
  e = function(e) {
6738
6799
  let t = document.createElement("div");
6739
- return t.innerHTML = e.trim(), Tu(t, 0).innerHTML;
6740
- }(On(t));
6800
+ return t.innerHTML = e.trim(), ku(t, 0).innerHTML;
6801
+ }(Dn(t));
6741
6802
  }, { editor: t }), e;
6742
6803
  }
6743
6804
  let u = " root\n", f = o.read(() => {
6744
- let t = N();
6745
- return gu(d(), (n, r, o) => {
6805
+ let t = P();
6806
+ return bu(d(), (n, r, o) => {
6746
6807
  let s = `(${n.getKey()})`, c = n.getType() || "", l = n.isSelected(), d = o === void 0 ? "" : `[slot: ${o}] `, f = function(t, n) {
6747
- return n === void 0 ? "" : P(t) && t.isShadowRoot() ? " [shadow-root]" : e(t) && !t.isInline() ? " [atomic decorator]" : "";
6808
+ return n === void 0 ? "" : F(t) && t.isShadowRoot() ? " [shadow-root]" : e(t) && !t.isInline() ? " [atomic decorator]" : "";
6748
6809
  }(n, o);
6749
6810
  u += `${l ? $.selectedLine : " "} ${r.join(" ")} ${s} ${d}${c}${f} ${function(e, t, n = !1) {
6750
6811
  let r = t ? t(e, n) : void 0;
6751
6812
  if (r !== void 0 && r.length > 0) return r;
6752
6813
  if (O(e)) {
6753
- let t = e.getTextContent(), r = t.length === 0 ? "(empty)" : `"${_u(t, n)}"`, i = function(e) {
6814
+ let t = e.getTextContent(), r = t.length === 0 ? "(empty)" : `"${xu(t, n)}"`, i = function(e) {
6754
6815
  return [
6755
- bu(e),
6756
- vu(e),
6757
- yu(e),
6758
- wu(e)
6816
+ wu(e),
6817
+ Su(e),
6818
+ Cu(e),
6819
+ Ou(e)
6759
6820
  ].filter(Boolean).join(", ");
6760
6821
  }(e);
6761
6822
  return [r, i.length === 0 ? null : `{ ${i} }`].filter(Boolean).join(" ").trim();
6762
6823
  }
6763
6824
  if (Z(e)) {
6764
- let t = e.getURL(), r = t.length === 0 ? "(empty)" : `"${_u(t, n)}"`, i = function(e) {
6825
+ let t = e.getURL(), r = t.length === 0 ? "(empty)" : `"${xu(t, n)}"`, i = function(e) {
6765
6826
  return [
6766
- xu(e),
6767
- Su(e),
6768
- Cu(e),
6769
- wu(e)
6827
+ Tu(e),
6828
+ Eu(e),
6829
+ Du(e),
6830
+ Ou(e)
6770
6831
  ].filter(Boolean).join(", ");
6771
6832
  }(e);
6772
6833
  return [r, i.length === 0 ? null : `{ ${i} }`].filter(Boolean).join(" ").trim();
@@ -6774,14 +6835,14 @@ function hu(t, n, r, i, a = !1) {
6774
6835
  if (qs(e)) return `ids: [ ${e.getIDs().join(", ")} ]`;
6775
6836
  if (ot(e)) {
6776
6837
  let t = function(e) {
6777
- let t = fu.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6838
+ let t = gu.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6778
6839
  return t !== "" && (t = "format: " + t), t;
6779
6840
  }(e), n = t === "" ? "" : `{ ${t} }`;
6780
6841
  return n += e.__style ? `(${e.__style})` : "", n;
6781
6842
  }
6782
6843
  return "";
6783
6844
  }(n, i, a)}\n`, u += function({ indent: e, isSelected: t, node: n, nodeKeyDisplay: r, selection: i, typeDisplay: a }) {
6784
- if (!O(n) || !j(i) || !t || P(n)) return "";
6845
+ if (!O(n) || !j(i) || !t || F(n)) return "";
6785
6846
  let o = i.anchor, s = i.focus;
6786
6847
  if (n.getTextContent() === "" || o.getNode() === i.focus.getNode() && o.offset === s.offset) return "";
6787
6848
  let [c, l] = function(e, t) {
@@ -6792,7 +6853,7 @@ function hu(t, n, r, i, a = !1) {
6792
6853
  let t = r.getNode(), n = i.getNode();
6793
6854
  t === n && e === t && r.offset !== i.offset ? [s, c] = r.offset < i.offset ? [r.offset, i.offset] : [i.offset, r.offset] : [s, c] = e === t ? t.isBefore(n) ? [r.offset, o] : [0, r.offset] : e === n ? n.isBefore(t) ? [i.offset, o] : [0, i.offset] : [0, o];
6794
6855
  }
6795
- let l = (a.slice(0, s).match(uu) || []).length, u = (a.slice(s, c).match(uu) || []).length;
6856
+ let l = (a.slice(0, s).match(mu) || []).length, u = (a.slice(s, c).match(mu) || []).length;
6796
6857
  return [s + l, c + l + u];
6797
6858
  }(n, i);
6798
6859
  if (c === l) return "";
@@ -6815,18 +6876,18 @@ function hu(t, n, r, i, a = !1) {
6815
6876
  typeDisplay: c
6816
6877
  });
6817
6878
  }), t === null ? ": null" : j(t) ? function(e) {
6818
- let t = "", n = bu(e), r = function(e) {
6879
+ let t = "", n = wu(e), r = function(e) {
6819
6880
  let t = e;
6820
6881
  for (; t !== null;) {
6821
- let e = Mt(t);
6882
+ let e = jt(t);
6822
6883
  if (e !== null) {
6823
- let n = Vt(t);
6884
+ let n = Bt(t);
6824
6885
  if (n !== null) return {
6825
6886
  host: n,
6826
6887
  name: e
6827
6888
  };
6828
6889
  }
6829
- t = t.getParent() ?? Vt(t);
6890
+ t = t.getParent() ?? Bt(t);
6830
6891
  }
6831
6892
  return null;
6832
6893
  }(e.anchor.getNode()), i = r === null ? "" : ` (in slot "${r.name}" of ${r.host.getType()} { key: ${r.host.getKey()} })`;
@@ -6844,51 +6905,51 @@ function hu(t, n, r, i, a = !1) {
6844
6905
  let { version: p } = t.constructor;
6845
6906
  return u += `\n\n editor${p ? ` (v${p})` : ""}:`, u += `\n \u2514 namespace ${s.namespace}`, c !== null && (u += `\n \u2514 compositionKey ${c}`), u += `\n \u2514 editable ${String(l)}`, u;
6846
6907
  }
6847
- function gu(t, n, r = []) {
6908
+ function bu(t, n, r = []) {
6848
6909
  let i = [];
6849
- for (let e of yt(t)) {
6910
+ for (let e of vt(t)) {
6850
6911
  let n = ut(t, e);
6851
6912
  n !== null && i.push([e, n]);
6852
6913
  }
6853
- let a = P(t) ? t.getChildren() : [], o = i.length + a.length, s = 0;
6914
+ let a = F(t) ? t.getChildren() : [], o = i.length + a.length, s = 0;
6854
6915
  for (let [t, a] of i) {
6855
6916
  let i = s === o - 1;
6856
- n(a, r.concat(i ? $.isLastChild : $.hasNextSibling), t), (P(a) || e(a)) && gu(a, n, r.concat(i ? $.ancestorIsLastChild : $.ancestorHasNextSibling)), s++;
6917
+ n(a, r.concat(i ? $.isLastChild : $.hasNextSibling), t), (F(a) || e(a)) && bu(a, n, r.concat(i ? $.ancestorIsLastChild : $.ancestorHasNextSibling)), s++;
6857
6918
  }
6858
6919
  for (let t of a) {
6859
6920
  let i = s === o - 1;
6860
- n(t, r.concat(i ? $.isLastChild : $.hasNextSibling)), (P(t) || e(t)) && gu(t, n, r.concat(i ? $.ancestorIsLastChild : $.ancestorHasNextSibling)), s++;
6921
+ n(t, r.concat(i ? $.isLastChild : $.hasNextSibling)), (F(t) || e(t)) && bu(t, n, r.concat(i ? $.ancestorIsLastChild : $.ancestorHasNextSibling)), s++;
6861
6922
  }
6862
6923
  }
6863
- function _u(e, t = !1) {
6864
- let n = Object.entries(lu).reduce((e, [t, n]) => e.replace(new RegExp(t, "g"), String(n)), e);
6924
+ function xu(e, t = !1) {
6925
+ let n = Object.entries(pu).reduce((e, [t, n]) => e.replace(new RegExp(t, "g"), String(n)), e);
6865
6926
  return t ? n.replace(/[^\s]/g, "*") : n;
6866
6927
  }
6867
- function vu(e) {
6868
- let t = pu.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6928
+ function Su(e) {
6929
+ let t = _u.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6869
6930
  return t !== "" && (t = "detail: " + t), t;
6870
6931
  }
6871
- function yu(e) {
6872
- let t = mu.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6932
+ function Cu(e) {
6933
+ let t = vu.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6873
6934
  return t !== "" && (t = "mode: " + t), t;
6874
6935
  }
6875
- function bu(e) {
6876
- let t = du.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6936
+ function wu(e) {
6937
+ let t = hu.map((t) => t(e)).filter(Boolean).join(", ").toLocaleLowerCase();
6877
6938
  return t !== "" && (t = "format: " + t), t;
6878
6939
  }
6879
- function xu(e) {
6940
+ function Tu(e) {
6880
6941
  let t = e.getTarget();
6881
6942
  return t != null && (t = "target: " + t), t;
6882
6943
  }
6883
- function Su(e) {
6944
+ function Eu(e) {
6884
6945
  let t = e.getRel();
6885
6946
  return t != null && (t = "rel: " + t), t;
6886
6947
  }
6887
- function Cu(e) {
6948
+ function Du(e) {
6888
6949
  let t = e.getTitle();
6889
6950
  return t != null && (t = "title: " + t), t;
6890
6951
  }
6891
- function wu(e) {
6952
+ function Ou(e) {
6892
6953
  if (!e.__state) return !1;
6893
6954
  let t = [];
6894
6955
  for (let [n, r] of e.__state.knownState.entries()) {
@@ -6899,13 +6960,13 @@ function wu(e) {
6899
6960
  let n = t.join(",");
6900
6961
  return n !== "" && (n = "state: " + n), n;
6901
6962
  }
6902
- function Tu(e, t) {
6963
+ function ku(e, t) {
6903
6964
  let n = Array(1 + t++).join(" "), r = Array(t - 1).join(" "), i;
6904
- for (let a = 0; a < e.children.length; a++) i = document.createTextNode("\n" + n), e.insertBefore(i, e.children[a]), Tu(e.children[a], t), e.lastElementChild === e.children[a] && (i = document.createTextNode("\n" + r), e.appendChild(i));
6965
+ for (let a = 0; a < e.children.length; a++) i = document.createTextNode("\n" + n), e.insertBefore(i, e.children[a]), ku(e.children[a], t), e.lastElementChild === e.children[a] && (i = document.createTextNode("\n" + r), e.appendChild(i));
6905
6966
  return e;
6906
6967
  }
6907
- var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButtonClassName: t, timeTravelPanelSliderClassName: n, timeTravelPanelButtonClassName: r, viewClassName: i, timeTravelPanelClassName: a, editorState: o, setEditorState: s, setEditorReadOnly: c, generateContent: l, commandsLog: u = [] }, d) {
6908
- let [f, p] = R([]), [m, h] = R(""), [g, _] = R(!1), [v, y] = R(!1), b = L(0), x = L(null), [S, C] = R(!1), [w, T] = R(!1), [E, D] = R(!1), ee = L(null), O = L([]), te = L(0), ne = F((e) => {
6968
+ var Au = /*#__PURE__*/ Nn(function({ treeTypeButtonClassName: e, timeTravelButtonClassName: t, timeTravelPanelSliderClassName: n, timeTravelPanelButtonClassName: r, viewClassName: i, timeTravelPanelClassName: a, editorState: o, setEditorState: s, setEditorReadOnly: c, generateContent: l, commandsLog: u = [] }, d) {
6969
+ let [f, p] = z([]), [m, h] = z(""), [g, _] = z(!1), [v, y] = z(!1), b = R(0), x = R(null), [S, ee] = z(!1), [C, w] = z(!1), [T, E] = z(!1), D = R(null), O = R([]), te = R(0), ne = I((e) => {
6909
6970
  let t = ++te.current;
6910
6971
  l(e).then((e) => {
6911
6972
  t === te.current && h(e);
@@ -6913,25 +6974,25 @@ var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButto
6913
6974
  t === te.current && h(`Error rendering tree: ${e.message}\n\nStack:\n${e.stack}`);
6914
6975
  });
6915
6976
  }, [l]);
6916
- I(() => {
6917
- if (!(!E && o._nodeMap.size > 1e3 && (T(!0), !E)) && (ee.current !== o || O.current !== u)) {
6918
- let e = ee.current !== o;
6919
- ee.current = o, O.current = u, ne(v), !g && e && p((e) => [...e, [Date.now(), o]]);
6977
+ L(() => {
6978
+ if (!(!T && o._nodeMap.size > 1e3 && (w(!0), !T)) && (D.current !== o || O.current !== u)) {
6979
+ let e = D.current !== o;
6980
+ D.current = o, O.current = u, ne(v), !g && e && p((e) => [...e, [Date.now(), o]]);
6920
6981
  }
6921
6982
  }, [
6922
6983
  o,
6923
6984
  ne,
6924
6985
  v,
6925
- E,
6986
+ T,
6926
6987
  g,
6927
6988
  u
6928
6989
  ]);
6929
6990
  let k = f.length;
6930
- return I(() => {
6991
+ return L(() => {
6931
6992
  if (S) {
6932
6993
  let e, t = () => {
6933
6994
  let n = b.current;
6934
- if (n === k - 1) return void C(!1);
6995
+ if (n === k - 1) return void ee(!1);
6935
6996
  let r = f[n][0], i = f[n + 1][0];
6936
6997
  e = setTimeout(() => {
6937
6998
  b.current++;
@@ -6948,17 +7009,17 @@ var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButto
6948
7009
  S,
6949
7010
  k,
6950
7011
  s
6951
- ]), B("div", {
7012
+ ]), V("div", {
6952
7013
  className: i,
6953
7014
  children: [
6954
- !E && w ? /*#__PURE__*/ B("div", {
7015
+ !T && C ? /*#__PURE__*/ V("div", {
6955
7016
  style: { padding: 20 },
6956
- children: [/*#__PURE__*/ z("span", {
7017
+ children: [/*#__PURE__*/ B("span", {
6957
7018
  style: { marginRight: 20 },
6958
7019
  children: "Detected large EditorState, this can impact debugging performance."
6959
- }), /*#__PURE__*/ z("button", {
7020
+ }), /*#__PURE__*/ B("button", {
6960
7021
  onClick: () => {
6961
- D(!0);
7022
+ E(!0);
6962
7023
  },
6963
7024
  style: {
6964
7025
  background: "transparent",
@@ -6970,13 +7031,13 @@ var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButto
6970
7031
  children: "Show full tree"
6971
7032
  })]
6972
7033
  }) : null,
6973
- E ? null : /*#__PURE__*/ z("button", {
7034
+ T ? null : /*#__PURE__*/ B("button", {
6974
7035
  onClick: () => (ne(!v), void y(!v)),
6975
7036
  className: e,
6976
7037
  type: "button",
6977
7038
  children: v ? "Tree" : "Export DOM"
6978
7039
  }),
6979
- !g && (E || !w) && k > 2 && /*#__PURE__*/ z("button", {
7040
+ !g && (T || !C) && k > 2 && /*#__PURE__*/ B("button", {
6980
7041
  onClick: () => {
6981
7042
  c(!0), b.current = k - 1, _(!0);
6982
7043
  },
@@ -6984,22 +7045,22 @@ var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButto
6984
7045
  type: "button",
6985
7046
  children: "Time Travel"
6986
7047
  }),
6987
- (E || !w) && /*#__PURE__*/ z("pre", {
7048
+ (T || !C) && /*#__PURE__*/ B("pre", {
6988
7049
  ref: d,
6989
7050
  children: m
6990
7051
  }),
6991
- g && (E || !w) && /*#__PURE__*/ B("div", {
7052
+ g && (T || !C) && /*#__PURE__*/ V("div", {
6992
7053
  className: a,
6993
7054
  children: [
6994
- /*#__PURE__*/ z("button", {
7055
+ /*#__PURE__*/ B("button", {
6995
7056
  className: r,
6996
7057
  onClick: () => {
6997
- b.current === k - 1 && (b.current = 1), C(!S);
7058
+ b.current === k - 1 && (b.current = 1), ee(!S);
6998
7059
  },
6999
7060
  type: "button",
7000
7061
  children: S ? "Pause" : "Play"
7001
7062
  }),
7002
- /*#__PURE__*/ z("input", {
7063
+ /*#__PURE__*/ B("input", {
7003
7064
  className: n,
7004
7065
  ref: x,
7005
7066
  onChange: (e) => {
@@ -7010,14 +7071,14 @@ var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButto
7010
7071
  min: "1",
7011
7072
  max: k - 1
7012
7073
  }),
7013
- /*#__PURE__*/ z("button", {
7074
+ /*#__PURE__*/ B("button", {
7014
7075
  className: r,
7015
7076
  onClick: () => {
7016
7077
  c(!1);
7017
7078
  let e = f.length - 1, t = f[e];
7018
7079
  s(t[1]);
7019
7080
  let n = x.current;
7020
- n !== null && (n.value = String(e)), _(!1), C(!1);
7081
+ n !== null && (n.value = String(e)), _(!1), ee(!1);
7021
7082
  },
7022
7083
  type: "button",
7023
7084
  children: "Exit"
@@ -7027,7 +7088,7 @@ var Eu = /*#__PURE__*/ Pn(function({ treeTypeButtonClassName: e, timeTravelButto
7027
7088
  ]
7028
7089
  });
7029
7090
  });
7030
- function Du(e, t) {
7091
+ function ju(e, t) {
7031
7092
  let n = [], r = 0;
7032
7093
  for (let i of e._commands.keys()) n.push(e.registerCommand(i, (e) => {
7033
7094
  r += 1;
@@ -7040,24 +7101,24 @@ function Du(e, t) {
7040
7101
  }, 4));
7041
7102
  return () => n.forEach((e) => e());
7042
7103
  }
7043
- function Ou(e) {
7044
- let [t, n] = R([]);
7045
- return I(() => Du(e, n), [e]), t;
7104
+ function Mu(e) {
7105
+ let [t, n] = z([]);
7106
+ return L(() => ju(e, n), [e]), t;
7046
7107
  }
7047
7108
  //#endregion
7048
7109
  //#region node_modules/@lexical/react/dist/LexicalTreeView.prod.mjs
7049
- function ku({ treeTypeButtonClassName: e, timeTravelButtonClassName: t, timeTravelPanelSliderClassName: n, timeTravelPanelButtonClassName: r, timeTravelPanelClassName: i, viewClassName: a, editor: o, customPrintNode: s }) {
7050
- let c = /*#__PURE__*/ jn.createRef(), [l, u] = R(o.getEditorState()), d = Ou(o);
7051
- return I(() => Ae(o.registerUpdateListener(({ editorState: e }) => {
7110
+ function Nu({ treeTypeButtonClassName: e, timeTravelButtonClassName: t, timeTravelPanelSliderClassName: n, timeTravelPanelButtonClassName: r, timeTravelPanelClassName: i, viewClassName: a, editor: o, customPrintNode: s }) {
7111
+ let c = /*#__PURE__*/ An.createRef(), [l, u] = z(o.getEditorState()), d = Mu(o);
7112
+ return L(() => Ae(o.registerUpdateListener(({ editorState: e }) => {
7052
7113
  u(e);
7053
7114
  }), o.registerEditableListener(() => {
7054
7115
  u(o.getEditorState());
7055
- })), [o]), I(() => {
7116
+ })), [o]), L(() => {
7056
7117
  let e = c.current;
7057
7118
  if (e !== null) return e.__lexicalEditor = o, () => {
7058
7119
  e.__lexicalEditor = null;
7059
7120
  };
7060
- }, [o, c]), z(Eu, {
7121
+ }, [o, c]), B(Au, {
7061
7122
  treeTypeButtonClassName: e,
7062
7123
  timeTravelButtonClassName: t,
7063
7124
  timeTravelPanelSliderClassName: n,
@@ -7071,7 +7132,7 @@ function ku({ treeTypeButtonClassName: e, timeTravelButtonClassName: t, timeTrav
7071
7132
  editorState: l,
7072
7133
  setEditorState: (e) => o.setEditorState(e),
7073
7134
  generateContent: async function(e) {
7074
- return hu(o, d, e, s);
7135
+ return yu(o, d, e, s);
7075
7136
  },
7076
7137
  ref: c,
7077
7138
  commandsLog: d
@@ -7079,9 +7140,9 @@ function ku({ treeTypeButtonClassName: e, timeTravelButtonClassName: t, timeTrav
7079
7140
  }
7080
7141
  //#endregion
7081
7142
  //#region src/plugins/TreeViewPlugin/index.tsx
7082
- function Au() {
7083
- let [e] = _t();
7084
- return /* @__PURE__ */ z(ku, {
7143
+ function Pu() {
7144
+ let [e] = M();
7145
+ return /* @__PURE__ */ B(Nu, {
7085
7146
  viewClassName: "tree-view-output",
7086
7147
  treeTypeButtonClassName: "debug-treetype-button",
7087
7148
  timeTravelPanelClassName: "debug-timetravel-panel",
@@ -7092,4 +7153,4 @@ function Au() {
7092
7153
  });
7093
7154
  }
7094
7155
  //#endregion
7095
- export { $a as $, Kn as $t, ys as A, Hi as At, $o as B, Sr as Bt, Vs as C, Bi as Ct, Ls as D, Vi as Dt, zs as E, Rr as Et, ms as F, G as Ft, To as G, H as Gt, Go as H, V as Ht, es as I, ri as It, mo as J, vr as Jt, So as K, J as Kt, Wo as L, $i as Lt, is as M, Zi as Mt, os as N, _r as Nt, Os as O, Er as Ot, hs as P, br as Pt, Ra as Q, er as Qt, Ho as R, U as Rt, Xs as S, Ar as St, Is as T, Br as Tt, ko as U, Y as Ut, Vo as V, Gi as Vt, Do as W, mr as Wt, Z as X, pi as Xt, Ua as Y, mi as Yt, Wa as Z, Or as Zt, qs as _, aa as _t, Fc as a, Pa as at, Ks as b, wr as bt, Oc as c, Oa as ct, Sc as d, sa as dt, qn as en, Q as et, _c as f, _a as ft, cc as g, ia as gt, Qs as h, va as ht, Rc as i, Wn as in, Ia as it, _s as j, Tr as jt, Ds as k, q as kt, xc as l, fa as lt, lc as m, ga as mt, cu as n, Jn as nn, Ka as nt, Nc as o, Fa as ot, gc as p, ya as pt, bo as q, Qi as qt, wl as r, $n as rn, Na as rt, jc as s, ka as st, Au as t, Yn as tn, Qa as tt, Cc as u, ca as ut, Gs as v, ta as vt, Rs as w, Ir as wt, Js as x, Nr as xt, Ys as y, na as yt, ts as z, Mr as zt };
7156
+ export { $a as $, Gn as $t, ys as A, Hi as At, $o as B, Sr as Bt, Vs as C, Bi as Ct, Ls as D, Vi as Dt, zs as E, Rr as Et, ms as F, G as Ft, To as G, gr as Gt, Go as H, H as Ht, es as I, ri as It, mo as J, vr as Jt, So as K, J as Kt, Wo as L, $i as Lt, is as M, Zi as Mt, os as N, _r as Nt, Os as O, Er as Ot, hs as P, br as Pt, Ra as Q, $n as Qt, Ho as R, U as Rt, Xs as S, Ar as St, Is as T, Br as Tt, ko as U, Y as Ut, Vo as V, Gi as Vt, Do as W, pr as Wt, Z as X, pi as Xt, Ua as Y, mi as Yt, Wa as Z, Or as Zt, qs as _, aa as _t, Fc as a, Pa as at, Ks as b, wr as bt, Oc as c, Oa as ct, Sc as d, sa as dt, Kn as en, Q as et, _c as f, _a as ft, cc as g, ia as gt, Qs as h, va as ht, Rc as i, Un as in, Ia as it, _s as j, Tr as jt, Ds as k, q as kt, xc as l, fa as lt, lc as m, ga as mt, fu as n, qn as nn, Ka as nt, Nc as o, Fa as ot, gc as p, ya as pt, bo as q, Qi as qt, Ol as r, Qn as rn, Na as rt, jc as s, ka as st, Pu as t, Jn as tn, Qa as tt, Cc as u, ca as ut, Gs as v, ta as vt, Rs as w, Ir as wt, Js as x, Nr as xt, Ys as y, na as yt, ts as z, Mr as zt };