@harbour-enterprises/superdoc 0.10.60 → 0.10.62

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.
@@ -7380,7 +7380,7 @@
7380
7380
  Qe$3[xt$2] = Rr$1[xt$2], ze$2[Rr$1.charCodeAt(xt$2)] = xt$2;
7381
7381
  ze$2[45] = 62;
7382
7382
  ze$2[95] = 63;
7383
- function Uo$1(r22) {
7383
+ function Uo$2(r22) {
7384
7384
  var e = r22.length;
7385
7385
  if (e % 4 > 0)
7386
7386
  throw new Error("Invalid string. Length must be a multiple of 4");
@@ -7390,14 +7390,14 @@
7390
7390
  return [t, n];
7391
7391
  }
7392
7392
  function _u$2(r22) {
7393
- var e = Uo$1(r22), t = e[0], n = e[1];
7393
+ var e = Uo$2(r22), t = e[0], n = e[1];
7394
7394
  return (t + n) * 3 / 4 - n;
7395
7395
  }
7396
7396
  function qu$2(r22, e, t) {
7397
7397
  return (e + t) * 3 / 4 - t;
7398
7398
  }
7399
7399
  function Mu$2(r22) {
7400
- var e, t = Uo$1(r22), n = t[0], i3 = t[1], s = new Ou$2(qu$2(r22, n, i3)), o = 0, a = i3 > 0 ? n - 4 : n, u;
7400
+ var e, t = Uo$2(r22), n = t[0], i3 = t[1], s = new Ou$2(qu$2(r22, n, i3)), o = 0, a = i3 > 0 ? n - 4 : n, u;
7401
7401
  for (u = 0; u < a; u += 4)
7402
7402
  e = ze$2[r22.charCodeAt(u)] << 18 | ze$2[r22.charCodeAt(u + 1)] << 12 | ze$2[r22.charCodeAt(u + 2)] << 6 | ze$2[r22.charCodeAt(u + 3)], s[o++] = e >> 16 & 255, s[o++] = e >> 8 & 255, s[o++] = e & 255;
7403
7403
  return i3 === 2 && (e = ze$2[r22.charCodeAt(u)] << 2 | ze$2[r22.charCodeAt(u + 1)] >> 4, s[o++] = e & 255), i3 === 1 && (e = ze$2[r22.charCodeAt(u)] << 10 | ze$2[r22.charCodeAt(u + 1)] << 4 | ze$2[r22.charCodeAt(u + 2)] >> 2, s[o++] = e >> 8 & 255, s[o++] = e & 255), s;
@@ -8412,7 +8412,7 @@
8412
8412
  transcode: sl$2
8413
8413
  }, Symbol.toStringTag, { value: "Module" }));
8414
8414
  var jo$2 = {}, Qt$2 = { exports: {} }, qi$2;
