@harbour-enterprises/superdoc 0.10.14 → 0.10.15

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.
@@ -16648,7 +16648,7 @@ Actual: ` + p3.attribValue
16648
16648
  for (let u = o.length - 1; u >= 0; u--)
16649
16649
  r22.step(o[u]);
16650
16650
  }
16651
- function af$2(r22, e, t) {
16651
+ function af$1(r22, e, t) {
16652
16652
  return (e == 0 || r22.canReplace(e, r22.childCount)) && (t == r22.childCount || r22.canReplace(0, t));
16653
16653
  }
16654
16654
  function yp$2(r22) {
@@ -16657,7 +16657,7 @@ Actual: ` + p3.attribValue
16657
16657
  let i3 = r22.$from.node(n), s = r22.$from.index(n), o = r22.$to.indexAfter(n);
16658
16658
  if (n < r22.depth && i3.canReplace(s, o, t))
16659
16659
  return n;
16660
- if (n == 0 || i3.type.spec.isolating || !af$2(i3, s, o))
16660
+ if (n == 0 || i3.type.spec.isolating || !af$1(i3, s, o))
16661
16661
  break;
16662
16662
  }
16663
16663
  return null;
@@ -16713,7 +16713,7 @@ Actual: ` + p3.attribValue
16713
16713
  let s = r22.steps.length;
16714
16714
  r22.doc.nodesBetween(e, t, (o, a) => {
16715
16715
  let u = typeof i3 == "function" ? i3(o) : i3;
16716
- if (o.isTextblock && !o.hasMarkup(n, u) && mf$2(r22.doc, r22.mapping.slice(s).map(a), n)) {
16716
+ if (o.isTextblock && !o.hasMarkup(n, u) && mf$1(r22.doc, r22.mapping.slice(s).map(a), n)) {
16717
16717
  let f3 = null;
16718
16718
  if (n.schema.linebreakReplacement) {
16719
16719
  let S = n.whitespace == "pre", T3 = !!n.contentMatch.matchType(n.schema.linebreakReplacement);
@@ -16745,11 +16745,11 @@ Actual: ` + p3.attribValue
16745
16745
  }
16746
16746
  });
16747
16747
  }
16748
- function mf$2(r22, e, t) {
16748
+ function mf$1(r22, e, t) {
16749
16749
  let n = r22.resolve(e), i3 = n.index();
16750
16750
  return n.parent.canReplaceWith(i3, i3 + 1, t);
16751
16751
  }
16752
- function pf$1(r22, e, t, n, i3) {
16752
+ function pf$2(r22, e, t, n, i3) {
16753
16753
  let s = r22.doc.nodeAt(e);
16754
16754
  if (!s)
16755
16755
  throw new RangeError("No node at given position");
@@ -17385,7 +17385,7 @@ Actual: ` + p3.attribValue
17385
17385
  When `type` isn't given, the existing node type is preserved,
17386
17386
  */
17387
17387
  setNodeMarkup(e, t, n = null, i3) {
17388
- return pf$1(this, e, t, n, i3), this;
17388
+ return pf$2(this, e, t, n, i3), this;
17389
17389
  }
17390
17390
  /**
17391
17391
  Set a single attribute on a given node to a new value.
@@ -17852,7 +17852,7 @@ Actual: ` + p3.attribValue
17852
17852
  }), r22.setSelection(ve$1.near(r22.doc.resolve(o), t));
17853
17853
  }
17854
17854
  const xo$2 = 1, Ao$2 = 2, Do$1 = 4;
17855
- let Bf$1 = class Bf extends Sf$1 {
17855
+ let Bf$2 = class Bf extends Sf$1 {
17856
17856
  /**
17857
17857
  @internal
17858
17858
  */
@@ -18140,7 +18140,7 @@ Actual: ` + p3.attribValue
18140
18140
  Start a [transaction](https://prosemirror.net/docs/ref/#state.Transaction) from this state.
18141
18141
  */
18142
18142
  get tr() {
18143
- return new Bf$1(this);
18143
+ return new Bf$2(this);
18144
18144
  }
18145
18145
  /**
18146
18146
  Create a new state.
@@ -21061,7 +21061,7 @@ Actual: ` + p3.attribValue
21061
21061
  bookmarkStart: Ld$2,
21062
21062
  fieldAnnotation: zd$2,
21063
21063
  tab: Td$2,
21064
- image: uu$2,
21064
+ image: uu$1,
21065
21065
  hardBreak: Gd$2,
21066
21066
  commentRangeStart: () => Co$2(r22, "Start"),
21067
21067
  commentRangeEnd: () => Co$2(r22, "End"),
@@ -21721,7 +21721,7 @@ Actual: ` + p3.attribValue
21721
21721
  let i3 = r22, s = e, o = Math.min(t / r22, n / e);
21722
21722
  return i3 = Math.round(i3 * o), s = Math.round(s * o), { scaledWidth: i3, scaledHeight: s };
21723
21723
  }
21724
- function uu$2(r22, e) {
21724
+ function uu$1(r22, e) {
21725
21725
  const {
21726
21726
  node: { attrs: t = {}, marks: n = [] },
21727
21727
  tableCell: i3
@@ -21931,7 +21931,7 @@ Actual: ` + p3.attribValue
21931
21931
  };
21932
21932
  }
21933
21933
  function Bo$2(r22, e) {
21934
- return uu$2(r22, e);
21934
+ return uu$1(r22, e);
21935
21935
  }
21936
21936
  function jd$2(r22) {
21937
21937
  const {
@@ -22111,7 +22111,7 @@ Actual: ` + p3.attribValue
22111
22111
  const { "w:type": B } = S.attributes;
22112
22112
  g.tableLayout = B;
22113
22113
  }
22114
- const T3 = fu$1(f3, t), A = i3.elements.find((B) => B.name === "w:tblW");
22114
+ const T3 = fu$2(f3, t), A = i3.elements.find((B) => B.name === "w:tblW");
22115
22115
  A && (g.tableWidth = {
22116
22116
  width: xe$1(A.attributes["w:w"]),
22117
22117
  type: A.attributes["w:type"]
@@ -22140,7 +22140,7 @@ Actual: ` + p3.attribValue
22140
22140
  !A && i3 && (A = i3);
22141
22141
  const w = No$2(r22), { attributes: k } = w || {}, C = {
22142
22142
  color: c3?.elements?.find((ae2) => ae2.name === "w:shd")?.attributes["w:fill"]
22143
- }, N3 = c3?.elements?.find((ae2) => ae2.name === "w:gridSpan")?.attributes["w:val"], q = c3?.elements?.find((ae2) => ae2.name === "w:tcMar"), D3 = c3?.elements?.find((ae2) => ae2.name === "w:vAlign")?.attributes["w:val"] || "top", K3 = {}, oe2 = fu$1(s, u) || {};
22143
+ }, N3 = c3?.elements?.find((ae2) => ae2.name === "w:gridSpan")?.attributes["w:val"], q = c3?.elements?.find((ae2) => ae2.name === "w:tcMar"), D3 = c3?.elements?.find((ae2) => ae2.name === "w:vAlign")?.attributes["w:val"] || "top", K3 = {}, oe2 = fu$2(s, u) || {};
22144
22144
  K3.cellMargins = rm$1(q, oe2);
22145
22145
  const { fontSize: ee, fonts: Z = {} } = oe2, ce2 = Z.ascii;
22146
22146
  if (A) {
@@ -22198,7 +22198,7 @@ Actual: ` + p3.attribValue
22198
22198
  const o = ir$2(r22, "right", e);
22199
22199
  return o && (t.right = o), t;
22200
22200
  };
22201
- function fu$1(r22, e, t) {
22201
+ function fu$2(r22, e, t) {
22202
22202
  if (!r22) return null;
22203
22203
  const n = {}, { attributes: i3 = {} } = r22, s = i3["w:val"];
22204
22204
  if (!s) return null;
@@ -23614,7 +23614,7 @@ Actual: ` + p3.attribValue
23614
23614
  return;
23615
23615
  }
23616
23616
  }
23617
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.14") {
23617
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.15") {
23618
23618
  const n = "docProps/custom.xml";
23619
23619
  e[n] || (e[n] = Fu$2());
23620
23620
  const i3 = e["docProps/custom.xml"];
@@ -23839,7 +23839,7 @@ Actual: ` + p3.attribValue
23839
23839
  function Fu$2() {
23840
23840
  return zf$2;
23841
23841
  }
23842
- function Bu$2(r22 = 2, e = "0.10.14") {
23842
+ function Bu$2(r22 = 2, e = "0.10.15") {
23843
23843
  return {
23844
23844
  type: "element",
23845
23845
  name: "property",
@@ -26304,12 +26304,12 @@ Actual: ` + p3.attribValue
26304
26304
  }), await this.updateContentTypes(y, R), y;
26305
26305
  }
26306
26306
  };
26307
- var hf$1 = Object.defineProperty;
26307
+ var pf$1 = Object.defineProperty;
26308
26308
  var Qs = (t) => {
26309
26309
  throw TypeError(t);
26310
26310
  };
