@harbour-enterprises/superdoc 0.11.47 → 0.11.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/chunks/{super-editor.es-C03S4Glp.es.js → super-editor.es-DBvXzImv.es.js} +4095 -4028
  2. package/dist/chunks/{super-editor.es-caxTRCtS.cjs → super-editor.es-DjwFuw3M.cjs} +54 -54
  3. package/dist/super-editor/ai-writer.es.js +2 -2
  4. package/dist/super-editor/chunks/{converter-DE9i_jAD.js → converter-DrDJMPH3.js} +695 -660
  5. package/dist/super-editor/chunks/{docx-zipper-B8mHqLOC.js → docx-zipper-CF-c9JzK.js} +749 -763
  6. package/dist/super-editor/chunks/{editor-BLPIzC2o.js → editor-DhH2OnzT.js} +355 -308
  7. package/dist/super-editor/chunks/{toolbar-CWugh8sl.js → toolbar-BqG8Bd5M.js} +2 -2
  8. package/dist/super-editor/converter.es.js +1 -1
  9. package/dist/super-editor/core/DocxZipper.d.ts.map +1 -1
  10. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  11. package/dist/super-editor/core/super-converter/v2/importer/docxImporter.d.ts.map +1 -1
  12. package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts +9 -0
  13. package/dist/super-editor/core/super-converter/v2/importer/structuredDocumentNodeImporter.d.ts.map +1 -0
  14. package/dist/super-editor/docx-zipper.es.js +2 -2
  15. package/dist/super-editor/editor.es.js +3 -3
  16. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  17. package/dist/super-editor/extensions/index.d.ts +2 -1
  18. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  19. package/dist/super-editor/extensions/structured-content/index.d.ts +2 -0
  20. package/dist/super-editor/extensions/structured-content/index.d.ts.map +1 -0
  21. package/dist/super-editor/extensions/structured-content/structured-content.d.ts +2 -0
  22. package/dist/super-editor/extensions/structured-content/structured-content.d.ts.map +1 -0
  23. package/dist/super-editor/file-zipper.es.js +1 -1
  24. package/dist/super-editor/super-editor.es.js +6 -6
  25. package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts +2 -0
  26. package/dist/super-editor/tests/import/sdt-nodes/structuredDocumentNodeTests.test.d.ts.map +1 -0
  27. package/dist/super-editor/toolbar.es.js +2 -2
  28. package/dist/super-editor.cjs +1 -1
  29. package/dist/super-editor.es.js +1 -1
  30. package/dist/superdoc.cjs +4 -4
  31. package/dist/superdoc.es.js +3 -3
  32. package/dist/superdoc.umd.js +2471 -2404
  33. package/dist/superdoc.umd.js.map +1 -1
  34. package/package.json +1 -1
