@oneclick.dev/cms-core-modules 0.0.94 → 0.0.96

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.
@@ -1,7 +1,7 @@
1
- import { defineComponent as ne, inject as se, ref as C, openBlock as D, createElementBlock as B, unref as w, Fragment as ae, createElementVNode as y, createTextVNode as $, toDisplayString as Q, createCommentVNode as P, resolveComponent as N, withDirectives as yi, withKeys as zt, isRef as $t, vModelText as ar, createBlock as z, withCtx as v, createVNode as p, normalizeClass as ie, reactive as qi, watch as Ze, renderList as he, shallowRef as hc, onMounted as we, onBeforeUnmount as Bt, h as oi, getCurrentInstance as mc, watchEffect as Fc, nextTick as at, markRaw as rf, provide as ce, customRef as pc, render as lu, toRaw as St, computed as ue, toValue as bc, toRef as ft, normalizeStyle as ge, renderSlot as ia, normalizeProps as gt, mergeProps as Ft, resolveDynamicComponent as ka, withModifiers as ct, guardReactiveProps as sf, vModelCheckbox as yc, vShow as kc, onUnmounted as wc, createStaticVNode as Dc, onActivated as vc, KeepAlive as xc } from "vue";
1
+ import { defineComponent as ne, inject as se, ref as C, openBlock as D, createElementBlock as B, unref as w, Fragment as ae, createElementVNode as y, createTextVNode as $, toDisplayString as Q, createCommentVNode as P, resolveComponent as N, withDirectives as yi, withKeys as zt, isRef as $t, vModelText as ir, createBlock as z, withCtx as v, createVNode as p, normalizeClass as ie, reactive as qi, watch as Ze, renderList as he, shallowRef as hc, onMounted as we, onBeforeUnmount as Bt, h as oi, getCurrentInstance as mc, watchEffect as Fc, nextTick as at, markRaw as rf, provide as ce, customRef as pc, render as lu, toRaw as St, computed as ue, toValue as bc, toRef as ft, normalizeStyle as ge, renderSlot as ia, normalizeProps as gt, mergeProps as Ft, resolveDynamicComponent as ka, withModifiers as ct, guardReactiveProps as sf, vModelCheckbox as yc, vShow as kc, onUnmounted as wc, createStaticVNode as Dc, onActivated as vc, KeepAlive as xc } from "vue";
2
2
  import { useModulePermissions as Xs, useConfirmation as Qs, useModule as Zs, useFirebaseIntegration as lf, useModuleStorage as Ec, useModuleRoute as Cc, useModuleBreadcrumbs as Bc } from "@oneclick.dev/cms-kit";
3
3
  import { i as un } from "./interpolation-BBwG_ON6.mjs";
4
- import { Link as uf, Loader2 as Dr, ChevronDown as Kn, CloudUpload as Sc, Archive as jc, Plus as oo, Braces as qc, ArrowUp as Ac, ArrowDown as Mc, Cog as Tc, List as Nc, ListOrdered as Oc, MousePointerClick as Lc, CornerDownLeft as Ic, Pilcrow as uu, icons as du, Heading1 as df, Columns3 as Pc, Rows3 as zc, LayoutPanelTop as Rc, Square as $c, Minus as Hc, Maximize as Vc, ListCollapse as Wc, Image as Uc, Clapperboard as Kc, Smile as Jc, MapPin as Gc, ExternalLink as ff, SwatchBook as Yc, Copy as ns, Trash2 as gf, RotateCcw as _f, ImageIcon as Xc, VideoIcon as Qc, ArrowLeft as cf, Unlink as Zc, Check as eh, ChevronsUpDownIcon as hf, CheckIcon as mf, X as Ff, Zap as th, Bold as ah, Italic as ih, Underline as nh, Strikethrough as oh, AlignStartVertical as qa, AlignCenterVertical as Aa, AlignEndVertical as Ma, MoveRight as rh, MoveDown as sh, AlignHorizontalSpaceBetween as lh, AlignStartHorizontal as uh, AlignCenterHorizontal as dh, AlignEndHorizontal as fh, ImagePlus as gh, ChevronRight as fu, SendToBack as _h, Globe as ch } from "lucide-vue-next";
4
+ import { Link as uf, Loader2 as vr, ChevronDown as Kn, CloudUpload as Sc, Archive as jc, Plus as oo, Braces as qc, ArrowUp as Ac, ArrowDown as Mc, Cog as Tc, List as Nc, ListOrdered as Oc, MousePointerClick as Lc, CornerDownLeft as Ic, Pilcrow as uu, icons as du, Heading1 as df, Columns3 as Pc, Rows3 as zc, LayoutPanelTop as Rc, Square as $c, Minus as Hc, Maximize as Vc, ListCollapse as Wc, Image as Uc, Clapperboard as Kc, Smile as Jc, MapPin as Gc, ExternalLink as ff, SwatchBook as Yc, Copy as ro, Trash2 as gf, RotateCcw as _f, ImageIcon as Xc, VideoIcon as Qc, ArrowLeft as cf, Unlink as Zc, Check as eh, ChevronsUpDownIcon as hf, CheckIcon as mf, X as Ff, Zap as th, Bold as ah, Italic as ih, Underline as nh, Strikethrough as oh, AlignStartVertical as qa, AlignCenterVertical as Aa, AlignEndVertical as Ma, MoveRight as rh, MoveDown as sh, AlignHorizontalSpaceBetween as lh, AlignStartHorizontal as uh, AlignCenterHorizontal as dh, AlignEndHorizontal as fh, ImagePlus as gh, ChevronRight as fu, SendToBack as _h, Globe as ch } from "lucide-vue-next";
5
5
  import { _ as De } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
6
6
  import { c as gu } from "./utils-BVKy9S2J.mjs";
7
7
  import { e as pf } from "./index-CrGjxSwa.mjs";
@@ -77,7 +77,7 @@ const mh = { class: "flex flex-wrap gap-1" }, Fh = {
77
77
  onKeydown: zt(d, ["esc"]),
78
78
  placeholder: "Please enter a title"
79
79
  }, null, 544), [
80
- [ar, w(l)]
80
+ [ir, w(l)]
81
81
  ])
82
82
  ]),