8415
- function xi$2() {
8415
+ function xi$1() {
8416
8416
  if (qi$2) return Qt$2.exports;
8417
8417
  qi$2 = 1;
8418
8418
  var r22 = typeof Reflect == "object" ? Reflect : null, e = r22 && typeof r22.apply == "function" ? r22.apply : function(k, N3, q3) {
@@ -8760,11 +8760,11 @@
8760
8760
  const ge$2 = /* @__PURE__ */ al$2(cl$2);
8761
8761
  var Pr$1, Ui$2;
8762
8762
  function Wo$2() {
8763
- return Ui$2 || (Ui$2 = 1, Pr$1 = xi$2().EventEmitter), Pr$1;
8763
+ return Ui$2 || (Ui$2 = 1, Pr$1 = xi$1().EventEmitter), Pr$1;
8764
8764
  }
8765
8765
  const Er$2 = /* @__PURE__ */ Pu$2(ol$2);
8766
8766
  var Or = {}, Lr$1 = {}, _r, ji$2;
8767
- function Jo$1() {
8767
+ function Jo$2() {
8768
8768
  return ji$2 || (ji$2 = 1, _r = function() {
8769
8769
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
8770
8770
  return false;
@@ -8797,7 +8797,7 @@
8797
8797
  function vr$2() {
8798
8798
  if (Hi$2) return qr$1;
8799
8799
  Hi$2 = 1;
8800
- var r22 = Jo$1();
8800
+ var r22 = Jo$2();
8801
8801
  return qr$1 = function() {
8802
8802
  return r22() && !!Symbol.toStringTag;
8803
8803
  }, qr$1;
@@ -8823,7 +8823,7 @@
8823
8823
  return Ji$2 || (Ji$2 = 1, Vr$1 = ReferenceError), Vr$1;
8824
8824
  }
8825
8825
  var zr$1, $i$2;
8826
- function Ko$2() {
8826
+ function Ko$1() {
8827
8827
  return $i$2 || ($i$2 = 1, zr$1 = SyntaxError), zr$1;
8828
8828
  }
8829
8829
  var Gr$2, Ki$2;
@@ -8907,7 +8907,7 @@
8907
8907
  function Cl$2() {
8908
8908
  if (us$2) return sn$3;
8909
8909
  us$2 = 1;
8910
- var r22 = typeof Symbol < "u" && Symbol, e = Jo$1();
8910
+ var r22 = typeof Symbol < "u" && Symbol, e = Jo$2();
8911
8911
  return sn$3 = function() {
8912
8912
  return typeof r22 != "function" || typeof Symbol != "function" || typeof r22("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? false : e();
8913
8913
  }, sn$3;
@@ -9055,7 +9055,7 @@
9055
9055
  function ea$1() {
9056
9056
  if (As$1) return yn$3;
9057
9057
  As$1 = 1;
9058
- var r22, e = $o$2(), t = fl$2(), n = dl$2(), i3 = ml$2(), s = pl$2(), o = Ko$2(), a = $t$1(), u = hl$2(), f3 = gl$2(), l = wl$2(), h3 = yl$2(), g = bl$2(), v = xl$2(), A = Al$2(), E3 = El$2(), F3 = Function, w = function(I3) {
9058
+ var r22, e = $o$2(), t = fl$2(), n = dl$2(), i3 = ml$2(), s = pl$2(), o = Ko$1(), a = $t$1(), u = hl$2(), f3 = gl$2(), l = wl$2(), h3 = yl$2(), g = bl$2(), v = xl$2(), A = Al$2(), E3 = El$2(), F3 = Function, w = function(I3) {
9059
9059
  try {
9060
9060
  return F3('"use strict"; return (' + I3 + ").constructor;")();
9061
9061
  } catch {
@@ -9535,7 +9535,7 @@
9535
9535
  function _l$2() {
9536
9536
  if (Ns$1) return Bn$2;
9537
9537
  Ns$1 = 1;
9538
- var r22 = Cr$2(), e = Ko$2(), t = $t$1(), n = Ot$2();
9538
+ var r22 = Cr$2(), e = Ko$1(), t = $t$1(), n = Ot$2();
9539
9539
  return Bn$2 = function(s, o, a) {
9540
9540
  if (!s || typeof s != "object" && typeof s != "function")
9541
9541
  throw new t("`obj` must be an object or a function`");
@@ -11274,7 +11274,7 @@
11274
11274
  if (Qs$1) return Jn$3;
11275
11275
  Qs$1 = 1, Jn$3 = C3;
11276
11276
  var r22;
11277
- C3.ReadableState = M, xi$2().EventEmitter;
11277
+ C3.ReadableState = M, xi$1().EventEmitter;
11278
11278
  var e = function(x3, _3) {
11279
11279
  return x3.listeners(_3).length;
11280
11280
  }, t = Wo$2(), n = Er$2.Buffer, i3 = (typeof Je$1 < "u" ? Je$1 : typeof window < "u" ? window : typeof self < "u" ? self : {}).Uint8Array || function() {
@@ -11748,7 +11748,7 @@
11748
11748
  function Zl$2() {
11749
11749
  if (no$3) return Yn$3;
11750
11750
  no$3 = 1, Yn$3 = t;
11751
- var r22 = xi$2().EventEmitter, e = bt$2();
11751
+ var r22 = xi$1().EventEmitter, e = bt$2();
11752
11752
  e(t, r22), t.Readable = oa$1(), t.Writable = sa$1(), t.Duplex = Ft$2(), t.Transform = aa$1(), t.PassThrough = Xl$2(), t.finished = Ci$2(), t.pipeline = Yl$2(), t.Stream = t;
11753
11753
  function t() {
11754
11754
  r22.call(this);
@@ -15393,13 +15393,13 @@ Actual: ` + p3.attribValue
15393
15393
  for (let i3 in e.marks) {
15394
15394
  let s = e.marks[i3].spec.parseDOM;
15395
15395
  s && s.forEach((o) => {
15396
- n(o = fo$2(o)), o.mark || o.ignore || o.clearMark || (o.mark = i3);
15396
+ n(o = fo$3(o)), o.mark || o.ignore || o.clearMark || (o.mark = i3);
15397
15397
  });
15398
15398
  }
15399
15399
  for (let i3 in e.nodes) {
15400
15400
  let s = e.nodes[i3].spec.parseDOM;
15401
15401
  s && s.forEach((o) => {
15402
- n(o = fo$2(o)), o.node || o.ignore || o.mark || (o.node = i3);
15402
+ n(o = fo$3(o)), o.node || o.ignore || o.mark || (o.node = i3);
15403
15403
  });
15404
15404
  }
15405
15405
  return t;
@@ -15768,7 +15768,7 @@ Actual: ` + p3.attribValue
15768
15768
  function Qc$2(r22, e) {
15769
15769
  return (r22.matches || r22.msMatchesSelector || r22.webkitMatchesSelector || r22.mozMatchesSelector).call(r22, e);
15770
15770
  }
15771
- function fo$2(r22) {
15771
+ function fo$3(r22) {
15772
15772
  let e = {};
15773
15773
  for (let t in r22)
15774
15774
  e[t] = r22[t];
@@ -15812,7 +15812,7 @@ Actual: ` + p3.attribValue
15812
15812
  nodes.
15813
15813
  */
15814
15814
  serializeFragment(e, t = {}, n) {
15815
- n || (n = ei$2(t).createDocumentFragment());
15815
+ n || (n = ei$1(t).createDocumentFragment());
15816
15816
  let i3 = n, s = [];
15817
15817
  return e.forEach((o) => {
15818
15818
  if (s.length || o.marks.length) {
@@ -15841,7 +15841,7 @@ Actual: ` + p3.attribValue
15841
15841
  @internal
15842
15842
  */
15843
15843
  serializeNodeInner(e, t) {
15844
- let { dom: n, contentDOM: i3 } = lr$2(ei$2(t), this.nodes[e.type.name](e), null, e.attrs);
15844
+ let { dom: n, contentDOM: i3 } = lr$2(ei$1(t), this.nodes[e.type.name](e), null, e.attrs);
15845
15845
  if (i3) {
15846
15846
  if (e.isLeaf)
15847
15847
  throw new RangeError("Content hole not allowed in a leaf node spec");
@@ -15869,7 +15869,7 @@ Actual: ` + p3.attribValue
15869
15869
  */
15870
15870
  serializeMark(e, t, n = {}) {
15871
15871
  let i3 = this.marks[e.type.name];
15872
- return i3 && lr$2(ei$2(n), i3(e, t), null, e.attrs);
15872
+ return i3 && lr$2(ei$1(n), i3(e, t), null, e.attrs);
15873
15873
  }
15874
15874
  static renderSpec(e, t, n = null, i3) {
15875
15875
  return lr$2(e, t, n, i3);
@@ -15886,17 +15886,17 @@ Actual: ` + p3.attribValue
15886
15886
  This can be useful as a base to build a custom serializer from.
15887
15887
  */
15888
15888
  static nodesFromSchema(e) {
15889
- let t = po$3(e.nodes);
15889
+ let t = po$2(e.nodes);
15890
15890
  return t.text || (t.text = (n) => n.text), t;
15891
15891
  }
15892
15892
  /**
15893
15893
  Gather the serializers in a schema's mark specs into an object.
15894
15894
  */
15895
15895
  static marksFromSchema(e) {
15896
- return po$3(e.marks);
15896
+ return po$2(e.marks);
15897
15897
  }
15898
15898
  };
15899
- function po$3(r22) {
15899
+ function po$2(r22) {
15900
15900
  let e = {};
15901
15901
  for (let t in r22) {
15902
15902
  let n = r22[t].spec.toDOM;
@@ -15904,7 +15904,7 @@ Actual: ` + p3.attribValue
15904
15904
  }
15905
15905
  return e;
15906
15906
  }
15907
- function ei$2(r22) {
15907
+ function ei$1(r22) {
15908
15908
  return r22.document || window.document;
15909
15909
  }
15910
15910
  const ho$3 = /* @__PURE__ */ new WeakMap();
@@ -15972,7 +15972,7 @@ Actual: ` + p3.attribValue
15972
15972
  function rf$2(r22, e) {
15973
15973
  return r22 + e * Ua$2;
15974
15974
  }
15975
- function go$2(r22) {
15975
+ function go$3(r22) {
15976
15976
  return r22 & Ma$2;
15977
15977
  }
15978
15978
  function nf$2(r22) {
@@ -16029,7 +16029,7 @@ Actual: ` + p3.attribValue
16029
16029
  @internal
16030
16030
  */
16031
16031
  recover(e) {
16032
- let t = 0, n = go$2(e);
16032
+ let t = 0, n = go$3(e);
16033
16033
  if (!this.inverted)
16034
16034
  for (let i3 = 0; i3 < n; i3++)
16035
16035
  t += this.ranges[i3 * 3 + 2] - this.ranges[i3 * 3 + 1];
@@ -16066,7 +16066,7 @@ Actual: ` + p3.attribValue
16066
16066
  @internal
16067
16067
  */
16068
16068
  touches(e, t) {
16069
- let n = 0, i3 = go$2(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
16069
+ let n = 0, i3 = go$3(t), s = this.inverted ? 2 : 1, o = this.inverted ? 1 : 2;
16070
16070
  for (let a = 0; a < this.ranges.length; a += 3) {
16071
16071
  let u = this.ranges[a] - (this.inverted ? n : 0);
16072
16072
  if (u > e)
@@ -16623,7 +16623,7 @@ Actual: ` + p3.attribValue
16623
16623
  }
16624
16624
  }), i3.forEach((o) => r22.step(new et$3(o.from, o.to, o.style)));
16625
16625
  }
16626
- function ki$1(r22, e, t, n = t.contentMatch, i3 = true) {
16626
+ function ki$2(r22, e, t, n = t.contentMatch, i3 = true) {
16627
16627
  let s = r22.doc.nodeAt(e), o = [], a = e + 1;
16628
16628
  for (let u = 0; u < s.childCount; u++) {
16629
16629
  let f3 = s.child(u), l = a + f3.nodeSize, h3 = n.matchType(f3.type);
@@ -16719,7 +16719,7 @@ Actual: ` + p3.attribValue
16719
16719
  let v = n.whitespace == "pre", A = !!n.contentMatch.matchType(n.schema.linebreakReplacement);
16720
16720
  v && !A ? f3 = false : !v && A && (f3 = true);
16721
16721
  }
16722
- f3 === false && Ga$2(r22, o, a, s), ki$1(r22, r22.mapping.slice(s).map(a, 1), n, void 0, f3 === null);
16722
+ f3 === false && Ga$2(r22, o, a, s), ki$2(r22, r22.mapping.slice(s).map(a, 1), n, void 0, f3 === null);
16723
16723
  let l = r22.mapping.slice(s), h3 = l.map(a, 1), g = l.map(a + o.nodeSize, 1);
16724
16724
  return r22.step(new $e$2(h3, g, h3 + 1, g - 1, new ae$3(ee$2.from(n.create(u, null, o.marks)), 0, 0), 1, true)), f3 === true && za$2(r22, o, a, s), false;
16725
16725
  }
@@ -16826,7 +16826,7 @@ Actual: ` + p3.attribValue
16826
16826
  let l = r22.doc.resolve(e + t);
16827
16827
  Ga$2(r22, l.node(), l.before(), a);
16828
16828
  }
16829
- o.inlineContent && ki$1(r22, e + t - 1, o, s.node().contentMatchAt(s.index()), n == null);
16829
+ o.inlineContent && ki$2(r22, e + t - 1, o, s.node().contentMatchAt(s.index()), n == null);
16830
16830
  let u = r22.mapping.slice(a), f3 = u.map(e - t);
16831
16831
  if (r22.step(new Ie$2(f3, u.map(e + t, -1), ae$3.empty, true)), n === true) {
16832
16832
  let l = r22.doc.resolve(f3);
@@ -17453,7 +17453,7 @@ Actual: ` + p3.attribValue
17453
17453
  third argument.
17454
17454
  */
17455
17455
  clearIncompatible(e, t, n) {
17456
- return ki$1(this, e, t, n), this;
17456
+ return ki$2(this, e, t, n), this;
17457
17457
  }
17458
17458
  };
17459
17459
  const ii$2 = /* @__PURE__ */ Object.create(null);
@@ -17630,9 +17630,9 @@ Actual: ` + p3.attribValue
17630
17630
  this.$from = e, this.$to = t;
17631
17631
  }
17632
17632
  };
17633
- let yo$2 = false;
17633
+ let yo$1 = false;
17634
17634
  function bo$2(r22) {
17635
- !yo$2 && !r22.parent.inlineContent && (yo$2 = true, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r22.parent.type.name + ")"));
17635
+ !yo$1 && !r22.parent.inlineContent && (yo$1 = true, console.warn("TextSelection endpoint not pointing into a node with inline content (" + r22.parent.type.name + ")"));
17636
17636
  }
17637
17637
  let tt$3 = class tt2 extends ve$2 {
17638
17638
  /**
@@ -22273,7 +22273,7 @@ Actual: ` + p3.attribValue
22273
22273
  let E3 = A ? be$2(A.attributes["w:w"]) : null;
22274
22274
  const F3 = A?.attributes["w:type"];
22275
22275
  !E3 && i3 && (E3 = i3);
22276
- const w = Io$1(r22), { attributes: B } = w || {}, D3 = {
22276
+ const w = Io$2(r22), { attributes: B } = w || {}, D3 = {
22277
22277
  color: l?.elements?.find((Y3) => Y3.name === "w:shd")?.attributes["w:fill"]
22278
22278
  }, N3 = l?.elements?.find((Y3) => Y3.name === "w:gridSpan")?.attributes["w:val"], q3 = l?.elements?.find((Y3) => Y3.name === "w:tcMar"), C3 = l?.elements?.find((Y3) => Y3.name === "w:vAlign")?.attributes["w:val"] || "top", J3 = {}, oe2 = du$2(s, u) || {};
22279
22279
  J3.cellMargins = om$1(q3, oe2);
@@ -22296,7 +22296,7 @@ Actual: ` + p3.attribValue
22296
22296
  for (let se2 of Z3) {
22297
22297
  const L3 = se2.elements.findIndex((P) => P.name === "w:tc"), H3 = se2.elements[L3 + $3];
22298
22298
  if (!H3) break;
22299
- const V = Io$1(H3), { attributes: K3 } = V || {};
22299
+ const V = Io$2(H3), { attributes: K3 } = V || {};
22300
22300
  if (!V && !K3 || K3 && K3["w:val"] === "restart")
22301
22301
  break;
22302
22302
  ne2++, se2.elements.splice(L3 + $3, 1);
@@ -22309,7 +22309,7 @@ Actual: ` + p3.attribValue
22309
22309
  attrs: J3
22310
22310
  };
22311
22311
  }
22312
- const Io$1 = (r22) => r22.elements.find((n) => n.name === "w:tcPr")?.elements?.find((n) => n.name === "w:vMerge"), or$2 = (r22, e, t = {}) => {
22312
+ const Io$2 = (r22) => r22.elements.find((n) => n.name === "w:tcPr")?.elements?.find((n) => n.name === "w:vMerge"), or$2 = (r22, e, t = {}) => {
22313
22313
  const n = r22?.elements?.find((i3) => i3.name === `w:${e}`)?.attributes;
22314
22314
  if (n && n["w:val"] !== "nil") {
22315
22315
  const i3 = {}, s = n["w:color"];
@@ -23207,7 +23207,7 @@ Actual: ` + p3.attribValue
23207
23207
  const s = i3.elements?.filter((o) => o.name === "w:fldChar") || [];
23208
23208
  if (s.length)
23209
23209
  if (s.length > 1) {
23210
- const o = Lo$2([i3]);
23210
+ const o = Lo$1([i3]);
23211
23211
  e.push(...o);
23212
23212
  } else {
23213
23213
  const o = s[0].attributes["w:fldCharType"];
@@ -23215,14 +23215,14 @@ Actual: ` + p3.attribValue
23215
23215
  n = true, t.push(i3);
23216
23216
  else if (o === "end") {
23217
23217
  n = false, t.push(i3);
23218
- const a = Lo$2(t);
23218
+ const a = Lo$1(t);
23219
23219
  e.push(...a), t = [];
23220
23220
  }
23221
23221
  }
23222
23222
  n ? t.push(i3) : e.push(i3);
23223
23223
  }), e;
23224
23224
  }
23225
- const Lo$2 = (r22 = []) => {
23225
+ const Lo$1 = (r22 = []) => {
23226
23226
  let e = [], t = false, n = false;
23227
23227
  const i3 = r22.findIndex(
23228
23228
  (h3) => h3.elements?.some((g) => g.name === "w:fldChar" && g.attributes["w:fldCharType"] === "separate")
@@ -23916,7 +23916,7 @@ Actual: ` + p3.attribValue
23916
23916
  return;
23917
23917
  }
23918
23918
  }
23919
- static updateDocumentVersion(e = this.convertedXml, t = "0.10.60") {
23919
+ static updateDocumentVersion(e = this.convertedXml, t = "0.10.62") {
23920
23920
  const n = "docProps/custom.xml";
23921
23921
  e[n] || (e[n] = Fu$2());
23922
23922
  const i3 = e["docProps/custom.xml"];
@@ -24177,7 +24177,7 @@ Actual: ` + p3.attribValue
24177
24177
  function Fu$2() {
24178
24178
  return Gf$2;
24179
24179
  }
24180
- function Bu$2(r22 = 2, e = "0.10.60") {
24180
+ function Bu$2(r22 = 2, e = "0.10.62") {
24181
24181
  return {
24182
24182
  type: "element",
24183
24183
  name: "property",
@@ -26647,15 +26647,15 @@ Actual: ` + p3.attribValue
26647
26647
  throw TypeError(e);
26648
26648
  };
26649
26649
  var vf$1 = (e, t, n) => t in e ? wf$1(e, t, { enumerable: true, configurable: true, writable: true, value: n }) : e[t] = n;
26650
- var I$2 = (e, t, n) => vf$1(e, typeof t != "symbol" ? t + "" : t, n), Ko$1 = (e, t, n) => t.has(e) || ta$1("Cannot " + n);
26651
- var Qe$2 = (e, t, n) => (Ko$1(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ta$1("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Xo$1 = (e, t, n, r) => (Ko$1(e, t, "write to private field"), t.set(e, n), n), N$1 = (e, t, n) => (Ko$1(e, t, "access private method"), n);
26652
- function Lo$1(e) {
26650
+ var I$2 = (e, t, n) => vf$1(e, typeof t != "symbol" ? t + "" : t, n), Xo$1 = (e, t, n) => t.has(e) || ta$1("Cannot " + n);
26651
+ var Qe$2 = (e, t, n) => (Xo$1(e, t, "read from private field"), n ? n.call(e) : t.get(e)), ft = (e, t, n) => t.has(e) ? ta$1("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Jo$1 = (e, t, n, r) => (Xo$1(e, t, "write to private field"), t.set(e, n), n), N$1 = (e, t, n) => (Xo$1(e, t, "access private method"), n);
26652
+ function Fo$1(e) {
26653
26653
  const { from: t, to: n, empty: r } = e.selection, o = [];
26654
26654
  return r ? (e.storedMarks && o.push(...e.storedMarks), o.push(...e.selection.$head.marks())) : e.doc.nodesBetween(t, n, (i3) => {
26655
26655
  o.push(...i3.marks);
26656
26656
  }), o;
26657
26657
  }
26658
- const Fo$1 = (e, t, n = false) => {
26658
+ const Bo$1 = (e, t, n = false) => {
26659
26659
  const { selection: r, doc: o } = e, { $from: i3, $to: s } = r, a = i3.marks().find((u) => u.type === t), l = s.marks().find((u) => u.type === t);
26660
26660
  let c3;
26661
26661
  const d = [];
@@ -26672,12 +26672,12 @@ Actual: ` + p3.attribValue
26672
26672
  }), n ? d : c3;
26673
26673
  };
26674
26674
  function jf$1(e) {
26675
- const { state: t } = e, { selection: n } = t, r = Lo$1(t), 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");
26675
+ const { state: t } = e, { selection: n } = t, r = Fo$1(t), 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");
26676
26676
  if (i3.push(...s.flatMap(la$1)), o) {
26677
26677
  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");
26678
26678
  i3.push(...f3), i3.push(...p3.flatMap(la$1));
26679
26679
  }
26680
- const a = t.schema.marks.link, l = Fo$1(t, a);
26680
+ const a = t.schema.marks.link, l = Bo$1(t, a);
26681
26681
  if (l) {
26682
26682
  let { from: f3, to: p3, attrs: h3 } = l;
26683
26683
  n.from >= f3 && n.to <= p3 && i3.push({ name: "link", attrs: h3 });
@@ -26709,10 +26709,10 @@ Actual: ` + p3.attribValue
26709
26709
  return {};
26710
26710
  }
26711
26711
  }
26712
- var yo$1 = 200, ue = function() {
26712
+ var bo$1 = 200, ue = function() {
26713
26713
  };
26714
26714
  ue.prototype.append = function(t) {
26715
- return t.length ? (t = ue.from(t), !this.length && t || t.length < yo$1 && this.leafAppend(t) || this.length < yo$1 && t.leafPrepend(this) || this.appendInner(t)) : this;
26715
+ return t.length ? (t = ue.from(t), !this.length && t || t.length < bo$1 && this.leafAppend(t) || this.length < bo$1 && t.leafPrepend(this) || this.appendInner(t)) : this;
26716
26716
  };
26717
26717
  ue.prototype.prepend = function(t) {
26718
26718
  return t.length ? ue.from(t).append(this) : this;
@@ -26761,10 +26761,10 @@ Actual: ` + p3.attribValue
26761
26761
  if (o(this.values[l], a + l) === false)
26762
26762
  return false;
26763
26763
  }, t.prototype.leafAppend = function(o) {
26764
- if (this.length + o.length <= yo$1)
26764
+ if (this.length + o.length <= bo$1)
26765
26765
  return new t(this.values.concat(o.flatten()));
26766
26766
  }, t.prototype.leafPrepend = function(o) {
26767
- if (this.length + o.length <= yo$1)
26767
+ if (this.length + o.length <= bo$1)
26768
26768
  return new t(o.flatten().concat(this.values));
26769
26769
  }, n.length.get = function() {
26770
26770
  return this.values.length;
@@ -26956,9 +26956,9 @@ Actual: ` + p3.attribValue
26956
26956
  if (s && s.getMeta(vt))
26957
26957
  return s.getMeta(vt).redo ? new Tt$1(e.done.addTransform(n, void 0, r, ao$2(t)), e.undone, ca$1(n.mapping.maps), e.prevTime, e.prevComposition) : new Tt$1(e.done, e.undone.addTransform(n, void 0, r, ao$2(t)), null, e.prevTime, e.prevComposition);
26958
26958
  if (n.getMeta("addToHistory") !== false && !(s && s.getMeta("addToHistory") === false)) {
26959
- let a = n.getMeta("composition"), l = e.prevTime == 0 || !s && e.prevComposition != a && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Yf$1(n, e.prevRanges)), c3 = s ? ei$1(e.prevRanges, n.mapping) : ca$1(n.mapping.maps);
26959
+ let a = n.getMeta("composition"), l = e.prevTime == 0 || !s && e.prevComposition != a && (e.prevTime < (n.time || 0) - r.newGroupDelay || !Yf$1(n, e.prevRanges)), c3 = s ? ti$1(e.prevRanges, n.mapping) : ca$1(n.mapping.maps);
26960
26960
  return new Tt$1(e.done.addTransform(n, l ? t.selection.getBookmark() : void 0, r, ao$2(t)), Ye$1.empty, c3, n.time, a ?? e.prevComposition);
26961
- } else return (i3 = n.getMeta("rebased")) ? new Tt$1(e.done.rebased(n, i3), e.undone.rebased(n, i3), ei$1(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Tt$1(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), ei$1(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
26961
+ } else return (i3 = n.getMeta("rebased")) ? new Tt$1(e.done.rebased(n, i3), e.undone.rebased(n, i3), ti$1(e.prevRanges, n.mapping), e.prevTime, e.prevComposition) : new Tt$1(e.done.addMaps(n.mapping.maps), e.undone.addMaps(n.mapping.maps), ti$1(e.prevRanges, n.mapping), e.prevTime, e.prevComposition);
26962
26962
  }
26963
26963
  function Yf$1(e, t) {
26964
26964
  if (!t)
@@ -26977,7 +26977,7 @@ Actual: ` + p3.attribValue
26977
26977
  e[n].forEach((r, o, i3, s) => t.push(i3, s));
26978
26978
  return t;
26979
26979
  }
26980
- function ei$1(e, t) {
26980
+ function ti$1(e, t) {
26981
26981
  if (!e)
26982
26982
  return null;
26983
26983
  let n = [];
@@ -26994,18 +26994,18 @@ Actual: ` + p3.attribValue
26994
26994
  let s = i3.selection.resolve(i3.transform.doc), a = (n ? e.done : e.undone).addTransform(i3.transform, t.selection.getBookmark(), o, r), l = new Tt$1(n ? a : i3.remaining, n ? i3.remaining : a, null, 0, -1);
26995
26995
  return i3.transform.setSelection(s).setMeta(vt, { redo: n, historyState: l });
26996
26996
  }
26997
- let ti$1 = false, da$1 = null;
26997
+ let ni = false, da$1 = null;
26998
26998
  function ao$2(e) {
26999
26999
  let t = e.plugins;
27000
27000
  if (da$1 != t) {
27001
- ti$1 = false, da$1 = t;
27001
+ ni = false, da$1 = t;
27002
27002
  for (let n = 0; n < t.length; n++)
27003
27003
  if (t[n].spec.historyPreserveItems) {
27004
- ti$1 = true;
27004
+ ni = true;
27005
27005
  break;
27006
27006
  }
27007
27007
  }
27008
- return ti$1;
27008
+ return ni;
27009
27009
  }
27010
27010
  const vt = new _p$1("history"), Zf$1 = new _p$1("closeHistory");
27011
27011
  function Qf$1(e = {}) {
@@ -27113,7 +27113,7 @@ Actual: ` + p3.attribValue
27113
27113
  "Mod-y": () => this.editor.commands.redo()
27114
27114
  };
27115
27115
  }
27116
- }), ni = globalThis || void 0 || self, ye$1 = function(e) {
27116
+ }), ri = globalThis || void 0 || self, ye$1 = function(e) {
27117
27117
  for (var t = 0; ; t++)
27118
27118
  if (e = e.previousSibling, !e)
27119
27119
  return t;
@@ -27121,12 +27121,12 @@ Actual: ` + p3.attribValue
27121
27121
  let t = e.assignedSlot || e.parentNode;
27122
27122
  return t && t.nodeType == 11 ? t.host : t;
27123
27123
  };
27124
- let xi$1 = null;
27124
+ let Ci$1 = null;
27125
27125
  const mt$2 = function(e, t, n) {
27126
- let r = xi$1 || (xi$1 = document.createRange());
27126
+ let r = Ci$1 || (Ci$1 = document.createRange());
27127
27127
  return r.setEnd(e, n ?? e.nodeValue.length), r.setStart(e, t || 0), r;
27128
27128
  }, ep = function() {
27129
- xi$1 = null;
27129
+ Ci$1 = null;
27130
27130
  }, cn$2 = function(e, t, n, r) {
27131
27131
  return n && (ua$1(e, t, n, r, -1) || ua$1(e, t, n, r, 1));
27132
27132
  }, tp = /^(img|br|input|textarea|hr)$/i;
@@ -27194,7 +27194,7 @@ Actual: ` + p3.attribValue
27194
27194
  ;
27195
27195
  return t && t.node && t.node.isBlock && (t.dom == e || t.contentDOM == e);
27196
27196
  }
27197
- const Bo$1 = function(e) {
27197
+ const zo$1 = function(e) {
27198
27198
  return e.focusNode && cn$2(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset);
27199
27199
  };
27200
27200
  function Zt$2(e, t) {
@@ -27221,9 +27221,9 @@ Actual: ` + p3.attribValue
27221
27221
  return { node: r.startContainer, offset: Math.min($e$1(r.startContainer), r.startOffset) };
27222
27222
  }
27223
27223
  }
27224
- const st$1 = typeof navigator < "u" ? navigator : null, fa$1 = typeof document < "u" ? document : null, jt$2 = st$1 && st$1.userAgent || "", Ci$1 = /Edge\/(\d+)/.exec(jt$2), fc$1 = /MSIE \d/.exec(jt$2), Mi$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt$2), De$1 = !!(fc$1 || Mi$1 || Ci$1), Lt = fc$1 ? document.documentMode : Mi$1 ? +Mi$1[1] : Ci$1 ? +Ci$1[1] : 0, Ge$1 = !De$1 && /gecko\/(\d+)/i.test(jt$2);
27224
+ const st$1 = typeof navigator < "u" ? navigator : null, fa$1 = typeof document < "u" ? document : null, jt$2 = st$1 && st$1.userAgent || "", Mi$1 = /Edge\/(\d+)/.exec(jt$2), fc$1 = /MSIE \d/.exec(jt$2), Si$1 = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(jt$2), De$1 = !!(fc$1 || Si$1 || Mi$1), Lt = fc$1 ? document.documentMode : Si$1 ? +Si$1[1] : Mi$1 ? +Mi$1[1] : 0, Ge$1 = !De$1 && /gecko\/(\d+)/i.test(jt$2);
27225
27225
  Ge$1 && +(/Firefox\/(\d+)/.exec(jt$2) || [0, 0])[1];
27226
- const Si$1 = !De$1 && /Chrome\/(\d+)/.exec(jt$2), ve$1 = !!Si$1, pc$1 = Si$1 ? +Si$1[1] : 0, Me$1 = !De$1 && !!st$1 && /Apple Computer/.test(st$1.vendor), Nn$2 = Me$1 && (/Mobile\/\w+/.test(jt$2) || !!st$1 && st$1.maxTouchPoints > 2), _e = Nn$2 || (st$1 ? /Mac/.test(st$1.platform) : false), ap = st$1 ? /Win/.test(st$1.platform) : false, bt$1 = /Android \d/.test(jt$2), Nr = !!fa$1 && "webkitFontSmoothing" in fa$1.documentElement.style, lp = Nr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
27226
+ const Ai$1 = !De$1 && /Chrome\/(\d+)/.exec(jt$2), ve$1 = !!Ai$1, pc$1 = Ai$1 ? +Ai$1[1] : 0, Me$1 = !De$1 && !!st$1 && /Apple Computer/.test(st$1.vendor), Nn$2 = Me$1 && (/Mobile\/\w+/.test(jt$2) || !!st$1 && st$1.maxTouchPoints > 2), _e = Nn$2 || (st$1 ? /Mac/.test(st$1.platform) : false), ap = st$1 ? /Win/.test(st$1.platform) : false, bt$1 = /Android \d/.test(jt$2), Nr = !!fa$1 && "webkitFontSmoothing" in fa$1.documentElement.style, lp = Nr ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
27227
27227
  function cp(e) {
27228
27228
  let t = e.defaultView && e.defaultView.visualViewport;
27229
27229
  return t ? {
@@ -27459,14 +27459,14 @@ Actual: ` + p3.attribValue
27459
27459
  if (i3 == null && o && (n < 0 || o == $e$1(r))) {
27460
27460
  let l = r.childNodes[o - 1];
27461
27461
  if (l.nodeType == 1)
27462
- return ri(l.getBoundingClientRect(), false);
27462
+ return oi$1(l.getBoundingClientRect(), false);
27463
27463
  }
27464
27464
  if (i3 == null && o < $e$1(r)) {
27465
27465
  let l = r.childNodes[o];
27466
27466
  if (l.nodeType == 1)
27467
- return ri(l.getBoundingClientRect(), true);
27467
+ return oi$1(l.getBoundingClientRect(), true);
27468
27468
  }
27469
- return ri(r.getBoundingClientRect(), n >= 0);
27469
+ return oi$1(r.getBoundingClientRect(), n >= 0);
27470
27470
  }
27471
27471
  if (i3 == null && o && (n < 0 || o == $e$1(r))) {
27472
27472
  let l = r.childNodes[o - 1], c3 = l.nodeType == 3 ? mt$2(l, $e$1(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
@@ -27489,7 +27489,7 @@ Actual: ` + p3.attribValue
27489
27489
  let n = t ? e.left : e.right;
27490
27490
  return { top: e.top, bottom: e.bottom, left: n, right: n };
27491
27491
  }
27492
- function ri(e, t) {
27492
+ function oi$1(e, t) {
27493
27493
  if (e.height == 0)
27494
27494
  return e;
27495
27495
  let n = t ? e.top : e.bottom;
@@ -27980,7 +27980,7 @@ Actual: ` + p3.attribValue
27980
27980
  }
27981
27981
  slice(t, n, r) {
27982
27982
  let o = dn2.create(this.parent, this.mark, true, r), i3 = this.children, s = this.size;
27983
- n < s && (i3 = Oi$1(i3, n, s, r)), t > 0 && (i3 = Oi$1(i3, 0, t, r));
27983
+ n < s && (i3 = Ti$1(i3, n, s, r)), t > 0 && (i3 = Ti$1(i3, 0, t, r));
27984
27984
  for (let a = 0; a < i3.length; a++)
27985
27985
  i3[a].parent = o;
27986
27986
  return o.children = i3, o;
@@ -28020,7 +28020,7 @@ Actual: ` + p3.attribValue
28020
28020
  } else d || ({ dom: d, contentDOM: u } = qa$2.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
28021
28021
  !u && !n.isText && d.nodeName != "BR" && (d.hasAttribute("contenteditable") || (d.contentEditable = "false"), n.type.spec.draggable && (d.draggable = true));
28022
28022
  let f3 = d;
28023
- return d = Mc$1(d, r, n), c3 ? l = new Sp(t, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new zo$1(t, n, r, o, d, f3, i3) : new Ft2(t, n, r, o, d, u || null, f3, i3, s + 1);
28023
+ return d = Mc$1(d, r, n), c3 ? l = new Sp(t, n, r, o, d, u || null, f3, c3, i3, s + 1) : n.isText ? new _o$1(t, n, r, o, d, f3, i3) : new Ft2(t, n, r, o, d, u || null, f3, i3, s + 1);
28024
28024
  }
28025
28025
  parseRule() {
28026
28026
  if (this.node.type.spec.reparseInView)
@@ -28043,7 +28043,7 @@ Actual: ` + p3.attribValue
28043
28043
  return t;
28044
28044
  }
28045
28045
  matchesNode(t, n, r) {
28046
- return this.dirty == He$2 && t.eq(this.node) && bo$1(n, this.outerDeco) && r.eq(this.innerDeco);
28046
+ return this.dirty == He$2 && t.eq(this.node) && wo$1(n, this.outerDeco) && r.eq(this.innerDeco);
28047
28047
  }
28048
28048
  get size() {
28049
28049
  return this.node.nodeSize;
@@ -28090,7 +28090,7 @@ Actual: ` + p3.attribValue
28090
28090
  i3.pmViewDesc && (i3.pmViewDesc = void 0);
28091
28091
  }
28092
28092
  let s = new Mp(this, i3, n, o);
28093
- t.input.compositionNodes.push(s), this.children = Oi$1(this.children, r, r + o.length, t, s);
28093
+ t.input.compositionNodes.push(s), this.children = Ti$1(this.children, r, r + o.length, t, s);
28094
28094
  }
28095
28095
  // If this desc must be updated to match the given node decoration,
28096
28096
  // do so and return true.
@@ -28101,10 +28101,10 @@ Actual: ` + p3.attribValue
28101
28101
  this.updateOuterDeco(n), this.node = t, this.innerDeco = r, this.contentDOM && this.updateChildren(o, this.posAtStart), this.dirty = He$2;
28102
28102
  }
28103
28103
  updateOuterDeco(t) {
28104
- if (bo$1(t, this.outerDeco))
28104
+ if (wo$1(t, this.outerDeco))
28105
28105
  return;
28106
28106
  let n = this.nodeDOM.nodeType != 1, r = this.dom;
28107
- this.dom = Cc$1(this.dom, this.nodeDOM, Ai$1(this.outerDeco, this.node, n), Ai$1(t, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
28107
+ this.dom = Cc$1(this.dom, this.nodeDOM, Oi$1(this.outerDeco, this.node, n), Oi$1(t, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = t;
28108
28108
  }
28109
28109
  // Mark this node as being the selected node.
28110
28110
  selectNode() {
@@ -28123,7 +28123,7 @@ Actual: ` + p3.attribValue
28123
28123
  let i3 = new Ft$1(void 0, e, t, n, r, r, r, o, 0);
28124
28124
  return i3.contentDOM && i3.updateChildren(o, 0), i3;
28125
28125
  }
28126
- let zo$1 = class zo2 extends Ft$1 {
28126
+ let _o$1 = class _o2 extends Ft$1 {
28127
28127
  constructor(t, n, r, o, i3, s, a) {
28128
28128
  super(t, n, r, o, i3, null, s, a, 0);
28129
28129
  }
@@ -28154,7 +28154,7 @@ Actual: ` + p3.attribValue
28154
28154
  }
28155
28155
  slice(t, n, r) {
28156
28156
  let o = this.node.cut(t, n), i3 = document.createTextNode(o.text);
28157
- return new zo2(this.parent, o, this.outerDeco, this.innerDeco, i3, i3, r);
28157
+ return new _o2(this.parent, o, this.outerDeco, this.innerDeco, i3, i3, r);
28158
28158
  }
28159
28159
  markDirty(t, n) {
28160
28160
  super.markDirty(t, n), this.dom != this.nodeDOM && (t == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = at$1);
@@ -28238,7 +28238,7 @@ Actual: ` + p3.attribValue
28238
28238
  };
28239
28239
  tr$1.prototype = /* @__PURE__ */ Object.create(null);
28240
28240
  const en$1 = [new tr$1()];
28241
- function Ai$1(e, t, n) {
28241
+ function Oi$1(e, t, n) {
28242
28242
  if (e.length == 0)
28243
28243
  return en$1;
28244
28244
  let r = n ? en$1[0] : new tr$1(), o = [r];
@@ -28291,9 +28291,9 @@ Actual: ` + p3.attribValue
28291
28291
  }
28292
28292
  }
28293
28293
  function Mc$1(e, t, n) {
28294
- return Cc$1(e, e, en$1, Ai$1(t, n, e.nodeType != 1));
28294
+ return Cc$1(e, e, en$1, Oi$1(t, n, e.nodeType != 1));
28295
28295
  }
28296
- function bo$1(e, t) {
28296
+ function wo$1(e, t) {
28297
28297
  if (e.length != t.length)
28298
28298
  return false;
28299
28299
  for (let n = 0; n < e.length; n++)
@@ -28395,7 +28395,7 @@ Actual: ` + p3.attribValue
28395
28395
  let c3 = this.preMatch.matched.get(l);
28396
28396
  if (c3 != null && c3 != i3)
28397
28397
  return false;
28398
- let d = l.dom, u, f3 = this.isLocked(d) && !(t.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == t.text && l.dirty != at$1 && bo$1(n, l.outerDeco));
28398
+ let d = l.dom, u, f3 = this.isLocked(d) && !(t.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == t.text && l.dirty != at$1 && wo$1(n, l.outerDeco));
28399
28399
  if (!f3 && l.update(t, n, r, o))
28400
28400
  return this.destroyBetween(this.index, a), l.dom != d && (this.changed = true), this.index++, true;
28401
28401
  if (!f3 && (u = this.recreateWrapper(l, t, n, r, o, s)))
@@ -28408,7 +28408,7 @@ Actual: ` + p3.attribValue
28408
28408
  // When a node with content is replaced by a different node with
28409
28409
  // identical content, move over its children.
28410
28410
  recreateWrapper(t, n, r, o, i3, s) {
28411
- if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !bo$1(r, t.outerDeco) || !o.eq(t.innerDeco))
28411
+ if (t.dirty || n.isAtom || !t.children.length || !t.node.content.eq(n.content) || !wo$1(r, t.outerDeco) || !o.eq(t.innerDeco))
28412
28412
  return null;
28413
28413
  let a = Ft$1.create(this.top, n, r, o, i3, s);
28414
28414
  if (a.contentDOM) {
@@ -28439,7 +28439,7 @@ Actual: ` + p3.attribValue
28439
28439
  for (; t instanceof dn$2; )
28440
28440
  n = t, t = n.children[n.children.length - 1];
28441
28441
  (!t || // Empty textblock
28442
- !(t instanceof zo$1) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((Me$1 || ve$1) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
28442
+ !(t instanceof _o$1) || /\n$/.test(t.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(t.node.text)) && ((Me$1 || ve$1) && t && t.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
28443
28443
  }
28444
28444
  addHackNode(t, n) {
28445
28445
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(t))
@@ -28563,7 +28563,7 @@ Actual: ` + p3.attribValue
28563
28563
  }
28564
28564
  return -1;
28565
28565
  }
28566
- function Oi$1(e, t, n, r, o) {
28566
+ function Ti$1(e, t, n, r, o) {
28567
28567
  let i3 = [];
28568
28568
  for (let s = 0, a = 0; s < e.length; s++) {
28569
28569
  let l = e[s], c3 = a, d = a += l.size;
@@ -28579,7 +28579,7 @@ Actual: ` + p3.attribValue
28579
28579
  if (s < 0)
28580
28580
  return null;
28581
28581
  let a = r.resolve(s), l, c3;
28582
- if (Bo$1(n)) {
28582
+ if (zo$1(n)) {
28583
28583
  for (l = s; o && !o.node; )
28584
28584
  o = o.parent;
28585
28585
  let u = o.node;
@@ -28635,15 +28635,15 @@ Actual: ` + p3.attribValue
28635
28635
  function xa$1(e, t) {
28636
28636
  let { node: n, offset: r } = e.docView.domFromPos(t, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i3 = r ? n.childNodes[r - 1] : null;
28637
28637
  if (Me$1 && o && o.contentEditable == "false")
28638
- return oi$1(o);
28638
+ return ii$1(o);
28639
28639
  if ((!o || o.contentEditable == "false") && (!i3 || i3.contentEditable == "false")) {
28640
28640
  if (o)
28641
- return oi$1(o);
28641
+ return ii$1(o);
28642
28642
  if (i3)
28643
- return oi$1(i3);
28643
+ return ii$1(i3);
28644
28644
  }
28645
28645
  }
28646
- function oi$1(e) {
28646
+ function ii$1(e) {
28647
28647
  return e.contentEditable = "true", Me$1 && e.draggable && (e.draggable = false, e.wasDraggable = true), e;
28648
28648
  }
28649
28649
  function Ca$1(e) {
@@ -28696,7 +28696,7 @@ Actual: ` + p3.attribValue
28696
28696
  let t = e.docView.domFromPos(e.state.selection.anchor, 0), n = e.domSelectionRange();
28697
28697
  return cn$2(t.node, t.offset, n.anchorNode, n.anchorOffset);
28698
28698
  }
28699
- function Ti$1(e, t) {
28699
+ function Di$1(e, t) {
28700
28700
  let { $anchor: n, $head: r } = e.selection, o = t > 0 ? n.max(r) : n.min(r), i3 = o.parent.inlineContent ? o.depth ? e.doc.resolve(t > 0 ? o.after() : o.before()) : null : o;
28701
28701
  return i3 && ve$2.findFrom(i3, t);
28702
28702
  }
@@ -28714,7 +28714,7 @@ Actual: ` + p3.attribValue
28714
28714
  return Dt$1(e, new tt$3(r.$anchor, s));
28715
28715
  } else if (r.empty) {
28716
28716
  if (e.endOfTextblock(t > 0 ? "forward" : "backward")) {
28717
- let o = Ti$1(e.state, t);
28717
+ let o = Di$1(e.state, t);
28718
28718
  return o && o instanceof We$3 ? Dt$1(e, o) : false;
28719
28719
  } else if (!(_e && n.indexOf("m") > -1)) {
28720
28720
  let o = r.$head, i3 = o.textOffset ? null : t < 0 ? o.nodeBefore : o.nodeAfter, s;
@@ -28728,12 +28728,12 @@ Actual: ` + p3.attribValue
28728
28728
  if (r instanceof We$3 && r.node.isInline)
28729
28729
  return Dt$1(e, new tt$3(t > 0 ? r.$to : r.$from));
28730
28730
  {
28731
- let o = Ti$1(e.state, t);
28731
+ let o = Di$1(e.state, t);
28732
28732
  return o ? Dt$1(e, o) : false;
28733
28733
  }
28734
28734
  }
28735
28735
  }
28736
- function wo$1(e) {
28736
+ function vo$2(e) {
28737
28737
  return e.nodeType == 3 ? e.nodeValue.length : e.childNodes.length;
28738
28738
  }
28739
28739
  function nr$1(e, t) {
@@ -28748,7 +28748,7 @@ Actual: ` + p3.attribValue
28748
28748
  if (!n)
28749
28749
  return;
28750
28750
  let o, i3, s = false;
28751
- for (Ge$1 && n.nodeType == 1 && r < wo$1(n) && nr$1(n.childNodes[r], -1) && (s = true); ; )
28751
+ for (Ge$1 && n.nodeType == 1 && r < vo$2(n) && nr$1(n.childNodes[r], -1) && (s = true); ; )
28752
28752
  if (r > 0) {
28753
28753
  if (n.nodeType != 1)
28754
28754
  break;
@@ -28769,7 +28769,7 @@ Actual: ` + p3.attribValue
28769
28769
  for (; a && nr$1(a, -1); )
28770
28770
  o = n.parentNode, i3 = ye$1(a), a = a.previousSibling;
28771
28771
  if (a)
28772
- n = a, r = wo$1(n);
28772
+ n = a, r = vo$2(n);
28773
28773
  else {
28774
28774
  if (n = n.parentNode, n == e.dom)
28775
28775
  break;
@@ -28777,13 +28777,13 @@ Actual: ` + p3.attribValue
28777
28777
  }
28778
28778
  }
28779
28779
  }
28780
- s ? Di$1(e, n, r) : o && Di$1(e, o, i3);
28780
+ s ? Ni$1(e, n, r) : o && Ni$1(e, o, i3);
28781
28781
  }
28782
28782
  function Bp(e) {
28783
28783
  let t = e.domSelectionRange(), n = t.focusNode, r = t.focusOffset;
28784
28784
  if (!n)
28785
28785
  return;
28786
- let o = wo$1(n), i3, s;
28786
+ let o = vo$2(n), i3, s;
28787
28787
  for (; ; )
28788
28788
  if (r < o) {
28789
28789
  if (n.nodeType != 1)
@@ -28801,7 +28801,7 @@ Actual: ` + p3.attribValue
28801
28801
  for (; a && nr$1(a, 1); )
28802
28802
  i3 = a.parentNode, s = ye$1(a) + 1, a = a.nextSibling;
28803
28803
  if (a)
28804
- n = a, r = 0, o = wo$1(n);
28804
+ n = a, r = 0, o = vo$2(n);
28805
28805
  else {
28806
28806
  if (n = n.parentNode, n == e.dom)
28807
28807
  break;
@@ -28809,7 +28809,7 @@ Actual: ` + p3.attribValue
28809
28809
  }
28810
28810
  }
28811
28811
  }
28812
- i3 && Di$1(e, i3, s);
28812
+ i3 && Ni$1(e, i3, s);
28813
28813
  }
28814
28814
  function Tc$1(e) {
28815
28815
  let t = e.pmViewDesc;
@@ -28839,7 +28839,7 @@ Actual: ` + p3.attribValue
28839
28839
  e = n, t = e.childNodes.length;
28840
28840
  }
28841
28841
  }
28842
- function Di$1(e, t, n) {
28842
+ function Ni$1(e, t, n) {
28843
28843
  if (t.nodeType != 3) {
28844
28844
  let i3, s;
28845
28845
  (s = zp(t, n)) ? (t = s, n = 0) : (i3 = _p(t, n)) && (t = i3, n = i3.nodeValue.length);
@@ -28847,7 +28847,7 @@ Actual: ` + p3.attribValue
28847
28847
  let r = e.domSelection();
28848
28848
  if (!r)
28849
28849
  return;
28850
- if (Bo$1(r)) {
28850
+ if (zo$1(r)) {
28851
28851
  let i3 = document.createRange();
28852
28852
  i3.setEnd(t, n), i3.setStart(t, n), r.removeAllRanges(), r.addRange(i3);
28853
28853
  } else r.extend && r.extend(t, n);
@@ -28880,7 +28880,7 @@ Actual: ` + p3.attribValue
28880
28880
  return false;
28881
28881
  let { $from: o, $to: i3 } = r;
28882
28882
  if (!o.parent.inlineContent || e.endOfTextblock(t < 0 ? "up" : "down")) {
28883
- let s = Ti$1(e.state, t);
28883
+ let s = Di$1(e.state, t);
28884
28884
  if (s && s instanceof We$3)
28885
28885
  return Dt$1(e, s);
28886
28886
  }
@@ -29075,12 +29075,12 @@ Actual: ` + p3.attribValue
29075
29075
  let n = e.content.replaceChild(e.childCount - 1, Pc$1(e.lastChild, t - 1)), r = e.contentMatchAt(e.childCount).fillBefore(ee$2.empty, true);
29076
29076
  return e.copy(n.append(r));
29077
29077
  }
29078
- function Ni$1(e, t, n, r, o, i3) {
29078
+ function Ei$1(e, t, n, r, o, i3) {
29079
29079
  let s = t < 0 ? e.firstChild : e.lastChild, a = s.content;
29080
- return e.childCount > 1 && (i3 = 0), o < r - 1 && (a = Ni$1(a, t, n, r, o + 1, i3)), o >= n && (a = t < 0 ? s.contentMatchAt(0).fillBefore(a, i3 <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(ee$2.empty, true))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, s.copy(a));
29080
+ return e.childCount > 1 && (i3 = 0), o < r - 1 && (a = Ei$1(a, t, n, r, o + 1, i3)), o >= n && (a = t < 0 ? s.contentMatchAt(0).fillBefore(a, i3 <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(ee$2.empty, true))), e.replaceChild(t < 0 ? 0 : e.childCount - 1, s.copy(a));
29081
29081
  }
29082
29082
  function Ea$1(e, t, n) {
29083
- return t < e.openStart && (e = new ae$3(Ni$1(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new ae$3(Ni$1(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
29083
+ return t < e.openStart && (e = new ae$3(Ei$1(e.content, -1, t, e.openStart, 0, e.openEnd), t, e.openEnd)), n < e.openEnd && (e = new ae$3(Ei$1(e.content, 1, n, e.openEnd, 0, 0), e.openStart, n)), e;
29084
29084
  }
29085
29085
  const Ic$1 = {
29086
29086
  thead: ["table"],
@@ -29097,10 +29097,10 @@ Actual: ` + p3.attribValue
29097
29097
  function Rc$1() {
29098
29098
  return Pa$1 || (Pa$1 = document.implementation.createHTMLDocument("title"));
29099
29099
  }
29100
- let ii$1 = null;
29100
+ let si$1 = null;
29101
29101
  function Up(e) {
29102
29102
  let t = window.trustedTypes;
29103
- return t ? (ii$1 || (ii$1 = t.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), ii$1.createHTML(e)) : e;
29103
+ return t ? (si$1 || (si$1 = t.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), si$1.createHTML(e)) : e;
29104
29104
  }
29105
29105
  function qp(e) {
29106
29106
  let t = /^(\s*<meta [^>]*>)*/.exec(e);
@@ -29149,7 +29149,7 @@ Actual: ` + p3.attribValue
29149
29149
  Qp(e, r) && !Ms(e, r) && (e.editable || !(r.type in Ae$1)) && n(e, r);
29150
29150
  }, Jp[t] ? { passive: true } : void 0);
29151
29151
  }
29152
- Me$1 && e.dom.addEventListener("input", () => null), Ei$1(e);
29152
+ Me$1 && e.dom.addEventListener("input", () => null), Pi$1(e);
29153
29153
  }
29154
29154
  function Pt$1(e, t) {
29155
29155
  e.input.lastSelectionOrigin = t, e.input.lastSelectionTime = Date.now();
@@ -29160,7 +29160,7 @@ Actual: ` + p3.attribValue
29160
29160
  e.dom.removeEventListener(t, e.input.eventHandlers[t]);
29161
29161
  clearTimeout(e.input.composingTimeout), clearTimeout(e.input.lastIOSEnterFallbackTimeout);
29162
29162
  }
29163
- function Ei$1(e) {
29163
+ function Pi$1(e) {
29164
29164
  e.someProp("handleDOMEvents", (t) => {
29165
29165
  for (let n in t)
29166
29166
  e.input.eventHandlers[n] || e.dom.addEventListener(n, e.input.eventHandlers[n] = (r) => Ms(e, r));
@@ -29212,7 +29212,7 @@ Actual: ` + p3.attribValue
29212
29212
  !/[\r\n]/.test(o) && !e.someProp("handleTextInput", (i3) => i3(e, r.$from.pos, r.$to.pos, o)) && e.dispatch(e.state.tr.insertText(o).scrollIntoView()), n.preventDefault();
29213
29213
  }
29214
29214
  };
29215
- function _o$1(e) {
29215
+ function $o$1(e) {
29216
29216
  return { left: e.clientX, top: e.clientY };
29217
29217
  }
29218
29218
  function th$1(e, t) {
@@ -29283,7 +29283,7 @@ Actual: ` + p3.attribValue
29283
29283
  }
29284
29284
  }
29285
29285
  function As(e) {
29286
- return vo$2(e);
29286
+ return ko$1(e);
29287
29287
  }
29288
29288
  const Lc$1 = _e ? "metaKey" : "ctrlKey";
29289
29289
  Se$1.mousedown = (e, t) => {
@@ -29291,7 +29291,7 @@ Actual: ` + p3.attribValue
29291
29291
  e.input.shiftKey = n.shiftKey;
29292
29292
  let r = As(e), o = Date.now(), i3 = "singleClick";
29293
29293
  o - e.input.lastClick.time < 500 && th$1(n, e.input.lastClick) && !n[Lc$1] && (e.input.lastClick.type == "singleClick" ? i3 = "doubleClick" : e.input.lastClick.type == "doubleClick" && (i3 = "tripleClick")), e.input.lastClick = { time: o, x: n.clientX, y: n.clientY, type: i3 };
29294
- let s = e.posAtCoords(_o$1(n));
29294
+ let s = e.posAtCoords($o$1(n));
29295
29295
  s && (i3 == "singleClick" ? (e.input.mouseDown && e.input.mouseDown.done(), e.input.mouseDown = new lh$1(e, s, n, !!r)) : (i3 == "doubleClick" ? ih$1 : sh$1)(e, s.pos, s.inside, n) ? n.preventDefault() : Pt$1(e, "pointer"));
29296
29296
  };
29297
29297
  let lh$1 = class lh {
@@ -29323,7 +29323,7 @@ Actual: ` + p3.attribValue
29323
29323
  if (this.done(), !this.view.dom.contains(t.target))
29324
29324
  return;
29325
29325
  let n = this.pos;
29326
- this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(_o$1(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Pt$1(this.view, "pointer") : oh$1(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
29326
+ this.view.state.doc != this.startDoc && (n = this.view.posAtCoords($o$1(t))), this.updateAllowDefault(t), this.allowDefault || !n ? Pt$1(this.view, "pointer") : oh$1(this.view, n.pos, n.inside, t, this.selectNode) ? t.preventDefault() : t.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
29327
29327
  Me$1 && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
29328
29328
  // cursor, but still report that the node is selected
29329
29329
  // when asked through getSelection. You'll then get a
@@ -29356,8 +29356,8 @@ Actual: ` + p3.attribValue
29356
29356
  e.domObserver.flush();
29357
29357
  let { state: t } = e, n = t.selection.$to;
29358
29358
  if (t.selection instanceof tt$3 && (t.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === false)))
29359
- e.markCursor = e.state.storedMarks || n.marks(), vo$2(e, true), e.markCursor = null;
29360
- else if (vo$2(e, !t.selection.empty), Ge$1 && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
29359
+ e.markCursor = e.state.storedMarks || n.marks(), ko$1(e, true), e.markCursor = null;
29360
+ else if (ko$1(e, !t.selection.empty), Ge$1 && t.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
29361
29361
  let r = e.domSelectionRange();
29362
29362
  for (let o = r.focusNode, i3 = r.focusOffset; o && o.nodeType == 1 && i3 != 0; ) {
29363
29363
  let s = i3 < 0 ? o.lastChild : o.childNodes[i3 - 1];
@@ -29379,7 +29379,7 @@ Actual: ` + p3.attribValue
29379
29379
  e.composing && (e.input.composing = false, e.input.compositionEndedAt = t.timeStamp, e.input.compositionPendingChanges = e.domObserver.pendingRecords().length ? e.input.compositionID : 0, e.input.compositionNode = null, e.input.compositionPendingChanges && Promise.resolve().then(() => e.domObserver.flush()), e.input.compositionID++, Bc$1(e, 20));
29380
29380
  };
29381
29381
  function Bc$1(e, t) {
29382
- clearTimeout(e.input.composingTimeout), t > -1 && (e.input.composingTimeout = setTimeout(() => vo$2(e), t));
29382
+ clearTimeout(e.input.composingTimeout), t > -1 && (e.input.composingTimeout = setTimeout(() => ko$1(e), t));
29383
29383
  }
29384
29384
  function zc$1(e) {
29385
29385
  for (e.composing && (e.input.composing = false, e.input.compositionEndedAt = uh$1()); e.input.compositionNodes.length > 0; )
@@ -29408,7 +29408,7 @@ Actual: ` + p3.attribValue
29408
29408
  let e = document.createEvent("Event");
29409
29409
  return e.initEvent("event", true, true), e.timeStamp;
29410
29410
  }
29411
- function vo$2(e, t = false) {
29411
+ function ko$1(e, t = false) {
29412
29412
  if (!(bt$1 && e.domObserver.flushingSoon >= 0)) {
29413
29413
  if (e.domObserver.forceFlush(), zc$1(e), t || e.docView && e.docView.dirty) {
29414
29414
  let n = ks(e);
@@ -29485,7 +29485,7 @@ Actual: ` + p3.attribValue
29485
29485
  let n = t, r = e.input.mouseDown;
29486
29486
  if (r && r.done(), !n.dataTransfer)
29487
29487
  return;
29488
- let o = e.state.selection, i3 = o.empty ? null : e.posAtCoords(_o$1(n)), s;
29488
+ let o = e.state.selection, i3 = o.empty ? null : e.posAtCoords($o$1(n)), s;
29489
29489
  if (!(i3 && i3.pos >= o.from && i3.pos <= (o instanceof We$3 ? o.to - 1 : o.to))) {
29490
29490
  if (r && r.mightDrag)
29491
29491
  s = We$3.create(e.state.doc, r.mightDrag.pos);
@@ -29508,7 +29508,7 @@ Actual: ` + p3.attribValue
29508
29508
  let n = t, r = e.dragging;
29509
29509
  if (e.dragging = null, !n.dataTransfer)
29510
29510
  return;
29511
- let o = e.posAtCoords(_o$1(n));
29511
+ let o = e.posAtCoords($o$1(n));
29512
29512
  if (!o)
29513
29513
  return;
29514
29514
  let i3 = e.state.doc.resolve(o.pos), s = r && r.slice;
@@ -29576,7 +29576,7 @@ Actual: ` + p3.attribValue
29576
29576
  return false;
29577
29577
  return true;
29578
29578
  }
29579
- let ko$1 = class ko2 {
29579
+ let xo$2 = class xo2 {
29580
29580
  constructor(t, n) {
29581
29581
  this.toDOM = t, this.spec = n || rn$2, this.side = this.spec.side || 0;
29582
29582
  }
@@ -29588,7 +29588,7 @@ Actual: ` + p3.attribValue
29588
29588
  return true;
29589
29589
  }
29590
29590
  eq(t) {
29591
- return this == t || t instanceof ko2 && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && hr$1(this.spec, t.spec));
29591
+ return this == t || t instanceof xo2 && (this.spec.key && this.spec.key == t.spec.key || this.toDOM == t.toDOM && hr$1(this.spec, t.spec));
29592
29592
  }
29593
29593
  destroy(t) {
29594
29594
  this.spec.destroy && this.spec.destroy(t);
@@ -29669,7 +29669,7 @@ Actual: ` + p3.attribValue
29669
29669
  widget's current document position.
29670
29670
  */
29671
29671
  static widget(t, n, r) {
29672
- return new _(t, t, new ko$1(n, r));
29672
+ return new _(t, t, new xo$2(n, r));
29673
29673
  }
29674
29674
  /**
29675
29675
  Creates an inline decoration, which adds the given attributes to
@@ -29703,7 +29703,7 @@ Actual: ` + p3.attribValue
29703
29703
  @internal
29704
29704
  */
29705
29705
  get widget() {
29706
- return this.type instanceof ko$1;
29706
+ return this.type instanceof xo$2;
29707
29707
  }
29708
29708
  }
29709
29709
  const Mn$1 = [], rn$2 = {};
@@ -29720,7 +29720,7 @@ Actual: ` + p3.attribValue
29720
29720
  you must make a copy if you want need to preserve that.
29721
29721
  */
29722
29722
  static create(t, n) {
29723
- return n.length ? xo$2(n, t, 0, rn$2) : we;
29723
+ return n.length ? Co$1(n, t, 0, rn$2) : we;
29724
29724
  }
29725
29725
  /**
29726
29726
  Find all decorations in this set which touch the given range
@@ -29779,7 +29779,7 @@ Actual: ` + p3.attribValue
29779
29779
  if (d = jc$1(n, a, c3)) {
29780
29780
  for (o || (o = this.children.slice()); i3 < o.length && o[i3] < l; )
29781
29781
  i3 += 3;
29782
- o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, xo$2(d, a, c3 + 1, rn$2)), i3 += 3;
29782
+ o[i3] == l ? o[i3 + 2] = o[i3 + 2].addInner(a, d, c3 + 1) : o.splice(i3, 0, l, l + a.nodeSize, Co$1(d, a, c3 + 1, rn$2)), i3 += 3;
29783
29783
  }
29784
29784
  });
29785
29785
  let s = Hc$1(i3 ? Wc$1(n) : n, -r);
@@ -29975,7 +29975,7 @@ Actual: ` + p3.attribValue
29975
29975
  l = true;
29976
29976
  }
29977
29977
  if (l) {
29978
- let c3 = yh$1(a, e, t, n, o, i3, s), d = xo$2(c3, r, 0, s);
29978
+ let c3 = yh$1(a, e, t, n, o, i3, s), d = Co$1(c3, r, 0, s);
29979
29979
  t = d.local;
29980
29980
  for (let u = 0; u < a.length; u += 3)
29981
29981
  a[u + 1] < 0 && (a.splice(u, 3), u -= 3);
@@ -30025,13 +30025,13 @@ Actual: ` + p3.attribValue
30025
30025
  e[n] != null && t.push(e[n]);
30026
30026
  return t;
30027
30027
  }
30028
- function xo$2(e, t, n, r) {
30028
+ function Co$1(e, t, n, r) {
30029
30029
  let o = [], i3 = false;
30030
30030
  t.forEach((a, l) => {
30031
30031
  let c3 = jc$1(e, a, l + n);
30032
30032
  if (c3) {
30033
30033
  i3 = true;
30034
- let d = xo$2(c3, a, n + l + 1, r);
30034
+ let d = Co$1(c3, a, n + l + 1, r);
30035
30035
  d != we && o.push(l, l + a.nodeSize, d);
30036
30036
  }
30037
30037
  });
@@ -30066,7 +30066,7 @@ Actual: ` + p3.attribValue
30066
30066
  t++;
30067
30067
  e.splice(t, 0, n);
30068
30068
  }
30069
- function si$1(e) {
30069
+ function ai$1(e) {
30070
30070
  let t = [];
30071
30071
  return e.someProp("decorations", (n) => {
30072
30072
  let r = n(e.state);
@@ -30202,7 +30202,7 @@ Actual: ` + p3.attribValue
30202
30202
  }
30203
30203
  }
30204
30204
  let c3 = null;
30205
- i3 < 0 && o && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && Bo$1(r) && (c3 = ks(t)) && c3.eq(ve$2.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, kt$1(t), this.currentSelection.set(r), t.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (t.docView.markDirty(i3, s), xh$1(t)), this.handleDOMChange(i3, s, a, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || kt$1(t), this.currentSelection.set(r));
30205
+ i3 < 0 && o && t.input.lastFocus > Date.now() - 200 && Math.max(t.input.lastTouch, t.input.lastClick.time) < Date.now() - 300 && zo$1(r) && (c3 = ks(t)) && c3.eq(ve$2.near(t.state.doc.resolve(0), 1)) ? (t.input.lastFocus = 0, kt$1(t), this.currentSelection.set(r), t.scrollToSelection()) : (i3 > -1 || o) && (i3 > -1 && (t.docView.markDirty(i3, s), xh$1(t)), this.handleDOMChange(i3, s, a, l), t.docView && t.docView.dirty ? t.updateState(t.state) : this.currentSelection.eq(r) || kt$1(t), this.currentSelection.set(r));
30206
30206
  }
30207
30207
  registerMutation(t, n) {
30208
30208
  if (n.indexOf(t.target) > -1)
@@ -30271,7 +30271,7 @@ Actual: ` + p3.attribValue
30271
30271
  }
30272
30272
  function Sh$1(e, t, n) {
30273
30273
  let { node: r, fromOffset: o, toOffset: i3, from: s, to: a } = e.docView.parseRange(t, n), l = e.domSelectionRange(), c3, d = l.anchorNode;
30274
- if (d && e.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c3 = [{ node: d, offset: l.anchorOffset }], Bo$1(l) || c3.push({ node: l.focusNode, offset: l.focusOffset })), ve$1 && e.input.lastKeyCode === 8)
30274
+ if (d && e.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c3 = [{ node: d, offset: l.anchorOffset }], zo$1(l) || c3.push({ node: l.focusNode, offset: l.focusOffset })), ve$1 && e.input.lastKeyCode === 8)
30275
30275
  for (let g = i3; g > o; g--) {
30276
30276
  let b = r.childNodes[g - 1], w = b.pmViewDesc;
30277
30277
  if (b.nodeName == "BR" && !w) {
@@ -30409,7 +30409,7 @@ Actual: ` + p3.attribValue
30409
30409
  if (
30410
30410
  // The content must have shrunk
30411
30411
  n - t <= o.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
30412
- ai$1(r, true, false) < o.pos
30412
+ li$1(r, true, false) < o.pos
30413
30413
  )
30414
30414
  return false;
30415
30415
  let i3 = e.resolve(t);
@@ -30419,10 +30419,10 @@ Actual: ` + p3.attribValue
30419
30419
  }
30420
30420
  if (i3.parentOffset < i3.parent.content.size || !i3.parent.isTextblock)
30421
30421
  return false;
30422
- let s = e.resolve(ai$1(i3, true, true));
30423
- return !s.parent.isTextblock || s.pos > n || ai$1(s, true, false) < n ? false : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
30422
+ let s = e.resolve(li$1(i3, true, true));
30423
+ return !s.parent.isTextblock || s.pos > n || li$1(s, true, false) < n ? false : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
30424
30424
  }
30425
- function ai$1(e, t, n) {
30425
+ function li$1(e, t, n) {
30426
30426
  let r = e.depth, o = t ? e.end() : e.pos;
30427
30427
  for (; r > 0 && (t || e.indexAfter(r) == e.node(r).childCount); )
30428
30428
  r--, o++, t = false;
@@ -30466,7 +30466,7 @@ Actual: ` + p3.attribValue
30466
30466
  added to the document.
30467
30467
  */
30468
30468
  constructor(t, n) {
30469
- 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 Yp(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = false, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(ja$1), this.dispatch = this.dispatch.bind(this), this.dom = t && t.mount || document.createElement("div"), t && (t.appendChild ? t.appendChild(this.dom) : typeof t == "function" ? t(this.dom) : t.mount && (this.mounted = true)), this.editable = Va$1(this), $a$1(this), this.nodeViews = Ha$1(this), this.docView = wa$1(this.state.doc, _a$1(this), si$1(this), this.dom, this), this.domObserver = new kh$1(this, (r, o, i3, s) => Th$1(this, r, o, i3, s)), this.domObserver.start(), Gp(this), this.updatePluginViews();
30469
+ 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 Yp(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = false, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(ja$1), this.dispatch = this.dispatch.bind(this), this.dom = t && t.mount || document.createElement("div"), t && (t.appendChild ? t.appendChild(this.dom) : typeof t == "function" ? t(this.dom) : t.mount && (this.mounted = true)), this.editable = Va$1(this), $a$1(this), this.nodeViews = Ha$1(this), this.docView = wa$1(this.state.doc, _a$1(this), ai$1(this), this.dom, this), this.domObserver = new kh$1(this, (r, o, i3, s) => Th$1(this, r, o, i3, s)), this.domObserver.start(), Gp(this), this.updatePluginViews();
30470
30470
  }
30471
30471
  /**
30472
30472
  Holds `true` when a
@@ -30494,7 +30494,7 @@ Actual: ` + p3.attribValue
30494
30494
  the DOM.
30495
30495
  */
30496
30496
  update(t) {
30497
- t.handleDOMEvents != this._props.handleDOMEvents && Ei$1(this);
30497
+ t.handleDOMEvents != this._props.handleDOMEvents && Pi$1(this);
30498
30498
  let n = this._props;
30499
30499
  this._props = t, t.plugins && (t.plugins.forEach(ja$1), this.directPlugins = t.plugins), this.updateStateInner(t.state, n);
30500
30500
  }
@@ -30528,8 +30528,8 @@ Actual: ` + p3.attribValue
30528
30528
  let p3 = Ha$1(this);
30529
30529
  Ih$1(p3, this.nodeViews) && (this.nodeViews = p3, i3 = true);
30530
30530
  }
30531
- (a || n.handleDOMEvents != this._props.handleDOMEvents) && Ei$1(this), this.editable = Va$1(this), $a$1(this);
30532
- let l = si$1(this), c3 = _a$1(this), d = o.plugins != t.plugins && !o.doc.eq(t.doc) ? "reset" : t.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", u = i3 || !this.docView.matchesNode(t.doc, c3, l);
30531
+ (a || n.handleDOMEvents != this._props.handleDOMEvents) && Pi$1(this), this.editable = Va$1(this), $a$1(this);
30532
+ let l = ai$1(this), c3 = _a$1(this), d = o.plugins != t.plugins && !o.doc.eq(t.doc) ? "reset" : t.scrollToSelection > o.scrollToSelection ? "to selection" : "preserve", u = i3 || !this.docView.matchesNode(t.doc, c3, l);
30533
30533
  (u || !t.selection.eq(o.selection)) && (s = true);
30534
30534
  let f3 = d == "preserve" && s && this.dom.style.overflowAnchor == null && up(this);
30535
30535
  if (s) {
@@ -30759,7 +30759,7 @@ Actual: ` + p3.attribValue
30759
30759
  views](https://prosemirror.net/docs/ref/#view.NodeView).
30760
30760
  */
30761
30761
  destroy() {
30762
- this.docView && (Zp(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], si$1(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, ep());
30762
+ this.docView && (Zp(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], ai$1(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, ep());
30763
30763
  }
30764
30764
  /**
30765
30765
  This is true when the view has been
@@ -30857,8 +30857,8 @@ Actual: ` + p3.attribValue
30857
30857
  /** @type {TextEncoder} */
30858
30858
  typeof TextEncoder < "u" ? new TextEncoder() : null
30859
30859
  ), Xh$1 = (e) => yr$1.encode(e), Jh$1 = yr$1 ? Xh$1 : Kh$1;
30860
- let li$1 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
30861
- li$1 && li$1.decode(new Uint8Array()).length === 1 && (li$1 = null);
30860
+ let ci$1 = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
30861
+ ci$1 && ci$1.decode(new Uint8Array()).length === 1 && (ci$1 = null);
30862
30862
  let Yh$1 = class Yh {
30863
30863
  constructor() {
30864
30864
  this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
@@ -30894,12 +30894,12 @@ Actual: ` + p3.attribValue
30894
30894
  const n = Lh$1(t);
30895
30895
  for (n && (t = -t), me(e, (t > Wa$1 ? gr$1 : 0) | (n ? Fh$1 : 0) | Wa$1 & t), t = mr$1(t / 64); t > 0; )
30896
30896
  me(e, (t > rr$1 ? gr$1 : 0) | rr$1 & t), t = mr$1(t / 128);
30897
- }, Pi$1 = new Uint8Array(3e4), rm = Pi$1.length / 3, om = (e, t) => {
30897
+ }, Ii$1 = new Uint8Array(3e4), rm = Ii$1.length / 3, om = (e, t) => {
30898
30898
  if (t.length < rm) {
30899
- const n = yr$1.encodeInto(t, Pi$1).written || 0;
30899
+ const n = yr$1.encodeInto(t, Ii$1).written || 0;
30900
30900
  br$1(e, n);
30901
30901
  for (let r = 0; r < n; r++)
30902
- me(e, Pi$1[r]);
30902
+ me(e, Ii$1[r]);
30903
30903
  } else
30904
30904
  qc$1(e, Jh$1(t));
30905
30905
  }, im = (e, t) => {
@@ -30924,7 +30924,7 @@ Actual: ` + p3.attribValue
30924
30924
  }, am = (e, t) => Ds(e, 4).setFloat32(0, t, false), lm = (e, t) => Ds(e, 8).setFloat64(0, t, false), cm = (e, t) => (
30925
30925
  /** @type {any} */
30926
30926
  Ds(e, 8).setBigInt64(0, t, false)
30927
- ), Ka$1 = new DataView(new ArrayBuffer(4)), dm = (e) => (Ka$1.setFloat32(0, e), Ka$1.getFloat32(0) === e), Ii$1 = (e, t) => {
30927
+ ), Ka$1 = new DataView(new ArrayBuffer(4)), dm = (e) => (Ka$1.setFloat32(0, e), Ka$1.getFloat32(0) === e), Ri$1 = (e, t) => {
30928
30928
  switch (typeof t) {
30929
30929
  case "string":
30930
30930
  me(e, 119), qa$1(e, t);
@@ -30941,7 +30941,7 @@ Actual: ` + p3.attribValue
30941
30941
  else if (Vh$1(t)) {
30942
30942
  me(e, 117), br$1(e, t.length);
30943
30943
  for (let n = 0; n < t.length; n++)
30944
- Ii$1(e, t[n]);
30944
+ Ri$1(e, t[n]);
30945
30945
  } else if (t instanceof Uint8Array)
30946
30946
  me(e, 116), qc$1(e, t);
30947
30947
  else {
@@ -30950,7 +30950,7 @@ Actual: ` + p3.attribValue
30950
30950
  br$1(e, n.length);
30951
30951
  for (let r = 0; r < n.length; r++) {
30952
30952
  const o = n[r];
30953
- qa$1(e, o), Ii$1(e, t[o]);
30953
+ qa$1(e, o), Ri$1(e, t[o]);
30954
30954
  }
30955
30955
  }
30956
30956
  break;
@@ -31039,11 +31039,11 @@ Actual: ` + p3.attribValue
31039
31039
  }
31040
31040
  })) : et$2 = lo$2();
31041
31041
  return et$2;
31042
- }, Ri$1 = (e) => Sm().has(e), Li$1 = (e) => Xa$1(Pn$2 ? ge$2.env[e.toUpperCase().replaceAll("-", "_")] : Mm.getItem(e)), Zc$1 = (e) => Ri$1("--" + e) || Li$1(e) !== null;
31042
+ }, Li$1 = (e) => Sm().has(e), Fi$1 = (e) => Xa$1(Pn$2 ? ge$2.env[e.toUpperCase().replaceAll("-", "_")] : Mm.getItem(e)), Zc$1 = (e) => Li$1("--" + e) || Fi$1(e) !== null;
31043
31043
  Zc$1("production");
31044
31044
  const Am = Pn$2 && hm(ge$2.env.FORCE_COLOR, ["true", "1", "2"]);
31045
- Am || !Ri$1("--no-colors") && // @todo deprecate --no-colors
31046
- !Zc$1("no-color") && (!Pn$2 || ge$2.stdout.isTTY) && (!Pn$2 || Ri$1("--color") || Li$1("COLORTERM") !== null || (Li$1("TERM") || "").includes("color"));
31045
+ Am || !Li$1("--no-colors") && // @todo deprecate --no-colors
31046
+ !Zc$1("no-color") && (!Pn$2 || ge$2.stdout.isTTY) && (!Pn$2 || Li$1("--color") || Fi$1("COLORTERM") !== null || (Fi$1("TERM") || "").includes("color"));
31047
31047
  const Om = (
31048
31048
  /** @type {Document} */
31049
31049
  typeof document < "u" ? document : {}
@@ -31185,14 +31185,14 @@ Actual: ` + p3.attribValue
31185
31185
  for (let n = 0; n < e.byteLength; n++)
31186
31186
  t += Hh$1(e[n]);
31187
31187
  return btoa(t);
31188
- }, _m = (e) => vt$1.from(e.buffer, e.byteOffset, e.byteLength).toString("base64"), $m = Gc$1 ? zm : _m, Vm = (e) => Zh$1((t) => Ii$1(t, e)), Hm = (e) => {
31188
+ }, _m = (e) => vt$1.from(e.buffer, e.byteOffset, e.byteLength).toString("base64"), $m = Gc$1 ? zm : _m, Vm = (e) => Zh$1((t) => Ri$1(t, e)), Hm = (e) => {
31189
31189
  for (let n = 6; n < e.length; n++)
31190
31190
  e[n % 6] = e[n % 6] ^ e[n];
31191
31191
  return e.slice(0, 6);
31192
31192
  }, jm = (e) => $m(Hm(Bm(Vm(e)))), Wm = () => ({
31193
31193
  mapping: /* @__PURE__ */ new Map(),
31194
31194
  isOMark: /* @__PURE__ */ new Map()
31195
- }), Co$1 = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && /** @type {number} */
31195
+ }), Mo$1 = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && /** @type {number} */
31196
31196
  t.sv.get(e.id.client) > e.id.clock && !T__namespace.isDeleted(t.ds, e.id), Um = [{ light: "#ecd44433", dark: "#ecd444" }], qm = (e, t, n) => {
31197
31197
  if (!e.has(n)) {
31198
31198
  if (e.size < t.length) {
@@ -31307,17 +31307,17 @@ Actual: ` + p3.attribValue
31307
31307
  );
31308
31308
  r !== null && o !== null && (e = e.setSelection(tt$3.create(e.doc, r, o)));
31309
31309
  }
31310
- }, Fi$1 = (e, t) => ({
31310
+ }, Bi$1 = (e, t) => ({
31311
31311
  type: (
31312
31312
  /** @type {any} */
31313
31313
  t.selection.jsonID
31314
31314
  ),
31315
- anchor: So$1(
31315
+ anchor: Ao$2(
31316
31316
  t.selection.anchor,
31317
31317
  e.type,
31318
31318
  e.mapping
31319
31319
  ),
31320
- head: So$1(
31320
+ head: Ao$2(
31321
31321
  t.selection.head,
31322
31322
  e.type,
31323
31323
  e.mapping
@@ -31330,7 +31330,7 @@ Actual: ` + p3.attribValue
31330
31330
  */
31331
31331
  constructor(t, n = /* @__PURE__ */ new Map()) {
31332
31332
  this.type = t, this.prosemirrorView = null, this.mux = mm(), this.mapping = n, this.isOMark = /* @__PURE__ */ new Map(), this._observeFunction = this._typeChanged.bind(this), this.doc = t.doc, this.beforeTransactionSelection = null, this.beforeAllTransactions = () => {
31333
- this.beforeTransactionSelection === null && this.prosemirrorView != null && (this.beforeTransactionSelection = Fi$1(
31333
+ this.beforeTransactionSelection === null && this.prosemirrorView != null && (this.beforeTransactionSelection = Bi$1(
31334
31334
  this,
31335
31335
  this.prosemirrorView.state
31336
31336
  ));
@@ -31452,7 +31452,7 @@ Actual: ` + p3.attribValue
31452
31452
  }, c3 = T__namespace.typeListToArraySnapshot(
31453
31453
  i3,
31454
31454
  new T__namespace.Snapshot(n.ds, t.sv)
31455
- ).map((u) => !u._item.deleted || Co$1(u._item, t) || Co$1(u._item, n) ? or$1(
31455
+ ).map((u) => !u._item.deleted || Mo$1(u._item, t) || Mo$1(u._item, n) ? or$1(
31456
31456
  u,
31457
31457
  this.prosemirrorView.state.schema,
31458
31458
  { mapping: /* @__PURE__ */ new Map(), isOMark: /* @__PURE__ */ new Map() },
@@ -31518,7 +31518,7 @@ Actual: ` + p3.attribValue
31518
31518
  */
31519
31519
  _prosemirrorChanged(t) {
31520
31520
  this.doc.transact(() => {
31521
- zi$1(this.doc, this.type, t, this), this.beforeTransactionSelection = Fi$1(
31521
+ _i$1(this.doc, this.type, t, this), this.beforeTransactionSelection = Bi$1(
31522
31522
  this,
31523
31523
  this.prosemirrorView.state
31524
31524
  );
@@ -31592,11 +31592,11 @@ Actual: ` + p3.attribValue
31592
31592
  r === void 0 || o === void 0 ? e.toArray().forEach(a) : T__namespace.typeListToArraySnapshot(e, new T__namespace.Snapshot(o.ds, r.sv)).forEach(a);
31593
31593
  try {
31594
31594
  const l = e.getAttributes(r);
31595
- r !== void 0 && (Co$1(
31595
+ r !== void 0 && (Mo$1(
31596
31596
  /** @type {Y.Item} */
31597
31597
  e._item,
31598
31598
  r
31599
- ) ? Co$1(
31599
+ ) ? Mo$1(
31600
31600
  /** @type {Y.Item} */
31601
31601
  e._item,
31602
31602
  o
@@ -31644,11 +31644,11 @@ Actual: ` + p3.attribValue
31644
31644
  }
31645
31645
  return n.insert(
31646
31646
  0,
31647
- $o$1(e).map(
31648
- (r) => Bi$1(r, t)
31647
+ Vo$1(e).map(
31648
+ (r) => zi$1(r, t)
31649
31649
  )
31650
31650
  ), t.mapping.set(n, e), n;
31651
- }, Bi$1 = (e, t) => e instanceof Array ? Gm(e, t) : Zm(e, t), Ja$1 = (e) => typeof e == "object" && e !== null, Es = (e, t) => {
31651
+ }, zi$1 = (e, t) => e instanceof Array ? Gm(e, t) : Zm(e, t), Ja$1 = (e) => typeof e == "object" && e !== null, Es = (e, t) => {
31652
31652
  const n = Object.keys(e).filter((o) => e[o] !== null);
31653
31653
  let r = n.length === Object.keys(t).filter((o) => t[o] !== null).length;
31654
31654
  for (let o = 0; o < n.length && r; o++) {
@@ -31656,7 +31656,7 @@ Actual: ` + p3.attribValue
31656
31656
  r = i3 === "ychange" || s === a || Ja$1(s) && Ja$1(a) && Es(s, a);
31657
31657
  }
31658
31658
  return r;
31659
- }, $o$1 = (e) => {
31659
+ }, Vo$1 = (e) => {
31660
31660
  const t = e.content.content, n = [];
31661
31661
  for (let r = 0; r < t.length; r++) {
31662
31662
  const o = t[r];
@@ -31683,28 +31683,28 @@ Actual: ` + p3.attribValue
31683
31683
  })
31684
31684
  );
31685
31685
  }, wr$1 = (e, t) => {
31686
- if (e instanceof T__namespace.XmlElement && !(t instanceof Array) && _i$1(e, t)) {
31687
- const n = $o$1(t);
31686
+ if (e instanceof T__namespace.XmlElement && !(t instanceof Array) && $i$1(e, t)) {
31687
+ const n = Vo$1(t);
31688
31688
  return e._length === n.length && Es(e.getAttributes(), t.attrs) && e.toArray().every(
31689
31689
  (r, o) => wr$1(r, n[o])
31690
31690
  );
31691
31691
  }
31692
31692
  return e instanceof T__namespace.XmlText && t instanceof Array && ed$1(e, t);
31693
- }, Mo$1 = (e, t) => e === t || e instanceof Array && t instanceof Array && e.length === t.length && e.every(
31693
+ }, So$1 = (e, t) => e === t || e instanceof Array && t instanceof Array && e.length === t.length && e.every(
31694
31694
  (n, r) => t[r] === n
31695
31695
  ), Ya$1 = (e, t, n) => {
31696
- const r = e.toArray(), o = $o$1(t), i3 = o.length, s = r.length, a = zt$1(s, i3);
31696
+ const r = e.toArray(), o = Vo$1(t), i3 = o.length, s = r.length, a = zt$1(s, i3);
31697
31697
  let l = 0, c3 = 0, d = false;
31698
31698
  for (; l < a; l++) {
31699
31699
  const u = r[l], f3 = o[l];
31700
- if (Mo$1(n.mapping.get(u), f3))
31700
+ if (So$1(n.mapping.get(u), f3))
31701
31701
  d = true;
31702
31702
  else if (!wr$1(u, f3))
31703
31703
  break;
31704
31704
  }
31705
31705
  for (; l + c3 < a; c3++) {
31706
31706
  const u = r[s - c3 - 1], f3 = o[i3 - c3 - 1];
31707
- if (Mo$1(n.mapping.get(u), f3))
31707
+ if (So$1(n.mapping.get(u), f3))
31708
31708
  d = true;
31709
31709
  else if (!wr$1(u, f3))
31710
31710
  break;
@@ -31750,7 +31750,7 @@ Actual: ` + p3.attribValue
31750
31750
  n[o ? `${r.type.name}--${jm(r.toJSON())}` : r.type.name] = r.attrs;
31751
31751
  }
31752
31752
  }), n;
31753
- }, zi$1 = (e, t, n, r) => {
31753
+ }, _i$1 = (e, t, n, r) => {
31754
31754
  if (t instanceof T__namespace.XmlElement && t.nodeName !== n.type.name)
31755
31755
  throw new Error("node name mismatch!");
31756
31756
  if (r.mapping.set(t, n), t instanceof T__namespace.XmlElement) {
@@ -31760,11 +31760,11 @@ Actual: ` + p3.attribValue
31760
31760
  for (const p3 in u)
31761
31761
  f3[p3] === void 0 && t.removeAttribute(p3);
31762
31762
  }
31763
- const o = $o$1(n), i3 = o.length, s = t.toArray(), a = s.length, l = zt$1(i3, a);
31763
+ const o = Vo$1(n), i3 = o.length, s = t.toArray(), a = s.length, l = zt$1(i3, a);
31764
31764
  let c3 = 0, d = 0;
31765
31765
  for (; c3 < l; c3++) {
31766
31766
  const u = s[c3], f3 = o[c3];
31767
- if (!Mo$1(r.mapping.get(u), f3))
31767
+ if (!So$1(r.mapping.get(u), f3))
31768
31768
  if (wr$1(u, f3))
31769
31769
  r.mapping.set(u, f3);
31770
31770
  else
@@ -31772,7 +31772,7 @@ Actual: ` + p3.attribValue
31772
31772
  }
31773
31773
  for (; d + c3 + 1 < l; d++) {
31774
31774
  const u = s[a - d - 1], f3 = o[i3 - d - 1];
31775
- if (!Mo$1(r.mapping.get(u), f3))
31775
+ if (!So$1(r.mapping.get(u), f3))
31776
31776
  if (wr$1(u, f3))
31777
31777
  r.mapping.set(u, f3);
31778
31778
  else
@@ -31784,7 +31784,7 @@ Actual: ` + p3.attribValue
31784
31784
  if (f3 instanceof T__namespace.XmlText && p3 instanceof Array)
31785
31785
  ed$1(f3, p3) || eg(f3, p3, r), c3 += 1;
31786
31786
  else {
31787
- let g = f3 instanceof T__namespace.XmlElement && _i$1(f3, p3), b = h3 instanceof T__namespace.XmlElement && _i$1(h3, m);
31787
+ let g = f3 instanceof T__namespace.XmlElement && $i$1(f3, p3), b = h3 instanceof T__namespace.XmlElement && $i$1(h3, m);
31788
31788
  if (g && b) {
31789
31789
  const w = Ya$1(
31790
31790
  /** @type {Y.XmlElement} */
@@ -31801,14 +31801,14 @@ Actual: ` + p3.attribValue
31801
31801
  );
31802
31802
  w.foundMappedChild && !x3.foundMappedChild ? b = false : !w.foundMappedChild && x3.foundMappedChild || w.equalityFactor < x3.equalityFactor ? g = false : b = false;
31803
31803
  }
31804
- g ? (zi$1(
31804
+ g ? (_i$1(
31805
31805
  e,
31806
31806
  /** @type {Y.XmlFragment} */
31807
31807
  f3,
31808
31808
  /** @type {PModel.Node} */
31809
31809
  p3,
31810
31810
  r
31811
- ), c3 += 1) : b ? (zi$1(
31811
+ ), c3 += 1) : b ? (_i$1(
31812
31812
  e,
31813
31813
  /** @type {Y.XmlFragment} */
31814
31814
  h3,
@@ -31816,7 +31816,7 @@ Actual: ` + p3.attribValue
31816
31816
  m,
31817
31817
  r
31818
31818
  ), d += 1) : (r.mapping.delete(t.get(c3)), t.delete(c3, 1), t.insert(c3, [
31819
- Bi$1(p3, r)
31819
+ zi$1(p3, r)
31820
31820
  ]), c3 += 1);
31821
31821
  }
31822
31822
  }
@@ -31824,11 +31824,11 @@ Actual: ` + p3.attribValue
31824
31824
  if (a === 1 && i3 === 0 && s[0] instanceof T__namespace.XmlText ? (r.mapping.delete(s[0]), s[0].delete(0, s[0].length)) : u > 0 && (t.slice(c3, c3 + u).forEach((f3) => r.mapping.delete(f3)), t.delete(c3, u)), c3 + d < i3) {
31825
31825
  const f3 = [];
31826
31826
  for (let p3 = c3; p3 < i3 - d; p3++)
31827
- f3.push(Bi$1(o[p3], r));
31827
+ f3.push(zi$1(o[p3], r));
31828
31828
  t.insert(c3, f3);
31829
31829
  }
31830
31830
  }, te$1);
31831
- }, _i$1 = (e, t) => !(t instanceof Array) && e.nodeName === t.type.name;
31831
+ }, $i$1 = (e, t) => !(t instanceof Array) && e.nodeName === t.type.name;
31832
31832
  let ir$1 = null;
31833
31833
  const rg = () => {
31834
31834
  const e = (
@@ -31843,7 +31843,7 @@ Actual: ` + p3.attribValue
31843
31843
  });
31844
31844
  }, og = (e, t, n) => {
31845
31845
  ir$1 || (ir$1 = /* @__PURE__ */ new Map(), Ns(0, rg)), Jc$1(ir$1, e, lo$2).set(t, n);
31846
- }, So$1 = (e, t, n) => {
31846
+ }, Ao$2 = (e, t, n) => {
31847
31847
  if (e === 0)
31848
31848
  return T__namespace.createRelativePositionFromTypeIndex(t, 0, -1);
31849
31849
  let r = t._first === null ? null : (
@@ -32043,11 +32043,11 @@ Actual: ` + p3.attribValue
32043
32043
  }, l = () => {
32044
32044
  const c3 = te$1.getState(s.state), d = e.getLocalState() || {};
32045
32045
  if (s.hasFocus()) {
32046
- const u = o(s.state), f3 = So$1(
32046
+ const u = o(s.state), f3 = Ao$2(
32047
32047
  u.anchor,
32048
32048
  c3.type,
32049
32049
  c3.binding.mapping
32050
- ), p3 = So$1(
32050
+ ), p3 = Ao$2(
32051
32051
  u.head,
32052
32052
  c3.type,
32053
32053
  c3.binding.mapping
@@ -32107,7 +32107,7 @@ Actual: ` + p3.attribValue
32107
32107
  const a = te$1.getState(s).binding, l = o.undoManager, c3 = l.undoStack.length > 0, d = l.redoStack.length > 0;
32108
32108
  return a ? {
32109
32109
  undoManager: l,
32110
- prevSel: Fi$1(a, i3),
32110
+ prevSel: Bi$1(a, i3),
32111
32111
  hasUndoOps: c3,
32112
32112
  hasRedoOps: d
32113
32113
  } : c3 !== o.hasUndoOps || d !== o.hasRedoOps ? Object.assign({}, o, {
@@ -32173,7 +32173,7 @@ Actual: ` + p3.attribValue
32173
32173
  * Remove all registered events and subscriptions.
32174
32174
  */
32175
32175
  removeAllListeners() {
32176
- Xo$1(this, nt$2, /* @__PURE__ */ new Map());
32176
+ Jo$1(this, nt$2, /* @__PURE__ */ new Map());
32177
32177
  }
32178
32178
  }
32179
32179
  nt$2 = /* @__PURE__ */ new WeakMap();
@@ -32230,7 +32230,7 @@ Actual: ` + p3.attribValue
32230
32230
  220: "\\",
32231
32231
  221: "]",
32232
32232
  222: "'"
32233
- }, Ao$2 = {
32233
+ }, Oo$1 = {
32234
32234
  48: ")",
32235
32235
  49: "!",
32236
32236
  50: "@",
@@ -32259,10 +32259,10 @@ Actual: ` + p3.attribValue
32259
32259
  for (var be$1 = 0; be$1 < 10; be$1++) Vt$2[48 + be$1] = Vt$2[96 + be$1] = String(be$1);
32260
32260
  for (var be$1 = 1; be$1 <= 24; be$1++) Vt$2[be$1 + 111] = "F" + be$1;
32261
32261
  for (var be$1 = 65; be$1 <= 90; be$1++)
32262
- Vt$2[be$1] = String.fromCharCode(be$1 + 32), Ao$2[be$1] = String.fromCharCode(be$1);
32263
- for (var ci$1 in Vt$2) Ao$2.hasOwnProperty(ci$1) || (Ao$2[ci$1] = Vt$2[ci$1]);
32262
+ Vt$2[be$1] = String.fromCharCode(be$1 + 32), Oo$1[be$1] = String.fromCharCode(be$1);
32263
+ for (var di$1 in Vt$2) Oo$1.hasOwnProperty(di$1) || (Oo$1[di$1] = Vt$2[di$1]);
32264
32264
  function kg(e) {
32265
- var t = wg && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || vg && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? Ao$2 : Vt$2)[e.keyCode] || e.key || "Unidentified";
32265
+ var t = wg && e.metaKey && e.shiftKey && !e.ctrlKey && !e.altKey || vg && e.shiftKey && e.key && e.key.length == 1 || e.key == "Unidentified", n = !t && e.key || (e.shiftKey ? Oo$1 : Vt$2)[e.keyCode] || e.key || "Unidentified";
32266
32266
  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;
32267
32267
  }
32268
32268
  const xg = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : false;
@@ -32293,7 +32293,7 @@ Actual: ` + p3.attribValue
32293
32293
  t[Cg(n)] = e[n];
32294
32294
  return t;
32295
32295
  }
32296
- function di$1(e, t, n = true) {
32296
+ function ui$1(e, t, n = true) {
32297
32297
  return t.altKey && (e = "Alt-" + e), t.ctrlKey && (e = "Ctrl-" + e), t.metaKey && (e = "Meta-" + e), n && t.shiftKey && (e = "Shift-" + e), e;
32298
32298
  }
32299
32299
  function Sg(e) {
@@ -32302,17 +32302,17 @@ Actual: ` + p3.attribValue
32302
32302
  function Ps(e) {
32303
32303
  let t = Mg(e);
32304
32304
  return function(n, r) {
32305
- let o = kg(r), i3, s = t[di$1(o, r)];
32305
+ let o = kg(r), i3, s = t[ui$1(o, r)];
32306
32306
  if (s && s(n.state, n.dispatch, n))
32307
32307
  return true;
32308
32308
  if (o.length == 1 && o != " ") {
32309
32309
  if (r.shiftKey) {
32310
- let a = t[di$1(o, r, false)];
32310
+ let a = t[ui$1(o, r, false)];
32311
32311
  if (a && a(n.state, n.dispatch, n))
32312
32312
  return true;
32313
32313
  }
32314
32314
  if ((r.shiftKey || r.altKey || r.metaKey || o.charCodeAt(0) > 127) && (i3 = Vt$2[r.keyCode]) && i3 != o) {
32315
- let a = t[di$1(i3, r)];
32315
+ let a = t[ui$1(i3, r)];
32316
32316
  if (a && a(n.state, n.dispatch, n))
32317
32317
  return true;
32318
32318
  }
@@ -32437,7 +32437,7 @@ Actual: ` + p3.attribValue
32437
32437
  * @returns The mark attrs.
32438
32438
  */
32439
32439
  static getMarkAttributes(t, n) {
32440
- const r = Ct$1(n, t.schema), i3 = Lo$1(t).find((s) => s.type.name === r.name);
32440
+ const r = Ct$1(n, t.schema), i3 = Fo$1(t).find((s) => s.type.name === r.name);
32441
32441
  return i3 ? { ...i3.attrs } : {};
32442
32442
  }
32443
32443
  /**
@@ -32519,7 +32519,7 @@ Actual: ` + p3.attribValue
32519
32519
  }
32520
32520
  return r;
32521
32521
  }, ft(D, zn$2);
32522
- function $i$1(e) {
32522
+ function Vi$1(e) {
32523
32523
  const t = Object.entries(e).filter(([n, r]) => n === "attrs" && Hp$1(r) ? false : r != null);
32524
32524
  return Object.fromEntries(t);
32525
32525
  }
@@ -32552,7 +32552,7 @@ Actual: ` + p3.attribValue
32552
32552
  ...h3,
32553
32553
  ...g ? g(i3) : {}
32554
32554
  };
32555
- }, {}), d = $i$1({
32555
+ }, {}), d = Vi$1({
32556
32556
  content: jp$1(E$1(i3, "content", a)),
32557
32557
  group: jp$1(E$1(i3, "group", a)),
32558
32558
  marks: jp$1(E$1(i3, "marks", a)),
@@ -32585,7 +32585,7 @@ Actual: ` + p3.attribValue
32585
32585
  editor: r
32586
32586
  }, l = Object.fromEntries(
32587
32587
  s.map((f3) => [f3.name, { default: f3?.attribute?.default }])
32588
- ), c3 = $i$1({
32588
+ ), c3 = Vi$1({
32589
32589
  group: jp$1(E$1(i3, "group", a)),
32590
32590
  inclusive: jp$1(E$1(i3, "inclusive", a)),
32591
32591
  excludes: jp$1(E$1(i3, "excludes", a)),
@@ -32602,7 +32602,7 @@ Actual: ` + p3.attribValue
32602
32602
  });
32603
32603
  return Object.fromEntries(o);
32604
32604
  }, ft(cr$1, _n$2);
32605
- let Vi$1 = cr$1;
32605
+ let Hi$1 = cr$1;
32606
32606
  function Gn$2(e, t) {
32607
32607
  return t.nodes[e] || t.marks[e] || null;
32608
32608
  }
@@ -32633,7 +32633,7 @@ Actual: ` + p3.attribValue
32633
32633
  }
32634
32634
  };
32635
32635
  }
32636
- let Vo$1 = class Vo2 {
32636
+ let Ho$1 = class Ho2 {
32637
32637
  constructor(t) {
32638
32638
  I$2(this, "editor");
32639
32639
  I$2(this, "rawCommands");
@@ -32644,7 +32644,7 @@ Actual: ` + p3.attribValue
32644
32644
  * @param args Arguments for the constructor.
32645
32645
  */
32646
32646
  static create(...t) {
32647
- return new Vo2(...t);
32647
+ return new Ho2(...t);
32648
32648
  }
32649
32649
  /**
32650
32650
  * Get editor state.
@@ -32765,7 +32765,7 @@ Actual: ` + p3.attribValue
32765
32765
  return r.index = n.index, r.input = e, r.data = n.data, n.replaceWith && (n.text.includes(n.replaceWith) || console.warn(
32766
32766
  '[super-editor warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'
32767
32767
  ), r.push(n.replaceWith)), r;
32768
- }, ui$1 = (e) => {
32768
+ }, fi$1 = (e) => {
32769
32769
  const {
32770
32770
  editor: t,
32771
32771
  from: n,
@@ -32790,7 +32790,7 @@ Actual: ` + p3.attribValue
32790
32790
  const p3 = a.state.tr, h3 = Is(p3, a.state), m = {
32791
32791
  from: n - (f3[0].length - o.length),
32792
32792
  to: r
32793
- }, { commands: g, chain: b, can: w } = new Vo$1({
32793
+ }, { commands: g, chain: b, can: w } = new Ho$1({
32794
32794
  editor: t,
32795
32795
  state: h3
32796
32796
  });
@@ -32824,7 +32824,7 @@ Actual: ` + p3.attribValue
32824
32824
  let { text: c3 } = a;
32825
32825
  typeof c3 != "string" && (c3 = Og(ee$2.from(c3), i3.schema));
32826
32826
  const { from: d } = a, u = d + c3.length;
32827
- ui$1({
32827
+ fi$1({
32828
32828
  editor: e,
32829
32829
  from: d,
32830
32830
  to: u,
@@ -32837,7 +32837,7 @@ Actual: ` + p3.attribValue
32837
32837
  },
32838
32838
  props: {
32839
32839
  handleTextInput(r, o, i3, s) {
32840
- return ui$1({
32840
+ return fi$1({
32841
32841
  editor: e,
32842
32842
  from: o,
32843
32843
  to: i3,
@@ -32852,7 +32852,7 @@ Actual: ` + p3.attribValue
32852
32852
  if (o.key !== "Enter")
32853
32853
  return false;
32854
32854
  const { $cursor: i3 } = r.state.selection;
32855
- return i3 ? ui$1({
32855
+ return i3 ? fi$1({
32856
32856
  editor: e,
32857
32857
  from: i3.pos,
32858
32858
  to: i3.pos,
@@ -32909,7 +32909,7 @@ Actual: ` + p3.attribValue
32909
32909
  this.editor = r, this.externalExtensions = n || [], this.externalExtensions = this.externalExtensions.map((o) => ({
32910
32910
  ...o,
32911
32911
  isExternal: true
32912
- })), this.extensions = An2.getResolvedExtensions([...t, ...this.externalExtensions]), this.schema = Vi$1.createSchemaByExtensions(this.extensions, r), N$1(this, $n$2, ad$1).call(this);
32912
+ })), this.extensions = An2.getResolvedExtensions([...t, ...this.externalExtensions]), this.schema = Hi$1.createSchemaByExtensions(this.extensions, r), N$1(this, $n$2, ad$1).call(this);
32913
32913
  }
32914
32914
  /**
32915
32915
  * Static method for creating ExtensionService.
@@ -33063,7 +33063,7 @@ Actual: ` + p3.attribValue
33063
33063
  }, r = E$1(t, "onBeforeCreate", n), o = E$1(t, "onCreate", n), i3 = E$1(t, "onUpdate", n), s = E$1(t, "onSelectionUpdate", n), a = E$1(t, "onTransaction", n), l = E$1(t, "onFocus", n), c3 = E$1(t, "onBlur", n), d = E$1(t, "onDestroy", n);
33064
33064
  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);
33065
33065
  };
33066
- let Hi$1 = An$1;
33066
+ let ji$1 = An$1;
33067
33067
  const Rg = (e) => (t) => {
33068
33068
  const n = typeof e == "function" ? e(t) : e;
33069
33069
  for (let r = 0; r < n.length; r += 1)
@@ -33461,20 +33461,20 @@ Actual: ` + p3.attribValue
33461
33461
  });
33462
33462
  return ty(r, n, l);
33463
33463
  };
33464
- function ji$1(e, t, n = {}) {
33464
+ function Wi$1(e, t, n = {}) {
33465
33465
  return e.find((r) => r.type === t && If$1(r.attrs, n));
33466
33466
  }
33467
33467
  function ry(e, t, n = {}) {
33468
- return !!ji$1(e, t, n);
33468
+ return !!Wi$1(e, t, n);
33469
33469
  }
33470
33470
  function Bs(e, t, n = {}) {
33471
33471
  if (!e || !t) return;
33472
33472
  let r = e.parent.childAfter(e.parentOffset);
33473
33473
  if (e.parentOffset === r.offset && r.offset !== 0 && (r = e.parent.childBefore(e.parentOffset)), !r.node) return;
33474
- const o = ji$1([...r.node.marks], t, n);
33474
+ const o = Wi$1([...r.node.marks], t, n);
33475
33475
  if (!o) return;
33476
33476
  let i3 = r.index, s = e.start() + r.offset, a = i3 + 1, l = s + r.node.nodeSize;
33477
- for (ji$1([...r.node.marks], t, n); i3 > 0 && o.isInSet(e.parent.child(i3 - 1).marks); )
33477
+ for (Wi$1([...r.node.marks], t, n); i3 > 0 && o.isInSet(e.parent.child(i3 - 1).marks); )
33478
33478
  i3 -= 1, s -= e.parent.child(i3).nodeSize;
33479
33479
  for (; a < e.parent.childCount && ry([...e.parent.child(a).marks], t, n); )
33480
33480
  l += e.parent.child(a).nodeSize, a += 1;
@@ -33498,7 +33498,7 @@ Actual: ` + p3.attribValue
33498
33498
  e.removeMark(i3.$from.pos, i3.$to.pos);
33499
33499
  }), true;
33500
33500
  };
33501
- function Oo$1(e, t, n = {}) {
33501
+ function To$1(e, t, n = {}) {
33502
33502
  const { empty: r, ranges: o } = e.selection, i3 = t ? Ct$1(t, e.schema) : null;
33503
33503
  if (r)
33504
33504
  return !!(e.storedMarks || e.selection.$from.marks()).filter((u) => i3 ? i3.name === u.type.name : true).find((u) => If$1(u.attrs, n, { strict: false }));
@@ -33523,7 +33523,7 @@ Actual: ` + p3.attribValue
33523
33523
  }
33524
33524
  const sy = (e, t = {}, n = {}) => ({ state: r, commands: o }) => {
33525
33525
  const { extendEmptyMarkRange: i3 = false } = n, s = Ct$1(e, r.schema);
33526
- return Oo$1(r, s, t) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, t);
33526
+ return To$1(r, s, t) ? o.unsetMark(s, { extendEmptyMarkRange: i3 }) : o.setMark(s, t);
33527
33527
  }, ay = () => ({ state: e, tr: t, dispatch: n }) => {
33528
33528
  const { selection: r } = t, { ranges: o } = r;
33529
33529
  return n && o.forEach(({ $from: i3, $to: s }) => {
@@ -33543,7 +33543,7 @@ Actual: ` + p3.attribValue
33543
33543
  const i3 = le$1(e, n.schema);
33544
33544
  return i3.isTextblock ? o().command(({ commands: s }) => Za$1(i3, t)(n) ? true : s.clearNodes()).command(({ state: s }) => Za$1(i3, t)(s, r)).run() : false;
33545
33545
  };
33546
- function To$1(e, t, n = {}) {
33546
+ function Do$1(e, t, n = {}) {
33547
33547
  const { from: r, to: o, empty: i3 } = e.selection, s = t ? le$1(t, e.schema) : null, a = [];
33548
33548
  e.doc.nodesBetween(r, o, (u, f3) => {
33549
33549
  if (u.isText) return;
@@ -33559,7 +33559,7 @@ Actual: ` + p3.attribValue
33559
33559
  }
33560
33560
  const cy = (e, t, n = {}) => ({ state: r, commands: o }) => {
33561
33561
  const i3 = le$1(e, r.schema), s = le$1(t, r.schema);
33562
- return To$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
33562
+ return Do$1(r, i3, n) ? o.setNode(s) : o.setNode(i3, n);
33563
33563
  }, dy = () => ({ state: e, dispatch: t }) => qg(e, t), uy = () => ({ state: e, dispatch: t }) => Rs(e, t), fy = (e, t = {}) => ({ tr: n, state: r, dispatch: o }) => {
33564
33564
  let i3 = null, s = null;
33565
33565
  const a = Pr(
@@ -33602,7 +33602,7 @@ Actual: ` + p3.attribValue
33602
33602
  const t = `<body>${e}</body>`, n = new window.DOMParser().parseFromString(t, "text/html").body;
33603
33603
  return xd$1(n);
33604
33604
  }
33605
- function Wi$1(e, t, n) {
33605
+ function Ui$1(e, t, n) {
33606
33606
  n = {
33607
33607
  slice: true,
33608
33608
  parseOptions: {},
@@ -33618,7 +33618,7 @@ Actual: ` + p3.attribValue
33618
33618
  } catch (i3) {
33619
33619
  if (n.errorOnInvalidContent)
33620
33620
  throw new Error("[super-editor error]: Invalid JSON content", { cause: i3 });
33621
- return console.warn("[super-editor warn]: Invalid content.", "Passed value:", e, "Error:", i3), Wi$1("", t, n);
33621
+ return console.warn("[super-editor warn]: Invalid content.", "Passed value:", e, "Error:", i3), Ui$1("", t, n);
33622
33622
  }
33623
33623
  if (o) {
33624
33624
  if (n.errorOnInvalidContent) {
@@ -33649,7 +33649,7 @@ Actual: ` + p3.attribValue
33649
33649
  const i3 = yr$2.fromSchema(t);
33650
33650
  return n.slice ? i3.parseSlice(Xr$1(e), n.parseOptions).content : i3.parse(Xr$1(e), n.parseOptions);
33651
33651
  }
33652
- return Wi$1("", t, n);
33652
+ return Ui$1("", t, n);
33653
33653
  }
33654
33654
  function Cy(e, t, n) {
33655
33655
  const r = e.steps.length - 1;
@@ -33675,7 +33675,7 @@ Actual: ` + p3.attribValue
33675
33675
  };
33676
33676
  let s;
33677
33677
  try {
33678
- s = Wi$1(t, i3.schema, {
33678
+ s = Ui$1(t, i3.schema, {
33679
33679
  parseOptions: {
33680
33680
  preserveWhitespace: "full",
33681
33681
  ...n.parseOptions
@@ -33806,7 +33806,7 @@ Actual: ` + p3.attribValue
33806
33806
  const Ry = (e, t = {}) => ({ state: n, dispatch: r }) => {
33807
33807
  const o = le$1(e, n.schema);
33808
33808
  return Oy(o, t)(n, r);
33809
- }, Ho$1 = (e, t) => {
33809
+ }, jo$1 = (e, t) => {
33810
33810
  for (let n = e.depth; n > 0; n--) {
33811
33811
  const r = e.node(n);
33812
33812
  if (t(r))
@@ -33817,7 +33817,7 @@ Actual: ` + p3.attribValue
33817
33817
  node: r
33818
33818
  };
33819
33819
  }
33820
- }, je$2 = (e) => ({ $from: t }) => Ho$1(t, e), Ui$1 = (e, t) => {
33820
+ }, je$2 = (e) => ({ $from: t }) => jo$1(t, e), qi$1 = (e, t) => {
33821
33821
  const r = t.filter((s) => s.type === "node").find((s) => s.name === e);
33822
33822
  if (!r) return false;
33823
33823
  const o = {
@@ -34969,14 +34969,14 @@ Actual: ` + p3.attribValue
34969
34969
  ]
34970
34970
  }
34971
34971
  ]
34972
- }, fi$1 = (e, t) => {
34972
+ }, pi$1 = (e, t) => {
34973
34973
  const n = je$2((s) => s.type === t)(e.selection);
34974
34974
  if (!n) return true;
34975
34975
  const r = e.doc.resolve(Math.max(0, n.pos - 1)).before(n.depth);
34976
34976
  if (r === void 0) return true;
34977
34977
  const o = e.doc.nodeAt(r);
34978
34978
  return n.node.type === o?.type && Rp$1(e.doc, n.pos) && e.join(n.pos), true;
34979
- }, pi$1 = (e, t) => {
34979
+ }, hi$1 = (e, t) => {
34980
34980
  const n = je$2((s) => s.type === t)(e.selection);
34981
34981
  if (!n) return true;
34982
34982
  const r = e.doc.resolve(n.start).after(n.depth);
@@ -34986,14 +34986,14 @@ Actual: ` + p3.attribValue
34986
34986
  }, By = (e, t, n, r = {}) => (o) => {
34987
34987
  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(e, a.schema), m = le$1(t, a.schema), { selection: g, storedMarks: b } = a, { $from: w, $to: x3 } = g, y = w.blockRange(x3), C3 = b || g.$to.parentOffset && g.$from.marks();
34988
34988
  if (!y) return false;
34989
- const k = je$2(($3) => Ui$1($3.type.name, f3))(g), { numbering: A } = i3.converter;
34989
+ const k = je$2(($3) => qi$1($3.type.name, f3))(g), { numbering: A } = i3.converter;
34990
34990
  if (y.depth >= 1 && k && y.depth - k.depth <= 1) {
34991
34991
  if (k.node.type === h3) {
34992
34992
  const { listId: $3 } = k.node.attrs;
34993
34993
  return i3.converter.numbering = _y($3, A), u.liftListItem(m);
34994
34994
  }
34995
- if (Ui$1(k.node.type.name, f3) && h3.validContent(k.node.content) && l)
34996
- return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => fi$1(s, h3)).command(() => pi$1(s, h3)).run();
34995
+ if (qi$1(k.node.type.name, f3) && h3.validContent(k.node.content) && l)
34996
+ return c3().command(() => (s.setNodeMarkup(k.pos, h3), true)).command(() => pi$1(s, h3)).command(() => hi$1(s, h3)).run();
34997
34997
  }
34998
34998
  const B = ({ ensureMarks: $3 = false }) => () => {
34999
34999
  const F3 = d().wrapInList(h3, r);
@@ -35003,7 +35003,7 @@ Actual: ` + p3.attribValue
35003
35003
  }
35004
35004
  return F3 ? true : u.clearNodes();
35005
35005
  }, M = Cd$1(A.definitions);
35006
- return i3.converter.numbering = zy(M, A, h3), r.listId = M, !n || !C3 || !l ? c3().command(B({ ensureMarks: false })).wrapInList(h3, r).command(() => fi$1(s, h3)).command(() => pi$1(s, h3)).run() : c3().command(B({ ensureMarks: true })).wrapInList(h3, r).command(() => fi$1(s, h3)).command(() => pi$1(s, h3)).run();
35006
+ return i3.converter.numbering = zy(M, A, h3), r.listId = M, !n || !C3 || !l ? c3().command(B({ ensureMarks: false })).wrapInList(h3, r).command(() => pi$1(s, h3)).command(() => hi$1(s, h3)).run() : c3().command(B({ ensureMarks: true })).wrapInList(h3, r).command(() => pi$1(s, h3)).command(() => hi$1(s, h3)).run();
35007
35007
  }, Cd$1 = (e) => Math.max(...Object.keys(e).map(Number)) + 1, zy = (e, t, n) => {
35008
35008
  const r = n.name === "orderedList" ? Ly : Fy, o = { ...t }, i3 = Cd$1(o.abstracts), s = {
35009
35009
  ...r,
@@ -35223,9 +35223,9 @@ Actual: ` + p3.attribValue
35223
35223
  }
35224
35224
  function Sd$1(e, t, n = {}) {
35225
35225
  if (!t)
35226
- return To$1(e, null, n) || Oo$1(e, null, n);
35226
+ return Do$1(e, null, n) || To$1(e, null, n);
35227
35227
  const r = Pr(t, e.schema);
35228
- return r === "node" ? To$1(e, t, n) : r === "mark" ? Oo$1(e, t, n) : false;
35228
+ return r === "node" ? Do$1(e, t, n) : r === "mark" ? To$1(e, t, n) : false;
35229
35229
  }
35230
35230
  const zs = ({
35231
35231
  tr: e,
@@ -35406,13 +35406,13 @@ Actual: ` + p3.attribValue
35406
35406
  }, Nd$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
35407
35407
  __proto__: null,
35408
35408
  chainableEditorState: Is,
35409
- cleanSchemaItem: $i$1,
35409
+ cleanSchemaItem: Vi$1,
35410
35410
  createDocument: Md$1,
35411
35411
  defaultBlockAt: vd$1,
35412
35412
  findChildren: _s,
35413
- findMark: Fo$1,
35413
+ findMark: Bo$1,
35414
35414
  findParentNode: je$2,
35415
- findParentNodeClosestToPos: Ho$1,
35415
+ findParentNodeClosestToPos: jo$1,
35416
35416
  generateDocxListAttributes: Jy,
35417
35417
  generateDocxRandomId: Ri$2,
35418
35418
  generateRandom32BitHex: nu$2,
@@ -35421,15 +35421,15 @@ Actual: ` + p3.attribValue
35421
35421
  getMarkRange: Bs,
35422
35422
  getMarkType: Ct$1,
35423
35423
  getMarksBetween: Yy,
35424
- getMarksFromSelection: Lo$1,
35424
+ getMarksFromSelection: Fo$1,
35425
35425
  getNodeType: le$1,
35426
35426
  getSchemaTypeByName: Gn$2,
35427
35427
  getSchemaTypeNameByName: Pr,
35428
35428
  isActive: Sd$1,
35429
35429
  isInTable: Dd$1,
35430
- isList: Ui$1,
35431
- isMarkActive: Oo$1,
35432
- isNodeActive: To$1,
35430
+ isList: qi$1,
35431
+ isMarkActive: To$1,
35432
+ isNodeActive: Do$1,
35433
35433
  isTextSelection: kd$1,
35434
35434
  posToDOMRect: Td$1
35435
35435
  }, Symbol.toStringTag, { value: "Module" })), Gy = (e, t, n) => {
@@ -35747,7 +35747,7 @@ Actual: ` + p3.attribValue
35747
35747
  fontSize: `${a}px`,
35748
35748
  lineHeight: `${l}px`
35749
35749
  }), document.body.appendChild(r);
35750
- const c3 = new qi$1({
35750
+ const c3 = new Ki$1({
35751
35751
  loadFromSchema: true,
35752
35752
  mode: "text",
35753
35753
  editable: false,
@@ -36113,7 +36113,7 @@ Actual: ` + p3.attribValue
36113
36113
  }), n;
36114
36114
  }
36115
36115
  const Ld$1 = ({ state: e, tr: t, step: n, newTr: r, map: o, doc: i3, user: s, date: a, originalStep: l, originalStepIndex: c3 }) => {
36116
- const d = e.schema.marks[Pi$2], u = Fo$1(e, d, false), f3 = u ? u.to : n.to, p3 = new Ie$2(
36116
+ const d = e.schema.marks[Pi$2], u = Bo$1(e, d, false), f3 = u ? u.to : n.to, p3 = new Ie$2(
36117
36117
  f3,
36118
36118
  // We insert all the same steps, but with "from"/"to" both set to "to" in order not to delete content. Mapped as needed.
36119
36119
  f3,
@@ -36270,7 +36270,7 @@ Actual: ` + p3.attribValue
36270
36270
  date: l
36271
36271
  }), console.debug("[track-changes]: removeMarkStep")) : (i3.step(u), console.log("[track-changes]: otherStep")));
36272
36272
  }), e.getMeta("inputType") && i3.setMeta(e.getMeta("inputType")), e.getMeta("uiEvent") && i3.setMeta(e.getMeta("uiEvent")), e.selectionSet) {
36273
- const c3 = t.schema.marks[Pi$2], d = Fo$1(t, c3, false);
36273
+ const c3 = t.schema.marks[Pi$2], d = Bo$1(t, c3, false);
36274
36274
  if (e.selection instanceof tt$3 && (e.selection.from < t.selection.from || e.getMeta("inputType") === "deleteContentBackward")) {
36275
36275
  const u = s.map(e.selection.from, -1);
36276
36276
  i3.setSelection(new tt$3(i3.doc.resolve(u)));
@@ -36310,7 +36310,7 @@ Actual: ` + p3.attribValue
36310
36310
  }, ol$1 = (e) => {
36311
36311
  if (e === "initial" || e === "0.4.14") return Object.values(mb);
36312
36312
  };
36313
- var tn$1, ws, S, _d$1, $d$1, Ki$1, Xi$1, Vd$1, Ji$1, Yi$1, Gi$1, Zi$1, Qi$1, es$1, Hd$1, ts$1, ns$1, rs$1, is$1, jd$1, Zn$2, Qn$2, Wd$1, Ud$1, qd$1, Kd$1;
36313
+ var tn$1, ws, S, _d$1, $d$1, Xi$1, Ji$1, Vd$1, co$2, Yi$1, Gi$1, Zi$1, Qi$1, es$1, Hd$1, ts$1, ns$1, rs$1, is$1, jd$1, Zn$2, Qn$2, Wd$1, Ud$1, qd$1, Kd$1;
36314
36314
  const Qs = class Qs2 extends bg {
36315
36315
  constructor(n) {
36316
36316
  super();
@@ -36385,8 +36385,8 @@ Actual: ` + p3.attribValue
36385
36385
  N$1(this, S, _d$1).call(this, n), N$1(this, S, Vd$1).call(this, n), this.setOptions(n);
36386
36386
  let r = {
36387
36387
  docx: () => N$1(this, S, $d$1).call(this, this.options),
36388
- text: () => N$1(this, S, Ki$1).call(this, this.options),
36389
- html: () => N$1(this, S, Ki$1).call(this, this.options),
36388
+ text: () => N$1(this, S, Xi$1).call(this, this.options),
36389
+ html: () => N$1(this, S, Xi$1).call(this, this.options),
36390
36390
  default: () => {
36391
36391
  console.log("Not implemented.");
36392
36392
  }
@@ -36467,9 +36467,9 @@ Actual: ` + p3.attribValue
36467
36467
  initializeCollaborationData() {
36468
36468
  if (!this.options.isNewFile || !this.options.collaborationProvider) return;
36469
36469
  const { collaborationProvider: n } = this.options, r = () => {
36470
- n.off("synced", r), N$1(this, S, Ji$1).call(this);
36470
+ n.off("synced", r), N$1(this, S, co$2).call(this);
36471
36471
  };
36472
- n.synced ? N$1(this, S, Ji$1).call(this) : n.on("synced", r);
36472
+ n.synced ? N$1(this, S, co$2).call(this) : n.on("synced", r);
36473
36473
  }
36474
36474
  /**
36475
36475
  * Set editor options and update state.
@@ -36687,7 +36687,7 @@ Actual: ` + p3.attribValue
36687
36687
  * @returns {Y.Doc | undefined} Updated Y.Doc if any, otherwise undefined
36688
36688
  */
36689
36689
  processCollaborationMigrations() {
36690
- if (console.debug("[checkVersionMigrations] Current editor version", "0.10.60"), !this.options.ydoc) return;
36690
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.10.62"), !this.options.ydoc) return;
36691
36691
  let r = this.options.ydoc.getMap("meta").get("version");
36692
36692
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
36693
36693
  const o = ol$1(r) || [], s = this.state.plugins.find((c3) => c3.key.startsWith("y-sync"));
@@ -36699,6 +36699,7 @@ Actual: ` + p3.attribValue
36699
36699
  return a ? (s?.getState(this.state)).doc : void 0;
36700
36700
  }
36701
36701
  async replaceFile(n) {
36702
+ this.setOptions({ annotations: true });
36702
36703
  const [r, o, i3, s] = await Qs2.loadXmlData(n);
36703
36704
  this.setOptions({
36704
36705
  fileSource: n,
@@ -36709,7 +36710,7 @@ Actual: ` + p3.attribValue
36709
36710
  isNewFile: true,
36710
36711
  shouldLoadComments: true,
36711
36712
  replacedFile: true
36712
- }), N$1(this, S, Qi$1).call(this), N$1(this, S, es$1).call(this), this.initDefaultStyles(), this.initializeCollaborationData(true), this.options.ydoc || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this));
36713
+ }), N$1(this, S, Qi$1).call(this), N$1(this, S, es$1).call(this), this.initDefaultStyles(), this.options.ydoc && this.options.collaborationProvider ? this.initializeCollaborationData(true) : N$1(this, S, co$2).call(this), this.options.ydoc || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this));
36713
36714
  }
36714
36715
  };
36715
36716
  tn$1 = /* @__PURE__ */ new WeakMap(), ws = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakSet(), _d$1 = function(n) {
@@ -36719,22 +36720,22 @@ Actual: ` + p3.attribValue
36719
36720
  }
36720
36721
  n.element = n.isHeadless ? null : n.element || document.createElement("div");
36721
36722
  }, $d$1 = function(n) {
36722
- N$1(this, S, Gi$1).call(this), N$1(this, S, Zi$1).call(this), N$1(this, S, ts$1).call(this), N$1(this, S, Qi$1).call(this), N$1(this, S, es$1).call(this), N$1(this, S, Hd$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), this.on("exception", this.options.onException), N$1(this, S, is$1).call(this), this.initDefaultStyles(), this.setDocumentMode(n.documentMode), !this.options.isHeadless && (this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S, Xi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("trackedChangesUpdate", this.options.onTrackedChangesUpdate), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("commentsUpdate", this.options.onCommentsUpdate), this.on("locked", this.options.onDocumentLocked), this.on("collaborationReady", N$1(this, S, jd$1)), this.on("paginationUpdate", this.options.onPaginationUpdate), this.on("comment-positions", this.options.onCommentLocationsUpdate), this.initializeCollaborationData(), this.options.ydoc || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this)), window.setTimeout(() => {
36723
+ N$1(this, S, Gi$1).call(this), N$1(this, S, Zi$1).call(this), N$1(this, S, ts$1).call(this), N$1(this, S, Qi$1).call(this), N$1(this, S, es$1).call(this), N$1(this, S, Hd$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), this.on("exception", this.options.onException), N$1(this, S, is$1).call(this), this.initDefaultStyles(), this.setDocumentMode(n.documentMode), !this.options.isHeadless && (this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S, Ji$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("trackedChangesUpdate", this.options.onTrackedChangesUpdate), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("commentsUpdate", this.options.onCommentsUpdate), this.on("locked", this.options.onDocumentLocked), this.on("collaborationReady", N$1(this, S, jd$1)), this.on("paginationUpdate", this.options.onPaginationUpdate), this.on("comment-positions", this.options.onCommentLocationsUpdate), this.initializeCollaborationData(), this.options.ydoc || (N$1(this, S, Qn$2).call(this), N$1(this, S, Zn$2).call(this)), window.setTimeout(() => {
36723
36724
  this.isDestroyed || this.emit("create", { editor: this });
36724
36725
  }, 0));
36725
- }, Ki$1 = function(n) {
36726
- (!n.extensions || !n.extensions.length) && (this.options.extensions = Jk()), N$1(this, S, Gi$1).call(this), N$1(this, S, Zi$1).call(this), N$1(this, S, ts$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), N$1(this, S, is$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S, Xi$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
36726
+ }, Xi$1 = function(n) {
36727
+ (!n.extensions || !n.extensions.length) && (this.options.extensions = Jk()), N$1(this, S, Gi$1).call(this), N$1(this, S, Zi$1).call(this), N$1(this, S, ts$1).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), N$1(this, S, is$1).call(this), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", N$1(this, S, Ji$1)), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("commentsLoaded", this.options.onCommentsLoaded), this.on("commentClick", this.options.onCommentClicked), this.on("locked", this.options.onDocumentLocked), window.setTimeout(() => {
36727
36728
  this.isDestroyed || this.emit("create", { editor: this });
36728
36729
  }, 0);
36729
- }, Xi$1 = function({ editor: n, event: r }) {
36730
+ }, Ji$1 = function({ editor: n, event: r }) {
36730
36731
  this.toolbar?.setActiveEditor(n), this.options.onFocus({ editor: n, event: r });
36731
36732
  }, Vd$1 = function(n) {
36732
- n.isHeadless && (typeof navigator > "u" && (ni.navigator = { isHeadless: true }), n.mockDocument && (ni.document = n.mockDocument, ni.window = n.mockWindow));
36733
+ n.isHeadless && (typeof navigator > "u" && (ri.navigator = { isHeadless: true }), n.mockDocument && (ri.document = n.mockDocument, ri.window = n.mockWindow));
36733
36734
  }, /**
36734
36735
  * Replace the current document with new data. Necessary for initializing a new collaboration file,
36735
36736
  * since we need to insert the data only after the provider has synced.
36736
36737
  */
36737
- Ji$1 = function() {
36738
+ co$2 = function() {
36738
36739
  if (!this.options.isNewFile) return;
36739
36740
  this.options.isNewFile = false;
36740
36741
  const n = N$1(this, S, ns$1).call(this), r = this.state.tr.replaceWith(0, this.state.doc.content.size, n);
@@ -36751,12 +36752,12 @@ Actual: ` + p3.attribValue
36751
36752
  const n = ["extension", "node", "mark"], r = [Ky, Wy, Xy, qy], o = this.options.externalExtensions || [], i3 = [...r, ...this.options.extensions].filter(
36752
36753
  (s) => n.includes(s?.type)
36753
36754
  );
36754
- this.extensionService = Hi$1.create(i3, o, this);
36755
+ this.extensionService = ji$1.create(i3, o, this);
36755
36756
  }, /**
36756
36757
  * Creates a command service.
36757
36758
  */
36758
36759
  Zi$1 = function() {
36759
- Xo$1(this, tn$1, Vo$1.create({
36760
+ Jo$1(this, tn$1, Ho$1.create({
36760
36761
  editor: this
36761
36762
  }));
36762
36763
  }, /**
@@ -36931,7 +36932,7 @@ Actual: ` + p3.attribValue
36931
36932
  } catch {
36932
36933
  }
36933
36934
  };
36934
- let qi$1 = Qs;
36935
+ let Ki$1 = Qs;
36935
36936
  let K$1 = class K3 {
36936
36937
  constructor(t) {
36937
36938
  I$2(this, "type", "node");
@@ -37238,7 +37239,7 @@ Actual: ` + p3.attribValue
37238
37239
  clearNodesFormat: () => ({ chain: e }) => e().clearNodes().run(),
37239
37240
  copyFormat: () => ({ chain: e }) => {
37240
37241
  if (!this.storage.storedStyle) {
37241
- const i3 = Lo$1(this.editor.state);
37242
+ const i3 = Fo$1(this.editor.state);
37242
37243
  return this.storage.storedStyle = i3, true;
37243
37244
  }
37244
37245
  if (!this.storage.storedStyle.length)
@@ -37845,7 +37846,7 @@ Actual: ` + p3.attribValue
37845
37846
  };
37846
37847
  }
37847
37848
  });
37848
- function Do$1(e) {
37849
+ function No$1(e) {
37849
37850
  return new Dg({
37850
37851
  match: e.match,
37851
37852
  handler: ({
@@ -37923,11 +37924,11 @@ Actual: ` + p3.attribValue
37923
37924
  },
37924
37925
  // Input rules.
37925
37926
  addInputRules() {
37926
- let e = Do$1({
37927
+ let e = No$1({
37927
37928
  match: il$1,
37928
37929
  type: this.type
37929
37930
  });
37930
- return (this.options.keepMarks || this.options.keepAttributes) && (e = Do$1({
37931
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = No$1({
37931
37932
  match: il$1,
37932
37933
  type: this.type,
37933
37934
  keepMarks: this.options.keepMarks,
@@ -38230,13 +38231,13 @@ Actual: ` + p3.attribValue
38230
38231
  return [Vb(this.editor), _b()];
38231
38232
  },
38232
38233
  addInputRules() {
38233
- let e = Do$1({
38234
+ let e = No$1({
38234
38235
  match: al$1,
38235
38236
  type: this.type,
38236
38237
  getAttributes: (t) => ({ start: +t[1] }),
38237
38238
  joinPredicate: (t, n) => n.childCount + n.attrs.start === +t[1]
38238
38239
  });
38239
- return (this.options.keepMarks || this.options.keepAttributes) && (e = Do$1({
38240
+ return (this.options.keepMarks || this.options.keepAttributes) && (e = No$1({
38240
38241
  match: al$1,
38241
38242
  type: this.type,
38242
38243
  keepMarks: this.options.keepMarks,
@@ -38502,7 +38503,7 @@ Actual: ` + p3.attribValue
38502
38503
  addPmPlugins() {
38503
38504
  return [e0$1()];
38504
38505
  }
38505
- }), co$2 = new _p$1("linkedStyles"), r0$1 = ee$1.create({
38506
+ }), uo$2 = new _p$1("linkedStyles"), r0$1 = ee$1.create({
38506
38507
  name: "linkedStyles",
38507
38508
  addPmPlugins() {
38508
38509
  return [o0$1(this.editor)];
@@ -38526,7 +38527,7 @@ Actual: ` + p3.attribValue
38526
38527
  };
38527
38528
  }
38528
38529
  }), o0$1 = (e) => new Lp$1({
38529
- key: co$2,
38530
+ key: uo$2,
38530
38531
  state: {
38531
38532
  init(t, { doc: n, selection: r }) {
38532
38533
  if (!e.converter || e.options.mode !== "docx") return {};
@@ -38540,7 +38541,7 @@ Actual: ` + p3.attribValue
38540
38541
  if (!e.converter || e.options.mode !== "docx") return { ...n };
38541
38542
  let i3 = n.decorations || L.empty;
38542
38543
  if (t.docChanged) {
38543
- const s = co$2.getState(e.state).styles;
38544
+ const s = uo$2.getState(e.state).styles;
38544
38545
  i3 = dl$1(o, s);
38545
38546
  }
38546
38547
  return { ...n, decorations: i3 };
@@ -38548,7 +38549,7 @@ Actual: ` + p3.attribValue
38548
38549
  },
38549
38550
  props: {
38550
38551
  decorations(t) {
38551
- return co$2.getState(t)?.decorations;
38552
+ return uo$2.getState(t)?.decorations;
38552
38553
  }
38553
38554
  }
38554
38555
  }), dl$1 = (e, t) => {
@@ -38960,7 +38961,7 @@ Actual: ` + p3.attribValue
38960
38961
  }
38961
38962
  })];
38962
38963
  }
38963
- }), hi$1 = 48, fl$1 = (e, t) => {
38964
+ }), mi$1 = 48, fl$1 = (e, t) => {
38964
38965
  let n = [];
38965
38966
  return e.doc.descendants((r, o) => {
38966
38967
  if (r.type.name === "tab") {
@@ -38977,7 +38978,7 @@ Actual: ` + p3.attribValue
38977
38978
  } catch {
38978
38979
  return;
38979
38980
  }
38980
- const l = i3.nodeBefore?.type.name === "tab" ? hi$1 : hi$1 - a % hi$1, c3 = y0$1(i3);
38981
+ const l = i3.nodeBefore?.type.name === "tab" ? mi$1 : mi$1 - a % mi$1, c3 = y0$1(i3);
38981
38982
  n.push(
38982
38983
  _.node(o, o + r.nodeSize, { style: `width: ${l}px; height: ${c3};` })
38983
38984
  );
@@ -39370,7 +39371,7 @@ Actual: ` + p3.attribValue
39370
39371
  if (t.node(n).type.spec.tableRole == "row") return true;
39371
39372
  return false;
39372
39373
  }
39373
- function jo$1(e) {
39374
+ function Wo$1(e) {
39374
39375
  const t = e.selection;
39375
39376
  if ("$anchorCell" in t && t.$anchorCell)
39376
39377
  return t.$anchorCell.pos > t.$headCell.pos ? t.$anchorCell : t.$headCell;
@@ -39734,7 +39735,7 @@ Actual: ` + p3.attribValue
39734
39735
  return r.setMeta(R0, { fixTables: true });
39735
39736
  }
39736
39737
  function ct$1(e) {
39737
- const t = e.selection, n = jo$1(e), r = n.node(-1), o = n.start(-1), i3 = re$2.get(r);
39738
+ const t = e.selection, n = Wo$1(e), r = n.node(-1), o = n.start(-1), i3 = re$2.get(r);
39738
39739
  return { ...t instanceof J$2 ? i3.rectBetween(
39739
39740
  t.$anchorCell.pos - o,
39740
39741
  t.$headCell.pos - o
@@ -40006,7 +40007,7 @@ Actual: ` + p3.attribValue
40006
40007
  function K0(e, t) {
40007
40008
  return function(n, r) {
40008
40009
  if (!Ze$1(n)) return false;
40009
- const o = jo$1(n);
40010
+ const o = Wo$1(n);
40010
40011
  if (o.nodeAfter.attrs[e] === t) return false;
40011
40012
  if (r) {
40012
40013
  const i3 = n.tr;
@@ -40133,7 +40134,7 @@ Actual: ` + p3.attribValue
40133
40134
  function kl$1(e) {
40134
40135
  return function(t, n) {
40135
40136
  if (!Ze$1(t)) return false;
40136
- const r = Y0(jo$1(t), e);
40137
+ const r = Y0(Wo$1(t), e);
40137
40138
  if (r == null) return false;
40138
40139
  if (n) {
40139
40140
  const o = t.doc.resolve(r);
@@ -40378,7 +40379,7 @@ Actual: ` + p3.attribValue
40378
40379
  Delete: Gr$1,
40379
40380
  "Mod-Delete": Gr$1
40380
40381
  });
40381
- function uo$2(e, t, n) {
40382
+ function fo$2(e, t, n) {
40382
40383
  return n.eq(e.selection) ? false : (t && t(e.tr.setSelection(n).scrollIntoView()), true);
40383
40384
  }
40384
40385
  function Zr$1(e, t) {
@@ -40386,7 +40387,7 @@ Actual: ` + p3.attribValue
40386
40387
  if (!o) return false;
40387
40388
  const i3 = n.selection;
40388
40389
  if (i3 instanceof J$2)
40389
- return uo$2(
40390
+ return fo$2(
40390
40391
  n,
40391
40392
  r,
40392
40393
  ve$2.near(i3.$headCell, t)
@@ -40395,7 +40396,7 @@ Actual: ` + p3.attribValue
40395
40396
  const s = xu$1(o, e, t);
40396
40397
  if (s == null) return false;
40397
40398
  if (e == "horiz")
40398
- return uo$2(
40399
+ return fo$2(
40399
40400
  n,
40400
40401
  r,
40401
40402
  ve$2.near(n.doc.resolve(i3.head + t), t)
@@ -40403,7 +40404,7 @@ Actual: ` + p3.attribValue
40403
40404
  {
40404
40405
  const a = n.doc.resolve(s), l = mu$1(a, e, t);
40405
40406
  let c3;
40406
- return l ? c3 = ve$2.near(l, 1) : t < 0 ? c3 = ve$2.near(n.doc.resolve(a.before(-1)), -1) : c3 = ve$2.near(n.doc.resolve(a.after(-1)), 1), uo$2(n, r, c3);
40407
+ return l ? c3 = ve$2.near(l, 1) : t < 0 ? c3 = ve$2.near(n.doc.resolve(a.before(-1)), -1) : c3 = ve$2.near(n.doc.resolve(a.after(-1)), 1), fo$2(n, r, c3);
40407
40408
  }
40408
40409
  };
40409
40410
  }
@@ -40420,7 +40421,7 @@ Actual: ` + p3.attribValue
40420
40421
  s = new J$2(n.doc.resolve(l));
40421
40422
  }
40422
40423
  const a = mu$1(s.$headCell, e, t);
40423
- return a ? uo$2(
40424
+ return a ? fo$2(
40424
40425
  n,
40425
40426
  r,
40426
40427
  new J$2(s.$anchorCell, a)
@@ -40451,7 +40452,7 @@ Actual: ` + p3.attribValue
40451
40452
  );
40452
40453
  return r = ew(r, a.right - a.left, a.bottom - a.top), Ml$1(e.state, e.dispatch, s, a, r), true;
40453
40454
  } else if (r) {
40454
- const i3 = jo$1(e.state), s = i3.start(-1);
40455
+ const i3 = Wo$1(e.state), s = i3.start(-1);
40455
40456
  return Ml$1(
40456
40457
  e.state,
40457
40458
  e.dispatch,
@@ -40469,12 +40470,12 @@ Actual: ` + p3.attribValue
40469
40470
  let o;
40470
40471
  if (t.shiftKey && e.state.selection instanceof J$2)
40471
40472
  i3(e.state.selection.$anchorCell, t), t.preventDefault();
40472
- else if (t.shiftKey && r && (o = Hn$2(e.state.selection.$anchor)) != null && ((n = mi$1(e, t)) == null ? void 0 : n.pos) != o.pos)
40473
+ else if (t.shiftKey && r && (o = Hn$2(e.state.selection.$anchor)) != null && ((n = gi$1(e, t)) == null ? void 0 : n.pos) != o.pos)
40473
40474
  i3(o, t), t.preventDefault();
40474
40475
  else if (!r)
40475
40476
  return;
40476
40477
  function i3(l, c3) {
40477
- let d = mi$1(e, c3);
40478
+ let d = gi$1(e, c3);
40478
40479
  const u = Et.getState(e.state) == null;
40479
40480
  if (!d || !Ws(l, d))
40480
40481
  if (u) d = l;
@@ -40493,7 +40494,7 @@ Actual: ` + p3.attribValue
40493
40494
  let u;
40494
40495
  if (d != null)
40495
40496
  u = e.state.doc.resolve(d);
40496
- else if (Sl$1(e, c3.target) != r && (u = mi$1(e, t), !u))
40497
+ else if (Sl$1(e, c3.target) != r && (u = gi$1(e, t), !u))
40497
40498
  return s();
40498
40499
  u && i3(u, c3);
40499
40500
  }
@@ -40518,7 +40519,7 @@ Actual: ` + p3.attribValue
40518
40519
  return t;
40519
40520
  return null;
40520
40521
  }
40521
- function mi$1(e, t) {
40522
+ function gi$1(e, t) {
40522
40523
  const n = e.posAtCoords({
40523
40524
  left: t.clientX,
40524
40525
  top: t.clientY
@@ -40616,19 +40617,19 @@ Actual: ` + p3.attribValue
40616
40617
  });
40617
40618
  return i3;
40618
40619
  }
40619
- var lw = class fo2 {
40620
+ var lw = class po2 {
40620
40621
  constructor(t, n) {
40621
40622
  this.activeHandle = t, this.dragging = n;
40622
40623
  }
40623
40624
  apply(t) {
40624
40625
  const n = this, r = t.getMeta(Ie$1);
40625
40626
  if (r && r.setHandle != null)
40626
- return new fo2(r.setHandle, false);
40627
+ return new po2(r.setHandle, false);
40627
40628
  if (r && r.setDragging !== void 0)
40628
- return new fo2(n.activeHandle, r.setDragging);
40629
+ return new po2(n.activeHandle, r.setDragging);
40629
40630
  if (n.activeHandle > -1 && t.docChanged) {
40630
40631
  let o = t.mapping.map(n.activeHandle, -1);
40631
- return ls$1(t.doc.resolve(o)) || (o = -1), new fo2(o, n.dragging);
40632
+ return ls$1(t.doc.resolve(o)) || (o = -1), new po2(o, n.dragging);
40632
40633
  }
40633
40634
  return n;
40634
40635
  }
@@ -40834,7 +40835,7 @@ Actual: ` + p3.attribValue
40834
40835
  const { selection: t } = e.state;
40835
40836
  if (!bw(t)) return false;
40836
40837
  let n = 0;
40837
- return Ho$1(t.ranges[0].$from, (i3) => i3.type.name === "table")?.node.descendants((i3) => {
40838
+ return jo$1(t.ranges[0].$from, (i3) => i3.type.name === "table")?.node.descendants((i3) => {
40838
40839
  if (i3.type.name === "table") return false;
40839
40840
  ["tableCell", "tableHeader"].includes(i3.type.name) && (n += 1);
40840
40841
  }), n === t.ranges.length ? (e.commands.deleteTable(), true) : false;
@@ -41440,7 +41441,7 @@ Actual: ` + p3.attribValue
41440
41441
  }), r;
41441
41442
  }
41442
41443
  const { findChildren: Sw } = Nd$1;
41443
- function po$2(e, t) {
41444
+ function ho$2(e, t) {
41444
41445
  return Sw(t.doc, (r) => {
41445
41446
  let o = r.type.name === "fieldAnnotation";
41446
41447
  return Array.isArray(e) ? o && e.includes(r.attrs.fieldId) : o && r.attrs.fieldId === e;
@@ -41455,7 +41456,7 @@ Actual: ` + p3.attribValue
41455
41456
  if (t(r) && (n = { node: r, pos: o }), n) return false;
41456
41457
  }), n;
41457
41458
  }
41458
- function ho$2(e, t, n) {
41459
+ function mo$2(e, t, n) {
41459
41460
  let r = [];
41460
41461
  return n.nodesBetween(e, t, (o, i3) => {
41461
41462
  !o || o?.nodeSize === void 0 || o.type.name === "fieldAnnotation" && r.push({
@@ -41467,8 +41468,8 @@ Actual: ` + p3.attribValue
41467
41468
  const ax = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41468
41469
  __proto__: null,
41469
41470
  findFieldAnnotations: Mw,
41470
- findFieldAnnotationsBetween: ho$2,
41471
- findFieldAnnotationsByFieldId: po$2,
41471
+ findFieldAnnotationsBetween: mo$2,
41472
+ findFieldAnnotationsByFieldId: ho$2,
41472
41473
  findFirstFieldAnnotationByFieldId: Aw,
41473
41474
  findRemovedFieldAnnotations: Du$1,
41474
41475
  getAllFieldAnnotations: It,
@@ -41835,7 +41836,7 @@ Actual: ` + p3.attribValue
41835
41836
  * })
41836
41837
  */
41837
41838
  updateFieldAnnotations: (e, t = {}) => ({ dispatch: n, state: r, commands: o }) => {
41838
- let i3 = po$2(e, r);
41839
+ let i3 = ho$2(e, r);
41839
41840
  return i3.length && n ? o.updateFieldAnnotationsAttributes(i3, t) : true;
41840
41841
  },
41841
41842
  /**
@@ -41870,7 +41871,7 @@ Actual: ` + p3.attribValue
41870
41871
  * editor.commands.deleteFieldAnnotations(['123', '456'])
41871
41872
  */
41872
41873
  deleteFieldAnnotations: (e) => ({ dispatch: t, state: n, tr: r }) => {
41873
- let o = po$2(e, n);
41874
+ let o = ho$2(e, n);
41874
41875
  return o.length && t && o.forEach((i3) => {
41875
41876
  let { pos: s, node: a } = i3, l = r.mapping.map(s), c3 = r.mapping.map(s + a.nodeSize), d = r.doc.nodeAt(l);
41876
41877
  a.eq(d) && r.delete(l, c3);
@@ -41899,7 +41900,7 @@ Actual: ` + p3.attribValue
41899
41900
  * editor.commands.sliceFieldAnnotations(['123', '456'], 5)
41900
41901
  */
41901
41902
  sliceFieldAnnotations: (e, t) => ({ dispatch: n, state: r, tr: o }) => {
41902
- let i3 = po$2(e, r);
41903
+ let i3 = ho$2(e, r);
41903
41904
  return i3.length && n && i3.forEach((s, a) => {
41904
41905
  if (a >= t) {
41905
41906
  let { pos: l, node: c3 } = s, d = o.mapping.map(l), u = o.mapping.map(l + c3.nodeSize), f3 = o.doc.nodeAt(d);
@@ -41985,7 +41986,7 @@ Actual: ` + p3.attribValue
41985
41986
  toggleFieldAnnotationsFormat: (e, t = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
41986
41987
  if (!this.options.toggleFormatNames.includes(e))
41987
41988
  return false;
41988
- let { from: a, to: l, node: c3 } = o.selection, d = ho$2(a, l, o.doc);
41989
+ let { from: a, to: l, node: c3 } = o.selection, d = mo$2(a, l, o.doc);
41989
41990
  return d.length && n && (d.forEach((u) => {
41990
41991
  i3.updateFieldAnnotationsAttributes([u], {
41991
41992
  [e]: !u.node.attrs[e]
@@ -41993,7 +41994,7 @@ Actual: ` + p3.attribValue
41993
41994
  }), t && c3?.type.name === this.name && r.setSelection(We$3.create(r.doc, a))), true;
41994
41995
  },
41995
41996
  setFieldAnnotationsFontFamily: (e, t = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
41996
- let { from: s, to: a, node: l } = o.selection, c3 = ho$2(s, a, o.doc);
41997
+ let { from: s, to: a, node: l } = o.selection, c3 = mo$2(s, a, o.doc);
41997
41998
  return c3.length && n && (c3.forEach((d) => {
41998
41999
  i3.updateFieldAnnotationsAttributes([d], {
41999
42000
  fontFamily: e
@@ -42001,7 +42002,7 @@ Actual: ` + p3.attribValue
42001
42002
  }), t && l?.type.name === this.name && r.setSelection(We$3.create(r.doc, s))), true;
42002
42003
  },
42003
42004
  setFieldAnnotationsFontSize: (e, t = false) => ({ dispatch: n, tr: r, state: o, commands: i3 }) => {
42004
- let { from: s, to: a, node: l } = o.selection, c3 = ho$2(s, a, o.doc);
42005
+ let { from: s, to: a, node: l } = o.selection, c3 = mo$2(s, a, o.doc);
42005
42006
  if (!c3.length)
42006
42007
  return true;
42007
42008
  let [d, u] = Of$1(e), f3 = 8, p3 = 96, h3 = "pt";
@@ -42049,15 +42050,15 @@ Actual: ` + p3.attribValue
42049
42050
  }
42050
42051
  return t;
42051
42052
  }
42052
- const No$1 = new _p$1("ImagePlaceholder"), Vw = (e = {}) => new Lp$1({
42053
- key: No$1,
42053
+ const Eo$2 = new _p$1("ImagePlaceholder"), Vw = (e = {}) => new Lp$1({
42054
+ key: Eo$2,
42054
42055
  state: {
42055
42056
  init() {
42056
42057
  return L.empty;
42057
42058
  },
42058
42059
  apply(t, n, r, o) {
42059
42060
  n = n.map(t.mapping, t.doc);
42060
- let i3 = t.getMeta(No$1);
42061
+ let i3 = t.getMeta(Eo$2);
42061
42062
  if (i3?.type === "add") {
42062
42063
  let s = document.createElement("placeholder"), a = _.widget(i3.pos, s, {
42063
42064
  id: i3.id
@@ -42073,7 +42074,7 @@ Actual: ` + p3.attribValue
42073
42074
  }
42074
42075
  }
42075
42076
  }), lx = (e, t) => {
42076
- let r = No$1.getState(e)?.find(null, null, (o) => o.id === t);
42077
+ let r = Eo$2.getState(e)?.find(null, null, (o) => o.id === t);
42077
42078
  return r?.length ? r[0].from : null;
42078
42079
  }, Iu$1 = K$1.create({
42079
42080
  name: "image",
@@ -43110,7 +43111,7 @@ Actual: ` + p3.attribValue
43110
43111
  function it$1(e) {
43111
43112
  return e.split("-")[0];
43112
43113
  }
43113
- var an$2 = Math.max, Eo$2 = Math.min, Ln$2 = Math.round;
43114
+ var an$2 = Math.max, Po$1 = Math.min, Ln$2 = Math.round;
43114
43115
  function hs$1() {
43115
43116
  var e = navigator.userAgentData;
43116
43117
  return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
@@ -43171,7 +43172,7 @@ Actual: ` + p3.attribValue
43171
43172
  e.document
43172
43173
  )) || window.document).documentElement;
43173
43174
  }
43174
- function Wo$1(e) {
43175
+ function Uo$1(e) {
43175
43176
  return lt$1(e) === "html" ? e : (
43176
43177
  // this is a quicker (but less type safe) way to save quite some bytes from the bundle
43177
43178
  // $FlowFixMe[incompatible-return]
@@ -43194,7 +43195,7 @@ Actual: ` + p3.attribValue
43194
43195
  if (r.position === "fixed")
43195
43196
  return null;
43196
43197
  }
43197
- var o = Wo$1(e);
43198
+ var o = Uo$1(e);
43198
43199
  for (qs(o) && (o = o.host); We$2(o) && ["html", "body"].indexOf(lt$1(o)) < 0; ) {
43199
43200
  var i3 = xt$1(o);
43200
43201
  if (i3.transform !== "none" || i3.perspective !== "none" || i3.contain === "paint" || ["transform", "perspective"].indexOf(i3.willChange) !== -1 || t && i3.willChange === "filter" || t && i3.filter && i3.filter !== "none")
@@ -43212,7 +43213,7 @@ Actual: ` + p3.attribValue
43212
43213
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
43213
43214
  }
43214
43215
  function sr$1(e, t, n) {
43215
- return an$2(e, Eo$2(t, n));
43216
+ return an$2(e, Po$1(t, n));
43216
43217
  }
43217
43218
  function gv(e, t, n) {
43218
43219
  var r = sr$1(e, t, n);
@@ -43377,7 +43378,7 @@ Actual: ` + p3.attribValue
43377
43378
  bottom: "top",
43378
43379
  top: "bottom"
43379
43380
  };
43380
- function mo$2(e) {
43381
+ function go$2(e) {
43381
43382
  return e.replace(/left|right|bottom|top/g, function(t) {
43382
43383
  return Ov[t];
43383
43384
  });
@@ -43429,7 +43430,7 @@ Actual: ` + p3.attribValue
43429
43430
  return /auto|scroll|overlay|hidden/.test(n + o + r);
43430
43431
  }
43431
43432
  function Qu$1(e) {
43432
- return ["html", "body", "#document"].indexOf(lt$1(e)) >= 0 ? e.ownerDocument.body : We$2(e) && Gs(e) ? e : Qu$1(Wo$1(e));
43433
+ return ["html", "body", "#document"].indexOf(lt$1(e)) >= 0 ? e.ownerDocument.body : We$2(e) && Gs(e) ? e : Qu$1(Uo$1(e));
43433
43434
  }
43434
43435
  function ar$1(e, t) {
43435
43436
  var n;
@@ -43437,7 +43438,7 @@ Actual: ` + p3.attribValue
43437
43438
  var r = Qu$1(e), o = r === ((n = e.ownerDocument) == null ? void 0 : n.body), i3 = Fe$1(r), s = o ? [i3].concat(i3.visualViewport || [], Gs(r) ? r : []) : r, a = t.concat(s);
43438
43439
  return o ? a : (
43439
43440
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
43440
- a.concat(ar$1(Wo$1(s)))
43441
+ a.concat(ar$1(Uo$1(s)))
43441
43442
  );
43442
43443
  }
43443
43444
  function ms(e) {
@@ -43456,7 +43457,7 @@ Actual: ` + p3.attribValue
43456
43457
  return t === Uu$1 ? ms(Dv(e, n)) : fn$2(t) ? Ev(t, n) : ms(Nv(Wt$1(e)));
43457
43458
  }
43458
43459
  function Pv(e) {
43459
- var t = ar$1(Wo$1(e)), n = ["absolute", "fixed"].indexOf(xt$1(e).position) >= 0, r = n && We$2(e) ? Rr(e) : e;
43460
+ var t = ar$1(Uo$1(e)), n = ["absolute", "fixed"].indexOf(xt$1(e).position) >= 0, r = n && We$2(e) ? Rr(e) : e;
43460
43461
  return fn$2(r) ? t.filter(function(o) {
43461
43462
  return fn$2(o) && Ju$1(o, r) && lt$1(o) !== "body";
43462
43463
  }) : [];
@@ -43464,7 +43465,7 @@ Actual: ` + p3.attribValue
43464
43465
  function Iv(e, t, n, r) {
43465
43466
  var o = t === "clippingParents" ? Pv(e) : [].concat(t), i3 = [].concat(o, [n]), s = i3[0], a = i3.reduce(function(l, c3) {
43466
43467
  var d = Bl$1(e, c3, r);
43467
- return l.top = an$2(d.top, l.top), l.right = Eo$2(d.right, l.right), l.bottom = Eo$2(d.bottom, l.bottom), l.left = an$2(d.left, l.left), l;
43468
+ return l.top = an$2(d.top, l.top), l.right = Po$1(d.right, l.right), l.bottom = Po$1(d.bottom, l.bottom), l.left = an$2(d.left, l.left), l;
43468
43469
  }, Bl$1(e, s, r));
43469
43470
  return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
43470
43471
  }
@@ -43559,13 +43560,13 @@ Actual: ` + p3.attribValue
43559
43560
  function Lv(e) {
43560
43561
  if (it$1(e) === Us)
43561
43562
  return [];
43562
- var t = mo$2(e);
43563
+ var t = go$2(e);
43563
43564
  return [Fl$1(e), t, Fl$1(t)];
43564
43565
  }
43565
43566
  function Fv(e) {
43566
43567
  var t = e.state, n = e.options, r = e.name;
43567
43568
  if (!t.modifiersData[r]._skip) {
43568
- for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = t.options.placement, b = it$1(g), w = b === g, x3 = l || (w || !h3 ? [mo$2(g)] : Lv(g)), y = [g].concat(x3).reduce(function(Ke2, Pe2) {
43569
+ for (var o = n.mainAxis, i3 = o === void 0 ? true : o, s = n.altAxis, a = s === void 0 ? true : s, l = n.fallbackPlacements, c3 = n.padding, d = n.boundary, u = n.rootBoundary, f3 = n.altBoundary, p3 = n.flipVariations, h3 = p3 === void 0 ? true : p3, m = n.allowedAutoPlacements, g = t.options.placement, b = it$1(g), w = b === g, x3 = l || (w || !h3 ? [go$2(g)] : Lv(g)), y = [g].concat(x3).reduce(function(Ke2, Pe2) {
43569
43570
  return Ke2.concat(it$1(Pe2) === Us ? Rv(t, {
43570
43571
  placement: Pe2,
43571
43572
  boundary: d,
@@ -43582,8 +43583,8 @@ Actual: ` + p3.attribValue
43582
43583
  altBoundary: f3,
43583
43584
  padding: c3
43584
43585
  }), se2 = ie2 ? H3 ? qe$1 : Ee$1 : H3 ? Ue : Ne$2;
43585
- C3[ae2] > k[ae2] && (se2 = mo$2(se2));
43586
- var Z3 = mo$2(se2), pe = [];
43586
+ C3[ae2] > k[ae2] && (se2 = go$2(se2));
43587
+ var Z3 = go$2(se2), pe = [];
43587
43588
  if (i3 && pe.push(fe2[F3] <= 0), a && pe.push(fe2[se2] <= 0, fe2[Z3] <= 0), pe.every(function(Ke2) {
43588
43589
  return Ke2;
43589
43590
  })) {
@@ -43725,7 +43726,7 @@ Actual: ` + p3.attribValue
43725
43726
  var H3, ie2 = y === "y" ? Ne$2 : Ee$1, ae2 = y === "y" ? Ue : qe$1, fe2 = y === "y" ? "height" : "width", se2 = k[y], Z3 = se2 + g[ie2], pe = se2 - g[ae2], he2 = p3 ? -B[fe2] / 2 : 0, Te2 = w === Rn$2 ? A[fe2] : B[fe2], Be2 = w === Rn$2 ? -B[fe2] : -A[fe2], dt2 = t.elements.arrow, Ke2 = p3 && dt2 ? Ks(dt2) : {
43726
43727
  width: 0,
43727
43728
  height: 0
43728
- }, Pe2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yu$1(), Xe2 = Pe2[ie2], Mt2 = Pe2[ae2], Je2 = sr$1(0, A[fe2], Ke2[fe2]), pn2 = x3 ? A[fe2] / 2 - he2 - Je2 - Xe2 - V.mainAxis : Te2 - Je2 - Xe2 - V.mainAxis, St2 = x3 ? -A[fe2] / 2 + he2 + Je2 + Mt2 + V.mainAxis : Be2 + Je2 + Mt2 + V.mainAxis, hn2 = t.elements.arrow && Rr(t.elements.arrow), Fr2 = hn2 ? y === "y" ? hn2.clientTop || 0 : hn2.clientLeft || 0 : 0, jn2 = (H3 = $3?.[y]) != null ? H3 : 0, Br2 = se2 + pn2 - jn2 - Fr2, zr2 = se2 + St2 - jn2, Wn2 = sr$1(p3 ? Eo$2(Z3, Br2) : Z3, se2, p3 ? an$2(pe, zr2) : pe);
43729
+ }, Pe2 = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Yu$1(), Xe2 = Pe2[ie2], Mt2 = Pe2[ae2], Je2 = sr$1(0, A[fe2], Ke2[fe2]), pn2 = x3 ? A[fe2] / 2 - he2 - Je2 - Xe2 - V.mainAxis : Te2 - Je2 - Xe2 - V.mainAxis, St2 = x3 ? -A[fe2] / 2 + he2 + Je2 + Mt2 + V.mainAxis : Be2 + Je2 + Mt2 + V.mainAxis, hn2 = t.elements.arrow && Rr(t.elements.arrow), Fr2 = hn2 ? y === "y" ? hn2.clientTop || 0 : hn2.clientLeft || 0 : 0, jn2 = (H3 = $3?.[y]) != null ? H3 : 0, Br2 = se2 + pn2 - jn2 - Fr2, zr2 = se2 + St2 - jn2, Wn2 = sr$1(p3 ? Po$1(Z3, Br2) : Z3, se2, p3 ? an$2(pe, zr2) : pe);
43729
43730
  k[y] = Wn2, F3[y] = Wn2 - se2;
43730
43731
  }
43731
43732
  if (a) {
@@ -43943,7 +43944,7 @@ Actual: ` + p3.attribValue
43943
43944
  function ak(e, t) {
43944
43945
  return {}.hasOwnProperty.call(e, t);
43945
43946
  }
43946
- function gi$1(e, t, n) {
43947
+ function yi$1(e, t, n) {
43947
43948
  if (Array.isArray(e)) {
43948
43949
  var r = e[t];
43949
43950
  return r ?? (Array.isArray(n) ? n[t] : n);
@@ -43990,7 +43991,7 @@ Actual: ` + p3.attribValue
43990
43991
  function uk(e) {
43991
43992
  return e.split("-")[0];
43992
43993
  }
43993
- function Po$1(e) {
43994
+ function Io$1(e) {
43994
43995
  return [].slice.call(e);
43995
43996
  }
43996
43997
  function Wl$1(e) {
@@ -44016,9 +44017,9 @@ Actual: ` + p3.attribValue
44016
44017
  return !!(e && e._tippy && e._tippy.reference === e);
44017
44018
  }
44018
44019
  function mk(e) {
44019
- return Sr$1(e) ? [e] : fk(e) ? Po$1(e) : Array.isArray(e) ? e : Po$1(document.querySelectorAll(e));
44020
+ return Sr$1(e) ? [e] : fk(e) ? Io$1(e) : Array.isArray(e) ? e : Io$1(document.querySelectorAll(e));
44020
44021
  }
44021
- function yi$1(e, t) {
44022
+ function bi$1(e, t) {
44022
44023
  e.forEach(function(n) {
44023
44024
  n && (n.style.transitionDuration = t + "ms");
44024
44025
  });
@@ -44042,7 +44043,7 @@ Actual: ` + p3.attribValue
44042
44043
  return m || g || b || w;
44043
44044
  });
44044
44045
  }
44045
- function bi$1(e, t, n) {
44046
+ function wi$1(e, t, n) {
44046
44047
  var r = t + "EventListener";
44047
44048
  ["transitionend", "webkitTransitionEnd"].forEach(function(o) {
44048
44049
  e[r](o, n);
@@ -44266,7 +44267,7 @@ Actual: ` + p3.attribValue
44266
44267
  Sr$1(t.content) ? (ys(e, ""), e.appendChild(t.content)) : typeof t.content != "function" && (t.allowHTML ? ys(e, t.content) : e.textContent = t.content);
44267
44268
  }
44268
44269
  function bs(e) {
44269
- var t = e.firstElementChild, n = Po$1(t.children);
44270
+ var t = e.firstElementChild, n = Io$1(t.children);
44270
44271
  return {
44271
44272
  box: t,
44272
44273
  content: n.find(function(r) {
@@ -44295,7 +44296,7 @@ Actual: ` + p3.attribValue
44295
44296
  };
44296
44297
  }
44297
44298
  ff$1.$$tippy = true;
44298
- var Ek = 1, no$2 = [], wi$1 = [];
44299
+ var Ek = 1, no$2 = [], vi$1 = [];
44299
44300
  function Pk(e, t) {
44300
44301
  var n = Jl$1(e, Object.assign({}, Re$1, df$1(Wl$1(t)))), r, o, i3, s = false, a = false, l = false, c3 = false, d, u, f3, p3 = [], h3 = Hl$1(Br2, n.interactiveDebounce), m, g = Ek++, b = null, w = dk(n.plugins), x3 = {
44301
44302
  // Is the instance currently enabled?
@@ -44363,7 +44364,7 @@ Actual: ` + p3.attribValue
44363
44364
  return bs(k);
44364
44365
  }
44365
44366
  function fe2(v) {
44366
- return y.state.isMounted && !y.state.isVisible || rt$1.isTouch || d && d.type === "focus" ? 0 : gi$1(y.props.delay, v ? 0 : 1, Re$1.delay);
44367
+ return y.state.isMounted && !y.state.isVisible || rt$1.isTouch || d && d.type === "focus" ? 0 : yi$1(y.props.delay, v ? 0 : 1, Re$1.delay);
44367
44368
  }
44368
44369
  function se2(v) {
44369
44370
  v === void 0 && (v = false), k.style.pointerEvents = y.props.interactive && !v ? "" : "none", k.style.zIndex = "" + y.props.zIndex;
@@ -44446,11 +44447,11 @@ Actual: ` + p3.attribValue
44446
44447
  function pn2(v, O) {
44447
44448
  var R = ae2().box;
44448
44449
  function q3(U3) {
44449
- U3.target === R && (bi$1(R, "remove", q3), O());
44450
+ U3.target === R && (wi$1(R, "remove", q3), O());
44450
44451
  }
44451
44452
  if (v === 0)
44452
44453
  return O();
44453
- bi$1(R, "remove", u), bi$1(R, "add", q3), u = q3;
44454
+ wi$1(R, "remove", u), wi$1(R, "add", q3), u = q3;
44454
44455
  }
44455
44456
  function St2(v, O, R) {
44456
44457
  R === void 0 && (R = false);
@@ -44542,9 +44543,9 @@ Actual: ` + p3.attribValue
44542
44543
  fn: function(Ur2) {
44543
44544
  var gn2 = Ur2.state;
44544
44545
  if (F3()) {
44545
- var bf2 = ae2(), qo2 = bf2.box;
44546
+ var bf2 = ae2(), Ko2 = bf2.box;
44546
44547
  ["placement", "reference-hidden", "escaped"].forEach(function(qr2) {
44547
- qr2 === "placement" ? qo2.setAttribute("data-placement", gn2.placement) : gn2.attributes.popper["data-popper-" + qr2] ? qo2.setAttribute("data-" + qr2, "") : qo2.removeAttribute("data-" + qr2);
44548
+ qr2 === "placement" ? Ko2.setAttribute("data-placement", gn2.placement) : gn2.attributes.popper["data-popper-" + qr2] ? Ko2.setAttribute("data-" + qr2, "") : Ko2.removeAttribute("data-" + qr2);
44548
44549
  }), gn2.attributes.popper = {};
44549
44550
  }
44550
44551
  }
@@ -44600,7 +44601,7 @@ Actual: ` + p3.attribValue
44600
44601
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
44601
44602
  }
44602
44603
  function At2() {
44603
- return Po$1(k.querySelectorAll("[data-tippy-root]"));
44604
+ return Io$1(k.querySelectorAll("[data-tippy-root]"));
44604
44605
  }
44605
44606
  function qn2(v) {
44606
44607
  y.clearDelayTimeouts(), v && Z3("onTrigger", [y, v]), Pe2();
@@ -44652,20 +44653,20 @@ Actual: ` + p3.attribValue
44652
44653
  }
44653
44654
  function pf2() {
44654
44655
  ge$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, kn$2("show"));
44655
- var v = y.state.isVisible, O = y.state.isDestroyed, R = !y.state.isEnabled, q3 = rt$1.isTouch && !y.props.touch, U3 = gi$1(y.props.duration, 0, Re$1.duration);
44656
+ var v = y.state.isVisible, O = y.state.isDestroyed, R = !y.state.isEnabled, q3 = rt$1.isTouch && !y.props.touch, U3 = yi$1(y.props.duration, 0, Re$1.duration);
44656
44657
  if (!(v || O || R || q3) && !H3().hasAttribute("disabled") && (Z3("onShow", [y], false), y.props.onShow(y) !== false)) {
44657
44658
  if (y.state.isVisible = true, F3() && (k.style.visibility = "visible"), se2(), Pe2(), y.state.isMounted || (k.style.transition = "none"), F3()) {
44658
44659
  var xe = ae2(), ze2 = xe.box, mn2 = xe.content;
44659
- yi$1([ze2, mn2], 0);
44660
+ bi$1([ze2, mn2], 0);
44660
44661
  }
44661
44662
  f3 = function() {
44662
44663
  var qt2;
44663
44664
  if (!(!y.state.isVisible || c3)) {
44664
44665
  if (c3 = true, k.offsetHeight, k.style.transition = y.props.moveTransition, F3() && y.props.animation) {
44665
- var Uo2 = ae2(), Ur2 = Uo2.box, gn2 = Uo2.content;
44666
- yi$1([Ur2, gn2], U3), Ul$1([Ur2, gn2], "visible");
44666
+ var qo2 = ae2(), Ur2 = qo2.box, gn2 = qo2.content;
44667
+ bi$1([Ur2, gn2], U3), Ul$1([Ur2, gn2], "visible");
44667
44668
  }
44668
- pe(), he2(), jl$1(wi$1, y), (qt2 = y.popperInstance) == null || qt2.forceUpdate(), Z3("onMount", [y]), y.props.animation && F3() && Je2(U3, function() {
44669
+ pe(), he2(), jl$1(vi$1, y), (qt2 = y.popperInstance) == null || qt2.forceUpdate(), Z3("onMount", [y]), y.props.animation && F3() && Je2(U3, function() {
44669
44670
  y.state.isShown = true, Z3("onShown", [y]);
44670
44671
  });
44671
44672
  }
@@ -44674,11 +44675,11 @@ Actual: ` + p3.attribValue
44674
44675
  }
44675
44676
  function hf2() {
44676
44677
  ge$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, kn$2("hide"));
44677
- var v = !y.state.isVisible, O = y.state.isDestroyed, R = !y.state.isEnabled, q3 = gi$1(y.props.duration, 1, Re$1.duration);
44678
+ var v = !y.state.isVisible, O = y.state.isDestroyed, R = !y.state.isEnabled, q3 = yi$1(y.props.duration, 1, Re$1.duration);
44678
44679
  if (!(v || O || R) && (Z3("onHide", [y], false), y.props.onHide(y) !== false)) {
44679
44680
  if (y.state.isVisible = false, y.state.isShown = false, c3 = false, s = false, F3() && (k.style.visibility = "hidden"), Te2(), Xe2(), se2(true), F3()) {
44680
44681
  var U3 = ae2(), xe = U3.box, ze2 = U3.content;
44681
- y.props.animation && (yi$1([xe, ze2], q3), Ul$1([xe, ze2], "hidden"));
44682
+ y.props.animation && (bi$1([xe, ze2], q3), Ul$1([xe, ze2], "hidden"));
44682
44683
  }
44683
44684
  pe(), he2(), y.props.animation ? F3() && Mt2(q3, y.unmount) : y.unmount();
44684
44685
  }
@@ -44689,7 +44690,7 @@ Actual: ` + p3.attribValue
44689
44690
  function gf2() {
44690
44691
  ge$2.env.NODE_ENV !== "production" && gt$1(y.state.isDestroyed, kn$2("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && ($r2(), At2().forEach(function(v) {
44691
44692
  v._tippy.unmount();
44692
- }), k.parentNode && k.parentNode.removeChild(k), wi$1 = wi$1.filter(function(v) {
44693
+ }), k.parentNode && k.parentNode.removeChild(k), vi$1 = vi$1.filter(function(v) {
44693
44694
  return v !== y;
44694
44695
  }), y.state.isMounted = false, Z3("onHidden", [y]));
44695
44696
  }
@@ -44953,7 +44954,7 @@ Actual: ` + p3.attribValue
44953
44954
  apply(s, a, l, c3) {
44954
44955
  const d = s.getMeta(sn$2);
44955
44956
  d && d.isReadyToInit && (n = true, o = d.isReadyToInit);
44956
- const u = s.getMeta(No$1);
44957
+ const u = s.getMeta(Eo$2);
44957
44958
  if (u) {
44958
44959
  if (u.type === "remove") {
44959
44960
  const h3 = u.pos, m = e.view.domAtPos(h3).node.querySelector("img");
@@ -45047,7 +45048,7 @@ Actual: ` + p3.attribValue
45047
45048
  let l = 1, c3 = a, d = null, u = null;
45048
45049
  const f3 = Jt$1(l, "headerIds", n), p3 = ro$2(s, i3, r, f3), h3 = oo$2({ editor: n, header: p3, isFirstHeader: true });
45049
45050
  o.push(_.widget(0, h3, { key: "stable-key" }));
45050
- const m = Jt$1(l, "footerIds", n), g = vi$1(s, i3, r, m);
45051
+ const m = Jt$1(l, "footerIds", n), g = ki$1(s, i3, r, m);
45051
45052
  c3 -= p3.headerHeight + g.footerHeight;
45052
45053
  let b = t?.coordsAtPos(e.content.size);
45053
45054
  if (!b) return [];
@@ -45062,14 +45063,14 @@ Actual: ` + p3.attribValue
45062
45063
  o.push(_.widget(0, Te2, { key: "stable-key" }));
45063
45064
  }
45064
45065
  if (F3.type.name === "paragraph" && F3.attrs.styleId) {
45065
- const Z3 = co$2.getState(n.state)?.styles?.find((pe) => pe.id === F3.attrs.styleId);
45066
+ const Z3 = uo$2.getState(n.state)?.styles?.find((pe) => pe.id === F3.attrs.styleId);
45066
45067
  if (Z3) {
45067
45068
  const { definition: pe = {} } = Z3, { pageBreakBefore: he2, pageBreakAfter: Te2 } = pe.attrs || {};
45068
45069
  (he2 || Te2) && (ie2 = true);
45069
45070
  }
45070
45071
  }
45071
45072
  if (ae2 || ie2) {
45072
- const se2 = t.state.doc.resolve(H3), Z3 = Ho$1(se2, (Je2) => Je2.type.name === "tableRow");
45073
+ const se2 = t.state.doc.resolve(H3), Z3 = jo$1(se2, (Je2) => Je2.type.name === "tableRow");
45073
45074
  Z3 && (F3 = Z3.node, H3 = Z3.pos);
45074
45075
  const {
45075
45076
  top: pe,
@@ -45078,7 +45079,7 @@ Actual: ` + p3.attribValue
45078
45079
  } = Xk(t, H3, c3), Be2 = Jt$1(l, "footerIds", n, F3);
45079
45080
  l++;
45080
45081
  const dt2 = Jt$1(l, "headerIds", n);
45081
- u = ro$2(s, i3, r, dt2), d = vi$1(s, i3, r, Be2, l - 1);
45082
+ u = ro$2(s, i3, r, dt2), d = ki$1(s, i3, r, Be2, l - 1);
45082
45083
  const Ke2 = c3 - he2, { node: Pe2 } = Ql$1(Ke2), Xe2 = _.widget(Te2, Pe2, { key: "stable-key" });
45083
45084
  o.push(Xe2);
45084
45085
  const Mt2 = oo$2({ editor: n, header: u, footer: d });
@@ -45087,7 +45088,7 @@ Actual: ` + p3.attribValue
45087
45088
  });
45088
45089
  let w = e.content.size;
45089
45090
  const x3 = t.coordsAtPos(w), y = Jt$1(l, "headerIds", n), C3 = Jt$1(l, "footerIds", n);
45090
- u = ro$2(s, i3, r, y), d = vi$1(s, i3, r, C3, l);
45091
+ u = ro$2(s, i3, r, y), d = ki$1(s, i3, r, C3, l);
45091
45092
  const k = c3 - x3.bottom, { node: A } = Ql$1(k), B = _.widget(e.content.size, A, { key: "stable-key" });
45092
45093
  o.push(B);
45093
45094
  const M = oo$2({ editor: n, footer: d, isLastFooter: true });
@@ -45111,7 +45112,7 @@ Actual: ` + p3.attribValue
45111
45112
  headerHeight: c3
45112
45113
  };
45113
45114
  }
45114
- function vi$1(e, t, n, r, o) {
45115
+ function ki$1(e, t, n, r, o) {
45115
45116
  const i3 = n.footers?.[r], s = e.bottom * 96, a = e.footer * 96, l = Math.max(i3?.height || 0, s - a);
45116
45117
  let c3 = i3?.sectionContainer?.cloneNode(true);
45117
45118
  c3 || (c3 = document.createElement("div"));
@@ -48050,7 +48051,7 @@ ${t}
48050
48051
  }
48051
48052
  };
48052
48053
  }
48053
- var Ri = typeof ni == "object" && ni && ni.Object === Object && ni, su = typeof self == "object" && self && self.Object === Object && self, Ee = Ri || su || Function("return this")(), je$1 = Ee.Symbol, ki = Object.prototype, lu = ki.hasOwnProperty, au = ki.toString, xt = je$1 ? je$1.toStringTag : void 0;
48054
+ var Ri = typeof ri == "object" && ri && ri.Object === Object && ri, su = typeof self == "object" && self && self.Object === Object && self, Ee = Ri || su || Function("return this")(), je$1 = Ee.Symbol, ki = Object.prototype, lu = ki.hasOwnProperty, au = ki.toString, xt = je$1 ? je$1.toStringTag : void 0;
48054
48055
  function cu(e) {
48055
48056
  var t = lu.call(e, xt), n = e[xt];
48056
48057
  try {
@@ -54358,7 +54359,7 @@ ${t}
54358
54359
  pos: s.selection.from,
54359
54360
  id: a
54360
54361
  };
54361
- s.setMeta(No$1, d), l.dispatch(s), n(o).then(
54362
+ s.setMeta(Eo$2, d), l.dispatch(s), n(o).then(
54362
54363
  (u) => {
54363
54364
  let b = o.name.replace(" ", "_"), v = lx(l.state, a);
54364
54365
  if (v == null)
@@ -54368,12 +54369,12 @@ ${t}
54368
54369
  size: { width: i3, height: c3 }
54369
54370
  });
54370
54371
  t.storage.image.media = Object.assign(t.storage.image.media, { [E3]: u }), t.options.ydoc && t.commands.addImageToCollaboration({ mediaPath: E3, fileData: u }), l.dispatch(
54371
- l.state.tr.replaceWith(v, v, g).setMeta(No$1, h3)
54372
+ l.state.tr.replaceWith(v, v, g).setMeta(Eo$2, h3)
54372
54373
  );
54373
54374
  },
54374
54375
  () => {
54375
54376
  let u = { type: "remove", id: a };
54376
- l.dispatch(s.setMeta(No$1, u));
54377
+ l.dispatch(s.setMeta(Eo$2, u));
54377
54378
  }
54378
54379
  );
54379
54380
  };
@@ -54812,7 +54813,7 @@ ${t}
54812
54813
  B();
54813
54814
  }, u = async () => {
54814
54815
  try {
54815
- const [p3, C3, F3, z] = await qi$1.loadXmlData(n.fileSource);
54816
+ const [p3, C3, F3, z] = await Ki$1.loadXmlData(n.fileSource);
54816
54817
  return { content: p3, media: C3, mediaFiles: F3, fonts: z };
54817
54818
  } catch (p3) {
54818
54819
  console.debug("Error loading new file data:", p3);
@@ -54832,7 +54833,7 @@ ${t}
54832
54833
  const p3 = Yk();
54833
54834
  return n.options.pagination ? p3 : p3.filter((C3) => C3.name !== "pagination");
54834
54835
  }, h3 = async ({ content: p3, media: C3 = {}, mediaFiles: F3 = {}, fonts: z = {} } = {}) => {
54835
- i3.value = new qi$1({
54836
+ i3.value = new Ki$1({
54836
54837
  mode: "docx",
54837
54838
  element: a.value,
54838
54839
  fileSource: n.fileSource,
@@ -54972,7 +54973,7 @@ ${t}
54972
54973
  }, r = ({ editor: v, transaction: h3 }) => {
54973
54974
  c3.value = false, o("blur", { editor: v, transaction: h3 });
54974
54975
  }, d = async () => {
54975
- Qw.options.placeholder = n.placeholder || "Type something...", n.options.onTransaction = a, n.options.onFocus = s, n.options.onBlur = r, e.value = new qi$1({
54976
+ Qw.options.placeholder = n.placeholder || "Type something...", n.options.onTransaction = a, n.options.onFocus = s, n.options.onBlur = r, e.value = new Ki$1({
54976
54977
  mode: "text",
54977
54978
  content: document.getElementById("currentContent"),
54978
54979
  element: i3.value,
@@ -57258,7 +57259,7 @@ ${t}
57258
57259
  const convertHtmlToSchema = (commentHTML) => {
57259
57260
  const div = document.createElement("div");
57260
57261
  div.innerHTML = commentHTML;
57261
- const editor = new qi$1({
57262
+ const editor = new Ki$1({
57262
57263
  mode: "text",
57263
57264
  isHeadless: true,
57264
57265
  content: div,
@@ -57281,7 +57282,7 @@ ${t}
57281
57282
  const getHTmlFromComment = (commentTextJson) => {
57282
57283
  if (!commentTextJson.content?.length) return;
57283
57284
  try {
57284
- const editor = new qi$1({
57285
+ const editor = new Ki$1({
57285
57286
  mode: "text",
57286
57287
  isHeadless: true,
57287
57288
  content: commentTextJson,
@@ -69967,7 +69968,7 @@ ${style2}
69967
69968
  this.config.colors = shuffleArray(this.config.colors);
69968
69969
  this.userColorMap = /* @__PURE__ */ new Map();
69969
69970
  this.colorIndex = 0;
69970
- this.version = "0.10.60";
69971
+ this.version = "0.10.62";
69971
69972
  console.debug("🦋 [superdoc] Using SuperDoc version:", this.version);
69972
69973
  this.superdocId = config.superdocId || v4();
69973
69974
  this.colors = this.config.colors;
@@ -70390,7 +70391,7 @@ ${style2}
70390
70391
  }, Symbol.toStringTag, { value: "Module" }));
70391
70392
  exports2.BlankDOCX = BlankDOCX;
70392
70393
  exports2.DOCX = DOCX;
70393
- exports2.Editor = qi$1;
70394
+ exports2.Editor = Ki$1;
70394
70395
  exports2.HTML = HTML;
70395
70396
  exports2.PDF = PDF;
70396
70397
  exports2.SuperConverter = Pt$2;