@@ -7,9 +7,9 @@ var L = (t, e, n) => zf(t, typeof e != "symbol" ? e + "" : e, n), Qo = (t, e, n)
7
7
  var Qe = (t, e, n) => (Qo(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ft = (t, e, n) => e.has(t) ? ua("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), ei = (t, e, n, r) => (Qo(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), E = (t, e, n) => (Qo(t, e, "access private method"), n);
8
8
  import * as N from "yjs";
9
9
  import { UndoManager as _f, Item as $f, ContentType as Vf, Text as Hf, XmlElement as jf } from "yjs";
10
- import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as T, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-DE9i_jAD.js";
10
+ import { P as X, a as J, M as hr, c as Y, i as Wf, S as gc, b as wt, l as Er, A as Pr, d as jt, j as yc, N as z, r as bc, e as ee, T as j, F as D, R as ln, f as W, o as mr, g as fa, D as rn, h as Vt, k as Ei, m as wc, n as Uf, p as qf, q as xn, s as So, t as Kf, u as Wn, v as Xf, w as vc, x as oe, B as Jf, y as Yf, z as de, C as Ve, E as Ir, G as Se, H as fo, I as kc, J as Sn, K as ti, L as ni, O as ri, Q as po, U as Rt, V as $o, W as Gf, X as pa, Y as ha, Z as Zf, _ as Qf, $ as ep } from "./converter-DrDJMPH3.js";
11
11
  import { ref as ma, computed as tp, createElementBlock as Xt, openBlock as Jt, withModifiers as oi, Fragment as np, renderList as rp, normalizeClass as op, createCommentVNode as ga, toDisplayString as ii, createElementVNode as ip, createApp as sp } from "vue";
12
- import { D as ya } from "./docx-zipper-B8mHqLOC.js";
12
+ import { D as ya } from "./docx-zipper-CF-c9JzK.js";
13
13
  function Vo(t) {
14
14
  const { from: e, to: n, empty: r } = t.selection, o = [];
15
15
  return r ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(e, n, (i) => {
@@ -415,11 +415,11 @@ function Sc(t, e) {
415
415
  };
416
416
  }
417
417
  const Mc = Sc(!1, !0), Cc = Sc(!0, !0);
418
- function jx(t) {
418
+ function Wx(t) {
419
419
  let e = vt.getState(t);
420
420
  return e ? e.done.eventCount : 0;
421
421
  }
422
- function Wx(t) {
422
+ function Ux(t) {
423
423
  let e = vt.getState(t);
424
424
  return e ? e.undone.eventCount : 0;
425
425
  }
@@ -566,7 +566,7 @@ function Rr(t, e) {
566
566
  return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
567
567
  }
568
568
  var Vn, Oc, Tc;
569
- class D {
569
+ class T {
570
570
  /**
571
571
  * Get a list of all attributes defined in the extensions.
572
572
  * @param extensions List of all extensions.
@@ -744,7 +744,7 @@ Vn = new WeakSet(), Oc = function(e, n) {
744
744
  }
745
745
  }
746
746
  return r;
747
- }, ft(D, Vn);
747
+ }, ft(T, Vn);
748
748
  function Pi(t) {
749
749
  const e = Object.entries(t).filter(([n, r]) => n === "attrs" && Wf(r) ? !1 : r != null);
750
750
  return Object.fromEntries(e);
@@ -759,7 +759,7 @@ const pr = class pr {
759
759
  */
760
760
  static createSchemaByExtensions(e, n) {
761
761
  var c, d;
762
- const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i = r.find((u) => I(u, "topNode"))?.name, s = D.getAttributesFromExtensions(e), a = E(c = pr, Hn, Dc).call(c, r, s, n), l = E(d = pr, Hn, Nc).call(d, o, s, n);
762
+ const r = e.filter((u) => u.type === "node"), o = e.filter((u) => u.type === "mark"), i = r.find((u) => I(u, "topNode"))?.name, s = T.getAttributesFromExtensions(e), a = E(c = pr, Hn, Dc).call(c, r, s, n), l = E(d = pr, Hn, Nc).call(d, o, s, n);
763
763
  return new gc({ topNode: i, nodes: a, marks: l });
764
764
  }
765
765
  };
@@ -792,11 +792,11 @@ Hn = new WeakSet(), Dc = function(e, n, r) {
792
792
  attrs: l,
793
793
  ...c
794
794
  }), u = Y(I(i, "parseDOM", a));
795
- u && (d.parseDOM = u.map((h) => D.insertExtensionAttrsToParseRule(h, s)));
795
+ u && (d.parseDOM = u.map((h) => T.insertExtensionAttrsToParseRule(h, s)));
796
796
  const f = I(i, "renderDOM", a);
797
797
  f && (d.toDOM = (h) => f({
798
798
  node: h,
799
- htmlAttributes: D.getAttributesToRender(h, s)
799
+ htmlAttributes: T.getAttributesToRender(h, s)
800
800
  }));
801
801
  const p = I(i, "renderText", a);
802
802
  return p && (d.toText = p), [i.name, d];
@@ -819,11 +819,11 @@ Hn = new WeakSet(), Dc = function(e, n, r) {
819
819
  code: Y(I(i, "code", a)),
820
820
  attrs: l
821
821
  }), d = Y(I(i, "parseDOM", a));
822
- d && (c.parseDOM = d.map((f) => D.insertExtensionAttrsToParseRule(f, s)));
822
+ d && (c.parseDOM = d.map((f) => T.insertExtensionAttrsToParseRule(f, s)));
823
823
  const u = I(i, "renderDOM", a);
824
824
  return u && (c.toDOM = (f) => u({
825
825
  mark: f,
826
- htmlAttributes: D.getAttributesToRender(f, s)
826
+ htmlAttributes: T.getAttributesToRender(f, s)
827
827
  })), [i.name, c];
828
828
  });
829
829
  return Object.fromEntries(o);
@@ -1179,10 +1179,10 @@ function $c(t, e, n, r) {
1179
1179
  let c = !l && e.parent.canReplace(e.index(), e.index() + 1);
1180
1180
  if (c && (s = (a = o.contentMatchAt(o.childCount)).findWrapping(i.type)) && a.matchType(s[0] || i.type).validEnd) {
1181
1181
  if (n) {
1182
- let p = e.pos + i.nodeSize, h = T.empty;
1182
+ let p = e.pos + i.nodeSize, h = D.empty;
1183
1183
  for (let b = s.length - 1; b >= 0; b--)
1184
- h = T.from(s[b].create(null, h));
1185
- h = T.from(o.copy(h));
1184
+ h = D.from(s[b].create(null, h));
1185
+ h = D.from(o.copy(h));
1186
1186
  let m = t.tr.step(new ln(e.pos - 1, p, e.pos, p, new W(h, 1, 0), s.length, !0)), g = m.doc.resolve(p + 2 * s.length);
1187
1187
  g.nodeAfter && g.nodeAfter.type == o.type && jt(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
1188
1188
  }
@@ -1200,9 +1200,9 @@ function $c(t, e, n, r) {
1200
1200
  g++;
1201
1201
  if (p.canReplace(p.childCount, p.childCount, m.content)) {
1202
1202
  if (n) {
1203
- let b = T.empty;
1203
+ let b = D.empty;
1204
1204
  for (let x = h.length - 1; x >= 0; x--)
1205
- b = T.from(h[x].copy(b));
1205
+ b = D.from(h[x].copy(b));
1206
1206
  let w = t.tr.step(new ln(e.pos - h.length, e.pos + i.nodeSize, e.pos + g, e.pos + i.nodeSize - g, new W(b, h.length, 0), 0, !0));
1207
1207
  n(w.scrollIntoView());
1208
1208
  }
@@ -1279,7 +1279,7 @@ const xa = (t, e) => {
1279
1279
  t.tr.ensureMarks(r);
1280
1280
  }
1281
1281
  }, Rp = ({ keepMarks: t = !0 } = {}) => (e) => {
1282
- const { tr: n, state: r, dispatch: o, editor: i } = e, { selection: s, doc: a } = n, { $from: l, $to: c } = s, d = i.extensionService.attributes, u = D.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
1282
+ const { tr: n, state: r, dispatch: o, editor: i } = e, { selection: s, doc: a } = n, { $from: l, $to: c } = s, d = i.extensionService.attributes, u = T.getSplittedAttributes(d, l.node().type.name, l.node().attrs);
1283
1283
  if (s instanceof z && s.node.isBlock)
1284
1284
  return !l.parentOffset || !wt(a, l.pos) ? !1 : (o && (t && xa(r, i.extensionService.splittableMarks), n.split(l.pos).scrollIntoView()), !0);
1285
1285
  if (!l.parent.isBlock) return !1;
@@ -1320,7 +1320,7 @@ const $p = (t, e = {}) => ({ tr: n, state: r, dispatch: o }) => {
1320
1320
  const { selection: i } = n, { empty: s, ranges: a } = i, l = St(t, r.schema);
1321
1321
  if (o)
1322
1322
  if (s) {
1323
- const c = D.getMarkAttributes(r, l);
1323
+ const c = T.getMarkAttributes(r, l);
1324
1324
  n.addStoredMark(
1325
1325
  l.create({
1326
1326
  ...c,
@@ -1497,7 +1497,7 @@ function Li(t, e, n) {
1497
1497
  if (r)
1498
1498
  try {
1499
1499
  if (Array.isArray(t) && t.length > 0)
1500
- return T.fromArray(t.map((a) => e.nodeFromJSON(a)));
1500
+ return D.fromArray(t.map((a) => e.nodeFromJSON(a)));
1501
1501
  const s = e.nodeFromJSON(t);
1502
1502
  return n.errorOnInvalidContent && s.check(), s;
1503
1503
  } catch (i) {
@@ -1629,9 +1629,9 @@ function fh(t, e, n, r = null) {
1629
1629
  return a ? (t && ph(t, e, a, o, n), !0) : !1;
1630
1630
  }
1631
1631
  function ph(t, e, n, r, o) {
1632
- let i = T.empty;
1632
+ let i = D.empty;
1633
1633
  for (let d = n.length - 1; d >= 0; d--)
1634
- i = T.from(n[d].type.create(n[d].attrs, i));
1634
+ i = D.from(n[d].type.create(n[d].attrs, i));
1635
1635
  t.step(new ln(e.start - (r ? 2 : 0), e.end, e.start, e.end, new W(i, 0, 0), n.length, !0));
1636
1636
  let s = 0;
1637
1637
  for (let d = 0; d < n.length; d++)
@@ -1649,7 +1649,7 @@ function hh(t) {
1649
1649
  }
1650
1650
  function mh(t, e, n, r) {
1651
1651
  let o = t.tr, i = r.end, s = r.$to.end(r.depth);
1652
- i < s && (o.step(new ln(i - 1, s, i, s, new W(T.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ei(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
1652
+ i < s && (o.step(new ln(i - 1, s, i, s, new W(D.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ei(o.doc.resolve(r.$from.pos), o.doc.resolve(s), r.depth));
1653
1653
  const a = Er(r);
1654
1654
  if (a == null)
1655
1655
  return !1;
@@ -1665,10 +1665,10 @@ function gh(t, e, n) {
1665
1665
  if (r.mapping.map(n.end) != n.start + i.nodeAfter.nodeSize)
1666
1666
  return !1;
1667
1667
  let a = n.startIndex == 0, l = n.endIndex == o.childCount, c = i.node(-1), d = i.index(-1);
1668
- if (!c.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ? T.empty : T.from(o))))
1668
+ if (!c.canReplace(d + (a ? 0 : 1), d + 1, s.content.append(l ? D.empty : D.from(o))))
1669
1669
  return !1;
1670
1670
  let u = i.pos, f = u + s.nodeSize;
1671
- return r.step(new ln(u - (a ? 1 : 0), f + (l ? 1 : 0), u + 1, f - 1, new W((a ? T.empty : T.from(o.copy(T.empty))).append(l ? T.empty : T.from(o.copy(T.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
1671
+ return r.step(new ln(u - (a ? 1 : 0), f + (l ? 1 : 0), u + 1, f - 1, new W((a ? D.empty : D.from(o.copy(D.empty))).append(l ? D.empty : D.from(o.copy(D.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
1672
1672
  }
1673
1673
  function yh(t) {
1674
1674
  return function(e, n) {
@@ -1682,7 +1682,7 @@ function yh(t) {
1682
1682
  if (l.type != t)
1683
1683
  return !1;
1684
1684
  if (n) {
1685
- let c = l.lastChild && l.lastChild.type == a.type, d = T.from(c ? t.create() : null), u = new W(T.from(t.create(null, T.from(a.type.create(null, d)))), c ? 3 : 1, 0), f = i.start, p = i.end;
1685
+ let c = l.lastChild && l.lastChild.type == a.type, d = D.from(c ? t.create() : null), u = new W(D.from(t.create(null, D.from(a.type.create(null, d)))), c ? 3 : 1, 0), f = i.start, p = i.end;
1686
1686
  n(e.tr.step(new ln(f - (c ? 3 : 1), p, f, p, u, 1, !0)).scrollIntoView());
1687
1687
  }
1688
1688
  return !0;
@@ -2926,16 +2926,16 @@ const bh = (t, e = {}) => ({ state: n, dispatch: r }) => {
2926
2926
  a.node(-3).type !== s || a.index(-2) !== a.node(-2).childCount - 1)
2927
2927
  return !1;
2928
2928
  if (o) {
2929
- let g = T.empty;
2929
+ let g = D.empty;
2930
2930
  const b = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
2931
2931
  for (let C = a.depth - b; C >= a.depth - 3; C--)
2932
- g = T.from(a.node(C).copy(g));
2933
- const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, x = D.getSplittedAttributes(
2932
+ g = D.from(a.node(C).copy(g));
2933
+ const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, x = T.getSplittedAttributes(
2934
2934
  u,
2935
2935
  a.node().type.name,
2936
2936
  a.node().attrs
2937
2937
  ), y = s.contentMatch.defaultType?.createAndFill(x) || void 0;
2938
- g = g.append(T.from(s.createAndFill(null, y) || void 0));
2938
+ g = g.append(D.from(s.createAndFill(null, y) || void 0));
2939
2939
  const S = a.before(a.depth - (b - 1));
2940
2940
  n.replace(S, a.after(-w), new W(g, 4 - b, 0));
2941
2941
  let k = -1;
@@ -2946,7 +2946,7 @@ const bh = (t, e = {}) => ({ state: n, dispatch: r }) => {
2946
2946
  }
2947
2947
  return !0;
2948
2948
  }
2949
- const f = l.pos === a.end() ? d.contentMatchAt(0).defaultType : null, p = D.getSplittedAttributes(u, d.type.name, d.attrs), h = D.getSplittedAttributes(
2949
+ const f = l.pos === a.end() ? d.contentMatchAt(0).defaultType : null, p = T.getSplittedAttributes(u, d.type.name, d.attrs), h = T.getSplittedAttributes(
2950
2950
  u,
2951
2951
  a.node().type.name,
2952
2952
  a.node().attrs
@@ -4162,7 +4162,7 @@ class Ft extends Br {
4162
4162
  break;
4163
4163
  }
4164
4164
  }
4165
- e.contentElement || (e.getContent = () => T.empty);
4165
+ e.contentElement || (e.getContent = () => D.empty);
4166
4166
  }
4167
4167
  return e;
4168
4168
  }
@@ -5109,7 +5109,7 @@ function pd(t, e, n, r, o) {
5109
5109
  if (t.someProp("transformPastedText", (f) => {
5110
5110
  e = f(e, i || r, t);
5111
5111
  }), i)
5112
- return e ? new W(T.from(t.state.schema.text(e.replace(/\r\n?/g, `
5112
+ return e ? new W(D.from(t.state.schema.text(e.replace(/\r\n?/g, `
5113
5113
  `))), 0, 0) : W.empty;
5114
5114
  let u = t.someProp("clipboardTextParser", (f) => f(e, o, r, t));
5115
5115
  if (u)
@@ -5175,13 +5175,13 @@ function Cm(t, e) {
5175
5175
  s.push(d), o = o.matchType(d.type), i = l;
5176
5176
  }
5177
5177
  }), s)
5178
- return T.from(s);
5178
+ return D.from(s);
5179
5179
  }
5180
5180
  return t;
5181
5181
  }
5182
5182
  function hd(t, e, n = 0) {
5183
5183
  for (let r = e.length - 1; r >= n; r--)
5184
- t = e[r].create(null, T.from(t));
5184
+ t = e[r].create(null, D.from(t));
5185
5185
  return t;
5186
5186
  }
5187
5187
  function md(t, e, n, r, o) {
@@ -5190,18 +5190,18 @@ function md(t, e, n, r, o) {
5190
5190
  if (i)
5191
5191
  return r.copy(r.content.replaceChild(r.childCount - 1, i));
5192
5192
  if (r.contentMatchAt(r.childCount).matchType(o == t.length - 1 ? n.type : t[o + 1]))
5193
- return r.copy(r.content.append(T.from(hd(n, t, o + 1))));
5193
+ return r.copy(r.content.append(D.from(hd(n, t, o + 1))));
5194
5194
  }
5195
5195
  }
5196
5196
  function gd(t, e) {
5197
5197
  if (e == 0)
5198
5198
  return t;
5199
- let n = t.content.replaceChild(t.childCount - 1, gd(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(T.empty, !0);
5199
+ let n = t.content.replaceChild(t.childCount - 1, gd(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(D.empty, !0);
5200
5200
  return t.copy(n.append(r));
5201
5201
  }
5202
5202
  function Ui(t, e, n, r, o, i) {
5203
5203
  let s = e < 0 ? t.firstChild : t.lastChild, a = s.content;
5204
- return t.childCount > 1 && (i = 0), o < r - 1 && (a = Ui(a, e, n, r, o + 1, i)), o >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(T.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
5204
+ return t.childCount > 1 && (i = 0), o < r - 1 && (a = Ui(a, e, n, r, o + 1, i)), o >= n && (a = e < 0 ? s.contentMatchAt(0).fillBefore(a, i <= o).append(a) : a.append(s.contentMatchAt(s.childCount).fillBefore(D.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, s.copy(a));
5205
5205
  }
5206
5206
  function ja(t, e, n) {
5207
5207
  return e < t.openStart && (t = new W(Ui(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new W(Ui(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
@@ -5256,7 +5256,7 @@ function Dm(t, e) {
5256
5256
  let l = n.nodes[r[a]];
5257
5257
  if (!l || l.hasRequiredAttrs())
5258
5258
  break;
5259
- o = T.from(l.create(r[a + 1], o)), i++, s++;
5259
+ o = D.from(l.create(r[a + 1], o)), i++, s++;
5260
5260
  }
5261
5261
  return new W(o, i, s);
5262
5262
  }
@@ -6526,7 +6526,7 @@ function dg(t, e) {
6526
6526
  let c = [];
6527
6527
  for (let d = 0; d < e.childCount; d++)
6528
6528
  c.push(l(e.child(d)));
6529
- if (T.from(c).eq(t))
6529
+ if (D.from(c).eq(t))
6530
6530
  return { mark: a, type: s };
6531
6531
  }
6532
6532
  function ug(t, e, n, r, o) {
@@ -7512,7 +7512,7 @@ class Ny {
7512
7512
  ).filter((r) => r !== null), n = this._tr.replace(
7513
7513
  0,
7514
7514
  this.prosemirrorView.state.doc.content.size,
7515
- new W(T.from(e), 0, 0)
7515
+ new W(D.from(e), 0, 0)
7516
7516
  );
7517
7517
  n.setMeta(te, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
7518
7518
  });
@@ -7529,7 +7529,7 @@ class Ny {
7529
7529
  ).filter((o) => o !== null), r = this._tr.replace(
7530
7530
  0,
7531
7531
  this.prosemirrorView.state.doc.content.size,
7532
- new W(T.from(n), 0, 0)
7532
+ new W(D.from(n), 0, 0)
7533
7533
  );
7534
7534
  if (e) {
7535
7535
  const o = zt(Rn(e.anchor, 0), r.doc.content.size), i = zt(Rn(e.head, 0), r.doc.content.size);
@@ -7594,7 +7594,7 @@ class Ny {
7594
7594
  ) : null).filter((u) => u !== null), d = this._tr.replace(
7595
7595
  0,
7596
7596
  this.prosemirrorView.state.doc.content.size,
7597
- new W(T.from(c), 0, 0)
7597
+ new W(D.from(c), 0, 0)
7598
7598
  );
7599
7599
  this.prosemirrorView.dispatch(
7600
7600
  d.setMeta(te, { isChangeOrigin: !0 })
@@ -7640,7 +7640,7 @@ class Ny {
7640
7640
  let s = this._tr.replace(
7641
7641
  0,
7642
7642
  this.prosemirrorView.state.doc.content.size,
7643
- new W(T.from(i), 0, 0)
7643
+ new W(D.from(i), 0, 0)
7644
7644
  );
7645
7645
  Dy(s, this.beforeTransactionSelection, this), s = s.setMeta(te, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof N.UndoManager }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && s.scrollIntoView(), this.prosemirrorView.dispatch(s);
7646
7646
  });
@@ -8092,7 +8092,7 @@ const zy = () => {
8092
8092
  Cy()
8093
8093
  )
8094
8094
  ).filter((r) => r !== null);
8095
- return T.fromArray(n);
8095
+ return D.fromArray(n);
8096
8096
  }, Hy = (t, e) => e.topNodeType.create(null, Vy(t, e)), jy = (t, e, n) => t !== e, Wy = (t) => {
8097
8097
  const e = document.createElement("span");
8098
8098
  e.classList.add("ProseMirror-yjs-cursor"), e.setAttribute("style", `border-color: ${t.color}`);
@@ -8540,7 +8540,7 @@ const fb = (t, e) => {
8540
8540
  const a = r.getMeta("applyInputRules");
8541
8541
  return !!a && setTimeout(() => {
8542
8542
  let { text: c } = a;
8543
- typeof c != "string" && (c = cb(T.from(c), i.schema));
8543
+ typeof c != "string" && (c = cb(D.from(c), i.schema));
8544
8544
  const { from: d } = a, u = d + c.length;
8545
8545
  wi({
8546
8546
  editor: t,
@@ -8660,7 +8660,7 @@ const On = class On {
8660
8660
  * @returns Array of attributes.
8661
8661
  */
8662
8662
  get attributes() {
8663
- return D.getAttributesFromExtensions(this.extensions);
8663
+ return T.getAttributesFromExtensions(this.extensions);
8664
8664
  }
8665
8665
  /**
8666
8666
  * Get all commands defined in the extensions.
@@ -8735,7 +8735,7 @@ const On = class On {
8735
8735
  }, a = I(o, "addNodeView", s);
8736
8736
  if (!a) return [];
8737
8737
  const l = (c, d, u, f) => {
8738
- const p = D.getAttributesToRender(c, i);
8738
+ const p = T.getAttributesToRender(c, i);
8739
8739
  return a()({
8740
8740
  editor: e,
8741
8741
  node: c,
@@ -9179,7 +9179,7 @@ const Xs = ({
9179
9179
  editable: !1,
9180
9180
  element: r,
9181
9181
  content: e,
9182
- extensions: Bx(),
9182
+ extensions: zx(),
9183
9183
  documentId: "sectionId"
9184
9184
  });
9185
9185
  c.on("create", () => {
@@ -9793,13 +9793,13 @@ const Jd = ({ state: t, tr: e, step: n, newTr: r, map: o, doc: i, user: s, date:
9793
9793
  C.marks
9794
9794
  );
9795
9795
  });
9796
- return c.create(S.attrs, T.from(k), S.marks);
9796
+ return c.create(S.attrs, D.from(k), S.marks);
9797
9797
  });
9798
- return a.create(w.attrs, T.from(y), w.marks);
9798
+ return a.create(w.attrs, D.from(y), w.marks);
9799
9799
  };
9800
9800
  for (let w = h - 1; w >= 0; w--) {
9801
- const x = n.mapping.map(p) + 1, y = d.content.content.map((k) => m(k, w)), S = s.create(d.attrs, T.from(y), d.marks);
9802
- n.insert(x, T.from(S));
9801
+ const x = n.mapping.map(p) + 1, y = d.content.content.map((k) => m(k, w)), S = s.create(d.attrs, D.from(y), d.marks);
9802
+ n.insert(x, D.from(S));
9803
9803
  }
9804
9804
  const g = n.mapping.map(f), b = g + d.nodeSize;
9805
9805
  n.delete(g - 1, b + 1);
@@ -10235,7 +10235,7 @@ const ca = class ca extends Qy {
10235
10235
  * editor.getAttributes('textStyle').color
10236
10236
  */
10237
10237
  getAttributes(n) {
10238
- return D.getAttributes(this.state, n);
10238
+ return T.getAttributes(this.state, n);
10239
10239
  }
10240
10240
  /**
10241
10241
  * Returns if the currently selected node or mark is active.
@@ -10364,7 +10364,7 @@ const ca = class ca extends Qy {
10364
10364
  * @returns {Object | void} Migration results
10365
10365
  */
10366
10366
  processCollaborationMigrations() {
10367
- if (console.debug("[checkVersionMigrations] Current editor version", "0.11.47"), !this.options.ydoc) return;
10367
+ if (console.debug("[checkVersionMigrations] Current editor version", "0.11.49"), !this.options.ydoc) return;
10368
10368
  let r = this.options.ydoc.getMap("meta").get("version");
10369
10369
  r || (r = "initial"), console.debug("[checkVersionMigrations] Document version", r);
10370
10370
  const o = hl(r) || [], s = this.state.plugins.find((c) => c.key.startsWith("y-sync"));
@@ -10476,7 +10476,7 @@ eu = function(n) {
10476
10476
  * @returns {void}
10477
10477
  */
10478
10478
  rs = function(n) {
10479
- (!n.extensions || !n.extensions.length) && (this.options.extensions = Fx()), E(this, A, as).call(this), E(this, A, ls).call(this), E(this, A, us).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), E(this, A, ps).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", E(this, A, is)), 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(() => {
10479
+ (!n.extensions || !n.extensions.length) && (this.options.extensions = Bx()), E(this, A, as).call(this), E(this, A, ls).call(this), E(this, A, us).call(this), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("contentError", this.options.onContentError), E(this, A, ps).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", E(this, A, is)), 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(() => {
10480
10480
  this.isDestroyed || this.emit("create", { editor: this });
10481
10481
  }, 0);
10482
10482
  }, /**
@@ -11303,9 +11303,9 @@ function Qb(t, e) {
11303
11303
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
11304
11304
  if (!r)
11305
11305
  return !1;
11306
- let o = T.empty;
11306
+ let o = D.empty;
11307
11307
  for (let s = r.length - 1; s >= 0; s--)
11308
- o = T.from(r[s].createAndFill(null, o));
11308
+ o = D.from(r[s].createAndFill(null, o));
11309
11309
  let i = t.state.tr.replace(n.pos, n.pos, new W(o, 0, 0));
11310
11310
  return i.setSelection(j.near(i.doc.resolve(n.pos + 1))), t.dispatch(i), !1;
11311
11311
  }
@@ -11451,7 +11451,7 @@ const t0 = Z.create({
11451
11451
  return [{ tag: Nn }];
11452
11452
  },
11453
11453
  renderDOM({ htmlAttributes: t }) {
11454
- return [Nn, D.mergeAttributes(this.options.htmlAttributes, t)];
11454
+ return [Nn, T.mergeAttributes(this.options.htmlAttributes, t)];
11455
11455
  }
11456
11456
  }), u0 = Oe.create({
11457
11457
  name: to,
@@ -11484,7 +11484,7 @@ const t0 = Z.create({
11484
11484
  return [{ tag: to }];
11485
11485
  },
11486
11486
  renderDOM({ htmlAttributes: t }) {
11487
- return [to, D.mergeAttributes(this.options.htmlAttributes, t)];
11487
+ return [to, T.mergeAttributes(this.options.htmlAttributes, t)];
11488
11488
  }
11489
11489
  }), f0 = "data:image/svg+xml,%3csvg%20fill='hsla(278,%2077.40%25,%2020.80%25,%200.65)'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4'%20cy='12'%20r='0'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_lo66'%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_z0Or'%20begin='spinner_lo66.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='4'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_JsnR'%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_Aguh'%20begin='spinner_JsnR.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='12'%20cy='12'%20r='3'%3e%3canimate%20begin='0;spinner_z0Or.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3canimate%20id='spinner_hSjk'%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_UHR2'%20begin='spinner_hSjk.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3c/circle%3e%3ccircle%20cx='20'%20cy='12'%20r='3'%3e%3canimate%20id='spinner_4v5M'%20begin='0;spinner_z0Or.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='3;0'%20fill='freeze'/%3e%3canimate%20id='spinner_OLMs'%20begin='spinner_4v5M.end'%20attributeName='cx'%20dur='0.001s'%20values='20;4'%20fill='freeze'/%3e%3canimate%20begin='spinner_OLMs.end'%20attributeName='r'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='0;3'%20fill='freeze'/%3e%3canimate%20begin='spinner_UHR2.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='4;12'%20fill='freeze'/%3e%3canimate%20begin='spinner_Aguh.end'%20attributeName='cx'%20calcMode='spline'%20dur='0.5s'%20keySplines='.36,.6,.31,1'%20values='12;20'%20fill='freeze'/%3e%3c/circle%3e%3c/svg%3e", p0 = q.create({
11490
11490
  name: gu,
@@ -11506,7 +11506,7 @@ const t0 = Z.create({
11506
11506
  },
11507
11507
  renderDOM({ htmlAttributes: t }) {
11508
11508
  const e = document.createElement("span");
11509
- Object.entries(D.mergeAttributes(this.options.htmlAttributes, t)).forEach(([r, o]) => e.setAttribute(r, o));
11509
+ Object.entries(T.mergeAttributes(this.options.htmlAttributes, t)).forEach(([r, o]) => e.setAttribute(r, o));
11510
11510
  const n = document.createElement("img");
11511
11511
  return n.src = f0, n.alt = "loading...", n.width = 100, n.height = 50, e.appendChild(n), e;
11512
11512
  }
@@ -11710,7 +11710,7 @@ const ml = /^\s*([-+*])\s$/, vu = q.create({
11710
11710
  return [{ tag: "ul" }];
11711
11711
  },
11712
11712
  renderDOM({ htmlAttributes: t }) {
11713
- return ["ul", D.mergeAttributes(this.options.htmlAttributes, t), 0];
11713
+ return ["ul", T.mergeAttributes(this.options.htmlAttributes, t), 0];
11714
11714
  },
11715
11715
  addAttributes() {
11716
11716
  return {
@@ -11963,7 +11963,7 @@ const yl = /^(\d+)\.\s$/, xu = q.create({
11963
11963
  },
11964
11964
  renderDOM({ htmlAttributes: t }) {
11965
11965
  const { start: e, ...n } = t;
11966
- return e === 1 ? ["ol", D.mergeAttributes(this.options.htmlAttributes, n), 0] : ["ol", D.mergeAttributes(this.options.htmlAttributes, t), 0];
11966
+ return e === 1 ? ["ol", T.mergeAttributes(this.options.htmlAttributes, n), 0] : ["ol", T.mergeAttributes(this.options.htmlAttributes, t), 0];
11967
11967
  },
11968
11968
  addCommands() {
11969
11969
  return {
@@ -12162,7 +12162,7 @@ function bl(t, e = []) {
12162
12162
  style: `--marker-font-size: ${u ?? "initial"}`
12163
12163
  }, h = {
12164
12164
  style: `--marker-font-family: ${f ?? "initial"}`
12165
- }, m = D.mergeAttributes(p, h), g = B.node(a, a + s.nodeSize, m);
12165
+ }, m = T.mergeAttributes(p, h), g = B.node(a, a + s.nodeSize, m);
12166
12166
  o.push(g);
12167
12167
  }), o;
12168
12168
  }
@@ -12216,7 +12216,7 @@ const Cu = q.create({
12216
12216
  return [{ tag: "li" }];
12217
12217
  },
12218
12218
  renderDOM({ htmlAttributes: t }) {
12219
- return ["li", D.mergeAttributes(this.options.htmlAttributes, t), 0];
12219
+ return ["li", T.mergeAttributes(this.options.htmlAttributes, t), 0];
12220
12220
  },
12221
12221
  addAttributes() {
12222
12222
  return {
@@ -12446,7 +12446,7 @@ const Cu = q.create({
12446
12446
  e += `${r ? `font-family: ${r};` : ""} ${o ? `font-size: ${o};` : ""}`;
12447
12447
  }
12448
12448
  return e.trim();
12449
- }, qx = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], Au = q.create({
12449
+ }, Kx = (t) => t?.converter ? (t.converter.linkedStyles || []).filter((n) => n.type === "paragraph" && n.definition.attrs).sort((n, r) => n.definition.attrs?.name.localeCompare(r.definition.attrs?.name)) : [], Au = q.create({
12450
12450
  name: "paragraph",
12451
12451
  priority: 1e3,
12452
12452
  group: "block",
@@ -12529,7 +12529,7 @@ const Cu = q.create({
12529
12529
  }];
12530
12530
  },
12531
12531
  renderDOM({ htmlAttributes: t }) {
12532
- return ["p", D.mergeAttributes(this.options.htmlAttributes, t), 0];
12532
+ return ["p", T.mergeAttributes(this.options.htmlAttributes, t), 0];
12533
12533
  },
12534
12534
  addPmPlugins() {
12535
12535
  const { view: t } = this.editor;
@@ -12598,7 +12598,7 @@ const Ou = q.create({
12598
12598
  }));
12599
12599
  },
12600
12600
  renderDOM({ node: t, htmlAttributes: e }) {
12601
- return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, D.mergeAttributes(this.options.htmlAttributes, e), 0];
12601
+ return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, T.mergeAttributes(this.options.htmlAttributes, e), 0];
12602
12602
  },
12603
12603
  addCommands() {
12604
12604
  return {
@@ -12633,7 +12633,7 @@ const Ou = q.create({
12633
12633
  };
12634
12634
  },
12635
12635
  renderDOM({ htmlAttributes: t }) {
12636
- return ["commentRangeStart", D.mergeAttributes(this.options.htmlAttributes, t)];
12636
+ return ["commentRangeStart", T.mergeAttributes(this.options.htmlAttributes, t)];
12637
12637
  },
12638
12638
  addAttributes() {
12639
12639
  return {
@@ -12664,7 +12664,7 @@ const Ou = q.create({
12664
12664
  return [{ tag: "commentRangeEnd" }];
12665
12665
  },
12666
12666
  renderDOM({ htmlAttributes: t }) {
12667
- return ["commentRangeEnd", D.mergeAttributes(this.options.htmlAttributes, t)];
12667
+ return ["commentRangeEnd", T.mergeAttributes(this.options.htmlAttributes, t)];
12668
12668
  },
12669
12669
  addAttributes() {
12670
12670
  return {
@@ -12691,7 +12691,7 @@ const Ou = q.create({
12691
12691
  return [{ tag: "commentReference" }];
12692
12692
  },
12693
12693
  renderDOM({ htmlAttributes: t }) {
12694
- return ["commentReference", D.mergeAttributes(this.options.htmlAttributes, t)];
12694
+ return ["commentReference", T.mergeAttributes(this.options.htmlAttributes, t)];
12695
12695
  },
12696
12696
  addAttributes() {
12697
12697
  return {
@@ -12723,7 +12723,7 @@ const Ou = q.create({
12723
12723
  return [{ tag: Le }];
12724
12724
  },
12725
12725
  renderDOM({ htmlAttributes: t }) {
12726
- return [Le, D.mergeAttributes(this.options.htmlAttributes, t)];
12726
+ return [Le, T.mergeAttributes(this.options.htmlAttributes, t)];
12727
12727
  }
12728
12728
  }), q0 = q.create({
12729
12729
  name: "tab",
@@ -12748,7 +12748,7 @@ const Ou = q.create({
12748
12748
  return [{ tag: "span.sd-editor-tab" }];
12749
12749
  },
12750
12750
  renderDOM({ htmlAttributes: t }) {
12751
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
12751
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
12752
12752
  },
12753
12753
  addAttributes() {
12754
12754
  return {
@@ -12860,7 +12860,7 @@ const J0 = q.create({
12860
12860
  return [{ tag: "span" }];
12861
12861
  },
12862
12862
  renderDOM({ htmlAttributes: t }) {
12863
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t)];
12863
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t)];
12864
12864
  }
12865
12865
  }), Y0 = ({ editor: t }) => class {
12866
12866
  constructor(n, r) {
@@ -12910,7 +12910,7 @@ function Sl(t, e, n, r, o, i) {
12910
12910
  a ? (n.style.width = `${s}px`, n.style.minWidth = "") : (n.style.width = "", n.style.minWidth = `${s}px`);
12911
12911
  }
12912
12912
  function Ml(t, e, n) {
12913
- const o = t.extensionService.attributes.filter((s) => s.type === "table"), i = D.getAttributesToRender(e, o);
12913
+ const o = t.extensionService.attributes.filter((s) => s.type === "table"), i = T.getAttributesToRender(e, o);
12914
12914
  Object.entries(i).forEach(([s, a]) => {
12915
12915
  n.setAttribute(s, a);
12916
12916
  });
@@ -13315,10 +13315,10 @@ var G = class ht extends ee {
13315
13315
  }
13316
13316
  c.push(h);
13317
13317
  }
13318
- s.push(e.child(l).copy(T.from(c)));
13318
+ s.push(e.child(l).copy(D.from(c)));
13319
13319
  }
13320
13320
  const a = this.isColSelection() && this.isRowSelection() ? e : s;
13321
- return new W(T.from(a), 1, 1);
13321
+ return new W(D.from(a), 1, 1);
13322
13322
  }
13323
13323
  replace(e, n = W.empty) {
13324
13324
  const r = e.steps.length, o = this.ranges;
@@ -13337,7 +13337,7 @@ var G = class ht extends ee {
13337
13337
  i && e.setSelection(i);
13338
13338
  }
13339
13339
  replaceWith(e, n) {
13340
- this.replace(e, new W(T.from(n), 0, 0));
13340
+ this.replace(e, new W(D.from(n), 0, 0));
13341
13341
  }
13342
13342
  forEachCell(e) {
13343
13343
  const n = this.$anchorCell.node(-1), r = re.get(n), o = this.$anchorCell.start(-1), i = r.cellsInRect(
@@ -13736,7 +13736,7 @@ function Tl(t, e) {
13736
13736
  if (xw(o, r)) return !1;
13737
13737
  if (e) {
13738
13738
  const i = t.tr, s = {};
13739
- let a = T.empty, l, c;
13739
+ let a = D.empty, l, c;
13740
13740
  for (let d = r.top; d < r.bottom; d++)
13741
13741
  for (let u = r.left; u < r.right; u++) {
13742
13742
  const f = o.map[d * o.width + u], p = r.table.nodeAt(f);
@@ -14026,11 +14026,11 @@ function Nw(t, e) {
14026
14026
  let r = 0;
14027
14027
  for (let o = 0; o < n.length; o++) r = Math.max(r, n[o]);
14028
14028
  for (let o = 0; o < n.length; o++)
14029
- if (o >= e.length && e.push(T.empty), n[o] < r) {
14029
+ if (o >= e.length && e.push(D.empty), n[o] < r) {
14030
14030
  const i = ke(t).cell.createAndFill(), s = [];
14031
14031
  for (let a = n[o]; a < r; a++)
14032
14032
  s.push(i);
14033
- e[o] = e[o].append(T.from(s));
14033
+ e[o] = e[o].append(D.from(s));
14034
14034
  }
14035
14035
  return { height: e.length, width: r, rows: e };
14036
14036
  }
@@ -14056,7 +14056,7 @@ function Ew({ width: t, height: e, rows: n }, r, o) {
14056
14056
  for (let p = 1; p < f.attrs.rowspan; p++)
14057
14057
  i[a + p] = (i[a + p] || 0) + f.attrs.colspan;
14058
14058
  }
14059
- s.push(T.from(c));
14059
+ s.push(D.from(c));
14060
14060
  }
14061
14061
  n = s, t = r;
14062
14062
  }
@@ -14074,7 +14074,7 @@ function Ew({ width: t, height: e, rows: n }, r, o) {
14074
14074
  u.content
14075
14075
  )), l.push(u);
14076
14076
  }
14077
- i.push(T.from(l));
14077
+ i.push(D.from(l));
14078
14078
  }
14079
14079
  n = i, e = o;
14080
14080
  }
@@ -14101,7 +14101,7 @@ function Pw(t, e, n, r, o, i, s) {
14101
14101
  g ? d || (d = l.header_cell.createAndFill()) : c || (c = l.cell.createAndFill())
14102
14102
  );
14103
14103
  }
14104
- const f = l.row.create(null, T.from(u)), p = [];
14104
+ const f = l.row.create(null, D.from(u)), p = [];
14105
14105
  for (let h = e.height; h < i; h++) p.push(f);
14106
14106
  t.insert(t.mapping.slice(s).map(r + n.nodeSize - 2), p);
14107
14107
  }
@@ -14259,7 +14259,7 @@ function Lw(t, e, n) {
14259
14259
  width: 1,
14260
14260
  height: 1,
14261
14261
  rows: [
14262
- T.from(
14262
+ D.from(
14263
14263
  ys(ke(t.state.schema).cell, n)
14264
14264
  )
14265
14265
  ]
@@ -14743,7 +14743,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
14743
14743
  );
14744
14744
  return [
14745
14745
  "table",
14746
- D.mergeAttributes(this.options.htmlAttributes, e, {
14746
+ T.mergeAttributes(this.options.htmlAttributes, e, {
14747
14747
  style: r ? `width: ${r}` : `min-width: ${o}`
14748
14748
  }),
14749
14749
  n,
@@ -14875,7 +14875,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
14875
14875
  return [{ tag: "th" }];
14876
14876
  },
14877
14877
  renderDOM({ htmlAttributes: t }) {
14878
- return ["th", D.mergeAttributes(this.options.htmlAttributes, t), 0];
14878
+ return ["th", T.mergeAttributes(this.options.htmlAttributes, t), 0];
14879
14879
  }
14880
14880
  }), ju = q.create({
14881
14881
  name: "tableRow",
@@ -14899,7 +14899,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
14899
14899
  return [{ tag: "tr" }];
14900
14900
  },
14901
14901
  renderDOM({ htmlAttributes: t }) {
14902
- return ["tr", D.mergeAttributes(this.options.htmlAttributes, t), 0];
14902
+ return ["tr", T.mergeAttributes(this.options.htmlAttributes, t), 0];
14903
14903
  }
14904
14904
  }), Wu = q.create({
14905
14905
  name: "tableCell",
@@ -14981,7 +14981,7 @@ const _u = (t) => t instanceof G, so = ({ editor: t }) => {
14981
14981
  return [{ tag: "td" }];
14982
14982
  },
14983
14983
  renderDOM({ htmlAttributes: t }) {
14984
- return ["td", D.mergeAttributes(this.options.htmlAttributes, t), 0];
14984
+ return ["td", T.mergeAttributes(this.options.htmlAttributes, t), 0];
14985
14985
  }
14986
14986
  });
14987
14987
  var yt, Gt;
@@ -15122,7 +15122,7 @@ yt = new WeakSet(), Gt = function({ displayLabel: e } = {}) {
15122
15122
  o.classList.add(this.annotationContentClass), o.style.pointerEvents = "none", o.contentEditable = "false", e && (o.textContent = e), r.append(o);
15123
15123
  let i = n === !1, s = [`border: 2px solid ${this.borderColor}`, "border-radius: 2px", "padding: 1px 2px", "box-sizing: border-box"].join(
15124
15124
  "; "
15125
- ), a = D.mergeAttributes(this.htmlAttributes, {
15125
+ ), a = T.mergeAttributes(this.htmlAttributes, {
15126
15126
  style: i ? "" : s
15127
15127
  });
15128
15128
  for (let [l, c] of Object.entries(a))
@@ -15294,7 +15294,7 @@ function Cn(t, e, n) {
15294
15294
  });
15295
15295
  }), r;
15296
15296
  }
15297
- const Xx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15297
+ const Jx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15298
15298
  __proto__: null,
15299
15299
  findFieldAnnotations: ev,
15300
15300
  findFieldAnnotationsBetween: Cn,
@@ -15591,7 +15591,7 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
15591
15591
  renderDOM({ node: t, htmlAttributes: e }) {
15592
15592
  let { type: n, displayLabel: r, imageSrc: o, rawHtml: i, linkUrl: s } = t.attrs, a = () => [
15593
15593
  "span",
15594
- D.mergeAttributes(this.options.htmlAttributes, e),
15594
+ T.mergeAttributes(this.options.htmlAttributes, e),
15595
15595
  [
15596
15596
  "span",
15597
15597
  {
@@ -15609,7 +15609,7 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
15609
15609
  ] : r;
15610
15610
  return [
15611
15611
  "span",
15612
- D.mergeAttributes(this.options.htmlAttributes, e),
15612
+ T.mergeAttributes(this.options.htmlAttributes, e),
15613
15613
  [
15614
15614
  "span",
15615
15615
  {
@@ -15629,7 +15629,7 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
15629
15629
  ] : r;
15630
15630
  return [
15631
15631
  "span",
15632
- D.mergeAttributes(this.options.htmlAttributes, e),
15632
+ T.mergeAttributes(this.options.htmlAttributes, e),
15633
15633
  [
15634
15634
  "span",
15635
15635
  {
@@ -15676,6 +15676,23 @@ const vs = "annotation", Ku = "annotation-content", Xu = q.create({
15676
15676
  const { from: a } = o.selection;
15677
15677
  s.addFieldAnnotation(a, t, e);
15678
15678
  },
15679
+ /**
15680
+ * Replace field annotation.
15681
+ * @param fieldsArray array of fields with attrs to add as annotation.
15682
+ * @example
15683
+ * editor.commands.replaceWithFieldAnnotation([
15684
+ * from: 20,
15685
+ * to: 45,
15686
+ * attrs: {
15687
+ * fieldType: 'TEXTINPUT'
15688
+ * fieldColor: '#980043'
15689
+ * }
15690
+ * ])
15691
+ */
15692
+ replaceWithFieldAnnotation: (t) => ({ editor: e, dispatch: n, state: r, tr: o }) => (n && (o.setMeta("fieldAnnotationReplace", !0), t.forEach((i) => {
15693
+ let { from: s, to: a, attrs: l } = i, { schema: c } = e, d = o.mapping.map(s), u = o.mapping.map(a), f = c.nodes[this.name].create({ ...l }, null, null);
15694
+ o.replaceWith(d, u, f);
15695
+ })), !0),
15679
15696
  /**
15680
15697
  * Update annotations associated with a field.
15681
15698
  * @param fieldIdOrArray The field ID or array of field IDs.
@@ -15943,7 +15960,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
15943
15960
  return this.getState(e);
15944
15961
  }
15945
15962
  }
15946
- }), Jx = (t, e) => {
15963
+ }), Yx = (t, e) => {
15947
15964
  let r = Bo.getState(t)?.find(null, null, (o) => o.id === e);
15948
15965
  return r?.length ? r[0].from : null;
15949
15966
  }, Vl = new X("ImagePosition"), bv = ({ editor: t }) => {
@@ -16107,7 +16124,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16107
16124
  ];
16108
16125
  },
16109
16126
  renderDOM({ htmlAttributes: t }) {
16110
- return ["img", D.mergeAttributes(this.options.htmlAttributes, t)];
16127
+ return ["img", T.mergeAttributes(this.options.htmlAttributes, t)];
16111
16128
  },
16112
16129
  addCommands() {
16113
16130
  return {
@@ -16143,7 +16160,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16143
16160
  };
16144
16161
  },
16145
16162
  renderDOM({ htmlAttributes: t }) {
16146
- return ["a", D.mergeAttributes(this.options.htmlAttributes, t)];
16163
+ return ["a", T.mergeAttributes(this.options.htmlAttributes, t)];
16147
16164
  }
16148
16165
  }), Yu = q.create({
16149
16166
  name: "mention",
@@ -16173,7 +16190,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16173
16190
  const { name: n, email: r } = t.attrs;
16174
16191
  return [
16175
16192
  "span",
16176
- D.mergeAttributes({ "data-type": this.name || this.email }, this.options.htmlAttributes, e),
16193
+ T.mergeAttributes({ "data-type": this.name || this.email }, this.options.htmlAttributes, e),
16177
16194
  `@${n || r}`
16178
16195
  ];
16179
16196
  },
@@ -16199,7 +16216,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16199
16216
  return [{ tag: 'span[data-id="auto-page-number"' }];
16200
16217
  },
16201
16218
  renderDOM({ htmlAttributes: t }) {
16202
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16219
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16203
16220
  }
16204
16221
  }), xv = q.create({
16205
16222
  name: "total-page-number",
@@ -16217,7 +16234,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16217
16234
  return [{ tag: 'span[data-id="auto-total-pages"' }];
16218
16235
  },
16219
16236
  renderDOM({ htmlAttributes: t }) {
16220
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16237
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16221
16238
  }
16222
16239
  }), Sv = q.create({
16223
16240
  name: "shapeContainer",
@@ -16261,7 +16278,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16261
16278
  renderDOM({ htmlAttributes: t }) {
16262
16279
  return [
16263
16280
  "div",
16264
- D.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
16281
+ T.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
16265
16282
  0
16266
16283
  ];
16267
16284
  }
@@ -16294,7 +16311,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16294
16311
  renderDOM({ htmlAttributes: t }) {
16295
16312
  return [
16296
16313
  "div",
16297
- D.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
16314
+ T.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
16298
16315
  0
16299
16316
  ];
16300
16317
  }
@@ -16344,10 +16361,39 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16344
16361
  renderDOM({ htmlAttributes: t }) {
16345
16362
  return [
16346
16363
  "div",
16347
- D.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
16364
+ T.mergeAttributes(this.options.htmlAttributes, t, { "data-type": this.name }),
16348
16365
  0
16349
16366
  ];
16350
16367
  }
16368
+ }), Av = q.create({
16369
+ name: "structuredContent",
16370
+ group: "inline",
16371
+ inline: !0,
16372
+ content: "inline*",
16373
+ addOptions() {
16374
+ return {
16375
+ annotationClass: "sd-structured-content-tag",
16376
+ htmlAttributes: {}
16377
+ };
16378
+ },
16379
+ parseDOM() {
16380
+ return [
16381
+ {
16382
+ tag: `span.${this.options.annotationClass}`,
16383
+ priority: 60
16384
+ }
16385
+ ];
16386
+ },
16387
+ renderDOM({ htmlAttributes: t }) {
16388
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16389
+ },
16390
+ addAttributes() {
16391
+ return {
16392
+ sdtPr: {
16393
+ rendered: !1
16394
+ }
16395
+ };
16396
+ }
16351
16397
  }), Gu = Oe.create({
16352
16398
  name: "textStyle",
16353
16399
  addOptions() {
@@ -16367,12 +16413,12 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16367
16413
  ];
16368
16414
  },
16369
16415
  renderDOM({ htmlAttributes: t }) {
16370
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16416
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16371
16417
  },
16372
16418
  addCommands() {
16373
16419
  return {
16374
16420
  removeEmptyTextStyle: () => ({ state: t, commands: e }) => {
16375
- const n = D.getMarkAttributes(t, this.type);
16421
+ const n = T.getMarkAttributes(t, this.type);
16376
16422
  return Object.entries(n).some(([, o]) => !!o) ? !0 : e.unsetMark(this.name);
16377
16423
  }
16378
16424
  };
@@ -16393,7 +16439,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16393
16439
  ];
16394
16440
  },
16395
16441
  renderDOM({ htmlAttributes: t }) {
16396
- return ["strong", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16442
+ return ["strong", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16397
16443
  },
16398
16444
  //prettier-ignore
16399
16445
  addCommands() {
@@ -16425,7 +16471,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16425
16471
  ];
16426
16472
  },
16427
16473
  renderDOM({ htmlAttributes: t }) {
16428
- return ["em", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16474
+ return ["em", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16429
16475
  },
16430
16476
  //prettier-ignore
16431
16477
  addCommands() {
@@ -16456,7 +16502,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16456
16502
  ];
16457
16503
  },
16458
16504
  renderDOM({ htmlAttributes: t }) {
16459
- return ["u", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16505
+ return ["u", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16460
16506
  },
16461
16507
  addAttributes() {
16462
16508
  return {
@@ -16502,7 +16548,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16502
16548
  return [{ tag: "mark" }];
16503
16549
  },
16504
16550
  renderDOM({ htmlAttributes: t }) {
16505
- return ["mark", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16551
+ return ["mark", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16506
16552
  },
16507
16553
  //prettier-ignore
16508
16554
  addCommands() {
@@ -16532,7 +16578,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16532
16578
  ];
16533
16579
  },
16534
16580
  renderDOM({ htmlAttributes: t }) {
16535
- return ["s", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16581
+ return ["s", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16536
16582
  },
16537
16583
  addCommands() {
16538
16584
  return {
@@ -16565,7 +16611,7 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16565
16611
  return [{ tag: "a" }];
16566
16612
  },
16567
16613
  renderDOM({ htmlAttributes: t }) {
16568
- return jl(t.href, this.options.protocols) ? ["a", D.mergeAttributes(this.options.htmlAttributes, t), 0] : ["a", mergeAttributes(this.options.htmlAttributes, { ...t, href: "" }), 0];
16614
+ return jl(t.href, this.options.protocols) ? ["a", T.mergeAttributes(this.options.htmlAttributes, t), 0] : ["a", mergeAttributes(this.options.htmlAttributes, { ...t, href: "" }), 0];
16569
16615
  },
16570
16616
  addAttributes() {
16571
16617
  return {
@@ -16597,22 +16643,22 @@ const Bo = new X("ImagePlaceholder"), yv = (t = {}) => new J({
16597
16643
  toggleLink: ({ href: t }) => ({ commands: e }) => t ? e.setLink({ href: t }) : e.unsetLink()
16598
16644
  };
16599
16645
  }
16600
- }), Av = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
16646
+ }), Ov = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
16601
16647
  function jl(t, e) {
16602
16648
  const n = ["http", "https", "mailto"];
16603
16649
  return e && e.forEach((r) => {
16604
16650
  const o = typeof r == "string" ? r : r.scheme;
16605
16651
  o && n.push(o);
16606
- }), !t || t.replace(Av, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
16652
+ }), !t || t.replace(Ov, "").match(new RegExp(`^(?:(?:${n.join("|")}):|[^a-z]|[a-z+.-]+(?:[^a-z+.-:]|$))`, "i"));
16607
16653
  }
16608
- const Ov = "track-insert", of = Oe.create({
16654
+ const Tv = "track-insert", of = Oe.create({
16609
16655
  name: Ve,
16610
16656
  group: "track",
16611
16657
  inclusive: !1,
16612
16658
  addOptions() {
16613
16659
  return {
16614
16660
  htmlAttributes: {
16615
- class: Ov
16661
+ class: Tv
16616
16662
  }
16617
16663
  };
16618
16664
  },
@@ -16652,16 +16698,16 @@ const Ov = "track-insert", of = Oe.create({
16652
16698
  return !1;
16653
16699
  },
16654
16700
  renderDOM({ htmlAttributes: t }) {
16655
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16701
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16656
16702
  }
16657
- }), Tv = "track-delete", sf = Oe.create({
16703
+ }), Dv = "track-delete", sf = Oe.create({
16658
16704
  name: de,
16659
16705
  group: "track",
16660
16706
  inclusive: !1,
16661
16707
  addOptions() {
16662
16708
  return {
16663
16709
  htmlAttributes: {
16664
- class: Tv
16710
+ class: Dv
16665
16711
  }
16666
16712
  };
16667
16713
  },
@@ -16701,7 +16747,7 @@ const Ov = "track-insert", of = Oe.create({
16701
16747
  return !1;
16702
16748
  },
16703
16749
  renderDOM({ htmlAttributes: t }) {
16704
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16750
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16705
16751
  }
16706
16752
  }), ks = (t) => {
16707
16753
  if (!t) return [];
@@ -16712,7 +16758,7 @@ const Ov = "track-insert", of = Oe.create({
16712
16758
  return [];
16713
16759
  }
16714
16760
  return Array.isArray(e) ? e.filter((n) => Object.hasOwn(n, "type") && Object.hasOwn(n, "attrs")) : [];
16715
- }, Yx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16761
+ }, Gx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16716
16762
  __proto__: null,
16717
16763
  addMarkStep: Yd,
16718
16764
  documentHelpers: yb,
@@ -16726,14 +16772,14 @@ const Ov = "track-insert", of = Oe.create({
16726
16772
  replaceAroundStep: Pb,
16727
16773
  replaceStep: Jd,
16728
16774
  trackedTransaction: Zd
16729
- }, Symbol.toStringTag, { value: "Module" })), Dv = "track-format", af = Oe.create({
16775
+ }, Symbol.toStringTag, { value: "Module" })), Nv = "track-format", af = Oe.create({
16730
16776
  name: Se,
16731
16777
  group: "track",
16732
16778
  inclusive: !1,
16733
16779
  addOptions() {
16734
16780
  return {
16735
16781
  htmlAttributes: {
16736
- class: Dv
16782
+ class: Nv
16737
16783
  }
16738
16784
  };
16739
16785
  },
@@ -16795,9 +16841,9 @@ const Ov = "track-insert", of = Oe.create({
16795
16841
  return !1;
16796
16842
  },
16797
16843
  renderDOM({ htmlAttributes: t }) {
16798
- return ["span", D.mergeAttributes(this.options.htmlAttributes, t), 0];
16844
+ return ["span", T.mergeAttributes(this.options.htmlAttributes, t), 0];
16799
16845
  }
16800
- }), Nv = Z.create({
16846
+ }), Ev = Z.create({
16801
16847
  name: "trackChanges",
16802
16848
  addCommands() {
16803
16849
  return {
@@ -16967,7 +17013,7 @@ const Ov = "track-insert", of = Oe.create({
16967
17013
  const o = n[r], i = n[r - 1], s = n[r + 1];
16968
17014
  let a;
16969
17015
  return i && o.start === i.end ? a = i : s && o.end === s.start && (a = s), [o, a].filter(Boolean);
16970
- }, Ev = Z.create({
17016
+ }, Pv = Z.create({
16971
17017
  name: "placeholder",
16972
17018
  addOptions() {
16973
17019
  return {
@@ -16997,11 +17043,11 @@ const Ov = "track-insert", of = Oe.create({
16997
17043
  })];
16998
17044
  }
16999
17045
  });
17000
- var Ne = "top", Ue = "bottom", qe = "right", Ee = "left", ta = "auto", zr = [Ne, Ue, qe, Ee], Fn = "start", Ar = "end", Pv = "clippingParents", lf = "viewport", Qn = "popper", Iv = "reference", Ul = /* @__PURE__ */ zr.reduce(function(t, e) {
17046
+ var Ne = "top", Ue = "bottom", qe = "right", Ee = "left", ta = "auto", zr = [Ne, Ue, qe, Ee], Fn = "start", Ar = "end", Iv = "clippingParents", lf = "viewport", Qn = "popper", Rv = "reference", Ul = /* @__PURE__ */ zr.reduce(function(t, e) {
17001
17047
  return t.concat([e + "-" + Fn, e + "-" + Ar]);
17002
17048
  }, []), cf = /* @__PURE__ */ [].concat(zr, [ta]).reduce(function(t, e) {
17003
17049
  return t.concat([e, e + "-" + Fn, e + "-" + Ar]);
17004
- }, []), Rv = "beforeRead", Lv = "read", Fv = "afterRead", Bv = "beforeMain", zv = "main", _v = "afterMain", $v = "beforeWrite", Vv = "write", Hv = "afterWrite", jv = [Rv, Lv, Fv, Bv, zv, _v, $v, Vv, Hv];
17050
+ }, []), Lv = "beforeRead", Fv = "read", Bv = "afterRead", zv = "beforeMain", _v = "main", $v = "afterMain", Vv = "beforeWrite", Hv = "write", jv = "afterWrite", Wv = [Lv, Fv, Bv, zv, _v, $v, Vv, Hv, jv];
17005
17051
  function lt(t) {
17006
17052
  return t ? (t.nodeName || "").toLowerCase() : null;
17007
17053
  }
@@ -17028,7 +17074,7 @@ function na(t) {
17028
17074
  var e = Fe(t).ShadowRoot;
17029
17075
  return t instanceof e || t instanceof ShadowRoot;
17030
17076
  }
17031
- function Wv(t) {
17077
+ function Uv(t) {
17032
17078
  var e = t.state;
17033
17079
  Object.keys(e.elements).forEach(function(n) {
17034
17080
  var r = e.styles[n] || {}, o = e.attributes[n] || {}, i = e.elements[n];
@@ -17038,7 +17084,7 @@ function Wv(t) {
17038
17084
  }));
17039
17085
  });
17040
17086
  }
17041
- function Uv(t) {
17087
+ function qv(t) {
17042
17088
  var e = t.state, n = {
17043
17089
  popper: {
17044
17090
  position: e.options.strategy,
@@ -17066,8 +17112,8 @@ const df = {
17066
17112
  name: "applyStyles",
17067
17113
  enabled: !0,
17068
17114
  phase: "write",
17069
- fn: Wv,
17070
- effect: Uv,
17115
+ fn: Uv,
17116
+ effect: qv,
17071
17117
  requires: ["computeStyles"]
17072
17118
  };
17073
17119
  function it(t) {
@@ -17125,7 +17171,7 @@ function ff(t, e) {
17125
17171
  function xt(t) {
17126
17172
  return Fe(t).getComputedStyle(t);
17127
17173
  }
17128
- function qv(t) {
17174
+ function Kv(t) {
17129
17175
  return ["table", "td", "th"].indexOf(lt(t)) >= 0;
17130
17176
  }
17131
17177
  function Ut(t) {
@@ -17150,7 +17196,7 @@ function ql(t) {
17150
17196
  return !We(t) || // https://github.com/popperjs/popper-core/issues/837
17151
17197
  xt(t).position === "fixed" ? null : t.offsetParent;
17152
17198
  }
17153
- function Kv(t) {
17199
+ function Xv(t) {
17154
17200
  var e = /firefox/i.test(xs()), n = /Trident/i.test(xs());
17155
17201
  if (n && We(t)) {
17156
17202
  var r = xt(t);
@@ -17167,9 +17213,9 @@ function Kv(t) {
17167
17213
  return null;
17168
17214
  }
17169
17215
  function _r(t) {
17170
- for (var e = Fe(t), n = ql(t); n && qv(n) && xt(n).position === "static"; )
17216
+ for (var e = Fe(t), n = ql(t); n && Kv(n) && xt(n).position === "static"; )
17171
17217
  n = ql(n);
17172
- return n && (lt(n) === "html" || lt(n) === "body" && xt(n).position === "static") ? e : n || Kv(t) || e;
17218
+ return n && (lt(n) === "html" || lt(n) === "body" && xt(n).position === "static") ? e : n || Xv(t) || e;
17173
17219
  }
17174
17220
  function oa(t) {
17175
17221
  return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
@@ -17177,7 +17223,7 @@ function oa(t) {
17177
17223
  function cr(t, e, n) {
17178
17224
  return an(t, zo(e, n));
17179
17225
  }
17180
- function Xv(t, e, n) {
17226
+ function Jv(t, e, n) {
17181
17227
  var r = cr(t, e, n);
17182
17228
  return r > n ? n : r;
17183
17229
  }
@@ -17197,41 +17243,41 @@ function mf(t, e) {
17197
17243
  return n[r] = t, n;
17198
17244
  }, {});
17199
17245
  }
17200
- var Jv = function(e, n) {
17246
+ var Yv = function(e, n) {
17201
17247
  return e = typeof e == "function" ? e(Object.assign({}, n.rects, {
17202
17248
  placement: n.placement
17203
17249
  })) : e, hf(typeof e != "number" ? e : mf(e, zr));
17204
17250
  };
17205
- function Yv(t) {
17251
+ function Gv(t) {
17206
17252
  var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = it(n.placement), l = oa(a), c = [Ee, qe].indexOf(a) >= 0, d = c ? "height" : "width";
17207
17253
  if (!(!i || !s)) {
17208
- var u = Jv(o.padding, n), f = ra(i), p = l === "y" ? Ne : Ee, h = l === "y" ? Ue : qe, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = _r(i), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - g / 2, y = u[p], S = w - f[d] - u[h], k = w / 2 - f[d] / 2 + x, C = cr(y, k, S), R = l;
17254
+ var u = Yv(o.padding, n), f = ra(i), p = l === "y" ? Ne : Ee, h = l === "y" ? Ue : qe, m = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], g = s[l] - n.rects.reference[l], b = _r(i), w = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, x = m / 2 - g / 2, y = u[p], S = w - f[d] - u[h], k = w / 2 - f[d] / 2 + x, C = cr(y, k, S), R = l;
17209
17255
  n.modifiersData[r] = (e = {}, e[R] = C, e.centerOffset = C - k, e);
17210
17256
  }
17211
17257
  }
17212
- function Gv(t) {
17258
+ function Zv(t) {
17213
17259
  var e = t.state, n = t.options, r = n.element, o = r === void 0 ? "[data-popper-arrow]" : r;
17214
17260
  o != null && (typeof o == "string" && (o = e.elements.popper.querySelector(o), !o) || ff(e.elements.popper, o) && (e.elements.arrow = o));
17215
17261
  }
17216
- const Zv = {
17262
+ const Qv = {
17217
17263
  name: "arrow",
17218
17264
  enabled: !0,
17219
17265
  phase: "main",
17220
- fn: Yv,
17221
- effect: Gv,
17266
+ fn: Gv,
17267
+ effect: Zv,
17222
17268
  requires: ["popperOffsets"],
17223
17269
  requiresIfExists: ["preventOverflow"]
17224
17270
  };
17225
17271
  function _n(t) {
17226
17272
  return t.split("-")[1];
17227
17273
  }
17228
- var Qv = {
17274
+ var ek = {
17229
17275
  top: "auto",
17230
17276
  right: "auto",
17231
17277
  bottom: "auto",
17232
17278
  left: "auto"
17233
17279
  };
17234
- function ek(t, e) {
17280
+ function tk(t, e) {
17235
17281
  var n = t.x, r = t.y, o = e.devicePixelRatio || 1;
17236
17282
  return {
17237
17283
  x: Bn(n * o) / o || 0,
@@ -17269,7 +17315,7 @@ function Kl(t) {
17269
17315
  }
17270
17316
  var V = Object.assign({
17271
17317
  position: a
17272
- }, c && Qv), _ = d === !0 ? ek({
17318
+ }, c && ek), _ = d === !0 ? tk({
17273
17319
  x: p,
17274
17320
  y: m
17275
17321
  }, Fe(n)) : {
@@ -17282,7 +17328,7 @@ function Kl(t) {
17282
17328
  }
17283
17329
  return Object.assign({}, V, (e = {}, e[y] = w ? m + "px" : "", e[x] = b ? p + "px" : "", e.transform = "", e));
17284
17330
  }
17285
- function tk(t) {
17331
+ function nk(t) {
17286
17332
  var e = t.state, n = t.options, r = n.gpuAcceleration, o = r === void 0 ? !0 : r, i = n.adaptive, s = i === void 0 ? !0 : i, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
17287
17333
  placement: it(e.placement),
17288
17334
  variation: _n(e.placement),
@@ -17305,17 +17351,17 @@ function tk(t) {
17305
17351
  "data-popper-placement": e.placement
17306
17352
  });
17307
17353
  }
17308
- const nk = {
17354
+ const rk = {
17309
17355
  name: "computeStyles",
17310
17356
  enabled: !0,
17311
17357
  phase: "beforeWrite",
17312
- fn: tk,
17358
+ fn: nk,
17313
17359
  data: {}
17314
17360
  };
17315
17361
  var ao = {
17316
17362
  passive: !0
17317
17363
  };
17318
- function rk(t) {
17364
+ function ok(t) {
17319
17365
  var e = t.state, n = t.instance, r = t.options, o = r.scroll, i = o === void 0 ? !0 : o, s = r.resize, a = s === void 0 ? !0 : s, l = Fe(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
17320
17366
  return i && c.forEach(function(d) {
17321
17367
  d.addEventListener("scroll", n.update, ao);
@@ -17325,16 +17371,16 @@ function rk(t) {
17325
17371
  }), a && l.removeEventListener("resize", n.update, ao);
17326
17372
  };
17327
17373
  }
17328
- const ok = {
17374
+ const ik = {
17329
17375
  name: "eventListeners",
17330
17376
  enabled: !0,
17331
17377
  phase: "write",
17332
17378
  fn: function() {
17333
17379
  },
17334
- effect: rk,
17380
+ effect: ok,
17335
17381
  data: {}
17336
17382
  };
17337
- var ik = {
17383
+ var sk = {
17338
17384
  left: "right",
17339
17385
  right: "left",
17340
17386
  bottom: "top",
@@ -17342,16 +17388,16 @@ var ik = {
17342
17388
  };
17343
17389
  function xo(t) {
17344
17390
  return t.replace(/left|right|bottom|top/g, function(e) {
17345
- return ik[e];
17391
+ return sk[e];
17346
17392
  });
17347
17393
  }
17348
- var sk = {
17394
+ var ak = {
17349
17395
  start: "end",
17350
17396
  end: "start"
17351
17397
  };
17352
17398
  function Xl(t) {
17353
17399
  return t.replace(/start|end/g, function(e) {
17354
- return sk[e];
17400
+ return ak[e];
17355
17401
  });
17356
17402
  }
17357
17403
  function ia(t) {
@@ -17364,7 +17410,7 @@ function ia(t) {
17364
17410
  function sa(t) {
17365
17411
  return zn(Ut(t)).left + ia(t).scrollLeft;
17366
17412
  }
17367
- function ak(t, e) {
17413
+ function lk(t, e) {
17368
17414
  var n = Fe(t), r = Ut(t), o = n.visualViewport, i = r.clientWidth, s = r.clientHeight, a = 0, l = 0;
17369
17415
  if (o) {
17370
17416
  i = o.width, s = o.height;
@@ -17378,7 +17424,7 @@ function ak(t, e) {
17378
17424
  y: l
17379
17425
  };
17380
17426
  }
17381
- function lk(t) {
17427
+ function ck(t) {
17382
17428
  var e, n = Ut(t), r = ia(t), o = (e = t.ownerDocument) == null ? void 0 : e.body, i = an(n.scrollWidth, n.clientWidth, o ? o.scrollWidth : 0, o ? o.clientWidth : 0), s = an(n.scrollHeight, n.clientHeight, o ? o.scrollHeight : 0, o ? o.clientHeight : 0), a = -r.scrollLeft + sa(t), l = -r.scrollTop;
17383
17429
  return xt(o || n).direction === "rtl" && (a += an(n.clientWidth, o ? o.clientWidth : 0) - i), {
17384
17430
  width: i,
@@ -17411,21 +17457,21 @@ function Ss(t) {
17411
17457
  bottom: t.y + t.height
17412
17458
  });
17413
17459
  }
17414
- function ck(t, e) {
17460
+ function dk(t, e) {
17415
17461
  var n = zn(t, !1, e === "fixed");
17416
17462
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
17417
17463
  }
17418
17464
  function Jl(t, e, n) {
17419
- return e === lf ? Ss(ak(t, n)) : fn(e) ? ck(e, n) : Ss(lk(Ut(t)));
17465
+ return e === lf ? Ss(lk(t, n)) : fn(e) ? dk(e, n) : Ss(ck(Ut(t)));
17420
17466
  }
17421
- function dk(t) {
17467
+ function uk(t) {
17422
17468
  var e = dr(Yo(t)), n = ["absolute", "fixed"].indexOf(xt(t).position) >= 0, r = n && We(t) ? _r(t) : t;
17423
17469
  return fn(r) ? e.filter(function(o) {
17424
17470
  return fn(o) && ff(o, r) && lt(o) !== "body";
17425
17471
  }) : [];
17426
17472
  }
17427
- function uk(t, e, n, r) {
17428
- var o = e === "clippingParents" ? dk(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
17473
+ function fk(t, e, n, r) {
17474
+ var o = e === "clippingParents" ? uk(t) : [].concat(e), i = [].concat(o, [n]), s = i[0], a = i.reduce(function(l, c) {
17429
17475
  var d = Jl(t, c, r);
17430
17476
  return l.top = an(d.top, l.top), l.right = zo(d.right, l.right), l.bottom = zo(d.bottom, l.bottom), l.left = an(d.left, l.left), l;
17431
17477
  }, Jl(t, s, r));
@@ -17480,7 +17526,7 @@ function yf(t) {
17480
17526
  }
17481
17527
  function Or(t, e) {
17482
17528
  e === void 0 && (e = {});
17483
- var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? Pv : a, c = n.rootBoundary, d = c === void 0 ? lf : c, u = n.elementContext, f = u === void 0 ? Qn : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = hf(typeof g != "number" ? g : mf(g, zr)), w = f === Qn ? Iv : Qn, x = t.rects.popper, y = t.elements[h ? w : f], S = uk(fn(y) ? y : y.contextElement || Ut(t.elements.popper), l, d, s), k = zn(t.elements.reference), C = yf({
17529
+ var n = e, r = n.placement, o = r === void 0 ? t.placement : r, i = n.strategy, s = i === void 0 ? t.strategy : i, a = n.boundary, l = a === void 0 ? Iv : a, c = n.rootBoundary, d = c === void 0 ? lf : c, u = n.elementContext, f = u === void 0 ? Qn : u, p = n.altBoundary, h = p === void 0 ? !1 : p, m = n.padding, g = m === void 0 ? 0 : m, b = hf(typeof g != "number" ? g : mf(g, zr)), w = f === Qn ? Rv : Qn, x = t.rects.popper, y = t.elements[h ? w : f], S = fk(fn(y) ? y : y.contextElement || Ut(t.elements.popper), l, d, s), k = zn(t.elements.reference), C = yf({
17484
17530
  reference: k,
17485
17531
  element: x,
17486
17532
  placement: o
@@ -17499,7 +17545,7 @@ function Or(t, e) {
17499
17545
  }
17500
17546
  return $;
17501
17547
  }
17502
- function fk(t, e) {
17548
+ function pk(t, e) {
17503
17549
  e === void 0 && (e = {});
17504
17550
  var n = e, r = n.placement, o = n.boundary, i = n.rootBoundary, s = n.padding, a = n.flipVariations, l = n.allowedAutoPlacements, c = l === void 0 ? cf : l, d = _n(r), u = d ? a ? Ul : Ul.filter(function(h) {
17505
17551
  return _n(h) === d;
@@ -17519,17 +17565,17 @@ function fk(t, e) {
17519
17565
  return p[h] - p[m];
17520
17566
  });
17521
17567
  }
17522
- function pk(t) {
17568
+ function hk(t) {
17523
17569
  if (it(t) === ta)
17524
17570
  return [];
17525
17571
  var e = xo(t);
17526
17572
  return [Xl(t), e, Xl(e)];
17527
17573
  }
17528
- function hk(t) {
17574
+ function mk(t) {
17529
17575
  var e = t.state, n = t.options, r = t.name;
17530
17576
  if (!e.modifiersData[r]._skip) {
17531
- for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, g = e.options.placement, b = it(g), w = b === g, x = l || (w || !h ? [xo(g)] : pk(g)), y = [g].concat(x).reduce(function(Ke, Pe) {
17532
- return Ke.concat(it(Pe) === ta ? fk(e, {
17577
+ for (var o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, f = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, m = n.allowedAutoPlacements, g = e.options.placement, b = it(g), w = b === g, x = l || (w || !h ? [xo(g)] : hk(g)), y = [g].concat(x).reduce(function(Ke, Pe) {
17578
+ return Ke.concat(it(Pe) === ta ? pk(e, {
17533
17579
  placement: Pe,
17534
17580
  boundary: d,
17535
17581
  rootBoundary: u,
@@ -17573,11 +17619,11 @@ function hk(t) {
17573
17619
  e.placement !== M && (e.modifiersData[r]._skip = !0, e.placement = M, e.reset = !0);
17574
17620
  }
17575
17621
  }
17576
- const mk = {
17622
+ const gk = {
17577
17623
  name: "flip",
17578
17624
  enabled: !0,
17579
17625
  phase: "main",
17580
- fn: hk,
17626
+ fn: mk,
17581
17627
  requiresIfExists: ["offset"],
17582
17628
  data: {
17583
17629
  _skip: !1
@@ -17599,7 +17645,7 @@ function Gl(t) {
17599
17645
  return t[e] >= 0;
17600
17646
  });
17601
17647
  }
17602
- function gk(t) {
17648
+ function yk(t) {
17603
17649
  var e = t.state, n = t.name, r = e.rects.reference, o = e.rects.popper, i = e.modifiersData.preventOverflow, s = Or(e, {
17604
17650
  elementContext: "reference"
17605
17651
  }), a = Or(e, {
@@ -17615,14 +17661,14 @@ function gk(t) {
17615
17661
  "data-popper-escaped": u
17616
17662
  });
17617
17663
  }
17618
- const yk = {
17664
+ const bk = {
17619
17665
  name: "hide",
17620
17666
  enabled: !0,
17621
17667
  phase: "main",
17622
17668
  requiresIfExists: ["preventOverflow"],
17623
- fn: gk
17669
+ fn: yk
17624
17670
  };
17625
- function bk(t, e, n) {
17671
+ function wk(t, e, n) {
17626
17672
  var r = it(t), o = [Ee, Ne].indexOf(r) >= 0 ? -1 : 1, i = typeof n == "function" ? n(Object.assign({}, e, {
17627
17673
  placement: t
17628
17674
  })) : n, s = i[0], a = i[1];
@@ -17634,20 +17680,20 @@ function bk(t, e, n) {
17634
17680
  y: a
17635
17681
  };
17636
17682
  }
17637
- function wk(t) {
17683
+ function vk(t) {
17638
17684
  var e = t.state, n = t.options, r = t.name, o = n.offset, i = o === void 0 ? [0, 0] : o, s = cf.reduce(function(d, u) {
17639
- return d[u] = bk(u, e.rects, i), d;
17685
+ return d[u] = wk(u, e.rects, i), d;
17640
17686
  }, {}), a = s[e.placement], l = a.x, c = a.y;
17641
17687
  e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += l, e.modifiersData.popperOffsets.y += c), e.modifiersData[r] = s;
17642
17688
  }
17643
- const vk = {
17689
+ const kk = {
17644
17690
  name: "offset",
17645
17691
  enabled: !0,
17646
17692
  phase: "main",
17647
17693
  requires: ["popperOffsets"],
17648
- fn: wk
17694
+ fn: vk
17649
17695
  };
17650
- function kk(t) {
17696
+ function xk(t) {
17651
17697
  var e = t.state, n = t.name;
17652
17698
  e.modifiersData[n] = yf({
17653
17699
  reference: e.rects.reference,
@@ -17655,23 +17701,23 @@ function kk(t) {
17655
17701
  placement: e.placement
17656
17702
  });
17657
17703
  }
17658
- const xk = {
17704
+ const Sk = {
17659
17705
  name: "popperOffsets",
17660
17706
  enabled: !0,
17661
17707
  phase: "read",
17662
- fn: kk,
17708
+ fn: xk,
17663
17709
  data: {}
17664
17710
  };
17665
- function Sk(t) {
17711
+ function Mk(t) {
17666
17712
  return t === "x" ? "y" : "x";
17667
17713
  }
17668
- function Mk(t) {
17714
+ function Ck(t) {
17669
17715
  var e = t.state, n = t.options, r = t.name, o = n.mainAxis, i = o === void 0 ? !0 : o, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, d = n.altBoundary, u = n.padding, f = n.tether, p = f === void 0 ? !0 : f, h = n.tetherOffset, m = h === void 0 ? 0 : h, g = Or(e, {
17670
17716
  boundary: l,
17671
17717
  rootBoundary: c,
17672
17718
  padding: u,
17673
17719
  altBoundary: d
17674
- }), b = it(e.placement), w = _n(e.placement), x = !w, y = oa(b), S = Sk(y), k = e.modifiersData.popperOffsets, C = e.rects.reference, R = e.rects.popper, M = typeof m == "function" ? m(Object.assign({}, e.rects, {
17720
+ }), b = it(e.placement), w = _n(e.placement), x = !w, y = oa(b), S = Mk(y), k = e.modifiersData.popperOffsets, C = e.rects.reference, R = e.rects.popper, M = typeof m == "function" ? m(Object.assign({}, e.rects, {
17675
17721
  placement: e.placement
17676
17722
  })) : m, $ = typeof M == "number" ? {
17677
17723
  mainAxis: M,
@@ -17692,35 +17738,35 @@ function Mk(t) {
17692
17738
  k[y] = Kn, _[y] = Kn - se;
17693
17739
  }
17694
17740
  if (a) {
17695
- var Xn, Wr = y === "x" ? Ne : Ee, Ur = y === "x" ? Ue : qe, ut = k[S], At = S === "y" ? "height" : "width", Jn = ut + g[Wr], qt = ut - g[Ur], Yn = [Ne, Ee].indexOf(b) !== -1, qr = (Xn = V?.[S]) != null ? Xn : 0, Kr = Yn ? Jn : ut - C[At] - R[At] - qr + $.altAxis, Xr = Yn ? ut + C[At] + R[At] - qr - $.altAxis : qt, Jr = p && Yn ? Xv(Kr, ut, Xr) : cr(p ? Kr : Jn, ut, p ? Xr : qt);
17741
+ var Xn, Wr = y === "x" ? Ne : Ee, Ur = y === "x" ? Ue : qe, ut = k[S], At = S === "y" ? "height" : "width", Jn = ut + g[Wr], qt = ut - g[Ur], Yn = [Ne, Ee].indexOf(b) !== -1, qr = (Xn = V?.[S]) != null ? Xn : 0, Kr = Yn ? Jn : ut - C[At] - R[At] - qr + $.altAxis, Xr = Yn ? ut + C[At] + R[At] - qr - $.altAxis : qt, Jr = p && Yn ? Jv(Kr, ut, Xr) : cr(p ? Kr : Jn, ut, p ? Xr : qt);
17696
17742
  k[S] = Jr, _[S] = Jr - ut;
17697
17743
  }
17698
17744
  e.modifiersData[r] = _;
17699
17745
  }
17700
17746
  }
17701
- const Ck = {
17747
+ const Ak = {
17702
17748
  name: "preventOverflow",
17703
17749
  enabled: !0,
17704
17750
  phase: "main",
17705
- fn: Mk,
17751
+ fn: Ck,
17706
17752
  requiresIfExists: ["offset"]
17707
17753
  };
17708
- function Ak(t) {
17754
+ function Ok(t) {
17709
17755
  return {
17710
17756
  scrollLeft: t.scrollLeft,
17711
17757
  scrollTop: t.scrollTop
17712
17758
  };
17713
17759
  }
17714
- function Ok(t) {
17715
- return t === Fe(t) || !We(t) ? ia(t) : Ak(t);
17716
- }
17717
17760
  function Tk(t) {
17761
+ return t === Fe(t) || !We(t) ? ia(t) : Ok(t);
17762
+ }
17763
+ function Dk(t) {
17718
17764
  var e = t.getBoundingClientRect(), n = Bn(e.width) / t.offsetWidth || 1, r = Bn(e.height) / t.offsetHeight || 1;
17719
17765
  return n !== 1 || r !== 1;
17720
17766
  }
17721
- function Dk(t, e, n) {
17767
+ function Nk(t, e, n) {
17722
17768
  n === void 0 && (n = !1);
17723
- var r = We(e), o = We(e) && Tk(e), i = Ut(e), s = zn(t, o, n), a = {
17769
+ var r = We(e), o = We(e) && Dk(e), i = Ut(e), s = zn(t, o, n), a = {
17724
17770
  scrollLeft: 0,
17725
17771
  scrollTop: 0
17726
17772
  }, l = {
@@ -17728,14 +17774,14 @@ function Dk(t, e, n) {
17728
17774
  y: 0
17729
17775
  };
17730
17776
  return (r || !r && !n) && ((lt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
17731
- aa(i)) && (a = Ok(e)), We(e) ? (l = zn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = sa(i))), {
17777
+ aa(i)) && (a = Tk(e)), We(e) ? (l = zn(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : i && (l.x = sa(i))), {
17732
17778
  x: s.left + a.scrollLeft - l.x,
17733
17779
  y: s.top + a.scrollTop - l.y,
17734
17780
  width: s.width,
17735
17781
  height: s.height
17736
17782
  };
17737
17783
  }
17738
- function Nk(t) {
17784
+ function Ek(t) {
17739
17785
  var e = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), r = [];
17740
17786
  t.forEach(function(i) {
17741
17787
  e.set(i.name, i);
@@ -17754,15 +17800,15 @@ function Nk(t) {
17754
17800
  n.has(i.name) || o(i);
17755
17801
  }), r;
17756
17802
  }
17757
- function Ek(t) {
17758
- var e = Nk(t);
17759
- return jv.reduce(function(n, r) {
17803
+ function Pk(t) {
17804
+ var e = Ek(t);
17805
+ return Wv.reduce(function(n, r) {
17760
17806
  return n.concat(e.filter(function(o) {
17761
17807
  return o.phase === r;
17762
17808
  }));
17763
17809
  }, []);
17764
17810
  }
17765
- function Pk(t) {
17811
+ function Ik(t) {
17766
17812
  var e;
17767
17813
  return function() {
17768
17814
  return e || (e = new Promise(function(n) {
@@ -17772,7 +17818,7 @@ function Pk(t) {
17772
17818
  })), e;
17773
17819
  };
17774
17820
  }
17775
- function Ik(t) {
17821
+ function Rk(t) {
17776
17822
  var e = t.reduce(function(n, r) {
17777
17823
  var o = n[r.name];
17778
17824
  return n[r.name] = o ? Object.assign({}, o, r, {
@@ -17796,7 +17842,7 @@ function Ql() {
17796
17842
  return !(r && typeof r.getBoundingClientRect == "function");
17797
17843
  });
17798
17844
  }
17799
- function Rk(t) {
17845
+ function Lk(t) {
17800
17846
  t === void 0 && (t = {});
17801
17847
  var e = t, n = e.defaultModifiers, r = n === void 0 ? [] : n, o = e.defaultOptions, i = o === void 0 ? Zl : o;
17802
17848
  return function(a, l, c) {
@@ -17820,7 +17866,7 @@ function Rk(t) {
17820
17866
  reference: fn(a) ? dr(a) : a.contextElement ? dr(a.contextElement) : [],
17821
17867
  popper: dr(l)
17822
17868
  };
17823
- var x = Ek(Ik([].concat(r, d.options.modifiers)));
17869
+ var x = Pk(Rk([].concat(r, d.options.modifiers)));
17824
17870
  return d.orderedModifiers = x.filter(function(y) {
17825
17871
  return y.enabled;
17826
17872
  }), h(), p.update();
@@ -17835,7 +17881,7 @@ function Rk(t) {
17835
17881
  var b = d.elements, w = b.reference, x = b.popper;
17836
17882
  if (Ql(w, x)) {
17837
17883
  d.rects = {
17838
- reference: Dk(w, _r(x), d.options.strategy === "fixed"),
17884
+ reference: Nk(w, _r(x), d.options.strategy === "fixed"),
17839
17885
  popper: ra(x)
17840
17886
  }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function($) {
17841
17887
  return d.modifiersData[$.name] = Object.assign({}, $.data);
@@ -17858,7 +17904,7 @@ function Rk(t) {
17858
17904
  },
17859
17905
  // Async and optimistically optimized update – it will not be executed if
17860
17906
  // not necessary (debounced to run at most once-per-tick)
17861
- update: Pk(function() {
17907
+ update: Ik(function() {
17862
17908
  return new Promise(function(g) {
17863
17909
  p.forceUpdate(), g(d);
17864
17910
  });
@@ -17895,15 +17941,15 @@ function Rk(t) {
17895
17941
  return p;
17896
17942
  };
17897
17943
  }
17898
- var Lk = [ok, xk, nk, df, vk, mk, Ck, Zv, yk], Fk = /* @__PURE__ */ Rk({
17899
- defaultModifiers: Lk
17900
- }), Bk = "tippy-box", bf = "tippy-content", zk = "tippy-backdrop", wf = "tippy-arrow", vf = "tippy-svg-arrow", Zt = {
17944
+ var Fk = [ik, Sk, rk, df, kk, gk, Ak, Qv, bk], Bk = /* @__PURE__ */ Lk({
17945
+ defaultModifiers: Fk
17946
+ }), zk = "tippy-box", bf = "tippy-content", _k = "tippy-backdrop", wf = "tippy-arrow", vf = "tippy-svg-arrow", Zt = {
17901
17947
  passive: !0,
17902
17948
  capture: !0
17903
17949
  }, kf = function() {
17904
17950
  return document.body;
17905
17951
  };
17906
- function _k(t, e) {
17952
+ function $k(t, e) {
17907
17953
  return {}.hasOwnProperty.call(t, e);
17908
17954
  }
17909
17955
  function Mi(t, e, n) {
@@ -17930,13 +17976,13 @@ function ec(t, e) {
17930
17976
  }, e);
17931
17977
  };
17932
17978
  }
17933
- function $k(t, e) {
17979
+ function Vk(t, e) {
17934
17980
  var n = Object.assign({}, t);
17935
17981
  return e.forEach(function(r) {
17936
17982
  delete n[r];
17937
17983
  }), n;
17938
17984
  }
17939
- function Vk(t) {
17985
+ function Hk(t) {
17940
17986
  return t.split(/\s+/).filter(Boolean);
17941
17987
  }
17942
17988
  function An(t) {
@@ -17945,12 +17991,12 @@ function An(t) {
17945
17991
  function tc(t, e) {
17946
17992
  t.indexOf(e) === -1 && t.push(e);
17947
17993
  }
17948
- function Hk(t) {
17994
+ function jk(t) {
17949
17995
  return t.filter(function(e, n) {
17950
17996
  return t.indexOf(e) === n;
17951
17997
  });
17952
17998
  }
17953
- function jk(t) {
17999
+ function Wk(t) {
17954
18000
  return t.split("-")[0];
17955
18001
  }
17956
18002
  function _o(t) {
@@ -17969,17 +18015,17 @@ function Tr(t) {
17969
18015
  return la(t, e);
17970
18016
  });
17971
18017
  }
17972
- function Wk(t) {
18018
+ function Uk(t) {
17973
18019
  return la(t, "NodeList");
17974
18020
  }
17975
- function Uk(t) {
18021
+ function qk(t) {
17976
18022
  return la(t, "MouseEvent");
17977
18023
  }
17978
- function qk(t) {
18024
+ function Kk(t) {
17979
18025
  return !!(t && t._tippy && t._tippy.reference === t);
17980
18026
  }
17981
- function Kk(t) {
17982
- return Tr(t) ? [t] : Wk(t) ? _o(t) : Array.isArray(t) ? t : _o(document.querySelectorAll(t));
18027
+ function Xk(t) {
18028
+ return Tr(t) ? [t] : Uk(t) ? _o(t) : Array.isArray(t) ? t : _o(document.querySelectorAll(t));
17983
18029
  }
17984
18030
  function Ci(t, e) {
17985
18031
  t.forEach(function(n) {
@@ -17991,14 +18037,14 @@ function rc(t, e) {
17991
18037
  n && n.setAttribute("data-state", e);
17992
18038
  });
17993
18039
  }
17994
- function Xk(t) {
18040
+ function Jk(t) {
17995
18041
  var e, n = An(t), r = n[0];
17996
18042
  return r != null && (e = r.ownerDocument) != null && e.body ? r.ownerDocument : document;
17997
18043
  }
17998
- function Jk(t, e) {
18044
+ function Yk(t, e) {
17999
18045
  var n = e.clientX, r = e.clientY;
18000
18046
  return t.every(function(o) {
18001
- var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c = jk(s.placement), d = s.modifiersData.offset;
18047
+ var i = o.popperRect, s = o.popperState, a = o.props, l = a.interactiveBorder, c = Wk(s.placement), d = s.modifiersData.offset;
18002
18048
  if (!d)
18003
18049
  return !0;
18004
18050
  var u = c === "bottom" ? d.top.y : 0, f = c === "top" ? d.bottom.y : 0, p = c === "right" ? d.left.x : 0, h = c === "left" ? d.right.x : 0, m = i.top - r + u > l, g = r - i.bottom - f > l, b = i.left - n + p > l, w = n - i.right - h > l;
@@ -18023,24 +18069,24 @@ function oc(t, e) {
18023
18069
  var rt = {
18024
18070
  isTouch: !1
18025
18071
  }, ic = 0;
18026
- function Yk() {
18072
+ function Gk() {
18027
18073
  rt.isTouch || (rt.isTouch = !0, window.performance && document.addEventListener("mousemove", Sf));
18028
18074
  }
18029
18075
  function Sf() {
18030
18076
  var t = performance.now();
18031
18077
  t - ic < 20 && (rt.isTouch = !1, document.removeEventListener("mousemove", Sf)), ic = t;
18032
18078
  }
18033
- function Gk() {
18079
+ function Zk() {
18034
18080
  var t = document.activeElement;
18035
- if (qk(t)) {
18081
+ if (Kk(t)) {
18036
18082
  var e = t._tippy;
18037
18083
  t.blur && !e.state.isVisible && t.blur();
18038
18084
  }
18039
18085
  }
18040
- function Zk() {
18041
- document.addEventListener("touchstart", Yk, Zt), window.addEventListener("blur", Gk);
18086
+ function Qk() {
18087
+ document.addEventListener("touchstart", Gk, Zt), window.addEventListener("blur", Zk);
18042
18088
  }
18043
- var Qk = typeof window < "u" && typeof document < "u", ex = Qk ? (
18089
+ var ex = typeof window < "u" && typeof document < "u", tx = ex ? (
18044
18090
  // @ts-ignore
18045
18091
  !!window.msCrypto
18046
18092
  ) : !1;
@@ -18052,7 +18098,7 @@ function sc(t) {
18052
18098
  var e = /[ \t]{2,}/g, n = /^[ \t]*/gm;
18053
18099
  return t.replace(e, " ").replace(n, "").trim();
18054
18100
  }
18055
- function tx(t) {
18101
+ function nx(t) {
18056
18102
  return sc(`
18057
18103
  %ctippy.js
18058
18104
 
@@ -18063,7 +18109,7 @@ function tx(t) {
18063
18109
  }
18064
18110
  function Mf(t) {
18065
18111
  return [
18066
- tx(t),
18112
+ nx(t),
18067
18113
  // title
18068
18114
  "color: #00C584; font-size: 1.3em; font-weight: bold;",
18069
18115
  // message
@@ -18073,8 +18119,8 @@ function Mf(t) {
18073
18119
  ];
18074
18120
  }
18075
18121
  var Dr;
18076
- oe.env.NODE_ENV !== "production" && nx();
18077
- function nx() {
18122
+ oe.env.NODE_ENV !== "production" && rx();
18123
+ function rx() {
18078
18124
  Dr = /* @__PURE__ */ new Set();
18079
18125
  }
18080
18126
  function gt(t, e) {
@@ -18089,7 +18135,7 @@ function Ms(t, e) {
18089
18135
  Dr.add(e), (n = console).error.apply(n, Mf(e));
18090
18136
  }
18091
18137
  }
18092
- function rx(t) {
18138
+ function ox(t) {
18093
18139
  var e = !t, n = Object.prototype.toString.call(t) === "[object Object]" && !t.addEventListener;
18094
18140
  Ms(e, ["tippy() was passed", "`" + String(t) + "`", "as its targets (first) argument. Valid types are: String, Element,", "Element[], or NodeList."].join(" ")), Ms(n, ["tippy() was passed a plain object which is not supported as an argument", "for virtual positioning. Use props.getReferenceClientRect instead."].join(" "));
18095
18141
  }
@@ -18098,7 +18144,7 @@ var Cf = {
18098
18144
  followCursor: !1,
18099
18145
  inlinePositioning: !1,
18100
18146
  sticky: !1
18101
- }, ox = {
18147
+ }, ix = {
18102
18148
  allowHTML: !1,
18103
18149
  animation: "fade",
18104
18150
  arrow: !0,
@@ -18156,7 +18202,7 @@ var Cf = {
18156
18202
  touch: !0,
18157
18203
  trigger: "mouseenter focus",
18158
18204
  triggerTarget: null
18159
- }, Cf, ox), ix = Object.keys(Re), sx = function(e) {
18205
+ }, Cf, ix), sx = Object.keys(Re), ax = function(e) {
18160
18206
  oe.env.NODE_ENV !== "production" && Of(e, []);
18161
18207
  var n = Object.keys(e);
18162
18208
  n.forEach(function(r) {
@@ -18174,10 +18220,10 @@ function Af(t) {
18174
18220
  }, {});
18175
18221
  return Object.assign({}, t, n);
18176
18222
  }
18177
- function ax(t, e) {
18223
+ function lx(t, e) {
18178
18224
  var n = e ? Object.keys(Af(Object.assign({}, Re, {
18179
18225
  plugins: e
18180
- }))) : ix, r = n.reduce(function(o, i) {
18226
+ }))) : sx, r = n.reduce(function(o, i) {
18181
18227
  var s = (t.getAttribute("data-tippy-" + i) || "").trim();
18182
18228
  if (!s)
18183
18229
  return o;
@@ -18196,7 +18242,7 @@ function ax(t, e) {
18196
18242
  function ac(t, e) {
18197
18243
  var n = Object.assign({}, e, {
18198
18244
  content: xf(e.content, [t])
18199
- }, e.ignoreAttributes ? {} : ax(t, e.plugins));
18245
+ }, e.ignoreAttributes ? {} : lx(t, e.plugins));
18200
18246
  return n.aria = Object.assign({}, Re.aria, n.aria), n.aria = {
18201
18247
  expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
18202
18248
  content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
@@ -18206,7 +18252,7 @@ function Of(t, e) {
18206
18252
  t === void 0 && (t = {}), e === void 0 && (e = []);
18207
18253
  var n = Object.keys(t);
18208
18254
  n.forEach(function(r) {
18209
- var o = $k(Re, Object.keys(Cf)), i = !_k(o, r);
18255
+ var o = Vk(Re, Object.keys(Cf)), i = !$k(o, r);
18210
18256
  i && (i = e.filter(function(s) {
18211
18257
  return s.name === r;
18212
18258
  }).length === 0), gt(i, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
@@ -18215,11 +18261,11 @@ function Of(t, e) {
18215
18261
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
18216
18262
  });
18217
18263
  }
18218
- var lx = function() {
18264
+ var cx = function() {
18219
18265
  return "innerHTML";
18220
18266
  };
18221
18267
  function Cs(t, e) {
18222
- t[lx()] = e;
18268
+ t[cx()] = e;
18223
18269
  }
18224
18270
  function lc(t) {
18225
18271
  var e = ur();
@@ -18239,13 +18285,13 @@ function As(t) {
18239
18285
  return r.classList.contains(wf) || r.classList.contains(vf);
18240
18286
  }),
18241
18287
  backdrop: n.find(function(r) {
18242
- return r.classList.contains(zk);
18288
+ return r.classList.contains(_k);
18243
18289
  })
18244
18290
  };
18245
18291
  }
18246
18292
  function Tf(t) {
18247
18293
  var e = ur(), n = ur();
18248
- n.className = Bk, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
18294
+ n.className = zk, n.setAttribute("data-state", "hidden"), n.setAttribute("tabindex", "-1");
18249
18295
  var r = ur();
18250
18296
  r.className = bf, r.setAttribute("data-state", "hidden"), cc(r, t.props), e.appendChild(n), n.appendChild(r), o(t.props, t.props);
18251
18297
  function o(i, s) {
@@ -18258,9 +18304,9 @@ function Tf(t) {
18258
18304
  };
18259
18305
  }
18260
18306
  Tf.$$tippy = !0;
18261
- var cx = 1, lo = [], Oi = [];
18262
- function dx(t, e) {
18263
- var n = ac(t, Object.assign({}, Re, Af(nc(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = ec(Hr, n.interactiveDebounce), m, g = cx++, b = null, w = Hk(n.plugins), x = {
18307
+ var dx = 1, lo = [], Oi = [];
18308
+ function ux(t, e) {
18309
+ var n = ac(t, Object.assign({}, Re, Af(nc(e)))), r, o, i, s = !1, a = !1, l = !1, c = !1, d, u, f, p = [], h = ec(Hr, n.interactiveDebounce), m, g = dx++, b = null, w = jk(n.plugins), x = {
18264
18310
  // Is the instance currently enabled?
18265
18311
  isEnabled: !0,
18266
18312
  // Is the tippy currently showing and not transitioning out?
@@ -18320,7 +18366,7 @@ function dx(t, e) {
18320
18366
  }
18321
18367
  function ie() {
18322
18368
  var v = H().parentNode;
18323
- return v ? Xk(v) : document;
18369
+ return v ? Jk(v) : document;
18324
18370
  }
18325
18371
  function le() {
18326
18372
  return As(k);
@@ -18432,14 +18478,14 @@ function dx(t, e) {
18432
18478
  passive: !0
18433
18479
  }), Ct("touchend", jr, {
18434
18480
  passive: !0
18435
- })), Vk(y.props.trigger).forEach(function(v) {
18481
+ })), Hk(y.props.trigger).forEach(function(v) {
18436
18482
  if (v !== "manual")
18437
18483
  switch (Ct(v, qn), v) {
18438
18484
  case "mouseenter":
18439
18485
  Ct("mouseleave", jr);
18440
18486
  break;
18441
18487
  case "focus":
18442
- Ct(ex ? "focusout" : "blur", Kn);
18488
+ Ct(tx ? "focusout" : "blur", Kn);
18443
18489
  break;
18444
18490
  case "focusin":
18445
18491
  Ct("focusout", Kn);
@@ -18457,7 +18503,7 @@ function dx(t, e) {
18457
18503
  var O, F = !1;
18458
18504
  if (!(!y.state.isEnabled || Xn(v) || a)) {
18459
18505
  var K = ((O = d) == null ? void 0 : O.type) === "focus";
18460
- d = v, m = v.currentTarget, he(), !y.state.isVisible && Uk(v) && lo.forEach(function(U) {
18506
+ d = v, m = v.currentTarget, he(), !y.state.isVisible && qk(v) && lo.forEach(function(U) {
18461
18507
  return U(v);
18462
18508
  }), v.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? F = !0 : Jn(v), v.type === "click" && (s = !F), F && !K && qt(v);
18463
18509
  }
@@ -18473,7 +18519,7 @@ function dx(t, e) {
18473
18519
  props: n
18474
18520
  } : null;
18475
18521
  }).filter(Boolean);
18476
- Jk(K, v) && (Te(), qt(v));
18522
+ Yk(K, v) && (Te(), qt(v));
18477
18523
  }
18478
18524
  }
18479
18525
  function jr(v) {
@@ -18543,7 +18589,7 @@ function dx(t, e) {
18543
18589
  element: ze,
18544
18590
  padding: 3
18545
18591
  }
18546
- }), Kt.push.apply(Kt, O?.modifiers || []), y.popperInstance = Fk(mn, k, Object.assign({}, O, {
18592
+ }), Kt.push.apply(Kt, O?.modifiers || []), y.popperInstance = Bk(mn, k, Object.assign({}, O, {
18547
18593
  placement: F,
18548
18594
  onFirstUpdate: f,
18549
18595
  modifiers: Kt
@@ -18663,10 +18709,10 @@ function dx(t, e) {
18663
18709
  function $r(t, e) {
18664
18710
  e === void 0 && (e = {});
18665
18711
  var n = Re.plugins.concat(e.plugins || []);
18666
- oe.env.NODE_ENV !== "production" && (rx(t), Of(e, n)), Zk();
18712
+ oe.env.NODE_ENV !== "production" && (ox(t), Of(e, n)), Qk();
18667
18713
  var r = Object.assign({}, e, {
18668
18714
  plugins: n
18669
- }), o = Kk(t);
18715
+ }), o = Xk(t);
18670
18716
  if (oe.env.NODE_ENV !== "production") {
18671
18717
  var i = Tr(r.content), s = o.length > 1;
18672
18718
  gt(i && s, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
@@ -18677,13 +18723,13 @@ function $r(t, e) {
18677
18723
  `, "2) content: () => element.cloneNode(true)"].join(" "));
18678
18724
  }
18679
18725
  var a = o.reduce(function(l, c) {
18680
- var d = c && dx(c, r);
18726
+ var d = c && ux(c, r);
18681
18727
  return d && l.push(d), l;
18682
18728
  }, []);
18683
18729
  return Tr(t) ? a[0] : a;
18684
18730
  }
18685
18731
  $r.defaultProps = Re;
18686
- $r.setDefaultProps = sx;
18732
+ $r.setDefaultProps = ax;
18687
18733
  $r.currentInput = rt;
18688
18734
  Object.assign({}, df, {
18689
18735
  effect: function(e) {
@@ -18705,12 +18751,12 @@ Object.assign({}, df, {
18705
18751
  $r.setDefaultProps({
18706
18752
  render: Tf
18707
18753
  });
18708
- const ux = (t, e) => {
18754
+ const fx = (t, e) => {
18709
18755
  const n = t.__vccOpts || t;
18710
18756
  for (const [r, o] of e)
18711
18757
  n[r] = o;
18712
18758
  return n;
18713
- }, fx = ["onClick", "onMouseenter"], px = { key: 0 }, hx = { key: 0 }, mx = { key: 1 }, gx = { key: 1 }, yx = {
18759
+ }, px = ["onClick", "onMouseenter"], hx = { key: 0 }, mx = { key: 0 }, gx = { key: 1 }, yx = { key: 1 }, bx = {
18714
18760
  __name: "Mentions",
18715
18761
  props: {
18716
18762
  users: {
@@ -18762,16 +18808,16 @@ const ux = (t, e) => {
18762
18808
  key: d.email,
18763
18809
  class: op(["user-row", { selected: r.value === u }])
18764
18810
  }, [
18765
- d.name ? (Jt(), Xt("div", px, [
18766
- d.name ? (Jt(), Xt("span", hx, ii(d.name), 1)) : ga("", !0),
18767
- d.name && d.email ? (Jt(), Xt("span", mx, " (" + ii(d.email) + ")", 1)) : ga("", !0)
18768
- ])) : (Jt(), Xt("div", gx, [
18811
+ d.name ? (Jt(), Xt("div", hx, [
18812
+ d.name ? (Jt(), Xt("span", mx, ii(d.name), 1)) : ga("", !0),
18813
+ d.name && d.email ? (Jt(), Xt("span", gx, " (" + ii(d.email) + ")", 1)) : ga("", !0)
18814
+ ])) : (Jt(), Xt("div", yx, [
18769
18815
  ip("span", null, ii(d.email), 1)
18770
18816
  ]))
18771
- ], 42, fx))), 128))
18817
+ ], 42, px))), 128))
18772
18818
  ], 544));
18773
18819
  }
18774
- }, bx = /* @__PURE__ */ ux(yx, [["__scopeId", "data-v-0a2a8b4e"]]), dc = new X("popoverPlugin"), wx = Z.create({
18820
+ }, wx = /* @__PURE__ */ fx(bx, [["__scopeId", "data-v-0a2a8b4e"]]), dc = new X("popoverPlugin"), vx = Z.create({
18775
18821
  name: "popoverPlugin",
18776
18822
  addPmPlugins() {
18777
18823
  return [new J({
@@ -18784,7 +18830,7 @@ const ux = (t, e) => {
18784
18830
  }
18785
18831
  },
18786
18832
  view: (e) => {
18787
- const n = new vx(e, this.editor);
18833
+ const n = new kx(e, this.editor);
18788
18834
  return {
18789
18835
  update: (r, o) => {
18790
18836
  dc.getState(r.state).shouldUpdate && n.update(r, o);
@@ -18797,7 +18843,7 @@ const ux = (t, e) => {
18797
18843
  })];
18798
18844
  }
18799
18845
  });
18800
- class vx {
18846
+ class kx {
18801
18847
  constructor(e, n) {
18802
18848
  L(this, "handleKeyDown", (e) => {
18803
18849
  const n = e.key === "ArrowDown" || e.key === "ArrowUp";
@@ -18834,7 +18880,7 @@ class vx {
18834
18880
  if (this.isShowMentions) {
18835
18881
  const { from: i } = this.state.selection, s = this.getMentionText(i);
18836
18882
  o = {
18837
- component: bx,
18883
+ component: wx,
18838
18884
  props: {
18839
18885
  users: this.editor.users,
18840
18886
  mention: s,
@@ -18876,7 +18922,7 @@ class vx {
18876
18922
  this.tippyInstance.destroy(), this.popover.remove();
18877
18923
  }
18878
18924
  }
18879
- const kx = !1, xx = Z.create({
18925
+ const xx = !1, Sx = Z.create({
18880
18926
  name: "pagination",
18881
18927
  addStorage() {
18882
18928
  return {
@@ -18910,7 +18956,7 @@ const kx = !1, xx = Z.create({
18910
18956
  return {
18911
18957
  isReadyToInit: !1,
18912
18958
  decorations: P.empty,
18913
- isDebugging: kx
18959
+ isDebugging: xx
18914
18960
  };
18915
18961
  },
18916
18962
  apply(s, a, l, c) {
@@ -18945,7 +18991,7 @@ const kx = !1, xx = Z.create({
18945
18991
  let a = P.empty;
18946
18992
  return {
18947
18993
  update: (l) => {
18948
- !n || e || (e = !0, r = !0, Sx(t, l, a), e = !1, n = !1);
18994
+ !n || e || (e = !0, r = !0, Mx(t, l, a), e = !1, n = !1);
18949
18995
  }
18950
18996
  };
18951
18997
  },
@@ -18972,8 +19018,8 @@ const kx = !1, xx = Z.create({
18972
19018
  if (i?.titlePg && l && t === 1) return l;
18973
19019
  let d = i.default;
18974
19020
  return t === 1 && (d = c), o && (t === 1 && (d = l), t % 2 === 0 ? d = s || c : d = a || c), d;
18975
- }, Sx = (t, e, n) => {
18976
- const r = t.storage.pagination.sectionData, o = Mx(e, t, r);
19021
+ }, Mx = (t, e, n) => {
19022
+ const r = t.storage.pagination.sectionData, o = Cx(e, t, r);
18977
19023
  if (!n.eq(o)) {
18978
19024
  const i = e.state.tr.setMeta(
18979
19025
  $t,
@@ -18982,7 +19028,7 @@ const kx = !1, xx = Z.create({
18982
19028
  e.dispatch(i);
18983
19029
  }
18984
19030
  t.emit("paginationUpdate");
18985
- }, Mx = (t, e, n) => {
19031
+ }, Cx = (t, e, n) => {
18986
19032
  if (!e.converter) return P.empty;
18987
19033
  const r = e.converter.pageStyles?.pageSize, { width: o, height: i } = r;
18988
19034
  if (!o || !i) return P.empty;
@@ -19001,10 +19047,10 @@ const kx = !1, xx = Z.create({
19001
19047
  }
19002
19048
  });
19003
19049
  e.initDefaultStyles(c);
19004
- const p = Cx(l.doc, f, e, n);
19050
+ const p = Ax(l.doc, f, e, n);
19005
19051
  return f.destroy(), document.body.removeChild(c), P.create(t.state.doc, p);
19006
19052
  };
19007
- function Cx(t, e, n, r) {
19053
+ function Ax(t, e, n, r) {
19008
19054
  const o = [], { pageSize: i, pageMargins: s } = n.converter.pageStyles, a = i.height * 96;
19009
19055
  n.options.scale;
19010
19056
  let l = 1, c = a, d = null, u = null;
@@ -19038,7 +19084,7 @@ function Cx(t, e, n, r) {
19038
19084
  top: pe,
19039
19085
  bottom: he,
19040
19086
  pos: Te
19041
- } = Ax(e, H, c), Be = Yt(l, "footerIds", n, _);
19087
+ } = Ox(e, H, c), Be = Yt(l, "footerIds", n, _);
19042
19088
  l++;
19043
19089
  const dt = Yt(l, "headerIds", n);
19044
19090
  u = co(s, i, r, dt), d = Ti(s, i, r, Be, l - 1);
@@ -19101,7 +19147,7 @@ function uo({ editor: t, header: e, footer: n, footerBottom: r = null, isFirstHe
19101
19147
  }
19102
19148
  return e && (d.appendChild(e.section), l += e.headerHeight), c.style.height = l + "px", c.style.minHeight = l + "px", c.style.maxHeight = l + "px", d.style.height = l + "px", c.style.width = "100px", c.style.marginLeft = a.left * -96 + "px", r !== null && (c.style.position = "absolute", c.style.bottom = r + "px"), c;
19103
19149
  }
19104
- function Ax(t, e, n) {
19150
+ function Ox(t, e, n) {
19105
19151
  let r = e - 1;
19106
19152
  const o = { top: 0, bottom: 0, pos: 0 };
19107
19153
  for (; r > 0; ) {
@@ -19125,7 +19171,7 @@ class Df {
19125
19171
  Create a query object.
19126
19172
  */
19127
19173
  constructor(e) {
19128
- this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && !(this.regexp && !Px(this.search)), this.wholeWord = !!e.wholeWord, this.filter = e.filter || null, this.impl = this.valid ? this.regexp ? new Dx(this) : new Tx(this) : Ox;
19174
+ this.search = e.search, this.caseSensitive = !!e.caseSensitive, this.literal = !!e.literal, this.regexp = !!e.regexp, this.replace = e.replace || "", this.valid = !!this.search && !(this.regexp && !Ix(this.search)), this.wholeWord = !!e.wholeWord, this.filter = e.filter || null, this.impl = this.valid ? this.regexp ? new Nx(this) : new Dx(this) : Tx;
19129
19175
  }
19130
19176
  /**
19131
19177
  Compare this query to another query.
@@ -19185,18 +19231,18 @@ class Df {
19185
19231
  positions through your transaction's current mapping.
19186
19232
  */
19187
19233
  getReplacements(e, n) {
19188
- let o = e.doc.resolve(n.from).marksAcross(e.doc.resolve(n.to)), i = [], s = T.empty, a = n.from, { match: l } = n, c = l ? Nx(l) : [[0, n.to - n.from]], d = Ex(this.unquote(this.replace)), u;
19234
+ let o = e.doc.resolve(n.from).marksAcross(e.doc.resolve(n.to)), i = [], s = D.empty, a = n.from, { match: l } = n, c = l ? Ex(l) : [[0, n.to - n.from]], d = Px(this.unquote(this.replace)), u;
19189
19235
  for (let f of d)
19190
19236
  if (typeof f == "string")
19191
19237
  s = s.addToEnd(e.schema.text(f, o));
19192
19238
  else if (u = c[f.group]) {
19193
19239
  let p = n.matchStart + u[0], h = n.matchStart + u[1];
19194
- f.copy ? s = s.append(e.doc.slice(p, h).content) : ((s != T.empty || p > a) && (i.push({ from: a, to: p, insert: new W(s, 0, 0) }), s = T.empty), a = h);
19240
+ f.copy ? s = s.append(e.doc.slice(p, h).content) : ((s != D.empty || p > a) && (i.push({ from: a, to: p, insert: new W(s, 0, 0) }), s = D.empty), a = h);
19195
19241
  }
19196
- return (s != T.empty || a < n.to) && i.push({ from: a, to: n.to, insert: new W(s, 0, 0) }), i;
19242
+ return (s != D.empty || a < n.to) && i.push({ from: a, to: n.to, insert: new W(s, 0, 0) }), i;
19197
19243
  }
19198
19244
  }
19199
- const Ox = new class {
19245
+ const Tx = new class {
19200
19246
  findNext() {
19201
19247
  return null;
19202
19248
  }
@@ -19204,7 +19250,7 @@ const Ox = new class {
19204
19250
  return null;
19205
19251
  }
19206
19252
  }();
19207
- class Tx {
19253
+ class Dx {
19208
19254
  constructor(e) {
19209
19255
  this.query = e;
19210
19256
  let n = e.unquote(e.search);
@@ -19226,7 +19272,7 @@ class Tx {
19226
19272
  }
19227
19273
  }
19228
19274
  const Nf = "g" + (/x/.unicode == null ? "" : "u") + (/x/.hasIndices == null ? "" : "d");
19229
- class Dx {
19275
+ class Nx {
19230
19276
  constructor(e) {
19231
19277
  this.query = e, this.regexp = new RegExp(e.search, Nf + (e.caseSensitive ? "" : "i"));
19232
19278
  }
@@ -19252,7 +19298,7 @@ class Dx {
19252
19298
  });
19253
19299
  }
19254
19300
  }
19255
- function Nx(t) {
19301
+ function Ex(t) {
19256
19302
  if (t.indices)
19257
19303
  return t.indices;
19258
19304
  let e = [[0, t[0].length]];
@@ -19262,7 +19308,7 @@ function Nx(t) {
19262
19308
  }
19263
19309
  return e;
19264
19310
  }
19265
- function Ex(t) {
19311
+ function Px(t) {
19266
19312
  let e = [], n = -1;
19267
19313
  function r(o) {
19268
19314
  let i = e.length - 1;
@@ -19280,7 +19326,7 @@ function Ex(t) {
19280
19326
  }
19281
19327
  return e;
19282
19328
  }
19283
- function Px(t) {
19329
+ function Ix(t) {
19284
19330
  try {
19285
19331
  return new RegExp(t, Nf), !0;
19286
19332
  } catch {
@@ -19346,7 +19392,7 @@ function Ni(t, e, n) {
19346
19392
  return P.create(t.doc, r);
19347
19393
  }
19348
19394
  const fr = new X("search");
19349
- function Ix(t = {}) {
19395
+ function Rx(t = {}) {
19350
19396
  return new J({
19351
19397
  key: fr,
19352
19398
  state: {
@@ -19378,10 +19424,10 @@ function mc(t) {
19378
19424
  let e = fr.getState(t);
19379
19425
  return e ? e.deco : P.empty;
19380
19426
  }
19381
- function Rx(t, e, n = null) {
19427
+ function Lx(t, e, n = null) {
19382
19428
  return t.setMeta(fr, { query: e, range: n });
19383
19429
  }
19384
- const Lx = Z.create({
19430
+ const Fx = Z.create({
19385
19431
  addStorage() {
19386
19432
  return {
19387
19433
  searchResults: []
@@ -19404,7 +19450,7 @@ const Lx = Z.create({
19404
19450
  }
19405
19451
  }
19406
19452
  });
19407
- return [Ix(), n];
19453
+ return [Rx(), n];
19408
19454
  },
19409
19455
  addCommands() {
19410
19456
  return {
@@ -19429,7 +19475,7 @@ const Lx = Z.create({
19429
19475
  caseSensitive: i,
19430
19476
  regexp: s,
19431
19477
  wholeWord: a
19432
- }), c = Rx(e.tr, l);
19478
+ }), c = Lx(e.tr, l);
19433
19479
  r(c);
19434
19480
  const d = e.apply(c), u = mc(d), p = (u ? u.find() : []).map((h) => ({
19435
19481
  from: h.from,
@@ -19449,7 +19495,7 @@ const Lx = Z.create({
19449
19495
  }
19450
19496
  };
19451
19497
  }
19452
- }), Fx = () => [
19498
+ }), Bx = () => [
19453
19499
  Zu,
19454
19500
  vu,
19455
19501
  lu,
@@ -19471,8 +19517,8 @@ const Lx = Z.create({
19471
19517
  fu,
19472
19518
  Gu,
19473
19519
  ef,
19474
- Ev,
19475
- wx,
19520
+ Pv,
19521
+ vx,
19476
19522
  Yu,
19477
19523
  tf,
19478
19524
  hu,
@@ -19487,7 +19533,7 @@ const Lx = Z.create({
19487
19533
  af,
19488
19534
  yu,
19489
19535
  Ju
19490
- ], Bx = () => [
19536
+ ], zx = () => [
19491
19537
  Zu,
19492
19538
  vu,
19493
19539
  lu,
@@ -19529,12 +19575,12 @@ const Lx = Z.create({
19529
19575
  Yu,
19530
19576
  r0,
19531
19577
  l0,
19532
- Nv,
19578
+ Ev,
19533
19579
  of,
19534
19580
  sf,
19535
19581
  af,
19536
19582
  U0,
19537
- xx,
19583
+ Sx,
19538
19584
  tf,
19539
19585
  R0,
19540
19586
  yu,
@@ -19546,32 +19592,33 @@ const Lx = Z.create({
19546
19592
  Sv,
19547
19593
  Mv,
19548
19594
  Cv,
19549
- Lx
19595
+ Fx,
19596
+ Av
19550
19597
  ];
19551
19598
  export {
19552
- D as A,
19599
+ T as A,
19553
19600
  ge as C,
19554
19601
  ns as E,
19555
19602
  Bo as I,
19556
19603
  Oe as M,
19557
19604
  q as N,
19558
- Ev as P,
19605
+ Pv as P,
19559
19606
  ce as T,
19560
- ux as _,
19561
- qx as a,
19607
+ fx as _,
19608
+ Kx as a,
19562
19609
  F0 as b,
19563
19610
  He as c,
19564
19611
  ap as d,
19565
- Bx as e,
19566
- Jx as f,
19612
+ zx as e,
19613
+ Yx as f,
19567
19614
  di as g,
19568
- Fx as h,
19615
+ Bx as h,
19569
19616
  Jc as i,
19570
19617
  Z as j,
19571
19618
  Rs as k,
19572
- Xx as l,
19573
- Yx as m,
19619
+ Jx as l,
19620
+ Gx as m,
19574
19621
  Vo as n,
19575
- Wx as r,
19576
- jx as u
19622
+ Ux as r,
19623
+ Wx as u
19577
19624
  };