83
83
  y("div", null, [
@@ -154,7 +154,7 @@ const mh = { class: "flex flex-wrap gap-1" }, Fh = {
154
154
  }, {
155
155
  default: v(() => [
156
156
  w(s) ? (D(), B(ae, { key: 1 }, [
157
- p(w(Dr), { class: "size-4 animate-spin ml-2" }),
157
+ p(w(vr), { class: "size-4 animate-spin ml-2" }),
158
158
  g[22] || (g[22] = y("span", null, "Publishing...", -1))
159
159
  ], 64)) : (D(), B("span", Th, "Publish changes"))
160
160
  ]),
@@ -213,7 +213,7 @@ const mh = { class: "flex flex-wrap gap-1" }, Fh = {
213
213
  }, {
214
214
  default: v(() => [
215
215
  w(s) ? (D(), B(ae, { key: 1 }, [
216
- p(w(Dr), { class: "size-4 animate-spin ml-2" }),
216
+ p(w(vr), { class: "size-4 animate-spin ml-2" }),
217
217
  g[26] || (g[26] = y("span", null, "Unarchiving...", -1))
218
218
  ], 64)) : (D(), B("span", Nh, "Unarchive (to Drafts)"))
219
219
  ]),
@@ -272,7 +272,7 @@ const mh = { class: "flex flex-wrap gap-1" }, Fh = {
272
272
  }, {
273
273
  default: v(() => [
274
274
  w(s) ? (D(), B(ae, { key: 1 }, [
275
- p(w(Dr), { class: "size-4 animate-spin ml-2" }),
275
+ p(w(vr), { class: "size-4 animate-spin ml-2" }),
276
276
  g[30] || (g[30] = y("span", null, "Saving...", -1))
277
277
  ], 64)) : (D(), B("span", Oh, "Save draft"))
278
278
  ]),
@@ -1072,11 +1072,11 @@ let W = class Xe {
1072
1072
  }
1073
1073
  };
1074
1074
  W.empty = new W([], 0);
1075
- const vr = { index: 0, offset: 0 };
1075
+ const xr = { index: 0, offset: 0 };
1076
1076
  function Sn(a, e) {
1077
- return vr.index = a, vr.offset = e, vr;
1077
+ return xr.index = a, xr.offset = e, xr;
1078
1078
  }
1079
- function ro(a, e) {
1079
+ function so(a, e) {
1080
1080
  if (a === e)
1081
1081
  return !0;
1082
1082
  if (!(a && typeof a == "object") || !(e && typeof e == "object"))
@@ -1088,11 +1088,11 @@ function ro(a, e) {
1088
1088
  if (a.length != e.length)
1089
1089
  return !1;
1090
1090
  for (let i = 0; i < a.length; i++)
1091
- if (!ro(a[i], e[i]))
1091
+ if (!so(a[i], e[i]))
1092
1092
  return !1;
1093
1093
  } else {
1094
1094
  for (let i in a)
1095
- if (!(i in e) || !ro(a[i], e[i]))
1095
+ if (!(i in e) || !so(a[i], e[i]))
1096
1096
  return !1;
1097
1097
  for (let i in e)
1098
1098
  if (!(i in a))
@@ -1154,7 +1154,7 @@ let ke = class rs {
1154
1154
  another mark.
1155
1155
  */
1156
1156
  eq(e) {
1157
- return this == e || this.type == e.type && ro(this.attrs, e.attrs);
1157
+ return this == e || this.type == e.type && so(this.attrs, e.attrs);
1158
1158
  }
1159
1159
  /**
1160
1160
  Convert this mark to a JSON-serializeable representation.
@@ -1206,7 +1206,7 @@ let ke = class rs {
1206
1206
  }
1207
1207
  };
1208
1208
  ke.none = [];
1209
- let so = class extends Error {
1209
+ let lo = class extends Error {
1210
1210
  }, Y = class fi {
1211
1211
  /**
1212
1212
  Create a slice. When specifying a non-zero open depth, you must
@@ -1308,9 +1308,9 @@ function Df(a, e, t, i) {
1308
1308
  }
1309
1309
  function am(a, e, t) {
1310
1310
  if (t.openStart > a.depth)
1311
- throw new so("Inserted content deeper than insertion position");
1311
+ throw new lo("Inserted content deeper than insertion position");
1312
1312
  if (a.depth - t.openStart != e.depth - t.openEnd)
1313
- throw new so("Inconsistent open depths");
1313
+ throw new lo("Inconsistent open depths");
1314
1314
  return vf(a, e, t, 0);
1315
1315
  }
1316
1316
  function vf(a, e, t, i) {
@@ -1326,11 +1326,11 @@ function vf(a, e, t, i) {
1326
1326
  let { start: r, end: s } = im(t, a);
1327
1327
  return Ya(o, Ef(a, r, s, e, i));
1328
1328
  }
1329
- else return Ya(o, lo(a, e, i));
1329
+ else return Ya(o, uo(a, e, i));
1330
1330
  }
1331
1331
  function xf(a, e) {
1332
1332
  if (!e.type.compatibleContent(a.type))
1333
- throw new so("Cannot join " + e.type.name + " onto " + a.type.name);
1333
+ throw new lo("Cannot join " + e.type.name + " onto " + a.type.name);
1334
1334
  }
1335
1335
  function ss(a, e, t) {
1336
1336
  let i = a.node(t);
@@ -1352,13 +1352,13 @@ function Ya(a, e) {
1352
1352
  }
1353
1353
  function Ef(a, e, t, i, n) {
1354
1354
  let o = a.depth > n && ss(a, e, n + 1), r = i.depth > n && ss(t, i, n + 1), s = [];
1355
- return Ji(null, a, n, s), o && r && e.index(n) == t.index(n) ? (xf(o, r), Ga(Ya(o, Ef(a, e, t, i, n + 1)), s)) : (o && Ga(Ya(o, lo(a, e, n + 1)), s), Ji(e, t, n, s), r && Ga(Ya(r, lo(t, i, n + 1)), s)), Ji(i, null, n, s), new W(s);
1355
+ return Ji(null, a, n, s), o && r && e.index(n) == t.index(n) ? (xf(o, r), Ga(Ya(o, Ef(a, e, t, i, n + 1)), s)) : (o && Ga(Ya(o, uo(a, e, n + 1)), s), Ji(e, t, n, s), r && Ga(Ya(r, uo(t, i, n + 1)), s)), Ji(i, null, n, s), new W(s);
1356
1356
  }
1357
- function lo(a, e, t) {
1357
+ function uo(a, e, t) {
1358
1358
  let i = [];
1359
1359
  if (Ji(null, a, t, i), a.depth > t) {
1360
1360
  let n = ss(a, e, t + 1);
1361
- Ga(Ya(n, lo(a, e, t + 1)), i);
1361
+ Ga(Ya(n, uo(a, e, t + 1)), i);
1362
1362
  }
1363
1363
  return Ji(e, null, t, i), new W(i);
1364
1364
  }
@@ -1556,7 +1556,7 @@ class dn {
1556
1556
  return e.blockRange(this);
1557
1557
  for (let i = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); i >= 0; i--)
1558
1558
  if (e.pos <= this.end(i) && (!t || t(this.node(i))))
1559
- return new uo(this, e, i);
1559
+ return new fo(this, e, i);
1560
1560
  return null;
1561
1561
  }
1562
1562
  /**
@@ -1624,7 +1624,7 @@ class nm {
1624
1624
  }
1625
1625
  }
1626
1626
  const om = 12, _u = /* @__PURE__ */ new WeakMap();
1627
- class uo {
1627
+ class fo {
1628
1628
  /**
1629
1629
  Construct a node range. `$from` and `$to` should point into the
1630
1630
  same node until at least the given `depth`, since a node range
@@ -1783,7 +1783,7 @@ let Da = class ls {
1783
1783
  attributes, and marks.
1784
1784
  */
1785
1785
  hasMarkup(e, t, i) {
1786
- return this.type == e && ro(this.attrs, t || e.defaultAttrs || rm) && ke.sameSet(this.marks, i || ke.none);
1786
+ return this.type == e && so(this.attrs, t || e.defaultAttrs || rm) && ke.sameSet(this.marks, i || ke.none);
1787
1787
  }
1788
1788
  /**
1789
1789
  Create a new node with the same markup as this node, containing
@@ -2035,7 +2035,7 @@ let Da = class ls {
2035
2035
  }
2036
2036
  };
2037
2037
  Da.prototype.text = void 0;
2038
- class fo extends Da {
2038
+ class go extends Da {
2039
2039
  /**
2040
2040
  @internal
2041
2041
  */
@@ -2057,10 +2057,10 @@ class fo extends Da {
2057
2057
  return this.text.length;
2058
2058
  }
2059
2059
  mark(e) {
2060
- return e == this.marks ? this : new fo(this.type, this.attrs, this.text, e);
2060
+ return e == this.marks ? this : new go(this.type, this.attrs, this.text, e);
2061
2061
  }
2062
2062
  withText(e) {
2063
- return e == this.text ? this : new fo(this.type, this.attrs, e, this.marks);
2063
+ return e == this.text ? this : new go(this.type, this.attrs, e, this.marks);
2064
2064
  }
2065
2065
  cut(e = 0, t = this.text.length) {
2066
2066
  return e == 0 && t == this.text.length ? this : this.withText(this.text.slice(e, t));
@@ -2657,7 +2657,7 @@ class Fm {
2657
2657
  return !this.hasDefault;
2658
2658
  }
2659
2659
  }
2660
- class ir {
2660
+ class nr {
2661
2661
  /**
2662
2662
  @internal
2663
2663
  */
@@ -2679,7 +2679,7 @@ class ir {
2679
2679
  */
2680
2680
  static compile(e, t) {
2681
2681
  let i = /* @__PURE__ */ Object.create(null), n = 0;
2682
- return e.forEach((o, r) => i[o] = new ir(o, n++, t, r)), i;
2682
+ return e.forEach((o, r) => i[o] = new nr(o, n++, t, r)), i;
2683
2683
  }
2684
2684
  /**
2685
2685
  When there is a mark of this type in the given set, a new set
@@ -2721,7 +2721,7 @@ class Nf {
2721
2721
  let t = this.spec = {};
2722
2722
  for (let n in e)
2723
2723
  t[n] = e[n];
2724
- t.nodes = Pe.from(e.nodes), t.marks = Pe.from(e.marks || {}), this.nodes = mu.compile(this.spec.nodes, this), this.marks = ir.compile(this.spec.marks, this);
2724
+ t.nodes = Pe.from(e.nodes), t.marks = Pe.from(e.marks || {}), this.nodes = mu.compile(this.spec.nodes, this), this.marks = nr.compile(this.spec.marks, this);
2725
2725
  let i = /* @__PURE__ */ Object.create(null);
2726
2726
  for (let n in this.nodes) {
2727
2727
  if (n in this.marks)
@@ -2763,7 +2763,7 @@ class Nf {
2763
2763
  */
2764
2764
  text(e, t) {
2765
2765
  let i = this.nodes.text;
2766
- return new fo(i, i.defaultAttrs, e, ke.setFrom(t));
2766
+ return new go(i, i.defaultAttrs, e, ke.setFrom(t));
2767
2767
  }
2768
2768
  /**
2769
2769
  Create a mark with the given type and attributes.
@@ -3330,7 +3330,7 @@ class ri {
3330
3330
  nodes.
3331
3331
  */
3332
3332
  serializeFragment(e, t = {}, i) {
3333
- i || (i = xr(t).createDocumentFragment());
3333
+ i || (i = Er(t).createDocumentFragment());
3334
3334
  let n = i, o = [];
3335
3335
  return e.forEach((r) => {
3336
3336
  if (o.length || r.marks.length) {
@@ -3359,7 +3359,7 @@ class ri {
3359
3359
  @internal
3360
3360
  */
3361
3361
  serializeNodeInner(e, t) {
3362
- let { dom: i, contentDOM: n } = Jn(xr(t), this.nodes[e.type.name](e), null, e.attrs);
3362
+ let { dom: i, contentDOM: n } = Jn(Er(t), this.nodes[e.type.name](e), null, e.attrs);
3363
3363
  if (n) {
3364
3364
  if (e.isLeaf)
3365
3365
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -3387,7 +3387,7 @@ class ri {
3387
3387
  */
3388
3388
  serializeMark(e, t, i = {}) {
3389
3389
  let n = this.marks[e.type.name];
3390
- return n && Jn(xr(i), n(e, t), null, e.attrs);
3390
+ return n && Jn(Er(i), n(e, t), null, e.attrs);
3391
3391
  }
3392
3392
  static renderSpec(e, t, i = null, n) {
3393
3393
  return Jn(e, t, i, n);
@@ -3422,7 +3422,7 @@ function wu(a) {
3422
3422
  }
3423
3423
  return e;
3424
3424
  }
3425
- function xr(a) {
3425
+ function Er(a) {
3426
3426
  return a.document || window.document;
3427
3427
  }
3428
3428
  const Du = /* @__PURE__ */ new WeakMap();
@@ -3736,7 +3736,7 @@ class gn {
3736
3736
  return i ? e : new ds(e, n, null);
3737
3737
  }
3738
3738
  }
3739
- const Er = /* @__PURE__ */ Object.create(null);
3739
+ const Cr = /* @__PURE__ */ Object.create(null);
3740
3740
  let Je = class {
3741
3741
  /**
3742
3742
  Get the step map that represents the changes made by this step,
@@ -3761,7 +3761,7 @@ let Je = class {
3761
3761
  static fromJSON(e, t) {
3762
3762
  if (!t || !t.stepType)
3763
3763
  throw new RangeError("Invalid input for Step.fromJSON");
3764
- let i = Er[t.stepType];
3764
+ let i = Cr[t.stepType];
3765
3765
  if (!i)
3766
3766
  throw new RangeError(`No step type ${t.stepType} defined`);
3767
3767
  return i.fromJSON(e, t);
@@ -3773,9 +3773,9 @@ let Je = class {
3773
3773
  that's unlikely to clash with steps from other modules.
3774
3774
  */
3775
3775
  static jsonID(e, t) {
3776
- if (e in Er)
3776
+ if (e in Cr)
3777
3777
  throw new RangeError("Duplicate use of step JSON ID " + e);
3778
- return Er[e] = t, t.prototype.jsonID = e, t;
3778
+ return Cr[e] = t, t.prototype.jsonID = e, t;
3779
3779
  }
3780
3780
  }, et = class Ii {
3781
3781
  /**
@@ -3805,7 +3805,7 @@ let Je = class {
3805
3805
  try {
3806
3806
  return Ii.ok(e.replace(t, i, n));
3807
3807
  } catch (o) {
3808
- if (o instanceof so)
3808
+ if (o instanceof lo)
3809
3809
  return Ii.fail(o.message);
3810
3810
  throw o;
3811
3811
  }
@@ -3922,7 +3922,7 @@ let al = class Ri extends Je {
3922
3922
  return new Ri(this.pos, this.mark);
3923
3923
  }
3924
3924
  }
3925
- return new go(this.pos, this.mark);
3925
+ return new _o(this.pos, this.mark);
3926
3926
  }
3927
3927
  map(e) {
3928
3928
  let t = e.mapResult(this.pos, 1);
@@ -3941,7 +3941,7 @@ let al = class Ri extends Je {
3941
3941
  }
3942
3942
  };
3943
3943
  Je.jsonID("addNodeMark", al);
3944
- let go = class fs extends Je {
3944
+ let _o = class fs extends Je {
3945
3945
  /**
3946
3946
  Create a mark-removing step.
3947
3947
  */
@@ -3975,7 +3975,7 @@ let go = class fs extends Je {
3975
3975
  return new fs(t.pos, e.markFromJSON(t.mark));
3976
3976
  }
3977
3977
  };
3978
- Je.jsonID("removeNodeMark", go);
3978
+ Je.jsonID("removeNodeMark", _o);
3979
3979
  let Et = class _a extends Je {
3980
3980
  /**
3981
3981
  The given `slice` should fit the 'gap' between `from` and
@@ -4122,7 +4122,7 @@ function Bm(a, e, t, i) {
4122
4122
  return;
4123
4123
  o++;
4124
4124
  let l = null;
4125
- if (i instanceof ir) {
4125
+ if (i instanceof nr) {
4126
4126
  let u = r.marks, d;
4127
4127
  for (; d = i.isInSet(u); )
4128
4128
  (l || (l = [])).push(d), u = d.removeFromSet(u);
@@ -4322,7 +4322,7 @@ function Im(a, e) {
4322
4322
  function Wf(a, e) {
4323
4323
  return !!(a && e && !a.isLeaf && Im(a, e));
4324
4324
  }
4325
- function nr(a, e, t = -1) {
4325
+ function or(a, e, t = -1) {
4326
4326
  let i = a.resolve(e);
4327
4327
  for (let n = i.depth; ; n--) {
4328
4328
  let o, r, s = i.index(n);
@@ -4395,7 +4395,7 @@ function Uf(a, e, t) {
4395
4395
  }
4396
4396
  return null;
4397
4397
  }
4398
- function or(a, e, t = e, i = Y.empty) {
4398
+ function rr(a, e, t = e, i = Y.empty) {
4399
4399
  if (e == t && !i.size)
4400
4400
  return null;
4401
4401
  let n = a.resolve(e), o = a.resolve(t);
@@ -4450,7 +4450,7 @@ class Rm {
4450
4450
  for (let t = 1; t <= 2; t++)
4451
4451
  for (let i = t == 1 ? e : this.unplaced.openStart; i >= 0; i--) {
4452
4452
  let n, o = null;
4453
- i ? (o = Cr(this.unplaced.content, i - 1).firstChild, n = o.content) : n = this.unplaced.content;
4453
+ i ? (o = Br(this.unplaced.content, i - 1).firstChild, n = o.content) : n = this.unplaced.content;
4454
4454
  let r = n.firstChild;
4455
4455
  for (let s = this.depth; s >= 0; s--) {
4456
4456
  let { type: l, match: u } = this.frontier[s], d, f = null;
@@ -4464,11 +4464,11 @@ class Rm {
4464
4464
  }
4465
4465
  }
4466
4466
  openMore() {
4467
- let { content: e, openStart: t, openEnd: i } = this.unplaced, n = Cr(e, t);
4467
+ let { content: e, openStart: t, openEnd: i } = this.unplaced, n = Br(e, t);
4468
4468
  return !n.childCount || n.firstChild.isLeaf ? !1 : (this.unplaced = new Y(e, t + 1, Math.max(i, n.size + t >= e.size - i ? t + 1 : 0)), !0);
4469
4469
  }
4470
4470
  dropNode() {
4471
- let { content: e, openStart: t, openEnd: i } = this.unplaced, n = Cr(e, t);
4471
+ let { content: e, openStart: t, openEnd: i } = this.unplaced, n = Br(e, t);
4472
4472
  if (n.childCount <= 1 && t > 0) {
4473
4473
  let o = e.size - t <= t + n.size;
4474
4474
  this.unplaced = new Y($i(e, t - 1, 1), t - 1, o ? t - 1 : i);
@@ -4509,7 +4509,7 @@ class Rm {
4509
4509
  if (!this.$to.parent.isTextblock)
4510
4510
  return -1;
4511
4511
  let e = this.frontier[this.depth], t;
4512
- if (!e.type.isTextblock || !Br(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
4512
+ if (!e.type.isTextblock || !Sr(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (t = this.findCloseLevel(this.$to)) && t.depth == this.depth)
4513
4513
  return -1;
4514
4514
  let { depth: i } = this.$to, n = this.$to.after(i);
4515
4515
  for (; i > 1 && n == this.$to.end(--i); )
@@ -4518,10 +4518,10 @@ class Rm {
4518
4518
  }
4519
4519
  findCloseLevel(e) {
4520
4520
  e: for (let t = Math.min(this.depth, e.depth); t >= 0; t--) {
4521
- let { match: i, type: n } = this.frontier[t], o = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), r = Br(e, t, n, i, o);
4521
+ let { match: i, type: n } = this.frontier[t], o = t < e.depth && e.end(t + 1) == e.pos + (e.depth - (t + 1)), r = Sr(e, t, n, i, o);
4522
4522
  if (r) {
4523
4523
  for (let s = t - 1; s >= 0; s--) {
4524
- let { match: l, type: u } = this.frontier[s], d = Br(e, s, u, l, !0);
4524
+ let { match: l, type: u } = this.frontier[s], d = Sr(e, s, u, l, !0);
4525
4525
  if (!d || d.childCount)
4526
4526
  continue e;
4527
4527
  }
@@ -4557,7 +4557,7 @@ function $i(a, e, t) {
4557
4557
  function Hi(a, e, t) {
4558
4558
  return e == 0 ? a.append(t) : a.replaceChild(a.childCount - 1, a.lastChild.copy(Hi(a.lastChild.content, e - 1, t)));
4559
4559
  }
4560
- function Cr(a, e) {
4560
+ function Br(a, e) {
4561
4561
  for (let t = 0; t < e; t++)
4562
4562
  a = a.firstChild.content;
4563
4563
  return a;
@@ -4568,7 +4568,7 @@ function Jf(a, e, t) {
4568
4568
  let i = a.content;
4569
4569
  return e > 1 && (i = i.replaceChild(0, Jf(i.firstChild, e - 1, i.childCount == 1 ? t - 1 : 0))), e > 0 && (i = a.type.contentMatch.fillBefore(i).append(i), t <= 0 && (i = i.append(a.type.contentMatch.matchFragment(i).fillBefore(W.empty, !0)))), a.copy(i);
4570
4570
  }
4571
- function Br(a, e, t, i, n) {
4571
+ function Sr(a, e, t, i, n) {
4572
4572
  let o = a.node(e), r = n ? a.indexAfter(e) : a.index(e);
4573
4573
  if (r == o.childCount && !t.compatibleContent(o.type))
4574
4574
  return null;
@@ -4834,7 +4834,7 @@ class Zf {
4834
4834
  given `slice`.
4835
4835
  */
4836
4836
  replace(e, t = e, i = Y.empty) {
4837
- let n = or(this.doc, e, t, i);
4837
+ let n = rr(this.doc, e, t, i);
4838
4838
  return n && this.step(n), this;
4839
4839
  }
4840
4840
  /**
@@ -4965,11 +4965,11 @@ class Zf {
4965
4965
  if (!i)
4966
4966
  throw new RangeError("No node at position " + e);
4967
4967
  if (t instanceof ke)
4968
- t.isInSet(i.marks) && this.step(new go(e, t));
4968
+ t.isInSet(i.marks) && this.step(new _o(e, t));
4969
4969
  else {
4970
4970
  let n = i.marks, o, r = [];
4971
4971
  for (; o = t.isInSet(n); )
4972
- r.push(new go(e, o)), n = o.removeFromSet(n);
4972
+ r.push(new _o(e, o)), n = o.removeFromSet(n);
4973
4973
  for (let s = r.length - 1; s >= 0; s--)
4974
4974
  this.step(r[s]);
4975
4975
  }
@@ -5010,7 +5010,7 @@ class Zf {
5010
5010
  return il(this, e, t, i), this;
5011
5011
  }
5012
5012
  }
5013
- const Sr = /* @__PURE__ */ Object.create(null);
5013
+ const jr = /* @__PURE__ */ Object.create(null);
5014
5014
  let le = class {
5015
5015
  /**
5016
5016
  Initialize a selection with the head and anchor and ranges. If no
@@ -5146,7 +5146,7 @@ let le = class {
5146
5146
  static fromJSON(e, t) {
5147
5147
  if (!t || !t.type)
5148
5148
  throw new RangeError("Invalid input for Selection.fromJSON");
5149
- let i = Sr[t.type];
5149
+ let i = jr[t.type];
5150
5150
  if (!i)
5151
5151
  throw new RangeError(`No selection type ${t.type} defined`);
5152
5152
  return i.fromJSON(e, t);
@@ -5158,9 +5158,9 @@ let le = class {
5158
5158
  clash with classes from other modules.
5159
5159
  */
5160
5160
  static jsonID(e, t) {
5161
- if (e in Sr)
5161
+ if (e in jr)
5162
5162
  throw new RangeError("Duplicate use of selection JSON ID " + e);
5163
- return Sr[e] = t, t.prototype.jsonID = e, t;
5163
+ return jr[e] = t, t.prototype.jsonID = e, t;
5164
5164
  }
5165
5165
  /**
5166
5166
  Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
@@ -5219,7 +5219,7 @@ class ee extends le {
5219
5219
  return e instanceof ee && e.anchor == this.anchor && e.head == this.head;
5220
5220
  }
5221
5221
  getBookmark() {
5222
- return new rr(this.anchor, this.head);
5222
+ return new sr(this.anchor, this.head);
5223
5223
  }
5224
5224
  toJSON() {
5225
5225
  return { type: "text", anchor: this.anchor, head: this.head };
@@ -5260,12 +5260,12 @@ class ee extends le {
5260
5260
  }
5261
5261
  }
5262
5262
  le.jsonID("text", ee);
5263
- class rr {
5263
+ class sr {
5264
5264
  constructor(e, t) {
5265
5265
  this.anchor = e, this.head = t;
5266
5266
  }
5267
5267
  map(e) {
5268
- return new rr(e.map(this.anchor), e.map(this.head));
5268
+ return new sr(e.map(this.anchor), e.map(this.head));
5269
5269
  }
5270
5270
  resolve(e) {
5271
5271
  return ee.between(e.resolve(this.anchor), e.resolve(this.head));
@@ -5326,7 +5326,7 @@ class ol {
5326
5326
  }
5327
5327
  map(e) {
5328
5328
  let { deleted: t, pos: i } = e.mapResult(this.anchor);
5329
- return t ? new rr(i, i) : new ol(i);
5329
+ return t ? new sr(i, i) : new ol(i);
5330
5330
  }
5331
5331
  resolve(e) {
5332
5332
  let t = e.resolve(this.anchor), i = t.nodeAfter;
@@ -5599,7 +5599,7 @@ const Gm = [
5599
5599
  }
5600
5600
  })
5601
5601
  ];
5602
- class jr {
5602
+ class qr {
5603
5603
  constructor(e, t) {
5604
5604
  this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = Gm.slice(), t && t.forEach((i) => {
5605
5605
  if (this.pluginsByKey[i.key])
@@ -5700,7 +5700,7 @@ class mi {
5700
5700
  Create a new state.
5701
5701
  */
5702
5702
  static create(e) {
5703
- let t = new jr(e.doc ? e.doc.type.schema : e.schema, e.plugins), i = new mi(t);
5703
+ let t = new qr(e.doc ? e.doc.type.schema : e.schema, e.plugins), i = new mi(t);
5704
5704
  for (let n = 0; n < t.fields.length; n++)
5705
5705
  i[t.fields[n].name] = t.fields[n].init(e, i);
5706
5706
  return i;
@@ -5714,7 +5714,7 @@ class mi {
5714
5714
  configuration object..
5715
5715
  */
5716
5716
  reconfigure(e) {
5717
- let t = new jr(this.schema, e.plugins), i = t.fields, n = new mi(t);
5717
+ let t = new qr(this.schema, e.plugins), i = t.fields, n = new mi(t);
5718
5718
  for (let o = 0; o < i.length; o++) {
5719
5719
  let r = i[o].name;
5720
5720
  n[r] = this.hasOwnProperty(r) ? this[r] : i[o].init(e, n);
@@ -5751,7 +5751,7 @@ class mi {
5751
5751
  throw new RangeError("Invalid input for EditorState.fromJSON");
5752
5752
  if (!e.schema)
5753
5753
  throw new RangeError("Required config field 'schema' missing");
5754
- let n = new jr(e.schema, e.plugins), o = new mi(n);
5754
+ let n = new qr(e.schema, e.plugins), o = new mi(n);
5755
5755
  return n.fields.forEach((r) => {
5756
5756
  if (r.name == "doc")
5757
5757
  o.doc = Da.fromJSON(e.schema, t.doc);
@@ -5794,9 +5794,9 @@ class _e {
5794
5794
  return e[this.key];
5795
5795
  }
5796
5796
  }
5797
- const qr = /* @__PURE__ */ Object.create(null);
5797
+ const Ar = /* @__PURE__ */ Object.create(null);
5798
5798
  function ag(a) {
5799
- return a in qr ? a + "$" + ++qr[a] : (qr[a] = 0, a + "$");
5799
+ return a in Ar ? a + "$" + ++Ar[a] : (Ar[a] = 0, a + "$");
5800
5800
  }
5801
5801
  class be {
5802
5802
  /**
@@ -5838,7 +5838,7 @@ const ng = (a, e, t) => {
5838
5838
  return !0;
5839
5839
  if (i.parent.content.size == 0 && (wi(o, "end") || Z.isSelectable(o)))
5840
5840
  for (let r = i.depth; ; r--) {
5841
- let s = or(a.doc, i.before(r), i.after(r), Y.empty);
5841
+ let s = rr(a.doc, i.before(r), i.after(r), Y.empty);
5842
5842
  if (s && s.slice.size < s.to - s.from) {
5843
5843
  if (e) {
5844
5844
  let l = a.tr.step(s);
@@ -5882,7 +5882,7 @@ function og(a, e, t) {
5882
5882
  return !1;
5883
5883
  s = d;
5884
5884
  }
5885
- let u = or(a.doc, o, l, Y.empty);
5885
+ let u = rr(a.doc, o, l, Y.empty);
5886
5886
  if (!u || u.from != o || u instanceof Et && u.slice.size >= l - o)
5887
5887
  return !1;
5888
5888
  if (t) {
@@ -5937,7 +5937,7 @@ const lg = (a, e, t) => {
5937
5937
  if (_g(a, n, e, 1))
5938
5938
  return !0;
5939
5939
  if (i.parent.content.size == 0 && (wi(o, "start") || Z.isSelectable(o))) {
5940
- let r = or(a.doc, i.before(), i.after(), Y.empty);
5940
+ let r = rr(a.doc, i.before(), i.after(), Y.empty);
5941
5941
  if (r && r.slice.size < r.to - r.from) {
5942
5942
  if (e) {
5943
5943
  let s = a.tr.step(r);
@@ -5976,7 +5976,7 @@ const Qm = (a, e) => {
5976
5976
  if (t.node.isTextblock || !Ta(a.doc, t.from))
5977
5977
  return !1;
5978
5978
  n = t.from;
5979
- } else if (n = nr(a.doc, t.from, -1), n == null)
5979
+ } else if (n = or(a.doc, t.from, -1), n == null)
5980
5980
  return !1;
5981
5981
  if (e) {
5982
5982
  let o = a.tr.join(n);
@@ -5989,7 +5989,7 @@ const Qm = (a, e) => {
5989
5989
  if (t.node.isTextblock || !Ta(a.doc, t.to))
5990
5990
  return !1;
5991
5991
  i = t.to;
5992
- } else if (i = nr(a.doc, t.to, 1), i == null)
5992
+ } else if (i = or(a.doc, t.to, 1), i == null)
5993
5993
  return !1;
5994
5994
  return e && e(a.tr.join(i).scrollIntoView()), !0;
5995
5995
  }, eF = (a, e) => {
@@ -6195,7 +6195,7 @@ function dF(a, e, t, i = null) {
6195
6195
  if (e.$from.index(e.depth - 1) == 0)
6196
6196
  return !1;
6197
6197
  let l = r.resolve(e.start - 2);
6198
- o = new uo(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new uo(e.$from, r.resolve(e.$to.end(e.depth)), e.depth)), n = !0;
6198
+ o = new fo(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new fo(e.$from, r.resolve(e.$to.end(e.depth)), e.depth)), n = !0;
6199
6199
  }
6200
6200
  let s = nl(o, t, i, e);
6201
6201
  return s ? (a && fF(a, e, s, n, t), !0) : !1;
@@ -6221,7 +6221,7 @@ function gF(a) {
6221
6221
  }
6222
6222
  function _F(a, e, t, i) {
6223
6223
  let n = a.tr, o = i.end, r = i.$to.end(i.depth);
6224
- o < r && (n.step(new dt(o - 1, r, o, r, new Y(W.from(t.create(null, i.parent.copy())), 1, 0), 1, !0)), i = new uo(n.doc.resolve(i.$from.pos), n.doc.resolve(r), i.depth));
6224
+ o < r && (n.step(new dt(o - 1, r, o, r, new Y(W.from(t.create(null, i.parent.copy())), 1, 0), 1, !0)), i = new fo(n.doc.resolve(i.$from.pos), n.doc.resolve(r), i.depth));
6225
6225
  const s = Mi(i);
6226
6226
  if (s == null)
6227
6227
  return !1;
@@ -6346,7 +6346,7 @@ function vn(a) {
6346
6346
  ;
6347
6347
  return e && e.node && e.node.isBlock && (e.dom == a || e.contentDOM == a);
6348
6348
  }
6349
- const sr = function(a) {
6349
+ const lr = function(a) {
6350
6350
  return a.focusNode && ai(a.focusNode, a.focusOffset, a.anchorNode, a.anchorOffset);
6351
6351
  };
6352
6352
  function $a(a, e) {
@@ -6613,14 +6613,14 @@ function wg(a, e, t) {
6613
6613
  if (o == null && n && (t < 0 || n == Dt(i))) {
6614
6614
  let l = i.childNodes[n - 1];
6615
6615
  if (l.nodeType == 1)
6616
- return Ar(l.getBoundingClientRect(), !1);
6616
+ return Mr(l.getBoundingClientRect(), !1);
6617
6617
  }
6618
6618
  if (o == null && n < Dt(i)) {
6619
6619
  let l = i.childNodes[n];
6620
6620
  if (l.nodeType == 1)
6621
- return Ar(l.getBoundingClientRect(), !0);
6621
+ return Mr(l.getBoundingClientRect(), !0);
6622
6622
  }
6623
- return Ar(i.getBoundingClientRect(), t >= 0);
6623
+ return Mr(i.getBoundingClientRect(), t >= 0);
6624
6624
  }
6625
6625
  if (o == null && n && (t < 0 || n == Dt(i))) {
6626
6626
  let l = i.childNodes[n - 1], u = l.nodeType == 3 ? Zt(l, Dt(l) - (r ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
@@ -6643,7 +6643,7 @@ function Ni(a, e) {
6643
6643
  let t = e ? a.left : a.right;
6644
6644
  return { top: a.top, bottom: a.bottom, left: t, right: t };
6645
6645
  }
6646
- function Ar(a, e) {
6646
+ function Mr(a, e) {
6647
6647
  if (a.height == 0)
6648
6648
  return a;
6649
6649
  let t = e ? a.top : a.bottom;
@@ -7180,7 +7180,7 @@ class Ea extends En {
7180
7180
  } else d || ({ dom: d, contentDOM: f } = ri.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
7181
7181
  !f && !t.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), t.type.spec.draggable && (d.draggable = !0));
7182
7182
  let g = d;
7183
- return d = Bg(d, i, t), u ? l = new zF(e, t, i, n, d, f || null, g, u, o, r + 1) : t.isText ? new lr(e, t, i, n, d, g, o) : new Ea(e, t, i, n, d, f || null, g, o, r + 1);
7183
+ return d = Bg(d, i, t), u ? l = new zF(e, t, i, n, d, f || null, g, u, o, r + 1) : t.isText ? new ur(e, t, i, n, d, g, o) : new Ea(e, t, i, n, d, f || null, g, o, r + 1);
7184
7184
  }
7185
7185
  parseRule() {
7186
7186
  if (this.node.type.spec.reparseInView)
@@ -7203,7 +7203,7 @@ class Ea extends En {
7203
7203
  return e;
7204
7204
  }
7205
7205
  matchesNode(e, t, i) {
7206
- return this.dirty == xt && e.eq(this.node) && _o(t, this.outerDeco) && i.eq(this.innerDeco);
7206
+ return this.dirty == xt && e.eq(this.node) && co(t, this.outerDeco) && i.eq(this.innerDeco);
7207
7207
  }
7208
7208
  get size() {
7209
7209
  return this.node.nodeSize;
@@ -7261,7 +7261,7 @@ class Ea extends En {
7261
7261
  this.updateOuterDeco(t), this.node = e, this.innerDeco = i, this.contentDOM && this.updateChildren(n, this.posAtStart), this.dirty = xt;
7262
7262
  }
7263
7263
  updateOuterDeco(e) {
7264
- if (_o(e, this.outerDeco))
7264
+ if (co(e, this.outerDeco))
7265
7265
  return;
7266
7266
  let t = this.nodeDOM.nodeType != 1, i = this.dom;
7267
7267
  this.dom = Cg(this.dom, this.nodeDOM, ps(this.outerDeco, this.node, t), ps(e, this.node, t)), this.dom != i && (i.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
@@ -7283,7 +7283,7 @@ function Ru(a, e, t, i, n) {
7283
7283
  let o = new Ea(void 0, a, e, t, i, i, i, n, 0);
7284
7284
  return o.contentDOM && o.updateChildren(n, 0), o;
7285
7285
  }
7286
- class lr extends Ea {
7286
+ class ur extends Ea {
7287
7287
  constructor(e, t, i, n, o, r, s) {
7288
7288
  super(e, t, i, n, o, null, r, s, 0);
7289
7289
  }
@@ -7314,7 +7314,7 @@ class lr extends Ea {
7314
7314
  }
7315
7315
  slice(e, t, i) {
7316
7316
  let n = this.node.cut(e, t), o = document.createTextNode(n.text);
7317
- return new lr(this.parent, n, this.outerDeco, this.innerDeco, o, o, i);
7317
+ return new ur(this.parent, n, this.outerDeco, this.innerDeco, o, o, i);
7318
7318
  }
7319
7319
  markDirty(e, t) {
7320
7320
  super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = Ut);
@@ -7453,7 +7453,7 @@ function RF(a, e, t) {
7453
7453
  function Bg(a, e, t) {
7454
7454
  return Cg(a, a, Va, ps(e, t, a.nodeType != 1));
7455
7455
  }
7456
- function _o(a, e) {
7456
+ function co(a, e) {
7457
7457
  if (a.length != e.length)
7458
7458
  return !1;
7459
7459
  for (let t = 0; t < a.length; t++)
@@ -7556,7 +7556,7 @@ class $F {
7556
7556
  let u = this.preMatch.matched.get(l);
7557
7557
  if (u != null && u != o)
7558
7558
  return !1;
7559
- let d = l.dom, f, g = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Ut && _o(t, l.outerDeco));
7559
+ let d = l.dom, f, g = this.isLocked(d) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Ut && co(t, l.outerDeco));
7560
7560
  if (!g && l.update(e, t, i, n))
7561
7561
  return this.destroyBetween(this.index, s), l.dom != d && (this.changed = !0), this.index++, !0;
7562
7562
  if (!g && (f = this.recreateWrapper(l, e, t, i, n, r)))
@@ -7569,7 +7569,7 @@ class $F {
7569
7569
  // When a node with content is replaced by a different node with
7570
7570
  // identical content, move over its children.
7571
7571
  recreateWrapper(e, t, i, n, o, r) {
7572
- if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !_o(i, e.outerDeco) || !n.eq(e.innerDeco))
7572
+ if (e.dirty || t.isAtom || !e.children.length || !e.node.content.eq(t.content) || !co(i, e.outerDeco) || !n.eq(e.innerDeco))
7573
7573
  return null;
7574
7574
  let s = Ea.create(this.top, t, i, n, o, r);
7575
7575
  if (s.contentDOM) {
@@ -7600,7 +7600,7 @@ class $F {
7600
7600
  for (; e instanceof ii; )
7601
7601
  t = e, e = t.children[t.children.length - 1];
7602
7602
  (!e || // Empty textblock
7603
- !(e instanceof lr) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || $e) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
7603
+ !(e instanceof ur) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || $e) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
7604
7604
  }
7605
7605
  addHackNode(e, t) {
7606
7606
  if (t == this.top && this.index < t.children.length && t.children[this.index].matchesHack(e))
@@ -7740,7 +7740,7 @@ function gl(a, e = null) {
7740
7740
  if (r < 0)
7741
7741
  return null;
7742
7742
  let s = i.resolve(r), l, u;
7743
- if (sr(t)) {
7743
+ if (lr(t)) {
7744
7744
  for (l = r; n && !n.node; )
7745
7745
  n = n.parent;
7746
7746
  let f = n.node;
@@ -7796,15 +7796,15 @@ const Hu = Ke || $e && mg < 63;
7796
7796
  function Vu(a, e) {
7797
7797
  let { node: t, offset: i } = a.docView.domFromPos(e, 0), n = i < t.childNodes.length ? t.childNodes[i] : null, o = i ? t.childNodes[i - 1] : null;
7798
7798
  if (Ke && n && n.contentEditable == "false")
7799
- return Mr(n);
7799
+ return Tr(n);
7800
7800
  if ((!n || n.contentEditable == "false") && (!o || o.contentEditable == "false")) {
7801
7801
  if (n)
7802
- return Mr(n);
7802
+ return Tr(n);
7803
7803
  if (o)
7804
- return Mr(o);
7804
+ return Tr(o);
7805
7805
  }
7806
7806
  }
7807
- function Mr(a) {
7807
+ function Tr(a) {
7808
7808
  return a.contentEditable = "true", Ke && a.draggable && (a.draggable = !1, a.wasDraggable = !0), a;
7809
7809
  }
7810
7810
  function Wu(a) {
@@ -7894,7 +7894,7 @@ function Ju(a, e, t) {
7894
7894
  }
7895
7895
  }
7896
7896
  }
7897
- function co(a) {
7897
+ function ho(a) {
7898
7898
  return a.nodeType == 3 ? a.nodeValue.length : a.childNodes.length;
7899
7899
  }
7900
7900
  function Xi(a, e) {
@@ -7909,7 +7909,7 @@ function XF(a) {
7909
7909
  if (!t)
7910
7910
  return;
7911
7911
  let n, o, r = !1;
7912
- for (vt && t.nodeType == 1 && i < co(t) && Xi(t.childNodes[i], -1) && (r = !0); ; )
7912
+ for (vt && t.nodeType == 1 && i < ho(t) && Xi(t.childNodes[i], -1) && (r = !0); ; )
7913
7913
  if (i > 0) {
7914
7914
  if (t.nodeType != 1)
7915
7915
  break;
@@ -7930,7 +7930,7 @@ function XF(a) {
7930
7930
  for (; s && Xi(s, -1); )
7931
7931
  n = t.parentNode, o = ze(s), s = s.previousSibling;
7932
7932
  if (s)
7933
- t = s, i = co(t);
7933
+ t = s, i = ho(t);
7934
7934
  else {
7935
7935
  if (t = t.parentNode, t == a.dom)
7936
7936
  break;
@@ -7944,7 +7944,7 @@ function QF(a) {
7944
7944
  let e = a.domSelectionRange(), t = e.focusNode, i = e.focusOffset;
7945
7945
  if (!t)
7946
7946
  return;
7947
- let n = co(t), o, r;
7947
+ let n = ho(t), o, r;
7948
7948
  for (; ; )
7949
7949
  if (i < n) {
7950
7950
  if (t.nodeType != 1)
@@ -7962,7 +7962,7 @@ function QF(a) {
7962
7962
  for (; s && Xi(s, 1); )
7963
7963
  o = s.parentNode, r = ze(s) + 1, s = s.nextSibling;
7964
7964
  if (s)
7965
- t = s, i = 0, n = co(t);
7965
+ t = s, i = 0, n = ho(t);
7966
7966
  else {
7967
7967
  if (t = t.parentNode, t == a.dom)
7968
7968
  break;
@@ -8008,7 +8008,7 @@ function ks(a, e, t) {
8008
8008
  let i = a.domSelection();
8009
8009
  if (!i)
8010
8010
  return;
8011
- if (sr(i)) {
8011
+ if (lr(i)) {
8012
8012
  let o = document.createRange();
8013
8013
  o.setEnd(e, t), o.setStart(e, t), i.removeAllRanges(), i.addRange(o);
8014
8014
  } else i.extend && i.extend(e, t);
@@ -8260,10 +8260,10 @@ let ed = null;
8260
8260
  function Ig() {
8261
8261
  return ed || (ed = document.implementation.createHTMLDocument("title"));
8262
8262
  }
8263
- let Tr = null;
8263
+ let Nr = null;
8264
8264
  function r0(a) {
8265
8265
  let e = window.trustedTypes;
8266
- return e ? (Tr || (Tr = e.defaultPolicy || e.createPolicy("ProseMirrorClipboard", { createHTML: (t) => t })), Tr.createHTML(a)) : a;
8266
+ return e ? (Nr || (Nr = e.defaultPolicy || e.createPolicy("ProseMirrorClipboard", { createHTML: (t) => t })), Nr.createHTML(a)) : a;
8267
8267
  }
8268
8268
  function s0(a) {
8269
8269
  let e = /^(\s*<meta [^>]*>)*/.exec(a);
@@ -8375,7 +8375,7 @@ nt.keypress = (a, e) => {
8375
8375
  !/[\r\n]/.test(n) && !a.someProp("handleTextInput", (r) => r(a, i.$from.pos, i.$to.pos, n, o)) && a.dispatch(o()), t.preventDefault();
8376
8376
  }
8377
8377
  };
8378
- function ur(a) {
8378
+ function dr(a) {
8379
8379
  return { left: a.clientX, top: a.clientY };
8380
8380
  }
8381
8381
  function m0(a, e) {
@@ -8446,7 +8446,7 @@ function w0(a, e, t) {
8446
8446
  }
8447
8447
  }
8448
8448
  function Fl(a) {
8449
- return ho(a);
8449
+ return mo(a);
8450
8450
  }
8451
8451
  const Pg = kt ? "metaKey" : "ctrlKey";
8452
8452
  it.mousedown = (a, e) => {
@@ -8454,7 +8454,7 @@ it.mousedown = (a, e) => {
8454
8454
  a.input.shiftKey = t.shiftKey;
8455
8455
  let i = Fl(a), n = Date.now(), o = "singleClick";
8456
8456
  n - a.input.lastClick.time < 500 && m0(t, a.input.lastClick) && !t[Pg] && a.input.lastClick.button == t.button && (a.input.lastClick.type == "singleClick" ? o = "doubleClick" : a.input.lastClick.type == "doubleClick" && (o = "tripleClick")), a.input.lastClick = { time: n, x: t.clientX, y: t.clientY, type: o, button: t.button };
8457
- let r = a.posAtCoords(ur(t));
8457
+ let r = a.posAtCoords(dr(t));
8458
8458
  r && (o == "singleClick" ? (a.input.mouseDown && a.input.mouseDown.done(), a.input.mouseDown = new D0(a, r, t, !!i)) : (o == "doubleClick" ? y0 : k0)(a, r.pos, r.inside, t) ? t.preventDefault() : wa(a, "pointer"));
8459
8459
  };
8460
8460
  class D0 {
@@ -8486,7 +8486,7 @@ class D0 {
8486
8486
  if (this.done(), !this.view.dom.contains(e.target))
8487
8487
  return;
8488
8488
  let t = this.pos;
8489
- this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(ur(e))), this.updateAllowDefault(e), this.allowDefault || !t ? wa(this.view, "pointer") : b0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
8489
+ this.view.state.doc != this.startDoc && (t = this.view.posAtCoords(dr(e))), this.updateAllowDefault(e), this.allowDefault || !t ? wa(this.view, "pointer") : b0(this.view, t.pos, t.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
8490
8490
  Ke && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
8491
8491
  // cursor, but still report that the node is selected
8492
8492
  // when asked through getSelection. You'll then get a
@@ -8519,8 +8519,8 @@ nt.compositionstart = nt.compositionupdate = (a) => {
8519
8519
  a.domObserver.flush();
8520
8520
  let { state: e } = a, t = e.selection.$to;
8521
8521
  if (e.selection instanceof ee && (e.storedMarks || !t.textOffset && t.parentOffset && t.nodeBefore.marks.some((i) => i.type.spec.inclusive === !1) || $e && Fg && x0(a)))
8522
- a.markCursor = a.state.storedMarks || t.marks(), ho(a, !0), a.markCursor = null;
8523
- else if (ho(a, !e.selection.empty), vt && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
8522
+ a.markCursor = a.state.storedMarks || t.marks(), mo(a, !0), a.markCursor = null;
8523
+ else if (mo(a, !e.selection.empty), vt && e.selection.empty && t.parentOffset && !t.textOffset && t.nodeBefore.marks.length) {
8524
8524
  let i = a.domSelectionRange();
8525
8525
  for (let n = i.focusNode, o = i.focusOffset; n && n.nodeType == 1 && o != 0; ) {
8526
8526
  let r = o < 0 ? n.lastChild : n.childNodes[o - 1];
@@ -8549,7 +8549,7 @@ nt.compositionend = (a, e) => {
8549
8549
  a.composing && (a.input.composing = !1, a.input.compositionEndedAt = e.timeStamp, a.input.compositionPendingChanges = a.domObserver.pendingRecords().length ? a.input.compositionID : 0, a.input.compositionNode = null, a.input.badSafariComposition ? a.domObserver.forceFlush() : a.input.compositionPendingChanges && Promise.resolve().then(() => a.domObserver.flush()), a.input.compositionID++, Rg(a, 20));
8550
8550
  };
8551
8551
  function Rg(a, e) {
8552
- clearTimeout(a.input.composingTimeout), e > -1 && (a.input.composingTimeout = setTimeout(() => ho(a), e));
8552
+ clearTimeout(a.input.composingTimeout), e > -1 && (a.input.composingTimeout = setTimeout(() => mo(a), e));
8553
8553
  }
8554
8554
  function $g(a) {
8555
8555
  for (a.composing && (a.input.composing = !1, a.input.compositionEndedAt = C0()); a.input.compositionNodes.length > 0; )
@@ -8578,7 +8578,7 @@ function C0() {
8578
8578
  let a = document.createEvent("Event");
8579
8579
  return a.initEvent("event", !0, !0), a.timeStamp;
8580
8580
  }
8581
- function ho(a, e = !1) {
8581
+ function mo(a, e = !1) {
8582
8582
  if (!(ta && a.domObserver.flushingSoon >= 0)) {
8583
8583
  if (a.domObserver.forceFlush(), $g(a), e || a.docView && a.docView.dirty) {
8584
8584
  let t = gl(a), i = a.state.selection;
@@ -8655,7 +8655,7 @@ it.dragstart = (a, e) => {
8655
8655
  let t = e, i = a.input.mouseDown;
8656
8656
  if (i && i.done(), !t.dataTransfer)
8657
8657
  return;
8658
- let n = a.state.selection, o = n.empty ? null : a.posAtCoords(ur(t)), r;
8658
+ let n = a.state.selection, o = n.empty ? null : a.posAtCoords(dr(t)), r;
8659
8659
  if (!(o && o.pos >= n.from && o.pos <= (n instanceof Z ? n.to - 1 : n.to))) {
8660
8660
  if (i && i.mightDrag)
8661
8661
  r = Z.create(a.state.doc, i.mightDrag.pos);
@@ -8684,7 +8684,7 @@ nt.drop = (a, e) => {
8684
8684
  function A0(a, e, t) {
8685
8685
  if (!e.dataTransfer)
8686
8686
  return;
8687
- let i = a.posAtCoords(ur(e));
8687
+ let i = a.posAtCoords(dr(e));
8688
8688
  if (!i)
8689
8689
  return;
8690
8690
  let n = a.state.doc.resolve(i.pos), o = t && t.slice;
@@ -8752,7 +8752,7 @@ function hn(a, e) {
8752
8752
  return !1;
8753
8753
  return !0;
8754
8754
  }
8755
- class mo {
8755
+ class Fo {
8756
8756
  constructor(e, t) {
8757
8757
  this.toDOM = e, this.spec = t || Xa, this.side = this.spec.side || 0;
8758
8758
  }
@@ -8764,7 +8764,7 @@ class mo {
8764
8764
  return !0;
8765
8765
  }
8766
8766
  eq(e) {
8767
- return this == e || e instanceof mo && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && hn(this.spec, e.spec));
8767
+ return this == e || e instanceof Fo && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && hn(this.spec, e.spec));
8768
8768
  }
8769
8769
  destroy(e) {
8770
8770
  this.spec.destroy && this.spec.destroy(e);
@@ -8845,7 +8845,7 @@ class tt {
8845
8845
  widget's current document position.
8846
8846
  */
8847
8847
  static widget(e, t, i) {
8848
- return new tt(e, e, new mo(t, i));
8848
+ return new tt(e, e, new Fo(t, i));
8849
8849
  }
8850
8850
  /**
8851
8851
  Creates an inline decoration, which adds the given attributes to
@@ -8879,7 +8879,7 @@ class tt {
8879
8879
  @internal
8880
8880
  */
8881
8881
  get widget() {
8882
- return this.type instanceof mo;
8882
+ return this.type instanceof Fo;
8883
8883
  }
8884
8884
  }
8885
8885
  const ci = [], Xa = {};
@@ -8896,7 +8896,7 @@ class Be {
8896
8896
  you must make a copy if you want need to preserve that.
8897
8897
  */
8898
8898
  static create(e, t) {
8899
- return t.length ? Fo(t, e, 0, Xa) : We;
8899
+ return t.length ? po(t, e, 0, Xa) : We;
8900
8900
  }
8901
8901
  /**
8902
8902
  Find all decorations in this set which touch the given range
@@ -8955,7 +8955,7 @@ class Be {
8955
8955
  if (d = Kg(t, s, u)) {
8956
8956
  for (n || (n = this.children.slice()); o < n.length && n[o] < l; )
8957
8957
  o += 3;
8958
- n[o] == l ? n[o + 2] = n[o + 2].addInner(s, d, u + 1) : n.splice(o, 0, l, l + s.nodeSize, Fo(d, s, u + 1, Xa)), o += 3;
8958
+ n[o] == l ? n[o + 2] = n[o + 2].addInner(s, d, u + 1) : n.splice(o, 0, l, l + s.nodeSize, po(d, s, u + 1, Xa)), o += 3;
8959
8959
  }
8960
8960
  });
8961
8961
  let r = Ug(o ? Jg(t) : t, -i);
@@ -9151,7 +9151,7 @@ function M0(a, e, t, i, n, o, r) {
9151
9151
  l = !0;
9152
9152
  }
9153
9153
  if (l) {
9154
- let u = T0(s, a, e, t, n, o, r), d = Fo(u, i, 0, r);
9154
+ let u = T0(s, a, e, t, n, o, r), d = po(u, i, 0, r);
9155
9155
  e = d.local;
9156
9156
  for (let f = 0; f < s.length; f += 3)
9157
9157
  s[f + 1] < 0 && (s.splice(f, 3), f -= 3);
@@ -9201,13 +9201,13 @@ function Jg(a) {
9201
9201
  a[t] != null && e.push(a[t]);
9202
9202
  return e;
9203
9203
  }
9204
- function Fo(a, e, t, i) {
9204
+ function po(a, e, t, i) {
9205
9205
  let n = [], o = !1;
9206
9206
  e.forEach((s, l) => {
9207
9207
  let u = Kg(a, s, l + t);
9208
9208
  if (u) {
9209
9209
  o = !0;
9210
- let d = Fo(u, s, t + l + 1, i);
9210
+ let d = po(u, s, t + l + 1, i);
9211
9211
  d != We && n.push(l, l + s.nodeSize, d);
9212
9212
  }
9213
9213
  });
@@ -9242,7 +9242,7 @@ function td(a, e, t) {
9242
9242
  e++;
9243
9243
  a.splice(e, 0, t);
9244
9244
  }
9245
- function Nr(a) {
9245
+ function Or(a) {
9246
9246
  let e = [];
9247
9247
  return a.someProp("decorations", (t) => {
9248
9248
  let i = t(a.state);
@@ -9390,7 +9390,7 @@ class I0 {
9390
9390
  }
9391
9391
  }
9392
9392
  let u = null;
9393
- o < 0 && n && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && sr(i) && (u = gl(e)) && u.eq(le.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, oa(e), this.currentSelection.set(i), e.scrollToSelection()) : (o > -1 || n) && (o > -1 && (e.docView.markDirty(o, r), P0(e)), e.input.badSafariComposition && (e.input.badSafariComposition = !1, $0(e, l)), this.handleDOMChange(o, r, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || oa(e), this.currentSelection.set(i));
9393
+ o < 0 && n && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && lr(i) && (u = gl(e)) && u.eq(le.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, oa(e), this.currentSelection.set(i), e.scrollToSelection()) : (o > -1 || n) && (o > -1 && (e.docView.markDirty(o, r), P0(e)), e.input.badSafariComposition && (e.input.badSafariComposition = !1, $0(e, l)), this.handleDOMChange(o, r, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(i) || oa(e), this.currentSelection.set(i));
9394
9394
  }
9395
9395
  registerMutation(e, t) {
9396
9396
  if (t.indexOf(e.target) > -1)
@@ -9480,7 +9480,7 @@ function $0(a, e) {
9480
9480
  }
9481
9481
  function H0(a, e, t) {
9482
9482
  let { node: i, fromOffset: n, toOffset: o, from: r, to: s } = a.docView.parseRange(e, t), l = a.domSelectionRange(), u, d = l.anchorNode;
9483
- if (d && a.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: l.anchorOffset }], sr(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), $e && a.input.lastKeyCode === 8)
9483
+ if (d && a.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: l.anchorOffset }], lr(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), $e && a.input.lastKeyCode === 8)
9484
9484
  for (let m = o; m > n; m--) {
9485
9485
  let F = i.childNodes[m - 1], b = F.pmViewDesc;
9486
9486
  if (F.nodeName == "BR" && !b) {
@@ -9623,7 +9623,7 @@ function J0(a, e, t, i, n) {
9623
9623
  if (
9624
9624
  // The content must have shrunk
9625
9625
  t - e <= n.pos - i.pos || // newEnd must point directly at or after the end of the block that newStart points into
9626
- Or(i, !0, !1) < n.pos
9626
+ Lr(i, !0, !1) < n.pos
9627
9627
  )
9628
9628
  return !1;
9629
9629
  let o = a.resolve(e);
@@ -9633,10 +9633,10 @@ function J0(a, e, t, i, n) {
9633
9633
  }
9634
9634
  if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
9635
9635
  return !1;
9636
- let r = a.resolve(Or(o, !0, !0));
9637
- return !r.parent.isTextblock || r.pos > t || Or(r, !0, !1) < t ? !1 : i.parent.content.cut(i.parentOffset).eq(r.parent.content);
9636
+ let r = a.resolve(Lr(o, !0, !0));
9637
+ return !r.parent.isTextblock || r.pos > t || Lr(r, !0, !1) < t ? !1 : i.parent.content.cut(i.parentOffset).eq(r.parent.content);
9638
9638
  }
9639
- function Or(a, e, t) {
9639
+ function Lr(a, e, t) {
9640
9640
  let i = a.depth, n = e ? a.end() : a.pos;
9641
9641
  for (; i > 0 && (e || a.indexAfter(i) == a.node(i).childCount); )
9642
9642
  i--, n++, e = !1;
@@ -9680,7 +9680,7 @@ class Gg {
9680
9680
  added to the document.
9681
9681
  */
9682
9682
  constructor(e, t) {
9683
- this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new f0(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(fd), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = ud(this), ld(this), this.nodeViews = dd(this), this.docView = Ru(this.state.doc, sd(this), Nr(this), this.dom, this), this.domObserver = new I0(this, (i, n, o, r) => U0(this, i, n, o, r)), this.domObserver.start(), g0(this), this.updatePluginViews();
9683
+ this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new f0(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = t, this.state = t.state, this.directPlugins = t.plugins || [], this.directPlugins.forEach(fd), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = ud(this), ld(this), this.nodeViews = dd(this), this.docView = Ru(this.state.doc, sd(this), Or(this), this.dom, this), this.domObserver = new I0(this, (i, n, o, r) => U0(this, i, n, o, r)), this.domObserver.start(), g0(this), this.updatePluginViews();
9684
9684
  }
9685
9685
  /**
9686
9686
  Holds `true` when a
@@ -9743,7 +9743,7 @@ class Gg {
9743
9743
  X0(_, this.nodeViews) && (this.nodeViews = _, o = !0);
9744
9744
  }
9745
9745
  (s || t.handleDOMEvents != this._props.handleDOMEvents) && Ds(this), this.editable = ud(this), ld(this);
9746
- let l = Nr(this), u = sd(this), d = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", f = o || !this.docView.matchesNode(e.doc, u, l);
9746
+ let l = Or(this), u = sd(this), d = n.plugins != e.plugins && !n.doc.eq(e.doc) ? "reset" : e.scrollToSelection > n.scrollToSelection ? "to selection" : "preserve", f = o || !this.docView.matchesNode(e.doc, u, l);
9747
9747
  (f || !e.selection.eq(n.selection)) && (r = !0);
9748
9748
  let g = d == "preserve" && r && this.dom.style.overflowAnchor == null && EF(this);
9749
9749
  if (r) {
@@ -9973,7 +9973,7 @@ class Gg {
9973
9973
  views](https://prosemirror.net/docs/ref/#view.NodeView).
9974
9974
  */
9975
9975
  destroy() {
9976
- this.docView && (_0(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Nr(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, mF());
9976
+ this.docView && (_0(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Or(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, mF());
9977
9977
  }
9978
9978
  /**
9979
9979
  This is true when the view has been
@@ -10105,7 +10105,7 @@ var Ba = {
10105
10105
  220: "\\",
10106
10106
  221: "]",
10107
10107
  222: "'"
10108
- }, po = {
10108
+ }, bo = {
10109
10109
  48: ")",
10110
10110
  49: "!",
10111
10111
  50: "@",
@@ -10134,10 +10134,10 @@ var Ba = {
10134
10134
  for (var Re = 0; Re < 10; Re++) Ba[48 + Re] = Ba[96 + Re] = String(Re);
10135
10135
  for (var Re = 1; Re <= 24; Re++) Ba[Re + 111] = "F" + Re;
10136
10136
  for (var Re = 65; Re <= 90; Re++)
10137
- Ba[Re] = String.fromCharCode(Re + 32), po[Re] = String.fromCharCode(Re);
10138
- for (var Lr in Ba) po.hasOwnProperty(Lr) || (po[Lr] = Ba[Lr]);
10137
+ Ba[Re] = String.fromCharCode(Re + 32), bo[Re] = String.fromCharCode(Re);
10138
+ for (var Ir in Ba) bo.hasOwnProperty(Ir) || (bo[Ir] = Ba[Ir]);
10139
10139
  function ep(a) {
10140
- var e = Q0 && a.metaKey && a.shiftKey && !a.ctrlKey && !a.altKey || Z0 && a.shiftKey && a.key && a.key.length == 1 || a.key == "Unidentified", t = !e && a.key || (a.shiftKey ? po : Ba)[a.keyCode] || a.key || "Unidentified";
10140
+ var e = Q0 && a.metaKey && a.shiftKey && !a.ctrlKey && !a.altKey || Z0 && a.shiftKey && a.key && a.key.length == 1 || a.key == "Unidentified", t = !e && a.key || (a.shiftKey ? bo : Ba)[a.keyCode] || a.key || "Unidentified";
10141
10141
  return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
10142
10142
  }
10143
10143
  const tp = typeof navigator < "u" && /Mac|iP(hone|[oa]d)/.test(navigator.platform), ap = typeof navigator < "u" && /Win/.test(navigator.platform);
@@ -10168,7 +10168,7 @@ function np(a) {
10168
10168
  e[ip(t)] = a[t];
10169
10169
  return e;
10170
10170
  }
10171
- function Ir(a, e, t = !0) {
10171
+ function Pr(a, e, t = !0) {
10172
10172
  return e.altKey && (a = "Alt-" + a), e.ctrlKey && (a = "Ctrl-" + a), e.metaKey && (a = "Meta-" + a), t && e.shiftKey && (a = "Shift-" + a), a;
10173
10173
  }
10174
10174
  function op(a) {
@@ -10177,18 +10177,18 @@ function op(a) {
10177
10177
  function yl(a) {
10178
10178
  let e = np(a);
10179
10179
  return function(t, i) {
10180
- let n = ep(i), o, r = e[Ir(n, i)];
10180
+ let n = ep(i), o, r = e[Pr(n, i)];
10181
10181
  if (r && r(t.state, t.dispatch, t))
10182
10182
  return !0;
10183
10183
  if (n.length == 1 && n != " ") {
10184
10184
  if (i.shiftKey) {
10185
- let s = e[Ir(n, i, !1)];
10185
+ let s = e[Pr(n, i, !1)];
10186
10186
  if (s && s(t.state, t.dispatch, t))
10187
10187
  return !0;
10188
10188
  }
10189
10189
  if ((i.altKey || i.metaKey || i.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
10190
10190
  !(ap && i.ctrlKey && i.altKey) && (o = Ba[i.keyCode]) && o != n) {
10191
- let s = e[Ir(o, i)];
10191
+ let s = e[Pr(o, i)];
10192
10192
  if (s && s(t.state, t.dispatch, t))
10193
10193
  return !0;
10194
10194
  }
@@ -10200,7 +10200,7 @@ var rp = Object.defineProperty, kl = (a, e) => {
10200
10200
  for (var t in e)
10201
10201
  rp(a, t, { get: e[t], enumerable: !0 });
10202
10202
  };
10203
- function dr(a) {
10203
+ function fr(a) {
10204
10204
  const { state: e, transaction: t } = a;
10205
10205
  let { selection: i } = t, { doc: n } = t, { storedMarks: o } = t;
10206
10206
  return {
@@ -10225,7 +10225,7 @@ function dr(a) {
10225
10225
  }
10226
10226
  };
10227
10227
  }
10228
- var fr = class {
10228
+ var gr = class {
10229
10229
  constructor(a) {
10230
10230
  this.editor = a.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = a.state;
10231
10231
  }
@@ -10276,7 +10276,7 @@ var fr = class {
10276
10276
  tr: a,
10277
10277
  editor: i,
10278
10278
  view: o,
10279
- state: dr({
10279
+ state: fr({
10280
10280
  state: n,
10281
10281
  transaction: a
10282
10282
  }),
@@ -10421,12 +10421,12 @@ var cp = (a) => ({ tr: e, state: t, dispatch: i }) => {
10421
10421
  function wl(a) {
10422
10422
  return Object.prototype.toString.call(a) === "[object RegExp]";
10423
10423
  }
10424
- function bo(a, e, t = { strict: !0 }) {
10424
+ function yo(a, e, t = { strict: !0 }) {
10425
10425
  const i = Object.keys(e);
10426
10426
  return i.length ? i.every((n) => t.strict ? e[n] === a[n] : wl(e[n]) ? e[n].test(a[n]) : e[n] === a[n]) : !0;
10427
10427
  }
10428
10428
  function Xg(a, e, t = {}) {
10429
- return a.find((i) => i.type === e && bo(
10429
+ return a.find((i) => i.type === e && yo(
10430
10430
  // Only check equality for the attributes that are provided
10431
10431
  Object.fromEntries(Object.keys(t).map((n) => [n, i.attrs[n]])),
10432
10432
  t
@@ -10670,14 +10670,14 @@ var Ep = (a) => !("type" in a), Cp = (a, e, t) => ({ tr: i, dispatch: n, editor:
10670
10670
  return !0;
10671
10671
  }, Bp = () => ({ state: a, dispatch: e }) => Qm(a, e), Sp = () => ({ state: a, dispatch: e }) => Zm(a, e), jp = () => ({ state: a, dispatch: e }) => ng(a, e), qp = () => ({ state: a, dispatch: e }) => lg(a, e), Ap = () => ({ state: a, dispatch: e, tr: t }) => {
10672
10672
  try {
10673
- const i = nr(a.doc, a.selection.$from.pos, -1);
10673
+ const i = or(a.doc, a.selection.$from.pos, -1);
10674
10674
  return i == null ? !1 : (t.join(i, 2), e && e(t), !0);
10675
10675
  } catch {
10676
10676
  return !1;
10677
10677
  }
10678
10678
  }, Mp = () => ({ state: a, dispatch: e, tr: t }) => {
10679
10679
  try {
10680
- const i = nr(a.doc, a.selection.$from.pos, 1);
10680
+ const i = or(a.doc, a.selection.$from.pos, 1);
10681
10681
  return i == null ? !1 : (t.join(i, 2), e && e(t), !0);
10682
10682
  } catch {
10683
10683
  return !1;
@@ -10737,7 +10737,7 @@ function Sa(a, e, t = {}) {
10737
10737
  to: c
10738
10738
  });
10739
10739
  });
10740
- const l = n - i, u = s.filter((f) => r ? r.name === f.node.type.name : !0).filter((f) => bo(f.node.attrs, t, { strict: !1 }));
10740
+ const l = n - i, u = s.filter((f) => r ? r.name === f.node.type.name : !0).filter((f) => yo(f.node.attrs, t, { strict: !1 }));
10741
10741
  return o ? !!u.length : u.reduce((f, g) => f + g.to - g.from, 0) >= l;
10742
10742
  }
10743
10743
  var Ip = (a, e = {}) => ({ state: t, dispatch: i }) => {
@@ -10747,7 +10747,7 @@ var Ip = (a, e = {}) => ({ state: t, dispatch: i }) => {
10747
10747
  const i = qe(a, e.schema);
10748
10748
  return gF(i)(e, t);
10749
10749
  }, Rp = () => ({ state: a, dispatch: e }) => dg(a, e);
10750
- function gr(a, e) {
10750
+ function _r(a, e) {
10751
10751
  return e.nodes[a] ? "node" : e.marks[a] ? "mark" : null;
10752
10752
  }
10753
10753
  function _d(a, e) {
@@ -10756,7 +10756,7 @@ function _d(a, e) {
10756
10756
  }
10757
10757
  var $p = (a, e) => ({ tr: t, state: i, dispatch: n }) => {
10758
10758
  let o = null, r = null;
10759
- const s = gr(
10759
+ const s = _r(
10760
10760
  typeof a == "string" ? a : a.name,
10761
10761
  i.schema
10762
10762
  );
@@ -11157,7 +11157,7 @@ function a2(a, e) {
11157
11157
  return r ? { ...r.attrs } : {};
11158
11158
  }
11159
11159
  function l_(a, e) {
11160
- const t = gr(
11160
+ const t = _r(
11161
11161
  typeof e == "string" ? e : e.name,
11162
11162
  a.schema
11163
11163
  );
@@ -11258,7 +11258,7 @@ var r2 = (a, e = 500) => {
11258
11258
  function Es(a, e, t = {}) {
11259
11259
  const { empty: i, ranges: n } = a.selection, o = e ? ra(e, a.schema) : null;
11260
11260
  if (i)
11261
- return !!(a.storedMarks || a.selection.$from.marks()).filter((f) => o ? o.name === f.type.name : !0).find((f) => bo(f.attrs, t, { strict: !1 }));
11261
+ return !!(a.storedMarks || a.selection.$from.marks()).filter((f) => o ? o.name === f.type.name : !0).find((f) => yo(f.attrs, t, { strict: !1 }));
11262
11262
  let r = 0;
11263
11263
  const s = [];
11264
11264
  if (n.forEach(({ $from: f, $to: g }) => {
@@ -11279,13 +11279,13 @@ function Es(a, e, t = {}) {
11279
11279
  });
11280
11280
  }), r === 0)
11281
11281
  return !1;
11282
- const l = s.filter((f) => o ? o.name === f.mark.type.name : !0).filter((f) => bo(f.mark.attrs, t, { strict: !1 })).reduce((f, g) => f + g.to - g.from, 0), u = s.filter((f) => o ? f.mark.type !== o && f.mark.type.excludes(o) : !0).reduce((f, g) => f + g.to - g.from, 0);
11282
+ const l = s.filter((f) => o ? o.name === f.mark.type.name : !0).filter((f) => yo(f.mark.attrs, t, { strict: !1 })).reduce((f, g) => f + g.to - g.from, 0), u = s.filter((f) => o ? f.mark.type !== o && f.mark.type.excludes(o) : !0).reduce((f, g) => f + g.to - g.from, 0);
11283
11283
  return (l > 0 ? l + u : l) >= r;
11284
11284
  }
11285
11285
  function Wi(a, e, t = {}) {
11286
11286
  if (!e)
11287
11287
  return Sa(a, null, t) || Es(a, null, t);
11288
- const i = gr(e, a.schema);
11288
+ const i = _r(e, a.schema);
11289
11289
  return i === "node" ? Sa(a, e, t) : i === "mark" ? Es(a, e, t) : !1;
11290
11290
  }
11291
11291
  var s2 = (a, e) => {
@@ -11316,7 +11316,7 @@ function pd(a, e) {
11316
11316
  }, o = pe(re(i, "group", n));
11317
11317
  return typeof o != "string" ? !1 : o.split(" ").includes("list");
11318
11318
  }
11319
- function _r(a, {
11319
+ function cr(a, {
11320
11320
  checkChildren: e = !0,
11321
11321
  ignoreWhitespace: t = !1
11322
11322
  } = {}) {
@@ -11336,7 +11336,7 @@ function _r(a, {
11336
11336
  if (e) {
11337
11337
  let n = !0;
11338
11338
  return a.content.forEach((o) => {
11339
- n !== !1 && (_r(o, { ignoreWhitespace: t, checkChildren: e }) || (n = !1));
11339
+ n !== !1 && (cr(o, { ignoreWhitespace: t, checkChildren: e }) || (n = !1));
11340
11340
  }), n;
11341
11341
  }
11342
11342
  return !1;
@@ -11373,7 +11373,7 @@ function u2(a, e) {
11373
11373
  function d2(a) {
11374
11374
  return new d_(a);
11375
11375
  }
11376
- function yo(a, e, t) {
11376
+ function ko(a, e, t) {
11377
11377
  const n = a.state.doc.content.size, o = aa(e, 0, n), r = aa(t, 0, n), s = a.coordsAtPos(o), l = a.coordsAtPos(r, -1), u = Math.min(s.top, l.top), d = Math.max(s.bottom, l.bottom), f = Math.min(s.left, l.left), g = Math.max(s.right, l.right), _ = g - f, c = d - u, F = {
11378
11378
  top: u,
11379
11379
  bottom: d,
@@ -11560,7 +11560,7 @@ var b2 = ({ keepMarks: a = !0 } = {}) => ({ tr: e, state: t, dispatch: i, editor
11560
11560
  t.ensureMarks(E);
11561
11561
  }
11562
11562
  return !0;
11563
- }, Pr = (a, e) => {
11563
+ }, zr = (a, e) => {
11564
11564
  const t = si((r) => r.type === e)(a.selection);
11565
11565
  if (!t)
11566
11566
  return !0;
@@ -11569,7 +11569,7 @@ var b2 = ({ keepMarks: a = !0 } = {}) => ({ tr: e, state: t, dispatch: i, editor
11569
11569
  return !0;
11570
11570
  const n = a.doc.nodeAt(i);
11571
11571
  return t.node.type === n?.type && Ta(a.doc, t.pos) && a.join(t.pos), !0;
11572
- }, zr = (a, e) => {
11572
+ }, Rr = (a, e) => {
11573
11573
  const t = si((r) => r.type === e)(a.selection);
11574
11574
  if (!t)
11575
11575
  return !0;
@@ -11587,12 +11587,12 @@ var b2 = ({ keepMarks: a = !0 } = {}) => ({ tr: e, state: t, dispatch: i, editor
11587
11587
  if (E.node.type === _)
11588
11588
  return u.liftListItem(c);
11589
11589
  if (pd(E.node.type.name, f) && _.validContent(E.node.content) && s)
11590
- return l().command(() => (o.setNodeMarkup(E.pos, _), !0)).command(() => Pr(o, _)).command(() => zr(o, _)).run();
11590
+ return l().command(() => (o.setNodeMarkup(E.pos, _), !0)).command(() => zr(o, _)).command(() => Rr(o, _)).run();
11591
11591
  }
11592
- return !t || !x || !s ? l().command(() => d().wrapInList(_, i) ? !0 : u.clearNodes()).wrapInList(_, i).command(() => Pr(o, _)).command(() => zr(o, _)).run() : l().command(() => {
11592
+ return !t || !x || !s ? l().command(() => d().wrapInList(_, i) ? !0 : u.clearNodes()).wrapInList(_, i).command(() => zr(o, _)).command(() => Rr(o, _)).run() : l().command(() => {
11593
11593
  const S = d().wrapInList(_, i), j = x.filter((q) => g.includes(q.type.name));
11594
11594
  return o.ensureMarks(j), S ? !0 : u.clearNodes();
11595
- }).wrapInList(_, i).command(() => Pr(o, _)).command(() => zr(o, _)).run();
11595
+ }).wrapInList(_, i).command(() => zr(o, _)).command(() => Rr(o, _)).run();
11596
11596
  }, w2 = (a, e = {}, t = {}) => ({ state: i, commands: n }) => {
11597
11597
  const { extendEmptyMarkRange: o = !1 } = t, r = ra(a, i.schema);
11598
11598
  return Es(i, r, e) ? n.unsetMark(r, { extendEmptyMarkRange: o }) : n.setMark(r, e);
@@ -11653,7 +11653,7 @@ var b2 = ({ keepMarks: a = !0 } = {}) => ({ tr: e, state: t, dispatch: i, editor
11653
11653
  }), !0;
11654
11654
  }, S2 = (a, e = {}) => ({ tr: t, state: i, dispatch: n }) => {
11655
11655
  let o = null, r = null;
11656
- const s = gr(
11656
+ const s = _r(
11657
11657
  typeof a == "string" ? a : a.name,
11658
11658
  i.schema
11659
11659
  );
@@ -11727,7 +11727,7 @@ var b2 = ({ keepMarks: a = !0 } = {}) => ({ tr: e, state: t, dispatch: i, editor
11727
11727
  removeAllListeners() {
11728
11728
  this.callbacks = {};
11729
11729
  }
11730
- }, cr = class {
11730
+ }, hr = class {
11731
11731
  constructor(a) {
11732
11732
  var e;
11733
11733
  this.find = a.find, this.handler = a.handler, this.undoable = (e = a.undoable) != null ? e : !0;
@@ -11760,13 +11760,13 @@ function Mn(a) {
11760
11760
  const _ = M2(f, g.find);
11761
11761
  if (!_)
11762
11762
  return;
11763
- const c = l.state.tr, h = dr({
11763
+ const c = l.state.tr, h = fr({
11764
11764
  state: l.state,
11765
11765
  transaction: c
11766
11766
  }), m = {
11767
11767
  from: i - (_[0].length - o.length),
11768
11768
  to: n
11769
- }, { commands: F, chain: b, can: k } = new fr({
11769
+ }, { commands: F, chain: b, can: k } = new gr({
11770
11770
  editor: t,
11771
11771
  state: h
11772
11772
  });
@@ -11956,7 +11956,7 @@ var L2 = class {
11956
11956
  }) : [];
11957
11957
  };
11958
11958
  function P2(a) {
11959
- const { editor: e, state: t, from: i, to: n, rule: o, pasteEvent: r, dropEvent: s } = a, { commands: l, chain: u, can: d } = new fr({
11959
+ const { editor: e, state: t, from: i, to: n, rule: o, pasteEvent: r, dropEvent: s } = a, { commands: l, chain: u, can: d } = new gr({
11960
11960
  editor: e,
11961
11961
  state: t
11962
11962
  }), f = [];
@@ -12010,7 +12010,7 @@ function R2(a) {
12010
12010
  rule: _,
12011
12011
  pasteEvt: c
12012
12012
  }) => {
12013
- const h = d.tr, m = dr({
12013
+ const h = d.tr, m = fr({
12014
12014
  state: d,
12015
12015
  transaction: h
12016
12016
  });
@@ -12093,7 +12093,7 @@ function R2(a) {
12093
12093
  }
12094
12094
  }));
12095
12095
  }
12096
- var hr = class {
12096
+ var mr = class {
12097
12097
  constructor(a, e) {
12098
12098
  this.splittableMarks = [], this.editor = e, this.baseExtensions = a, this.extensions = o_(a), this.schema = e2(this.extensions, e), this.setupExtensions();
12099
12099
  }
@@ -12332,9 +12332,9 @@ var hr = class {
12332
12332
  });
12333
12333
  }
12334
12334
  };
12335
- hr.resolve = o_;
12336
- hr.sort = Zi;
12337
- hr.flatten = Cl;
12335
+ mr.resolve = o_;
12336
+ mr.sort = Zi;
12337
+ mr.flatten = Cl;
12338
12338
  var $2 = {};
12339
12339
  kl($2, {
12340
12340
  ClipboardTextSerializer: () => h_,
@@ -12572,12 +12572,12 @@ var ve = class c_ extends Al {
12572
12572
  if (!i || n)
12573
12573
  return;
12574
12574
  const { empty: o, from: r, to: s } = e.selection, l = le.atStart(e.doc).from, u = le.atEnd(e.doc).to;
12575
- if (o || !(r === l && s === u) || !_r(t.doc))
12575
+ if (o || !(r === l && s === u) || !cr(t.doc))
12576
12576
  return;
12577
- const g = t.tr, _ = dr({
12577
+ const g = t.tr, _ = fr({
12578
12578
  state: t,
12579
12579
  transaction: g
12580
- }), { commands: c } = new fr({
12580
+ }), { commands: c } = new gr({
12581
12581
  editor: this.editor,
12582
12582
  state: _
12583
12583
  });
@@ -13085,13 +13085,13 @@ var U2 = class extends A2 {
13085
13085
  direction: this.options.textDirection
13086
13086
  })
13087
13087
  ].filter((o) => typeof this.options.enableCoreExtensions == "object" ? this.options.enableCoreExtensions[o.name] !== !1 : !0) : [], ...this.options.extensions].filter((o) => ["extension", "node", "mark"].includes(o?.type));
13088
- this.extensionManager = new hr(n, this);
13088
+ this.extensionManager = new mr(n, this);
13089
13089
  }
13090
13090
  /**
13091
13091
  * Creates an command manager.
13092
13092
  */
13093
13093
  createCommandManager() {
13094
- this.commandManager = new fr({
13094
+ this.commandManager = new gr({
13095
13095
  editor: this
13096
13096
  });
13097
13097
  }
@@ -13262,7 +13262,7 @@ var U2 = class extends A2 {
13262
13262
  * Check if there is no content.
13263
13263
  */
13264
13264
  get isEmpty() {
13265
- return _r(this.state.doc);
13265
+ return cr(this.state.doc);
13266
13266
  }
13267
13267
  /**
13268
13268
  * Destroy the editor.
@@ -13294,7 +13294,7 @@ var U2 = class extends A2 {
13294
13294
  }
13295
13295
  };
13296
13296
  function Ei(a) {
13297
- return new cr({
13297
+ return new hr({
13298
13298
  find: a.find,
13299
13299
  handler: ({ state: e, range: t, match: i }) => {
13300
13300
  const n = pe(a.getAttributes, void 0, i);
@@ -13314,7 +13314,7 @@ function Ei(a) {
13314
13314
  });
13315
13315
  }
13316
13316
  function K2(a) {
13317
- return new cr({
13317
+ return new hr({
13318
13318
  find: a.find,
13319
13319
  handler: ({ state: e, range: t, match: i }) => {
13320
13320
  const n = pe(a.getAttributes, void 0, i) || {}, { tr: o } = e, r = t.from;
@@ -13336,7 +13336,7 @@ function K2(a) {
13336
13336
  });
13337
13337
  }
13338
13338
  function Cs(a) {
13339
- return new cr({
13339
+ return new hr({
13340
13340
  find: a.find,
13341
13341
  handler: ({ state: e, range: t, match: i }) => {
13342
13342
  const n = e.doc.resolve(t.from), o = pe(a.getAttributes, void 0, i) || {};
@@ -13348,7 +13348,7 @@ function Cs(a) {
13348
13348
  });
13349
13349
  }
13350
13350
  function Ci(a) {
13351
- return new cr({
13351
+ return new hr({
13352
13352
  find: a.find,
13353
13353
  handler: ({ state: e, range: t, match: i, chain: n }) => {
13354
13354
  const o = pe(a.getAttributes, void 0, i) || {}, r = e.tr.delete(t.from, t.to), l = r.doc.resolve(t.from).blockRange(), u = l && nl(l, a.type, o);
@@ -14279,7 +14279,7 @@ function rt(a, e) {
14279
14279
  return new r3(i, t, e);
14280
14280
  };
14281
14281
  }
14282
- var ko = (a, e) => {
14282
+ var wo = (a, e) => {
14283
14283
  if (a === "slot")
14284
14284
  return 0;
14285
14285
  if (a instanceof Function)
@@ -14302,7 +14302,7 @@ var ko = (a, e) => {
14302
14302
  return [{ tag: "blockquote" }];
14303
14303
  },
14304
14304
  renderHTML({ HTMLAttributes: a }) {
14305
- return /* @__PURE__ */ ko("blockquote", { ...fe(this.options.HTMLAttributes, a), children: /* @__PURE__ */ ko("slot", {}) });
14305
+ return /* @__PURE__ */ wo("blockquote", { ...fe(this.options.HTMLAttributes, a), children: /* @__PURE__ */ wo("slot", {}) });
14306
14306
  },
14307
14307
  parseMarkdown: (a, e) => {
14308
14308
  var t;
@@ -14370,7 +14370,7 @@ ${t}
14370
14370
  ];
14371
14371
  },
14372
14372
  renderHTML({ HTMLAttributes: a }) {
14373
- return /* @__PURE__ */ ko("strong", { ...fe(this.options.HTMLAttributes, a), children: /* @__PURE__ */ ko("slot", {}) });
14373
+ return /* @__PURE__ */ wo("strong", { ...fe(this.options.HTMLAttributes, a), children: /* @__PURE__ */ wo("slot", {}) });
14374
14374
  },
14375
14375
  markdownTokenName: "strong",
14376
14376
  parseMarkdown: (a, e) => e.applyMark("bold", e.parseInline(a.tokens || [])),
@@ -14465,7 +14465,7 @@ ${t}
14465
14465
  })
14466
14466
  ];
14467
14467
  }
14468
- }), Rr = 4, F3 = /^```([a-z]+)?[\s\n]$/, p3 = /^~~~([a-z]+)?[\s\n]$/, b3 = Fe.create({
14468
+ }), $r = 4, F3 = /^```([a-z]+)?[\s\n]$/, p3 = /^~~~([a-z]+)?[\s\n]$/, b3 = Fe.create({
14469
14469
  name: "codeBlock",
14470
14470
  addOptions() {
14471
14471
  return {
@@ -14474,7 +14474,7 @@ ${t}
14474
14474
  exitOnArrowDown: !0,
14475
14475
  defaultLanguage: null,
14476
14476
  enableTabIndentation: !1,
14477
- tabSize: Rr,
14477
+ tabSize: $r,
14478
14478
  HTMLAttributes: {}
14479
14479
  };
14480
14480
  },
@@ -14557,7 +14557,7 @@ ${t}
14557
14557
  var e;
14558
14558
  if (!this.options.enableTabIndentation)
14559
14559
  return !1;
14560
- const t = (e = this.options.tabSize) != null ? e : Rr, { state: i } = a, { selection: n } = i, { $from: o, empty: r } = n;
14560
+ const t = (e = this.options.tabSize) != null ? e : $r, { state: i } = a, { selection: n } = i, { $from: o, empty: r } = n;
14561
14561
  if (o.parent.type !== this.type)
14562
14562
  return !1;
14563
14563
  const s = " ".repeat(t);
@@ -14575,7 +14575,7 @@ ${t}
14575
14575
  var e;
14576
14576
  if (!this.options.enableTabIndentation)
14577
14577
  return !1;
14578
- const t = (e = this.options.tabSize) != null ? e : Rr, { state: i } = a, { selection: n } = i, { $from: o, empty: r } = n;
14578
+ const t = (e = this.options.tabSize) != null ? e : $r, { state: i } = a, { selection: n } = i, { $from: o, empty: r } = n;
14579
14579
  return o.parent.type !== this.type ? !1 : r ? a.commands.command(({ tr: s }) => {
14580
14580
  var l;
14581
14581
  const { pos: u } = o, d = o.start(), f = o.end(), _ = i.doc.textBetween(d, f, `
@@ -14918,7 +14918,7 @@ ${t}
14918
14918
  ];
14919
14919
  }
14920
14920
  });
14921
- const B3 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", S3 = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ss = "numeric", js = "ascii", qs = "alpha", en = "asciinumeric", Ki = "alphanumeric", As = "domain", B_ = "emoji", j3 = "scheme", q3 = "slashscheme", $r = "whitespace";
14921
+ const B3 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", S3 = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Ss = "numeric", js = "ascii", qs = "alpha", en = "asciinumeric", Ki = "alphanumeric", As = "domain", B_ = "emoji", j3 = "scheme", q3 = "slashscheme", Hr = "whitespace";
14922
14922
  function A3(a, e) {
14923
14923
  return a in e || (e[a] = []), e[a];
14924
14924
  }
@@ -15059,73 +15059,73 @@ lt.prototype = {
15059
15059
  return n.j[a] = r, r;
15060
15060
  }
15061
15061
  };
15062
- const de = (a, e, t, i, n) => a.ta(e, t, i, n), je = (a, e, t, i, n) => a.tr(e, t, i, n), kd = (a, e, t, i, n) => a.ts(e, t, i, n), H = (a, e, t, i, n) => a.tt(e, t, i, n), Xt = "WORD", Ms = "UWORD", S_ = "ASCIINUMERICAL", j_ = "ALPHANUMERICAL", bn = "LOCALHOST", Ts = "TLD", Ns = "UTLD", Zn = "SCHEME", hi = "SLASH_SCHEME", Ol = "NUM", Os = "WS", Ll = "NL", tn = "OPENBRACE", an = "CLOSEBRACE", wo = "OPENBRACKET", Do = "CLOSEBRACKET", vo = "OPENPAREN", xo = "CLOSEPAREN", Eo = "OPENANGLEBRACKET", Co = "CLOSEANGLEBRACKET", Bo = "FULLWIDTHLEFTPAREN", So = "FULLWIDTHRIGHTPAREN", jo = "LEFTCORNERBRACKET", qo = "RIGHTCORNERBRACKET", Ao = "LEFTWHITECORNERBRACKET", Mo = "RIGHTWHITECORNERBRACKET", To = "FULLWIDTHLESSTHAN", No = "FULLWIDTHGREATERTHAN", Oo = "AMPERSAND", Lo = "APOSTROPHE", Io = "ASTERISK", ma = "AT", Po = "BACKSLASH", zo = "BACKTICK", Ro = "CARET", ya = "COLON", Il = "COMMA", $o = "DOLLAR", Ot = "DOT", Ho = "EQUALS", Pl = "EXCLAMATION", yt = "HYPHEN", nn = "PERCENT", Vo = "PIPE", Wo = "PLUS", Uo = "POUND", on = "QUERY", zl = "QUOTE", q_ = "FULLWIDTHMIDDLEDOT", Rl = "SEMI", Lt = "SLASH", rn = "TILDE", Ko = "UNDERSCORE", A_ = "EMOJI", Jo = "SYM";
15062
+ const de = (a, e, t, i, n) => a.ta(e, t, i, n), je = (a, e, t, i, n) => a.tr(e, t, i, n), kd = (a, e, t, i, n) => a.ts(e, t, i, n), H = (a, e, t, i, n) => a.tt(e, t, i, n), Xt = "WORD", Ms = "UWORD", S_ = "ASCIINUMERICAL", j_ = "ALPHANUMERICAL", bn = "LOCALHOST", Ts = "TLD", Ns = "UTLD", Zn = "SCHEME", hi = "SLASH_SCHEME", Ol = "NUM", Os = "WS", Ll = "NL", tn = "OPENBRACE", an = "CLOSEBRACE", Do = "OPENBRACKET", vo = "CLOSEBRACKET", xo = "OPENPAREN", Eo = "CLOSEPAREN", Co = "OPENANGLEBRACKET", Bo = "CLOSEANGLEBRACKET", So = "FULLWIDTHLEFTPAREN", jo = "FULLWIDTHRIGHTPAREN", qo = "LEFTCORNERBRACKET", Ao = "RIGHTCORNERBRACKET", Mo = "LEFTWHITECORNERBRACKET", To = "RIGHTWHITECORNERBRACKET", No = "FULLWIDTHLESSTHAN", Oo = "FULLWIDTHGREATERTHAN", Lo = "AMPERSAND", Io = "APOSTROPHE", Po = "ASTERISK", ma = "AT", zo = "BACKSLASH", Ro = "BACKTICK", $o = "CARET", ya = "COLON", Il = "COMMA", Ho = "DOLLAR", Ot = "DOT", Vo = "EQUALS", Pl = "EXCLAMATION", yt = "HYPHEN", nn = "PERCENT", Wo = "PIPE", Uo = "PLUS", Ko = "POUND", on = "QUERY", zl = "QUOTE", q_ = "FULLWIDTHMIDDLEDOT", Rl = "SEMI", Lt = "SLASH", rn = "TILDE", Jo = "UNDERSCORE", A_ = "EMOJI", Go = "SYM";
15063
15063
  var M_ = /* @__PURE__ */ Object.freeze({
15064
15064
  __proto__: null,
15065
15065
  ALPHANUMERICAL: j_,
15066
- AMPERSAND: Oo,
15067
- APOSTROPHE: Lo,
15066
+ AMPERSAND: Lo,
15067
+ APOSTROPHE: Io,
15068
15068
  ASCIINUMERICAL: S_,
15069
- ASTERISK: Io,
15069
+ ASTERISK: Po,
15070
15070
  AT: ma,
15071
- BACKSLASH: Po,
15072
- BACKTICK: zo,
15073
- CARET: Ro,
15074
- CLOSEANGLEBRACKET: Co,
15071
+ BACKSLASH: zo,
15072
+ BACKTICK: Ro,
15073
+ CARET: $o,
15074
+ CLOSEANGLEBRACKET: Bo,
15075
15075
  CLOSEBRACE: an,
15076
- CLOSEBRACKET: Do,
15077
- CLOSEPAREN: xo,
15076
+ CLOSEBRACKET: vo,
15077
+ CLOSEPAREN: Eo,
15078
15078
  COLON: ya,
15079
15079
  COMMA: Il,
15080
- DOLLAR: $o,
15080
+ DOLLAR: Ho,
15081
15081
  DOT: Ot,
15082
15082
  EMOJI: A_,
15083
- EQUALS: Ho,
15083
+ EQUALS: Vo,
15084
15084
  EXCLAMATION: Pl,
15085
- FULLWIDTHGREATERTHAN: No,
15086
- FULLWIDTHLEFTPAREN: Bo,
15087
- FULLWIDTHLESSTHAN: To,
15085
+ FULLWIDTHGREATERTHAN: Oo,
15086
+ FULLWIDTHLEFTPAREN: So,
15087
+ FULLWIDTHLESSTHAN: No,
15088
15088
  FULLWIDTHMIDDLEDOT: q_,
15089
- FULLWIDTHRIGHTPAREN: So,
15089
+ FULLWIDTHRIGHTPAREN: jo,
15090
15090
  HYPHEN: yt,
15091
- LEFTCORNERBRACKET: jo,
15092
- LEFTWHITECORNERBRACKET: Ao,
15091
+ LEFTCORNERBRACKET: qo,
15092
+ LEFTWHITECORNERBRACKET: Mo,
15093
15093
  LOCALHOST: bn,
15094
15094
  NL: Ll,
15095
15095
  NUM: Ol,
15096
- OPENANGLEBRACKET: Eo,
15096
+ OPENANGLEBRACKET: Co,
15097
15097
  OPENBRACE: tn,
15098
- OPENBRACKET: wo,
15099
- OPENPAREN: vo,
15098
+ OPENBRACKET: Do,
15099
+ OPENPAREN: xo,
15100
15100
  PERCENT: nn,
15101
- PIPE: Vo,
15102
- PLUS: Wo,
15103
- POUND: Uo,
15101
+ PIPE: Wo,
15102
+ PLUS: Uo,
15103
+ POUND: Ko,
15104
15104
  QUERY: on,
15105
15105
  QUOTE: zl,
15106
- RIGHTCORNERBRACKET: qo,
15107
- RIGHTWHITECORNERBRACKET: Mo,
15106
+ RIGHTCORNERBRACKET: Ao,
15107
+ RIGHTWHITECORNERBRACKET: To,
15108
15108
  SCHEME: Zn,
15109
15109
  SEMI: Rl,
15110
15110
  SLASH: Lt,
15111
15111
  SLASH_SCHEME: hi,
15112
- SYM: Jo,
15112
+ SYM: Go,
15113
15113
  TILDE: rn,
15114
15114
  TLD: Ts,
15115
- UNDERSCORE: Ko,
15115
+ UNDERSCORE: Jo,
15116
15116
  UTLD: Ns,
15117
15117
  UWORD: Ms,
15118
15118
  WORD: Xt,
15119
15119
  WS: Os
15120
15120
  });
15121
- const Gt = /[a-z]/, Li = new RegExp("\\p{L}", "u"), Hr = new RegExp("\\p{Emoji}", "u"), Yt = /\d/, Vr = /\s/, wd = "\r", Wr = `
15122
- `, T3 = "️", N3 = "‍", Ur = "";
15121
+ const Gt = /[a-z]/, Li = new RegExp("\\p{L}", "u"), Vr = new RegExp("\\p{Emoji}", "u"), Yt = /\d/, Wr = /\s/, wd = "\r", Ur = `
15122
+ `, T3 = "️", N3 = "‍", Kr = "";
15123
15123
  let On = null, Ln = null;
15124
15124
  function O3(a = []) {
15125
15125
  const e = {};
15126
15126
  lt.groups = e;
15127
15127
  const t = new lt();
15128
- On == null && (On = Dd(B3)), Ln == null && (Ln = Dd(S3)), H(t, "'", Lo), H(t, "{", tn), H(t, "}", an), H(t, "[", wo), H(t, "]", Do), H(t, "(", vo), H(t, ")", xo), H(t, "<", Eo), H(t, ">", Co), H(t, "(", Bo), H(t, ")", So), H(t, "「", jo), H(t, "」", qo), H(t, "『", Ao), H(t, "』", Mo), H(t, "<", To), H(t, ">", No), H(t, "&", Oo), H(t, "*", Io), H(t, "@", ma), H(t, "`", zo), H(t, "^", Ro), H(t, ":", ya), H(t, ",", Il), H(t, "$", $o), H(t, ".", Ot), H(t, "=", Ho), H(t, "!", Pl), H(t, "-", yt), H(t, "%", nn), H(t, "|", Vo), H(t, "+", Wo), H(t, "#", Uo), H(t, "?", on), H(t, '"', zl), H(t, "/", Lt), H(t, ";", Rl), H(t, "~", rn), H(t, "_", Ko), H(t, "\\", Po), H(t, "・", q_);
15128
+ On == null && (On = Dd(B3)), Ln == null && (Ln = Dd(S3)), H(t, "'", Io), H(t, "{", tn), H(t, "}", an), H(t, "[", Do), H(t, "]", vo), H(t, "(", xo), H(t, ")", Eo), H(t, "<", Co), H(t, ">", Bo), H(t, "(", So), H(t, ")", jo), H(t, "「", qo), H(t, "」", Ao), H(t, "『", Mo), H(t, "』", To), H(t, "<", No), H(t, ">", Oo), H(t, "&", Lo), H(t, "*", Po), H(t, "@", ma), H(t, "`", Ro), H(t, "^", $o), H(t, ":", ya), H(t, ",", Il), H(t, "$", Ho), H(t, ".", Ot), H(t, "=", Vo), H(t, "!", Pl), H(t, "-", yt), H(t, "%", nn), H(t, "|", Wo), H(t, "+", Uo), H(t, "#", Ko), H(t, "?", on), H(t, '"', zl), H(t, "/", Lt), H(t, ";", Rl), H(t, "~", rn), H(t, "_", Jo), H(t, "\\", zo), H(t, "・", q_);
15129
15129
  const i = je(t, Yt, Ol, {
15130
15130
  [Ss]: !0
15131
15131
  });
@@ -15142,20 +15142,20 @@ function O3(a = []) {
15142
15142
  [qs]: !0
15143
15143
  });
15144
15144
  je(s, Gt), je(s, Yt, o), je(s, Li, s), je(o, Yt, o), je(o, Gt), je(o, Li, o);
15145
- const l = H(t, Wr, Ll, {
15146
- [$r]: !0
15145
+ const l = H(t, Ur, Ll, {
15146
+ [Hr]: !0
15147
15147
  }), u = H(t, wd, Os, {
15148
- [$r]: !0
15149
- }), d = je(t, Vr, Os, {
15150
- [$r]: !0
15148
+ [Hr]: !0
15149
+ }), d = je(t, Wr, Os, {
15150
+ [Hr]: !0
15151
15151
  });
15152
- H(t, Ur, d), H(u, Wr, l), H(u, Ur, d), je(u, Vr, d), H(d, wd), H(d, Wr), je(d, Vr, d), H(d, Ur, d);
15153
- const f = je(t, Hr, A_, {
15152
+ H(t, Kr, d), H(u, Ur, l), H(u, Kr, d), je(u, Wr, d), H(d, wd), H(d, Ur), je(d, Wr, d), H(d, Kr, d);
15153
+ const f = je(t, Vr, A_, {
15154
15154
  [B_]: !0
15155
15155
  });
15156
- H(f, "#"), je(f, Hr, f), H(f, T3, f);
15156
+ H(f, "#"), je(f, Vr, f), H(f, T3, f);
15157
15157
  const g = H(f, N3);
15158
- H(g, "#"), je(g, Hr, f);
15158
+ H(g, "#"), je(g, Vr, f);
15159
15159
  const _ = [[Gt, r], [Yt, n]], c = [[Gt, null], [Li, s], [Yt, o]];
15160
15160
  for (let h = 0; h < On.length; h++)
15161
15161
  ga(t, On[h], Ts, Xt, _);
@@ -15184,7 +15184,7 @@ function O3(a = []) {
15184
15184
  }
15185
15185
  return kd(t, "localhost", bn, {
15186
15186
  ascii: !0
15187
- }), t.jd = new lt(Jo), {
15187
+ }), t.jd = new lt(Go), {
15188
15188
  start: t,
15189
15189
  tokens: Object.assign({
15190
15190
  groups: e
@@ -15442,7 +15442,7 @@ N_.prototype = {
15442
15442
  };
15443
15443
  }
15444
15444
  };
15445
- function mr(a, e) {
15445
+ function Fr(a, e) {
15446
15446
  class t extends N_ {
15447
15447
  constructor(n, o) {
15448
15448
  super(n, o), this.t = a;
@@ -15452,12 +15452,12 @@ function mr(a, e) {
15452
15452
  t.prototype[i] = e[i];
15453
15453
  return t.t = a, t;
15454
15454
  }
15455
- const xd = mr("email", {
15455
+ const xd = Fr("email", {
15456
15456
  isLink: !0,
15457
15457
  toHref() {
15458
15458
  return "mailto:" + this.toString();
15459
15459
  }
15460
- }), Ed = mr("text"), I3 = mr("nl"), In = mr("url", {
15460
+ }), Ed = Fr("text"), I3 = Fr("nl"), In = Fr("url", {
15461
15461
  isLink: !0,
15462
15462
  /**
15463
15463
  Lowercases relevant parts of the domain and adds the protocol if
@@ -15481,7 +15481,7 @@ const xd = mr("email", {
15481
15481
  function P3({
15482
15482
  groups: a
15483
15483
  }) {
15484
- const e = a.domain.concat([Oo, Io, ma, Po, zo, Ro, $o, Ho, yt, Ol, nn, Vo, Wo, Uo, Lt, Jo, rn, Ko]), t = [Lo, ya, Il, Ot, Pl, nn, on, zl, Rl, Eo, Co, tn, an, Do, wo, vo, xo, Bo, So, jo, qo, Ao, Mo, To, No], i = [Oo, Lo, Io, Po, zo, Ro, $o, Ho, yt, tn, an, nn, Vo, Wo, Uo, on, Lt, Jo, rn, Ko], n = bt(), o = H(n, rn);
15484
+ const e = a.domain.concat([Lo, Po, ma, zo, Ro, $o, Ho, Vo, yt, Ol, nn, Wo, Uo, Ko, Lt, Go, rn, Jo]), t = [Io, ya, Il, Ot, Pl, nn, on, zl, Rl, Co, Bo, tn, an, vo, Do, xo, Eo, So, jo, qo, Ao, Mo, To, No, Oo], i = [Lo, Io, Po, zo, Ro, $o, Ho, Vo, yt, tn, an, nn, Wo, Uo, Ko, on, Lt, Go, rn, Jo], n = bt(), o = H(n, rn);
15485
15485
  de(o, i, o), de(o, a.domain, o);
15486
15486
  const r = bt(), s = bt(), l = bt();
15487
15487
  de(n, a.domain, r), de(n, a.scheme, s), de(n, a.slashscheme, l), de(r, i, o), de(r, a.domain, r);
@@ -15512,19 +15512,19 @@ function P3({
15512
15512
  const R = [
15513
15513
  [tn, an],
15514
15514
  // {}
15515
- [wo, Do],
15515
+ [Do, vo],
15516
15516
  // []
15517
- [vo, xo],
15517
+ [xo, Eo],
15518
15518
  // ()
15519
- [Eo, Co],
15519
+ [Co, Bo],
15520
15520
  // <>
15521
- [Bo, So],
15521
+ [So, jo],
15522
15522
  // ()
15523
- [jo, qo],
15523
+ [qo, Ao],
15524
15524
  // 「」
15525
- [Ao, Mo],
15525
+ [Mo, To],
15526
15526
  // 『』
15527
- [To, No]
15527
+ [No, Oo]
15528
15528
  // <>
15529
15529
  ];
15530
15530
  for (let K = 0; K < R.length; K++) {
@@ -15551,14 +15551,14 @@ function z3(a, e, t) {
15551
15551
  if (g < 0)
15552
15552
  n -= d, n < i && (r.push(t[n]), n++);
15553
15553
  else {
15554
- r.length > 0 && (o.push(Kr(Ed, e, r)), r = []), n -= g, d -= g;
15554
+ r.length > 0 && (o.push(Jr(Ed, e, r)), r = []), n -= g, d -= g;
15555
15555
  const _ = f.t, c = t.slice(n - d, n);
15556
- o.push(Kr(_, e, c));
15556
+ o.push(Jr(_, e, c));
15557
15557
  }
15558
15558
  }
15559
- return r.length > 0 && o.push(Kr(Ed, e, r)), o;
15559
+ return r.length > 0 && o.push(Jr(Ed, e, r)), o;
15560
15560
  }
15561
- function Kr(a, e, t) {
15561
+ function Jr(a, e, t) {
15562
15562
  const i = t[0].s, n = t[t.length - 1].e, o = e.slice(i, n);
15563
15563
  return new a(o, t);
15564
15564
  }
@@ -16635,7 +16635,7 @@ ve.create({
16635
16635
  return this.options.bulletList !== !1 && a.push(I_.configure(this.options.bulletList)), this.options.listItem !== !1 && a.push(P_.configure(this.options.listItem)), this.options.listKeymap !== !1 && a.push(W_.configure(this.options.listKeymap)), this.options.orderedList !== !1 && a.push(K_.configure(this.options.orderedList)), this.options.taskItem !== !1 && a.push(ub.configure(this.options.taskItem)), this.options.taskList !== !1 && a.push(db.configure(this.options.taskList)), a;
16636
16636
  }
16637
16637
  });
16638
- var Pn = "&nbsp;", Jr = " ", fb = Fe.create({
16638
+ var Pn = "&nbsp;", Gr = " ", fb = Fe.create({
16639
16639
  name: "paragraph",
16640
16640
  priority: 1e3,
16641
16641
  addOptions() {
@@ -16656,7 +16656,7 @@ var Pn = "&nbsp;", Jr = " ", fb = Fe.create({
16656
16656
  if (t.length === 1 && t[0].type === "image")
16657
16657
  return e.parseChildren([t[0]]);
16658
16658
  const i = e.parseInline(t);
16659
- return t.length === 1 && t[0].type === "text" && (t[0].raw === Pn || t[0].text === Pn || t[0].raw === Jr || t[0].text === Jr) && i.length === 1 && i[0].type === "text" && (i[0].text === Pn || i[0].text === Jr) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, i);
16659
+ return t.length === 1 && t[0].type === "text" && (t[0].raw === Pn || t[0].text === Pn || t[0].raw === Gr || t[0].text === Gr) && i.length === 1 && i[0].type === "text" && (i[0].text === Pn || i[0].text === Gr) ? e.createNode("paragraph", void 0, []) : e.createNode("paragraph", void 0, i);
16660
16660
  },
16661
16661
  renderMarkdown: (a, e, t) => {
16662
16662
  var i, n;
@@ -17084,10 +17084,10 @@ function xb(a) {
17084
17084
  let e = document.createElement("div");
17085
17085
  return e.className = "ProseMirror-gapcursor", Be.create(a.doc, [tt.widget(a.selection.head, e, { key: "gapcursor" })]);
17086
17086
  }
17087
- var Go = 200, Ne = function() {
17087
+ var Yo = 200, Ne = function() {
17088
17088
  };
17089
17089
  Ne.prototype.append = function(e) {
17090
- return e.length ? (e = Ne.from(e), !this.length && e || e.length < Go && this.leafAppend(e) || this.length < Go && e.leafPrepend(this) || this.appendInner(e)) : this;
17090
+ return e.length ? (e = Ne.from(e), !this.length && e || e.length < Yo && this.leafAppend(e) || this.length < Yo && e.leafPrepend(this) || this.appendInner(e)) : this;
17091
17091
  };
17092
17092
  Ne.prototype.prepend = function(e) {
17093
17093
  return e.length ? Ne.from(e).append(this) : this;
@@ -17136,10 +17136,10 @@ var Y_ = /* @__PURE__ */ (function(a) {
17136
17136
  if (n(this.values[l], s + l) === !1)
17137
17137
  return !1;
17138
17138
  }, e.prototype.leafAppend = function(n) {
17139
- if (this.length + n.length <= Go)
17139
+ if (this.length + n.length <= Yo)
17140
17140
  return new e(this.values.concat(n.flatten()));
17141
17141
  }, e.prototype.leafPrepend = function(n) {
17142
- if (this.length + n.length <= Go)
17142
+ if (this.length + n.length <= Yo)
17143
17143
  return new e(n.flatten().concat(this.values));
17144
17144
  }, t.length.get = function() {
17145
17145
  return this.values.length;
@@ -17331,9 +17331,9 @@ function jb(a, e, t, i) {
17331
17331
  if (r && r.getMeta(Za))
17332
17332
  return r.getMeta(Za).redo ? new Fa(a.done.addTransform(t, void 0, i, eo(e)), a.undone, Md(t.mapping.maps), a.prevTime, a.prevComposition) : new Fa(a.done, a.undone.addTransform(t, void 0, i, eo(e)), null, a.prevTime, a.prevComposition);
17333
17333
  if (t.getMeta("addToHistory") !== !1 && !(r && r.getMeta("addToHistory") === !1)) {
17334
- let s = t.getMeta("composition"), l = a.prevTime == 0 || !r && a.prevComposition != s && (a.prevTime < (t.time || 0) - i.newGroupDelay || !qb(t, a.prevRanges)), u = r ? Gr(a.prevRanges, t.mapping) : Md(t.mapping.maps);
17334
+ let s = t.getMeta("composition"), l = a.prevTime == 0 || !r && a.prevComposition != s && (a.prevTime < (t.time || 0) - i.newGroupDelay || !qb(t, a.prevRanges)), u = r ? Yr(a.prevRanges, t.mapping) : Md(t.mapping.maps);
17335
17335
  return new Fa(a.done.addTransform(t, l ? e.selection.getBookmark() : void 0, i, eo(e)), jt.empty, u, t.time, s ?? a.prevComposition);
17336
- } else return (o = t.getMeta("rebased")) ? new Fa(a.done.rebased(t, o), a.undone.rebased(t, o), Gr(a.prevRanges, t.mapping), a.prevTime, a.prevComposition) : new Fa(a.done.addMaps(t.mapping.maps), a.undone.addMaps(t.mapping.maps), Gr(a.prevRanges, t.mapping), a.prevTime, a.prevComposition);
17336
+ } else return (o = t.getMeta("rebased")) ? new Fa(a.done.rebased(t, o), a.undone.rebased(t, o), Yr(a.prevRanges, t.mapping), a.prevTime, a.prevComposition) : new Fa(a.done.addMaps(t.mapping.maps), a.undone.addMaps(t.mapping.maps), Yr(a.prevRanges, t.mapping), a.prevTime, a.prevComposition);
17337
17337
  }
17338
17338
  function qb(a, e) {
17339
17339
  if (!e)
@@ -17352,7 +17352,7 @@ function Md(a) {
17352
17352
  a[t].forEach((i, n, o, r) => e.push(o, r));
17353
17353
  return e;
17354
17354
  }
17355
- function Gr(a, e) {
17355
+ function Yr(a, e) {
17356
17356
  if (!a)
17357
17357
  return null;
17358
17358
  let t = [];
@@ -17369,18 +17369,18 @@ function Ab(a, e, t) {
17369
17369
  let r = o.selection.resolve(o.transform.doc), s = (t ? a.done : a.undone).addTransform(o.transform, e.selection.getBookmark(), n, i), l = new Fa(t ? s : o.remaining, t ? o.remaining : s, null, 0, -1);
17370
17370
  return o.transform.setSelection(r).setMeta(Za, { redo: t, historyState: l });
17371
17371
  }
17372
- let Yr = !1, Td = null;
17372
+ let Xr = !1, Td = null;
17373
17373
  function eo(a) {
17374
17374
  let e = a.plugins;
17375
17375
  if (Td != e) {
17376
- Yr = !1, Td = e;
17376
+ Xr = !1, Td = e;
17377
17377
  for (let t = 0; t < e.length; t++)
17378
17378
  if (e[t].spec.historyPreserveItems) {
17379
- Yr = !0;
17379
+ Xr = !0;
17380
17380
  break;
17381
17381
  }
17382
17382
  }
17383
- return Yr;
17383
+ return Xr;
17384
17384
  }
17385
17385
  const Za = new be("history"), Mb = new be("closeHistory");
17386
17386
  function Tb(a = {}) {
@@ -17589,7 +17589,7 @@ ve.create({
17589
17589
  return null;
17590
17590
  const r = this.editor.isEmpty;
17591
17591
  return e.descendants((s, l) => {
17592
- const u = n >= l && n <= l + s.nodeSize, d = !s.isLeaf && _r(s);
17592
+ const u = n >= l && n <= l + s.nodeSize, d = !s.isLeaf && cr(s);
17593
17593
  if ((u || !this.options.showOnlyCurrent) && d) {
17594
17594
  const f = [this.options.emptyNodeClass];
17595
17595
  r && f.push(this.options.emptyEditorClass);
@@ -17709,8 +17709,8 @@ var Ib = ve.create({
17709
17709
  return this.options.bold !== !1 && n.push(_3.configure(this.options.bold)), this.options.blockquote !== !1 && n.push(l3.configure(this.options.blockquote)), this.options.bulletList !== !1 && n.push(I_.configure(this.options.bulletList)), this.options.code !== !1 && n.push(m3.configure(this.options.code)), this.options.codeBlock !== !1 && n.push(b3.configure(this.options.codeBlock)), this.options.document !== !1 && n.push(C_.configure(this.options.document)), this.options.dropcursor !== !1 && n.push(e1.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && n.push(Ob.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && n.push(y3.configure(this.options.hardBreak)), this.options.heading !== !1 && n.push(k3.configure(this.options.heading)), this.options.undoRedo !== !1 && n.push(Pb.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && n.push(w3.configure(this.options.horizontalRule)), this.options.italic !== !1 && n.push(C3.configure(this.options.italic)), this.options.listItem !== !1 && n.push(P_.configure(this.options.listItem)), this.options.listKeymap !== !1 && n.push(W_.configure((a = this.options) == null ? void 0 : a.listKeymap)), this.options.link !== !1 && n.push(L_.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && n.push(K_.configure(this.options.orderedList)), this.options.paragraph !== !1 && n.push(fb.configure(this.options.paragraph)), this.options.strike !== !1 && n.push(cb.configure(this.options.strike)), this.options.text !== !1 && n.push(hb.configure(this.options.text)), this.options.underline !== !1 && n.push(J_.configure((t = this.options) == null ? void 0 : t.underline)), this.options.trailingNode !== !1 && n.push(Ib.configure((i = this.options) == null ? void 0 : i.trailingNode)), n;
17710
17710
  }
17711
17711
  }), Rb = zb, Ie = [];
17712
- for (var Xr = 0; Xr < 256; ++Xr)
17713
- Ie.push((Xr + 256).toString(16).slice(1));
17712
+ for (var Qr = 0; Qr < 256; ++Qr)
17713
+ Ie.push((Qr + 256).toString(16).slice(1));
17714
17714
  function $b(a, e = 0) {
17715
17715
  return (Ie[a[e + 0]] + Ie[a[e + 1]] + Ie[a[e + 2]] + Ie[a[e + 3]] + "-" + Ie[a[e + 4]] + Ie[a[e + 5]] + "-" + Ie[a[e + 6]] + Ie[a[e + 7]] + "-" + Ie[a[e + 8]] + Ie[a[e + 9]] + "-" + Ie[a[e + 10]] + Ie[a[e + 11]] + Ie[a[e + 12]] + Ie[a[e + 13]] + Ie[a[e + 14]] + Ie[a[e + 15]]).toLowerCase();
17716
17716
  }
@@ -18204,9 +18204,9 @@ class Ce {
18204
18204
  }
18205
18205
  }
18206
18206
  Ce.empty = new Ce([], 0);
18207
- const Qr = { index: 0, offset: 0 };
18207
+ const Zr = { index: 0, offset: 0 };
18208
18208
  function $n(a, e) {
18209
- return Qr.index = a, Qr.offset = e, Qr;
18209
+ return Zr.index = a, Zr.offset = e, Zr;
18210
18210
  }
18211
18211
  class Yb extends Error {
18212
18212
  }
@@ -18453,7 +18453,7 @@ class _t {
18453
18453
  }
18454
18454
  }
18455
18455
  _t.empty = new _t([]);
18456
- const Zr = /* @__PURE__ */ Object.create(null);
18456
+ const es = /* @__PURE__ */ Object.create(null);
18457
18457
  class Ge {
18458
18458
  /**
18459
18459
  Get the step map that represents the changes made by this step,
@@ -18478,7 +18478,7 @@ class Ge {
18478
18478
  static fromJSON(e, t) {
18479
18479
  if (!t || !t.stepType)
18480
18480
  throw new RangeError("Invalid input for Step.fromJSON");
18481
- let i = Zr[t.stepType];
18481
+ let i = es[t.stepType];
18482
18482
  if (!i)
18483
18483
  throw new RangeError(`No step type ${t.stepType} defined`);
18484
18484
  return i.fromJSON(e, t);
@@ -18490,9 +18490,9 @@ class Ge {
18490
18490
  that's unlikely to clash with steps from other modules.
18491
18491
  */
18492
18492
  static jsonID(e, t) {
18493
- if (e in Zr)
18493
+ if (e in es)
18494
18494
  throw new RangeError("Duplicate use of step JSON ID " + e);
18495
- return Zr[e] = t, t.prototype.jsonID = e, t;
18495
+ return es[e] = t, t.prototype.jsonID = e, t;
18496
18496
  }
18497
18497
  }
18498
18498
  class Me {
@@ -18863,7 +18863,7 @@ class ln extends Ge {
18863
18863
  }
18864
18864
  }
18865
18865
  Ge.jsonID("attr", ln);
18866
- class Yo extends Ge {
18866
+ class Xo extends Ge {
18867
18867
  /**
18868
18868
  Construct an attribute step.
18869
18869
  */
@@ -18882,7 +18882,7 @@ class Yo extends Ge {
18882
18882
  return _t.empty;
18883
18883
  }
18884
18884
  invert(e) {
18885
- return new Yo(this.attr, e.attrs[this.attr]);
18885
+ return new Xo(this.attr, e.attrs[this.attr]);
18886
18886
  }
18887
18887
  map(e) {
18888
18888
  return this;
@@ -18893,10 +18893,10 @@ class Yo extends Ge {
18893
18893
  static fromJSON(e, t) {
18894
18894
  if (typeof t.attr != "string")
18895
18895
  throw new RangeError("Invalid input for DocAttrStep.fromJSON");
18896
- return new Yo(t.attr, t.value);
18896
+ return new Xo(t.attr, t.value);
18897
18897
  }
18898
18898
  }
18899
- Ge.jsonID("docAttr", Yo);
18899
+ Ge.jsonID("docAttr", Xo);
18900
18900
  let wn = class extends Error {
18901
18901
  };
18902
18902
  wn = function a(e) {
@@ -19633,9 +19633,9 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
19633
19633
  const { state: A } = t.editor, { schema: oe, doc: J } = A, Ae = oe.nodes.container;
19634
19634
  if (!Ae) return null;
19635
19635
  let Ye = null;
19636
- if (J.descendants((ye, kr) => {
19636
+ if (J.descendants((ye, wr) => {
19637
19637
  if (ye.type === Ae && ye?.attrs?.id === O)
19638
- return Ye = { node: ye, pos: kr }, !1;
19638
+ return Ye = { node: ye, pos: wr }, !1;
19639
19639
  }), !Ye) return null;
19640
19640
  const { node: Ve, pos: fa } = Ye;
19641
19641
  return fa + Ve.nodeSize - 1;
@@ -20174,7 +20174,7 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
20174
20174
  onClick: k
20175
20175
  }, {
20176
20176
  default: v(() => [
20177
- p(w(ns), { class: "size-4" })
20177
+ p(w(ro), { class: "size-4" })
20178
20178
  ]),
20179
20179
  _: 1
20180
20180
  }, 8, ["class"])
@@ -20197,7 +20197,7 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
20197
20197
  class: "text-[var(--section-ui-tint)] dark:text-[var(--section-ui-tint)] rounded-none"
20198
20198
  }, {
20199
20199
  default: v(() => [
20200
- p(w(ns), { class: "size-4" })
20200
+ p(w(ro), { class: "size-4" })
20201
20201
  ]),
20202
20202
  _: 1
20203
20203
  })) : P("", !0),
@@ -22500,9 +22500,9 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
22500
22500
  _: 1
22501
22501
  }, 16, ["data-id", "class", "style", "data-type", "data-open"]));
22502
22502
  }
22503
- }), Zy = /* @__PURE__ */ De(Qy, [["__scopeId", "data-v-3b915ecc"]]), Xo = (a, e) => e.view.domAtPos(a).node.offsetParent !== null, ek = (a, e, t) => {
22503
+ }), Zy = /* @__PURE__ */ De(Qy, [["__scopeId", "data-v-3b915ecc"]]), Qo = (a, e) => e.view.domAtPos(a).node.offsetParent !== null, ek = (a, e, t) => {
22504
22504
  for (let i = a.depth; i > 0; i -= 1) {
22505
- const n = a.node(i), o = e(n), r = Xo(a.start(i), t);
22505
+ const n = a.node(i), o = e(n), r = Qo(a.start(i), t);
22506
22506
  if (o && r)
22507
22507
  return {
22508
22508
  pos: i > 0 ? a.before(i) : 0,
@@ -22519,7 +22519,7 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
22519
22519
  if (!d)
22520
22520
  return !1;
22521
22521
  const f = Qi(d.node, (F) => F.type === o.nodes.detailsContent);
22522
- if (!f.length || Xo(d.start + f[0].pos + 1, a))
22522
+ if (!f.length || Qo(d.start + f[0].pos + 1, a))
22523
22523
  return !1;
22524
22524
  const _ = t.doc.resolve(d.pos + d.node.nodeSize), c = Ee.findFrom(_, 1, !1);
22525
22525
  if (!c)
@@ -22635,7 +22635,7 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
22635
22635
  const { schema: n, selection: o } = e, { $head: r } = o;
22636
22636
  if (r.parent.type !== n.nodes.detailsSummary)
22637
22637
  return !1;
22638
- const s = Xo(r.after() + 1, a), l = s ? e.doc.nodeAt(r.after()) : r.node(-2);
22638
+ const s = Qo(r.after() + 1, a), l = s ? e.doc.nodeAt(r.after()) : r.node(-2);
22639
22639
  if (!l)
22640
22640
  return !1;
22641
22641
  const u = s ? 0 : r.indexAfter(-1), d = El(l.contentMatchAt(u));
@@ -22674,7 +22674,7 @@ const Hn = /* @__PURE__ */ De(p4, [["render", k4]]), w4 = { class: "flex flex-co
22674
22674
  if (i.view.composing || !a.some((F) => F.selectionSet) || !e.selection.empty || !t.selection.empty || !Wi(t, n.name))
22675
22675
  return;
22676
22676
  const { $from: l } = t.selection;
22677
- if (Xo(l.pos, i))
22677
+ if (Qo(l.pos, i))
22678
22678
  return;
22679
22679
  const d = ek(l, (F) => F.type === n, i);
22680
22680
  if (!d)
@@ -22941,7 +22941,7 @@ const _k = ve.create({
22941
22941
  unsetCustomClass: () => ({ commands: a }) => a.unsetMark(this.name)
22942
22942
  };
22943
22943
  }
22944
- }), _1 = ["top", "right", "bottom", "left"], $d = ["start", "end"], Hd = /* @__PURE__ */ _1.reduce((a, e) => a.concat(e, e + "-" + $d[0], e + "-" + $d[1]), []), Kt = Math.min, Qe = Math.max, Qo = Math.round, Ht = (a) => ({
22944
+ }), _1 = ["top", "right", "bottom", "left"], $d = ["start", "end"], Hd = /* @__PURE__ */ _1.reduce((a, e) => a.concat(e, e + "-" + $d[0], e + "-" + $d[1]), []), Kt = Math.min, Qe = Math.max, Zo = Math.round, Ht = (a) => ({
22945
22945
  x: a,
22946
22946
  y: a
22947
22947
  }), mk = {
@@ -22979,13 +22979,13 @@ function h1(a, e, t) {
22979
22979
  t === void 0 && (t = !1);
22980
22980
  const i = qt(a), n = Gl(a), o = Jl(n);
22981
22981
  let r = n === "x" ? i === (t ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
22982
- return e.reference[o] > e.floating[o] && (r = er(r)), [r, er(r)];
22982
+ return e.reference[o] > e.floating[o] && (r = tr(r)), [r, tr(r)];
22983
22983
  }
22984
22984
  function Fk(a) {
22985
- const e = er(a);
22986
- return [Zo(a), e, Zo(e)];
22985
+ const e = tr(a);
22986
+ return [er(a), e, er(e)];
22987
22987
  }
22988
- function Zo(a) {
22988
+ function er(a) {
22989
22989
  return a.includes("start") ? a.replace("start", "end") : a.replace("end", "start");
22990
22990
  }
22991
22991
  const Vd = ["left", "right"], Wd = ["right", "left"], pk = ["top", "bottom"], bk = ["bottom", "top"];
@@ -23004,9 +23004,9 @@ function yk(a, e, t) {
23004
23004
  function kk(a, e, t, i) {
23005
23005
  const n = qt(a);
23006
23006
  let o = yk(Ct(a), t === "start", i);
23007
- return n && (o = o.map((r) => r + "-" + n), e && (o = o.concat(o.map(Zo)))), o;
23007
+ return n && (o = o.map((r) => r + "-" + n), e && (o = o.concat(o.map(er)))), o;
23008
23008
  }
23009
- function er(a) {
23009
+ function tr(a) {
23010
23010
  const e = Ct(a);
23011
23011
  return mk[e] + a.slice(e.length);
23012
23012
  }
@@ -23241,7 +23241,7 @@ const vk = 50, xk = async (a, e, t) => {
23241
23241
  }
23242
23242
  });
23243
23243
  function Ck(a, e, t) {
23244
- return (a ? [...t.filter((n) => qt(n) === a), ...t.filter((n) => qt(n) !== a)] : t.filter((n) => Ct(n) === n)).filter((n) => a ? qt(n) === a || (e ? Zo(n) !== n : !1) : !0);
23244
+ return (a ? [...t.filter((n) => qt(n) === a), ...t.filter((n) => qt(n) !== a)] : t.filter((n) => Ct(n) === n)).filter((n) => a ? qt(n) === a || (e ? er(n) !== n : !1) : !0);
23245
23245
  }
23246
23246
  const Bk = function(a) {
23247
23247
  return a === void 0 && (a = {}), {
@@ -23335,7 +23335,7 @@ const Bk = function(a) {
23335
23335
  } = la(a, e);
23336
23336
  if ((t = o.arrow) != null && t.alignmentOffset)
23337
23337
  return {};
23338
- const F = Ct(n), b = Rt(s), k = Ct(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = g || (k || !h ? [er(s)] : Fk(s)), S = c !== "none";
23338
+ const F = Ct(n), b = Rt(s), k = Ct(s) === s, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = g || (k || !h ? [tr(s)] : Fk(s)), S = c !== "none";
23339
23339
  !g && S && E.push(...kk(s, h, c, x));
23340
23340
  const j = [s, ...E], q = await l.detectOverflow(e, m), M = [];
23341
23341
  let I = ((i = o.flip) == null ? void 0 : i.overflows) || [];
@@ -23674,7 +23674,7 @@ const Nk = function(a) {
23674
23674
  }
23675
23675
  };
23676
23676
  };
23677
- function Fr() {
23677
+ function pr() {
23678
23678
  return typeof window < "u";
23679
23679
  }
23680
23680
  function Ti(a) {
@@ -23689,16 +23689,16 @@ function ua(a) {
23689
23689
  return (e = (F1(a) ? a.ownerDocument : a.document) || window.document) == null ? void 0 : e.documentElement;
23690
23690
  }
23691
23691
  function F1(a) {
23692
- return Fr() ? a instanceof Node || a instanceof mt(a).Node : !1;
23692
+ return pr() ? a instanceof Node || a instanceof mt(a).Node : !1;
23693
23693
  }
23694
23694
  function At(a) {
23695
- return Fr() ? a instanceof Element || a instanceof mt(a).Element : !1;
23695
+ return pr() ? a instanceof Element || a instanceof mt(a).Element : !1;
23696
23696
  }
23697
23697
  function da(a) {
23698
- return Fr() ? a instanceof HTMLElement || a instanceof mt(a).HTMLElement : !1;
23698
+ return pr() ? a instanceof HTMLElement || a instanceof mt(a).HTMLElement : !1;
23699
23699
  }
23700
23700
  function Gd(a) {
23701
- return !Fr() || typeof ShadowRoot > "u" ? !1 : a instanceof ShadowRoot || a instanceof mt(a).ShadowRoot;
23701
+ return !pr() || typeof ShadowRoot > "u" ? !1 : a instanceof ShadowRoot || a instanceof mt(a).ShadowRoot;
23702
23702
  }
23703
23703
  function Bn(a) {
23704
23704
  const {
@@ -23712,7 +23712,7 @@ function Bn(a) {
23712
23712
  function Ik(a) {
23713
23713
  return /^(table|td|th)$/.test(Ti(a));
23714
23714
  }
23715
- function pr(a) {
23715
+ function br(a) {
23716
23716
  try {
23717
23717
  if (a.matches(":popover-open"))
23718
23718
  return !0;
@@ -23725,7 +23725,7 @@ function pr(a) {
23725
23725
  }
23726
23726
  }
23727
23727
  const Pk = /transform|translate|scale|rotate|perspective|filter/, zk = /paint|layout|strict|content/, za = (a) => !!a && a !== "none";
23728
- let es;
23728
+ let ts;
23729
23729
  function Xl(a) {
23730
23730
  const e = At(a) ? Mt(a) : a;
23731
23731
  return za(e.transform) || za(e.translate) || za(e.scale) || za(e.rotate) || za(e.perspective) || !Ql() && (za(e.backdropFilter) || za(e.filter)) || Pk.test(e.willChange || "") || zk.test(e.contain || "");
@@ -23735,14 +23735,14 @@ function Rk(a) {
23735
23735
  for (; da(e) && !Si(e); ) {
23736
23736
  if (Xl(e))
23737
23737
  return e;
23738
- if (pr(e))
23738
+ if (br(e))
23739
23739
  return null;
23740
23740
  e = ja(e);
23741
23741
  }
23742
23742
  return null;
23743
23743
  }
23744
23744
  function Ql() {
23745
- return es == null && (es = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), es;
23745
+ return ts == null && (ts = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), ts;
23746
23746
  }
23747
23747
  function Si(a) {
23748
23748
  return /^(html|body|#document)$/.test(Ti(a));
@@ -23750,7 +23750,7 @@ function Si(a) {
23750
23750
  function Mt(a) {
23751
23751
  return mt(a).getComputedStyle(a);
23752
23752
  }
23753
- function br(a) {
23753
+ function yr(a) {
23754
23754
  return At(a) ? {
23755
23755
  scrollLeft: a.scrollLeft,
23756
23756
  scrollTop: a.scrollTop
@@ -23787,7 +23787,7 @@ function Vs(a) {
23787
23787
  function y1(a) {
23788
23788
  const e = Mt(a);
23789
23789
  let t = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
23790
- const n = da(a), o = n ? a.offsetWidth : t, r = n ? a.offsetHeight : i, s = Qo(t) !== o || Qo(i) !== r;
23790
+ const n = da(a), o = n ? a.offsetWidth : t, r = n ? a.offsetHeight : i, s = Zo(t) !== o || Zo(i) !== r;
23791
23791
  return s && (t = o, i = r), {
23792
23792
  width: t,
23793
23793
  height: i,
@@ -23806,7 +23806,7 @@ function bi(a) {
23806
23806
  height: n,
23807
23807
  $: o
23808
23808
  } = y1(e);
23809
- let r = (o ? Qo(t.width) : t.width) / i, s = (o ? Qo(t.height) : t.height) / n;
23809
+ let r = (o ? Zo(t.width) : t.width) / i, s = (o ? Zo(t.height) : t.height) / n;
23810
23810
  return (!r || !Number.isFinite(r)) && (r = 1), (!s || !Number.isFinite(s)) && (s = 1), {
23811
23811
  x: r,
23812
23812
  y: s
@@ -23845,12 +23845,12 @@ function Dn(a, e, t, i) {
23845
23845
  y: u
23846
23846
  });
23847
23847
  }
23848
- function yr(a, e) {
23849
- const t = br(a).scrollLeft;
23848
+ function kr(a, e) {
23849
+ const t = yr(a).scrollLeft;
23850
23850
  return e ? e.left + t : Dn(ua(a)).left + t;
23851
23851
  }
23852
23852
  function D1(a, e) {
23853
- const t = a.getBoundingClientRect(), i = t.left + e.scrollLeft - yr(a, t), n = t.top + e.scrollTop;
23853
+ const t = a.getBoundingClientRect(), i = t.left + e.scrollLeft - kr(a, t), n = t.top + e.scrollTop;
23854
23854
  return {
23855
23855
  x: i,
23856
23856
  y: n
@@ -23863,7 +23863,7 @@ function Vk(a) {
23863
23863
  offsetParent: i,
23864
23864
  strategy: n
23865
23865
  } = a;
23866
- const o = n === "fixed", r = ua(i), s = e ? pr(e.floating) : !1;
23866
+ const o = n === "fixed", r = ua(i), s = e ? br(e.floating) : !1;
23867
23867
  if (i === r || s && o)
23868
23868
  return t;
23869
23869
  let l = {
@@ -23871,7 +23871,7 @@ function Vk(a) {
23871
23871
  scrollTop: 0
23872
23872
  }, u = Ht(1);
23873
23873
  const d = Ht(0), f = da(i);
23874
- if ((f || !f && !o) && ((Ti(i) !== "body" || Bn(r)) && (l = br(i)), f)) {
23874
+ if ((f || !f && !o) && ((Ti(i) !== "body" || Bn(r)) && (l = yr(i)), f)) {
23875
23875
  const _ = Dn(i);
23876
23876
  u = bi(i), d.x = _.x + i.clientLeft, d.y = _.y + i.clientTop;
23877
23877
  }
@@ -23887,8 +23887,8 @@ function Wk(a) {
23887
23887
  return Array.from(a.getClientRects());
23888
23888
  }
23889
23889
  function Uk(a) {
23890
- const e = ua(a), t = br(a), i = a.ownerDocument.body, n = Qe(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), o = Qe(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
23891
- let r = -t.scrollLeft + yr(a);
23890
+ const e = ua(a), t = yr(a), i = a.ownerDocument.body, n = Qe(e.scrollWidth, e.clientWidth, i.scrollWidth, i.clientWidth), o = Qe(e.scrollHeight, e.clientHeight, i.scrollHeight, i.clientHeight);
23891
+ let r = -t.scrollLeft + kr(a);
23892
23892
  const s = -t.scrollTop;
23893
23893
  return Mt(i).direction === "rtl" && (r += Qe(e.clientWidth, i.clientWidth) - n), {
23894
23894
  width: n,
@@ -23906,7 +23906,7 @@ function Kk(a, e) {
23906
23906
  const d = Ql();
23907
23907
  (!d || d && e === "fixed") && (s = n.offsetLeft, l = n.offsetTop);
23908
23908
  }
23909
- const u = yr(i);
23909
+ const u = kr(i);
23910
23910
  if (u <= 0) {
23911
23911
  const d = i.ownerDocument, f = d.body, g = getComputedStyle(f), _ = d.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, c = Math.abs(i.clientWidth - f.clientWidth - _);
23912
23912
  c <= Yd && (o -= c);
@@ -23970,7 +23970,7 @@ function Yk(a) {
23970
23970
  rootBoundary: i,
23971
23971
  strategy: n
23972
23972
  } = a;
23973
- const r = [...t === "clippingAncestors" ? pr(e) ? [] : Gk(e, this._c) : [].concat(t), i], s = Xd(e, r[0], n);
23973
+ const r = [...t === "clippingAncestors" ? br(e) ? [] : Gk(e, this._c) : [].concat(t), i], s = Xd(e, r[0], n);
23974
23974
  let l = s.top, u = s.right, d = s.bottom, f = s.left;
23975
23975
  for (let g = 1; g < r.length; g++) {
23976
23976
  const _ = Xd(e, r[g], n);
@@ -24001,10 +24001,10 @@ function Qk(a, e, t) {
24001
24001
  };
24002
24002
  const l = Ht(0);
24003
24003
  function u() {
24004
- l.x = yr(n);
24004
+ l.x = kr(n);
24005
24005
  }
24006
24006
  if (i || !i && !o)
24007
- if ((Ti(e) !== "body" || Bn(n)) && (s = br(e)), i) {
24007
+ if ((Ti(e) !== "body" || Bn(n)) && (s = yr(e)), i) {
24008
24008
  const _ = Dn(e, !0, o, e);
24009
24009
  l.x = _.x + e.clientLeft, l.y = _.y + e.clientTop;
24010
24010
  } else n && u();
@@ -24017,7 +24017,7 @@ function Qk(a, e, t) {
24017
24017
  height: r.height
24018
24018
  };
24019
24019
  }
24020
- function ts(a) {
24020
+ function as(a) {
24021
24021
  return Mt(a).position === "static";
24022
24022
  }
24023
24023
  function Qd(a, e) {
@@ -24030,21 +24030,21 @@ function Qd(a, e) {
24030
24030
  }
24031
24031
  function x1(a, e) {
24032
24032
  const t = mt(a);
24033
- if (pr(a))
24033
+ if (br(a))
24034
24034
  return t;
24035
24035
  if (!da(a)) {
24036
24036
  let n = ja(a);
24037
24037
  for (; n && !Si(n); ) {
24038
- if (At(n) && !ts(n))
24038
+ if (At(n) && !as(n))
24039
24039
  return n;
24040
24040
  n = ja(n);
24041
24041
  }
24042
24042
  return t;
24043
24043
  }
24044
24044
  let i = Qd(a, e);
24045
- for (; i && Ik(i) && ts(i); )
24045
+ for (; i && Ik(i) && as(i); )
24046
24046
  i = Qd(i, e);
24047
- return i && Si(i) && ts(i) && !Xl(i) ? t : i || Rk(a) || t;
24047
+ return i && Si(i) && as(i) && !Xl(i) ? t : i || Rk(a) || t;
24048
24048
  }
24049
24049
  const Zk = async function(a) {
24050
24050
  const e = this.getOffsetParent || x1, t = this.getDimensions, i = await t(a.floating);
@@ -24683,7 +24683,7 @@ var g6 = class {
24683
24683
  return n;
24684
24684
  if (!((t = (e = this.view) == null ? void 0 : e.dom) != null && t.parentNode))
24685
24685
  return;
24686
- const o = yo(this.view, i.from, i.to);
24686
+ const o = ko(this.view, i.from, i.to);
24687
24687
  let r = {
24688
24688
  getBoundingClientRect: () => o,
24689
24689
  getClientRects: () => [o]
@@ -24948,7 +24948,7 @@ var g6 = class {
24948
24948
  }
24949
24949
  }
24950
24950
  updatePosition() {
24951
- const { selection: a } = this.editor.state, e = yo(this.view, a.from, a.to);
24951
+ const { selection: a } = this.editor.state, e = ko(this.view, a.from, a.to);
24952
24952
  T1({
24953
24953
  getBoundingClientRect: () => e,
24954
24954
  getClientRects: () => [e]
@@ -25164,7 +25164,7 @@ const Ra = /* @__PURE__ */ ne({
25164
25164
  m[2] || (m[2] = zt((T) => i("back"), ["escape"]))
25165
25165
  ]
25166
25166
  }, null, 544), [
25167
- [ar, o.value]
25167
+ [ir, o.value]
25168
25168
  ]),
25169
25169
  y("button", {
25170
25170
  onClick: g,
@@ -25326,7 +25326,7 @@ const Ra = /* @__PURE__ */ ne({
25326
25326
  _[2] || (_[2] = zt((c) => i("back"), ["escape"]))
25327
25327
  ]
25328
25328
  }, null, 544), [
25329
- [ar, n.value]
25329
+ [ir, n.value]
25330
25330
  ]),
25331
25331
  y("button", {
25332
25332
  onClick: u,
@@ -25605,7 +25605,7 @@ function V6(a) {
25605
25605
  if (e)
25606
25606
  return JSON.parse(e);
25607
25607
  }
25608
- const ji = { update: H6, set: V1, get: V6, setNamespace: $6, setHandlers: R6 }, as = {
25608
+ const ji = { update: H6, set: V1, get: V6, setNamespace: $6, setHandlers: R6 }, is = {
25609
25609
  name: "a",
25610
25610
  unified: "b",
25611
25611
  non_qualified: "c",
@@ -25644,12 +25644,12 @@ const W6 = (a) => {
25644
25644
  a.compressed = !1;
25645
25645
  for (let e in a.emojis) {
25646
25646
  let t = a.emojis[e];
25647
- for (let i in as)
25648
- t[i] = t[as[i]], delete t[as[i]];
25647
+ for (let i in is)
25648
+ t[i] = t[is[i]], delete t[is[i]];
25649
25649
  t.short_names || (t.short_names = []), t.short_names.unshift(e), t.sheet_x = t.sheet[0], t.sheet_y = t.sheet[1], delete t.sheet, t.text || (t.text = ""), t.added_in || (t.added_in = 6), t.added_in = t.added_in.toFixed(1), t.search = W1(t);
25650
25650
  }
25651
25651
  return a = U1(a), a;
25652
- }, is = [
25652
+ }, ns = [
25653
25653
  "+1",
25654
25654
  "grinning",
25655
25655
  "kissing_heart",
@@ -25680,9 +25680,9 @@ function K6(a) {
25680
25680
  if (au || K1(), !wt) {
25681
25681
  Gs = {};
25682
25682
  const r = [];
25683
- let s = Math.min(a, is.length);
25683
+ let s = Math.min(a, ns.length);
25684
25684
  for (let l = 0; l < s; l++)
25685
- Gs[is[l]] = parseInt((s - l) / 4, 10) + 1, r.push(is[l]);
25685
+ Gs[ns[l]] = parseInt((s - l) / 4, 10) + 1, r.push(ns[l]);
25686
25686
  return r;
25687
25687
  }
25688
25688
  const e = a, t = [];
@@ -25928,14 +25928,14 @@ class lw {
25928
25928
  custom: !0
25929
25929
  });
25930
25930
  t.search || (t.search = W1(t));
25931
- let i = new tr(t);
25931
+ let i = new ar(t);
25932
25932
  return this._emojis[i.id] = i, this._customCategory.emojis.push(i), i;
25933
25933
  }
25934
25934
  addEmoji(e) {
25935
25935
  let t = this._data.emojis[e];
25936
25936
  if (!this.isEmojiNeeded(t))
25937
25937
  return !1;
25938
- let i = new tr(t);
25938
+ let i = new ar(t);
25939
25939
  if (this._emojis[e] = i, i.native && (this._nativeEmojis[i.native] = i), i._skins)
25940
25940
  for (let n in i._skins) {
25941
25941
  let o = i._skins[n];
@@ -25965,7 +25965,7 @@ class lw {
25965
25965
  return this._emojisFilter ? this._emojisFilter(e) : !0;
25966
25966
  }
25967
25967
  }
25968
- class tr {
25968
+ class ar {
25969
25969
  constructor(e) {
25970
25970
  if (this._data = Object.assign({}, e), this._skins = null, this._data.skin_variations) {
25971
25971
  this._skins = [];
@@ -25973,7 +25973,7 @@ class tr {
25973
25973
  let i = nf[t], n = this._data.skin_variations[i], o = Object.assign({}, e);
25974
25974
  for (let r in n)
25975
25975
  o[r] = n[r];
25976
- delete o.skin_variations, o.skin_tone = parseInt(t) + 1, this._skins.push(new tr(o));
25976
+ delete o.skin_variations, o.skin_tone = parseInt(t) + 1, this._skins.push(new ar(o));
25977
25977
  }
25978
25978
  }
25979
25979
  this._sanitized = uw(this._data);
@@ -26585,7 +26585,7 @@ function Hw(a, e, t, i, n, o) {
26585
26585
  ],
26586
26586
  "onUpdate:modelValue": e[5] || (e[5] = (r) => n.value = r)
26587
26587
  }, null, 40, $w), [
26588
- [ar, n.value]
26588
+ [ir, n.value]
26589
26589
  ]),
26590
26590
  e[6] || (e[6] = y("span", {
26591
26591
  class: "hidden",
@@ -28416,10 +28416,10 @@ const Zw = /* @__PURE__ */ De(Jw, [["render", Qw]]), eD = { class: "flex flex-co
28416
28416
  let b;
28417
28417
  if (F && typeof F.pos == "number") {
28418
28418
  const { node: k, pos: x } = F, { view: E } = m;
28419
- b = yo(E, x, x + k.nodeSize);
28419
+ b = ko(E, x, x + k.nodeSize);
28420
28420
  } else {
28421
28421
  const { state: k, view: x } = m, { $from: E } = k.selection, S = E.start(E.depth), j = E.end(E.depth);
28422
- b = yo(x, S, j);
28422
+ b = ko(x, S, j);
28423
28423
  }
28424
28424
  return {
28425
28425
  getBoundingClientRect: () => b,
@@ -28486,7 +28486,7 @@ const Zw = /* @__PURE__ */ De(Jw, [["render", Qw]]), eD = { class: "flex flex-co
28486
28486
  onClick: f
28487
28487
  }, {
28488
28488
  default: v(() => [
28489
- p(w(ns), { class: "size-4" })
28489
+ p(w(ro), { class: "size-4" })
28490
28490
  ]),
28491
28491
  _: 1
28492
28492
  }),
@@ -28977,9 +28977,11 @@ const Zw = /* @__PURE__ */ De(Jw, [["render", Qw]]), eD = { class: "flex flex-co
28977
28977
  default: v(() => [
28978
28978
  p(h, {
28979
28979
  inset: "",
28980
- onClick: (E) => i(x.code)
28980
+ onClick: (E) => i(x.code),
28981
+ class: "pl-2!"
28981
28982
  }, {
28982
28983
  default: v(() => [
28984
+ p(w(ro), { class: "size-4" }),
28983
28985
  $(" Copy from " + Q(x.name), 1)
28984
28986
  ]),
28985
28987
  _: 2
@@ -30012,10 +30014,10 @@ export class SupabaseService {
30012
30014
  let G = await i("components");
30013
30015
  K.value = G, g.value = n.value.entryId, !g.value || g.value === "new" ? (F.value = "new", d.value = !0) : Nt(g.value), k.value = new URLSearchParams(window.location.search).get("locale") || e.config.defaultLanguage || "en";
30014
30016
  }
30015
- const kr = () => {
30017
+ const wr = () => {
30016
30018
  d.value = !1, c.value = "", h.value = "", m.value = "", T.value = [], L.value = null, te.value = {}, O.value = null, A.value = {}, x.value = null, E.value = null;
30017
30019
  }, Nt = async (G) => {
30018
- kr();
30020
+ wr();
30019
30021
  const V = await u.get(e.config.contentCollection, G);
30020
30022
  if (V) {
30021
30023
  x.value = V.created?.at || null, oe.value = V.latestByLocale || [], J.value = V.liveByLocale || [], Ae.value = V.draftByLocale || [], S.value = V.structuredContentSections || [], j.value = V.entrySettings?.disableSettings || !1, q.value = V.entrySettings?.disableContent || !1, M.value = V.entrySettings?.disableSlug || !1;
@@ -30283,8 +30285,8 @@ export class SupabaseService {
30283
30285
  }
30284
30286
  }), _.value = "", Nt(g.value);
30285
30287
  }
30286
- const wr = C([]), fc = async () => {
30287
- if (wr.value.length > 0) return;
30288
+ const Dr = C([]), fc = async () => {
30289
+ if (Dr.value.length > 0) return;
30288
30290
  const G = k.value === e.config.defaultLanguage, V = await u.find(e.config.collectionsCollection), X = (U, Se, me, Le) => (U.startsWith("/") || (U = "/" + U), un(U, [{ name: "slug", value: Se }, { name: "id", value: me }, { name: "lang", value: Le }]));
30289
30291
  for (const U of V || []) {
30290
30292
  const Se = await u.find(e.config.contentCollection, {
@@ -30296,7 +30298,7 @@ export class SupabaseService {
30296
30298
  }
30297
30299
  ]
30298
30300
  });
30299
- wr.value.push({
30301
+ Dr.value.push({
30300
30302
  title: U.name,
30301
30303
  entries: Se?.map((me) => ({
30302
30304
  title: me.title,
@@ -30335,7 +30337,7 @@ export class SupabaseService {
30335
30337
  }
30336
30338
  return we(() => {
30337
30339
  ye();
30338
- }), ce("isLoaded", d), ce("isSaving", f), ce("collection", R), ce("entryId", g), ce("title", c), ce("description", h), ce("slug", m), ce("status", F), ce("activeView", b), ce("activeLocale", k), ce("activeEntryVersion", I), ce("components", K), ce("content", T), ce("customSettingsOutput", L), ce("sectionThemes", Ye), ce("buttonThemes", Ve), ce("cardThemes", fa), ce("structuredContentSections", S), ce("structuredContentOutput", O), ce("structuredContentInput", A), ce("disableSettings", j), ce("disableContent", q), ce("disableSlug", M), ce("pageGroups", wr), ce("fetchPageGroups", fc), (G, V) => {
30340
+ }), ce("isLoaded", d), ce("isSaving", f), ce("collection", R), ce("entryId", g), ce("title", c), ce("description", h), ce("slug", m), ce("status", F), ce("activeView", b), ce("activeLocale", k), ce("activeEntryVersion", I), ce("components", K), ce("content", T), ce("customSettingsOutput", L), ce("sectionThemes", Ye), ce("buttonThemes", Ve), ce("cardThemes", fa), ce("structuredContentSections", S), ce("structuredContentOutput", O), ce("structuredContentInput", A), ce("disableSettings", j), ce("disableContent", q), ce("disableSlug", M), ce("pageGroups", Dr), ce("fetchPageGroups", fc), (G, V) => {
30339
30341
  const X = N("ResizablePanel"), U = N("ResizableHandle"), Se = N("ResizablePanelGroup");
30340
30342
  return D(), B("div", yv, [
30341
30343
  p(Lh, {