26311
- var mf$1 = (t, e, n) => e in t ? hf$1(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
26312
- var P = (t, e, n) => mf$1(t, typeof e != "symbol" ? e + "" : e, n), Ho$1 = (t, e, n) => e.has(t) || Qs("Cannot " + n);
26311
+ var hf$1 = (t, e, n) => e in t ? pf$1(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
26312
+ var P = (t, e, n) => hf$1(t, typeof e != "symbol" ? e + "" : e, n), Ho$1 = (t, e, n) => e.has(t) || Qs("Cannot " + n);
26313
26313
  var Ge = (t, e, n) => (Ho$1(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? Qs("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), jo$1 = (t, e, n, r) => (Ho$1(t, e, "write to private field"), e.set(t, n), n), D = (t, e, n) => (Ho$1(t, e, "access private method"), n);
26314
26314
  function No$1(t) {
26315
26315
  const { from: e, to: n, empty: r } = t.selection, o = [];
@@ -26333,7 +26333,7 @@ Actual: ` + p3.attribValue
26333
26333
  }
26334
26334
  }), n ? d : c3;
26335
26335
  };
26336
- function zf$1(t) {
26336
+ function Bf$1(t) {
26337
26337
  const { state: e } = t, { selection: n } = e, r = No$1(e), o = n.$head.parent.attrs.marksAttrs, i3 = r.filter((f3) => !["textStyle", "link"].includes(f3.type.name)).map((f3) => ({ name: f3.type.name, attrs: f3.attrs })), s = r.filter((f3) => f3.type.name === "textStyle");
26338
26338
  if (i3.push(...s.flatMap(sa$1)), o) {
26339
26339
  const f3 = o.filter((h3) => !["textStyle", "link"].includes(h3.type)).map((h3) => ({ name: h3.type, attrs: h3.attrs || {} })), p3 = o.filter((h3) => h3.type === "textStyle");
@@ -26344,7 +26344,7 @@ Actual: ` + p3.attribValue
26344
26344
  let { from: f3, to: p3, attrs: h3 } = l;
26345
26345
  n.from >= f3 && n.to <= p3 && i3.push({ name: "link", attrs: h3 });
26346
26346
  }
26347
- const c3 = ["paragraphSpacing"], d = _f$1(e);
26347
+ const c3 = ["paragraphSpacing"], d = zf$1(e);
26348
26348
  return Object.keys(d).forEach((f3) => {
26349
26349
  if (c3.includes(f3)) return;
26350
26350
  const p3 = {};
@@ -26357,7 +26357,7 @@ Actual: ` + p3.attribValue
26357
26357
  n[r] && e.push({ name: r, attrs: { [r]: n[r] } });
26358
26358
  }), e;
26359
26359
  }
26360
- function _f$1(t) {
26360
+ function zf$1(t) {
26361
26361
  try {
26362
26362
  const { from: e, to: n, empty: r } = t.selection, o = {}, i3 = (l) => {
26363
26363
  Object.keys(l.attrs).forEach((c3) => {
@@ -26380,7 +26380,7 @@ Actual: ` + p3.attribValue
26380
26380
  return e.length ? fe$1.from(e).append(this) : this;
26381
26381
  };
26382
26382
  fe$1.prototype.appendInner = function(e) {
26383
- return new Vf$1(this, e);
26383
+ return new _f$1(this, e);
26384
26384
  };
26385
26385
  fe$1.prototype.slice = function(e, n) {
26386
26386
  return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? fe$1.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
@@ -26435,7 +26435,7 @@ Actual: ` + p3.attribValue
26435
26435
  }, Object.defineProperties(e.prototype, n), e;
26436
26436
  }(fe$1);
26437
26437
  fe$1.empty = new oc$1([]);
26438
- var Vf$1 = /* @__PURE__ */ function(t) {
26438
+ var _f$1 = /* @__PURE__ */ function(t) {
26439
26439
  function e(n, r) {
26440
26440
  t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
26441
26441
  }
@@ -26468,7 +26468,7 @@ Actual: ` + p3.attribValue
26468
26468
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
26469
26469
  }, e;
26470
26470
  }(fe$1);
26471
- const $f$1 = 500;
26471
+ const Vf$1 = 500;
26472
26472
  let Xe$1 = class Xe2 {
26473
26473
  constructor(e, n) {
26474
26474
  this.items = e, this.eventCount = n;
@@ -26510,7 +26510,7 @@ Actual: ` + p3.attribValue
26510
26510
  (p3 = l && l.merge(f3)) && (f3 = p3, d ? i3.pop() : a = a.slice(0, a.length - 1)), i3.push(f3), n && (s++, n = void 0), o || (l = f3);
26511
26511
  }
26512
26512
  let c3 = s - r.depth;
26513
- return c3 > jf$1 && (a = Hf$1(a, c3), s -= c3), new Xe2(a.append(i3), s);
26513
+ return c3 > Hf$1 && (a = $f$1(a, c3), s -= c3), new Xe2(a.append(i3), s);
26514
26514
  }
26515
26515
  remapping(e, n) {
26516
26516
  let r = new wr$2();
@@ -26550,7 +26550,7 @@ Actual: ` + p3.attribValue
26550
26550
  for (let f3 = n; f3 < s; f3++)
26551
26551
  c3.push(new Qe$2(i3.maps[f3]));
26552
26552
  let d = this.items.slice(0, o).append(c3).append(r), u = new Xe2(d, a);
26553
- return u.emptyItemCount() > $f$1 && (u = u.compress(this.items.length - r.length)), u;
26553
+ return u.emptyItemCount() > Vf$1 && (u = u.compress(this.items.length - r.length)), u;
26554
26554
  }
26555
26555
  emptyItemCount() {
26556
26556
  let e = 0;
@@ -26582,7 +26582,7 @@ Actual: ` + p3.attribValue
26582
26582
  }
26583
26583
  };
26584
26584
  Xe$1.empty = new Xe$1(fe$1.empty, 0);
26585
- function Hf$1(t, e) {
26585
+ function $f$1(t, e) {
26586
26586
  let n;
26587
26587
  return t.forEach((r, o) => {
26588
26588
  if (r.selection && e-- == 0)
@@ -26606,23 +26606,23 @@ Actual: ` + p3.attribValue
26606
26606
  this.done = e, this.undone = n, this.prevRanges = r, this.prevTime = o, this.prevComposition = i3;
26607
26607
  }
26608
26608
  };
26609
- const jf$1 = 20;
26610
- function Wf$1(t, e, n, r) {
26609
+ const Hf$1 = 20;
26610
+ function jf$1(t, e, n, r) {
26611
26611
  let o = n.getMeta(vt), i3;
26612
26612
  if (o)
26613
26613
  return o.historyState;
26614
- n.getMeta(Kf$1) && (t = new Tt$1(t.done, t.undone, null, 0, -1));
26614
+ n.getMeta(qf$1) && (t = new Tt$1(t.done, t.undone, null, 0, -1));
26615
26615
  let s = n.getMeta("appendedTransaction");
26616
26616
  if (n.steps.length == 0)
26617
26617
  return t;
26618
26618
  if (s && s.getMeta(vt))
26619
26619
  return s.getMeta(vt).redo ? new Tt$1(t.done.addTransform(n, void 0, r, ro$2(e)), t.undone, aa$1(n.mapping.maps), t.prevTime, t.prevComposition) : new Tt$1(t.done, t.undone.addTransform(n, void 0, r, ro$2(e)), null, t.prevTime, t.prevComposition);
26620
26620
  if (n.getMeta("addToHistory") !== false && !(s && s.getMeta("addToHistory") === false)) {
26621
- let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !Uf$1(n, t.prevRanges)), c3 = s ? Jo$1(t.prevRanges, n.mapping) : aa$1(n.mapping.maps);
26621
+ let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !Wf$1(n, t.prevRanges)), c3 = s ? Jo$1(t.prevRanges, n.mapping) : aa$1(n.mapping.maps);
26622
26622
  return new Tt$1(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, ro$2(e)), Xe$1.empty, c3, n.time, a ?? t.prevComposition);
26623
26623
  } else return (i3 = n.getMeta("rebased")) ? new Tt$1(t.done.rebased(n, i3), t.undone.rebased(n, i3), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Tt$1(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Jo$1(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
26624
26624
  }
26625
- function Uf$1(t, e) {
26625
+ function Wf$1(t, e) {
26626
26626
  if (!e)
26627
26627
  return false;
26628
26628
  if (!t.docChanged)
@@ -26649,7 +26649,7 @@ Actual: ` + p3.attribValue
26649
26649
  }
26650
26650
  return n;
26651
26651
  }
26652
- function qf$1(t, e, n) {
26652
+ function Uf$1(t, e, n) {
26653
26653
  let r = ro$2(e), o = vt.get(e).spec.config, i3 = (n ? t.undone : t.done).popEvent(e, r);
26654
26654
  if (!i3)
26655
26655
  return null;
@@ -26669,8 +26669,8 @@ Actual: ` + p3.attribValue
26669
26669
  }
26670
26670
  return Yo$1;
26671
26671
  }
26672
- const vt = new Cp$2("history"), Kf$1 = new Cp$2("closeHistory");
26673
- function Xf$1(t = {}) {
26672
+ const vt = new Cp$2("history"), qf$1 = new Cp$2("closeHistory");
26673
+ function Kf$1(t = {}) {
26674
26674
  return t = {
26675
26675
  depth: t.depth || 100,
26676
26676
  newGroupDelay: t.newGroupDelay || 500
@@ -26681,7 +26681,7 @@ Actual: ` + p3.attribValue
26681
26681
  return new Tt$1(Xe$1.empty, Xe$1.empty, null, 0, -1);
26682
26682
  },
26683
26683
  apply(e, n, r) {
26684
- return Wf$1(n, r, e, t);
26684
+ return jf$1(n, r, e, t);
26685
26685
  }
26686
26686
  },
26687
26687
  config: t,
@@ -26701,7 +26701,7 @@ Actual: ` + p3.attribValue
26701
26701
  if (!o || (t ? o.undone : o.done).eventCount == 0)
26702
26702
  return false;
26703
26703
  if (r) {
26704
- let i3 = qf$1(o, n, t);
26704
+ let i3 = Uf$1(o, n, t);
26705
26705
  i3 && r(i3.scrollIntoView());
26706
26706
  }
26707
26707
  return true;
@@ -26750,7 +26750,7 @@ Actual: ` + p3.attribValue
26750
26750
  return new Q3(...e);
26751
26751
  }
26752
26752
  };
26753
- const Jf$1 = Q$1.create({
26753
+ const Xf$1 = Q$1.create({
26754
26754
  name: "history",
26755
26755
  addOptions() {
26756
26756
  return {
@@ -26759,7 +26759,7 @@ Actual: ` + p3.attribValue
26759
26759
  };
26760
26760
  },
26761
26761
  addPmPlugins() {
26762
- return [Xf$1(this.options)];
26762
+ return [Kf$1(this.options)];
26763
26763
  },
26764
26764
  //prettier-ignore
26765
26765
  addCommands() {
@@ -26787,18 +26787,18 @@ Actual: ` + p3.attribValue
26787
26787
  const mt$1 = function(t, e, n) {
26788
26788
  let r = wi$1 || (wi$1 = document.createRange());
26789
26789
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
26790
- }, Yf$1 = function() {
26790
+ }, Jf$1 = function() {
26791
26791
  wi$1 = null;
26792
26792
  }, ln$2 = function(t, e, n, r) {
26793
26793
  return n && (ca$1(t, e, n, r, -1) || ca$1(t, e, n, r, 1));
26794
- }, Gf$1 = /^(img|br|input|textarea|hr)$/i;
26794
+ }, Yf$1 = /^(img|br|input|textarea|hr)$/i;
26795
26795
  function ca$1(t, e, n, r, o) {
26796
26796
  for (; ; ) {
26797
26797
  if (t == n && e == r)
26798
26798
  return true;
26799
26799
  if (e == (o < 0 ? 0 : _e(t))) {
26800
26800
  let i3 = t.parentNode;
26801
- if (!i3 || i3.nodeType != 1 || Tr$1(t) || Gf$1.test(t.nodeName) || t.contentEditable == "false")
26801
+ if (!i3 || i3.nodeType != 1 || Tr$1(t) || Yf$1.test(t.nodeName) || t.contentEditable == "false")
26802
26802
  return false;
26803
26803
  e = me(t) + (o < 0 ? 0 : 1), t = i3;
26804
26804
  } else if (t.nodeType == 1) {
@@ -26812,7 +26812,7 @@ Actual: ` + p3.attribValue
26812
26812
  function _e(t) {
26813
26813
  return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
26814
26814
  }
26815
- function Zf$1(t, e) {
26815
+ function Gf$1(t, e) {
26816
26816
  for (; ; ) {
26817
26817
  if (t.nodeType == 3 && e)
26818
26818
  return t;
@@ -26826,7 +26826,7 @@ Actual: ` + p3.attribValue
26826
26826
  return null;
26827
26827
  }
26828
26828
  }
26829
- function Qf$1(t, e) {
26829
+ function Zf$1(t, e) {
26830
26830
  for (; ; ) {
26831
26831
  if (t.nodeType == 3 && e < t.nodeValue.length)
26832
26832
  return t;
@@ -26840,7 +26840,7 @@ Actual: ` + p3.attribValue
26840
26840
  return null;
26841
26841
  }
26842
26842
  }
26843
- function ep$1(t, e, n) {
26843
+ function Qf$1(t, e, n) {
26844
26844
  for (let r = e == 0, o = e == _e(t); r || o; ) {
26845
26845
  if (t == n)
26846
26846
  return true;
@@ -26863,13 +26863,13 @@ Actual: ` + p3.attribValue
26863
26863
  let n = document.createEvent("Event");
26864
26864
  return n.initEvent("keydown", true, true), n.keyCode = t, n.key = n.code = e, n;
26865
26865
  }
26866
- function tp$1(t) {
26866
+ function ep$1(t) {
26867
26867
  let e = t.activeElement;
26868
26868
  for (; e && e.shadowRoot; )
26869
26869
  e = e.shadowRoot.activeElement;
26870
26870
  return e;
26871
26871
  }
26872
- function np$1(t, e, n) {
26872
+ function tp$1(t, e, n) {
26873
26873
  if (t.caretPositionFromPoint)
26874
26874
  try {
26875
26875
  let r = t.caretPositionFromPoint(e, n);
@@ -26885,8 +26885,8 @@ Actual: ` + p3.attribValue
26885
26885
  }
26886
26886
  const ot = typeof navigator < "u" ? navigator : null, da$1 = typeof document < "u" ? document : null, jt$2 = ot && ot.userAgent || "", vi$1 = /Edge\/(\d+)/.exec(jt$2), lc$1 = /MSIE \d/.exec(jt$2), ki$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt$2), Oe$2 = !!(lc$1 || ki$1 || vi$1), Lt$1 = lc$1 ? document.documentMode : ki$1 ? +ki$1[1] : vi$1 ? +vi$1[1] : 0, Je$2 = !Oe$2 && /gecko\/(\d+)/i.test(jt$2);
26887
26887
  Je$2 && +(/Firefox\/(\d+)/.exec(jt$2) || [0, 0])[1];
26888
- const Ci$1 = !Oe$2 && /Chrome\/(\d+)/.exec(jt$2), be$1 = !!Ci$1, cc$1 = Ci$1 ? +Ci$1[1] : 0, xe = !Oe$2 && !!ot && /Apple Computer/.test(ot.vendor), Dn$2 = xe && (/Mobile\/\w+/.test(jt$2) || !!ot && ot.maxTouchPoints > 2), ze$2 = Dn$2 || (ot ? /Mac/.test(ot.platform) : false), rp$1 = ot ? /Win/.test(ot.platform) : false, bt$1 = /Android \d/.test(jt$2), Dr = !!da$1 && "webkitFontSmoothing" in da$1.documentElement.style, op$1 = Dr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
26889
- function ip$1(t) {
26888
+ const Ci$1 = !Oe$2 && /Chrome\/(\d+)/.exec(jt$2), be$1 = !!Ci$1, cc$1 = Ci$1 ? +Ci$1[1] : 0, xe = !Oe$2 && !!ot && /Apple Computer/.test(ot.vendor), Dn$2 = xe && (/Mobile\/\w+/.test(jt$2) || !!ot && ot.maxTouchPoints > 2), ze$2 = Dn$2 || (ot ? /Mac/.test(ot.platform) : false), np$1 = ot ? /Win/.test(ot.platform) : false, bt$1 = /Android \d/.test(jt$2), Dr = !!da$1 && "webkitFontSmoothing" in da$1.documentElement.style, rp$1 = Dr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
26889
+ function op$1(t) {
26890
26890
  let e = t.defaultView && t.defaultView.visualViewport;
26891
26891
  return e ? {
26892
26892
  left: 0,
@@ -26903,7 +26903,7 @@ Actual: ` + p3.attribValue
26903
26903
  function pt(t, e) {
26904
26904
  return typeof t == "number" ? t : t[e];
26905
26905
  }
26906
- function sp$1(t) {
26906
+ function ip$1(t) {
26907
26907
  let e = t.getBoundingClientRect(), n = e.width / t.offsetWidth || 1, r = e.height / t.offsetHeight || 1;
26908
26908
  return {
26909
26909
  left: e.left,
@@ -26919,7 +26919,7 @@ Actual: ` + p3.attribValue
26919
26919
  s = Tn$1(s);
26920
26920
  continue;
26921
26921
  }
26922
- let a = s, l = a == i3.body, c3 = l ? ip$1(i3) : sp$1(a), d = 0, u = 0;
26922
+ let a = s, l = a == i3.body, c3 = l ? op$1(i3) : ip$1(a), d = 0, u = 0;
26923
26923
  if (e.top < c3.top + pt(r, "top") ? u = -(c3.top - e.top + pt(o, "top")) : e.bottom > c3.bottom - pt(r, "bottom") && (u = e.bottom - e.top > c3.bottom - c3.top ? e.top + pt(o, "top") - c3.top : e.bottom - c3.bottom + pt(o, "bottom")), e.left < c3.left + pt(r, "left") ? d = -(c3.left - e.left + pt(o, "left")) : e.right > c3.right - pt(r, "right") && (d = e.right - c3.right + pt(o, "right")), d || u)
26924
26924
  if (l)
26925
26925
  i3.defaultView.scrollBy(d, u);
@@ -26935,7 +26935,7 @@ Actual: ` + p3.attribValue
26935
26935
  s = f3 == "absolute" ? s.offsetParent : Tn$1(s);
26936
26936
  }
26937
26937
  }
26938
- function ap$1(t) {
26938
+ function sp$1(t) {
26939
26939
  let e = t.dom.getBoundingClientRect(), n = Math.max(0, e.top), r, o;
26940
26940
  for (let i3 = (e.left + e.right) / 2, s = n + 1; s < Math.min(innerHeight, e.bottom); s += 5) {
26941
26941
  let a = t.root.elementFromPoint(i3, s);
@@ -26955,7 +26955,7 @@ Actual: ` + p3.attribValue
26955
26955
  ;
26956
26956
  return e;
26957
26957
  }
26958
- function lp$1({ refDOM: t, refTop: e, stack: n }) {
26958
+ function ap$1({ refDOM: t, refTop: e, stack: n }) {
26959
26959
  let r = t ? t.getBoundingClientRect().top : 0;
26960
26960
  uc$1(n, r == 0 ? 0 : r - e);
26961
26961
  }
@@ -26966,7 +26966,7 @@ Actual: ` + p3.attribValue
26966
26966
  }
26967
26967
  }
26968
26968
  let gn$2 = null;
26969
- function cp$1(t) {
26969
+ function lp$1(t) {
26970
26970
  if (t.setActive)
26971
26971
  return t.setActive();
26972
26972
  if (gn$2)
@@ -27004,9 +27004,9 @@ Actual: ` + p3.attribValue
27004
27004
  !n && (e.left >= h3.right && e.top >= h3.top || e.left >= h3.left && e.top >= h3.bottom) && (i3 = u + 1);
27005
27005
  }
27006
27006
  }
27007
- return !n && l && (n = l, o = c3, r = 0), n && n.nodeType == 3 ? dp$1(n, o) : !n || r && n.nodeType == 1 ? { node: t, offset: i3 } : fc$1(n, o);
27007
+ return !n && l && (n = l, o = c3, r = 0), n && n.nodeType == 3 ? cp$1(n, o) : !n || r && n.nodeType == 1 ? { node: t, offset: i3 } : fc$1(n, o);
27008
27008
  }
27009
- function dp$1(t, e) {
27009
+ function cp$1(t, e) {
27010
27010
  let n = t.nodeValue.length, r = document.createRange();
27011
27011
  for (let o = 0; o < n; o++) {
27012
27012
  r.setEnd(t, o + 1), r.setStart(t, o);
@@ -27019,11 +27019,11 @@ Actual: ` + p3.attribValue
27019
27019
  function bs(t, e) {
27020
27020
  return t.left >= e.left - 1 && t.left <= e.right + 1 && t.top >= e.top - 1 && t.top <= e.bottom + 1;
27021
27021
  }
27022
- function up$1(t, e) {
27022
+ function dp$1(t, e) {
27023
27023
  let n = t.parentNode;
27024
27024
  return n && /^li$/i.test(n.nodeName) && e.left < t.getBoundingClientRect().left ? n : t;
27025
27025
  }
27026
- function fp$1(t, e, n) {
27026
+ function up$1(t, e, n) {
27027
27027
  let { node: r, offset: o } = fc$1(e, n), i3 = -1;
27028
27028
  if (r.nodeType == 1 && !r.firstChild) {
27029
27029
  let s = r.getBoundingClientRect();
@@ -27031,7 +27031,7 @@ Actual: ` + p3.attribValue
27031
27031
  }
27032
27032
  return t.docView.posFromDOM(r, o, i3);
27033
27033
  }
27034
- function pp$1(t, e, n, r) {
27034
+ function fp$1(t, e, n, r) {
27035
27035
  let o = -1;
27036
27036
  for (let i3 = e, s = false; i3 != t.dom; ) {
27037
27037
  let a = t.docView.nearestDesc(i3, true), l;
@@ -27062,8 +27062,8 @@ Actual: ` + p3.attribValue
27062
27062
  }
27063
27063
  return t;
27064
27064
  }
27065
- function hp$1(t, e) {
27066
- let n = t.dom.ownerDocument, r, o = 0, i3 = np$1(n, e.left, e.top);
27065
+ function pp$1(t, e) {
27066
+ let n = t.dom.ownerDocument, r, o = 0, i3 = tp$1(n, e.left, e.top);
27067
27067
  i3 && ({ node: r, offset: o } = i3);
27068
27068
  let s = (t.root.elementFromPoint ? t.root : n).elementFromPoint(e.left, e.top), a;
27069
27069
  if (!s || !t.dom.contains(s.nodeType != 1 ? s.parentNode : s)) {
@@ -27074,15 +27074,15 @@ Actual: ` + p3.attribValue
27074
27074
  if (xe)
27075
27075
  for (let c3 = s; r && c3; c3 = Tn$1(c3))
27076
27076
  c3.draggable && (r = void 0);
27077
- if (s = up$1(s, e), r) {
27077
+ if (s = dp$1(s, e), r) {
27078
27078
  if (Je$2 && r.nodeType == 1 && (o = Math.min(o, r.childNodes.length), o < r.childNodes.length)) {
27079
27079
  let d = r.childNodes[o], u;
27080
27080
  d.nodeName == "IMG" && (u = d.getBoundingClientRect()).right <= e.left && u.bottom > e.top && o++;
27081
27081
  }
27082
27082
  let c3;
27083
- Dr && o && r.nodeType == 1 && (c3 = r.childNodes[o - 1]).nodeType == 1 && c3.contentEditable == "false" && c3.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = pp$1(t, r, o, e));
27083
+ Dr && o && r.nodeType == 1 && (c3 = r.childNodes[o - 1]).nodeType == 1 && c3.contentEditable == "false" && c3.getBoundingClientRect().top >= e.top && o--, r == t.dom && o == r.childNodes.length - 1 && r.lastChild.nodeType == 1 && e.top > r.lastChild.getBoundingClientRect().bottom ? a = t.state.doc.content.size : (o == 0 || r.nodeType != 1 || r.childNodes[o - 1].nodeName != "BR") && (a = fp$1(t, r, o, e));
27084
27084
  }
27085
- a == null && (a = fp$1(t, s, e));
27085
+ a == null && (a = up$1(t, s, e));
27086
27086
  let l = t.docView.nearestDesc(s, true);
27087
27087
  return { pos: a, inside: l ? l.posAtStart - l.border : -1 };
27088
27088
  }
@@ -27098,11 +27098,11 @@ Actual: ` + p3.attribValue
27098
27098
  }
27099
27099
  return Array.prototype.find.call(n, fa$1) || t.getBoundingClientRect();
27100
27100
  }
27101
- const mp$1 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
27101
+ const hp$1 = /[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;
27102
27102
  function hc$1(t, e, n) {
27103
27103
  let { node: r, offset: o, atom: i3 } = t.docView.domFromPos(e, n < 0 ? -1 : 1), s = Dr || Je$2;
27104
27104
  if (r.nodeType == 3)
27105
- if (s && (mp$1.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
27105
+ if (s && (hp$1.test(r.nodeValue) || (n < 0 ? !o : o == r.nodeValue.length))) {
27106
27106
  let l = Ot$1(mt$1(r, o, o), n);
27107
27107
  if (Je$2 && o && /\s/.test(r.nodeValue[o - 1]) && o < r.nodeValue.length) {
27108
27108
  let c3 = Ot$1(mt$1(r, o - 1, o - 1), -1);
@@ -27166,7 +27166,7 @@ Actual: ` + p3.attribValue
27166
27166
  r != e && t.updateState(r), o != t.dom && o && o.focus();
27167
27167
  }
27168
27168
  }
27169
- function gp$1(t, e, n) {
27169
+ function mp$1(t, e, n) {
27170
27170
  let r = e.selection, o = n == "up" ? r.$from : r.$to;
27171
27171
  return mc$1(t, e, () => {
27172
27172
  let { node: i3 } = t.docView.domFromPos(o.pos, n == "up" ? -1 : 1);
@@ -27198,13 +27198,13 @@ Actual: ` + p3.attribValue
27198
27198
  return true;
27199
27199
  });
27200
27200
  }
27201
- const yp$1 = /[\u0590-\u08ac]/;
27202
- function bp$1(t, e, n) {
27201
+ const gp$1 = /[\u0590-\u08ac]/;
27202
+ function yp$1(t, e, n) {
27203
27203
  let { $head: r } = e.selection;
27204
27204
  if (!r.parent.isTextblock)
27205
27205
  return false;
27206
27206
  let o = r.parentOffset, i3 = !o, s = o == r.parent.content.size, a = t.domSelection();
27207
- return a ? !yp$1.test(r.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? i3 : s : mc$1(t, e, () => {
27207
+ return a ? !gp$1.test(r.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? i3 : s : mc$1(t, e, () => {
27208
27208
  let { focusNode: l, focusOffset: c3, anchorNode: d, anchorOffset: u } = t.domSelectionRange(), f3 = a.caretBidiLevel;
27209
27209
  a.modify("move", n, "character");
27210
27210
  let p3 = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: h3, focusOffset: m } = t.domSelectionRange(), g = h3 && !p3.contains(h3.nodeType == 1 ? h3 : h3.parentNode) || l == h3 && c3 == m;
@@ -27216,8 +27216,8 @@ Actual: ` + p3.attribValue
27216
27216
  }) : r.pos == r.start() || r.pos == r.end();
27217
27217
  }
27218
27218
  let pa$1 = null, ha$1 = null, ma$1 = false;
27219
- function wp$1(t, e, n) {
27220
- return pa$1 == e && ha$1 == n ? ma$1 : (pa$1 = e, ha$1 = n, ma$1 = n == "up" || n == "down" ? gp$1(t, e, n) : bp$1(t, e, n));
27219
+ function bp$1(t, e, n) {
27220
+ return pa$1 == e && ha$1 == n ? ma$1 : (pa$1 = e, ha$1 = n, ma$1 = n == "up" || n == "down" ? mp$1(t, e, n) : yp$1(t, e, n));
27221
27221
  }
27222
27222
  const $e$2 = 0, ga$1 = 1, Zt$1 = 2, it = 3;
27223
27223
  class Nr {
@@ -27601,7 +27601,7 @@ Actual: ` + p3.attribValue
27601
27601
  return this.widget.type.side;
27602
27602
  }
27603
27603
  };
27604
- let vp$1 = class vp extends Nr {
27604
+ let wp$1 = class wp extends Nr {
27605
27605
  constructor(e, n, r, o) {
27606
27606
  super(e, [], n, null), this.textDOM = r, this.text = o;
27607
27607
  }
@@ -27682,7 +27682,7 @@ Actual: ` + p3.attribValue
27682
27682
  } else d || ({ dom: d, contentDOM: u } = _a$2.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
27683
27683
  !u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = true));
27684
27684
  let f3 = d;
27685
- return d = vc$1(d, r, n), c3 ? l = new kp(e, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new Po$1(e, n, r, o, d, f3, i3) : new Ft2(e, n, r, o, d, u || null, f3, i3, s + 1);
27685
+ return d = vc$1(d, r, n), c3 ? l = new vp$1(e, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new Po$1(e, n, r, o, d, f3, i3) : new Ft2(e, n, r, o, d, u || null, f3, i3, s + 1);
27686
27686
  }
27687
27687
  parseRule() {
27688
27688
  if (this.node.type.spec.reparseInView)
@@ -27718,14 +27718,14 @@ Actual: ` + p3.attribValue
27718
27718
  // separate step, syncs the DOM inside `this.contentDOM` to
27719
27719
  // `this.children`.
27720
27720
  updateChildren(e, n) {
27721
- let r = this.node.inlineContent, o = n, i3 = e.composing ? this.localCompositionInfo(e, n) : null, s = i3 && i3.pos > -1 ? i3 : null, a = i3 && i3.pos < 0, l = new Sp$1(this, s && s.node, e);
27722
- Ap(this.node, this.innerDeco, (c3, d, u) => {
27721
+ let r = this.node.inlineContent, o = n, i3 = e.composing ? this.localCompositionInfo(e, n) : null, s = i3 && i3.pos > -1 ? i3 : null, a = i3 && i3.pos < 0, l = new Cp$1(this, s && s.node, e);
27722
+ Mp(this.node, this.innerDeco, (c3, d, u) => {
27723
27723
  c3.spec.marks ? l.syncToMarks(c3.spec.marks, r, e) : c3.type.side >= 0 && !u && l.syncToMarks(d == this.node.childCount ? ge$2.none : this.node.child(d).marks, r, e), l.placeWidget(c3, e, o);
27724
27724
  }, (c3, d, u, f3) => {
27725
27725
  l.syncToMarks(c3.marks, r, e);
27726
27726
  let p3;
27727
27727
  l.findNodeMatch(c3, d, u, f3) || a && e.state.selection.from > o && e.state.selection.to < o + c3.nodeSize && (p3 = l.findIndexWithChild(i3.node)) > -1 && l.updateNodeAt(c3, d, u, p3, e) || l.updateNextNode(c3, d, u, e, f3, o) || l.addNode(c3, d, u, e, o), o += c3.nodeSize;
27728
- }), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Zt$1) && (s && this.protectLocalComposition(e, s), bc$1(this.contentDOM, this.children, e), Dn$2 && Op(this.dom));
27728
+ }), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == Zt$1) && (s && this.protectLocalComposition(e, s), bc$1(this.contentDOM, this.children, e), Dn$2 && Ap(this.dom));
27729
27729
  }
27730
27730
  localCompositionInfo(e, n) {
27731
27731
  let { from: r, to: o } = e.state.selection;
@@ -27735,7 +27735,7 @@ Actual: ` + p3.attribValue
27735
27735
  if (!i3 || !this.dom.contains(i3.parentNode))
27736
27736
  return null;
27737
27737
  if (this.node.inlineContent) {
27738
- let s = i3.nodeValue, a = Tp$1(this.node.content, s, r - n, o - n);
27738
+ let s = i3.nodeValue, a = Op(this.node.content, s, r - n, o - n);
27739
27739
  return a < 0 ? null : { node: i3, pos: a, text: s };
27740
27740
  } else
27741
27741
  return { node: i3, pos: -1, text: "" };
@@ -27751,7 +27751,7 @@ Actual: ` + p3.attribValue
27751
27751
  i3.parentNode.removeChild(i3.nextSibling);
27752
27752
  i3.pmViewDesc && (i3.pmViewDesc = void 0);
27753
27753
  }
27754
- let s = new vp$1(this, i3, n, o);
27754
+ let s = new wp$1(this, i3, n, o);
27755
27755
  e.input.compositionNodes.push(s), this.children = xi$1(this.children, r, r + o.length, e, s);
27756
27756
  }
27757
27757
  // If this desc must be updated to match the given node decoration,
@@ -27842,7 +27842,7 @@ Actual: ` + p3.attribValue
27842
27842
  return this.dom.nodeName == "IMG";
27843
27843
  }
27844
27844
  };
27845
- class kp extends Ft$1 {
27845
+ let vp$1 = class vp extends Ft$1 {
27846
27846
  constructor(e, n, r, o, i3, s, a, l, c3, d) {
27847
27847
  super(e, n, r, o, i3, s, a, c3, d), this.spec = l;
27848
27848
  }
@@ -27875,7 +27875,7 @@ Actual: ` + p3.attribValue
27875
27875
  ignoreMutation(e) {
27876
27876
  return this.spec.ignoreMutation ? this.spec.ignoreMutation(e) : super.ignoreMutation(e);
27877
27877
  }
27878
- }
27878
+ };
27879
27879
  function bc$1(t, e, n) {
27880
27880
  let r = t.firstChild, o = false;
27881
27881
  for (let i3 = 0; i3 < e.length; i3++) {
@@ -27926,11 +27926,11 @@ Actual: ` + p3.attribValue
27926
27926
  let l;
27927
27927
  a && a.nodeName == s.nodeName && o != t && (l = o.parentNode) && l.nodeName.toLowerCase() == s.nodeName || (l = document.createElement(s.nodeName), l.pmIsDeco = true, l.appendChild(o), a = Qt$1[0]), o = l;
27928
27928
  }
27929
- Cp$1(o, a || Qt$1[0], s);
27929
+ kp(o, a || Qt$1[0], s);
27930
27930
  }
27931
27931
  return o;
27932
27932
  }
27933
- function Cp$1(t, e, n) {
27933
+ function kp(t, e, n) {
27934
27934
  for (let r in e)
27935
27935
  r != "class" && r != "style" && r != "nodeName" && !(r in n) && t.removeAttribute(r);
27936
27936
  for (let r in n)
@@ -27967,9 +27967,9 @@ Actual: ` + p3.attribValue
27967
27967
  let e = t.nextSibling;
27968
27968
  return t.parentNode.removeChild(t), e;
27969
27969
  }
27970
- let Sp$1 = class Sp {
27970
+ let Cp$1 = class Cp {
27971
27971
  constructor(e, n, r) {
27972
- this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = false, this.top = e, this.preMatch = xp$1(e.node.content, e);
27972
+ this.lock = n, this.view = r, this.index = 0, this.stack = [], this.changed = false, this.top = e, this.preMatch = Sp$1(e.node.content, e);
27973
27973
  }
27974
27974
  // Destroy and remove the children between the given indices in
27975
27975
  // `this.top`.
@@ -28117,7 +28117,7 @@ Actual: ` + p3.attribValue
28117
28117
  return this.lock && (e == this.lock || e.nodeType == 1 && e.contains(this.lock.parentNode));
28118
28118
  }
28119
28119
  };
28120
- function xp$1(t, e) {
28120
+ function Sp$1(t, e) {
28121
28121
  let n = e, r = n.children.length, o = t.childCount, i3 = /* @__PURE__ */ new Map(), s = [];
28122
28122
  e: for (; o > 0; ) {
28123
28123
  let a;
@@ -28144,10 +28144,10 @@ Actual: ` + p3.attribValue
28144
28144
  }
28145
28145
  return { index: o, matched: i3, matches: s.reverse() };
28146
28146
  }
28147
- function Mp(t, e) {
28147
+ function xp$1(t, e) {
28148
28148
  return t.type.side - e.type.side;
28149
28149
  }
28150
- function Ap(t, e, n, r) {
28150
+ function Mp(t, e, n, r) {
28151
28151
  let o = e.locals(t), i3 = 0;
28152
28152
  if (o.length == 0) {
28153
28153
  for (let c3 = 0; c3 < t.childCount; c3++) {
@@ -28165,7 +28165,7 @@ Actual: ` + p3.attribValue
28165
28165
  }
28166
28166
  if (d)
28167
28167
  if (u) {
28168
- u.sort(Mp);
28168
+ u.sort(xp$1);
28169
28169
  for (let g = 0; g < u.length; g++)
28170
28170
  n(u[g], c3, !!l);
28171
28171
  } else
@@ -28195,13 +28195,13 @@ Actual: ` + p3.attribValue
28195
28195
  r(f3, m, e.forChild(i3, f3), p3), i3 = h3;
28196
28196
  }
28197
28197
  }
28198
- function Op(t) {
28198
+ function Ap(t) {
28199
28199
  if (t.nodeName == "UL" || t.nodeName == "OL") {
28200
28200
  let e = t.style.cssText;
28201
28201
  t.style.cssText = e + "; list-style: square !important", window.getComputedStyle(t).listStyle, t.style.cssText = e;
28202
28202
  }
28203
28203
  }
28204
- function Tp$1(t, e, n, r) {
28204
+ function Op(t, e, n, r) {
28205
28205
  for (let o = 0, i3 = 0; o < t.childCount && i3 <= r; ) {
28206
28206
  let s = t.child(o++), a = i3;
28207
28207
  if (i3 += s.nodeSize, !s.isText)
@@ -28245,7 +28245,7 @@ Actual: ` + p3.attribValue
28245
28245
  for (l = s; o && !o.node; )
28246
28246
  o = o.parent;
28247
28247
  let u = o.node;
28248
- if (o && u.isAtom && Ge$1.isSelectable(u) && o.parent && !(u.isInline && ep$1(n.focusNode, n.focusOffset, o.dom))) {
28248
+ if (o && u.isAtom && Ge$1.isSelectable(u) && o.parent && !(u.isInline && Qf$1(n.focusNode, n.focusOffset, o.dom))) {
28249
28249
  let f3 = o.posBefore;
28250
28250
  c3 = new Ge$1(s == f3 ? a : r.resolve(f3));
28251
28251
  }
@@ -28285,10 +28285,10 @@ Actual: ` + p3.attribValue
28285
28285
  }
28286
28286
  }
28287
28287
  if (t.domObserver.disconnectSelection(), t.cursorWrapper)
28288
- Np(t);
28288
+ Dp(t);
28289
28289
  else {
28290
28290
  let { anchor: r, head: o } = n, i3, s;
28291
- wa$1 && !(n instanceof tt$3) && (n.$from.parent.inlineContent || (i3 = va$1(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = va$1(t, n.to))), t.docView.setSelection(r, o, t, e), wa$1 && (i3 && ka$1(i3), s && ka$1(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Dp(t));
28291
+ wa$1 && !(n instanceof tt$3) && (n.$from.parent.inlineContent || (i3 = va$1(t, n.from)), !n.empty && !n.$from.parent.inlineContent && (s = va$1(t, n.to))), t.docView.setSelection(r, o, t, e), wa$1 && (i3 && ka$1(i3), s && ka$1(s)), n.visible ? t.dom.classList.remove("ProseMirror-hideselection") : (t.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && Tp$1(t));
28292
28292
  }
28293
28293
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
28294
28294
  }
@@ -28311,7 +28311,7 @@ Actual: ` + p3.attribValue
28311
28311
  function ka$1(t) {
28312
28312
  t.contentEditable = "false", t.wasDraggable && (t.draggable = true, t.wasDraggable = null);
28313
28313
  }
28314
- function Dp(t) {
28314
+ function Tp$1(t) {
28315
28315
  let e = t.dom.ownerDocument;
28316
28316
  e.removeEventListener("selectionchange", t.input.hideSelectionGuard);
28317
28317
  let n = t.domSelectionRange(), r = n.anchorNode, o = n.anchorOffset;
@@ -28321,7 +28321,7 @@ Actual: ` + p3.attribValue
28321
28321
  }, 20));
28322
28322
  });
28323
28323
  }
28324
- function Np(t) {
28324
+ function Dp(t) {
28325
28325
  let e = t.domSelection(), n = document.createRange();
28326
28326
  if (!e)
28327
28327
  return;
@@ -28354,7 +28354,7 @@ Actual: ` + p3.attribValue
28354
28354
  return false;
28355
28355
  }
28356
28356
  }
28357
- function Ep(t) {
28357
+ function Np(t) {
28358
28358
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
28359
28359
  return ln$2(e.node, e.offset, n.anchorNode, n.anchorOffset);
28360
28360
  }
@@ -28403,9 +28403,9 @@ Actual: ` + p3.attribValue
28403
28403
  return n && n.size == 0 && (e < 0 || t.nextSibling || t.nodeName != "BR");
28404
28404
  }
28405
28405
  function yn$2(t, e) {
28406
- return e < 0 ? Ip$1(t) : Pp(t);
28406
+ return e < 0 ? Ep(t) : Ip$1(t);
28407
28407
  }
28408
- function Ip$1(t) {
28408
+ function Ep(t) {
28409
28409
  let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
28410
28410
  if (!n)
28411
28411
  return;
@@ -28441,7 +28441,7 @@ Actual: ` + p3.attribValue
28441
28441
  }
28442
28442
  s ? Ai$1(t, n, r) : o && Ai$1(t, o, i3);
28443
28443
  }
28444
- function Pp(t) {
28444
+ function Ip$1(t) {
28445
28445
  let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
28446
28446
  if (!n)
28447
28447
  return;
@@ -28477,7 +28477,7 @@ Actual: ` + p3.attribValue
28477
28477
  let e = t.pmViewDesc;
28478
28478
  return e && e.node && e.node.isBlock;
28479
28479
  }
28480
- function Rp(t, e) {
28480
+ function Pp(t, e) {
28481
28481
  for (; t && e == t.childNodes.length && !Tr$1(t); )
28482
28482
  e = me(t) + 1, t = t.parentNode;
28483
28483
  for (; t && e < t.childNodes.length; ) {
@@ -28489,7 +28489,7 @@ Actual: ` + p3.attribValue
28489
28489
  t = n, e = 0;
28490
28490
  }
28491
28491
  }
28492
- function Lp(t, e) {
28492
+ function Rp(t, e) {
28493
28493
  for (; t && !e && !Tr$1(t); )
28494
28494
  e = me(t), t = t.parentNode;
28495
28495
  for (; t && e; ) {
@@ -28504,7 +28504,7 @@ Actual: ` + p3.attribValue
28504
28504
  function Ai$1(t, e, n) {
28505
28505
  if (e.nodeType != 3) {
28506
28506
  let i3, s;
28507
- (s = Rp(e, n)) ? (e = s, n = 0) : (i3 = Lp(e, n)) && (e = i3, n = i3.nodeValue.length);
28507
+ (s = Pp(e, n)) ? (e = s, n = 0) : (i3 = Rp(e, n)) && (e = i3, n = i3.nodeValue.length);
28508
28508
  }
28509
28509
  let r = t.domSelection();
28510
28510
  if (!r)
@@ -28521,7 +28521,7 @@ Actual: ` + p3.attribValue
28521
28521
  }
28522
28522
  function Ma$1(t, e) {
28523
28523
  let n = t.state.doc.resolve(e);
28524
- if (!(be$1 || rp$1) && n.parent.inlineContent) {
28524
+ if (!(be$1 || np$1) && n.parent.inlineContent) {
28525
28525
  let o = t.coordsAtPos(e);
28526
28526
  if (e > n.start()) {
28527
28527
  let i3 = t.coordsAtPos(e - 1), s = (i3.top + i3.bottom) / 2;
@@ -28572,7 +28572,7 @@ Actual: ` + p3.attribValue
28572
28572
  function Ta$1(t, e, n) {
28573
28573
  t.domObserver.stop(), e.contentEditable = n, t.domObserver.start();
28574
28574
  }
28575
- function Fp(t) {
28575
+ function Lp(t) {
28576
28576
  if (!xe || t.state.selection.$head.parentOffset > 0)
28577
28577
  return false;
28578
28578
  let { focusNode: e, focusOffset: n } = t.domSelectionRange();
@@ -28582,12 +28582,12 @@ Actual: ` + p3.attribValue
28582
28582
  }
28583
28583
  return false;
28584
28584
  }
28585
- function Bp$1(t) {
28585
+ function Fp(t) {
28586
28586
  let e = "";
28587
28587
  return t.ctrlKey && (e += "c"), t.metaKey && (e += "m"), t.altKey && (e += "a"), t.shiftKey && (e += "s"), e;
28588
28588
  }
28589
- function zp$1(t, e) {
28590
- let n = e.keyCode, r = Bp$1(e);
28589
+ function Bp$1(t, e) {
28590
+ let n = e.keyCode, r = Fp(e);
28591
28591
  if (n == 8 || ze$2 && n == 72 && r == "c")
28592
28592
  return Oa$1(t, -1) || yn$2(t, -1);
28593
28593
  if (n == 46 && !e.shiftKey || ze$2 && n == 68 && r == "c")
@@ -28604,7 +28604,7 @@ Actual: ` + p3.attribValue
28604
28604
  if (n == 38 || ze$2 && n == 80 && r == "c")
28605
28605
  return Aa$1(t, -1, r) || yn$2(t, -1);
28606
28606
  if (n == 40 || ze$2 && n == 78 && r == "c")
28607
- return Fp(t) || Aa$1(t, 1, r) || yn$2(t, 1);
28607
+ return Lp(t) || Aa$1(t, 1, r) || yn$2(t, 1);
28608
28608
  if (r == (ze$2 ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
28609
28609
  return true;
28610
28610
  }
@@ -28662,7 +28662,7 @@ Actual: ` + p3.attribValue
28662
28662
  } else
28663
28663
  t.someProp("transformPastedHTML", (u) => {
28664
28664
  n = u(n, t);
28665
- }), s = Hp(n), Dr && jp(s);
28665
+ }), s = $p$1(n), Dr && Hp(s);
28666
28666
  let c3 = s && s.querySelector("[data-pm-slice]"), d = c3 && /^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c3.getAttribute("data-pm-slice") || "");
28667
28667
  if (d && d[3])
28668
28668
  for (let u = +d[3]; u > 0; u--) {
@@ -28677,11 +28677,11 @@ Actual: ` + p3.attribValue
28677
28677
  preserveWhitespace: !!(l || d),
28678
28678
  context: o,
28679
28679
  ruleFromNode(f3) {
28680
- return f3.nodeName == "BR" && !f3.nextSibling && f3.parentNode && !_p$1.test(f3.parentNode.nodeName) ? { ignore: true } : null;
28680
+ return f3.nodeName == "BR" && !f3.nextSibling && f3.parentNode && !zp$1.test(f3.parentNode.nodeName) ? { ignore: true } : null;
28681
28681
  }
28682
28682
  })), d)
28683
- a = Wp(Da$1(a, +d[1], +d[2]), d[4]);
28684
- else if (a = ue.maxOpen(Vp(a.content, o), true), a.openStart || a.openEnd) {
28683
+ a = jp(Da$1(a, +d[1], +d[2]), d[4]);
28684
+ else if (a = ue.maxOpen(_p$1(a.content, o), true), a.openStart || a.openEnd) {
28685
28685
  let u = 0, f3 = 0;
28686
28686
  for (let p3 = a.content.firstChild; u < a.openStart && !p3.type.spec.isolating; u++, p3 = p3.firstChild)
28687
28687
  ;
@@ -28693,8 +28693,8 @@ Actual: ` + p3.attribValue
28693
28693
  a = u(a, t);
28694
28694
  }), a;
28695
28695
  }
28696
- const _p$1 = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
28697
- function Vp(t, e) {
28696
+ const zp$1 = /^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;
28697
+ function _p$1(t, e) {
28698
28698
  if (t.childCount < 2)
28699
28699
  return t;
28700
28700
  for (let n = e.depth; n >= 0; n--) {
@@ -28760,27 +28760,27 @@ Actual: ` + p3.attribValue
28760
28760
  return Na$1 || (Na$1 = document.implementation.createHTMLDocument("title"));
28761
28761
  }
28762
28762
  let ei$1 = null;
28763
- function $p$1(t) {
28763
+ function Vp(t) {
28764
28764
  let e = window.trustedTypes;
28765
28765
  return e ? (ei$1 || (ei$1 = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ei$1.createHTML(t)) : t;
28766
28766
  }
28767
- function Hp(t) {
28767
+ function $p$1(t) {
28768
28768
  let e = /^(\s*<meta [^>]*>)*/.exec(t);
28769
28769
  e && (t = t.slice(e[0].length));
28770
28770
  let n = Nc$1().createElement("div"), r = /<([a-z][^>\s]+)/i.exec(t), o;
28771
- if ((o = r && Dc$1[r[1].toLowerCase()]) && (t = o.map((i3) => "<" + i3 + ">").join("") + t + o.map((i3) => "</" + i3 + ">").reverse().join("")), n.innerHTML = $p$1(t), o)
28771
+ if ((o = r && Dc$1[r[1].toLowerCase()]) && (t = o.map((i3) => "<" + i3 + ">").join("") + t + o.map((i3) => "</" + i3 + ">").reverse().join("")), n.innerHTML = Vp(t), o)
28772
28772
  for (let i3 = 0; i3 < o.length; i3++)
28773
28773
  n = n.querySelector(o[i3]) || n;
28774
28774
  return n;
28775
28775
  }
28776
- function jp(t) {
28776
+ function Hp(t) {
28777
28777
  let e = t.querySelectorAll(be$1 ? "span:not([class]):not([style])" : "span.Apple-converted-space");
28778
28778
  for (let n = 0; n < e.length; n++) {
28779
28779
  let r = e[n];
28780
28780
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
28781
28781
  }
28782
28782
  }
28783
- function Wp(t, e) {
28783
+ function jp(t, e) {
28784
28784
  if (!t.size)
28785
28785
  return t;
28786
28786
  let n = t.content.firstChild.type.schema, r;
@@ -28798,25 +28798,25 @@ Actual: ` + p3.attribValue
28798
28798
  }
28799
28799
  return new ue(o, i3, s);
28800
28800
  }
28801
- const Me$1 = {}, Ae = {}, Up = { touchstart: true, touchmove: true };
28802
- class qp {
28801
+ const Me$1 = {}, Ae = {}, Wp = { touchstart: true, touchmove: true };
28802
+ class Up {
28803
28803
  constructor() {
28804
28804
  this.shiftKey = false, this.mouseDown = null, this.lastKeyCode = null, this.lastKeyCodeTime = 0, this.lastClick = { time: 0, x: 0, y: 0, type: "" }, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastIOSEnter = 0, this.lastIOSEnterFallbackTimeout = -1, this.lastFocus = 0, this.lastTouch = 0, this.lastChromeDelete = 0, this.composing = false, this.compositionNode = null, this.composingTimeout = -1, this.compositionNodes = [], this.compositionEndedAt = -2e8, this.compositionID = 1, this.compositionPendingChanges = 0, this.domChangeCount = 0, this.eventHandlers = /* @__PURE__ */ Object.create(null), this.hideSelectionGuard = null;
28805
28805
  }
28806
28806
  }
28807
- function Kp(t) {
28807
+ function qp(t) {
28808
28808
  for (let e in Me$1) {
28809
28809
  let n = Me$1[e];
28810
28810
  t.dom.addEventListener(e, t.input.eventHandlers[e] = (r) => {
28811
- Jp(t, r) && !Cs(t, r) && (t.editable || !(r.type in Ae)) && n(t, r);
28812
- }, Up[e] ? { passive: true } : void 0);
28811
+ Xp(t, r) && !Cs(t, r) && (t.editable || !(r.type in Ae)) && n(t, r);
28812
+ }, Wp[e] ? { passive: true } : void 0);
28813
28813
  }
28814
28814
  xe && t.dom.addEventListener("input", () => null), Ti$1(t);
28815
28815
  }
28816
28816
  function It$1(t, e) {
28817
28817
  t.input.lastSelectionOrigin = e, t.input.lastSelectionTime = Date.now();
28818
28818
  }
28819
- function Xp(t) {
28819
+ function Kp(t) {
28820
28820
  t.domObserver.stop();
28821
28821
  for (let e in t.input.eventHandlers)
28822
28822
  t.dom.removeEventListener(e, t.input.eventHandlers[e]);
@@ -28834,7 +28834,7 @@ Actual: ` + p3.attribValue
28834
28834
  return r ? r(t, e) || e.defaultPrevented : false;
28835
28835
  });
28836
28836
  }
28837
- function Jp(t, e) {
28837
+ function Xp(t, e) {
28838
28838
  if (!e.bubbles)
28839
28839
  return true;
28840
28840
  if (e.defaultPrevented)
@@ -28844,7 +28844,7 @@ Actual: ` + p3.attribValue
28844
28844
  return false;
28845
28845
  return true;
28846
28846
  }
28847
- function Yp(t, e) {
28847
+ function Jp(t, e) {
28848
28848
  !Cs(t, e) && Me$1[e.type] && (t.editable || !(e.type in Ae)) && Me$1[e.type](t, e);
28849
28849
  }
28850
28850
  Ae.keydown = (t, e) => {
@@ -28855,7 +28855,7 @@ Actual: ` + p3.attribValue
28855
28855
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
28856
28856
  t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (o) => o(t, Gt$2(13, "Enter"))), t.input.lastIOSEnter = 0);
28857
28857
  }, 200);
28858
- } else t.someProp("handleKeyDown", (r) => r(t, n)) || zp$1(t, n) ? n.preventDefault() : It$1(t, "key");
28858
+ } else t.someProp("handleKeyDown", (r) => r(t, n)) || Bp$1(t, n) ? n.preventDefault() : It$1(t, "key");
28859
28859
  };
28860
28860
  Ae.keyup = (t, e) => {
28861
28861
  e.keyCode == 16 && (t.input.shiftKey = false);
@@ -28877,7 +28877,7 @@ Actual: ` + p3.attribValue
28877
28877
  function Ro$1(t) {
28878
28878
  return { left: t.clientX, top: t.clientY };
28879
28879
  }
28880
- function Gp(t, e) {
28880
+ function Yp(t, e) {
28881
28881
  let n = e.x - t.clientX, r = e.y - t.clientY;
28882
28882
  return n * n + r * r < 100;
28883
28883
  }
@@ -28896,13 +28896,13 @@ Actual: ` + p3.attribValue
28896
28896
  let r = t.state.tr.setSelection(e);
28897
28897
  r.setMeta("pointer", true), t.dispatch(r);
28898
28898
  }
28899
- function Zp(t, e) {
28899
+ function Gp(t, e) {
28900
28900
  if (e == -1)
28901
28901
  return false;
28902
28902
  let n = t.state.doc.resolve(e), r = n.nodeAfter;
28903
28903
  return r && r.isAtom && Ge$1.isSelectable(r) ? (On$2(t, new Ge$1(n)), true) : false;
28904
28904
  }
28905
- function Qp(t, e) {
28905
+ function Zp(t, e) {
28906
28906
  if (e == -1)
28907
28907
  return false;
28908
28908
  let n = t.state.selection, r, o;
@@ -28917,16 +28917,16 @@ Actual: ` + p3.attribValue
28917
28917
  }
28918
28918
  return o != null ? (On$2(t, Ge$1.create(t.state.doc, o)), true) : false;
28919
28919
  }
28920
- function eh$1(t, e, n, r, o) {
28921
- return Ss(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (i3) => i3(t, e, r)) || (o ? Qp(t, n) : Zp(t, n));
28920
+ function Qp(t, e, n, r, o) {
28921
+ return Ss(t, "handleClickOn", e, n, r) || t.someProp("handleClick", (i3) => i3(t, e, r)) || (o ? Zp(t, n) : Gp(t, n));
28922
28922
  }
28923
- function th$1(t, e, n, r) {
28923
+ function eh$1(t, e, n, r) {
28924
28924
  return Ss(t, "handleDoubleClickOn", e, n, r) || t.someProp("handleDoubleClick", (o) => o(t, e, r));
28925
28925
  }
28926
- function nh$1(t, e, n, r) {
28927
- return Ss(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (o) => o(t, e, r)) || rh$1(t, n, r);
28926
+ function th$1(t, e, n, r) {
28927
+ return Ss(t, "handleTripleClickOn", e, n, r) || t.someProp("handleTripleClick", (o) => o(t, e, r)) || nh$1(t, n, r);
28928
28928
  }
28929
- function rh$1(t, e, n) {
28929
+ function nh$1(t, e, n) {
28930
28930
  if (n.button != 0)
28931
28931
  return false;
28932
28932
  let r = t.state.doc;
@@ -28952,11 +28952,11 @@ Actual: ` + p3.attribValue
28952
28952
  let n = e;
28953
28953
  t.input.shiftKey = n.shiftKey;
28954
28954
  let r = xs(t), o = Date.now(), i3 = "singleClick";
28955
- o - t.input.lastClick.time < 500 && Gp(n, t.input.lastClick) && !n[Ec$1] && (t.input.lastClick.type == "singleClick" ? i3 = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i3 = "tripleClick")), t.input.lastClick = { time: o, x: n.clientX, y: n.clientY, type: i3 };
28955
+ o - t.input.lastClick.time < 500 && Yp(n, t.input.lastClick) && !n[Ec$1] && (t.input.lastClick.type == "singleClick" ? i3 = "doubleClick" : t.input.lastClick.type == "doubleClick" && (i3 = "tripleClick")), t.input.lastClick = { time: o, x: n.clientX, y: n.clientY, type: i3 };
28956
28956
  let s = t.posAtCoords(Ro$1(n));
28957
- s && (i3 == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new oh$1(t, s, n, !!r)) : (i3 == "doubleClick" ? th$1 : nh$1)(t, s.pos, s.inside, n) ? n.preventDefault() : It$1(t, "pointer"));
28957
+ s && (i3 == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new rh$1(t, s, n, !!r)) : (i3 == "doubleClick" ? eh$1 : th$1)(t, s.pos, s.inside, n) ? n.preventDefault() : It$1(t, "pointer"));
28958
28958
  };
28959
- let oh$1 = class oh {
28959
+ let rh$1 = class rh {
28960
28960
  constructor(e, n, r, o) {
28961
28961
  this.view = e, this.pos = n, this.event = r, this.flushed = o, this.delayedSelectionSync = false, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Ec$1], this.allowDefault = r.shiftKey;
28962
28962
  let i3, s;
@@ -28985,7 +28985,7 @@ Actual: ` + p3.attribValue
28985
28985
  if (this.done(), !this.view.dom.contains(e.target))
28986
28986
  return;
28987
28987
  let n = this.pos;
28988
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ro$1(e))), this.updateAllowDefault(e), this.allowDefault || !n ? It$1(this.view, "pointer") : eh$1(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
28988
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(Ro$1(e))), this.updateAllowDefault(e), this.allowDefault || !n ? It$1(this.view, "pointer") : Qp(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
28989
28989
  xe && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
28990
28990
  // cursor, but still report that the node is selected
28991
28991
  // when asked through getSelection. You'll then get a
@@ -29012,7 +29012,7 @@ Actual: ` + p3.attribValue
29012
29012
  function Ic$1(t, e) {
29013
29013
  return t.composing ? true : xe && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, true) : false;
29014
29014
  }
29015
- const ih$1 = bt$1 ? 5e3 : -1;
29015
+ const oh$1 = bt$1 ? 5e3 : -1;
29016
29016
  Ae.compositionstart = Ae.compositionupdate = (t) => {
29017
29017
  if (!t.composing) {
29018
29018
  t.domObserver.flush();
@@ -29035,7 +29035,7 @@ Actual: ` + p3.attribValue
29035
29035
  }
29036
29036
  t.input.composing = true;
29037
29037
  }
29038
- Pc$1(t, ih$1);
29038
+ Pc$1(t, oh$1);
29039
29039
  };
29040
29040
  Ae.compositionend = (t, e) => {
29041
29041
  t.composing && (t.input.composing = false, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Pc$1(t, 20));
@@ -29044,14 +29044,14 @@ Actual: ` + p3.attribValue
29044
29044
  clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => go$2(t), e));
29045
29045
  }
29046
29046
  function Rc$1(t) {
29047
- for (t.composing && (t.input.composing = false, t.input.compositionEndedAt = ah$1()); t.input.compositionNodes.length > 0; )
29047
+ for (t.composing && (t.input.composing = false, t.input.compositionEndedAt = sh$1()); t.input.compositionNodes.length > 0; )
29048
29048
  t.input.compositionNodes.pop().markParentsDirty();
29049
29049
  }
29050
- function sh$1(t) {
29050
+ function ih$1(t) {
29051
29051
  let e = t.domSelectionRange();
29052
29052
  if (!e.focusNode)
29053
29053
  return null;
29054
- let n = Zf$1(e.focusNode, e.focusOffset), r = Qf$1(e.focusNode, e.focusOffset);
29054
+ let n = Gf$1(e.focusNode, e.focusOffset), r = Zf$1(e.focusNode, e.focusOffset);
29055
29055
  if (n && r && n != r) {
29056
29056
  let o = r.pmViewDesc, i3 = t.domObserver.lastChangedTextNode;
29057
29057
  if (n == i3 || r == i3)
@@ -29066,7 +29066,7 @@ Actual: ` + p3.attribValue
29066
29066
  }
29067
29067
  return n || r;
29068
29068
  }
29069
- function ah$1() {
29069
+ function sh$1() {
29070
29070
  let t = document.createEvent("Event");
29071
29071
  return t.initEvent("event", true, true), t.timeStamp;
29072
29072
  }
@@ -29079,7 +29079,7 @@ Actual: ` + p3.attribValue
29079
29079
  return false;
29080
29080
  }
29081
29081
  }
29082
- function lh$1(t, e) {
29082
+ function ah$1(t, e) {
29083
29083
  if (!t.dom.parentNode)
29084
29084
  return;
29085
29085
  let n = t.dom.parentNode.appendChild(document.createElement("div"));
@@ -29089,18 +29089,18 @@ Actual: ` + p3.attribValue
29089
29089
  n.parentNode && n.parentNode.removeChild(n), t.focus();
29090
29090
  }, 50);
29091
29091
  }
29092
- const ur$1 = Oe$2 && Lt$1 < 15 || Dn$2 && op$1 < 604;
29092
+ const ur$1 = Oe$2 && Lt$1 < 15 || Dn$2 && rp$1 < 604;
29093
29093
  Me$1.copy = Ae.cut = (t, e) => {
29094
29094
  let n = e, r = t.state.selection, o = n.type == "cut";
29095
29095
  if (r.empty)
29096
29096
  return;
29097
29097
  let i3 = ur$1 ? null : n.clipboardData, s = r.content(), { dom: a, text: l } = ks(t, s);
29098
- i3 ? (n.preventDefault(), i3.clearData(), i3.setData("text/html", a.innerHTML), i3.setData("text/plain", l)) : lh$1(t, a), o && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
29098
+ i3 ? (n.preventDefault(), i3.clearData(), i3.setData("text/html", a.innerHTML), i3.setData("text/plain", l)) : ah$1(t, a), o && t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent", "cut"));
29099
29099
  };
29100
- function ch$1(t) {
29100
+ function lh$1(t) {
29101
29101
  return t.openStart == 0 && t.openEnd == 0 && t.content.childCount == 1 ? t.content.firstChild : null;
29102
29102
  }
29103
- function dh$1(t, e) {
29103
+ function ch$1(t, e) {
29104
29104
  if (!t.dom.parentNode)
29105
29105
  return;
29106
29106
  let n = t.input.shiftKey || t.state.selection.$from.parent.type.spec.code, r = t.dom.parentNode.appendChild(document.createElement(n ? "textarea" : "div"));
@@ -29116,7 +29116,7 @@ Actual: ` + p3.attribValue
29116
29116
  return true;
29117
29117
  if (!i3)
29118
29118
  return false;
29119
- let s = ch$1(i3), a = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(i3);
29119
+ let s = lh$1(i3), a = s ? t.state.tr.replaceSelectionWith(s, r) : t.state.tr.replaceSelection(i3);
29120
29120
  return t.dispatch(a.scrollIntoView().setMeta("paste", true).setMeta("uiEvent", "paste")), true;
29121
29121
  }
29122
29122
  function Lc$1(t) {
@@ -29131,17 +29131,17 @@ Actual: ` + p3.attribValue
29131
29131
  if (t.composing && !bt$1)
29132
29132
  return;
29133
29133
  let r = ur$1 ? null : n.clipboardData, o = t.input.shiftKey && t.input.lastKeyCode != 45;
29134
- r && fr(t, Lc$1(r), r.getData("text/html"), o, n) ? n.preventDefault() : dh$1(t, n);
29134
+ r && fr(t, Lc$1(r), r.getData("text/html"), o, n) ? n.preventDefault() : ch$1(t, n);
29135
29135
  };
29136
29136
  let Fc$1 = class Fc {
29137
29137
  constructor(e, n, r) {
29138
29138
  this.slice = e, this.move = n, this.node = r;
29139
29139
  }
29140
29140
  };
29141
- const uh$1 = ze$2 ? "altKey" : "ctrlKey";
29141
+ const dh$1 = ze$2 ? "altKey" : "ctrlKey";
29142
29142
  function Bc$1(t, e) {
29143
29143
  let n = t.someProp("dragCopies", (r) => !r(e));
29144
- return n ?? !e[uh$1];
29144
+ return n ?? !e[dh$1];
29145
29145
  }
29146
29146
  Me$1.dragstart = (t, e) => {
29147
29147
  let n = e, r = t.input.mouseDown;
@@ -29423,7 +29423,7 @@ Actual: ` + p3.attribValue
29423
29423
  let l = this.local[a].map(e, r, o);
29424
29424
  l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i3.onRemove && i3.onRemove(this.local[a].spec);
29425
29425
  }
29426
- return this.children.length ? fh$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2), xn$2) : ye$1;
29426
+ return this.children.length ? uh$1(this.children, s || [], e, n, r, o, i3) : s ? new F(s.sort(rn$2), xn$2) : ye$1;
29427
29427
  }
29428
29428
  /**
29429
29429
  Add the given array of decorations to the ones in the set,
@@ -29601,7 +29601,7 @@ Actual: ` + p3.attribValue
29601
29601
  this.members[n].forEachSet(e);
29602
29602
  }
29603
29603
  };
29604
- function fh$1(t, e, n, r, o, i3, s) {
29604
+ function uh$1(t, e, n, r, o, i3, s) {
29605
29605
  let a = t.slice();
29606
29606
  for (let c3 = 0, d = i3; c3 < n.maps.length; c3++) {
29607
29607
  let u = 0;
@@ -29637,7 +29637,7 @@ Actual: ` + p3.attribValue
29637
29637
  l = true;
29638
29638
  }
29639
29639
  if (l) {
29640
- let c3 = ph$1(a, t, e, n, o, i3, s), d = bo$2(c3, r, 0, s);
29640
+ let c3 = fh$1(a, t, e, n, o, i3, s), d = bo$2(c3, r, 0, s);
29641
29641
  e = d.local;
29642
29642
  for (let u = 0; u < a.length; u += 3)
29643
29643
  a[u + 1] < 0 && (a.splice(u, 3), u -= 3);
@@ -29660,7 +29660,7 @@ Actual: ` + p3.attribValue
29660
29660
  }
29661
29661
  return n;
29662
29662
  }
29663
- function ph$1(t, e, n, r, o, i3, s) {
29663
+ function fh$1(t, e, n, r, o, i3, s) {
29664
29664
  function a(l, c3) {
29665
29665
  for (let d = 0; d < l.local.length; d++) {
29666
29666
  let u = l.local[d].map(r, o, c3);
@@ -29735,15 +29735,15 @@ Actual: ` + p3.attribValue
29735
29735
  r && r != ye$1 && e.push(r);
29736
29736
  }), t.cursorWrapper && e.push(F.create(t.state.doc, [t.cursorWrapper.deco])), Nt$2.from(e);
29737
29737
  }
29738
- const hh$1 = {
29738
+ const ph$1 = {
29739
29739
  childList: true,
29740
29740
  characterData: true,
29741
29741
  characterDataOldValue: true,
29742
29742
  attributes: true,
29743
29743
  attributeOldValue: true,
29744
29744
  subtree: true
29745
- }, mh$1 = Oe$2 && Lt$1 <= 11;
29746
- let gh$1 = class gh {
29745
+ }, hh$1 = Oe$2 && Lt$1 <= 11;
29746
+ let mh$1 = class mh {
29747
29747
  constructor() {
29748
29748
  this.anchorNode = null, this.anchorOffset = 0, this.focusNode = null, this.focusOffset = 0;
29749
29749
  }
@@ -29757,13 +29757,13 @@ Actual: ` + p3.attribValue
29757
29757
  return e.anchorNode == this.anchorNode && e.anchorOffset == this.anchorOffset && e.focusNode == this.focusNode && e.focusOffset == this.focusOffset;
29758
29758
  }
29759
29759
  };
29760
- let yh$1 = class yh {
29760
+ let gh$1 = class gh {
29761
29761
  constructor(e, n) {
29762
- this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new gh$1(), this.onCharData = null, this.suppressingSelectionUpdates = false, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
29762
+ this.view = e, this.handleDOMChange = n, this.queue = [], this.flushingSoon = -1, this.observer = null, this.currentSelection = new mh$1(), this.onCharData = null, this.suppressingSelectionUpdates = false, this.lastChangedTextNode = null, this.observer = window.MutationObserver && new window.MutationObserver((r) => {
29763
29763
  for (let o = 0; o < r.length; o++)
29764
29764
  this.queue.push(r[o]);
29765
29765
  Oe$2 && Lt$1 <= 11 && r.some((o) => o.type == "childList" && o.removedNodes.length || o.type == "characterData" && o.oldValue.length > o.target.nodeValue.length) ? this.flushSoon() : this.flush();
29766
- }), mh$1 && (this.onCharData = (r) => {
29766
+ }), hh$1 && (this.onCharData = (r) => {
29767
29767
  this.queue.push({ target: r.target, type: "characterData", oldValue: r.prevValue }), this.flushSoon();
29768
29768
  }), this.onSelectionChange = this.onSelectionChange.bind(this);
29769
29769
  }
@@ -29776,7 +29776,7 @@ Actual: ` + p3.attribValue
29776
29776
  this.flushingSoon > -1 && (window.clearTimeout(this.flushingSoon), this.flushingSoon = -1, this.flush());
29777
29777
  }
29778
29778
  start() {
29779
- this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, hh$1)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
29779
+ this.observer && (this.observer.takeRecords(), this.observer.observe(this.view.dom, ph$1)), this.onCharData && this.view.dom.addEventListener("DOMCharacterDataModified", this.onCharData), this.connectSelection();
29780
29780
  }
29781
29781
  stop() {
29782
29782
  if (this.observer) {
@@ -29859,12 +29859,12 @@ Actual: ` + p3.attribValue
29859
29859
  let { focusNode: u } = this.currentSelection;
29860
29860
  for (let f3 of d) {
29861
29861
  let p3 = f3.parentNode;
29862
- p3 && p3.nodeName == "LI" && (!u || vh$1(e, u) != p3) && f3.remove();
29862
+ p3 && p3.nodeName == "LI" && (!u || wh$1(e, u) != p3) && f3.remove();
29863
29863
  }
29864
29864
  }
29865
29865
  }
29866
29866
  let c3 = null;
29867
- i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = ws(e)) && c3.eq(ve$1.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, kt$1(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s), bh$1(e)), this.handleDOMChange(i3, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || kt$1(e), this.currentSelection.set(r));
29867
+ i3 < 0 && o && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && Io$1(r) && (c3 = ws(e)) && c3.eq(ve$1.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, kt$1(e), this.currentSelection.set(r), e.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (e.docView.markDirty(i3, s), yh$1(e)), this.handleDOMChange(i3, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || kt$1(e), this.currentSelection.set(r));
29868
29868
  }
29869
29869
  registerMutation(e, n) {
29870
29870
  if (n.indexOf(e.target) > -1)
@@ -29900,7 +29900,7 @@ Actual: ` + p3.attribValue
29900
29900
  }
29901
29901
  };
29902
29902
  let Ia$1 = /* @__PURE__ */ new WeakMap(), Pa$1 = false;
29903
- function bh$1(t) {
29903
+ function yh$1(t) {
29904
29904
  if (!Ia$1.has(t) && (Ia$1.set(t, null), ["normal", "nowrap", "pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace) !== -1)) {
29905
29905
  if (t.requiresGeckoHackNode = Je$2, Pa$1)
29906
29906
  return;
@@ -29911,7 +29911,7 @@ Actual: ` + p3.attribValue
29911
29911
  let n = e.startContainer, r = e.startOffset, o = e.endContainer, i3 = e.endOffset, s = t.domAtPos(t.state.selection.anchor);
29912
29912
  return ln$2(s.node, s.offset, o, i3) && ([n, r, o, i3] = [o, i3, n, r]), { anchorNode: n, anchorOffset: r, focusNode: o, focusOffset: i3 };
29913
29913
  }
29914
- function wh$1(t, e) {
29914
+ function bh$1(t, e) {
29915
29915
  if (e.getComposedRanges) {
29916
29916
  let o = e.getComposedRanges(t.root)[0];
29917
29917
  if (o)
@@ -29923,7 +29923,7 @@ Actual: ` + p3.attribValue
29923
29923
  }
29924
29924
  return t.dom.addEventListener("beforeinput", r, true), document.execCommand("indent"), t.dom.removeEventListener("beforeinput", r, true), n ? Ra$1(t, n) : null;
29925
29925
  }
29926
- function vh$1(t, e) {
29926
+ function wh$1(t, e) {
29927
29927
  for (let n = e.parentNode; n && n != t.dom; n = n.parentNode) {
29928
29928
  let r = t.docView.nearestDesc(n, true);
29929
29929
  if (r && r.node.isBlock)
@@ -29931,7 +29931,7 @@ Actual: ` + p3.attribValue
29931
29931
  }
29932
29932
  return null;
29933
29933
  }
29934
- function kh$1(t, e, n) {
29934
+ function vh$1(t, e, n) {
29935
29935
  let { node: r, fromOffset: o, toOffset: i3, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c3, d = l.anchorNode;
29936
29936
  if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c3 = [{ node: d, offset: l.anchorOffset }], Io$1(l) || c3.push({ node: l.focusNode, offset: l.focusOffset })), be$1 && t.input.lastKeyCode === 8)
29937
29937
  for (let g = i3; g > o; g--) {
@@ -29951,7 +29951,7 @@ Actual: ` + p3.attribValue
29951
29951
  to: i3,
29952
29952
  preserveWhitespace: p3.parent.type.whitespace == "pre" ? "full" : true,
29953
29953
  findPositions: c3,
29954
- ruleFromNode: Ch$1,
29954
+ ruleFromNode: kh$1,
29955
29955
  context: p3
29956
29956
  });
29957
29957
  if (c3 && c3[0].pos != null) {
@@ -29960,7 +29960,7 @@ Actual: ` + p3.attribValue
29960
29960
  }
29961
29961
  return { doc: m, sel: h3, from: s, to: a };
29962
29962
  }
29963
- function Ch$1(t) {
29963
+ function kh$1(t) {
29964
29964
  let e = t.pmViewDesc;
29965
29965
  if (e)
29966
29966
  return e.parseRule();
@@ -29974,8 +29974,8 @@ Actual: ` + p3.attribValue
29974
29974
  return { ignore: true };
29975
29975
  return null;
29976
29976
  }
29977
- const Sh$1 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
29978
- function xh$1(t, e, n, r, o) {
29977
+ const Ch$1 = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;
29978
+ function Sh$1(t, e, n, r, o) {
29979
29979
  let i3 = t.input.compositionPendingChanges || (t.composing ? t.input.compositionID : 0);
29980
29980
  if (t.input.compositionPendingChanges = 0, e < 0) {
29981
29981
  let x3 = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, _ = ws(t, x3);
@@ -29989,10 +29989,10 @@ Actual: ` + p3.attribValue
29989
29989
  }
29990
29990
  let s = t.state.doc.resolve(e), a = s.sharedDepth(n);
29991
29991
  e = s.before(a + 1), n = t.state.doc.resolve(n).after(a + 1);
29992
- let l = t.state.selection, c3 = kh$1(t, e, n), d = t.state.doc, u = d.slice(c3.from, c3.to), f3, p3;
29992
+ let l = t.state.selection, c3 = vh$1(t, e, n), d = t.state.doc, u = d.slice(c3.from, c3.to), f3, p3;
29993
29993
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f3 = t.state.selection.to, p3 = "end") : (f3 = t.state.selection.from, p3 = "start"), t.input.lastKeyCode = null;
29994
- let h3 = Oh$1(u.content, c3.doc.content, c3.from, f3, p3);
29995
- if (h3 && t.input.domChangeCount++, (Dn$2 && t.input.lastIOSEnter > Date.now() - 225 || bt$1) && o.some((x3) => x3.nodeType == 1 && !Sh$1.test(x3.nodeName)) && (!h3 || h3.endA >= h3.endB) && t.someProp("handleKeyDown", (x3) => x3(t, Gt$2(13, "Enter")))) {
29994
+ let h3 = Ah$1(u.content, c3.doc.content, c3.from, f3, p3);
29995
+ if (h3 && t.input.domChangeCount++, (Dn$2 && t.input.lastIOSEnter > Date.now() - 225 || bt$1) && o.some((x3) => x3.nodeType == 1 && !Ch$1.test(x3.nodeName)) && (!h3 || h3.endA >= h3.endB) && t.someProp("handleKeyDown", (x3) => x3(t, Gt$2(13, "Enter")))) {
29996
29996
  t.input.lastIOSEnter = 0;
29997
29997
  return;
29998
29998
  }
@@ -30015,7 +30015,7 @@ Actual: ` + p3.attribValue
30015
30015
  t.input.lastIOSEnter = 0;
30016
30016
  return;
30017
30017
  }
30018
- if (t.state.selection.anchor > h3.start && Ah$1(d, h3.start, h3.endA, m, g) && t.someProp("handleKeyDown", (x3) => x3(t, Gt$2(8, "Backspace")))) {
30018
+ if (t.state.selection.anchor > h3.start && Mh$1(d, h3.start, h3.endA, m, g) && t.someProp("handleKeyDown", (x3) => x3(t, Gt$2(8, "Backspace")))) {
30019
30019
  bt$1 && be$1 && t.domObserver.suppressSelectionUpdates();
30020
30020
  return;
30021
30021
  }
@@ -30030,7 +30030,7 @@ Actual: ` + p3.attribValue
30030
30030
  Oe$2 && Lt$1 <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => kt$1(t), 20)), k = t.state.tr.delete(y, S), A = d.resolve(h3.start).marksAcross(d.resolve(h3.endA));
30031
30031
  else if (
30032
30032
  // Adding or removing a mark
30033
- h3.endA == h3.endB && (L3 = Mh$1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, h3.endA - b.start())))
30033
+ h3.endA == h3.endB && (L3 = xh$1(m.parent.content.cut(m.parentOffset, g.parentOffset), b.parent.content.cut(b.parentOffset, h3.endA - b.start())))
30034
30034
  )
30035
30035
  k = t.state.tr, L3.type == "add" ? k.addMark(y, S, L3.mark) : k.removeMark(y, S, L3.mark);
30036
30036
  else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
@@ -30049,7 +30049,7 @@ Actual: ` + p3.attribValue
30049
30049
  function La$1(t, e, n) {
30050
30050
  return Math.max(n.anchor, n.head) > e.content.size ? null : vs(t, e.resolve(n.anchor), e.resolve(n.head));
30051
30051
  }
30052
- function Mh$1(t, e) {
30052
+ function xh$1(t, e) {
30053
30053
  let n = t.firstChild.marks, r = e.firstChild.marks, o = n, i3 = r, s, a, l;
30054
30054
  for (let d = 0; d < r.length; d++)
30055
30055
  o = r[d].removeFromSet(o);
@@ -30067,7 +30067,7 @@ Actual: ` + p3.attribValue
30067
30067
  if (Q$2.from(c3).eq(t))
30068
30068
  return { mark: a, type: s };
30069
30069
  }
30070
- function Ah$1(t, e, n, r, o) {
30070
+ function Mh$1(t, e, n, r, o) {
30071
30071
  if (
30072
30072
  // The content must have shrunk
30073
30073
  n - e <= o.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
@@ -30095,7 +30095,7 @@ Actual: ` + p3.attribValue
30095
30095
  }
30096
30096
  return o;
30097
30097
  }
30098
- function Oh$1(t, e, n, r, o) {
30098
+ function Ah$1(t, e, n, r, o) {
30099
30099
  let i3 = t.findDiffStart(e, n);
30100
30100
  if (i3 == null)
30101
30101
  return null;
@@ -30128,7 +30128,7 @@ Actual: ` + p3.attribValue
30128
30128
  added to the document.
30129
30129
  */
30130
30130
  constructor(e, n) {
30131
- this._root = null, this.focused = false, this.trackWrites = null, this.mounted = false, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new qp(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = false, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach($a$1), 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 = true)), this.editable = _a$1(this), za$1(this), this.nodeViews = Va$1(this), this.docView = ya$1(this.state.doc, Ba$1(this), ti$1(this), this.dom, this), this.domObserver = new yh$1(this, (r, o, i3, s) => xh$1(this, r, o, i3, s)), this.domObserver.start(), Kp(this), this.updatePluginViews();
30131
+ this._root = null, this.focused = false, this.trackWrites = null, this.mounted = false, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new Up(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = false, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach($a$1), 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 = true)), this.editable = _a$1(this), za$1(this), this.nodeViews = Va$1(this), this.docView = ya$1(this.state.doc, Ba$1(this), ti$1(this), this.dom, this), this.domObserver = new gh$1(this, (r, o, i3, s) => Sh$1(this, r, o, i3, s)), this.domObserver.start(), qp(this), this.updatePluginViews();
30132
30132
  }
30133
30133
  /**
30134
30134
  Holds `true` when a
@@ -30188,22 +30188,22 @@ Actual: ` + p3.attribValue
30188
30188
  let a = o.plugins != e.plugins || this._props.plugins != n.plugins;
30189
30189
  if (a || this._props.plugins != n.plugins || this._props.nodeViews != n.nodeViews) {
30190
30190
  let p3 = Va$1(this);
30191
- Dh$1(p3, this.nodeViews) && (this.nodeViews = p3, i3 = true);
30191
+ Th$1(p3, this.nodeViews) && (this.nodeViews = p3, i3 = true);
30192
30192
  }
30193
30193
  (a || n.handleDOMEvents != this._props.handleDOMEvents) && Ti$1(this), this.editable = _a$1(this), za$1(this);
30194
30194
  let l = ti$1(this), c3 = Ba$1(this), d = o.plugins != e.plugins && !o.doc.eq(e.doc) ? "reset" : e.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", u = i3 || !this.docView.matchesNode(e.doc, c3, l);
30195
30195
  (u || !e.selection.eq(o.selection)) && (s = true);
30196
- let f3 = d == "preserve" && s && this.dom.style.overflowAnchor == null && ap$1(this);
30196
+ let f3 = d == "preserve" && s && this.dom.style.overflowAnchor == null && sp$1(this);
30197
30197
  if (s) {
30198
30198
  this.domObserver.stop();
30199
- let p3 = u && (Oe$2 || be$1) && !this.composing && !o.selection.empty && !e.selection.empty && Th$1(o.selection, e.selection);
30199
+ let p3 = u && (Oe$2 || be$1) && !this.composing && !o.selection.empty && !e.selection.empty && Oh$1(o.selection, e.selection);
30200
30200
  if (u) {
30201
30201
  let h3 = be$1 ? this.trackWrites = this.domSelectionRange().focusNode : null;
30202
- this.composing && (this.input.compositionNode = sh$1(this)), (i3 || !this.docView.update(e.doc, c3, l, this)) && (this.docView.updateOuterDeco(c3), this.docView.destroy(), this.docView = ya$1(e.doc, c3, l, this.dom, this)), h3 && !this.trackWrites && (p3 = true);
30202
+ this.composing && (this.input.compositionNode = ih$1(this)), (i3 || !this.docView.update(e.doc, c3, l, this)) && (this.docView.updateOuterDeco(c3), this.docView.destroy(), this.docView = ya$1(e.doc, c3, l, this.dom, this)), h3 && !this.trackWrites && (p3 = true);
30203
30203
  }
30204
- p3 || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Ep(this)) ? kt$1(this, p3) : (Cc$1(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
30204
+ p3 || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && Np(this)) ? kt$1(this, p3) : (Cc$1(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
30205
30205
  }
30206
- this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : f3 && lp$1(f3);
30206
+ this.updatePluginViews(o), !((r = this.dragging) === null || r === void 0) && r.node && !o.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, o), d == "reset" ? this.dom.scrollTop = 0 : d == "to selection" ? this.scrollToSelection() : f3 && ap$1(f3);
30207
30207
  }
30208
30208
  /**
30209
30209
  @internal
@@ -30290,7 +30290,7 @@ Actual: ` + p3.attribValue
30290
30290
  Focus the editor.
30291
30291
  */
30292
30292
  focus() {
30293
- this.domObserver.stop(), this.editable && cp$1(this.dom), kt$1(this), this.domObserver.start();
30293
+ this.domObserver.stop(), this.editable && lp$1(this.dom), kt$1(this), this.domObserver.start();
30294
30294
  }
30295
30295
  /**
30296
30296
  Get the document root in which the editor exists. This will
@@ -30324,7 +30324,7 @@ Actual: ` + p3.attribValue
30324
30324
  the top level, not in any node.
30325
30325
  */
30326
30326
  posAtCoords(e) {
30327
- return hp$1(this, e);
30327
+ return pp$1(this, e);
30328
30328
  }
30329
30329
  /**
30330
30330
  Returns the viewport rectangle at a given document position.
@@ -30389,7 +30389,7 @@ Actual: ` + p3.attribValue
30389
30389
  pass a different state.
30390
30390
  */
30391
30391
  endOfTextblock(e, n) {
30392
- return wp$1(this, n || this.state, e);
30392
+ return bp$1(this, n || this.state, e);
30393
30393
  }
30394
30394
  /**
30395
30395
  Run the editor's paste logic with the given HTML string. The
@@ -30421,7 +30421,7 @@ Actual: ` + p3.attribValue
30421
30421
  views](https://prosemirror.net/docs/ref/#view.NodeView).
30422
30422
  */
30423
30423
  destroy() {
30424
- this.docView && (Xp(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ti$1(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Yf$1());
30424
+ this.docView && (Kp(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ti$1(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, Jf$1());
30425
30425
  }
30426
30426
  /**
30427
30427
  This is true when the view has been
@@ -30435,7 +30435,7 @@ Actual: ` + p3.attribValue
30435
30435
  Used for testing.
30436
30436
  */
30437
30437
  dispatchEvent(e) {
30438
- return Yp(this, e);
30438
+ return Jp(this, e);
30439
30439
  }
30440
30440
  /**
30441
30441
  Dispatch a transaction. Will call
@@ -30455,7 +30455,7 @@ Actual: ` + p3.attribValue
30455
30455
  */
30456
30456
  domSelectionRange() {
30457
30457
  let e = this.domSelection();
30458
- return e ? xe && this.root.nodeType === 11 && tp$1(this.dom.ownerDocument) == this.dom && wh$1(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
30458
+ return e ? xe && this.root.nodeType === 11 && ep$1(this.dom.ownerDocument) == this.dom && bh$1(this, e) || e : { focusNode: null, focusOffset: 0, anchorNode: null, anchorOffset: 0 };
30459
30459
  }
30460
30460
  /**
30461
30461
  @internal
@@ -30482,7 +30482,7 @@ Actual: ` + p3.attribValue
30482
30482
  function _a$1(t) {
30483
30483
  return !t.someProp("editable", (e) => e(t.state) === false);
30484
30484
  }
30485
- function Th$1(t, e) {
30485
+ function Oh$1(t, e) {
30486
30486
  let n = Math.min(t.$anchor.sharedDepth(t.head), e.$anchor.sharedDepth(e.head));
30487
30487
  return t.$anchor.start(n) != e.$anchor.start(n);
30488
30488
  }
@@ -30494,7 +30494,7 @@ Actual: ` + p3.attribValue
30494
30494
  }
30495
30495
  return t.someProp("nodeViews", n), t.someProp("markViews", n), e;
30496
30496
  }
30497
- function Dh$1(t, e) {
30497
+ function Th$1(t, e) {
30498
30498
  let n = 0, r = 0;
30499
30499
  for (let o in t) {
30500
30500
  if (t[o] != e[o])
@@ -30509,7 +30509,7 @@ Actual: ` + p3.attribValue
30509
30509
  if (t.spec.state || t.spec.filterTransaction || t.spec.appendTransaction)
30510
30510
  throw new RangeError("Plugins passed directly to the view must not have a state component");
30511
30511
  }
30512
- const hr$1 = Math.floor, Nh$1 = Math.abs, zt$2 = (t, e) => t < e ? t : e, Nn$2 = (t, e) => t > e ? t : e, Eh$1 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Ih$1 = 64, mr$1 = 128, Ph$1 = 1 << 29, Ha$1 = 63, nr$1 = 127, Rh$1 = 2147483647, Lh$1 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && hr$1(t) === t), Fh$1 = () => /* @__PURE__ */ new Set(), Bh$1 = Array.isArray, zh$1 = String.fromCharCode, _h$1 = (t) => t.toLowerCase(), Vh$1 = /^\s*/g, $h$1 = (t) => t.replace(Vh$1, ""), Hh$1 = /([A-Z])/g, ja$1 = (t, e) => $h$1(t.replace(Hh$1, (n) => `${e}${_h$1(n)}`)), jh$1 = (t) => {
30512
+ const hr$1 = Math.floor, Dh$1 = Math.abs, zt$2 = (t, e) => t < e ? t : e, Nn$2 = (t, e) => t > e ? t : e, Nh$1 = (t) => t !== 0 ? t < 0 : 1 / t < 0, Eh$1 = 64, mr$1 = 128, Ih$1 = 1 << 29, Ha$1 = 63, nr$1 = 127, Ph$1 = 2147483647, Rh$1 = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && hr$1(t) === t), Lh$1 = () => /* @__PURE__ */ new Set(), Fh$1 = Array.isArray, Bh$1 = String.fromCharCode, zh$1 = (t) => t.toLowerCase(), _h$1 = /^\s*/g, Vh$1 = (t) => t.replace(_h$1, ""), $h$1 = /([A-Z])/g, ja$1 = (t, e) => Vh$1(t.replace($h$1, (n) => `${e}${zh$1(n)}`)), Hh$1 = (t) => {
30513
30513
  const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n);
30514
30514
  for (let o = 0; o < n; o++)
30515
30515
  r[o] = /** @type {number} */
@@ -30518,31 +30518,31 @@ Actual: ` + p3.attribValue
30518
30518
  }, gr$1 = (
30519
30519
  /** @type {TextEncoder} */
30520
30520
  typeof TextEncoder < "u" ? new TextEncoder() : null
30521
- ), Wh$1 = (t) => gr$1.encode(t), Uh$1 = gr$1 ? Wh$1 : jh$1;
30521
+ ), jh$1 = (t) => gr$1.encode(t), Wh$1 = gr$1 ? jh$1 : Hh$1;
30522
30522
  let ri = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
30523
30523
  ri && ri.decode(new Uint8Array()).length === 1 && (ri = null);
30524
- let qh$1 = class qh {
30524
+ let Uh$1 = class Uh {
30525
30525
  constructor() {
30526
30526
  this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
30527
30527
  }
30528
30528
  };
30529
- const Kh$1 = () => new qh$1(), Xh$1 = (t) => {
30530
- const e = Kh$1();
30531
- return t(e), Yh$1(e);
30532
- }, Jh$1 = (t) => {
30529
+ const qh$1 = () => new Uh$1(), Kh$1 = (t) => {
30530
+ const e = qh$1();
30531
+ return t(e), Jh$1(e);
30532
+ }, Xh$1 = (t) => {
30533
30533
  let e = t.cpos;
30534
30534
  for (let n = 0; n < t.bufs.length; n++)
30535
30535
  e += t.bufs[n].length;
30536
30536
  return e;
30537
- }, Yh$1 = (t) => {
30538
- const e = new Uint8Array(Jh$1(t));
30537
+ }, Jh$1 = (t) => {
30538
+ const e = new Uint8Array(Xh$1(t));
30539
30539
  let n = 0;
30540
30540
  for (let r = 0; r < t.bufs.length; r++) {
30541
30541
  const o = t.bufs[r];
30542
30542
  e.set(o, n), n += o.length;
30543
30543
  }
30544
30544
  return e.set(new Uint8Array(t.cbuf.buffer, 0, t.cpos), n), e;
30545
- }, Gh$1 = (t, e) => {
30545
+ }, Yh$1 = (t, e) => {
30546
30546
  const n = t.cbuf.length;
30547
30547
  n - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(Nn$2(n, e) * 2), t.cpos = 0);
30548
30548
  }, pe = (t, e) => {
@@ -30552,19 +30552,19 @@ Actual: ` + p3.attribValue
30552
30552
  for (; e > nr$1; )
30553
30553
  pe(t, mr$1 | nr$1 & e), e = hr$1(e / 128);
30554
30554
  pe(t, nr$1 & e);
30555
- }, Zh$1 = (t, e) => {
30556
- const n = Eh$1(e);
30557
- for (n && (e = -e), pe(t, (e > Ha$1 ? mr$1 : 0) | (n ? Ih$1 : 0) | Ha$1 & e), e = hr$1(e / 64); e > 0; )
30555
+ }, Gh$1 = (t, e) => {
30556
+ const n = Nh$1(e);
30557
+ for (n && (e = -e), pe(t, (e > Ha$1 ? mr$1 : 0) | (n ? Eh$1 : 0) | Ha$1 & e), e = hr$1(e / 64); e > 0; )
30558
30558
  pe(t, (e > nr$1 ? mr$1 : 0) | nr$1 & e), e = hr$1(e / 128);
30559
- }, Di$1 = new Uint8Array(3e4), Qh$1 = Di$1.length / 3, em = (t, e) => {
30560
- if (e.length < Qh$1) {
30559
+ }, Di$1 = new Uint8Array(3e4), Zh$1 = Di$1.length / 3, Qh$1 = (t, e) => {
30560
+ if (e.length < Zh$1) {
30561
30561
  const n = gr$1.encodeInto(e, Di$1).written || 0;
30562
30562
  yr$1(t, n);
30563
30563
  for (let r = 0; r < n; r++)
30564
30564
  pe(t, Di$1[r]);
30565
30565
  } else
30566
- Hc$1(t, Uh$1(e));
30567
- }, tm = (t, e) => {
30566
+ Hc$1(t, Wh$1(e));
30567
+ }, em = (t, e) => {
30568
30568
  const n = unescape(encodeURIComponent(e)), r = n.length;
30569
30569
  yr$1(t, r);
30570
30570
  for (let o = 0; o < r; o++)
@@ -30574,33 +30574,33 @@ Actual: ` + p3.attribValue
30574
30574
  n.codePointAt(o)
30575
30575
  );
30576
30576
  }, Wa$1 = gr$1 && /** @type {any} */
30577
- gr$1.encodeInto ? em : tm, nm = (t, e) => {
30577
+ gr$1.encodeInto ? Qh$1 : em, tm = (t, e) => {
30578
30578
  const n = t.cbuf.length, r = t.cpos, o = zt$2(n - r, e.length), i3 = e.length - o;
30579
30579
  t.cbuf.set(e.subarray(0, o), r), t.cpos += o, i3 > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Nn$2(n * 2, i3)), t.cbuf.set(e.subarray(o)), t.cpos = i3);
30580
30580
  }, Hc$1 = (t, e) => {
30581
- yr$1(t, e.byteLength), nm(t, e);
30581
+ yr$1(t, e.byteLength), tm(t, e);
30582
30582
  }, Os = (t, e) => {
30583
- Gh$1(t, e);
30583
+ Yh$1(t, e);
30584
30584
  const n = new DataView(t.cbuf.buffer, t.cpos, e);
30585
30585
  return t.cpos += e, n;
30586
- }, rm = (t, e) => Os(t, 4).setFloat32(0, e, false), om = (t, e) => Os(t, 8).setFloat64(0, e, false), im = (t, e) => (
30586
+ }, nm = (t, e) => Os(t, 4).setFloat32(0, e, false), rm = (t, e) => Os(t, 8).setFloat64(0, e, false), om = (t, e) => (
30587
30587
  /** @type {any} */
30588
30588
  Os(t, 8).setBigInt64(0, e, false)
30589
- ), Ua$1 = new DataView(new ArrayBuffer(4)), sm = (t) => (Ua$1.setFloat32(0, t), Ua$1.getFloat32(0) === t), Ni$1 = (t, e) => {
30589
+ ), Ua$1 = new DataView(new ArrayBuffer(4)), im = (t) => (Ua$1.setFloat32(0, t), Ua$1.getFloat32(0) === t), Ni$1 = (t, e) => {
30590
30590
  switch (typeof e) {
30591
30591
  case "string":
30592
30592
  pe(t, 119), Wa$1(t, e);
30593
30593
  break;
30594
30594
  case "number":
30595
- Lh$1(e) && Nh$1(e) <= Rh$1 ? (pe(t, 125), Zh$1(t, e)) : sm(e) ? (pe(t, 124), rm(t, e)) : (pe(t, 123), om(t, e));
30595
+ Rh$1(e) && Dh$1(e) <= Ph$1 ? (pe(t, 125), Gh$1(t, e)) : im(e) ? (pe(t, 124), nm(t, e)) : (pe(t, 123), rm(t, e));
30596
30596
  break;
30597
30597
  case "bigint":
30598
- pe(t, 122), im(t, e);
30598
+ pe(t, 122), om(t, e);
30599
30599
  break;
30600
30600
  case "object":
30601
30601
  if (e === null)
30602
30602
  pe(t, 126);
30603
- else if (Bh$1(e)) {
30603
+ else if (Fh$1(e)) {
30604
30604
  pe(t, 117), yr$1(t, e.length);
30605
30605
  for (let n = 0; n < e.length; n++)
30606
30606
  Ni$1(t, e[n]);
@@ -30622,19 +30622,19 @@ Actual: ` + p3.attribValue
30622
30622
  default:
30623
30623
  pe(t, 127);
30624
30624
  }
30625
- }, jc$1 = (t) => new Error(t), am = () => {
30625
+ }, jc$1 = (t) => new Error(t), sm = () => {
30626
30626
  throw jc$1("Method unimplemented");
30627
30627
  }, Wc$1 = () => {
30628
30628
  throw jc$1("Unexpected case");
30629
30629
  }, oo$2 = () => /* @__PURE__ */ new Map(), Uc$1 = (t, e, n) => {
30630
30630
  let r = t.get(e);
30631
30631
  return r === void 0 && t.set(e, r = n()), r;
30632
- }, lm = Object.keys, cm = (t, e) => {
30632
+ }, am = Object.keys, lm = (t, e) => {
30633
30633
  for (const n in t)
30634
30634
  if (!e(t[n], n))
30635
30635
  return false;
30636
30636
  return true;
30637
- }, dm = (t, e) => e.includes(t), um = () => {
30637
+ }, cm = (t, e) => e.includes(t), dm = () => {
30638
30638
  let t = true;
30639
30639
  return (e, n) => {
30640
30640
  if (t) {
@@ -30646,19 +30646,19 @@ Actual: ` + p3.attribValue
30646
30646
  }
30647
30647
  } else n !== void 0 && n();
30648
30648
  };
30649
- }, fm = /[\uD800-\uDBFF]/, pm = /[\uDC00-\uDFFF]/, hm = (t, e) => {
30649
+ }, um = /[\uD800-\uDBFF]/, fm = /[\uDC00-\uDFFF]/, pm = (t, e) => {
30650
30650
  let n = 0, r = 0;
30651
30651
  for (; n < t.length && n < e.length && t[n] === e[n]; )
30652
30652
  n++;
30653
- for (n > 0 && fm.test(t[n - 1]) && n--; r + n < t.length && r + n < e.length && t[t.length - r - 1] === e[e.length - r - 1]; )
30653
+ for (n > 0 && um.test(t[n - 1]) && n--; r + n < t.length && r + n < e.length && t[t.length - r - 1] === e[e.length - r - 1]; )
30654
30654
  r++;
30655
- return r > 0 && pm.test(t[t.length - r]) && r--, {
30655
+ return r > 0 && fm.test(t[t.length - r]) && r--, {
30656
30656
  index: n,
30657
30657
  remove: t.length - n - r,
30658
30658
  insert: e.slice(n, e.length - r)
30659
30659
  };
30660
- }, mm = hm, te = new Cp$2("y-sync"), _t = new Cp$2("y-undo"), qr$1 = new Cp$2("yjs-cursor"), gm = Math.random, ym = (t) => t[hr$1(gm() * t.length)], qa$1 = (t) => t === void 0 ? null : t;
30661
- class bm {
30660
+ }, hm = pm, te = new Cp$2("y-sync"), _t = new Cp$2("y-undo"), qr$1 = new Cp$2("yjs-cursor"), mm = Math.random, gm = (t) => t[hr$1(mm() * t.length)], qa$1 = (t) => t === void 0 ? null : t;
30661
+ class ym {
30662
30662
  constructor() {
30663
30663
  this.map = /* @__PURE__ */ new Map();
30664
30664
  }
@@ -30676,14 +30676,14 @@ Actual: ` + p3.attribValue
30676
30676
  return this.map.get(e);
30677
30677
  }
30678
30678
  }
30679
- let qc$1 = new bm(), wm = true;
30679
+ let qc$1 = new ym(), bm = true;
30680
30680
  try {
30681
- typeof localStorage < "u" && localStorage && (qc$1 = localStorage, wm = false);
30681
+ typeof localStorage < "u" && localStorage && (qc$1 = localStorage, bm = false);
30682
30682
  } catch {
30683
30683
  }
30684
- const vm = qc$1, En$1 = typeof he$3 < "u" && he$3.release && /node|io\.js/.test(he$3.release.name) && Object.prototype.toString.call(typeof he$3 < "u" ? he$3 : 0) === "[object process]", Kc$1 = typeof window < "u" && typeof document < "u" && !En$1;
30684
+ const wm = qc$1, En$1 = typeof he$3 < "u" && he$3.release && /node|io\.js/.test(he$3.release.name) && Object.prototype.toString.call(typeof he$3 < "u" ? he$3 : 0) === "[object process]", Kc$1 = typeof window < "u" && typeof document < "u" && !En$1;
30685
30685
  let Ze$1;
30686
- const km = () => {
30686
+ const vm = () => {
30687
30687
  if (Ze$1 === void 0)
30688
30688
  if (En$1) {
30689
30689
  Ze$1 = oo$2();
@@ -30701,17 +30701,17 @@ Actual: ` + p3.attribValue
30701
30701
  }
30702
30702
  })) : Ze$1 = oo$2();
30703
30703
  return Ze$1;
30704
- }, Ei$1 = (t) => km().has(t), Ii$1 = (t) => qa$1(En$1 ? he$3.env[t.toUpperCase().replaceAll("-", "_")] : vm.getItem(t)), Xc$1 = (t) => Ei$1("--" + t) || Ii$1(t) !== null;
30704
+ }, Ei$1 = (t) => vm().has(t), Ii$1 = (t) => qa$1(En$1 ? he$3.env[t.toUpperCase().replaceAll("-", "_")] : wm.getItem(t)), Xc$1 = (t) => Ei$1("--" + t) || Ii$1(t) !== null;
30705
30705
  Xc$1("production");
30706
- const Cm = En$1 && dm(he$3.env.FORCE_COLOR, ["true", "1", "2"]);
30707
- Cm || !Ei$1("--no-colors") && // @todo deprecate --no-colors
30706
+ const km = En$1 && cm(he$3.env.FORCE_COLOR, ["true", "1", "2"]);
30707
+ km || !Ei$1("--no-colors") && // @todo deprecate --no-colors
30708
30708
  !Xc$1("no-color") && (!En$1 || he$3.stdout.isTTY) && (!En$1 || Ei$1("--color") || Ii$1("COLORTERM") !== null || (Ii$1("TERM") || "").includes("color"));
30709
- const Sm = (
30709
+ const Cm = (
30710
30710
  /** @type {Document} */
30711
30711
  typeof document < "u" ? document : {}
30712
30712
  );
30713
30713
  typeof DOMParser < "u" && new DOMParser();
30714
- const xm = (t) => class {
30714
+ const Sm = (t) => class {
30715
30715
  /**
30716
30716
  * @param {number} timeoutId
30717
30717
  */
@@ -30721,7 +30721,7 @@ Actual: ` + p3.attribValue
30721
30721
  destroy() {
30722
30722
  t(this._);
30723
30723
  }
30724
- }, Mm = xm(clearTimeout), Ts = (t, e) => new Mm(setTimeout(e, t)), nt$2 = (t, e) => t >>> e | t << 32 - e, Am = (t) => nt$2(t, 2) ^ nt$2(t, 13) ^ nt$2(t, 22), Om = (t) => nt$2(t, 6) ^ nt$2(t, 11) ^ nt$2(t, 25), Tm = (t) => nt$2(t, 7) ^ nt$2(t, 18) ^ t >>> 3, Dm = (t) => nt$2(t, 17) ^ nt$2(t, 19) ^ t >>> 10, Nm = new Uint32Array([
30724
+ }, xm = Sm(clearTimeout), Ts = (t, e) => new xm(setTimeout(e, t)), nt$2 = (t, e) => t >>> e | t << 32 - e, Mm = (t) => nt$2(t, 2) ^ nt$2(t, 13) ^ nt$2(t, 22), Am = (t) => nt$2(t, 6) ^ nt$2(t, 11) ^ nt$2(t, 25), Om = (t) => nt$2(t, 7) ^ nt$2(t, 18) ^ t >>> 3, Tm = (t) => nt$2(t, 17) ^ nt$2(t, 19) ^ t >>> 10, Dm = new Uint32Array([
30725
30725
  1116352408,
30726
30726
  1899447441,
30727
30727
  3049323471,
@@ -30786,7 +30786,7 @@ Actual: ` + p3.attribValue
30786
30786
  2756734187,
30787
30787
  3204031479,
30788
30788
  3329325298
30789
- ]), Em = new Uint32Array([
30789
+ ]), Nm = new Uint32Array([
30790
30790
  1779033703,
30791
30791
  3144134277,
30792
30792
  1013904242,
@@ -30796,18 +30796,18 @@ Actual: ` + p3.attribValue
30796
30796
  528734635,
30797
30797
  1541459225
30798
30798
  ]);
30799
- class Im {
30799
+ class Em {
30800
30800
  constructor() {
30801
30801
  const e = new ArrayBuffer(320);
30802
- this._H = new Uint32Array(e, 0, 8), this._H.set(Em), this._W = new Uint32Array(e, 64, 64);
30802
+ this._H = new Uint32Array(e, 0, 8), this._H.set(Nm), this._W = new Uint32Array(e, 64, 64);
30803
30803
  }
30804
30804
  _updateHash() {
30805
30805
  const e = this._H, n = this._W;
30806
30806
  for (let u = 16; u < 64; u++)
30807
- n[u] = Dm(n[u - 2]) + n[u - 7] + Tm(n[u - 15]) + n[u - 16];
30807
+ n[u] = Tm(n[u - 2]) + n[u - 7] + Om(n[u - 15]) + n[u - 16];
30808
30808
  let r = e[0], o = e[1], i3 = e[2], s = e[3], a = e[4], l = e[5], c3 = e[6], d = e[7];
30809
30809
  for (let u = 0, f3, p3; u < 64; u++)
30810
- f3 = d + Om(a) + (a & l ^ ~a & c3) + Nm[u] + n[u] >>> 0, p3 = Am(r) + (r & o ^ r & i3 ^ o & i3) >>> 0, d = c3, c3 = l, l = a, a = s + f3 >>> 0, s = i3, i3 = o, o = r, r = f3 + p3 >>> 0;
30810
+ f3 = d + Am(a) + (a & l ^ ~a & c3) + Dm[u] + n[u] >>> 0, p3 = Mm(r) + (r & o ^ r & i3 ^ o & i3) >>> 0, d = c3, c3 = l, l = a, a = s + f3 >>> 0, s = i3, i3 = o, o = r, r = f3 + p3 >>> 0;
30811
30811
  e[0] += r, e[1] += o, e[2] += i3, e[3] += s, e[4] += a, e[5] += l, e[6] += c3, e[7] += d;
30812
30812
  }
30813
30813
  /**
@@ -30834,7 +30834,7 @@ Actual: ` + p3.attribValue
30834
30834
  for (; n < e.length; o++)
30835
30835
  for (let s = 3; s >= 0 && n < e.length; s--)
30836
30836
  this._W[o] |= e[n++] << s * 8;
30837
- r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= mr$1 << (3 - n % 4) * 8), this._W[14] = e.byteLength / Ph$1, this._W[15] = e.byteLength * 8, this._updateHash();
30837
+ r || (this._W[o - (n % 4 === 0 ? 0 : 1)] |= mr$1 << (3 - n % 4) * 8), this._W[14] = e.byteLength / Ih$1, this._W[15] = e.byteLength * 8, this._updateHash();
30838
30838
  const i3 = new Uint8Array(32);
30839
30839
  for (let s = 0; s < this._H.length; s++)
30840
30840
  for (let a = 0; a < 4; a++)
@@ -30842,33 +30842,33 @@ Actual: ` + p3.attribValue
30842
30842
  return i3;
30843
30843
  }
30844
30844
  }
30845
- const Pm = (t) => new Im().digest(t), Rm = (t) => {
30845
+ const Im = (t) => new Em().digest(t), Pm = (t) => {
30846
30846
  let e = "";
30847
30847
  for (let n = 0; n < t.byteLength; n++)
30848
- e += zh$1(t[n]);
30848
+ e += Bh$1(t[n]);
30849
30849
  return btoa(e);
30850
- }, Lm = (t) => Ht$1.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Fm = Kc$1 ? Rm : Lm, Bm = (t) => Xh$1((e) => Ni$1(e, t)), zm = (t) => {
30850
+ }, Rm = (t) => Ht$1.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Lm = Kc$1 ? Pm : Rm, Fm = (t) => Kh$1((e) => Ni$1(e, t)), Bm = (t) => {
30851
30851
  for (let n = 6; n < t.length; n++)
30852
30852
  t[n % 6] = t[n % 6] ^ t[n];
30853
30853
  return t.slice(0, 6);
30854
- }, _m = (t) => Fm(zm(Pm(Bm(t)))), Vm = () => ({
30854
+ }, zm = (t) => Lm(Bm(Im(Fm(t)))), _m = () => ({
30855
30855
  mapping: /* @__PURE__ */ new Map(),
30856
30856
  isOMark: /* @__PURE__ */ new Map()
30857
30857
  }), wo$1 = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
30858
- e.sv.get(t.id.client) > t.id.clock && !T__namespace.isDeleted(e.ds, t.id), $m = [{ light: "#ecd44433", dark: "#ecd444" }], Hm = (t, e, n) => {
30858
+ e.sv.get(t.id.client) > t.id.clock && !T__namespace.isDeleted(e.ds, t.id), Vm = [{ light: "#ecd44433", dark: "#ecd444" }], $m = (t, e, n) => {
30859
30859
  if (!t.has(n)) {
30860
30860
  if (t.size < e.length) {
30861
- const r = Fh$1();
30861
+ const r = Lh$1();
30862
30862
  t.forEach((o) => r.add(o)), e = e.filter((o) => !r.has(o));
30863
30863
  }
30864
- t.set(n, ym(e));
30864
+ t.set(n, gm(e));
30865
30865
  }
30866
30866
  return (
30867
30867
  /** @type {ColorDef} */
30868
30868
  t.get(n)
30869
30869
  );
30870
- }, jm = (t, {
30871
- colors: e = $m,
30870
+ }, Hm = (t, {
30871
+ colors: e = Vm,
30872
30872
  colorMapping: n = /* @__PURE__ */ new Map(),
30873
30873
  permanentUserData: r = null,
30874
30874
  onFirstRender: o = () => {
@@ -30876,7 +30876,7 @@ Actual: ` + p3.attribValue
30876
30876
  mapping: i3
30877
30877
  } = {}) => {
30878
30878
  let s = false;
30879
- const a = new Um(t, i3), l = new vp$2({
30879
+ const a = new Wm(t, i3), l = new vp$2({
30880
30880
  props: {
30881
30881
  editable: (c3) => {
30882
30882
  const d = te.getState(c3);
@@ -30951,7 +30951,7 @@ Actual: ` + p3.attribValue
30951
30951
  })
30952
30952
  });
30953
30953
  return l;
30954
- }, Wm = (t, e, n) => {
30954
+ }, jm = (t, e, n) => {
30955
30955
  if (e !== null && e.anchor !== null && e.head !== null)
30956
30956
  if (e.type === "all")
30957
30957
  t.setSelection(new at$2(t.doc));
@@ -30985,13 +30985,13 @@ Actual: ` + p3.attribValue
30985
30985
  t.mapping
30986
30986
  )
30987
30987
  });
30988
- class Um {
30988
+ class Wm {
30989
30989
  /**
30990
30990
  * @param {Y.XmlFragment} yXmlFragment The bind source
30991
30991
  * @param {ProsemirrorMapping} mapping
30992
30992
  */
30993
30993
  constructor(e, n = /* @__PURE__ */ new Map()) {
30994
- this.type = e, this.prosemirrorView = null, this.mux = um(), this.mapping = n, this.isOMark = /* @__PURE__ */ new Map(), this._observeFunction = this._typeChanged.bind(this), this.doc = e.doc, this.beforeTransactionSelection = null, this.beforeAllTransactions = () => {
30994
+ this.type = e, this.prosemirrorView = null, this.mux = dm(), this.mapping = n, this.isOMark = /* @__PURE__ */ new Map(), this._observeFunction = this._typeChanged.bind(this), this.doc = e.doc, this.beforeTransactionSelection = null, this.beforeAllTransactions = () => {
30995
30995
  this.beforeTransactionSelection === null && this.prosemirrorView != null && (this.beforeTransactionSelection = Pi$1(
30996
30996
  this,
30997
30997
  this.prosemirrorView.state
@@ -31018,7 +31018,7 @@ Actual: ` + p3.attribValue
31018
31018
  if (e == null || e.anchorNode == null) return false;
31019
31019
  const n = this.prosemirrorView._root.createRange();
31020
31020
  n.setStart(e.anchorNode, e.anchorOffset), n.setEnd(e.focusNode, e.focusOffset), n.getClientRects().length === 0 && n.startContainer && n.collapsed && n.selectNodeContents(n.startContainer);
31021
- const o = n.getBoundingClientRect(), i3 = Sm.documentElement;
31021
+ const o = n.getBoundingClientRect(), i3 = Cm.documentElement;
31022
31022
  return o.bottom >= 0 && o.right >= 0 && o.left <= (window.innerWidth || i3.clientWidth || 0) && o.top <= (window.innerHeight || i3.clientHeight || 0);
31023
31023
  }
31024
31024
  /**
@@ -31105,7 +31105,7 @@ Actual: ` + p3.attribValue
31105
31105
  return {
31106
31106
  user: p3,
31107
31107
  type: u,
31108
- color: Hm(
31108
+ color: $m(
31109
31109
  r.colorMapping,
31110
31110
  r.colors,
31111
31111
  p3
@@ -31172,7 +31172,7 @@ Actual: ` + p3.attribValue
31172
31172
  this.prosemirrorView.state.doc.content.size,
31173
31173
  new ue(Q$2.from(i3), 0, 0)
31174
31174
  );
31175
- Wm(s, this.beforeTransactionSelection, this), s = s.setMeta(te, { isChangeOrigin: true, isUndoRedoOperation: n.origin instanceof T__namespace.UndoManager }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
31175
+ jm(s, this.beforeTransactionSelection, this), s = s.setMeta(te, { isChangeOrigin: true, isUndoRedoOperation: n.origin instanceof T__namespace.UndoManager }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
31176
31176
  });
31177
31177
  }
31178
31178
  /**
@@ -31212,7 +31212,7 @@ Actual: ` + p3.attribValue
31212
31212
  o,
31213
31213
  i3
31214
31214
  );
31215
- throw am();
31215
+ throw sm();
31216
31216
  }
31217
31217
  return s;
31218
31218
  }, rr$1 = (t, e, n, r, o, i3) => {
@@ -31238,7 +31238,7 @@ Actual: ` + p3.attribValue
31238
31238
  ]), c3.doc.transact((u) => {
31239
31239
  c3._item.delete(u);
31240
31240
  }));
31241
- const d = qm(
31241
+ const d = Um(
31242
31242
  l,
31243
31243
  e,
31244
31244
  n,
@@ -31278,12 +31278,12 @@ Actual: ` + p3.attribValue
31278
31278
  t._item.delete(c3);
31279
31279
  }, te), n.mapping.delete(t), null;
31280
31280
  }
31281
- }, qm = (t, e, n, r, o, i3) => {
31281
+ }, Um = (t, e, n, r, o, i3) => {
31282
31282
  const s = [], a = t.toDelta(r, o, i3);
31283
31283
  try {
31284
31284
  for (let l = 0; l < a.length; l++) {
31285
31285
  const c3 = a[l];
31286
- s.push(e.text(c3.insert, Zm(c3.attributes, e)));
31286
+ s.push(e.text(c3.insert, Gm(c3.attributes, e)));
31287
31287
  }
31288
31288
  } catch {
31289
31289
  return t.doc.transact((c3) => {
@@ -31291,14 +31291,14 @@ Actual: ` + p3.attribValue
31291
31291
  }, te), null;
31292
31292
  }
31293
31293
  return s;
31294
- }, Km = (t, e) => {
31294
+ }, qm = (t, e) => {
31295
31295
  const n = new T__namespace.XmlText(), r = t.map((o) => ({
31296
31296
  // @ts-ignore
31297
31297
  insert: o.text,
31298
31298
  attributes: Zc$1(o.marks, e)
31299
31299
  }));
31300
31300
  return n.applyDelta(r), e.mapping.set(n, t), n;
31301
- }, Xm = (t, e) => {
31301
+ }, Km = (t, e) => {
31302
31302
  const n = new T__namespace.XmlElement(t.type.name);
31303
31303
  for (const r in t.attrs) {
31304
31304
  const o = t.attrs[r];
@@ -31310,7 +31310,7 @@ Actual: ` + p3.attribValue
31310
31310
  (r) => Ri$1(r, e)
31311
31311
  )
31312
31312
  ), e.mapping.set(n, t), n;
31313
- }, Ri$1 = (t, e) => t instanceof Array ? Km(t, e) : Xm(t, e), Ka$1 = (t) => typeof t == "object" && t !== null, Ds = (t, e) => {
31313
+ }, Ri$1 = (t, e) => t instanceof Array ? qm(t, e) : Km(t, e), Ka$1 = (t) => typeof t == "object" && t !== null, Ds = (t, e) => {
31314
31314
  const n = Object.keys(t).filter((o) => t[o] !== null);
31315
31315
  let r = n.length === Object.keys(e).filter((o) => e[o] !== null).length;
31316
31316
  for (let o = 0; o < n.length && r; o++) {
@@ -31336,7 +31336,7 @@ Actual: ` + p3.attribValue
31336
31336
  return n.length === e.length && n.every(
31337
31337
  /** @type {(d:any,i:number) => boolean} */
31338
31338
  (r, o) => r.insert === /** @type {any} */
31339
- e[o].text && lm(r.attributes || {}).length === e[o].marks.length && cm(r.attributes, (i3, s) => {
31339
+ e[o].text && am(r.attributes || {}).length === e[o].marks.length && lm(r.attributes, (i3, s) => {
31340
31340
  const a = Gc$1(s), l = e[o].marks;
31341
31341
  return Ds(i3, l.find(
31342
31342
  /** @param {any} mark */
@@ -31375,7 +31375,7 @@ Actual: ` + p3.attribValue
31375
31375
  equalityFactor: l + c3,
31376
31376
  foundMappedChild: d
31377
31377
  };
31378
- }, Jm = (t) => {
31378
+ }, Xm = (t) => {
31379
31379
  let e = "", n = t._start;
31380
31380
  const r = {};
31381
31381
  for (; n !== null; )
@@ -31384,22 +31384,22 @@ Actual: ` + p3.attribValue
31384
31384
  str: e,
31385
31385
  nAttrs: r
31386
31386
  };
31387
- }, Ym = (t, e, n) => {
31387
+ }, Jm = (t, e, n) => {
31388
31388
  n.mapping.set(t, e);
31389
- const { nAttrs: r, str: o } = Jm(t), i3 = e.map((c3) => ({
31389
+ const { nAttrs: r, str: o } = Xm(t), i3 = e.map((c3) => ({
31390
31390
  insert: (
31391
31391
  /** @type {any} */
31392
31392
  c3.text
31393
31393
  ),
31394
31394
  attributes: Object.assign({}, r, Zc$1(c3.marks, n))
31395
- })), { insert: s, remove: a, index: l } = mm(
31395
+ })), { insert: s, remove: a, index: l } = hm(
31396
31396
  o,
31397
31397
  i3.map((c3) => c3.insert).join("")
31398
31398
  );
31399
31399
  t.delete(l, a), t.insert(l, s), t.applyDelta(
31400
31400
  i3.map((c3) => ({ retain: c3.insert.length, attributes: c3.attributes }))
31401
31401
  );
31402
- }, Gm = /(.*)(--[a-zA-Z0-9+/=]{8})$/, Gc$1 = (t) => Gm.exec(t)?.[1] ?? t, Zm = (t, e) => {
31402
+ }, Ym = /(.*)(--[a-zA-Z0-9+/=]{8})$/, Gc$1 = (t) => Ym.exec(t)?.[1] ?? t, Gm = (t, e) => {
31403
31403
  const n = [];
31404
31404
  for (const r in t)
31405
31405
  n.push(e.mark(Gc$1(r), t[r]));
@@ -31409,7 +31409,7 @@ Actual: ` + p3.attribValue
31409
31409
  return t.forEach((r) => {
31410
31410
  if (r.type.name !== "ychange") {
31411
31411
  const o = Uc$1(e.isOMark, r.type, () => !r.type.excludes(r.type));
31412
- n[o ? `${r.type.name}--${_m(r.toJSON())}` : r.type.name] = r.attrs;
31412
+ n[o ? `${r.type.name}--${zm(r.toJSON())}` : r.type.name] = r.attrs;
31413
31413
  }
31414
31414
  }), n;
31415
31415
  }, Li$1 = (t, e, n, r) => {
@@ -31444,7 +31444,7 @@ Actual: ` + p3.attribValue
31444
31444
  for (; a - c3 - d > 0 && i3 - c3 - d > 0; ) {
31445
31445
  const f3 = s[c3], p3 = o[c3], h3 = s[a - d - 1], m = o[i3 - d - 1];
31446
31446
  if (f3 instanceof T__namespace.XmlText && p3 instanceof Array)
31447
- Yc$1(f3, p3) || Ym(f3, p3, r), c3 += 1;
31447
+ Yc$1(f3, p3) || Jm(f3, p3, r), c3 += 1;
31448
31448
  else {
31449
31449
  let g = f3 instanceof T__namespace.XmlElement && Fi$1(f3, p3), b = h3 instanceof T__namespace.XmlElement && Fi$1(h3, m);
31450
31450
  if (g && b) {
@@ -31492,7 +31492,7 @@ Actual: ` + p3.attribValue
31492
31492
  }, te);
31493
31493
  }, Fi$1 = (t, e) => !(e instanceof Array) && t.nodeName === e.type.name;
31494
31494
  let or$1 = null;
31495
- const Qm = () => {
31495
+ const Zm = () => {
31496
31496
  const t = (
31497
31497
  /** @type {Map<EditorView, Map<any, any>>} */
31498
31498
  or$1
@@ -31503,8 +31503,8 @@ Actual: ` + p3.attribValue
31503
31503
  r.setMeta(s, i3);
31504
31504
  }), n.dispatch(r));
31505
31505
  });
31506
- }, eg = (t, e, n) => {
31507
- or$1 || (or$1 = /* @__PURE__ */ new Map(), Ts(0, Qm)), Uc$1(or$1, t, oo$2).set(e, n);
31506
+ }, Qm = (t, e, n) => {
31507
+ or$1 || (or$1 = /* @__PURE__ */ new Map(), Ts(0, Zm)), Uc$1(or$1, t, oo$2).set(e, n);
31508
31508
  }, ko$1 = (t, e, n) => {
31509
31509
  if (t === 0)
31510
31510
  return T__namespace.createRelativePositionFromTypeIndex(e, 0, -1);
@@ -31561,10 +31561,10 @@ Actual: ` + p3.attribValue
31561
31561
  if (r === null)
31562
31562
  throw Wc$1();
31563
31563
  if (t === 0 && r.constructor !== T__namespace.XmlText && r !== e)
31564
- return tg(r._item.parent, r._item);
31564
+ return eg(r._item.parent, r._item);
31565
31565
  }
31566
31566
  return T__namespace.createRelativePositionFromTypeIndex(e, e._length, -1);
31567
- }, tg = (t, e) => {
31567
+ }, eg = (t, e) => {
31568
31568
  let n = null, r = null;
31569
31569
  return t._item === null ? r = T__namespace.findRootTypeKey(t) : n = T__namespace.createID(t._item.id.client, t._item.id.clock), new T__namespace.RelativePosition(n, r, e.id);
31570
31570
  }, wr$1 = (t, e, n, r) => {
@@ -31613,32 +31613,32 @@ Actual: ` + p3.attribValue
31613
31613
  a;
31614
31614
  }
31615
31615
  return s - 1;
31616
- }, ng = (t, e) => {
31616
+ }, tg = (t, e) => {
31617
31617
  const n = t.toArray().map(
31618
31618
  (r) => rr$1(
31619
31619
  /** @type {Y.XmlElement} */
31620
31620
  r,
31621
31621
  e,
31622
- Vm()
31622
+ _m()
31623
31623
  )
31624
31624
  ).filter((r) => r !== null);
31625
31625
  return Q$2.fromArray(n);
31626
- }, rg = (t, e) => e.topNodeType.create(null, ng(t, e)), og = (t, e, n) => t !== e, ig = (t) => {
31626
+ }, ng = (t, e) => e.topNodeType.create(null, tg(t, e)), rg = (t, e, n) => t !== e, og = (t) => {
31627
31627
  const e = document.createElement("span");
31628
31628
  e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
31629
31629
  const n = document.createElement("div");
31630
31630
  n.setAttribute("style", `background-color: ${t.color}`), n.insertBefore(document.createTextNode(t.name), null);
31631
31631
  const r = document.createTextNode("⁠"), o = document.createTextNode("⁠");
31632
31632
  return e.insertBefore(r, null), e.insertBefore(n, null), e.insertBefore(o, null), e;
31633
- }, sg = (t) => ({
31633
+ }, ig = (t) => ({
31634
31634
  style: `background-color: ${t.color}70`,
31635
31635
  class: "ProseMirror-yjs-selection"
31636
- }), ag = /^#[0-9a-fA-F]{6}$/, Ja$1 = (t, e, n, r, o) => {
31636
+ }), sg = /^#[0-9a-fA-F]{6}$/, Ja$1 = (t, e, n, r, o) => {
31637
31637
  const i3 = te.getState(t), s = i3.doc, a = [];
31638
31638
  return i3.snapshot != null || i3.prevSnapshot != null || i3.binding.mapping.size === 0 ? F.create(t.doc, []) : (e.getStates().forEach((l, c3) => {
31639
31639
  if (n(s.clientID, c3, l) && l.cursor != null) {
31640
31640
  const d = l.user || {};
31641
- d.color == null ? d.color = "#ffa500" : ag.test(d.color) || console.warn("A user uses an unsupported color format", d), d.name == null && (d.name = `User: ${c3}`);
31641
+ d.color == null ? d.color = "#ffa500" : sg.test(d.color) || console.warn("A user uses an unsupported color format", d), d.name == null && (d.name = `User: ${c3}`);
31642
31642
  let u = wr$1(
31643
31643
  s,
31644
31644
  i3.type,
@@ -31668,10 +31668,10 @@ Actual: ` + p3.attribValue
31668
31668
  }
31669
31669
  }
31670
31670
  }), F.create(t.doc, a));
31671
- }, lg = (t, {
31672
- awarenessStateFilter: e = og,
31673
- cursorBuilder: n = ig,
31674
- selectionBuilder: r = sg,
31671
+ }, ag = (t, {
31672
+ awarenessStateFilter: e = rg,
31673
+ cursorBuilder: n = og,
31674
+ selectionBuilder: r = ig,
31675
31675
  getSelection: o = (s) => s.selection
31676
31676
  } = {}, i3 = "cursor") => new vp$2({
31677
31677
  key: qr$1,
@@ -31701,7 +31701,7 @@ Actual: ` + p3.attribValue
31701
31701
  },
31702
31702
  view: (s) => {
31703
31703
  const a = () => {
31704
- s.docView && eg(s, qr$1, { awarenessUpdated: true });
31704
+ s.docView && Qm(s, qr$1, { awarenessUpdated: true });
31705
31705
  }, l = () => {
31706
31706
  const c3 = te.getState(s.state), d = t.getLocalState() || {};
31707
31707
  if (s.hasFocus()) {
@@ -31738,21 +31738,21 @@ Actual: ` + p3.attribValue
31738
31738
  }
31739
31739
  };
31740
31740
  }
31741
- }), cg = (t) => {
31741
+ }), lg = (t) => {
31742
31742
  const e = _t.getState(t).undoManager;
31743
31743
  if (e != null)
31744
31744
  return e.undo(), true;
31745
- }, dg = (t) => {
31745
+ }, cg = (t) => {
31746
31746
  const e = _t.getState(t).undoManager;
31747
31747
  if (e != null)
31748
31748
  return e.redo(), true;
31749
- }, ug = /* @__PURE__ */ new Set(["paragraph"]), fg = (t, e) => !(t instanceof T.Item) || !(t.content instanceof T.ContentType) || !(t.content.type instanceof T.Text || t.content.type instanceof T.XmlElement && e.has(t.content.type.nodeName)) || t.content.type._length === 0, pg = ({ protectedNodes: t = ug, trackedOrigins: e = [], undoManager: n = null } = {}) => new vp$2({
31749
+ }, dg = /* @__PURE__ */ new Set(["paragraph"]), ug = (t, e) => !(t instanceof T.Item) || !(t.content instanceof T.ContentType) || !(t.content.type instanceof T.Text || t.content.type instanceof T.XmlElement && e.has(t.content.type.nodeName)) || t.content.type._length === 0, fg = ({ protectedNodes: t = dg, trackedOrigins: e = [], undoManager: n = null } = {}) => new vp$2({
31750
31750
  key: _t,
31751
31751
  state: {
31752
31752
  init: (r, o) => {
31753
31753
  const i3 = te.getState(o), s = n || new T.UndoManager(i3.type, {
31754
31754
  trackedOrigins: new Set([te].concat(e)),
31755
- deleteFilter: (a) => fg(a, t),
31755
+ deleteFilter: (a) => ug(a, t),
31756
31756
  captureTransaction: (a) => a.meta.get("addToHistory") !== false
31757
31757
  });
31758
31758
  return {
@@ -31794,7 +31794,7 @@ Actual: ` + p3.attribValue
31794
31794
  }
31795
31795
  });
31796
31796
  var et$2;
31797
- class hg {
31797
+ class pg {
31798
31798
  constructor() {
31799
31799
  ft(this, et$2, /* @__PURE__ */ new Map());
31800
31800
  }
@@ -31917,18 +31917,18 @@ Actual: ` + p3.attribValue
31917
31917
  220: "|",
31918
31918
  221: "}",
31919
31919
  222: '"'
31920
- }, mg = typeof navigator < "u" && /Mac/.test(navigator.platform), gg = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
31920
+ }, hg = typeof navigator < "u" && /Mac/.test(navigator.platform), mg = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
31921
31921
  for (var ge$1 = 0; ge$1 < 10; ge$1++) $t$1[48 + ge$1] = $t$1[96 + ge$1] = String(ge$1);
31922
31922
  for (var ge$1 = 1; ge$1 <= 24; ge$1++) $t$1[ge$1 + 111] = "F" + ge$1;
31923
31923
  for (var ge$1 = 65; ge$1 <= 90; ge$1++)
31924
31924
  $t$1[ge$1] = String.fromCharCode(ge$1 + 32), Co$1[ge$1] = String.fromCharCode(ge$1);
31925
31925
  for (var oi$1 in $t$1) Co$1.hasOwnProperty(oi$1) || (Co$1[oi$1] = $t$1[oi$1]);
31926
- function yg(t) {
31927
- var e = mg && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || gg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Co$1 : $t$1)[t.keyCode] || t.key || "Unidentified";
31926
+ function gg(t) {
31927
+ var e = hg && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || mg && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Co$1 : $t$1)[t.keyCode] || t.key || "Unidentified";
31928
31928
  return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
31929
31929
  }
31930
- const bg = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false;
31931
- function wg(t) {
31930
+ const yg = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false;
31931
+ function bg(t) {
31932
31932
  let e = t.split(/-(?!$)/), n = e[e.length - 1];
31933
31933
  n == "Space" && (n = " ");
31934
31934
  let r, o, i3, s;
@@ -31943,28 +31943,28 @@ Actual: ` + p3.attribValue
31943
31943
  else if (/^s(hift)?$/i.test(l))
31944
31944
  i3 = true;
31945
31945
  else if (/^mod$/i.test(l))
31946
- bg ? s = true : o = true;
31946
+ yg ? s = true : o = true;
31947
31947
  else
31948
31948
  throw new Error("Unrecognized modifier name: " + l);
31949
31949
  }
31950
31950
  return r && (n = "Alt-" + n), o && (n = "Ctrl-" + n), s && (n = "Meta-" + n), i3 && (n = "Shift-" + n), n;
31951
31951
  }
31952
- function vg(t) {
31952
+ function wg(t) {
31953
31953
  let e = /* @__PURE__ */ Object.create(null);
31954
31954
  for (let n in t)
31955
- e[wg(n)] = t[n];
31955
+ e[bg(n)] = t[n];
31956
31956
  return e;
31957
31957
  }
31958
31958
  function ii$1(t, e, n = true) {
31959
31959
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
31960
31960
  }
31961
- function kg(t) {
31961
+ function vg(t) {
31962
31962
  return new vp$2({ props: { handleKeyDown: Ns(t) } });
31963
31963
  }
31964
31964
  function Ns(t) {
31965
- let e = vg(t);
31965
+ let e = wg(t);
31966
31966
  return function(n, r) {
31967
- let o = yg(r), i3, s = e[ii$1(o, r)];
31967
+ let o = gg(r), i3, s = e[ii$1(o, r)];
31968
31968
  if (s && s(n.state, n.dispatch, n))
31969
31969
  return true;
31970
31970
  if (o.length == 1 && o != " ") {
@@ -32268,7 +32268,7 @@ Actual: ` + p3.attribValue
32268
32268
  function Yn$2(t, e) {
32269
32269
  return e.nodes[t] || e.marks[t] || null;
32270
32270
  }
32271
- function Cg(t, e) {
32271
+ function kg(t, e) {
32272
32272
  return Array.isArray(e) ? e.some((n) => (typeof n == "string" ? n : n.name) === t.name) : e;
32273
32273
  }
32274
32274
  function Es(t, e) {
@@ -32389,11 +32389,11 @@ Actual: ` + p3.attribValue
32389
32389
  return a;
32390
32390
  }
32391
32391
  };
32392
- function Sg(t, e) {
32392
+ function Cg(t, e) {
32393
32393
  const n = _a$2.fromSchema(e).serializeFragment(t), o = document.implementation.createHTMLDocument().createElement("div");
32394
32394
  return o.appendChild(n), o.innerHTML;
32395
32395
  }
32396
- const xg = (t, e = 500) => {
32396
+ const Sg = (t, e = 500) => {
32397
32397
  let n = "";
32398
32398
  const r = t.parentOffset;
32399
32399
  return t.parent.nodesBetween(
@@ -32410,14 +32410,14 @@ Actual: ` + p3.attribValue
32410
32410
  }
32411
32411
  ), n;
32412
32412
  };
32413
- class Mg {
32413
+ class xg {
32414
32414
  constructor(e) {
32415
32415
  P(this, "match");
32416
32416
  P(this, "handler");
32417
32417
  this.match = e.match, this.handler = e.handler;
32418
32418
  }
32419
32419
  }
32420
- const Ag = (t, e) => {
32420
+ const Mg = (t, e) => {
32421
32421
  if (Nf$1(e))
32422
32422
  return e.exec(t);
32423
32423
  const n = e(t);
@@ -32442,11 +32442,11 @@ Actual: ` + p3.attribValue
32442
32442
  if (l.parent.type.spec.code || (l.nodeBefore || l.nodeAfter)?.marks.find((u) => u.type.spec.code))
32443
32443
  return false;
32444
32444
  let c3 = false;
32445
- const d = xg(l) + o;
32445
+ const d = Sg(l) + o;
32446
32446
  return i3.forEach((u) => {
32447
32447
  if (c3)
32448
32448
  return;
32449
- const f3 = Ag(d, u.match);
32449
+ const f3 = Mg(d, u.match);
32450
32450
  if (!f3)
32451
32451
  return;
32452
32452
  const p3 = a.state.tr, h3 = Es(p3, a.state), m = {
@@ -32470,7 +32470,7 @@ Actual: ` + p3.attribValue
32470
32470
  text: o
32471
32471
  }), a.dispatch(p3), c3 = true);
32472
32472
  }), c3;
32473
- }, Og = ({ editor: t, rules: e }) => {
32473
+ }, Ag = ({ editor: t, rules: e }) => {
32474
32474
  const n = new vp$2({
32475
32475
  key: new Cp$2("inputRulesPlugin"),
32476
32476
  state: {
@@ -32484,7 +32484,7 @@ Actual: ` + p3.attribValue
32484
32484
  const a = r.getMeta("applyInputRules");
32485
32485
  return !!a && setTimeout(() => {
32486
32486
  let { text: c3 } = a;
32487
- typeof c3 != "string" && (c3 = Sg(Q$2.from(c3), i3.schema));
32487
+ typeof c3 != "string" && (c3 = Cg(Q$2.from(c3), i3.schema));
32488
32488
  const { from: d } = a, u = d + c3.length;
32489
32489
  si$1({
32490
32490
  editor: t,
@@ -32537,7 +32537,7 @@ Actual: ` + p3.attribValue
32537
32537
  case "word-html":
32538
32538
  break;
32539
32539
  case "browser-html":
32540
- return Tg(a, t);
32540
+ return Og(a, t);
32541
32541
  }
32542
32542
  return false;
32543
32543
  }
@@ -32545,14 +32545,14 @@ Actual: ` + p3.attribValue
32545
32545
  isInputRules: true
32546
32546
  });
32547
32547
  return n;
32548
- }, Tg = (t, e, n) => {
32549
- const r = Dg(t), o = document.createElement("div");
32548
+ }, Og = (t, e, n) => {
32549
+ const r = Tg(t), o = document.createElement("div");
32550
32550
  o.innerHTML = r;
32551
32551
  const i3 = gr$2.fromSchema(e.schema).parse(o);
32552
32552
  o.remove();
32553
32553
  const { dispatch: s } = e.view;
32554
32554
  return s ? (s(e.view.state.tr.replaceSelectionWith(i3, true)), true) : false;
32555
- }, Dg = (t) => t.replace(
32555
+ }, Tg = (t) => t.replace(
32556
32556
  /font-size\s*:\s*([\d.]+)em/gi,
32557
32557
  (e, n) => {
32558
32558
  const r = parseFloat(n);
@@ -32643,9 +32643,9 @@ Actual: ` + p3.attribValue
32643
32643
  const f3 = Object.entries(l()).map(([p3, h3]) => [p3, (...m) => h3({ editor: e, keymapArgs: m })]);
32644
32644
  c3 = { ...Object.fromEntries(f3) };
32645
32645
  }
32646
- a.push(kg(c3));
32646
+ a.push(vg(c3));
32647
32647
  const d = E(i3, "addInputRules", s);
32648
- Cg(i3, e.options.enableInputRules) && d && r.push(...d());
32648
+ kg(i3, e.options.enableInputRules) && d && r.push(...d());
32649
32649
  const u = E(i3, "addPmPlugins", s);
32650
32650
  if (u) {
32651
32651
  const f3 = u();
@@ -32654,7 +32654,7 @@ Actual: ` + p3.attribValue
32654
32654
  return a;
32655
32655
  }).flat();
32656
32656
  return [
32657
- Og({
32657
+ Ag({
32658
32658
  editor: e,
32659
32659
  rules: r
32660
32660
  }),
@@ -32723,22 +32723,22 @@ Actual: ` + p3.attribValue
32723
32723
  r && this.editor.on("beforeCreate", r), o && this.editor.on("create", o), i3 && this.editor.on("update", i3), s && this.editor.on("selectionUpdate", s), a && this.editor.on("transaction", a), l && this.editor.on("focus", l), c3 && this.editor.on("blur", c3), d && this.editor.on("destroy", d);
32724
32724
  };
32725
32725
  let _i$1 = An$1;
32726
- const Ng = (t) => (e) => {
32726
+ const Dg = (t) => (e) => {
32727
32727
  const n = typeof t == "function" ? t(e) : t;
32728
32728
  for (let r = 0; r < n.length; r += 1)
32729
32729
  if (n[r](e)) return true;
32730
32730
  return false;
32731
- }, Eg = (t) => (e) => t(e), Ig = () => ({ tr: t }) => (t.insertText(" ", t.selection.from, t.selection.to), true), Pg = () => ({ tr: t, state: e }) => {
32731
+ }, Ng = (t) => (e) => t(e), Eg = () => ({ tr: t }) => (t.insertText(" ", t.selection.from, t.selection.to), true), Ig = () => ({ tr: t, state: e }) => {
32732
32732
  let n = t.selection.from;
32733
32733
  const r = e.schema.nodes.tab.create();
32734
32734
  return t.insert(n, r), true;
32735
- }, Rg = (t, e) => ({ tr: n }) => (n.setMeta(t, e), true), Is = (t, e) => t.selection.empty ? false : (e && e(t.tr.deleteSelection().scrollIntoView()), true);
32736
- function Lg(t, e) {
32735
+ }, Pg = (t, e) => ({ tr: n }) => (n.setMeta(t, e), true), Is = (t, e) => t.selection.empty ? false : (e && e(t.tr.deleteSelection().scrollIntoView()), true);
32736
+ function Rg(t, e) {
32737
32737
  let { $cursor: n } = t.selection;
32738
32738
  return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
32739
32739
  }
32740
32740
  const id$1 = (t, e, n) => {
32741
- let r = Lg(t, n);
32741
+ let r = Rg(t, n);
32742
32742
  if (!r)
32743
32743
  return false;
32744
32744
  let o = ad$1(r);
@@ -32795,12 +32795,12 @@ Actual: ` + p3.attribValue
32795
32795
  }
32796
32796
  return null;
32797
32797
  }
32798
- function Fg(t, e) {
32798
+ function Lg(t, e) {
32799
32799
  let { $cursor: n } = t.selection;
32800
32800
  return !n || (e ? !e.endOfTextblock("forward", t) : n.parentOffset < n.parent.content.size) ? null : n;
32801
32801
  }
32802
32802
  const ld$1 = (t, e, n) => {
32803
- let r = Fg(t, n);
32803
+ let r = Lg(t, n);
32804
32804
  if (!r)
32805
32805
  return false;
32806
32806
  let o = dd$1(r);
@@ -32843,7 +32843,7 @@ Actual: ` + p3.attribValue
32843
32843
  }
32844
32844
  return null;
32845
32845
  }
32846
- const Bg = (t, e) => {
32846
+ const Fg = (t, e) => {
32847
32847
  let n = t.selection, r = n instanceof Ge$1, o;
32848
32848
  if (r) {
32849
32849
  if (n.node.isTextblock || !Ap$1(t.doc, n.from))
@@ -32856,7 +32856,7 @@ Actual: ` + p3.attribValue
32856
32856
  r && i3.setSelection(Ge$1.create(i3.doc, o - t.doc.resolve(o).nodeBefore.nodeSize)), e(i3.scrollIntoView());
32857
32857
  }
32858
32858
  return true;
32859
- }, zg = (t, e) => {
32859
+ }, Bg = (t, e) => {
32860
32860
  let n = t.selection, r;
32861
32861
  if (n instanceof Ge$1) {
32862
32862
  if (n.node.isTextblock || !Ap$1(t.doc, n.to))
@@ -32878,7 +32878,7 @@ Actual: ` + p3.attribValue
32878
32878
  }
32879
32879
  return null;
32880
32880
  }
32881
- const _g = (t, e) => {
32881
+ const zg = (t, e) => {
32882
32882
  let { $head: n, $anchor: r } = t.selection;
32883
32883
  if (!n.parent.type.spec.code || !n.sameParent(r))
32884
32884
  return false;
@@ -32914,7 +32914,7 @@ Actual: ` + p3.attribValue
32914
32914
  let r = n.blockRange(), o = r && yp$2(r);
32915
32915
  return o == null ? false : (e && e(t.tr.lift(r, o).scrollIntoView()), true);
32916
32916
  };
32917
- function Vg(t) {
32917
+ function _g(t) {
32918
32918
  return (e, n) => {
32919
32919
  let { $from: r, $to: o } = e.selection;
32920
32920
  if (e.selection instanceof Ge$1 && e.selection.node.isBlock)
@@ -32941,14 +32941,14 @@ Actual: ` + p3.attribValue
32941
32941
  return n && n(d.scrollIntoView()), true;
32942
32942
  };
32943
32943
  }
32944
- const $g = Vg(), Hg = (t, e) => (e && e(t.tr.setSelection(new at$2(t.doc))), true);
32945
- function jg(t, e, n) {
32944
+ const Vg = _g(), $g = (t, e) => (e && e(t.tr.setSelection(new at$2(t.doc))), true);
32945
+ function Hg(t, e, n) {
32946
32946
  let r = e.nodeBefore, o = e.nodeAfter, i3 = e.index();
32947
32947
  return !r || !o || !r.type.compatibleContent(o.type) ? false : !r.content.size && e.parent.canReplace(i3 - 1, i3) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), true) : !e.parent.canReplace(i3, i3 + 1) || !(o.isTextblock || Ap$1(t.doc, e.pos)) ? false : (n && n(t.tr.join(e.pos).scrollIntoView()), true);
32948
32948
  }
32949
32949
  function hd$1(t, e, n, r) {
32950
32950
  let o = e.nodeBefore, i3 = e.nodeAfter, s, a, l = o.type.spec.isolating || i3.type.spec.isolating;
32951
- if (!l && jg(t, e, n))
32951
+ if (!l && Hg(t, e, n))
32952
32952
  return true;
32953
32953
  let c3 = !l && e.parent.canReplace(e.index(), e.index() + 1);
32954
32954
  if (c3 && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i3.type)) && a.matchType(s[0] || i3.type).validEnd) {
@@ -32996,7 +32996,7 @@ Actual: ` + p3.attribValue
32996
32996
  return o.node(i3).isTextblock ? (n && n(e.tr.setSelection(tt$3.create(e.doc, t < 0 ? o.start(i3) : o.end(i3)))), true) : false;
32997
32997
  };
32998
32998
  }
32999
- const Wg = md$1(-1), Ug = md$1(1);
32999
+ const jg = md$1(-1), Wg = md$1(1);
33000
33000
  function Ya$1(t, e = null) {
33001
33001
  return function(n, r) {
33002
33002
  let o = false;
@@ -33037,7 +33037,7 @@ Actual: ` + p3.attribValue
33037
33037
  }
33038
33038
  Rs(Is, id$1, sd$1);
33039
33039
  Rs(Is, ld$1, cd$1);
33040
- Rs(ud$1, fd$1, pd$1, $g);
33040
+ Rs(ud$1, fd$1, pd$1, Vg);
33041
33041
  typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : typeof os < "u" && os.platform && os.platform() == "darwin";
33042
33042
  function gd$1(t) {
33043
33043
  for (let e = 0; e < t.edgeCount; e++) {
@@ -33052,7 +33052,7 @@ Actual: ` + p3.attribValue
33052
33052
  const r = n.filter((o) => e?.includes(o.type.name));
33053
33053
  t.tr.ensureMarks(r);
33054
33054
  }
33055
- }, qg = ({ keepMarks: t = true } = {}) => (e) => {
33055
+ }, Ug = ({ keepMarks: t = true } = {}) => (e) => {
33056
33056
  const { tr: n, state: r, dispatch: o, editor: i3 } = e, { selection: s, doc: a } = n, { $from: l, $to: c3 } = s, d = i3.extensionService.attributes, u = N.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
33057
33057
  if (s instanceof Ge$1 && s.node.isBlock)
33058
33058
  return !l.parentOffset || !xp$2(a, l.pos) ? false : (o && (t && Ga$1(r, i3.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), true);
@@ -33069,9 +33069,9 @@ Actual: ` + p3.attribValue
33069
33069
  t && Ga$1(r, i3.extensionService.splittableMarks), n.scrollIntoView();
33070
33070
  }
33071
33071
  return true;
33072
- }, Kg = () => ({ state: t, dispatch: e }) => pd$1(t, e), Xg = () => ({ state: t, dispatch: e }) => fd$1(t, e), Jg = () => ({ state: t, dispatch: e }) => ud$1(t, e), Yg = () => ({ state: t, dispatch: e }) => _g(t, e), yd$1 = (t) => {
33072
+ }, qg = () => ({ state: t, dispatch: e }) => pd$1(t, e), Kg = () => ({ state: t, dispatch: e }) => fd$1(t, e), Xg = () => ({ state: t, dispatch: e }) => ud$1(t, e), Jg = () => ({ state: t, dispatch: e }) => zg(t, e), yd$1 = (t) => {
33073
33073
  };
33074
- function Gg(t, e, n) {
33074
+ function Yg(t, e, n) {
33075
33075
  const { selection: r } = e;
33076
33076
  let o = null;
33077
33077
  if (yd$1() && (o = r.$cursor), o) {
@@ -33090,7 +33090,7 @@ Actual: ` + p3.attribValue
33090
33090
  }), a;
33091
33091
  });
33092
33092
  }
33093
- const Zg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33093
+ const Gg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33094
33094
  const { selection: i3 } = n, { empty: s, ranges: a } = i3, l = St$1(t, r.schema);
33095
33095
  if (o)
33096
33096
  if (s) {
@@ -33118,12 +33118,12 @@ Actual: ` + p3.attribValue
33118
33118
  }) : n.addMark(h3, m, l.create(e));
33119
33119
  });
33120
33120
  });
33121
- return Gg(r, n, l);
33121
+ return Yg(r, n, l);
33122
33122
  };
33123
33123
  function Vi$1(t, e, n = {}) {
33124
33124
  return t.find((r) => r.type === e && If$1(r.attrs, n));
33125
33125
  }
33126
- function Qg(t, e, n = {}) {
33126
+ function Zg(t, e, n = {}) {
33127
33127
  return !!Vi$1(t, e, n);
33128
33128
  }
33129
33129
  function Ls(t, e, n = {}) {
@@ -33135,11 +33135,11 @@ Actual: ` + p3.attribValue
33135
33135
  let i3 = r.index, s = t.start() + r.offset, a = i3 + 1, l = s + r.node.nodeSize;
33136
33136
  for (Vi$1([...r.node.marks], e, n); i3 > 0 && o.isInSet(t.parent.child(i3 - 1).marks); )
33137
33137
  i3 -= 1, s -= t.parent.child(i3).nodeSize;
33138
- for (; a < t.parent.childCount && Qg([...t.parent.child(a).marks], e, n); )
33138
+ for (; a < t.parent.childCount && Zg([...t.parent.child(a).marks], e, n); )
33139
33139
  l += t.parent.child(a).nodeSize, a += 1;
33140
33140
  return { from: s, to: l };
33141
33141
  }
33142
- const ey = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33142
+ const Qg = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33143
33143
  const { extendEmptyMarkRange: i3 = false } = e, { selection: s } = n, a = St$1(t, r.schema), { $from: l, empty: c3, ranges: d } = s;
33144
33144
  if (!o) return true;
33145
33145
  if (c3 && i3) {
@@ -33151,7 +33151,7 @@ Actual: ` + p3.attribValue
33151
33151
  n.removeMark(u.$from.pos, u.$to.pos, a);
33152
33152
  });
33153
33153
  return n.removeStoredMark(a), true;
33154
- }, ty = () => ({ tr: t, dispatch: e }) => {
33154
+ }, ey = () => ({ tr: t, dispatch: e }) => {
33155
33155
  const { selection: n } = t, { empty: r, ranges: o } = n;
33156
33156
  return r || e && o.forEach((i3) => {
33157
33157
  t.removeMark(i3.$from.pos, i3.$to.pos);
@@ -33180,10 +33180,10 @@ Actual: ` + p3.attribValue
33180
33180
  const l = a.filter((u) => i3 ? i3.name === u.mark.type.name : true).filter((u) => If$1(u.mark.attrs, n, { strict: false })).reduce((u, f3) => u + f3.to - f3.from, 0), c3 = a.filter((u) => i3 ? u.mark.type !== i3 && u.mark.type.excludes(i3) : true).reduce((u, f3) => u + f3.to - f3.from, 0);
33181
33181
  return (l > 0 ? l + c3 : l) >= s;
33182
33182
  }
33183
- const ny = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
33183
+ const ty = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
33184
33184
  const { extendEmptyMarkRange: i3 = false } = n, s = St$1(t, r.schema);
33185
33185
  return So$1(r, s, e) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, e);
33186
- }, ry = () => ({ state: t, tr: e, dispatch: n }) => {
33186
+ }, ny = () => ({ state: t, tr: e, dispatch: n }) => {
33187
33187
  const { selection: r } = e, { ranges: o } = r;
33188
33188
  return n && o.forEach(({ $from: i3, $to: s }) => {
33189
33189
  t.doc.nodesBetween(i3.pos, s.pos, (a, l) => {
@@ -33198,7 +33198,7 @@ Actual: ` + p3.attribValue
33198
33198
  (h3 || h3 === 0) && e.lift(p3, h3);
33199
33199
  });
33200
33200
  }), true;
33201
- }, oy = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
33201
+ }, ry = (t, e = {}) => ({ state: n, dispatch: r, chain: o }) => {
33202
33202
  const i3 = le$1(t, n.schema);
33203
33203
  return i3.isTextblock ? o().command(({ commands: s }) => Ya$1(i3, e)(n) ? true : s.clearNodes()).command(({ state: s }) => Ya$1(i3, e)(s, r)).run() : false;
33204
33204
  };
@@ -33216,10 +33216,10 @@ Actual: ` + p3.attribValue
33216
33216
  const l = o - r, c3 = a.filter((u) => s ? s.name === u.node.type.name : true).filter((u) => If$1(u.node.attrs, n, { strict: false }));
33217
33217
  return i3 ? !!c3.length : c3.reduce((u, f3) => u + f3.to - f3.from, 0) >= l;
33218
33218
  }
33219
- const iy = (t, e, n = {}) => ({ state: r, commands: o }) => {
33219
+ const oy = (t, e, n = {}) => ({ state: r, commands: o }) => {
33220
33220
  const i3 = le$1(t, r.schema), s = le$1(e, r.schema);
33221
33221
  return xo$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
33222
- }, sy = () => ({ state: t, dispatch: e }) => Hg(t, e), ay = () => ({ state: t, dispatch: e }) => Is(t, e), ly = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33222
+ }, iy = () => ({ state: t, dispatch: e }) => $g(t, e), sy = () => ({ state: t, dispatch: e }) => Is(t, e), ay = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
33223
33223
  let i3 = null, s = null;
33224
33224
  const a = Er$1(
33225
33225
  typeof t == "string" ? t : t.name,
@@ -33236,7 +33236,7 @@ Actual: ` + p3.attribValue
33236
33236
  });
33237
33237
  });
33238
33238
  }), true) : false;
33239
- }, cy = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
33239
+ }, ly = (t, e) => ({ tr: n, state: r, dispatch: o }) => {
33240
33240
  let i3 = null, s = null;
33241
33241
  const a = Er$1(
33242
33242
  typeof t == "string" ? t : t.name,
@@ -33249,7 +33249,7 @@ Actual: ` + p3.attribValue
33249
33249
  });
33250
33250
  });
33251
33251
  }), true) : false;
33252
- }, dy = () => ({ state: t, dispatch: e }) => Bg(t, e), uy = () => ({ state: t, dispatch: e }) => zg(t, e), fy = () => ({ state: t, dispatch: e }) => id$1(t, e), py = () => ({ state: t, dispatch: e }) => ld$1(t, e), hy = () => ({ state: t, dispatch: e }) => sd$1(t, e), my = () => ({ state: t, dispatch: e }) => cd$1(t, e), gy = () => ({ state: t, dispatch: e }) => Wg(t, e), yy = () => ({ state: t, dispatch: e }) => Ug(t, e), by = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), bd$1 = (t) => {
33252
+ }, cy = () => ({ state: t, dispatch: e }) => Fg(t, e), dy = () => ({ state: t, dispatch: e }) => Bg(t, e), uy = () => ({ state: t, dispatch: e }) => id$1(t, e), fy = () => ({ state: t, dispatch: e }) => ld$1(t, e), py = () => ({ state: t, dispatch: e }) => sd$1(t, e), hy = () => ({ state: t, dispatch: e }) => cd$1(t, e), my = () => ({ state: t, dispatch: e }) => jg(t, e), gy = () => ({ state: t, dispatch: e }) => Wg(t, e), yy = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), bd$1 = (t) => {
33253
33253
  const e = t.childNodes;
33254
33254
  for (let n = e.length - 1; n >= 0; n -= 1) {
33255
33255
  const r = e[n];
@@ -33310,7 +33310,7 @@ Actual: ` + p3.attribValue
33310
33310
  }
33311
33311
  return $i$1("", e, n);
33312
33312
  }
33313
- function wy(t, e, n) {
33313
+ function by(t, e, n) {
33314
33314
  const r = t.steps.length - 1;
33315
33315
  if (r < e)
33316
33316
  return;
@@ -33323,7 +33323,7 @@ Actual: ` + p3.attribValue
33323
33323
  s === 0 && (s = d);
33324
33324
  }), t.setSelection(ve$1.near(t.doc.resolve(s), n));
33325
33325
  }
33326
- const vy = (t) => !("type" in t), ky = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
33326
+ const wy = (t) => !("type" in t), vy = (t, e, n) => ({ tr: r, dispatch: o, editor: i3 }) => {
33327
33327
  if (o) {
33328
33328
  n = {
33329
33329
  parseOptions: {},
@@ -33351,17 +33351,17 @@ Actual: ` + p3.attribValue
33351
33351
  }), false;
33352
33352
  }
33353
33353
  let { from: a, to: l } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, c3 = true, d = true;
33354
- if ((vy(s) ? s : [s]).forEach((p3) => {
33354
+ if ((wy(s) ? s : [s]).forEach((p3) => {
33355
33355
  p3.check(), c3 = c3 ? p3.isText && p3.marks.length === 0 : false, d = d ? p3.isBlock : false;
33356
33356
  }), a === l && d) {
33357
33357
  const { parent: p3 } = r.doc.resolve(a);
33358
33358
  p3.isTextblock && !p3.type.spec.code && !p3.childCount && (a -= 1, l += 1);
33359
33359
  }
33360
33360
  let f3;
33361
- c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection && wy(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f3 }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f3 });
33361
+ c3 ? (Array.isArray(e) ? f3 = e.map((p3) => p3.text || "").join("") : typeof e == "object" && e && e.text ? f3 = e.text : f3 = e, r.insertText(f3, a, l)) : (f3 = s, r.replaceWith(a, l, f3)), n.updateSelection && by(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: a, text: f3 }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: a, text: f3 });
33362
33362
  }
33363
33363
  return true;
33364
- }, Cy = () => ({ state: t, dispatch: e }) => {
33364
+ }, ky = () => ({ state: t, dispatch: e }) => {
33365
33365
  const n = t.plugins;
33366
33366
  for (let r = 0; r < n.length; r += 1) {
33367
33367
  const o = n[r];
@@ -33382,16 +33382,16 @@ Actual: ` + p3.attribValue
33382
33382
  }
33383
33383
  return false;
33384
33384
  };
33385
- function Sy(t, e = null) {
33385
+ function Cy(t, e = null) {
33386
33386
  return function(n, r) {
33387
33387
  let { $from: o, $to: i3 } = n.selection, s = o.blockRange(i3);
33388
33388
  if (!s)
33389
33389
  return false;
33390
33390
  let a = r ? n.tr : null;
33391
- return xy(a, s, t, e) ? (r && r(a.scrollIntoView()), true) : false;
33391
+ return Sy(a, s, t, e) ? (r && r(a.scrollIntoView()), true) : false;
33392
33392
  };
33393
33393
  }
33394
- function xy(t, e, n, r = null) {
33394
+ function Sy(t, e, n, r = null) {
33395
33395
  let o = false, i3 = e, s = e.$from.doc;
33396
33396
  if (e.depth >= 2 && e.$from.node(e.depth - 1).type.compatibleContent(n) && e.startIndex == 0) {
33397
33397
  if (e.$from.index(e.depth - 1) == 0)
@@ -33400,9 +33400,9 @@ Actual: ` + p3.attribValue
33400
33400
  i3 = new Lc$2(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Lc$2(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), o = true;
33401
33401
  }
33402
33402
  let a = bp$2(i3, n, r, e);
33403
- return a ? (t && My(t, e, a, o, n), true) : false;
33403
+ return a ? (t && xy(t, e, a, o, n), true) : false;
33404
33404
  }
33405
- function My(t, e, n, r, o) {
33405
+ function xy(t, e, n, r, o) {
33406
33406
  let i3 = Q$2.empty;
33407
33407
  for (let d = n.length - 1; d >= 0; d--)
33408
33408
  i3 = Q$2.from(n[d].type.create(n[d].attrs, i3));
@@ -33415,13 +33415,13 @@ Actual: ` + p3.attribValue
33415
33415
  !f3 && xp$2(t.doc, l, a) && (t.split(l, a), l += 2 * a), l += c3.child(d).nodeSize;
33416
33416
  return t;
33417
33417
  }
33418
- function Ay(t) {
33418
+ function My(t) {
33419
33419
  return function(e, n) {
33420
33420
  let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (s) => s.childCount > 0 && s.firstChild.type == t);
33421
- return i3 ? n ? r.node(i3.depth - 1).type == t ? Oy(e, n, t, i3) : Ty(e, n, i3) : true : false;
33421
+ return i3 ? n ? r.node(i3.depth - 1).type == t ? Ay(e, n, t, i3) : Oy(e, n, i3) : true : false;
33422
33422
  };
33423
33423
  }
33424
- function Oy(t, e, n, r) {
33424
+ function Ay(t, e, n, r) {
33425
33425
  let o = t.tr, i3 = r.end, s = r.$to.end(r.depth);
33426
33426
  i3 < s && (o.step(new Je$3(i3 - 1, s, i3, s, new ue(Q$2.from(n.create(null, r.parent.copy())), 1, 0), 1, true)), r = new Lc$2(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
33427
33427
  const a = yp$2(r);
@@ -33431,7 +33431,7 @@ Actual: ` + p3.attribValue
33431
33431
  let l = o.doc.resolve(o.mapping.map(i3, -1) - 1);
33432
33432
  return Ap$1(o.doc, l.pos) && l.nodeBefore.type == l.nodeAfter.type && o.join(l.pos), e(o.scrollIntoView()), true;
33433
33433
  }
33434
- function Ty(t, e, n) {
33434
+ function Oy(t, e, n) {
33435
33435
  let r = t.tr, o = n.parent;
33436
33436
  for (let p3 = n.end, h3 = n.endIndex - 1, m = n.startIndex; h3 > m; h3--)
33437
33437
  p3 -= o.child(h3).nodeSize, r.delete(p3 - 1, p3 + 1);
@@ -33444,7 +33444,7 @@ Actual: ` + p3.attribValue
33444
33444
  let u = i3.pos, f3 = u + s.nodeSize;
33445
33445
  return r.step(new Je$3(u - (a ? 1 : 0), f3 + (l ? 1 : 0), u + 1, f3 - 1, new ue((a ? Q$2.empty : Q$2.from(o.copy(Q$2.empty))).append(l ? Q$2.empty : Q$2.from(o.copy(Q$2.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), true;
33446
33446
  }
33447
- function Dy(t) {
33447
+ function Ty(t) {
33448
33448
  return function(e, n) {
33449
33449
  let { $from: r, $to: o } = e.selection, i3 = r.blockRange(o, (c3) => c3.childCount > 0 && c3.firstChild.type == t);
33450
33450
  if (!i3)
@@ -33462,9 +33462,9 @@ Actual: ` + p3.attribValue
33462
33462
  return true;
33463
33463
  };
33464
33464
  }
33465
- const Ny = (t, e = {}) => ({ state: n, dispatch: r }) => {
33465
+ const Dy = (t, e = {}) => ({ state: n, dispatch: r }) => {
33466
33466
  const o = le$1(t, n.schema);
33467
- return Sy(o, e)(n, r);
33467
+ return Cy(o, e)(n, r);
33468
33468
  }, Bo$1 = (t, e) => {
33469
33469
  for (let n = t.depth; n > 0; n--) {
33470
33470
  const r = t.node(n);
@@ -33485,7 +33485,7 @@ Actual: ` + p3.attribValue
33485
33485
  storage: r.storage
33486
33486
  }, i3 = Bp$2(E(r, "group", o));
33487
33487
  return typeof i3 != "string" ? false : i3.split(" ").includes("list");
33488
- }, Ey = {
33488
+ }, Ny = {
33489
33489
  type: "element",
33490
33490
  name: "w:abstractNum",
33491
33491
  attributes: {
@@ -33984,7 +33984,7 @@ Actual: ` + p3.attribValue
33984
33984
  ]
33985
33985
  }
33986
33986
  ]
33987
- }, Iy = {
33987
+ }, Ey = {
33988
33988
  type: "element",
33989
33989
  name: "w:abstractNum",
33990
33990
  attributes: {
@@ -34642,14 +34642,14 @@ Actual: ` + p3.attribValue
34642
34642
  if (r === void 0) return true;
34643
34643
  const o = t.doc.nodeAt(r);
34644
34644
  return n.node.type === o?.type && Ap$1(t.doc, r) && t.join(r), true;
34645
- }, Py = (t, e, n, r = {}) => (o) => {
34645
+ }, Iy = (t, e, n, r = {}) => (o) => {
34646
34646
  const { editor: i3, tr: s, state: a, dispatch: l, chain: c3, can: d, commands: u } = o, { extensions: f3, splittableMarks: p3 } = i3.extensionService, h3 = le$1(t, a.schema), m = le$1(e, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: C } = g, y = w.blockRange(C), S = b || g.$to.parentOffset && g.$from.marks();
34647
34647
  if (!y) return false;
34648
34648
  const k = He$2((z) => Hi$1(z.type.name, f3))(g), { numbering: A } = i3.converter;
34649
34649
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
34650
34650
  if (k.node.type === h3) {
34651
34651
  const { listId: z } = k.node.attrs;
34652
- return i3.converter.numbering = Ly(z, A), u.liftListItem(m);
34652
+ return i3.converter.numbering = Ry(z, A), u.liftListItem(m);
34653
34653
  }
34654
34654
  if (Hi$1(k.node.type.name, f3) && h3.validContent(k.node.content) && l)
34655
34655
  return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
@@ -34662,9 +34662,9 @@ Actual: ` + p3.attribValue
34662
34662
  }
34663
34663
  return $ ? true : u.clearNodes();
34664
34664
  }, x3 = wd$1(A.definitions);
34665
- return i3.converter.numbering = Ry(x3, A, h3), r.listId = x3, !n || !S || !l ? c3().command(L3({ ensureMarks: false })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run() : c3().command(L3({ ensureMarks: true })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
34666
- }, wd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Ry = (t, e, n) => {
34667
- const r = n.name === "orderedList" ? Ey : Iy, o = { ...e }, i3 = wd$1(o.abstracts), s = {
34665
+ return i3.converter.numbering = Py(x3, A, h3), r.listId = x3, !n || !S || !l ? c3().command(L3({ ensureMarks: false })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run() : c3().command(L3({ ensureMarks: true })).wrapInList(h3, r).command(() => ai$1(s, h3)).command(() => li$1(s, h3)).run();
34666
+ }, wd$1 = (t) => Math.max(...Object.keys(t).map(Number)) + 1, Py = (t, e, n) => {
34667
+ const r = n.name === "orderedList" ? Ny : Ey, o = { ...e }, i3 = wd$1(o.abstracts), s = {
34668
34668
  ...r,
34669
34669
  attributes: {
34670
34670
  ...r.attributes,
@@ -34684,10 +34684,10 @@ Actual: ` + p3.attribValue
34684
34684
  ]
34685
34685
  };
34686
34686
  return o.definitions[t] = a, o;
34687
- }, Ly = (t, e) => {
34687
+ }, Ry = (t, e) => {
34688
34688
  const { definitions: n, abstracts: r } = e, o = n[t].elements[0].attributes["w:val"];
34689
34689
  return delete n[t], delete r[o], e;
34690
- }, Fy = (t) => (e) => {
34690
+ }, Ly = (t) => (e) => {
34691
34691
  const { tr: n, state: r, dispatch: o, editor: i3 } = e, s = le$1(t, r.schema), { $from: a, $to: l, node: c3 } = r.selection;
34692
34692
  if (c3 && c3.isBlock || a.depth < 2 || !a.sameParent(l))
34693
34693
  return false;
@@ -34739,57 +34739,57 @@ Actual: ` + p3.attribValue
34739
34739
  n.ensureMarks(y), n.setMeta("splitListItem", y);
34740
34740
  }
34741
34741
  return true;
34742
- }, By = (t) => ({ state: e, dispatch: n }) => {
34742
+ }, Fy = (t) => ({ state: e, dispatch: n }) => {
34743
34743
  const r = le$1(t, e.schema);
34744
- return Dy(r)(e, n);
34745
- }, zy = (t) => ({ state: e, dispatch: n }) => {
34744
+ return Ty(r)(e, n);
34745
+ }, By = (t) => ({ state: e, dispatch: n }) => {
34746
34746
  const r = le$1(t, e.schema);
34747
- return Ay(r)(e, n);
34748
- }, _y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34747
+ return My(r)(e, n);
34748
+ }, zy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
34749
34749
  __proto__: null,
34750
- clearNodes: ry,
34751
- command: Eg,
34752
- createParagraphNear: Xg,
34753
- deleteSelection: ay,
34754
- exitCode: Yg,
34755
- first: Ng,
34756
- insertContent: by,
34757
- insertContentAt: ky,
34758
- insertTabChar: Ig,
34759
- insertTabNode: Pg,
34760
- joinBackward: fy,
34761
- joinDown: uy,
34762
- joinForward: py,
34763
- joinUp: dy,
34764
- liftEmptyBlock: Kg,
34765
- liftListItem: zy,
34766
- newlineInCode: Jg,
34767
- resetAttributes: cy,
34768
- selectAll: sy,
34769
- selectNodeBackward: hy,
34770
- selectNodeForward: my,
34771
- selectTextblockEnd: yy,
34772
- selectTextblockStart: gy,
34773
- setMark: Zg,
34774
- setMeta: Rg,
34775
- setNode: oy,
34776
- sinkListItem: By,
34777
- splitBlock: qg,
34778
- splitListItem: Fy,
34779
- toggleList: Py,
34780
- toggleMark: ny,
34781
- toggleNode: iy,
34782
- undoInputRule: Cy,
34783
- unsetAllMarks: ty,
34784
- unsetMark: ey,
34785
- updateAttributes: ly,
34786
- wrapInList: Ny
34787
- }, Symbol.toStringTag, { value: "Module" })), Vy = Q$1.create({
34750
+ clearNodes: ny,
34751
+ command: Ng,
34752
+ createParagraphNear: Kg,
34753
+ deleteSelection: sy,
34754
+ exitCode: Jg,
34755
+ first: Dg,
34756
+ insertContent: yy,
34757
+ insertContentAt: vy,
34758
+ insertTabChar: Eg,
34759
+ insertTabNode: Ig,
34760
+ joinBackward: uy,
34761
+ joinDown: dy,
34762
+ joinForward: fy,
34763
+ joinUp: cy,
34764
+ liftEmptyBlock: qg,
34765
+ liftListItem: By,
34766
+ newlineInCode: Xg,
34767
+ resetAttributes: ly,
34768
+ selectAll: iy,
34769
+ selectNodeBackward: py,
34770
+ selectNodeForward: hy,
34771
+ selectTextblockEnd: gy,
34772
+ selectTextblockStart: my,
34773
+ setMark: Gg,
34774
+ setMeta: Pg,
34775
+ setNode: ry,
34776
+ sinkListItem: Fy,
34777
+ splitBlock: Ug,
34778
+ splitListItem: Ly,
34779
+ toggleList: Iy,
34780
+ toggleMark: ty,
34781
+ toggleNode: oy,
34782
+ undoInputRule: ky,
34783
+ unsetAllMarks: ey,
34784
+ unsetMark: Qg,
34785
+ updateAttributes: ay,
34786
+ wrapInList: Dy
34787
+ }, Symbol.toStringTag, { value: "Module" })), _y = Q$1.create({
34788
34788
  name: "commands",
34789
34789
  addCommands() {
34790
- return { ..._y };
34790
+ return { ...zy };
34791
34791
  }
34792
- }), $y = (t) => {
34792
+ }), Vy = (t) => {
34793
34793
  t.commands.first(({ commands: e }) => [
34794
34794
  () => e.newlineInCode(),
34795
34795
  () => e.createParagraphNear(),
@@ -34810,11 +34810,11 @@ Actual: ` + p3.attribValue
34810
34810
  () => e.joinForward(),
34811
34811
  () => e.selectNodeForward()
34812
34812
  ]);
34813
- }, Hy = Q$1.create({
34813
+ }, $y = Q$1.create({
34814
34814
  name: "keymap",
34815
34815
  addShortcuts() {
34816
34816
  const t = {
34817
- Enter: () => $y(this.editor),
34817
+ Enter: () => Vy(this.editor),
34818
34818
  "Mod-Enter": () => this.editor.commands.exitCode(),
34819
34819
  Backspace: () => Xn$2(this.editor),
34820
34820
  "Mod-Backspace": () => Xn$2(this.editor),
@@ -34839,7 +34839,7 @@ Actual: ` + p3.attribValue
34839
34839
  };
34840
34840
  return Np$1() || Ip$2() ? n : e;
34841
34841
  }
34842
- }), jy = Q$1.create({
34842
+ }), Hy = Q$1.create({
34843
34843
  name: "editable",
34844
34844
  addPmPlugins() {
34845
34845
  return [new vp$2({
@@ -34849,7 +34849,7 @@ Actual: ` + p3.attribValue
34849
34849
  }
34850
34850
  })];
34851
34851
  }
34852
- }), Wy = Q$1.create({
34852
+ }), jy = Q$1.create({
34853
34853
  name: "editorFocus",
34854
34854
  addPmPlugins() {
34855
34855
  const t = this.editor;
@@ -34963,7 +34963,7 @@ Actual: ` + p3.attribValue
34963
34963
  )) : d.attrs.track && !d.attrs.track.find((f3) => f3.type === Ri$2) && ["bulletList", "orderedList"].includes(d.type.name);
34964
34964
  }), { deletionMark: a, deletionMap: l, nodes: c3 };
34965
34965
  };
34966
- function Uy(t) {
34966
+ function Wy(t) {
34967
34967
  const e = {
34968
34968
  bulletList: 1,
34969
34969
  orderedList: 2
@@ -35013,7 +35013,7 @@ Actual: ` + p3.attribValue
35013
35013
  }
35014
35014
  };
35015
35015
  }
35016
- function qy(t, e, n) {
35016
+ function Uy(t, e, n) {
35017
35017
  const r = [];
35018
35018
  return t === e ? n.resolve(t).marks().forEach((o) => {
35019
35019
  const i3 = n.resolve(t - 1), s = Ls(i3, o.type);
@@ -35072,14 +35072,14 @@ Actual: ` + p3.attribValue
35072
35072
  findMark: Eo$1,
35073
35073
  findParentNode: He$2,
35074
35074
  findParentNodeClosestToPos: Bo$1,
35075
- generateDocxListAttributes: Uy,
35075
+ generateDocxListAttributes: Wy,
35076
35076
  generateDocxRandomId: Ii$2,
35077
35077
  generateRandom32BitHex: ru$2,
35078
- getActiveFormatting: zf$1,
35078
+ getActiveFormatting: Bf$1,
35079
35079
  getExtensionConfigField: E,
35080
35080
  getMarkRange: Ls,
35081
35081
  getMarkType: St$1,
35082
- getMarksBetween: qy,
35082
+ getMarksBetween: Uy,
35083
35083
  getMarksFromSelection: No$1,
35084
35084
  getNodeType: le$1,
35085
35085
  getSchemaTypeByName: Yn$2,
@@ -35091,7 +35091,7 @@ Actual: ` + p3.attribValue
35091
35091
  isNodeActive: xo$1,
35092
35092
  isTextSelection: yd$1,
35093
35093
  posToDOMRect: xd$1
35094
- }, Symbol.toStringTag, { value: "Module" })), Ky = (t, e, n) => {
35094
+ }, Symbol.toStringTag, { value: "Module" })), qy = (t, e, n) => {
35095
35095
  const r = t.resolve(e), o = r.parent, i3 = o.childAfter(r.parentOffset);
35096
35096
  if (!i3.node)
35097
35097
  return null;
@@ -35121,11 +35121,11 @@ Actual: ` + p3.attribValue
35121
35121
  throw new Error('Invalid "predicate" parameter');
35122
35122
  } else throw new Error('Invalid "node" parameter');
35123
35123
  return Od$1(t, n).filter((r) => e(r.node));
35124
- }, Dd$1 = (t, e) => Td$1(t, (n) => n.isInline, e), Xy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35124
+ }, Dd$1 = (t, e) => Td$1(t, (n) => n.isInline, e), Ky = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35125
35125
  __proto__: null,
35126
35126
  findChildren: Td$1,
35127
35127
  findInlineNodes: Dd$1,
35128
- findMarkPosition: Ky,
35128
+ findMarkPosition: qy,
35129
35129
  flatten: Od$1
35130
35130
  }, Symbol.toStringTag, { value: "Module" })), zs = (t, e = null) => {
35131
35131
  const n = [], r = Dd$1(t.doc);
@@ -35139,7 +35139,7 @@ Actual: ` + p3.attribValue
35139
35139
  });
35140
35140
  });
35141
35141
  }), e ? n.filter(({ mark: o }) => o.attrs.id === e) : n) : n;
35142
- }, de = new Cp$2("TrackChangesBase"), Jy = (t = {}) => new vp$2({
35142
+ }, de = new Cp$2("TrackChangesBase"), Xy = (t = {}) => new vp$2({
35143
35143
  key: de,
35144
35144
  state: {
35145
35145
  init(e, n) {
@@ -35260,10 +35260,10 @@ Actual: ` + p3.attribValue
35260
35260
  }
35261
35261
  }), F.create(t.doc, r)) : F.empty;
35262
35262
  }, Pe = "commentMark", Za$1 = ({ commentId: t, state: e, tr: n, dispatch: r }) => {
35263
- Yy(t, e.doc).forEach(({ from: i3, to: s }) => {
35263
+ Jy(t, e.doc).forEach(({ from: i3, to: s }) => {
35264
35264
  n.removeMark(i3, s, e.schema.marks[Pe]);
35265
35265
  }), r(n);
35266
- }, Yy = (t, e) => {
35266
+ }, Jy = (t, e) => {
35267
35267
  const n = [];
35268
35268
  return e.descendants((r, o) => {
35269
35269
  const { marks: i3 } = r, s = i3.find((a) => a.type.name === Pe);
@@ -35272,7 +35272,7 @@ Actual: ` + p3.attribValue
35272
35272
  t === l && n.push({ from: o, to: o + r.nodeSize });
35273
35273
  }
35274
35274
  }), n;
35275
- }, Gy = (t, e, n, r = []) => {
35275
+ }, Yy = (t, e, n, r = []) => {
35276
35276
  const o = [], i3 = [], s = /* @__PURE__ */ new Set();
35277
35277
  return t.descendants((a, l) => {
35278
35278
  (a.marks?.filter((d) => d.type.name === Pe)).forEach((d) => {
@@ -35318,7 +35318,7 @@ Actual: ` + p3.attribValue
35318
35318
  "w:id": e,
35319
35319
  internal: n
35320
35320
  };
35321
- }, Zy = (t, e, n, r) => {
35321
+ }, Gy = (t, e, n, r) => {
35322
35322
  const o = [], i3 = [];
35323
35323
  t.descendants((s, a) => {
35324
35324
  const { type: l } = s;
@@ -35345,7 +35345,7 @@ Actual: ` + p3.attribValue
35345
35345
  }), i3.sort((s, a) => a.start - s.start).forEach(({ start: s, end: a }) => {
35346
35346
  e.delete(s, a);
35347
35347
  });
35348
- }, Qy = (t = {}) => {
35348
+ }, Zy = (t = {}) => {
35349
35349
  const { before: e = [], after: n = [] } = t, r = new Set(e.map((h3) => h3.type)), o = new Set(n.map((h3) => h3.type)), i3 = [...o].filter((h3) => !r.has(h3)), s = [...r].filter((h3) => !o.has(h3)), a = [], l = i3.filter((h3) => !["textStyle", "commentMark"].includes(h3));
35350
35350
  l.length && a.push(`Added formatting: ${l.join(", ")}`);
35351
35351
  const c3 = s.filter((h3) => !["textStyle", "commentMark"].includes(h3));
@@ -35364,11 +35364,11 @@ Actual: ` + p3.attribValue
35364
35364
  }
35365
35365
  }
35366
35366
  }), f3.length && a.push(`Modified text style: ${f3.join(", ")}`), a.length ? a.join(". ") : "No formatting changes.";
35367
- }, eb = ({ activeThreadId: t, threadId: e, isInternal: n, editor: r }) => {
35367
+ }, Qy = ({ activeThreadId: t, threadId: e, isInternal: n, editor: r }) => {
35368
35368
  if (!r.options.isInternal && n) return "transparent";
35369
35369
  const o = he$2.getState(r.state), i3 = n ? o.internalColor : o.externalColor, s = t == e ? "44" : "22";
35370
35370
  return `${i3}${s}`;
35371
- }, on$3 = new Cp$2("paginationPlugin"), tb = async (t) => {
35371
+ }, on$3 = new Cp$2("paginationPlugin"), eb = async (t) => {
35372
35372
  if (!t.converter) return;
35373
35373
  const e = { headers: {}, footers: {} }, n = t.converter.headerIds, r = t.converter.footerIds;
35374
35374
  for (let o in n) {
@@ -35434,7 +35434,7 @@ Actual: ` + p3.attribValue
35434
35434
  }), n({ height: d, sectionEditor: c3, sectionContainer: r });
35435
35435
  });
35436
35436
  });
35437
- }), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), nb = Q$1.create({
35437
+ }), _s = [yr$2, Ri$2, Pi$2], he$2 = new Cp$2("comments"), tb = Q$1.create({
35438
35438
  name: "comments",
35439
35439
  addCommands() {
35440
35440
  return {
@@ -35509,7 +35509,7 @@ Actual: ` + p3.attribValue
35509
35509
  allCommentPositions: d.allCommentPositions
35510
35510
  };
35511
35511
  const f3 = o.getMeta(de), p3 = i3.trackedChanges;
35512
- f3 && (i3.trackedChanges = ob(
35512
+ f3 && (i3.trackedChanges = rb(
35513
35513
  f3,
35514
35514
  p3,
35515
35515
  a,
@@ -35518,7 +35518,7 @@ Actual: ` + p3.attribValue
35518
35518
  const h3 = d?.type === "setActiveComment";
35519
35519
  if (!o.docChanged && o.selectionSet || h3) {
35520
35520
  const { selection: m } = o;
35521
- let g = rb(a.doc, m);
35521
+ let g = nb(a.doc, m);
35522
35522
  if (h3 && (g = d.activeThreadId), n !== g) {
35523
35523
  n = g;
35524
35524
  const w = {
@@ -35562,7 +35562,7 @@ Actual: ` + p3.attribValue
35562
35562
  });
35563
35563
  const z = L3.internal;
35564
35564
  S || (S = n === x3);
35565
- let $ = eb({ activeThreadId: n, threadId: x3, isInternal: z, editor: t });
35565
+ let $ = Qy({ activeThreadId: n, threadId: x3, isInternal: z, editor: t });
35566
35566
  const j = V.inline(w, w + b.nodeSize, {
35567
35567
  style: `background-color: ${$};`,
35568
35568
  "data-thread-id": x3,
@@ -35624,7 +35624,7 @@ Actual: ` + p3.attribValue
35624
35624
  const s = t[e];
35625
35625
  s.start = Math.min(s.start, n), s.end = Math.max(s.end, n + o.nodeSize), s.bounds.top = Math.min(s.bounds.top, r.top), s.bounds.bottom = Math.max(s.bounds.bottom, r.bottom);
35626
35626
  }
35627
- }, rb = (t, e) => {
35627
+ }, nb = (t, e) => {
35628
35628
  if (!e) return;
35629
35629
  const { $from: n, $to: r } = e;
35630
35630
  if (n.pos !== r.pos || !t.nodeAt(n.pos)) return;
@@ -35676,7 +35676,7 @@ Actual: ` + p3.attribValue
35676
35676
  mark: c3
35677
35677
  });
35678
35678
  }), s;
35679
- }, ob = (t, e, n, r) => {
35679
+ }, rb = (t, e, n, r) => {
35680
35680
  const {
35681
35681
  insertedMark: o,
35682
35682
  deletionMark: i3,
@@ -35697,7 +35697,7 @@ Actual: ` + p3.attribValue
35697
35697
  if (h3.marks.find((b) => b.type.name === Pi$2))
35698
35698
  return f3 = [h3], false;
35699
35699
  });
35700
- const p3 = sb({
35700
+ const p3 = ib({
35701
35701
  documentId: r.options.documentId,
35702
35702
  event: d ? "add" : "update",
35703
35703
  marks: {
@@ -35710,7 +35710,7 @@ Actual: ` + p3.attribValue
35710
35710
  newEditorState: n
35711
35711
  });
35712
35712
  return p3 && r.emit("commentsUpdate", p3), l;
35713
- }, ib = ({
35713
+ }, ob = ({
35714
35714
  state: t,
35715
35715
  node: e,
35716
35716
  mark: n,
@@ -35720,9 +35720,9 @@ Actual: ` + p3.attribValue
35720
35720
  deletionNodes: s = []
35721
35721
  }) => {
35722
35722
  let a = "", l = "";
35723
- if (o === yr$2 && (a = e?.text ?? ""), o === Pi$2 && (a = Qy(n.attrs)), (o === Ri$2 || i3) && (l = e?.text ?? "", i3)) {
35723
+ if (o === yr$2 && (a = e?.text ?? ""), o === Pi$2 && (a = Zy(n.attrs)), (o === Ri$2 || i3) && (l = e?.text ?? "", i3)) {
35724
35724
  let { id: c3 } = r.deletionMark.attrs;
35725
- l = ab(t.doc, (u) => {
35725
+ l = sb(t.doc, (u) => {
35726
35726
  const { marks: f3 = [] } = u, p3 = f3.filter((m) => _s.includes(m.type.name));
35727
35727
  if (!p3.length) return false;
35728
35728
  if (p3.find((m) => m.attrs.id === c3)) return true;
@@ -35732,7 +35732,7 @@ Actual: ` + p3.attribValue
35732
35732
  deletionText: l,
35733
35733
  trackedChangeText: a
35734
35734
  };
35735
- }, sb = ({ event: t, marks: e, deletionNodes: n, nodes: r, newEditorState: o, documentId: i3 }) => {
35735
+ }, ib = ({ event: t, marks: e, deletionNodes: n, nodes: r, newEditorState: o, documentId: i3 }) => {
35736
35736
  const s = e.insertedMark || e.deletionMark || e.formatMark, { type: a, attrs: l } = s, { name: c3 } = a, { author: d, authorEmail: u, date: f3 } = l, p3 = l.id, h3 = r[0], m = !!(e.insertedMark && e.deletionMark);
35737
35737
  let g;
35738
35738
  o.doc.descendants((y, S) => {
@@ -35740,7 +35740,7 @@ Actual: ` + p3.attribValue
35740
35740
  if (!A.length) return;
35741
35741
  if (A.find((x3) => x3.attrs.id === p3) && (g = y), g) return false;
35742
35742
  });
35743
- const { deletionText: b, trackedChangeText: w } = ib({
35743
+ const { deletionText: b, trackedChangeText: w } = ob({
35744
35744
  state: o,
35745
35745
  node: g || h3,
35746
35746
  mark: s,
@@ -35765,7 +35765,7 @@ Actual: ` + p3.attribValue
35765
35765
  };
35766
35766
  return t === "add" ? C.event = Tp$2.ADD : t === "update" && (C.event = Tp$2.UPDATE), C;
35767
35767
  };
35768
- function ab(t, e) {
35768
+ function sb(t, e) {
35769
35769
  let n = null;
35770
35770
  return t.descendants((r, o) => {
35771
35771
  if (e(r) && (n = { node: r, pos: o }), n) return false;
@@ -35807,8 +35807,8 @@ Actual: ` + p3.attribValue
35807
35807
  m.deletionNodes = w, m.deletionMark = g, o.appendMapping(b);
35808
35808
  }
35809
35809
  r.setMeta(de, m), r.setMeta(he$2, { type: "force" });
35810
+ }, ab = () => {
35810
35811
  }, lb = () => {
35811
- }, cb = () => {
35812
35812
  }, Id$1 = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i3, user: s, date: a }) => {
35813
35813
  const l = {};
35814
35814
  i3.nodesBetween(n.from, n.to, (c3, d) => {
@@ -35943,7 +35943,7 @@ Actual: ` + p3.attribValue
35943
35943
  i3.setSelection(new tt$3(i3.doc.resolve(c3)));
35944
35944
  }
35945
35945
  return t.storedMarksSet && i3.setStoredMarks(t.storedMarks), t.scrolledIntoView && i3.scrollIntoView(), i3;
35946
- }, db = (t) => {
35946
+ }, cb = (t) => {
35947
35947
  const { state: e } = t, { dispatch: n } = t.view, { tr: r } = e;
35948
35948
  if (n)
35949
35949
  return e.doc.descendants((o, i3) => {
@@ -35964,13 +35964,13 @@ Actual: ` + p3.attribValue
35964
35964
  });
35965
35965
  }
35966
35966
  }), n(r), true;
35967
- }, ub = {
35968
- initial: db
35967
+ }, db = {
35968
+ initial: cb
35969
35969
  }, nl$1 = (t) => {
35970
- if (t === "initial" || t === "0.4.14") return Object.values(ub);
35970
+ if (t === "initial" || t === "0.4.14") return Object.values(db);
35971
35971
  };
35972
35972
  var en$1, gs, M, Ld$1, Fd$1, Wi$1, Ui$1, Bd$1, qi$1, Ki$1, Xi$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, es$1, ts$1, zd$1, Gn$2, Zn$2, _d$1, Vd$1, $d$1, Hd$1;
35973
- const Gs = class Gs2 extends hg {
35973
+ const Gs = class Gs2 extends pg {
35974
35974
  constructor(n) {
35975
35975
  super();
35976
35976
  ft(this, M);
@@ -36335,7 +36335,7 @@ Actual: ` + p3.attribValue
36335
36335
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36336
36336
  */
36337
36337
  processCollaborationMigrations() {
36338
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.14"), !this.options.ydoc) return;
36338
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.15"), !this.options.ydoc) return;
36339
36339
  let r = this.options.ydoc.getMap("meta").get("version");
36340
36340
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36341
36341
  const o = nl$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -36396,7 +36396,7 @@ Actual: ` + p3.attribValue
36396
36396
  * Creates extension service.
36397
36397
  */
36398
36398
  Xi$1 = function() {
36399
- const n = ["extension", "node", "mark"], r = [jy, Vy, Wy, Hy], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
36399
+ const n = ["extension", "node", "mark"], r = [Hy, _y, jy, $y], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
36400
36400
  (s) => n.includes(s?.type)
36401
36401
  );
36402
36402
  this.extensionService = _i$1.create(i3, o, this);
@@ -36440,7 +36440,7 @@ Actual: ` + p3.attribValue
36440
36440
  let n;
36441
36441
  try {
36442
36442
  const { mode: r, fragment: o, isHeadless: i3, content: s, loadFromSchema: a } = this.options;
36443
- r === "docx" ? (n = vd$1(this.converter, this.schema, this), n = D(this, M, Vd$1).call(this, n), this.options.html && (n = D(this, M, es$1).call(this, this.options.html)), o && i3 && (n = rg(o, this.schema))) : (r === "text" || r === "html") && (a ? n = this.schema.nodeFromJSON(s) : s ? n = D(this, M, es$1).call(this, s) : n = this.schema.topNodeType.createAndFill());
36443
+ r === "docx" ? (n = vd$1(this.converter, this.schema, this), n = D(this, M, Vd$1).call(this, n), this.options.html && (n = D(this, M, es$1).call(this, this.options.html)), o && i3 && (n = ng(o, this.schema))) : (r === "text" || r === "html") && (a ? n = this.schema.nodeFromJSON(s) : s ? n = D(this, M, es$1).call(this, s) : n = this.schema.topNodeType.createAndFill());
36444
36444
  } catch (r) {
36445
36445
  console.error(r), this.emit("contentError", { editor: this, error: r });
36446
36446
  }
@@ -36491,7 +36491,7 @@ Actual: ` + p3.attribValue
36491
36491
  if (this.options.isHeadless || !this.extensionService) return;
36492
36492
  if (this.options.extensions.find((r) => r.name === "pagination") && this.options.pagination) {
36493
36493
  console.debug("🔗 [super-editor] Initializing pagination");
36494
- const r = await tb(this);
36494
+ const r = await eb(this);
36495
36495
  this.storage.pagination.sectionData = r;
36496
36496
  const { state: o, dispatch: i3 } = this.view, s = o.tr.setMeta(on$3, { isReadyToInit: true });
36497
36497
  i3(s);
@@ -36548,7 +36548,7 @@ Actual: ` + p3.attribValue
36548
36548
  schema: this.schema,
36549
36549
  doc: n
36550
36550
  }), { tr: o, doc: i3 } = r;
36551
- return Zy(i3, o, this.schema, this.converter), r.apply(o).doc;
36551
+ return Gy(i3, o, this.schema, this.converter), r.apply(o).doc;
36552
36552
  }, /**
36553
36553
  * Prepare the document for export. Any necessary pre-export processing to the state
36554
36554
  * can happen here.
@@ -36561,7 +36561,7 @@ Actual: ` + p3.attribValue
36561
36561
  doc: this.state.doc,
36562
36562
  plugins: this.state.plugins
36563
36563
  }), { tr: o, doc: i3 } = r;
36564
- return Gy(i3, o, this.schema, n), r.apply(o).doc.toJSON();
36564
+ return Yy(i3, o, this.schema, n), r.apply(o).doc.toJSON();
36565
36565
  }, /**
36566
36566
  * Destroy collaboration provider and ydoc
36567
36567
  */
@@ -36915,14 +36915,14 @@ Actual: ` + p3.attribValue
36915
36915
  };
36916
36916
  }
36917
36917
  });
36918
- function fb(t = {}) {
36918
+ function ub(t = {}) {
36919
36919
  return new vp$2({
36920
36920
  view(e) {
36921
- return new pb(e, t);
36921
+ return new fb(e, t);
36922
36922
  }
36923
36923
  });
36924
36924
  }
36925
- class pb {
36925
+ class fb {
36926
36926
  constructor(e, n) {
36927
36927
  var r;
36928
36928
  this.editorView = e, this.cursorPos = null, this.element = null, this.timeout = -1, this.width = (r = n.width) !== null && r !== void 0 ? r : 1, this.color = n.color === false ? void 0 : n.color || "black", this.class = n.class, this.handlers = ["dragover", "dragend", "drop", "dragleave"].map((o) => {
@@ -37004,7 +37004,7 @@ Actual: ` + p3.attribValue
37004
37004
  };
37005
37005
  },
37006
37006
  addPmPlugins() {
37007
- return [fb(this.options)];
37007
+ return [ub(this.options)];
37008
37008
  }
37009
37009
  });
37010
37010
  let re$2 = class re2 extends ve$1 {
@@ -37046,7 +37046,7 @@ Actual: ` + p3.attribValue
37046
37046
  */
37047
37047
  static valid(e) {
37048
37048
  let n = e.parent;
37049
- if (n.isTextblock || !hb(e) || !mb(e))
37049
+ if (n.isTextblock || !pb(e) || !hb(e))
37050
37050
  return false;
37051
37051
  let r = n.type.spec.allowGapCursor;
37052
37052
  if (r != null)
@@ -37107,7 +37107,7 @@ Actual: ` + p3.attribValue
37107
37107
  return re$2.valid(n) ? new re$2(n) : ve$1.near(n);
37108
37108
  }
37109
37109
  }
37110
- function hb(t) {
37110
+ function pb(t) {
37111
37111
  for (let e = t.depth; e >= 0; e--) {
37112
37112
  let n = t.index(e), r = t.node(e);
37113
37113
  if (n == 0) {
@@ -37124,7 +37124,7 @@ Actual: ` + p3.attribValue
37124
37124
  }
37125
37125
  return true;
37126
37126
  }
37127
- function mb(t) {
37127
+ function hb(t) {
37128
37128
  for (let e = t.depth; e >= 0; e--) {
37129
37129
  let n = t.indexAfter(e), r = t.node(e);
37130
37130
  if (n == r.childCount) {
@@ -37141,20 +37141,20 @@ Actual: ` + p3.attribValue
37141
37141
  }
37142
37142
  return true;
37143
37143
  }
37144
- function gb() {
37144
+ function mb() {
37145
37145
  return new vp$2({
37146
37146
  props: {
37147
- decorations: vb,
37147
+ decorations: wb,
37148
37148
  createSelectionBetween(t, e, n) {
37149
37149
  return e.pos == n.pos && re$2.valid(n) ? new re$2(n) : null;
37150
37150
  },
37151
- handleClick: bb,
37152
- handleKeyDown: yb,
37153
- handleDOMEvents: { beforeinput: wb }
37151
+ handleClick: yb,
37152
+ handleKeyDown: gb,
37153
+ handleDOMEvents: { beforeinput: bb }
37154
37154
  }
37155
37155
  });
37156
37156
  }
37157
- const yb = Ns({
37157
+ const gb = Ns({
37158
37158
  ArrowLeft: Xr$1("horiz", -1),
37159
37159
  ArrowRight: Xr$1("horiz", 1),
37160
37160
  ArrowUp: Xr$1("vert", -1),
@@ -37173,7 +37173,7 @@ Actual: ` + p3.attribValue
37173
37173
  return c3 ? (o && o(r.tr.setSelection(new re$2(c3))), true) : false;
37174
37174
  };
37175
37175
  }
37176
- function bb(t, e, n) {
37176
+ function yb(t, e, n) {
37177
37177
  if (!t || !t.editable)
37178
37178
  return false;
37179
37179
  let r = t.state.doc.resolve(e);
@@ -37182,7 +37182,7 @@ Actual: ` + p3.attribValue
37182
37182
  let o = t.posAtCoords({ left: n.clientX, top: n.clientY });
37183
37183
  return o && o.inside > -1 && Ge$1.isSelectable(t.state.doc.nodeAt(o.inside)) ? false : (t.dispatch(t.state.tr.setSelection(new re$2(r))), true);
37184
37184
  }
37185
- function wb(t, e) {
37185
+ function bb(t, e) {
37186
37186
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof re$2))
37187
37187
  return false;
37188
37188
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
@@ -37194,17 +37194,17 @@ Actual: ` + p3.attribValue
37194
37194
  let i3 = t.state.tr.replace(n.pos, n.pos, new ue(o, 0, 0));
37195
37195
  return i3.setSelection(tt$3.near(i3.doc.resolve(n.pos + 1))), t.dispatch(i3), false;
37196
37196
  }
37197
- function vb(t) {
37197
+ function wb(t) {
37198
37198
  if (!(t.selection instanceof re$2))
37199
37199
  return null;
37200
37200
  let e = document.createElement("div");
37201
37201
  return e.className = "ProseMirror-gapcursor", F.create(t.doc, [V.widget(t.selection.head, e, { key: "gapcursor" })]);
37202
37202
  }
37203
- const kb = Q$1.create({
37203
+ const vb = Q$1.create({
37204
37204
  name: "gapCursor",
37205
37205
  addPmPlugins() {
37206
37206
  return [
37207
- gb()
37207
+ mb()
37208
37208
  ];
37209
37209
  },
37210
37210
  extendNodeSchema(t) {
@@ -37216,7 +37216,7 @@ Actual: ` + p3.attribValue
37216
37216
  })) ?? null
37217
37217
  };
37218
37218
  }
37219
- }), Cb = new Cp$2("collaboration"), Sb = Q$1.create({
37219
+ }), kb = new Cp$2("collaboration"), Cb = Q$1.create({
37220
37220
  name: "collaboration",
37221
37221
  priority: 1e3,
37222
37222
  addOptions() {
@@ -37230,9 +37230,9 @@ Actual: ` + p3.attribValue
37230
37230
  addPmPlugins() {
37231
37231
  if (!this.editor.options.ydoc) return [];
37232
37232
  this.options.ydoc = this.editor.options.ydoc;
37233
- const t = Mb();
37234
- Ab(this.options.ydoc, this.editor), Ob(this.options.ydoc, this.editor, this);
37235
- const [e, n] = xb(this.options.ydoc, this.editor);
37233
+ const t = xb();
37234
+ Mb(this.options.ydoc, this.editor), Ab(this.options.ydoc, this.editor, this);
37235
+ const [e, n] = Sb(this.options.ydoc, this.editor);
37236
37236
  this.options.fragment = n;
37237
37237
  const r = this.options.ydoc.getMap("media");
37238
37238
  return r.observe((o) => {
@@ -37246,8 +37246,8 @@ Actual: ` + p3.attribValue
37246
37246
  },
37247
37247
  addCommands() {
37248
37248
  return {
37249
- undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyUndo"), _t.getState(e).undoManager.undoStack.length === 0 ? false : n ? cg(e) : true),
37250
- redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyRedo"), _t.getState(e).undoManager.redoStack.length === 0 ? false : n ? dg(e) : true),
37249
+ undo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyUndo"), _t.getState(e).undoManager.undoStack.length === 0 ? false : n ? lg(e) : true),
37250
+ redo: () => ({ tr: t, state: e, dispatch: n }) => (t.setMeta("preventDispatch", true), t.setMeta("inputType", "historyRedo"), _t.getState(e).undoManager.redoStack.length === 0 ? false : n ? cg(e) : true),
37251
37251
  addImageToCollaboration: ({ mediaPath: t, fileData: e }) => () => {
37252
37252
  if (!this.options.ydoc) return;
37253
37253
  this.options.ydoc.getMap("media").set(t, e);
@@ -37261,14 +37261,14 @@ Actual: ` + p3.attribValue
37261
37261
  "Mod-y": () => this.editor.commands.redo()
37262
37262
  };
37263
37263
  }
37264
- }), xb = (t, e) => {
37264
+ }), Sb = (t, e) => {
37265
37265
  const n = t.getXmlFragment("supereditor");
37266
- return [jm(n, { onFirstRender: () => {
37266
+ return [Hm(n, { onFirstRender: () => {
37267
37267
  if (!e.options.isNewFile) return;
37268
37268
  const o = t.getMap("meta");
37269
37269
  o.set("docx", e.options.content), o.set("fonts", e.options.fonts);
37270
37270
  } }), n];
37271
- }, Mb = () => pg(), Ab = (t, e) => {
37271
+ }, xb = () => fg(), Mb = (t, e) => {
37272
37272
  const n = t.getMap("meta");
37273
37273
  n.observe((r) => {
37274
37274
  const o = n.get("lockedBy"), i3 = n.get("locked");
@@ -37276,7 +37276,7 @@ Actual: ` + p3.attribValue
37276
37276
  const s = o?.email !== e.options.user?.email, a = e.options.editable !== !i3;
37277
37277
  !s || !a || (i3 ? console.debug("--- Locking editor ---", o, e.options.user) : console.debug("--- Unlocking editor ---", o), e.setEditable(!i3), e.emit("locked", { editor: e, isLocked: i3, lockedBy: o }));
37278
37278
  });
37279
- }, Ob = (t, e, n) => {
37279
+ }, Ab = (t, e, n) => {
37280
37280
  const r = e.options.collaborationProvider;
37281
37281
  if (!r) return;
37282
37282
  const o = () => {
@@ -37289,7 +37289,7 @@ Actual: ` + p3.attribValue
37289
37289
  return;
37290
37290
  }
37291
37291
  r.on("synced", o);
37292
- }, Tb = Q$1.create({
37292
+ }, Ob = Q$1.create({
37293
37293
  name: "collaborationCursor",
37294
37294
  priority: 999,
37295
37295
  addOptions() {
@@ -37308,9 +37308,9 @@ Actual: ` + p3.attribValue
37308
37308
  },
37309
37309
  addPmPlugins() {
37310
37310
  const { collaborationProvider: t = null } = this.editor.options;
37311
- return t ? [lg(t.awareness, { cursorBuilder: Db })] : [];
37311
+ return t ? [ag(t.awareness, { cursorBuilder: Tb })] : [];
37312
37312
  }
37313
- }), Db = (t) => {
37313
+ }), Tb = (t) => {
37314
37314
  const e = document.createElement("span");
37315
37315
  e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
37316
37316
  const n = document.createElement("div");
@@ -37336,7 +37336,7 @@ Actual: ` + p3.attribValue
37336
37336
  name: "text",
37337
37337
  group: "inline",
37338
37338
  inline: true
37339
- }), Nb = J$1.create({
37339
+ }), Db = J$1.create({
37340
37340
  name: "run",
37341
37341
  group: "inline",
37342
37342
  content: "text*",
@@ -37356,7 +37356,7 @@ Actual: ` + p3.attribValue
37356
37356
  }
37357
37357
  });
37358
37358
  function Mo$1(t) {
37359
- return new Mg({
37359
+ return new xg({
37360
37360
  match: t.match,
37361
37361
  handler: ({
37362
37362
  state: e,
@@ -37449,7 +37449,7 @@ Actual: ` + p3.attribValue
37449
37449
  ];
37450
37450
  }
37451
37451
  });
37452
- function Eb(t = {}) {
37452
+ function Nb(t = {}) {
37453
37453
  return new vp$2({
37454
37454
  key: new Cp$2("orderedListSync"),
37455
37455
  appendTransaction: (e, n, r) => {
@@ -37486,16 +37486,16 @@ Actual: ` + p3.attribValue
37486
37486
  }
37487
37487
  });
37488
37488
  }
37489
- function Ib() {
37489
+ function Eb() {
37490
37490
  return Math.floor(Math.random() * 4294967295).toString();
37491
37491
  }
37492
- function Pb(t) {
37492
+ function Ib(t) {
37493
37493
  return new vp$2({
37494
37494
  key: new Cp$2("orderedListMarker"),
37495
37495
  appendTransaction: (e, n, r) => {
37496
37496
  if (!(e.some((c3) => c3.docChanged) && !n.doc.eq(r.doc)))
37497
37497
  return;
37498
- let { doc: i3, tr: s } = r, a = Rb(r);
37498
+ let { doc: i3, tr: s } = r, a = Pb(r);
37499
37499
  if (!a.size)
37500
37500
  return;
37501
37501
  let l = false;
@@ -37505,14 +37505,14 @@ Actual: ` + p3.attribValue
37505
37505
  u.node.attrs.syncId;
37506
37506
  let h3 = u.node.childCount !== f3.length;
37507
37507
  if (p3) {
37508
- f3.forEach((y) => Fb(s, y)), l = true;
37508
+ f3.forEach((y) => Lb(s, y)), l = true;
37509
37509
  return;
37510
37510
  }
37511
37511
  if (h3) {
37512
- let y = Lb({ state: r, list: u });
37512
+ let y = Rb({ state: r, list: u });
37513
37513
  y.length && (f3 = y);
37514
37514
  }
37515
- let m = f3[0], g = Bb({ state: r, listItems: f3 }), b = eu$1(), w = {
37515
+ let m = f3[0], g = Fb({ state: r, listItems: f3 }), b = eu$1(), w = {
37516
37516
  lvlText: m.node.attrs.lvlText ?? b.lvlText,
37517
37517
  listLevel: m.node.attrs.listLevel ?? b.listLevel,
37518
37518
  listNumberingType: m.node.attrs.listNumberingType ?? b.listNumberingType
@@ -37544,7 +37544,7 @@ Actual: ` + p3.attribValue
37544
37544
  }
37545
37545
  });
37546
37546
  }
37547
- function Rb(t) {
37547
+ function Pb(t) {
37548
37548
  let { doc: e } = t, n = /* @__PURE__ */ new Map();
37549
37549
  return e.descendants((r, o) => {
37550
37550
  let { attrs: i3 } = r, s = r.type.name === "listItem", a = !!i3.listLevel?.length, l = !!i3.lvlText, c3 = i3.listNumberingType && i3.listNumberingType !== "bullet";
@@ -37554,7 +37554,7 @@ Actual: ` + p3.attribValue
37554
37554
  }
37555
37555
  }), n;
37556
37556
  }
37557
- function Lb({ state: t, list: e }) {
37557
+ function Rb({ state: t, list: e }) {
37558
37558
  let { doc: n } = t, r = [];
37559
37559
  return n.descendants((o, i3) => {
37560
37560
  let s = o.type.name === "listItem", a = n.resolve(i3);
@@ -37568,7 +37568,7 @@ Actual: ` + p3.attribValue
37568
37568
  listNumberingType: n
37569
37569
  };
37570
37570
  }
37571
- function Fb(t, e) {
37571
+ function Lb(t, e) {
37572
37572
  let { pos: n, node: r } = e;
37573
37573
  t.setNodeMarkup(n, void 0, {
37574
37574
  ...r.attrs,
@@ -37580,7 +37580,7 @@ Actual: ` + p3.attribValue
37580
37580
  function ol$1(t, e) {
37581
37581
  return t.length === e.length && t.every((n, r) => n === e[r]);
37582
37582
  }
37583
- function Bb({ state: t, listItems: e }) {
37583
+ function Fb({ state: t, listItems: e }) {
37584
37584
  let { doc: n } = t, r = e[0], { lvlText: o, listLevel: i3, listNumberingType: s } = r.node.attrs, a = eu$1({
37585
37585
  lvlText: "%1.",
37586
37586
  listLevel: [1],
@@ -37715,7 +37715,7 @@ Actual: ` + p3.attribValue
37715
37715
  return false;
37716
37716
  let { $from: p3 } = r.selection, h3 = r.doc.nodeAt(f3), m = p3.after(), g = r.doc.nodeAt(m), b = h3?.type.name === this.name, w = g?.type.name === this.name;
37717
37717
  if (b && w) {
37718
- let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, A = S || Ib();
37718
+ let C = h3.attrs.order || 1, y = h3.childCount, S = h3.attrs.syncId, k = y + C, A = S || Eb();
37719
37719
  r.setNodeMarkup(m, void 0, {
37720
37720
  ...g.attrs,
37721
37721
  order: k,
@@ -37737,7 +37737,7 @@ Actual: ` + p3.attribValue
37737
37737
  };
37738
37738
  },
37739
37739
  addPmPlugins() {
37740
- return [Pb(this.editor), Eb()];
37740
+ return [Ib(this.editor), Nb()];
37741
37741
  },
37742
37742
  addInputRules() {
37743
37743
  let t = Mo$1({
@@ -37758,19 +37758,19 @@ Actual: ` + p3.attribValue
37758
37758
  t
37759
37759
  ];
37760
37760
  }
37761
- }), zb = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
37762
- const r = Hb[n];
37761
+ }), Bb = ({ listLevel: t, lvlText: e, listNumberingType: n }) => {
37762
+ const r = $b[n];
37763
37763
  return r ? r(t, e) : null;
37764
- }, _b = (t, e) => $s(t, e, String), nu$1 = (t, e) => $s(t, e, Wb), Vb = (t, e) => nu$1(t, e).toLowerCase(), $b = (t, e) => ru$1(t, e).toLowerCase(), ru$1 = (t, e) => $s(t, e, (n) => Ub(n)), Hb = {
37765
- decimal: _b,
37766
- lowerRoman: Vb,
37764
+ }, zb = (t, e) => $s(t, e, String), nu$1 = (t, e) => $s(t, e, jb), _b = (t, e) => nu$1(t, e).toLowerCase(), Vb = (t, e) => ru$1(t, e).toLowerCase(), ru$1 = (t, e) => $s(t, e, (n) => Wb(n)), $b = {
37765
+ decimal: zb,
37766
+ lowerRoman: _b,
37767
37767
  upperRoman: nu$1,
37768
- lowerLetter: $b,
37768
+ lowerLetter: Vb,
37769
37769
  upperLetter: ru$1
37770
- }, jb = (t, e) => t.reduce((n, r, o) => n.replace(`%${o + 1}`, r), e), $s = (t, e, n) => {
37770
+ }, Hb = (t, e) => t.reduce((n, r, o) => n.replace(`%${o + 1}`, r), e), $s = (t, e, n) => {
37771
37771
  const r = t.map(n);
37772
- return jb(r, e);
37773
- }, Wb = (t) => {
37772
+ return Hb(r, e);
37773
+ }, jb = (t) => {
37774
37774
  const e = [
37775
37775
  { value: 1e3, numeral: "M" },
37776
37776
  { value: 900, numeral: "CM" },
@@ -37791,7 +37791,7 @@ Actual: ` + p3.attribValue
37791
37791
  for (; t >= r; )
37792
37792
  n += o, t -= r;
37793
37793
  return n;
37794
- }, Ub = (t) => {
37794
+ }, Wb = (t) => {
37795
37795
  let e = "";
37796
37796
  const n = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
37797
37797
  for (; t > 0; ) {
@@ -37800,7 +37800,7 @@ Actual: ` + p3.attribValue
37800
37800
  }
37801
37801
  return e;
37802
37802
  };
37803
- function qb(t = {}) {
37803
+ function Ub(t = {}) {
37804
37804
  return new vp$2({
37805
37805
  key: new Cp$2("styledListMarker"),
37806
37806
  state: {
@@ -37833,11 +37833,11 @@ Actual: ` + p3.attribValue
37833
37833
  let i3 = Bs(n, (s) => s.type.name === "listItem");
37834
37834
  return i3.length && i3.forEach(({ node: s, pos: a }) => {
37835
37835
  let l = St$1("textStyle", n.type.schema), c3 = [...e.filter((b) => b.type === l)];
37836
- if (Xb(s) && e.length) {
37836
+ if (Kb(s) && e.length) {
37837
37837
  const b = e.filter((w) => w.type === l);
37838
37838
  c3.push(...b);
37839
37839
  } else {
37840
- const b = Kb(s, n, l);
37840
+ const b = qb(s, n, l);
37841
37841
  c3.push(...b);
37842
37842
  }
37843
37843
  let u = null, f3 = null;
@@ -37875,7 +37875,7 @@ Actual: ` + p3.attribValue
37875
37875
  n.push(a);
37876
37876
  }), n;
37877
37877
  }
37878
- function Kb(t, e, n) {
37878
+ function qb(t, e, n) {
37879
37879
  let r = [];
37880
37880
  return t.forEach((o) => {
37881
37881
  o.type.name === "paragraph" && o.forEach((i3) => {
@@ -37887,7 +37887,7 @@ Actual: ` + p3.attribValue
37887
37887
  });
37888
37888
  }), r;
37889
37889
  }
37890
- function Xb(t) {
37890
+ function Kb(t) {
37891
37891
  return t.childCount === 1 && t.firstChild?.type.name === "paragraph" && t.firstChild?.content.size === 0;
37892
37892
  }
37893
37893
  const ou$1 = J$1.create({
@@ -37918,7 +37918,7 @@ Actual: ` + p3.attribValue
37918
37918
  let { listLevel: e, listNumberingType: n, lvlText: r } = t;
37919
37919
  if (!!!e?.length || !r)
37920
37920
  return {};
37921
- let i3 = zb({
37921
+ let i3 = Bb({
37922
37922
  listLevel: e,
37923
37923
  lvlText: r,
37924
37924
  listNumberingType: n
@@ -38010,12 +38010,12 @@ Actual: ` + p3.attribValue
38010
38010
  };
38011
38011
  },
38012
38012
  addPmPlugins() {
38013
- return [qb()];
38013
+ return [Ub()];
38014
38014
  }
38015
- }), io$2 = new Cp$2("linkedStyles"), Jb = Q$1.create({
38015
+ }), io$2 = new Cp$2("linkedStyles"), Xb = Q$1.create({
38016
38016
  name: "linkedStyles",
38017
38017
  addPmPlugins() {
38018
- return [Yb(this.editor)];
38018
+ return [Jb(this.editor)];
38019
38019
  },
38020
38020
  addCommands() {
38021
38021
  return {
@@ -38035,7 +38035,7 @@ Actual: ` + p3.attribValue
38035
38035
  }
38036
38036
  };
38037
38037
  }
38038
- }), Yb = (t) => new vp$2({
38038
+ }), Jb = (t) => new vp$2({
38039
38039
  key: io$2,
38040
38040
  state: {
38041
38041
  init(e, { doc: n, selection: r }) {
@@ -38067,14 +38067,14 @@ Actual: ` + p3.attribValue
38067
38067
  return t.descendants((o, i3) => {
38068
38068
  const { name: s } = o.type;
38069
38069
  if (o?.attrs?.styleId && (r = o.attrs.styleId), s === "paragraph" && !o.attrs?.styleId && (r = null), s !== "text") return;
38070
- const a = Zb(r, e);
38070
+ const a = Gb(r, e);
38071
38071
  if (!a) return;
38072
- const l = Gb(a, o);
38072
+ const l = Yb(a, o);
38073
38073
  if (!l) return;
38074
38074
  const c3 = V.inline(i3, i3 + o.nodeSize, { style: l });
38075
38075
  n.push(c3);
38076
38076
  }), F.create(t, n);
38077
- }, Gb = (t, e, n = true) => {
38077
+ }, Yb = (t, e, n = true) => {
38078
38078
  if (!t?.definition?.styles) return "";
38079
38079
  const r = {};
38080
38080
  return Object.entries(t.definition.styles).forEach(([o, i3]) => {
@@ -38090,7 +38090,7 @@ Actual: ` + p3.attribValue
38090
38090
  a.push({ key: c3.type.name, value: c3.attrs[s] });
38091
38091
  }), !a.find((c3) => c3.key === s))
38092
38092
  if (s === "spacing" && n) {
38093
- const c3 = Qb(i3);
38093
+ const c3 = Zb(i3);
38094
38094
  Object.entries(c3).forEach(([d, u]) => {
38095
38095
  r[d] = u;
38096
38096
  });
@@ -38099,20 +38099,20 @@ Actual: ` + p3.attribValue
38099
38099
  c3 && (r["margin-left"] = c3 + "px"), d && (r["margin-right"] = d + "px"), u && (r["text-indent"] = u + "px");
38100
38100
  } else s === "bold" ? r["font-weight"] = "bold" : r[s] = i3;
38101
38101
  }), Object.entries(r).map(([o, i3]) => `${o}: ${i3}`).join(";");
38102
- }, Zb = (t, e = []) => e.find((n) => n.id === t), Qb = (t) => {
38102
+ }, Gb = (t, e = []) => e.find((n) => n.id === t), Zb = (t) => {
38103
38103
  const { lineSpaceBefore: e, lineSpaceAfter: n, line: r } = t;
38104
38104
  return {
38105
38105
  "margin-top": e + "px",
38106
38106
  "margin-bottom": n + "px",
38107
38107
  ...Lp$1(r, "")
38108
38108
  };
38109
- }, e0 = (t) => {
38109
+ }, Qb = (t) => {
38110
38110
  const { lineSpaceBefore: e, lineSpaceAfter: n } = t;
38111
38111
  return `
38112
38112
  ${e ? `margin-top: ${e}px;` : ""}
38113
38113
  ${n ? `margin-bottom: ${n}px;` : ""}
38114
38114
  `.trim();
38115
- }, t0 = (t) => {
38115
+ }, e0 = (t) => {
38116
38116
  let e = "";
38117
38117
  for (const n of t)
38118
38118
  switch (n.type) {
@@ -38150,7 +38150,7 @@ Actual: ` + p3.attribValue
38150
38150
  renderDOM: (t) => {
38151
38151
  const { spacing: e } = t;
38152
38152
  if (!e) return {};
38153
- const n = e0(e);
38153
+ const n = Qb(e);
38154
38154
  return n ? { style: n } : {};
38155
38155
  }
38156
38156
  },
@@ -38168,7 +38168,7 @@ Actual: ` + p3.attribValue
38168
38168
  renderDOM: (t) => {
38169
38169
  const { marksAttrs: e } = t;
38170
38170
  if (!e?.length) return {};
38171
- const n = t0(e);
38171
+ const n = e0(e);
38172
38172
  return n ? { style: n } : {};
38173
38173
  }
38174
38174
  },
@@ -38248,7 +38248,7 @@ Actual: ` + p3.attribValue
38248
38248
  {}
38249
38249
  );
38250
38250
  }
38251
- }), n0 = J$1.create({
38251
+ }), t0 = J$1.create({
38252
38252
  name: "commentRangeStart",
38253
38253
  group: "inline",
38254
38254
  inline: true,
@@ -38279,7 +38279,7 @@ Actual: ` + p3.attribValue
38279
38279
  }
38280
38280
  };
38281
38281
  }
38282
- }), r0 = J$1.create({
38282
+ }), n0 = J$1.create({
38283
38283
  name: "commentRangeEnd",
38284
38284
  group: "inline",
38285
38285
  inline: true,
@@ -38306,7 +38306,7 @@ Actual: ` + p3.attribValue
38306
38306
  }
38307
38307
  };
38308
38308
  }
38309
- }), o0 = J$1.create({
38309
+ }), r0 = J$1.create({
38310
38310
  name: "commentReference",
38311
38311
  group: "inline",
38312
38312
  inline: true,
@@ -38333,7 +38333,7 @@ Actual: ` + p3.attribValue
38333
38333
  }
38334
38334
  };
38335
38335
  }
38336
- }), i0 = Le$1.create({
38336
+ }), o0 = Le$1.create({
38337
38337
  name: Pe,
38338
38338
  group: "comments",
38339
38339
  excludes: "",
@@ -38358,7 +38358,7 @@ Actual: ` + p3.attribValue
38358
38358
  renderDOM({ htmlAttributes: t }) {
38359
38359
  return [Pe, N.mergeAttributes(this.options.htmlAttributes, t)];
38360
38360
  }
38361
- }), s0 = J$1.create({
38361
+ }), i0 = J$1.create({
38362
38362
  name: "tab",
38363
38363
  group: "inline",
38364
38364
  inline: true,
@@ -38422,21 +38422,21 @@ Actual: ` + p3.attribValue
38422
38422
  try {
38423
38423
  t.doc.nodesBetween(o - s - 1, o - 1, (d, u) => {
38424
38424
  if (d.isText && d.textContent !== " ") {
38425
- const f3 = a0(e, u);
38425
+ const f3 = s0(e, u);
38426
38426
  a += f3;
38427
38427
  }
38428
38428
  });
38429
38429
  } catch {
38430
38430
  return;
38431
38431
  }
38432
- const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 = l0(i3);
38432
+ const l = i3.nodeBefore?.type.name === "tab" ? ci$1 : ci$1 - a % ci$1, c3 = a0(i3);
38433
38433
  n.push(
38434
38434
  V.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
38435
38435
  );
38436
38436
  }
38437
38437
  }), n;
38438
38438
  };
38439
- function a0(t, e) {
38439
+ function s0(t, e) {
38440
38440
  const n = t.nodeDOM(e);
38441
38441
  if (n) {
38442
38442
  const r = document.createRange();
@@ -38444,11 +38444,11 @@ Actual: ` + p3.attribValue
38444
38444
  }
38445
38445
  return 0;
38446
38446
  }
38447
- function l0(t) {
38447
+ function a0(t) {
38448
38448
  const i3 = t.node(1).firstChild.marks.find((a) => a.type.name === "textStyle");
38449
38449
  return `${(parseInt(i3?.attrs.fontSize) * 1.333 || 16) * 1.1}px`;
38450
38450
  }
38451
- const au$1 = J$1.create({
38451
+ const l0 = J$1.create({
38452
38452
  name: "lineBreak",
38453
38453
  group: "inline",
38454
38454
  inline: true,
@@ -38458,7 +38458,7 @@ Actual: ` + p3.attribValue
38458
38458
  renderDOM() {
38459
38459
  return ["br", {}, 0];
38460
38460
  }
38461
- }), lu$1 = J$1.create({
38461
+ }), au$1 = J$1.create({
38462
38462
  name: "hardBreak",
38463
38463
  group: "inline",
38464
38464
  inline: true,
@@ -38546,7 +38546,7 @@ Actual: ` + p3.attribValue
38546
38546
  }
38547
38547
  r = Math.ceil(Math.max(o, i3)), t.style.setProperty("--table-border-width", `${r || n}px`);
38548
38548
  }
38549
- const pl$1 = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), cu$1 = ({
38549
+ const pl$1 = (t, e = null) => e ? t.createChecked(null, e) : t.createAndFill(), lu$1 = ({
38550
38550
  size: t = 0.66665,
38551
38551
  color: e = "#000000"
38552
38552
  } = {}) => ({
@@ -38575,7 +38575,7 @@ Actual: ` + p3.attribValue
38575
38575
  const u = r && d === 0 ? s : a;
38576
38576
  l.push(i3.tableRow.createChecked(null, u));
38577
38577
  }
38578
- const c3 = cu$1();
38578
+ const c3 = lu$1();
38579
38579
  return i3.table.createChecked({ borders: c3 }, l);
38580
38580
  };
38581
38581
  var ns$1, rs$1;
@@ -38836,7 +38836,7 @@ Actual: ` + p3.attribValue
38836
38836
  function Hs(t, e) {
38837
38837
  return t.depth == e.depth && t.pos >= e.start(-1) && t.pos <= e.end(-1);
38838
38838
  }
38839
- function du$1(t, e, n) {
38839
+ function cu$1(t, e, n) {
38840
38840
  const r = t.node(-1), o = oe$1.get(r), i3 = t.start(-1), s = o.nextCell(t.pos - i3, e, n);
38841
38841
  return s == null ? null : t.node(0).resolve(i3 + s);
38842
38842
  }
@@ -38844,7 +38844,7 @@ Actual: ` + p3.attribValue
38844
38844
  const r = { ...t, colspan: t.colspan - n };
38845
38845
  return r.colwidth && (r.colwidth = r.colwidth.slice(), r.colwidth.splice(e, n), r.colwidth.some((o) => o > 0) || (r.colwidth = null)), r;
38846
38846
  }
38847
- function uu$1(t, e, n = 1) {
38847
+ function du$1(t, e, n = 1) {
38848
38848
  const r = { ...t, colspan: t.colspan + n };
38849
38849
  if (r.colwidth) {
38850
38850
  r.colwidth = r.colwidth.slice();
@@ -39025,12 +39025,12 @@ Actual: ` + p3.attribValue
39025
39025
  };
39026
39026
  X$1.prototype.visible = false;
39027
39027
  ve$1.jsonID("cell", X$1);
39028
- var w0 = class fu2 {
39028
+ var w0 = class uu2 {
39029
39029
  constructor(e, n) {
39030
39030
  this.anchor = e, this.head = n;
39031
39031
  }
39032
39032
  map(e) {
39033
- return new fu2(e.map(this.anchor), e.map(this.head));
39033
+ return new uu2(e.map(this.anchor), e.map(this.head));
39034
39034
  }
39035
39035
  resolve(e) {
39036
39036
  const n = e.resolve(this.anchor), r = e.resolve(this.head);
@@ -39090,7 +39090,7 @@ Actual: ` + p3.attribValue
39090
39090
  return i3 && (e || (e = t.tr)).setSelection(i3), e;
39091
39091
  }
39092
39092
  var x0 = new Cp$2("fix-tables");
39093
- function pu$1(t, e, n, r) {
39093
+ function fu$1(t, e, n, r) {
39094
39094
  const o = t.childCount, i3 = e.childCount;
39095
39095
  e: for (let s = 0, a = 0; s < i3; s++) {
39096
39096
  const l = e.child(s);
@@ -39099,15 +39099,15 @@ Actual: ` + p3.attribValue
39099
39099
  a = c3 + 1, n += l.nodeSize;
39100
39100
  continue e;
39101
39101
  }
39102
- r(l, n), a < o && t.child(a).sameMarkup(l) ? pu$1(t.child(a), l, n + 1, r) : l.nodesBetween(0, l.content.size, r, n + 1), n += l.nodeSize;
39102
+ r(l, n), a < o && t.child(a).sameMarkup(l) ? fu$1(t.child(a), l, n + 1, r) : l.nodesBetween(0, l.content.size, r, n + 1), n += l.nodeSize;
39103
39103
  }
39104
39104
  }
39105
- function hu$1(t, e) {
39105
+ function pu$1(t, e) {
39106
39106
  let n;
39107
39107
  const r = (o, i3) => {
39108
39108
  o.type.spec.tableRole == "table" && (n = M0(t, o, i3, n));
39109
39109
  };
39110
- return e ? e.doc != t.doc && pu$1(e.doc, t.doc, 0, r) : t.doc.descendants(r), n;
39110
+ return e ? e.doc != t.doc && fu$1(e.doc, t.doc, 0, r) : t.doc.descendants(r), n;
39111
39111
  }
39112
39112
  function M0(t, e, n, r) {
39113
39113
  const o = oe$1.get(e);
@@ -39175,7 +39175,7 @@ Actual: ` + p3.attribValue
39175
39175
  e.$headCell.pos - o
39176
39176
  ) : i3.findCell(n.pos - o), tableStart: o, map: i3, table: r };
39177
39177
  }
39178
- function mu$1(t, { map: e, tableStart: n, table: r }, o) {
39178
+ function hu$1(t, { map: e, tableStart: n, table: r }, o) {
39179
39179
  let i3 = o > 0 ? -1 : 0;
39180
39180
  b0(e, r, o + i3) && (i3 = o == 0 || o == e.width ? null : 0);
39181
39181
  for (let s = 0; s < e.height; s++) {
@@ -39185,7 +39185,7 @@ Actual: ` + p3.attribValue
39185
39185
  t.setNodeMarkup(
39186
39186
  t.mapping.map(n + l),
39187
39187
  null,
39188
- uu$1(c3.attrs, o - e.colCount(l))
39188
+ du$1(c3.attrs, o - e.colCount(l))
39189
39189
  ), s += c3.attrs.rowspan - 1;
39190
39190
  } else {
39191
39191
  const l = i3 == null ? we(r.type.schema).cell : r.nodeAt(e.map[a + i3]).type, c3 = e.positionAt(s, o, r);
@@ -39198,7 +39198,7 @@ Actual: ` + p3.attribValue
39198
39198
  if (!Ye$2(t)) return false;
39199
39199
  if (e) {
39200
39200
  const n = at$1(t);
39201
- e(mu$1(t.tr, n, n.left));
39201
+ e(hu$1(t.tr, n, n.left));
39202
39202
  }
39203
39203
  return true;
39204
39204
  }
@@ -39206,7 +39206,7 @@ Actual: ` + p3.attribValue
39206
39206
  if (!Ye$2(t)) return false;
39207
39207
  if (e) {
39208
39208
  const n = at$1(t);
39209
- e(mu$1(t.tr, n, n.right));
39209
+ e(hu$1(t.tr, n, n.right));
39210
39210
  }
39211
39211
  return true;
39212
39212
  }
@@ -39250,7 +39250,7 @@ Actual: ` + p3.attribValue
39250
39250
  return false;
39251
39251
  return true;
39252
39252
  }
39253
- function gu$1(t, { map: e, tableStart: n, table: r }, o) {
39253
+ function mu$1(t, { map: e, tableStart: n, table: r }, o) {
39254
39254
  var i3;
39255
39255
  let s = n;
39256
39256
  for (let c3 = 0; c3 < o; c3++) s += r.child(c3).nodeSize;
@@ -39274,7 +39274,7 @@ Actual: ` + p3.attribValue
39274
39274
  if (!Ye$2(t)) return false;
39275
39275
  if (e) {
39276
39276
  const n = at$1(t);
39277
- e(gu$1(t.tr, n, n.top));
39277
+ e(mu$1(t.tr, n, n.top));
39278
39278
  }
39279
39279
  return true;
39280
39280
  }
@@ -39282,7 +39282,7 @@ Actual: ` + p3.attribValue
39282
39282
  if (!Ye$2(t)) return false;
39283
39283
  if (e) {
39284
39284
  const n = at$1(t);
39285
- e(gu$1(t.tr, n, n.bottom));
39285
+ e(mu$1(t.tr, n, n.bottom));
39286
39286
  }
39287
39287
  return true;
39288
39288
  }
@@ -39368,7 +39368,7 @@ Actual: ` + p3.attribValue
39368
39368
  if (l == null || c3 == null)
39369
39369
  return true;
39370
39370
  if (i3.setNodeMarkup(l + r.tableStart, null, {
39371
- ...uu$1(
39371
+ ...du$1(
39372
39372
  c3.attrs,
39373
39373
  c3.attrs.colspan,
39374
39374
  r.right - r.left - c3.attrs.colspan
@@ -39827,7 +39827,7 @@ Actual: ` + p3.attribValue
39827
39827
  ve$1.near(i3.$headCell, e)
39828
39828
  );
39829
39829
  if (t != "horiz" && !i3.empty) return false;
39830
- const s = yu$1(o, t, e);
39830
+ const s = gu$1(o, t, e);
39831
39831
  if (s == null) return false;
39832
39832
  if (t == "horiz")
39833
39833
  return so$2(
@@ -39836,7 +39836,7 @@ Actual: ` + p3.attribValue
39836
39836
  ve$1.near(n.doc.resolve(i3.head + e), e)
39837
39837
  );
39838
39838
  {
39839
- const a = n.doc.resolve(s), l = du$1(a, t, e);
39839
+ const a = n.doc.resolve(s), l = cu$1(a, t, e);
39840
39840
  let c3;
39841
39841
  return l ? c3 = ve$1.near(l, 1) : e < 0 ? c3 = ve$1.near(n.doc.resolve(a.before(-1)), -1) : c3 = ve$1.near(n.doc.resolve(a.after(-1)), 1), so$2(n, r, c3);
39842
39842
  }
@@ -39850,11 +39850,11 @@ Actual: ` + p3.attribValue
39850
39850
  if (i3 instanceof X$1)
39851
39851
  s = i3;
39852
39852
  else {
39853
- const l = yu$1(o, t, e);
39853
+ const l = gu$1(o, t, e);
39854
39854
  if (l == null) return false;
39855
39855
  s = new X$1(n.doc.resolve(l));
39856
39856
  }
39857
- const a = du$1(s.$headCell, t, e);
39857
+ const a = cu$1(s.$headCell, t, e);
39858
39858
  return a ? so$2(
39859
39859
  n,
39860
39860
  r,
@@ -39934,7 +39934,7 @@ Actual: ` + p3.attribValue
39934
39934
  }
39935
39935
  t.root.addEventListener("mouseup", s), t.root.addEventListener("dragstart", s), t.root.addEventListener("mousemove", a);
39936
39936
  }
39937
- function yu$1(t, e, n) {
39937
+ function gu$1(t, e, n) {
39938
39938
  if (!(t.state.selection instanceof tt$3)) return null;
39939
39939
  const { $head: r } = t.state.selection;
39940
39940
  for (let o = r.depth - 1; o >= 0; o--) {
@@ -40084,14 +40084,14 @@ Actual: ` + p3.attribValue
40084
40084
  if (c3.colCount(a.pos - d) + a.nodeAfter.attrs.colspan - 1 == c3.width - 1)
40085
40085
  return;
40086
40086
  }
40087
- bu$1(t, s);
40087
+ yu$1(t, s);
40088
40088
  }
40089
40089
  }
40090
40090
  }
40091
40091
  function ew(t) {
40092
40092
  if (!t.editable) return;
40093
40093
  const e = Ee$2.getState(t.state);
40094
- e && e.activeHandle > -1 && !e.dragging && bu$1(t, -1);
40094
+ e && e.activeHandle > -1 && !e.dragging && yu$1(t, -1);
40095
40095
  }
40096
40096
  function tw(t, e, n, r) {
40097
40097
  var o;
@@ -40167,7 +40167,7 @@ Actual: ` + p3.attribValue
40167
40167
  const r = e.clientX - t.startX;
40168
40168
  return Math.max(n, t.startWidth + r);
40169
40169
  }
40170
- function bu$1(t, e) {
40170
+ function yu$1(t, e) {
40171
40171
  t.dispatch(
40172
40172
  t.state.tr.setMeta(Ee$2, { setHandle: e })
40173
40173
  );
@@ -40259,7 +40259,7 @@ Actual: ` + p3.attribValue
40259
40259
  appendTransaction(e, n, r) {
40260
40260
  return S0(
40261
40261
  r,
40262
- hu$1(r, n),
40262
+ pu$1(r, n),
40263
40263
  t
40264
40264
  );
40265
40265
  }
@@ -40273,7 +40273,7 @@ Actual: ` + p3.attribValue
40273
40273
  if (i3.type.name === "table") return false;
40274
40274
  ["tableCell", "tableHeader"].includes(i3.type.name) && (n += 1);
40275
40275
  }), n === e.ranges.length ? (t.commands.deleteTable(), true) : false;
40276
- }, wu$1 = ({
40276
+ }, bu$1 = ({
40277
40277
  size: t = 0.66665,
40278
40278
  color: e = "#000000"
40279
40279
  } = {}) => ({
@@ -40281,7 +40281,7 @@ Actual: ` + p3.attribValue
40281
40281
  left: { size: t, color: e },
40282
40282
  bottom: { size: t, color: e },
40283
40283
  right: { size: t, color: e }
40284
- }), vu$1 = J$1.create({
40284
+ }), wu$1 = J$1.create({
40285
40285
  name: "table",
40286
40286
  content: "tableRow+",
40287
40287
  group: "block",
@@ -40392,7 +40392,7 @@ Actual: ` + p3.attribValue
40392
40392
  setCellAttr: (t, e) => ({ state: n, dispatch: r }) => B0(t, e)(n, r),
40393
40393
  goToNextCell: () => ({ state: t, dispatch: e }) => bl$1(1)(t, e),
40394
40394
  goToPreviousCell: () => ({ state: t, dispatch: e }) => bl$1(-1)(t, e),
40395
- fixTables: () => ({ state: t, dispatch: e }) => (e && hu$1(t), true),
40395
+ fixTables: () => ({ state: t, dispatch: e }) => (e && pu$1(t), true),
40396
40396
  setCellSelection: (t) => ({ tr: e, dispatch: n }) => (n && e.setSelection(X$1.create(e.doc, t.anchorCell, t.headCell)), true),
40397
40397
  deleteCellAndTableBorders: () => ({ chain: t, state: e, tr: n }) => {
40398
40398
  if (!Md$1(e))
@@ -40404,11 +40404,11 @@ Actual: ` + p3.attribValue
40404
40404
  return e.doc.nodesBetween(o, i3, (s, a) => {
40405
40405
  ["tableCell", "tableHeader"].includes(s.type.name) && n.setNodeMarkup(a, void 0, {
40406
40406
  ...s.attrs,
40407
- borders: wu$1({ size: 0 })
40407
+ borders: bu$1({ size: 0 })
40408
40408
  });
40409
40409
  }), n.setNodeMarkup(r.pos, void 0, {
40410
40410
  ...r.node.attrs,
40411
- borders: cu$1({ size: 0 })
40411
+ borders: lu$1({ size: 0 })
40412
40412
  }), true;
40413
40413
  }
40414
40414
  };
@@ -40450,7 +40450,7 @@ Actual: ` + p3.attribValue
40450
40450
  }))
40451
40451
  };
40452
40452
  }
40453
- }), ku$1 = J$1.create({
40453
+ }), vu$1 = J$1.create({
40454
40454
  name: "tableHeader",
40455
40455
  content: "block+",
40456
40456
  tableRole: "header_cell",
@@ -40486,7 +40486,7 @@ Actual: ` + p3.attribValue
40486
40486
  renderDOM({ htmlAttributes: t }) {
40487
40487
  return ["th", N.mergeAttributes(this.options.htmlAttributes, t), 0];
40488
40488
  }
40489
- }), Cu$1 = J$1.create({
40489
+ }), ku$1 = J$1.create({
40490
40490
  name: "tableRow",
40491
40491
  content: "(tableCell | tableHeader)*",
40492
40492
  tableRole: "row",
@@ -40510,7 +40510,7 @@ Actual: ` + p3.attribValue
40510
40510
  renderDOM({ htmlAttributes: t }) {
40511
40511
  return ["tr", N.mergeAttributes(this.options.htmlAttributes, t), 0];
40512
40512
  }
40513
- }), Su$1 = J$1.create({
40513
+ }), Cu$1 = J$1.create({
40514
40514
  name: "tableCell",
40515
40515
  content: "block+",
40516
40516
  tableRole: "cell",
@@ -40568,7 +40568,7 @@ Actual: ` + p3.attribValue
40568
40568
  }
40569
40569
  },
40570
40570
  borders: {
40571
- default: () => wu$1(),
40571
+ default: () => bu$1(),
40572
40572
  renderDOM({ borders: t }) {
40573
40573
  return t ? { style: ["top", "right", "bottom", "left"].map((r) => {
40574
40574
  const o = t?.[r];
@@ -40741,7 +40741,7 @@ Actual: ` + p3.attribValue
40741
40741
  content: o
40742
40742
  };
40743
40743
  };
40744
- function xu$1(t) {
40744
+ function Su$1(t) {
40745
40745
  let e = [];
40746
40746
  return !t.steps.length || t.meta && !Object.keys(t.meta).every((n) => ["inputType", "uiEvent", "paste"].includes(n)) || ["historyUndo", "historyRedo"].includes(t.getMeta("inputType")) || ["drop"].includes(t.getMeta("uiEvent")) || t.getMeta("fieldAnnotationUpdate") === true || t.steps.forEach((n, r) => {
40747
40747
  if (n instanceof Ie$2 && n.from !== n.to) {
@@ -40752,8 +40752,8 @@ Actual: ` + p3.attribValue
40752
40752
  }
40753
40753
  }), e;
40754
40754
  }
40755
- function Mu$1(t, e) {
40756
- let n = xu$1(e);
40755
+ function xu$1(t, e) {
40756
+ let n = Su$1(e);
40757
40757
  n.length > 0 && setTimeout(() => {
40758
40758
  t.emit("fieldAnnotationDeleted", {
40759
40759
  editor: t,
@@ -40774,7 +40774,7 @@ Actual: ` + p3.attribValue
40774
40774
  return null;
40775
40775
  },
40776
40776
  apply(r, o) {
40777
- return Mu$1(e, r), o;
40777
+ return xu$1(e, r), o;
40778
40778
  }
40779
40779
  },
40780
40780
  props: {
@@ -40905,10 +40905,10 @@ Actual: ` + p3.attribValue
40905
40905
  findFieldAnnotationsBetween: co$2,
40906
40906
  findFieldAnnotationsByFieldId: lo$2,
40907
40907
  findFirstFieldAnnotationByFieldId: gw,
40908
- findRemovedFieldAnnotations: xu$1,
40908
+ findRemovedFieldAnnotations: Su$1,
40909
40909
  getAllFieldAnnotations: Pt$1,
40910
40910
  getAllFieldAnnotationsWithRect: pw,
40911
- trackFieldAnnotationsDeletion: Mu$1
40911
+ trackFieldAnnotationsDeletion: xu$1
40912
40912
  }, Symbol.toStringTag, { value: "Module" }));
40913
40913
  function ls$1(t, e, n) {
40914
40914
  return Math.min(Math.max(t, n), e);
@@ -40984,7 +40984,7 @@ Actual: ` + p3.attribValue
40984
40984
  };
40985
40985
  return `#${i3(e)}${i3(n)}${i3(r)}${o < 1 ? i3(Math.round(o * 255)) : ""}`;
40986
40986
  }
40987
- const cs$1 = "annotation", Au$1 = "annotation-content", Ou$1 = J$1.create({
40987
+ const cs$1 = "annotation", Mu$1 = "annotation-content", Au$1 = J$1.create({
40988
40988
  name: "fieldAnnotation",
40989
40989
  group: "inline",
40990
40990
  inline: true,
@@ -40997,7 +40997,7 @@ Actual: ` + p3.attribValue
40997
40997
  class: cs$1
40998
40998
  },
40999
40999
  annotationClass: cs$1,
41000
- annotationContentClass: Au$1,
41000
+ annotationContentClass: Mu$1,
41001
41001
  types: ["text", "image", "signature", "checkbox", "html", "link"],
41002
41002
  // annotation types
41003
41003
  defaultType: "text",
@@ -41510,7 +41510,7 @@ Actual: ` + p3.attribValue
41510
41510
  }), Jk = (t, e) => {
41511
41511
  let r = Ao$1.getState(t)?.find(null, null, (o) => o.id === e);
41512
41512
  return r?.length ? r[0].from : null;
41513
- }, Tu$1 = J$1.create({
41513
+ }, Ou$1 = J$1.create({
41514
41514
  name: "image",
41515
41515
  group: "inline",
41516
41516
  inline: true,
@@ -41617,7 +41617,7 @@ Actual: ` + p3.attribValue
41617
41617
  renderDOM({ htmlAttributes: t }) {
41618
41618
  return ["a", N.mergeAttributes(this.options.htmlAttributes, t)];
41619
41619
  }
41620
- }), Du$1 = J$1.create({
41620
+ }), Tu$1 = J$1.create({
41621
41621
  name: "mention",
41622
41622
  group: "inline",
41623
41623
  inline: true,
@@ -41691,7 +41691,7 @@ Actual: ` + p3.attribValue
41691
41691
  renderDOM({ htmlAttributes: t }) {
41692
41692
  return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
41693
41693
  }
41694
- }), Nu$1 = Le$1.create({
41694
+ }), Du$1 = Le$1.create({
41695
41695
  name: "textStyle",
41696
41696
  addOptions() {
41697
41697
  return {
@@ -41703,7 +41703,7 @@ Actual: ` + p3.attribValue
41703
41703
  {
41704
41704
  tag: "span",
41705
41705
  getAttrs: (t) => {
41706
- const e = t.hasAttribute("style"), n = t.classList.contains(cs$1) || t.classList.contains(Au$1);
41706
+ const e = t.hasAttribute("style"), n = t.classList.contains(cs$1) || t.classList.contains(Mu$1);
41707
41707
  return !e || n ? false : {};
41708
41708
  }
41709
41709
  }
@@ -41720,7 +41720,7 @@ Actual: ` + p3.attribValue
41720
41720
  }
41721
41721
  };
41722
41722
  }
41723
- }), Eu$1 = Le$1.create({
41723
+ }), Nu$1 = Le$1.create({
41724
41724
  name: "bold",
41725
41725
  addOptions() {
41726
41726
  return {
@@ -41752,7 +41752,7 @@ Actual: ` + p3.attribValue
41752
41752
  "Mod-B": () => this.editor.commands.toggleBold()
41753
41753
  };
41754
41754
  }
41755
- }), Iu$1 = Le$1.create({
41755
+ }), Eu$1 = Le$1.create({
41756
41756
  name: "italic",
41757
41757
  addOptions() {
41758
41758
  return {
@@ -41784,7 +41784,7 @@ Actual: ` + p3.attribValue
41784
41784
  "Mod-I": () => this.editor.commands.toggleItalic()
41785
41785
  };
41786
41786
  }
41787
- }), Pu$1 = Le$1.create({
41787
+ }), Iu$1 = Le$1.create({
41788
41788
  name: "underline",
41789
41789
  addOptions() {
41790
41790
  return {
@@ -41822,7 +41822,7 @@ Actual: ` + p3.attribValue
41822
41822
  "Mod-U": () => this.editor.commands.toggleUnderline()
41823
41823
  };
41824
41824
  }
41825
- }), Ru$1 = Le$1.create({
41825
+ }), Pu$1 = Le$1.create({
41826
41826
  name: "highlight",
41827
41827
  addOptions() {
41828
41828
  return {
@@ -41860,7 +41860,7 @@ Actual: ` + p3.attribValue
41860
41860
  "Mod-Shift-h": () => this.editor.commands.toggleHighlight()
41861
41861
  };
41862
41862
  }
41863
- }), Lu$1 = Le$1.create({
41863
+ }), Ru$1 = Le$1.create({
41864
41864
  name: "strike",
41865
41865
  addOptions() {
41866
41866
  return {
@@ -41889,7 +41889,7 @@ Actual: ` + p3.attribValue
41889
41889
  "Mod-Shift-s": () => this.editor.commands.toggleStrike()
41890
41890
  };
41891
41891
  }
41892
- }), Fu$1 = Le$1.create({
41892
+ }), Lu$1 = Le$1.create({
41893
41893
  name: "link",
41894
41894
  priority: 1e3,
41895
41895
  keepOnSplit: false,
@@ -41948,7 +41948,7 @@ Actual: ` + p3.attribValue
41948
41948
  o && n.push(o);
41949
41949
  }), !t || t.replace(Lw, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
41950
41950
  }
41951
- const Fw = "track-insert", Bu$1 = Le$1.create({
41951
+ const Fw = "track-insert", Fu$1 = Le$1.create({
41952
41952
  name: yr$2,
41953
41953
  group: "track",
41954
41954
  inclusive: false,
@@ -41997,7 +41997,7 @@ Actual: ` + p3.attribValue
41997
41997
  renderDOM({ htmlAttributes: t }) {
41998
41998
  return ["span", N.mergeAttributes(this.options.htmlAttributes, t), 0];
41999
41999
  }
42000
- }), Bw = "track-delete", zu$1 = Le$1.create({
42000
+ }), Bw = "track-delete", Bu$1 = Le$1.create({
42001
42001
  name: Ri$2,
42002
42002
  group: "track",
42003
42003
  inclusive: false,
@@ -42058,18 +42058,18 @@ Actual: ` + p3.attribValue
42058
42058
  }, Yk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
42059
42059
  __proto__: null,
42060
42060
  addMarkStep: Id$1,
42061
- documentHelpers: Xy,
42061
+ documentHelpers: Ky,
42062
42062
  findTrackedMarkBetween: Fs,
42063
42063
  getTrackChanges: zs,
42064
42064
  markDeletion: Sd$1,
42065
42065
  markInsertion: Cd$1,
42066
- markWrapping: lb,
42066
+ markWrapping: ab,
42067
42067
  parseFormatList: ds$1,
42068
42068
  removeMarkStep: Pd$1,
42069
- replaceAroundStep: cb,
42069
+ replaceAroundStep: lb,
42070
42070
  replaceStep: Ed$1,
42071
42071
  trackedTransaction: Rd$1
42072
- }, Symbol.toStringTag, { value: "Module" })), zw = "track-format", _u$1 = Le$1.create({
42072
+ }, Symbol.toStringTag, { value: "Module" })), zw = "track-format", zu$1 = Le$1.create({
42073
42073
  name: Pi$2,
42074
42074
  group: "track",
42075
42075
  inclusive: false,
@@ -42302,7 +42302,7 @@ Actual: ` + p3.attribValue
42302
42302
  };
42303
42303
  },
42304
42304
  addPmPlugins() {
42305
- return [Jy()];
42305
+ return [Xy()];
42306
42306
  }
42307
42307
  }), Dl$1 = (t, e) => {
42308
42308
  const n = zs(t), r = n.findIndex(({ mark: l }) => l.attrs.id === e);
@@ -42340,9 +42340,9 @@ Actual: ` + p3.attribValue
42340
42340
  })];
42341
42341
  }
42342
42342
  });
42343
- var Te$1 = "top", We$2 = "bottom", Ue = "right", De$1 = "left", js = "auto", Ir = [Te$1, We$2, Ue, De$1], Pn$2 = "start", Cr$1 = "end", $w = "clippingParents", Vu$1 = "viewport", Jn$2 = "popper", Hw = "reference", Nl$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
42343
+ var Te$1 = "top", We$2 = "bottom", Ue = "right", De$1 = "left", js = "auto", Ir = [Te$1, We$2, Ue, De$1], Pn$2 = "start", Cr$1 = "end", $w = "clippingParents", _u$1 = "viewport", Jn$2 = "popper", Hw = "reference", Nl$1 = /* @__PURE__ */ Ir.reduce(function(t, e) {
42344
42344
  return t.concat([e + "-" + Pn$2, e + "-" + Cr$1]);
42345
- }, []), $u$1 = /* @__PURE__ */ [].concat(Ir, [js]).reduce(function(t, e) {
42345
+ }, []), Vu$1 = /* @__PURE__ */ [].concat(Ir, [js]).reduce(function(t, e) {
42346
42346
  return t.concat([e, e + "-" + Pn$2, e + "-" + Cr$1]);
42347
42347
  }, []), jw = "beforeRead", Ww = "read", Uw = "afterRead", qw = "beforeMain", Kw = "main", Xw = "afterMain", Jw = "beforeWrite", Yw = "write", Gw = "afterWrite", Zw = [jw, Ww, Uw, qw, Kw, Xw, Jw, Yw, Gw];
42348
42348
  function st$1(t) {
@@ -42405,7 +42405,7 @@ Actual: ` + p3.attribValue
42405
42405
  });
42406
42406
  };
42407
42407
  }
42408
- const Hu$1 = {
42408
+ const $u$1 = {
42409
42409
  name: "applyStyles",
42410
42410
  enabled: true,
42411
42411
  phase: "write",
@@ -42423,14 +42423,14 @@ Actual: ` + p3.attribValue
42423
42423
  return e.brand + "/" + e.version;
42424
42424
  }).join(" ") : navigator.userAgent;
42425
42425
  }
42426
- function ju$1() {
42426
+ function Hu$1() {
42427
42427
  return !/^((?!chrome|android).)*safari/i.test(us$1());
42428
42428
  }
42429
42429
  function Ln$2(t, e, n) {
42430
42430
  e === void 0 && (e = false), n === void 0 && (n = false);
42431
42431
  var r = t.getBoundingClientRect(), o = 1, i3 = 1;
42432
42432
  e && je$1(t) && (o = t.offsetWidth > 0 && Rn$2(r.width) / t.offsetWidth || 1, i3 = t.offsetHeight > 0 && Rn$2(r.height) / t.offsetHeight || 1);
42433
- var s = un$2(t) ? Re$1(t) : window, a = s.visualViewport, l = !ju$1() && n, c3 = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i3, u = r.width / o, f3 = r.height / i3;
42433
+ var s = un$2(t) ? Re$1(t) : window, a = s.visualViewport, l = !Hu$1() && n, c3 = (r.left + (l && a ? a.offsetLeft : 0)) / o, d = (r.top + (l && a ? a.offsetTop : 0)) / i3, u = r.width / o, f3 = r.height / i3;
42434
42434
  return {
42435
42435
  width: u,
42436
42436
  height: f3,
@@ -42451,7 +42451,7 @@ Actual: ` + p3.attribValue
42451
42451
  height: r
42452
42452
  };
42453
42453
  }
42454
- function Wu$1(t, e) {
42454
+ function ju$1(t, e) {
42455
42455
  var n = e.getRootNode && e.getRootNode();
42456
42456
  if (t.contains(e))
42457
42457
  return true;
@@ -42524,7 +42524,7 @@ Actual: ` + p3.attribValue
42524
42524
  var r = ir$1(t, e, n);
42525
42525
  return r > n ? n : r;
42526
42526
  }
42527
- function Uu$1() {
42527
+ function Wu$1() {
42528
42528
  return {
42529
42529
  top: 0,
42530
42530
  right: 0,
@@ -42532,10 +42532,10 @@ Actual: ` + p3.attribValue
42532
42532
  left: 0
42533
42533
  };
42534
42534
  }
42535
- function qu$1(t) {
42536
- return Object.assign({}, Uu$1(), t);
42535
+ function Uu$1(t) {
42536
+ return Object.assign({}, Wu$1(), t);
42537
42537
  }
42538
- function Ku$1(t, e) {
42538
+ function qu$1(t, e) {
42539
42539
  return e.reduce(function(n, r) {
42540
42540
  return n[r] = t, n;
42541
42541
  }, {});
@@ -42543,7 +42543,7 @@ Actual: ` + p3.attribValue
42543
42543
  var ov = function(e, n) {
42544
42544
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
42545
42545
  placement: n.placement
42546
- })) : e, qu$1(typeof e != "number" ? e : Ku$1(e, Ir));
42546
+ })) : e, Uu$1(typeof e != "number" ? e : qu$1(e, Ir));
42547
42547
  };
42548
42548
  function iv(t) {
42549
42549
  var e, n = t.state, r = t.name, o = t.options, i3 = n.elements.arrow, s = n.modifiersData.popperOffsets, a = rt$1(n.placement), l = qs(a), c3 = [De$1, Ue].indexOf(a) >= 0, d = c3 ? "height" : "width";
@@ -42554,7 +42554,7 @@ Actual: ` + p3.attribValue
42554
42554
  }
42555
42555
  function sv(t) {
42556
42556
  var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
42557
- o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || Wu$1(e.elements.popper, o) && (e.elements.arrow = o));
42557
+ o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || ju$1(e.elements.popper, o) && (e.elements.arrow = o));
42558
42558
  }
42559
42559
  const av = {
42560
42560
  name: "arrow",
@@ -42711,7 +42711,7 @@ Actual: ` + p3.attribValue
42711
42711
  var n = Re$1(t), r = Wt$2(t), o = n.visualViewport, i3 = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
42712
42712
  if (o) {
42713
42713
  i3 = o.width, s = o.height;
42714
- var c3 = ju$1();
42714
+ var c3 = Hu$1();
42715
42715
  (c3 || !c3 && e === "fixed") && (a = o.offsetLeft, l = o.offsetTop);
42716
42716
  }
42717
42717
  return {
@@ -42734,13 +42734,13 @@ Actual: ` + p3.attribValue
42734
42734
  var e = Ct$1(t), n = e.overflow, r = e.overflowX, o = e.overflowY;
42735
42735
  return /auto|scroll|overlay|hidden/.test(n + o + r);
42736
42736
  }
42737
- function Xu$1(t) {
42738
- return ["html", "body", "#document"].indexOf(st$1(t)) >= 0 ? t.ownerDocument.body : je$1(t) && Js(t) ? t : Xu$1(_o$1(t));
42737
+ function Ku$1(t) {
42738
+ return ["html", "body", "#document"].indexOf(st$1(t)) >= 0 ? t.ownerDocument.body : je$1(t) && Js(t) ? t : Ku$1(_o$1(t));
42739
42739
  }
42740
42740
  function sr$1(t, e) {
42741
42741
  var n;
42742
42742
  e === void 0 && (e = []);
42743
- var r = Xu$1(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i3 = Re$1(r), s = o ? [i3].concat(i3.visualViewport || [], Js(r) ? r : []) : r, a = e.concat(s);
42743
+ var r = Ku$1(t), o = r === ((n = t.ownerDocument) == null ? void 0 : n.body), i3 = Re$1(r), s = o ? [i3].concat(i3.visualViewport || [], Js(r) ? r : []) : r, a = e.concat(s);
42744
42744
  return o ? a : (
42745
42745
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
42746
42746
  a.concat(sr$1(_o$1(s)))
@@ -42759,12 +42759,12 @@ Actual: ` + p3.attribValue
42759
42759
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
42760
42760
  }
42761
42761
  function Rl$1(t, e, n) {
42762
- return e === Vu$1 ? fs$1(gv(t, n)) : un$2(e) ? bv(e, n) : fs$1(yv(Wt$2(t)));
42762
+ return e === _u$1 ? fs$1(gv(t, n)) : un$2(e) ? bv(e, n) : fs$1(yv(Wt$2(t)));
42763
42763
  }
42764
42764
  function wv(t) {
42765
42765
  var e = sr$1(_o$1(t)), n = ["absolute", "fixed"].indexOf(Ct$1(t).position) >= 0, r = n && je$1(t) ? Pr(t) : t;
42766
42766
  return un$2(r) ? e.filter(function(o) {
42767
- return un$2(o) && Wu$1(o, r) && st$1(o) !== "body";
42767
+ return un$2(o) && ju$1(o, r) && st$1(o) !== "body";
42768
42768
  }) : [];
42769
42769
  }
42770
42770
  function vv(t, e, n, r) {
@@ -42774,7 +42774,7 @@ Actual: ` + p3.attribValue
42774
42774
  }, Rl$1(t, s, r));
42775
42775
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
42776
42776
  }
42777
- function Ju$1(t) {
42777
+ function Xu$1(t) {
42778
42778
  var e = t.reference, n = t.element, r = t.placement, o = r ? rt$1(r) : null, i3 = r ? Fn$1(r) : null, s = e.x + e.width / 2 - n.width / 2, a = e.y + e.height / 2 - n.height / 2, l;
42779
42779
  switch (o) {
42780
42780
  case Te$1:
@@ -42823,7 +42823,7 @@ Actual: ` + p3.attribValue
42823
42823
  }
42824
42824
  function Sr$1(t, e) {
42825
42825
  e === void 0 && (e = {});
42826
- var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? $w : a, c3 = n.rootBoundary, d = c3 === void 0 ? Vu$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = qu$1(typeof g != "number" ? g : Ku$1(g, Ir)), w = f3 === Jn$2 ? Hw : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = vv(un$2(y) ? y : y.contextElement || Wt$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), A = Ju$1({
42826
+ var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i3 = n.strategy, s = i3 === void 0 ? t.strategy : i3, a = n.boundary, l = a === void 0 ? $w : a, c3 = n.rootBoundary, d = c3 === void 0 ? _u$1 : c3, u = n.elementContext, f3 = u === void 0 ? Jn$2 : u, p3 = n.altBoundary, h3 = p3 === void 0 ? false : p3, m = n.padding, g = m === void 0 ? 0 : m, b = Uu$1(typeof g != "number" ? g : qu$1(g, Ir)), w = f3 === Jn$2 ? Hw : Jn$2, C = t.rects.popper, y = t.elements[h3 ? w : f3], S = vv(un$2(y) ? y : y.contextElement || Wt$2(t.elements.popper), l, d, s), k = Ln$2(t.elements.reference), A = Xu$1({
42827
42827
  reference: k,
42828
42828
  element: C,
42829
42829
  placement: o
@@ -42844,7 +42844,7 @@ Actual: ` + p3.attribValue
42844
42844
  }
42845
42845
  function kv(t, e) {
42846
42846
  e === void 0 && (e = {});
42847
- var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? $u$1 : l, d = Fn$1(r), u = d ? a ? Nl$1 : Nl$1.filter(function(h3) {
42847
+ var n = e, r = n.placement, o = n.boundary, i3 = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c3 = l === void 0 ? Vu$1 : l, d = Fn$1(r), u = d ? a ? Nl$1 : Nl$1.filter(function(h3) {
42848
42848
  return Fn$1(h3) === d;
42849
42849
  }) : Ir, f3 = u.filter(function(h3) {
42850
42850
  return c3.indexOf(h3) >= 0;
@@ -42978,7 +42978,7 @@ Actual: ` + p3.attribValue
42978
42978
  };
42979
42979
  }
42980
42980
  function Tv(t) {
42981
- var e = t.state, n = t.options, r = t.name, o = n.offset, i3 = o === void 0 ? [0, 0] : o, s = $u$1.reduce(function(d, u) {
42981
+ var e = t.state, n = t.options, r = t.name, o = n.offset, i3 = o === void 0 ? [0, 0] : o, s = Vu$1.reduce(function(d, u) {
42982
42982
  return d[u] = Ov(u, e.rects, i3), d;
42983
42983
  }, {}), a = s[e.placement], l = a.x, c3 = a.y;
42984
42984
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c3), e.modifiersData[r] = s;
@@ -42992,7 +42992,7 @@ Actual: ` + p3.attribValue
42992
42992
  };
42993
42993
  function Nv(t) {
42994
42994
  var e = t.state, n = t.name;
42995
- e.modifiersData[n] = Ju$1({
42995
+ e.modifiersData[n] = Xu$1({
42996
42996
  reference: e.rects.reference,
42997
42997
  element: e.rects.popper,
42998
42998
  placement: e.placement
@@ -43031,7 +43031,7 @@ Actual: ` + p3.attribValue
43031
43031
  var j, se = y === "y" ? Te$1 : De$1, ce2 = y === "y" ? We$2 : Ue, ae2 = y === "y" ? "height" : "width", ee = k[y], ne = ee + g[se], ve2 = ee - g[ce2], ke2 = p3 ? -L3[ae2] / 2 : 0, lt2 = w === Pn$2 ? A[ae2] : L3[ae2], Fe2 = w === Pn$2 ? -L3[ae2] : -A[ae2], ct2 = e.elements.arrow, qe2 = p3 && ct2 ? Us(ct2) : {
43032
43032
  width: 0,
43033
43033
  height: 0
43034
- }, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Uu$1(), Ke2 = Ne2[se], xt2 = Ne2[ce2], dt2 = ir$1(0, A[ae2], qe2[ae2]), fn2 = C ? A[ae2] / 2 - ke2 - dt2 - Ke2 - _.mainAxis : lt2 - dt2 - Ke2 - _.mainAxis, Mt2 = C ? -A[ae2] / 2 + ke2 + dt2 + xt2 + _.mainAxis : Fe2 + dt2 + xt2 + _.mainAxis, pn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, Hn2 = (j = z?.[y]) != null ? j : 0, Fr2 = ee + fn2 - Hn2 - Lr2, Br2 = ee + Mt2 - Hn2, jn2 = ir$1(p3 ? Oo$1(ne, Fr2) : ne, ee, p3 ? sn$2(ve2, Br2) : ve2);
43034
+ }, Ne2 = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Wu$1(), Ke2 = Ne2[se], xt2 = Ne2[ce2], dt2 = ir$1(0, A[ae2], qe2[ae2]), fn2 = C ? A[ae2] / 2 - ke2 - dt2 - Ke2 - _.mainAxis : lt2 - dt2 - Ke2 - _.mainAxis, Mt2 = C ? -A[ae2] / 2 + ke2 + dt2 + xt2 + _.mainAxis : Fe2 + dt2 + xt2 + _.mainAxis, pn2 = e.elements.arrow && Pr(e.elements.arrow), Lr2 = pn2 ? y === "y" ? pn2.clientTop || 0 : pn2.clientLeft || 0 : 0, Hn2 = (j = z?.[y]) != null ? j : 0, Fr2 = ee + fn2 - Hn2 - Lr2, Br2 = ee + Mt2 - Hn2, jn2 = ir$1(p3 ? Oo$1(ne, Fr2) : ne, ee, p3 ? sn$2(ve2, Br2) : ve2);
43035
43035
  k[y] = jn2, $[y] = jn2 - ee;
43036
43036
  }
43037
43037
  if (a) {
@@ -43238,12 +43238,12 @@ Actual: ` + p3.attribValue
43238
43238
  return p3;
43239
43239
  };
43240
43240
  }
43241
- var Wv = [pv, Ev, uv, Hu$1, Dv, xv, Rv, av, Av], Uv = /* @__PURE__ */ jv({
43241
+ var Wv = [pv, Ev, uv, $u$1, Dv, xv, Rv, av, Av], Uv = /* @__PURE__ */ jv({
43242
43242
  defaultModifiers: Wv
43243
- }), qv = "tippy-box", Yu$1 = "tippy-content", Kv = "tippy-backdrop", Gu$1 = "tippy-arrow", Zu$1 = "tippy-svg-arrow", Yt$2 = {
43243
+ }), qv = "tippy-box", Ju$1 = "tippy-content", Kv = "tippy-backdrop", Yu$1 = "tippy-arrow", Gu$1 = "tippy-svg-arrow", Yt$2 = {
43244
43244
  passive: true,
43245
43245
  capture: true
43246
- }, Qu$1 = function() {
43246
+ }, Zu$1 = function() {
43247
43247
  return document.body;
43248
43248
  };
43249
43249
  function Xv(t, e) {
@@ -43260,7 +43260,7 @@ Actual: ` + p3.attribValue
43260
43260
  var n = {}.toString.call(t);
43261
43261
  return n.indexOf("[object") === 0 && n.indexOf(e + "]") > -1;
43262
43262
  }
43263
- function ef$1(t, e) {
43263
+ function Qu$1(t, e) {
43264
43264
  return typeof t == "function" ? t.apply(void 0, e) : t;
43265
43265
  }
43266
43266
  function _l$1(t, e) {
@@ -43367,11 +43367,11 @@ Actual: ` + p3.attribValue
43367
43367
  isTouch: false
43368
43368
  }, Wl$1 = 0;
43369
43369
  function ik() {
43370
- tt$2.isTouch || (tt$2.isTouch = true, window.performance && document.addEventListener("mousemove", tf$1));
43370
+ tt$2.isTouch || (tt$2.isTouch = true, window.performance && document.addEventListener("mousemove", ef$1));
43371
43371
  }
43372
- function tf$1() {
43372
+ function ef$1() {
43373
43373
  var t = performance.now();
43374
- t - Wl$1 < 20 && (tt$2.isTouch = false, document.removeEventListener("mousemove", tf$1)), Wl$1 = t;
43374
+ t - Wl$1 < 20 && (tt$2.isTouch = false, document.removeEventListener("mousemove", ef$1)), Wl$1 = t;
43375
43375
  }
43376
43376
  function sk() {
43377
43377
  var t = document.activeElement;
@@ -43404,7 +43404,7 @@ Actual: ` + p3.attribValue
43404
43404
  %c👷‍ This is a development-only message. It will be removed in production.
43405
43405
  `);
43406
43406
  }
43407
- function nf$1(t) {
43407
+ function tf$1(t) {
43408
43408
  return [
43409
43409
  dk(t),
43410
43410
  // title
@@ -43423,20 +43423,20 @@ Actual: ` + p3.attribValue
43423
43423
  function gt$1(t, e) {
43424
43424
  if (t && !Mr$1.has(e)) {
43425
43425
  var n;
43426
- Mr$1.add(e), (n = console).warn.apply(n, nf$1(e));
43426
+ Mr$1.add(e), (n = console).warn.apply(n, tf$1(e));
43427
43427
  }
43428
43428
  }
43429
43429
  function ps(t, e) {
43430
43430
  if (t && !Mr$1.has(e)) {
43431
43431
  var n;
43432
- Mr$1.add(e), (n = console).error.apply(n, nf$1(e));
43432
+ Mr$1.add(e), (n = console).error.apply(n, tf$1(e));
43433
43433
  }
43434
43434
  }
43435
43435
  function fk(t) {
43436
43436
  var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
43437
43437
  ps(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), ps(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
43438
43438
  }
43439
- var rf$1 = {
43439
+ var nf$1 = {
43440
43440
  animateFill: false,
43441
43441
  followCursor: false,
43442
43442
  inlinePositioning: false,
@@ -43452,7 +43452,7 @@ Actual: ` + p3.attribValue
43452
43452
  theme: "",
43453
43453
  zIndex: 9999
43454
43454
  }, Ie$1 = Object.assign({
43455
- appendTo: Qu$1,
43455
+ appendTo: Zu$1,
43456
43456
  aria: {
43457
43457
  content: "auto",
43458
43458
  expanded: "auto"
@@ -43499,14 +43499,14 @@ Actual: ` + p3.attribValue
43499
43499
  touch: true,
43500
43500
  trigger: "mouseenter focus",
43501
43501
  triggerTarget: null
43502
- }, rf$1, pk), hk = Object.keys(Ie$1), mk = function(e) {
43503
- he$3.env.NODE_ENV !== "production" && sf$1(e, []);
43502
+ }, nf$1, pk), hk = Object.keys(Ie$1), mk = function(e) {
43503
+ he$3.env.NODE_ENV !== "production" && of$1(e, []);
43504
43504
  var n = Object.keys(e);
43505
43505
  n.forEach(function(r) {
43506
43506
  Ie$1[r] = e[r];
43507
43507
  });
43508
43508
  };
43509
- function of$1(t) {
43509
+ function rf$1(t) {
43510
43510
  var e = t.plugins || [], n = e.reduce(function(r, o) {
43511
43511
  var i3 = o.name, s = o.defaultValue;
43512
43512
  if (i3) {
@@ -43518,7 +43518,7 @@ Actual: ` + p3.attribValue
43518
43518
  return Object.assign({}, t, n);
43519
43519
  }
43520
43520
  function gk(t, e) {
43521
- var n = e ? Object.keys(of$1(Object.assign({}, Ie$1, {
43521
+ var n = e ? Object.keys(rf$1(Object.assign({}, Ie$1, {
43522
43522
  plugins: e
43523
43523
  }))) : hk, r = n.reduce(function(o, i3) {
43524
43524
  var s = (t.getAttribute("data-tippy-" + i3) || "").trim();
@@ -43538,18 +43538,18 @@ Actual: ` + p3.attribValue
43538
43538
  }
43539
43539
  function ql$1(t, e) {
43540
43540
  var n = Object.assign({}, e, {
43541
- content: ef$1(e.content, [t])
43541
+ content: Qu$1(e.content, [t])
43542
43542
  }, e.ignoreAttributes ? {} : gk(t, e.plugins));
43543
43543
  return n.aria = Object.assign({}, Ie$1.aria, n.aria), n.aria = {
43544
43544
  expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
43545
43545
  content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
43546
43546
  }, n;
43547
43547
  }
43548
- function sf$1(t, e) {
43548
+ function of$1(t, e) {
43549
43549
  t === void 0 && (t = {}), e === void 0 && (e = []);
43550
43550
  var n = Object.keys(t);
43551
43551
  n.forEach(function(r) {
43552
- var o = Jv(Ie$1, Object.keys(rf$1)), i3 = !Xv(o, r);
43552
+ var o = Jv(Ie$1, Object.keys(nf$1)), i3 = !Xv(o, r);
43553
43553
  i3 && (i3 = e.filter(function(s) {
43554
43554
  return s.name === r;
43555
43555
  }).length === 0), gt$1(i3, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -43566,7 +43566,7 @@ Actual: ` + p3.attribValue
43566
43566
  }
43567
43567
  function Kl$1(t) {
43568
43568
  var e = ar$1();
43569
- return t === true ? e.className = Gu$1 : (e.className = Zu$1, xr$1(t) ? e.appendChild(t) : hs$1(e, t)), e;
43569
+ return t === true ? e.className = Yu$1 : (e.className = Gu$1, xr$1(t) ? e.appendChild(t) : hs$1(e, t)), e;
43570
43570
  }
43571
43571
  function Xl$1(t, e) {
43572
43572
  xr$1(e.content) ? (hs$1(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? hs$1(t, e.content) : t.textContent = e.content);
@@ -43576,21 +43576,21 @@ Actual: ` + p3.attribValue
43576
43576
  return {
43577
43577
  box: e,
43578
43578
  content: n.find(function(r) {
43579
- return r.classList.contains(Yu$1);
43579
+ return r.classList.contains(Ju$1);
43580
43580
  }),
43581
43581
  arrow: n.find(function(r) {
43582
- return r.classList.contains(Gu$1) || r.classList.contains(Zu$1);
43582
+ return r.classList.contains(Yu$1) || r.classList.contains(Gu$1);
43583
43583
  }),
43584
43584
  backdrop: n.find(function(r) {
43585
43585
  return r.classList.contains(Kv);
43586
43586
  })
43587
43587
  };
43588
43588
  }
43589
- function af$1(t) {
43589
+ function sf$1(t) {
43590
43590
  var e = ar$1(), n = ar$1();
43591
43591
  n.className = qv, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
43592
43592
  var r = ar$1();
43593
- r.className = Yu$1, r.setAttribute("data-state", "hidden"), Xl$1(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
43593
+ r.className = Ju$1, r.setAttribute("data-state", "hidden"), Xl$1(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
43594
43594
  function o(i3, s) {
43595
43595
  var a = ms(e), l = a.box, c3 = a.content, d = a.arrow;
43596
43596
  s.theme ? l.setAttribute("data-theme", s.theme) : l.removeAttribute("data-theme"), typeof s.animation == "string" ? l.setAttribute("data-animation", s.animation) : l.removeAttribute("data-animation"), s.inertia ? l.setAttribute("data-inertia", "") : l.removeAttribute("data-inertia"), l.style.maxWidth = typeof s.maxWidth == "number" ? s.maxWidth + "px" : s.maxWidth, s.role ? l.setAttribute("role", s.role) : l.removeAttribute("role"), (i3.content !== s.content || i3.allowHTML !== s.allowHTML) && Xl$1(c3, t.props), s.arrow ? d ? i3.arrow !== s.arrow && (l.removeChild(d), l.appendChild(Kl$1(s.arrow))) : l.appendChild(Kl$1(s.arrow)) : d && l.removeChild(d);
@@ -43600,10 +43600,10 @@ Actual: ` + p3.attribValue
43600
43600
  onUpdate: o
43601
43601
  };
43602
43602
  }
43603
- af$1.$$tippy = true;
43603
+ sf$1.$$tippy = true;
43604
43604
  var bk = 1, eo$2 = [], hi$1 = [];
43605
43605
  function wk(t, e) {
43606
- var n = ql$1(t, Object.assign({}, Ie$1, of$1($l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = _l$1(Fr2, n.interactiveDebounce), m, g = bk++, b = null, w = Gv(n.plugins), C = {
43606
+ var n = ql$1(t, Object.assign({}, Ie$1, rf$1($l$1(e)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = _l$1(Fr2, n.interactiveDebounce), m, g = bk++, b = null, w = Gv(n.plugins), C = {
43607
43607
  // Is the instance currently enabled?
43608
43608
  isEnabled: true,
43609
43609
  // Is the tippy currently showing and not transitioning out?
@@ -43627,13 +43627,13 @@ Actual: ` + p3.attribValue
43627
43627
  clearDelayTimeouts: $r2,
43628
43628
  setProps: Hr2,
43629
43629
  setContent: jr2,
43630
- show: lf2,
43631
- hide: cf2,
43632
- hideWithInteractivity: df2,
43630
+ show: af2,
43631
+ hide: lf2,
43632
+ hideWithInteractivity: cf2,
43633
43633
  enable: qn2,
43634
43634
  disable: Vr2,
43635
- unmount: uf2,
43636
- destroy: ff2
43635
+ unmount: df2,
43636
+ destroy: uf2
43637
43637
  };
43638
43638
  if (!n.render)
43639
43639
  return he$3.env.NODE_ENV !== "production" && ps(true, "render() function has not been supplied."), y;
@@ -43848,7 +43848,7 @@ Actual: ` + p3.attribValue
43848
43848
  fn: function(Wr2) {
43849
43849
  var mn2 = Wr2.state;
43850
43850
  if ($()) {
43851
- var pf2 = ce2(), $o2 = pf2.box;
43851
+ var ff2 = ce2(), $o2 = ff2.box;
43852
43852
  ["placement", "reference-hidden", "escaped"].forEach(function(Ur2) {
43853
43853
  Ur2 === "placement" ? $o2.setAttribute("data-placement", mn2.placement) : mn2.attributes.popper["data-popper-" + Ur2] ? $o2.setAttribute("data-" + Ur2, "") : $o2.removeAttribute("data-" + Ur2);
43854
43854
  }), mn2.attributes.popper = {};
@@ -43897,7 +43897,7 @@ Actual: ` + p3.attribValue
43897
43897
  }
43898
43898
  function ut2() {
43899
43899
  var v = y.props.appendTo, O3, R = j();
43900
- y.props.interactive && v === Qu$1 || v === "parent" ? O3 = R.parentNode : O3 = ef$1(v, [R]), O3.contains(k) || O3.appendChild(k), y.state.isMounted = true, zr2(), he$3.env.NODE_ENV !== "production" && gt$1(y.props.interactive && v === Ie$1.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
43900
+ y.props.interactive && v === Zu$1 || v === "parent" ? O3 = R.parentNode : O3 = Qu$1(v, [R]), O3.contains(k) || O3.appendChild(k), y.state.isMounted = true, zr2(), he$3.env.NODE_ENV !== "production" && gt$1(y.props.interactive && v === Ie$1.appendTo && R.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
43901
43901
 
43902
43902
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
43903
43903
 
@@ -43956,7 +43956,7 @@ Actual: ` + p3.attribValue
43956
43956
  content: v
43957
43957
  });
43958
43958
  }
43959
- function lf2() {
43959
+ function af2() {
43960
43960
  he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("show"));
43961
43961
  var v = y.state.isVisible, O3 = y.state.isDestroyed, R = !y.state.isEnabled, q = tt$2.isTouch && !y.props.touch, U = ui$1(y.props.duration, 0, Ie$1.duration);
43962
43962
  if (!(v || O3 || R || q) && !j().hasAttribute("disabled") && (ne("onShow", [y], false), y.props.onShow(y) !== false)) {
@@ -43978,7 +43978,7 @@ Actual: ` + p3.attribValue
43978
43978
  }, ut2();
43979
43979
  }
43980
43980
  }
43981
- function cf2() {
43981
+ function lf2() {
43982
43982
  he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hide"));
43983
43983
  var v = !y.state.isVisible, O3 = y.state.isDestroyed, R = !y.state.isEnabled, q = ui$1(y.props.duration, 1, Ie$1.duration);
43984
43984
  if (!(v || O3 || R) && (ne("onHide", [y], false), y.props.onHide(y) !== false)) {
@@ -43989,24 +43989,24 @@ Actual: ` + p3.attribValue
43989
43989
  ve2(), ke2(), y.props.animation ? $() && xt2(q, y.unmount) : y.unmount();
43990
43990
  }
43991
43991
  }
43992
- function df2(v) {
43992
+ function cf2(v) {
43993
43993
  he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("hideWithInteractivity")), se().addEventListener("mousemove", h3), Vl$1(eo$2, h3), h3(v);
43994
43994
  }
43995
- function uf2() {
43995
+ function df2() {
43996
43996
  he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (_r2(), At2().forEach(function(v) {
43997
43997
  v._tippy.unmount();
43998
43998
  }), k.parentNode && k.parentNode.removeChild(k), hi$1 = hi$1.filter(function(v) {
43999
43999
  return v !== y;
44000
44000
  }), y.state.isMounted = false, ne("onHidden", [y]));
44001
44001
  }
44002
- function ff2() {
44002
+ function uf2() {
44003
44003
  he$3.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, vn$2("destroy")), !y.state.isDestroyed && (y.clearDelayTimeouts(), y.unmount(), Lr2(), delete t._tippy, y.state.isDestroyed = true, ne("onDestroy", [y]));
44004
44004
  }
44005
44005
  }
44006
44006
  function Rr(t, e) {
44007
44007
  e === void 0 && (e = {});
44008
44008
  var n = Ie$1.plugins.concat(e.plugins || []);
44009
- he$3.env.NODE_ENV !== "production" && (fk(t), sf$1(e, n)), ak();
44009
+ he$3.env.NODE_ENV !== "production" && (fk(t), of$1(e, n)), ak();
44010
44010
  var r = Object.assign({}, e, {
44011
44011
  plugins: n
44012
44012
  }), o = nk(t);
@@ -44028,7 +44028,7 @@ Actual: ` + p3.attribValue
44028
44028
  Rr.defaultProps = Ie$1;
44029
44029
  Rr.setDefaultProps = mk;
44030
44030
  Rr.currentInput = tt$2;
44031
- Object.assign({}, Hu$1, {
44031
+ Object.assign({}, $u$1, {
44032
44032
  effect: function(e) {
44033
44033
  var n = e.state, r = {
44034
44034
  popper: {
@@ -44046,7 +44046,7 @@ Actual: ` + p3.attribValue
44046
44046
  }
44047
44047
  });
44048
44048
  Rr.setDefaultProps({
44049
- render: af$1
44049
+ render: sf$1
44050
44050
  });
44051
44051
  const vk = (t, e) => {
44052
44052
  const n = t.__vccOpts || t;
@@ -44320,7 +44320,7 @@ Actual: ` + p3.attribValue
44320
44320
  if (!e.converter) return F.empty;
44321
44321
  const r = e.converter.pageStyles?.pageSize, { width: o, height: i3 } = r;
44322
44322
  if (!o || !i3) return F.empty;
44323
- const s = [Cb, on$3], { state: a } = t, l = At.create({
44323
+ const s = [kb, on$3], { state: a } = t, l = At.create({
44324
44324
  schema: a.schema,
44325
44325
  doc: a.doc,
44326
44326
  plugins: a.plugins.filter((h3) => s.includes(h3.key))
@@ -44442,93 +44442,92 @@ Actual: ` + p3.attribValue
44442
44442
  e.setMeta("forceUpdatePagination", true), t.view.dispatch(e);
44443
44443
  });
44444
44444
  }, Fk = () => [
44445
- Eu$1,
44445
+ Nu$1,
44446
44446
  Qd$1,
44447
44447
  jd$1,
44448
44448
  Gd$1,
44449
44449
  Wd$1,
44450
44450
  Ud$1,
44451
- Jf$1,
44451
+ Xf$1,
44452
44452
  su$1,
44453
- Iu$1,
44453
+ Eu$1,
44454
44454
  ou$1,
44455
44455
  Xd$1,
44456
- Fu$1,
44456
+ Lu$1,
44457
44457
  tu$1,
44458
44458
  iu$1,
44459
44459
  au$1,
44460
- lu$1,
44461
- Lu$1,
44460
+ Ru$1,
44462
44461
  Zd$1,
44463
44462
  qd$1,
44464
44463
  Kd$1,
44465
- Nu$1,
44466
- Pu$1,
44464
+ Du$1,
44465
+ Iu$1,
44467
44466
  Vw,
44468
44467
  Tk,
44469
- Du$1,
44470
- Ru$1,
44468
+ Tu$1,
44469
+ Pu$1,
44471
44470
  Jd$1,
44472
- vu$1,
44473
- Cu$1,
44474
- Su$1,
44471
+ wu$1,
44475
44472
  ku$1,
44476
- Ou$1,
44473
+ Cu$1,
44474
+ vu$1,
44475
+ Au$1,
44477
44476
  Yd$1,
44477
+ Fu$1,
44478
44478
  Bu$1,
44479
44479
  zu$1,
44480
- _u$1,
44481
- Tu$1
44480
+ Ou$1
44482
44481
  ], Bk = () => [
44483
- Eu$1,
44482
+ Nu$1,
44484
44483
  Qd$1,
44485
44484
  jd$1,
44485
+ t0,
44486
44486
  n0,
44487
44487
  r0,
44488
- o0,
44489
44488
  Gd$1,
44490
44489
  Wd$1,
44491
44490
  Ud$1,
44492
44491
  // History,
44493
44492
  su$1,
44494
- Iu$1,
44493
+ Eu$1,
44495
44494
  ou$1,
44496
44495
  Xd$1,
44497
- Fu$1,
44496
+ Lu$1,
44498
44497
  tu$1,
44499
44498
  iu$1,
44499
+ l0,
44500
44500
  au$1,
44501
- lu$1,
44502
- Nb,
44503
- Lu$1,
44504
- s0,
44501
+ Db,
44502
+ Ru$1,
44503
+ i0,
44505
44504
  Zd$1,
44506
44505
  qd$1,
44507
44506
  Kd$1,
44508
- Nu$1,
44509
- Pu$1,
44507
+ Du$1,
44508
+ Iu$1,
44510
44509
  Jd$1,
44511
- nb,
44512
- kb,
44513
- vu$1,
44514
- Cu$1,
44515
- Su$1,
44510
+ tb,
44511
+ vb,
44512
+ wu$1,
44516
44513
  ku$1,
44517
- Ou$1,
44514
+ Cu$1,
44515
+ vu$1,
44516
+ Au$1,
44518
44517
  Yd$1,
44519
- Tu$1,
44518
+ Ou$1,
44520
44519
  Iw,
44521
- Du$1,
44522
- Sb,
44523
- Tb,
44520
+ Tu$1,
44521
+ Cb,
44522
+ Ob,
44524
44523
  _w,
44524
+ Fu$1,
44525
44525
  Bu$1,
44526
44526
  zu$1,
44527
- _u$1,
44528
- i0,
44527
+ o0,
44529
44528
  Ek,
44530
- Ru$1,
44531
- Jb,
44529
+ Pu$1,
44530
+ Xb,
44532
44531
  Pw,
44533
44532
  Rw
44534
44533
  ];
@@ -52273,7 +52272,7 @@ ${t}
52273
52272
  }, [
52274
52273
  createBaseVNode("div", {
52275
52274
  class: "style-name",
52276
- style: normalizeStyle(unref(Gb)(s, null, false))
52275
+ style: normalizeStyle(unref(Yb)(s, null, false))
52277
52276
  }, toDisplayString(s.definition.attrs.name), 5)
52278
52277
  ], 8, kn))), 256))
52279
52278
  ])) : createCommentVNode("", true);
@@ -53450,7 +53449,7 @@ ${t}
53450
53449
  O(this, L, ze).call(this);
53451
53450
  return;
53452
53451
  }
53453
- const o = zf$1(this.activeEditor), n = Md$1(this.activeEditor.state);
53452
+ const o = Bf$1(this.activeEditor), n = Md$1(this.activeEditor.state);
53454
53453
  this.toolbarItems.forEach((e) => {
53455
53454
  if (e.resetDisabled(), e.name.value === "linkedStyles")
53456
53455
  return this.activeEditor && !qk(this.activeEditor).length ? e.deactivate() : e.activate();
@@ -68669,7 +68668,7 @@ ${style2}
68669
68668
  this.config.colors = shuffleArray(this.config.colors);
68670
68669
  this.userColorMap = /* @__PURE__ */ new Map();
68671
68670
  this.colorIndex = 0;
68672
- this.version = "0.10.14";
68671
+ this.version = "0.10.15";
68673
68672
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
68674
68673
  this.superdocId = config.superdocId || v4();
68675
68674
  this.colors = this.config.colors;