@zealsolutions/zeal-ui 1.0.0-alpha.356 → 1.0.0-alpha.358

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.
@@ -455,7 +455,7 @@ function Ki(n, e) {
455
455
  }
456
456
  return !0;
457
457
  }
458
- let Z = class _s {
458
+ let ee = class _s {
459
459
  /**
460
460
  @internal
461
461
  */
@@ -560,7 +560,7 @@ let Z = class _s {
560
560
  return t.sort((r, i) => r.type.rank - i.type.rank), t;
561
561
  }
562
562
  };
563
- Z.none = [];
563
+ ee.none = [];
564
564
  class Ji extends Error {
565
565
  }
566
566
  class M {
@@ -859,7 +859,7 @@ class _r {
859
859
  marks() {
860
860
  let e = this.parent, t = this.index();
861
861
  if (e.content.size == 0)
862
- return Z.none;
862
+ return ee.none;
863
863
  if (this.textOffset)
864
864
  return e.child(t).marks;
865
865
  let r = e.maybeChild(t - 1), i = e.maybeChild(t);
@@ -1026,7 +1026,7 @@ let yn = class Us {
1026
1026
  /**
1027
1027
  @internal
1028
1028
  */
1029
- constructor(e, t, r, i = Z.none) {
1029
+ constructor(e, t, r, i = ee.none) {
1030
1030
  this.type = e, this.attrs = t, this.marks = i, this.content = r || T.empty;
1031
1031
  }
1032
1032
  /**
@@ -1134,7 +1134,7 @@ let yn = class Us {
1134
1134
  attributes, and marks.
1135
1135
  */
1136
1136
  hasMarkup(e, t, r) {
1137
- return this.type == e && Ki(this.attrs, t || e.defaultAttrs || Bp) && Z.sameSet(this.marks, r || Z.none);
1137
+ return this.type == e && Ki(this.attrs, t || e.defaultAttrs || Bp) && ee.sameSet(this.marks, r || ee.none);
1138
1138
  }
1139
1139
  /**
1140
1140
  Create a new node with the same markup as this node, containing
@@ -1344,12 +1344,12 @@ let yn = class Us {
1344
1344
  */
1345
1345
  check() {
1346
1346
  this.type.checkContent(this.content), this.type.checkAttrs(this.attrs);
1347
- let e = Z.none;
1347
+ let e = ee.none;
1348
1348
  for (let t = 0; t < this.marks.length; t++) {
1349
1349
  let r = this.marks[t];
1350
1350
  r.type.checkAttrs(r.attrs), e = r.addToSet(e);
1351
1351
  }
1352
- if (!Z.sameSet(e, this.marks))
1352
+ if (!ee.sameSet(e, this.marks))
1353
1353
  throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map((t) => t.type.name)}`);
1354
1354
  this.content.forEach((t) => t.check());
1355
1355
  }
@@ -1892,7 +1892,7 @@ let Oa = class Kd {
1892
1892
  create(e = null, t, r) {
1893
1893
  if (this.isText)
1894
1894
  throw new Error("NodeType.create can't construct text nodes");
1895
- return new yn(this, this.computeAttrs(e), T.from(t), Z.setFrom(r));
1895
+ return new yn(this, this.computeAttrs(e), T.from(t), ee.setFrom(r));
1896
1896
  }
1897
1897
  /**
1898
1898
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
@@ -1900,7 +1900,7 @@ let Oa = class Kd {
1900
1900
  if it doesn't match.
1901
1901
  */
1902
1902
  createChecked(e = null, t, r) {
1903
- return t = T.from(t), this.checkContent(t), new yn(this, this.computeAttrs(e), t, Z.setFrom(r));
1903
+ return t = T.from(t), this.checkContent(t), new yn(this, this.computeAttrs(e), t, ee.setFrom(r));
1904
1904
  }
1905
1905
  /**
1906
1906
  Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
@@ -1918,7 +1918,7 @@ let Oa = class Kd {
1918
1918
  t = s.append(t);
1919
1919
  }
1920
1920
  let i = this.contentMatch.matchFragment(t), o = i && i.fillBefore(T.empty, !0);
1921
- return o ? new yn(this, e, t.append(o), Z.setFrom(r)) : null;
1921
+ return o ? new yn(this, e, t.append(o), ee.setFrom(r)) : null;
1922
1922
  }
1923
1923
  /**
1924
1924
  Returns true if the given fragment is valid content for this node
@@ -1974,7 +1974,7 @@ let Oa = class Kd {
1974
1974
  let t;
1975
1975
  for (let r = 0; r < e.length; r++)
1976
1976
  this.allowsMarkType(e[r].type) ? t && t.push(e[r]) : t || (t = e.slice(0, r));
1977
- return t ? t.length ? t : Z.none : e;
1977
+ return t ? t.length ? t : ee.none : e;
1978
1978
  }
1979
1979
  /**
1980
1980
  @internal
@@ -2015,7 +2015,7 @@ class Vo {
2015
2015
  constructor(e, t, r, i) {
2016
2016
  this.name = e, this.rank = t, this.schema = r, this.spec = i, this.attrs = qd(e, i.attrs), this.excluded = null;
2017
2017
  let o = _d(this.attrs);
2018
- this.instance = o ? new Z(this, o) : null;
2018
+ this.instance = o ? new ee(this, o) : null;
2019
2019
  }
2020
2020
  /**
2021
2021
  Create a mark of this type. `attrs` may be `null` or an object
@@ -2023,7 +2023,7 @@ class Vo {
2023
2023
  they have defaults, will be added.
2024
2024
  */
2025
2025
  create(e = null) {
2026
- return !e && this.instance ? this.instance : new Z(this, Wd(this.attrs, e));
2026
+ return !e && this.instance ? this.instance : new ee(this, Wd(this.attrs, e));
2027
2027
  }
2028
2028
  /**
2029
2029
  @internal
@@ -2115,7 +2115,7 @@ class Jd {
2115
2115
  */
2116
2116
  text(e, t) {
2117
2117
  let r = this.nodes.text;
2118
- return new Xi(r, r.defaultAttrs, e, Z.setFrom(t));
2118
+ return new Xi(r, r.defaultAttrs, e, ee.setFrom(t));
2119
2119
  }
2120
2120
  /**
2121
2121
  Create a mark with the given type and attributes.
@@ -2135,7 +2135,7 @@ class Jd {
2135
2135
  bound.
2136
2136
  */
2137
2137
  markFromJSON(e) {
2138
- return Z.fromJSON(this, e);
2138
+ return ee.fromJSON(this, e);
2139
2139
  }
2140
2140
  /**
2141
2141
  @internal
@@ -2196,7 +2196,7 @@ class Kt {
2196
2196
  */
2197
2197
  parse(e, t = {}) {
2198
2198
  let r = new Ra(this, t, !1);
2199
- return r.addAll(e, Z.none, t.from, t.to), r.finish();
2199
+ return r.addAll(e, ee.none, t.from, t.to), r.finish();
2200
2200
  }
2201
2201
  /**
2202
2202
  Parses the content of the given DOM node, like
@@ -2208,7 +2208,7 @@ class Kt {
2208
2208
  */
2209
2209
  parseSlice(e, t = {}) {
2210
2210
  let r = new Ra(this, t, !0);
2211
- return r.addAll(e, Z.none, t.from, t.to), M.maxOpen(r.finish());
2211
+ return r.addAll(e, ee.none, t.from, t.to), M.maxOpen(r.finish());
2212
2212
  }
2213
2213
  /**
2214
2214
  @internal
@@ -2330,7 +2330,7 @@ function Da(n, e, t) {
2330
2330
  }
2331
2331
  class ki {
2332
2332
  constructor(e, t, r, i, o, s) {
2333
- this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = s, this.content = [], this.activeMarks = Z.none, this.match = o || (s & Mr ? null : e.contentMatch);
2333
+ this.type = e, this.attrs = t, this.marks = r, this.solid = i, this.options = s, this.content = [], this.activeMarks = ee.none, this.match = o || (s & Mr ? null : e.contentMatch);
2334
2334
  }
2335
2335
  findWrapping(e) {
2336
2336
  if (!this.match) {
@@ -2365,7 +2365,7 @@ class Ra {
2365
2365
  constructor(e, t, r) {
2366
2366
  this.parser = e, this.options = t, this.isOpen = r, this.open = 0;
2367
2367
  let i = t.topNode, o, s = Da(null, t.preserveWhitespace, 0) | (r ? Mr : 0);
2368
- i ? o = new ki(i.type, i.attrs, Z.none, !0, t.topMatch || i.type.contentMatch, s) : r ? o = new ki(null, null, Z.none, !0, null, s) : o = new ki(e.schema.topNodeType, null, Z.none, !0, null, s), this.nodes = [o], this.find = t.findPositions, this.needsBlock = !1;
2368
+ i ? o = new ki(i.type, i.attrs, ee.none, !0, t.topMatch || i.type.contentMatch, s) : r ? o = new ki(null, null, ee.none, !0, null, s) : o = new ki(e.schema.topNodeType, null, ee.none, !0, null, s), this.nodes = [o], this.find = t.findPositions, this.needsBlock = !1;
2369
2369
  }
2370
2370
  get top() {
2371
2371
  return this.nodes[this.open];
@@ -2512,7 +2512,7 @@ class Ra {
2512
2512
  this.closeExtra();
2513
2513
  let i = this.top;
2514
2514
  i.match && (i.match = i.match.matchType(e.type));
2515
- let o = Z.none;
2515
+ let o = ee.none;
2516
2516
  for (let s of r.concat(e.marks))
2517
2517
  (i.type ? i.type.allowsMarkType(s.type) : La(s.type, e.type)) && (o = s.addToSet(o));
2518
2518
  return i.content.push(e.mark(o)), !0;
@@ -2532,7 +2532,7 @@ class Ra {
2532
2532
  s.match = s.match && s.match.matchType(e);
2533
2533
  let l = Da(e, o, s.options);
2534
2534
  s.options & Mr && s.content.length == 0 && (l |= Mr);
2535
- let a = Z.none;
2535
+ let a = ee.none;
2536
2536
  return r = r.filter((c) => (s.type ? s.type.allowsMarkType(c.type) : La(c.type, e)) ? (a = c.addToSet(a), !1) : !0), this.nodes.push(new ki(e, t, a, i, null, l)), this.open++, r;
2537
2537
  }
2538
2538
  // Make sure all nodes above this.open are finished and added to
@@ -4280,7 +4280,7 @@ class Rl {
4280
4280
  position `pos`.
4281
4281
  */
4282
4282
  removeNodeMark(e, t) {
4283
- if (!(t instanceof Z)) {
4283
+ if (!(t instanceof ee)) {
4284
4284
  let r = this.doc.nodeAt(e);
4285
4285
  if (!r)
4286
4286
  throw new RangeError("No node at position " + e);
@@ -4763,7 +4763,7 @@ class Sh extends Rl {
4763
4763
  this is already the case.
4764
4764
  */
4765
4765
  ensureMarks(e) {
4766
- return Z.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
4766
+ return ee.sameSet(this.storedMarks || this.selection.$from.marks(), e) || this.setStoredMarks(e), this;
4767
4767
  }
4768
4768
  /**
4769
4769
  Add a mark to the set of stored marks.
@@ -4808,7 +4808,7 @@ class Sh extends Rl {
4808
4808
  */
4809
4809
  replaceSelectionWith(e, t = !0) {
4810
4810
  let r = this.selection;
4811
- return t && (e = e.mark(this.storedMarks || (r.empty ? r.$from.marks() : r.$from.marksAcross(r.$to) || Z.none))), r.replaceWith(this, e), this;
4811
+ return t && (e = e.mark(this.storedMarks || (r.empty ? r.$from.marks() : r.$from.marksAcross(r.$to) || ee.none))), r.replaceWith(this, e), this;
4812
4812
  }
4813
4813
  /**
4814
4814
  Delete the selection.
@@ -5154,7 +5154,7 @@ function Ua(n, e, t, r, i) {
5154
5154
  for (; ; ) {
5155
5155
  if (n == t && e == r)
5156
5156
  return !0;
5157
- if (e == (i < 0 ? 0 : Je(n))) {
5157
+ if (e == (i < 0 ? 0 : Ge(n))) {
5158
5158
  let o = n.parentNode;
5159
5159
  if (!o || o.nodeType != 1 || ii(n) || Mh.test(n.nodeName) || n.contentEditable == "false")
5160
5160
  return !1;
@@ -5162,12 +5162,12 @@ function Ua(n, e, t, r, i) {
5162
5162
  } else if (n.nodeType == 1) {
5163
5163
  if (n = n.childNodes[e + (i < 0 ? -1 : 0)], n.contentEditable == "false")
5164
5164
  return !1;
5165
- e = i < 0 ? Je(n) : 0;
5165
+ e = i < 0 ? Ge(n) : 0;
5166
5166
  } else
5167
5167
  return !1;
5168
5168
  }
5169
5169
  }
5170
- function Je(n) {
5170
+ function Ge(n) {
5171
5171
  return n.nodeType == 3 ? n.nodeValue.length : n.childNodes.length;
5172
5172
  }
5173
5173
  function Eh(n, e) {
@@ -5177,7 +5177,7 @@ function Eh(n, e) {
5177
5177
  if (n.nodeType == 1 && e > 0) {
5178
5178
  if (n.contentEditable == "false")
5179
5179
  return null;
5180
- n = n.childNodes[e - 1], e = Je(n);
5180
+ n = n.childNodes[e - 1], e = Ge(n);
5181
5181
  } else if (n.parentNode && !ii(n))
5182
5182
  e = Ce(n), n = n.parentNode;
5183
5183
  else
@@ -5199,13 +5199,13 @@ function Oh(n, e) {
5199
5199
  }
5200
5200
  }
5201
5201
  function Nh(n, e, t) {
5202
- for (let r = e == 0, i = e == Je(n); r || i; ) {
5202
+ for (let r = e == 0, i = e == Ge(n); r || i; ) {
5203
5203
  if (n == t)
5204
5204
  return !0;
5205
5205
  let o = Ce(n);
5206
5206
  if (n = n.parentNode, !n)
5207
5207
  return !1;
5208
- r = r && o == 0, i = i && o == Je(n);
5208
+ r = r && o == 0, i = i && o == Ge(n);
5209
5209
  }
5210
5210
  }
5211
5211
  function ii(n) {
@@ -5232,18 +5232,18 @@ function Rh(n, e, t) {
5232
5232
  try {
5233
5233
  let r = n.caretPositionFromPoint(e, t);
5234
5234
  if (r)
5235
- return { node: r.offsetNode, offset: Math.min(Je(r.offsetNode), r.offset) };
5235
+ return { node: r.offsetNode, offset: Math.min(Ge(r.offsetNode), r.offset) };
5236
5236
  } catch {
5237
5237
  }
5238
5238
  if (n.caretRangeFromPoint) {
5239
5239
  let r = n.caretRangeFromPoint(e, t);
5240
5240
  if (r)
5241
- return { node: r.startContainer, offset: Math.min(Je(r.startContainer), r.startOffset) };
5241
+ return { node: r.startContainer, offset: Math.min(Ge(r.startContainer), r.startOffset) };
5242
5242
  }
5243
5243
  }
5244
5244
  const mt = typeof navigator < "u" ? navigator : null, qa = typeof document < "u" ? document : null, Zt = mt && mt.userAgent || "", Gs = /Edge\/(\d+)/.exec(Zt), pu = /MSIE \d/.exec(Zt), Ys = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zt), ze = !!(pu || Ys || Gs), Jt = pu ? document.documentMode : Ys ? +Ys[1] : Gs ? +Gs[1] : 0, it = !ze && /gecko\/(\d+)/i.test(Zt);
5245
5245
  it && +(/Firefox\/(\d+)/.exec(Zt) || [0, 0])[1];
5246
- const Xs = !ze && /Chrome\/(\d+)/.exec(Zt), Ae = !!Xs, hu = Xs ? +Xs[1] : 0, De = !ze && !!mt && /Apple Computer/.test(mt.vendor), Qn = De && (/Mobile\/\w+/.test(Zt) || !!mt && mt.maxTouchPoints > 2), Ke = Qn || (mt ? /Mac/.test(mt.platform) : !1), Ih = mt ? /Win/.test(mt.platform) : !1, tt = /Android \d/.test(Zt), oi = !!qa && "webkitFontSmoothing" in qa.documentElement.style, Lh = oi ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5246
+ const Xs = !ze && /Chrome\/(\d+)/.exec(Zt), Ae = !!Xs, hu = Xs ? +Xs[1] : 0, De = !ze && !!mt && /Apple Computer/.test(mt.vendor), Qn = De && (/Mobile\/\w+/.test(Zt) || !!mt && mt.maxTouchPoints > 2), Je = Qn || (mt ? /Mac/.test(mt.platform) : !1), Ih = mt ? /Win/.test(mt.platform) : !1, tt = /Android \d/.test(Zt), oi = !!qa && "webkitFontSmoothing" in qa.documentElement.style, Lh = oi ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
5247
5247
  function Ph(n) {
5248
5248
  let e = n.defaultView && n.defaultView.visualViewport;
5249
5249
  return e ? {
@@ -5475,24 +5475,24 @@ function vu(n, e, t) {
5475
5475
  return t < 0 && !i ? (c++, d = -1) : t >= 0 && i == r.nodeValue.length ? (a--, d = 1) : t < 0 ? a-- : c++, yr(Bt(Et(r, a, c), d), d < 0);
5476
5476
  }
5477
5477
  if (!n.state.doc.resolve(e - (o || 0)).parent.inlineContent) {
5478
- if (o == null && i && (t < 0 || i == Je(r))) {
5478
+ if (o == null && i && (t < 0 || i == Ge(r))) {
5479
5479
  let a = r.childNodes[i - 1];
5480
5480
  if (a.nodeType == 1)
5481
5481
  return xs(a.getBoundingClientRect(), !1);
5482
5482
  }
5483
- if (o == null && i < Je(r)) {
5483
+ if (o == null && i < Ge(r)) {
5484
5484
  let a = r.childNodes[i];
5485
5485
  if (a.nodeType == 1)
5486
5486
  return xs(a.getBoundingClientRect(), !0);
5487
5487
  }
5488
5488
  return xs(r.getBoundingClientRect(), t >= 0);
5489
5489
  }
5490
- if (o == null && i && (t < 0 || i == Je(r))) {
5491
- let a = r.childNodes[i - 1], c = a.nodeType == 3 ? Et(a, Je(a) - (s ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
5490
+ if (o == null && i && (t < 0 || i == Ge(r))) {
5491
+ let a = r.childNodes[i - 1], c = a.nodeType == 3 ? Et(a, Ge(a) - (s ? 0 : 1)) : a.nodeType == 1 && (a.nodeName != "BR" || !a.nextSibling) ? a : null;
5492
5492
  if (c)
5493
5493
  return yr(Bt(c, 1), !1);
5494
5494
  }
5495
- if (o == null && i < Je(r)) {
5495
+ if (o == null && i < Ge(r)) {
5496
5496
  let a = r.childNodes[i];
5497
5497
  for (; a.pmViewDesc && a.pmViewDesc.ignoreForCoords; )
5498
5498
  a = a.nextSibling;
@@ -5576,10 +5576,10 @@ let Ga = null, Ya = null, Xa = !1;
5576
5576
  function Gh(n, e, t) {
5577
5577
  return Ga == e && Ya == t ? Xa : (Ga = e, Ya = t, Xa = t == "up" || t == "down" ? qh(n, e, t) : Jh(n, e, t));
5578
5578
  }
5579
- const Ge = 0, Qa = 1, fn = 2, gt = 3;
5579
+ const Ye = 0, Qa = 1, fn = 2, gt = 3;
5580
5580
  class si {
5581
5581
  constructor(e, t, r, i) {
5582
- this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Ge, r.pmViewDesc = this;
5582
+ this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = Ye, r.pmViewDesc = this;
5583
5583
  }
5584
5584
  // Used to check whether a given description corresponds to a
5585
5585
  // widget/mark/node.
@@ -5930,7 +5930,7 @@ class wu extends si {
5930
5930
  super(e, [], s, null), this.widget = t, this.widget = t, o = this;
5931
5931
  }
5932
5932
  matchesWidget(e) {
5933
- return this.dirty == Ge && e.type.eq(this.widget.type);
5933
+ return this.dirty == Ye && e.type.eq(this.widget.type);
5934
5934
  }
5935
5935
  parseRule() {
5936
5936
  return { ignore: !0 };
@@ -5984,11 +5984,11 @@ class An extends si {
5984
5984
  return this.dirty != gt && this.mark.eq(e);
5985
5985
  }
5986
5986
  markDirty(e, t) {
5987
- if (super.markDirty(e, t), this.dirty != Ge) {
5987
+ if (super.markDirty(e, t), this.dirty != Ye) {
5988
5988
  let r = this.parent;
5989
5989
  for (; !r.node; )
5990
5990
  r = r.parent;
5991
- r.dirty < this.dirty && (r.dirty = this.dirty), this.dirty = Ge;
5991
+ r.dirty < this.dirty && (r.dirty = this.dirty), this.dirty = Ye;
5992
5992
  }
5993
5993
  }
5994
5994
  slice(e, t, r) {
@@ -6054,7 +6054,7 @@ class Gt extends si {
6054
6054
  return e;
6055
6055
  }
6056
6056
  matchesNode(e, t, r) {
6057
- return this.dirty == Ge && e.eq(this.node) && eo(t, this.outerDeco) && r.eq(this.innerDeco);
6057
+ return this.dirty == Ye && e.eq(this.node) && eo(t, this.outerDeco) && r.eq(this.innerDeco);
6058
6058
  }
6059
6059
  get size() {
6060
6060
  return this.node.nodeSize;
@@ -6069,7 +6069,7 @@ class Gt extends si {
6069
6069
  updateChildren(e, t) {
6070
6070
  let r = this.node.inlineContent, i = t, o = e.composing ? this.localCompositionInfo(e, t) : null, s = o && o.pos > -1 ? o : null, l = o && o.pos < 0, a = new Zh(this, s && s.node, e);
6071
6071
  nm(this.node, this.innerDeco, (c, d, u) => {
6072
- c.spec.marks ? a.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !u && a.syncToMarks(d == this.node.childCount ? Z.none : this.node.child(d).marks, r, e), a.placeWidget(c, e, i);
6072
+ c.spec.marks ? a.syncToMarks(c.spec.marks, r, e) : c.type.side >= 0 && !u && a.syncToMarks(d == this.node.childCount ? ee.none : this.node.child(d).marks, r, e), a.placeWidget(c, e, i);
6073
6073
  }, (c, d, u, f) => {
6074
6074
  a.syncToMarks(c.marks, r, e);
6075
6075
  let p;
@@ -6109,7 +6109,7 @@ class Gt extends si {
6109
6109
  return this.dirty == gt || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, i), !0);
6110
6110
  }
6111
6111
  updateInner(e, t, r, i) {
6112
- this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ge;
6112
+ this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Ye;
6113
6113
  }
6114
6114
  updateOuterDeco(e) {
6115
6115
  if (eo(e, this.outerDeco))
@@ -6145,7 +6145,7 @@ class qo extends Gt {
6145
6145
  return { skip: e || !0 };
6146
6146
  }
6147
6147
  update(e, t, r, i) {
6148
- return this.dirty == gt || this.dirty != Ge && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ge || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ge, !0);
6148
+ return this.dirty == gt || this.dirty != Ye && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != Ye || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Ye, !0);
6149
6149
  }
6150
6150
  inParent() {
6151
6151
  let e = this.parent.contentDOM;
@@ -6182,7 +6182,7 @@ class ku extends si {
6182
6182
  return { ignore: !0 };
6183
6183
  }
6184
6184
  matchesHack(e) {
6185
- return this.dirty == Ge && this.dom.nodeName == e;
6185
+ return this.dirty == Ye && this.dom.nodeName == e;
6186
6186
  }
6187
6187
  get domAtom() {
6188
6188
  return !0;
@@ -6341,7 +6341,7 @@ class Zh {
6341
6341
  for (; i < s && (i == o - 1 ? this.top : this.stack[i + 1 << 1]).matchesMark(e[i]) && e[i].type.spec.spanning !== !1; )
6342
6342
  i++;
6343
6343
  for (; i < o; )
6344
- this.destroyRest(), this.top.dirty = Ge, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
6344
+ this.destroyRest(), this.top.dirty = Ye, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
6345
6345
  for (; o < e.length; ) {
6346
6346
  this.stack.push(this.top, this.index + 1);
6347
6347
  let l = -1;
@@ -6411,7 +6411,7 @@ class Zh {
6411
6411
  if (!f && a.update(e, t, r, i))
6412
6412
  return this.destroyBetween(this.index, l), a.dom != d && (this.changed = !0), this.index++, !0;
6413
6413
  if (!f && (u = this.recreateWrapper(a, e, t, r, i, s)))
6414
- return this.destroyBetween(this.index, l), this.top.children[this.index] = u, u.contentDOM && (u.dirty = fn, u.updateChildren(i, s + 1), u.dirty = Ge), this.changed = !0, this.index++, !0;
6414
+ return this.destroyBetween(this.index, l), this.top.children[this.index] = u, u.contentDOM && (u.dirty = fn, u.updateChildren(i, s + 1), u.dirty = Ye), this.changed = !0, this.index++, !0;
6415
6415
  break;
6416
6416
  }
6417
6417
  }
@@ -6729,7 +6729,7 @@ function sc(n, e, t) {
6729
6729
  if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
6730
6730
  let i = el(n.state, e);
6731
6731
  return i && i instanceof L ? zt(n, i) : !1;
6732
- } else if (!(Ke && t.indexOf("m") > -1)) {
6732
+ } else if (!(Je && t.indexOf("m") > -1)) {
6733
6733
  let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, s;
6734
6734
  if (!o || o.isText)
6735
6735
  return !1;
@@ -6891,7 +6891,7 @@ function lc(n, e) {
6891
6891
  }
6892
6892
  function ac(n, e, t) {
6893
6893
  let r = n.state.selection;
6894
- if (r instanceof B && !r.empty || t.indexOf("s") > -1 || Ke && t.indexOf("m") > -1)
6894
+ if (r instanceof B && !r.empty || t.indexOf("s") > -1 || Je && t.indexOf("m") > -1)
6895
6895
  return !1;
6896
6896
  let { $from: i, $to: o } = r;
6897
6897
  if (!i.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -6941,24 +6941,24 @@ function pm(n) {
6941
6941
  }
6942
6942
  function hm(n, e) {
6943
6943
  let t = e.keyCode, r = pm(e);
6944
- if (t == 8 || Ke && t == 72 && r == "c")
6944
+ if (t == 8 || Je && t == 72 && r == "c")
6945
6945
  return cc(n, -1) || zn(n, -1);
6946
- if (t == 46 && !e.shiftKey || Ke && t == 68 && r == "c")
6946
+ if (t == 46 && !e.shiftKey || Je && t == 68 && r == "c")
6947
6947
  return cc(n, 1) || zn(n, 1);
6948
6948
  if (t == 13 || t == 27)
6949
6949
  return !0;
6950
- if (t == 37 || Ke && t == 66 && r == "c") {
6950
+ if (t == 37 || Je && t == 66 && r == "c") {
6951
6951
  let i = t == 37 ? lc(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
6952
6952
  return sc(n, i, r) || zn(n, i);
6953
- } else if (t == 39 || Ke && t == 70 && r == "c") {
6953
+ } else if (t == 39 || Je && t == 70 && r == "c") {
6954
6954
  let i = t == 39 ? lc(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
6955
6955
  return sc(n, i, r) || zn(n, i);
6956
6956
  } else {
6957
- if (t == 38 || Ke && t == 80 && r == "c")
6957
+ if (t == 38 || Je && t == 80 && r == "c")
6958
6958
  return ac(n, -1, r) || zn(n, -1);
6959
- if (t == 40 || Ke && t == 78 && r == "c")
6959
+ if (t == 40 || Je && t == 78 && r == "c")
6960
6960
  return fm(n) || ac(n, 1, r) || zn(n, 1);
6961
- if (r == (Ke ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
6961
+ if (r == (Je ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
6962
6962
  return !0;
6963
6963
  }
6964
6964
  return !1;
@@ -7216,7 +7216,7 @@ Ie.keyup = (n, e) => {
7216
7216
  };
7217
7217
  Ie.keypress = (n, e) => {
7218
7218
  let t = e;
7219
- if ($u(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Ke && t.metaKey)
7219
+ if ($u(n, t) || !t.charCode || t.ctrlKey && !t.altKey || Je && t.metaKey)
7220
7220
  return;
7221
7221
  if (n.someProp("handleKeyPress", (i) => i(n, t))) {
7222
7222
  t.preventDefault();
@@ -7301,7 +7301,7 @@ function Im(n, e, t) {
7301
7301
  function Hl(n) {
7302
7302
  return no(n);
7303
7303
  }
7304
- const zu = Ke ? "metaKey" : "ctrlKey";
7304
+ const zu = Je ? "metaKey" : "ctrlKey";
7305
7305
  Re.mousedown = (n, e) => {
7306
7306
  let t = e;
7307
7307
  n.input.shiftKey = t.shiftKey;
@@ -7492,7 +7492,7 @@ class ju {
7492
7492
  this.slice = e, this.move = t, this.node = r;
7493
7493
  }
7494
7494
  }
7495
- const _u = Ke ? "altKey" : "ctrlKey";
7495
+ const _u = Je ? "altKey" : "ctrlKey";
7496
7496
  Re.dragstart = (n, e) => {
7497
7497
  let t = e, r = n.input.mouseDown;
7498
7498
  if (r && r.done(), !t.dataTransfer)
@@ -8333,8 +8333,8 @@ function Zm(n, e, t, r, i) {
8333
8333
  if (q && !n.state.selection.eq(q)) {
8334
8334
  if (Ae && tt && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (Y) => Y(n, cn(13, "Enter"))))
8335
8335
  return;
8336
- let Q = n.state.tr.setSelection(q);
8337
- D == "pointer" ? Q.setMeta("pointer", !0) : D == "key" && Q.scrollIntoView(), o && Q.setMeta("composition", o), n.dispatch(Q);
8336
+ let Z = n.state.tr.setSelection(q);
8337
+ D == "pointer" ? Z.setMeta("pointer", !0) : D == "key" && Z.scrollIntoView(), o && Z.setMeta("composition", o), n.dispatch(Z);
8338
8338
  }
8339
8339
  return;
8340
8340
  }
@@ -9569,7 +9569,7 @@ function ve(n, e) {
9569
9569
  }
9570
9570
  return n;
9571
9571
  }
9572
- function ee(...n) {
9572
+ function Q(...n) {
9573
9573
  return n.filter((e) => !!e).reduce((e, t) => {
9574
9574
  const r = { ...e };
9575
9575
  return Object.entries(t).forEach(([i, o]) => {
@@ -9597,7 +9597,7 @@ function ee(...n) {
9597
9597
  function il(n, e) {
9598
9598
  return e.filter((t) => t.type === n.type.name).filter((t) => t.attribute.rendered).map((t) => t.attribute.renderHTML ? t.attribute.renderHTML(n.attrs) || {} : {
9599
9599
  [t.name]: n.attrs[t.name]
9600
- }).reduce((t, r) => ee(t, r), {});
9600
+ }).reduce((t, r) => Q(t, r), {});
9601
9601
  }
9602
9602
  function ef(n) {
9603
9603
  return typeof n == "function";
@@ -9875,7 +9875,7 @@ function Qo(n, e) {
9875
9875
  Ti(e[r]) && Ti(n[r]) ? t[r] = Qo(n[r], e[r]) : t[r] = e[r];
9876
9876
  }), t;
9877
9877
  }
9878
- class Xe {
9878
+ class _e {
9879
9879
  constructor(e = {}) {
9880
9880
  this.type = "mark", this.name = "mark", this.parent = null, this.child = null, this.config = {
9881
9881
  name: this.name,
@@ -9891,7 +9891,7 @@ class Xe {
9891
9891
  })) || {};
9892
9892
  }
9893
9893
  static create(e = {}) {
9894
- return new Xe(e);
9894
+ return new _e(e);
9895
9895
  }
9896
9896
  configure(e = {}) {
9897
9897
  const t = this.extend({
@@ -9901,7 +9901,7 @@ class Xe {
9901
9901
  return t.name = this.name, t.parent = this.parent, t;
9902
9902
  }
9903
9903
  extend(e = {}) {
9904
- const t = new Xe(e);
9904
+ const t = new _e(e);
9905
9905
  return t.parent = this, this.child = t, t.name = e.name ? e.name : t.parent.name, e.defaultOptions && Object.keys(e.defaultOptions).length > 0 && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`), t.options = j(N(t, "addOptions", {
9906
9906
  name: t.name
9907
9907
  })), t.storage = j(N(t, "addStorage", {
@@ -10119,7 +10119,7 @@ class Un {
10119
10119
  type: Ms(s.name, this.schema)
10120
10120
  }, a = [], c = N(s, "addKeyboardShortcuts", l);
10121
10121
  let d = {};
10122
- if (s.type === "mark" && N(s, "exitable", l) && (d.ArrowRight = () => Xe.handleExit({ editor: e, mark: s })), c) {
10122
+ if (s.type === "mark" && N(s, "exitable", l) && (d.ArrowRight = () => _e.handleExit({ editor: e, mark: s })), c) {
10123
10123
  const m = Object.fromEntries(Object.entries(c()).map(([g, b]) => [g, () => b({ editor: e })]));
10124
10124
  d = { ...d, ...m };
10125
10125
  }
@@ -12156,7 +12156,7 @@ var $e = "top", Qe = "bottom", Ze = "right", He = "left", Xl = "auto", li = [$e,
12156
12156
  function yt(n) {
12157
12157
  return n ? (n.nodeName || "").toLowerCase() : null;
12158
12158
  }
12159
- function _e(n) {
12159
+ function We(n) {
12160
12160
  if (n == null)
12161
12161
  return window;
12162
12162
  if (n.toString() !== "[object Window]") {
@@ -12166,24 +12166,24 @@ function _e(n) {
12166
12166
  return n;
12167
12167
  }
12168
12168
  function En(n) {
12169
- var e = _e(n).Element;
12169
+ var e = We(n).Element;
12170
12170
  return n instanceof e || n instanceof Element;
12171
12171
  }
12172
- function Ye(n) {
12173
- var e = _e(n).HTMLElement;
12172
+ function Xe(n) {
12173
+ var e = We(n).HTMLElement;
12174
12174
  return n instanceof e || n instanceof HTMLElement;
12175
12175
  }
12176
12176
  function Ql(n) {
12177
12177
  if (typeof ShadowRoot > "u")
12178
12178
  return !1;
12179
- var e = _e(n).ShadowRoot;
12179
+ var e = We(n).ShadowRoot;
12180
12180
  return n instanceof e || n instanceof ShadowRoot;
12181
12181
  }
12182
12182
  function U0(n) {
12183
12183
  var e = n.state;
12184
12184
  Object.keys(e.elements).forEach(function(t) {
12185
12185
  var r = e.styles[t] || {}, i = e.attributes[t] || {}, o = e.elements[t];
12186
- !Ye(o) || !yt(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(s) {
12186
+ !Xe(o) || !yt(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(s) {
12187
12187
  var l = i[s];
12188
12188
  l === !1 ? o.removeAttribute(s) : o.setAttribute(s, l === !0 ? "" : l);
12189
12189
  }));
@@ -12207,7 +12207,7 @@ function q0(n) {
12207
12207
  var i = e.elements[r], o = e.attributes[r] || {}, s = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), l = s.reduce(function(a, c) {
12208
12208
  return a[c] = "", a;
12209
12209
  }, {});
12210
- !Ye(i) || !yt(i) || (Object.assign(i.style, l), Object.keys(o).forEach(function(a) {
12210
+ !Xe(i) || !yt(i) || (Object.assign(i.style, l), Object.keys(o).forEach(function(a) {
12211
12211
  i.removeAttribute(a);
12212
12212
  }));
12213
12213
  });
@@ -12237,8 +12237,8 @@ function hf() {
12237
12237
  function rr(n, e, t) {
12238
12238
  e === void 0 && (e = !1), t === void 0 && (t = !1);
12239
12239
  var r = n.getBoundingClientRect(), i = 1, o = 1;
12240
- e && Ye(n) && (i = n.offsetWidth > 0 && nr(r.width) / n.offsetWidth || 1, o = n.offsetHeight > 0 && nr(r.height) / n.offsetHeight || 1);
12241
- var s = En(n) ? _e(n) : window, l = s.visualViewport, a = !hf() && t, c = (r.left + (a && l ? l.offsetLeft : 0)) / i, d = (r.top + (a && l ? l.offsetTop : 0)) / o, u = r.width / i, f = r.height / o;
12240
+ e && Xe(n) && (i = n.offsetWidth > 0 && nr(r.width) / n.offsetWidth || 1, o = n.offsetHeight > 0 && nr(r.height) / n.offsetHeight || 1);
12241
+ var s = En(n) ? We(n) : window, l = s.visualViewport, a = !hf() && t, c = (r.left + (a && l ? l.offsetLeft : 0)) / i, d = (r.top + (a && l ? l.offsetTop : 0)) / o, u = r.width / i, f = r.height / o;
12242
12242
  return {
12243
12243
  width: u,
12244
12244
  height: f,
@@ -12274,7 +12274,7 @@ function mf(n, e) {
12274
12274
  return !1;
12275
12275
  }
12276
12276
  function Rt(n) {
12277
- return _e(n).getComputedStyle(n);
12277
+ return We(n).getComputedStyle(n);
12278
12278
  }
12279
12279
  function K0(n) {
12280
12280
  return ["table", "td", "th"].indexOf(yt(n)) >= 0;
@@ -12298,18 +12298,18 @@ function ns(n) {
12298
12298
  );
12299
12299
  }
12300
12300
  function Rc(n) {
12301
- return !Ye(n) || // https://github.com/popperjs/popper-core/issues/837
12301
+ return !Xe(n) || // https://github.com/popperjs/popper-core/issues/837
12302
12302
  Rt(n).position === "fixed" ? null : n.offsetParent;
12303
12303
  }
12304
12304
  function J0(n) {
12305
12305
  var e = /firefox/i.test(cl()), t = /Trident/i.test(cl());
12306
- if (t && Ye(n)) {
12306
+ if (t && Xe(n)) {
12307
12307
  var r = Rt(n);
12308
12308
  if (r.position === "fixed")
12309
12309
  return null;
12310
12310
  }
12311
12311
  var i = ns(n);
12312
- for (Ql(i) && (i = i.host); Ye(i) && ["html", "body"].indexOf(yt(i)) < 0; ) {
12312
+ for (Ql(i) && (i = i.host); Xe(i) && ["html", "body"].indexOf(yt(i)) < 0; ) {
12313
12313
  var o = Rt(i);
12314
12314
  if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
12315
12315
  return i;
@@ -12318,7 +12318,7 @@ function J0(n) {
12318
12318
  return null;
12319
12319
  }
12320
12320
  function ai(n) {
12321
- for (var e = _e(n), t = Rc(n); t && K0(t) && Rt(t).position === "static"; )
12321
+ for (var e = We(n), t = Rc(n); t && K0(t) && Rt(t).position === "static"; )
12322
12322
  t = Rc(t);
12323
12323
  return t && (yt(t) === "html" || yt(t) === "body" && Rt(t).position === "static") ? e : t || J0(n) || e;
12324
12324
  }
@@ -12401,7 +12401,7 @@ function Ic(n) {
12401
12401
  var b = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), w = He, y = $e, S = window;
12402
12402
  if (c) {
12403
12403
  var k = ai(t), O = "clientHeight", H = "clientWidth";
12404
- if (k === _e(t) && (k = tn(t), Rt(k).position !== "static" && l === "absolute" && (O = "scrollHeight", H = "scrollWidth")), k = k, i === $e || (i === He || i === Ze) && o === Xr) {
12404
+ if (k === We(t) && (k = tn(t), Rt(k).position !== "static" && l === "absolute" && (O = "scrollHeight", H = "scrollWidth")), k = k, i === $e || (i === He || i === Ze) && o === Xr) {
12405
12405
  y = Qe;
12406
12406
  var D = u && k === S && S.visualViewport ? S.visualViewport.height : (
12407
12407
  // $FlowFixMe[prop-missing]
@@ -12418,20 +12418,20 @@ function Ic(n) {
12418
12418
  p -= q - r.width, p *= a ? 1 : -1;
12419
12419
  }
12420
12420
  }
12421
- var Q = Object.assign({
12421
+ var Z = Object.assign({
12422
12422
  position: l
12423
12423
  }, c && eb), Y = d === !0 ? tb({
12424
12424
  x: p,
12425
12425
  y: m
12426
- }, _e(t)) : {
12426
+ }, We(t)) : {
12427
12427
  x: p,
12428
12428
  y: m
12429
12429
  };
12430
12430
  if (p = Y.x, m = Y.y, a) {
12431
12431
  var te;
12432
- return Object.assign({}, Q, (te = {}, te[y] = v ? "0" : "", te[w] = b ? "0" : "", te.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", te));
12432
+ return Object.assign({}, Z, (te = {}, te[y] = v ? "0" : "", te[w] = b ? "0" : "", te.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + m + "px)" : "translate3d(" + p + "px, " + m + "px, 0)", te));
12433
12433
  }
12434
- return Object.assign({}, Q, (e = {}, e[y] = v ? m + "px" : "", e[w] = b ? p + "px" : "", e.transform = "", e));
12434
+ return Object.assign({}, Z, (e = {}, e[y] = v ? m + "px" : "", e[w] = b ? p + "px" : "", e.transform = "", e));
12435
12435
  }
12436
12436
  function nb(n) {
12437
12437
  var e = n.state, t = n.options, r = t.gpuAcceleration, i = r === void 0 ? !0 : r, o = t.adaptive, s = o === void 0 ? !0 : o, l = t.roundOffsets, a = l === void 0 ? !0 : l, c = {
@@ -12467,7 +12467,7 @@ var Mi = {
12467
12467
  passive: !0
12468
12468
  };
12469
12469
  function ib(n) {
12470
- var e = n.state, t = n.instance, r = n.options, i = r.scroll, o = i === void 0 ? !0 : i, s = r.resize, l = s === void 0 ? !0 : s, a = _e(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
12470
+ var e = n.state, t = n.instance, r = n.options, i = r.scroll, o = i === void 0 ? !0 : i, s = r.resize, l = s === void 0 ? !0 : s, a = We(e.elements.popper), c = [].concat(e.scrollParents.reference, e.scrollParents.popper);
12471
12471
  return o && c.forEach(function(d) {
12472
12472
  d.addEventListener("scroll", t.update, Mi);
12473
12473
  }), l && a.addEventListener("resize", t.update, Mi), function() {
@@ -12506,7 +12506,7 @@ function Lc(n) {
12506
12506
  });
12507
12507
  }
12508
12508
  function ta(n) {
12509
- var e = _e(n), t = e.pageXOffset, r = e.pageYOffset;
12509
+ var e = We(n), t = e.pageXOffset, r = e.pageYOffset;
12510
12510
  return {
12511
12511
  scrollLeft: t,
12512
12512
  scrollTop: r
@@ -12516,7 +12516,7 @@ function na(n) {
12516
12516
  return rr(tn(n)).left + ta(n).scrollLeft;
12517
12517
  }
12518
12518
  function ab(n, e) {
12519
- var t = _e(n), r = tn(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
12519
+ var t = We(n), r = tn(n), i = t.visualViewport, o = r.clientWidth, s = r.clientHeight, l = 0, a = 0;
12520
12520
  if (i) {
12521
12521
  o = i.width, s = i.height;
12522
12522
  var c = hf();
@@ -12543,12 +12543,12 @@ function ra(n) {
12543
12543
  return /auto|scroll|overlay|hidden/.test(t + i + r);
12544
12544
  }
12545
12545
  function vf(n) {
12546
- return ["html", "body", "#document"].indexOf(yt(n)) >= 0 ? n.ownerDocument.body : Ye(n) && ra(n) ? n : vf(ns(n));
12546
+ return ["html", "body", "#document"].indexOf(yt(n)) >= 0 ? n.ownerDocument.body : Xe(n) && ra(n) ? n : vf(ns(n));
12547
12547
  }
12548
12548
  function Dr(n, e) {
12549
12549
  var t;
12550
12550
  e === void 0 && (e = []);
12551
- var r = vf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = _e(r), s = i ? [o].concat(o.visualViewport || [], ra(r) ? r : []) : r, l = e.concat(s);
12551
+ var r = vf(n), i = r === ((t = n.ownerDocument) == null ? void 0 : t.body), o = We(r), s = i ? [o].concat(o.visualViewport || [], ra(r) ? r : []) : r, l = e.concat(s);
12552
12552
  return i ? l : (
12553
12553
  // $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
12554
12554
  l.concat(Dr(ns(s)))
@@ -12570,7 +12570,7 @@ function Pc(n, e, t) {
12570
12570
  return e === uf ? dl(ab(n, t)) : En(e) ? db(e, t) : dl(cb(tn(n)));
12571
12571
  }
12572
12572
  function ub(n) {
12573
- var e = Dr(ns(n)), t = ["absolute", "fixed"].indexOf(Rt(n).position) >= 0, r = t && Ye(n) ? ai(n) : n;
12573
+ var e = Dr(ns(n)), t = ["absolute", "fixed"].indexOf(Rt(n).position) >= 0, r = t && Xe(n) ? ai(n) : n;
12574
12574
  return En(r) ? e.filter(function(i) {
12575
12575
  return En(i) && mf(i, r) && yt(i) !== "body";
12576
12576
  }) : [];
@@ -12641,9 +12641,9 @@ function Qr(n, e) {
12641
12641
  bottom: D.bottom - S.bottom + b.bottom,
12642
12642
  left: S.left - D.left + b.left,
12643
12643
  right: D.right - S.right + b.right
12644
- }, Q = n.modifiersData.offset;
12645
- if (f === br && Q) {
12646
- var Y = Q[i];
12644
+ }, Z = n.modifiersData.offset;
12645
+ if (f === br && Z) {
12646
+ var Y = Z[i];
12647
12647
  Object.keys(q).forEach(function(te) {
12648
12648
  var xe = [Ze, Qe].indexOf(te) >= 0 ? 1 : -1, me = [$e, Qe].indexOf(te) >= 0 ? "y" : "x";
12649
12649
  q[te] += Y[me] * xe;
@@ -12690,8 +12690,8 @@ function mb(n) {
12690
12690
  allowedAutoPlacements: m
12691
12691
  }) : et);
12692
12692
  }, []), S = e.rects.reference, k = e.rects.popper, O = /* @__PURE__ */ new Map(), H = !0, D = y[0], q = 0; q < y.length; q++) {
12693
- var Q = y[q], Y = ht(Q), te = ir(Q) === tr, xe = [$e, Qe].indexOf(Y) >= 0, me = xe ? "width" : "height", oe = Qr(e, {
12694
- placement: Q,
12693
+ var Z = y[q], Y = ht(Z), te = ir(Z) === tr, xe = [$e, Qe].indexOf(Y) >= 0, me = xe ? "width" : "height", oe = Qr(e, {
12694
+ placement: Z,
12695
12695
  boundary: d,
12696
12696
  rootBoundary: u,
12697
12697
  altBoundary: f,
@@ -12702,10 +12702,10 @@ function mb(n) {
12702
12702
  if (o && st.push(oe[Y] <= 0), l && st.push(oe[ae] <= 0, oe[we] <= 0), st.every(function(vt) {
12703
12703
  return vt;
12704
12704
  })) {
12705
- D = Q, H = !1;
12705
+ D = Z, H = !1;
12706
12706
  break;
12707
12707
  }
12708
- O.set(Q, st);
12708
+ O.set(Z, st);
12709
12709
  }
12710
12710
  if (H)
12711
12711
  for (var lt = h ? 3 : 1, nn = function(et) {
@@ -12833,7 +12833,7 @@ function Tb(n) {
12833
12833
  } : Object.assign({
12834
12834
  mainAxis: 0,
12835
12835
  altAxis: 0
12836
- }, D), Q = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Y = {
12836
+ }, D), Z = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Y = {
12837
12837
  x: 0,
12838
12838
  y: 0
12839
12839
  };
@@ -12842,11 +12842,11 @@ function Tb(n) {
12842
12842
  var te, xe = y === "y" ? $e : He, me = y === "y" ? Qe : Ze, oe = y === "y" ? "height" : "width", ae = k[y], we = ae + g[xe], st = ae - g[me], lt = p ? -H[oe] / 2 : 0, nn = v === tr ? O[oe] : H[oe], at = v === tr ? -H[oe] : -O[oe], rn = e.elements.arrow, vt = p && rn ? Zl(rn) : {
12843
12843
  width: 0,
12844
12844
  height: 0
12845
- }, et = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gf(), xt = et[xe], Dn = et[me], wt = Nr(0, O[oe], vt[oe]), Rn = w ? O[oe] / 2 - lt - wt - xt - q.mainAxis : nn - wt - xt - q.mainAxis, It = w ? -O[oe] / 2 + lt + wt + Dn + q.mainAxis : at + wt + Dn + q.mainAxis, In = e.elements.arrow && ai(e.elements.arrow), ci = In ? y === "y" ? In.clientTop || 0 : In.clientLeft || 0 : 0, fr = (te = Q == null ? void 0 : Q[y]) != null ? te : 0, di = ae + Rn - fr - ci, ui = ae + It - fr, pr = Nr(p ? ao(we, di) : we, ae, p ? xn(st, ui) : st);
12845
+ }, et = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gf(), xt = et[xe], Dn = et[me], wt = Nr(0, O[oe], vt[oe]), Rn = w ? O[oe] / 2 - lt - wt - xt - q.mainAxis : nn - wt - xt - q.mainAxis, It = w ? -O[oe] / 2 + lt + wt + Dn + q.mainAxis : at + wt + Dn + q.mainAxis, In = e.elements.arrow && ai(e.elements.arrow), ci = In ? y === "y" ? In.clientTop || 0 : In.clientLeft || 0 : 0, fr = (te = Z == null ? void 0 : Z[y]) != null ? te : 0, di = ae + Rn - fr - ci, ui = ae + It - fr, pr = Nr(p ? ao(we, di) : we, ae, p ? xn(st, ui) : st);
12846
12846
  k[y] = pr, Y[y] = pr - ae;
12847
12847
  }
12848
12848
  if (l) {
12849
- var hr, fi = y === "x" ? $e : He, pi = y === "x" ? Qe : Ze, kt = k[S], Lt = S === "y" ? "height" : "width", mr = kt + g[fi], on = kt - g[pi], gr = [$e, He].indexOf(b) !== -1, hi = (hr = Q == null ? void 0 : Q[S]) != null ? hr : 0, mi = gr ? mr : kt - O[Lt] - H[Lt] - hi + q.altAxis, gi = gr ? kt + O[Lt] + H[Lt] - hi - q.altAxis : on, yi = p && gr ? G0(mi, kt, gi) : Nr(p ? mi : mr, kt, p ? gi : on);
12849
+ var hr, fi = y === "x" ? $e : He, pi = y === "x" ? Qe : Ze, kt = k[S], Lt = S === "y" ? "height" : "width", mr = kt + g[fi], on = kt - g[pi], gr = [$e, He].indexOf(b) !== -1, hi = (hr = Z == null ? void 0 : Z[S]) != null ? hr : 0, mi = gr ? mr : kt - O[Lt] - H[Lt] - hi + q.altAxis, gi = gr ? kt + O[Lt] + H[Lt] - hi - q.altAxis : on, yi = p && gr ? G0(mi, kt, gi) : Nr(p ? mi : mr, kt, p ? gi : on);
12850
12850
  k[S] = yi, Y[S] = yi - kt;
12851
12851
  }
12852
12852
  e.modifiersData[r] = Y;
@@ -12866,7 +12866,7 @@ function Mb(n) {
12866
12866
  };
12867
12867
  }
12868
12868
  function Eb(n) {
12869
- return n === _e(n) || !Ye(n) ? ta(n) : Mb(n);
12869
+ return n === We(n) || !Xe(n) ? ta(n) : Mb(n);
12870
12870
  }
12871
12871
  function Ob(n) {
12872
12872
  var e = n.getBoundingClientRect(), t = nr(e.width) / n.offsetWidth || 1, r = nr(e.height) / n.offsetHeight || 1;
@@ -12874,7 +12874,7 @@ function Ob(n) {
12874
12874
  }
12875
12875
  function Nb(n, e, t) {
12876
12876
  t === void 0 && (t = !1);
12877
- var r = Ye(e), i = Ye(e) && Ob(e), o = tn(e), s = rr(n, i, t), l = {
12877
+ var r = Xe(e), i = Xe(e) && Ob(e), o = tn(e), s = rr(n, i, t), l = {
12878
12878
  scrollLeft: 0,
12879
12879
  scrollTop: 0
12880
12880
  }, a = {
@@ -12882,7 +12882,7 @@ function Nb(n, e, t) {
12882
12882
  y: 0
12883
12883
  };
12884
12884
  return (r || !r && !t) && ((yt(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
12885
- ra(o)) && (l = Eb(e)), Ye(e) ? (a = rr(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = na(o))), {
12885
+ ra(o)) && (l = Eb(e)), Xe(e) ? (a = rr(e, !0), a.x += e.clientLeft, a.y += e.clientTop) : o && (a.x = na(o))), {
12886
12886
  x: s.left + l.scrollLeft - a.x,
12887
12887
  y: s.top + l.scrollTop - a.y,
12888
12888
  width: s.width,
@@ -13462,7 +13462,7 @@ function uv(n, e) {
13462
13462
  var C = y.props.touch;
13463
13463
  return Array.isArray(C) ? C : [C, 0];
13464
13464
  }
13465
- function Q() {
13465
+ function Z() {
13466
13466
  return q()[0] === "hold";
13467
13467
  }
13468
13468
  function Y() {
@@ -13502,8 +13502,8 @@ function uv(n, e) {
13502
13502
  if (y.state.isVisible)
13503
13503
  J.setAttribute(R, Ne ? Ne + " " + $ : $);
13504
13504
  else {
13505
- var We = Ne && Ne.replace($, "").trim();
13506
- We ? J.setAttribute(R, We) : J.removeAttribute(R);
13505
+ var Ue = Ne && Ne.replace($, "").trim();
13506
+ Ue ? J.setAttribute(R, Ue) : J.removeAttribute(R);
13507
13507
  }
13508
13508
  });
13509
13509
  }
@@ -13582,7 +13582,7 @@ function uv(n, e) {
13582
13582
  });
13583
13583
  }
13584
13584
  function In() {
13585
- Q() && (It("touchstart", fr, {
13585
+ Z() && (It("touchstart", fr, {
13586
13586
  passive: !0
13587
13587
  }), It("touchend", ui, {
13588
13588
  passive: !0
@@ -13620,7 +13620,7 @@ function uv(n, e) {
13620
13620
  var R = C.target, $ = te().contains(R) || k.contains(R);
13621
13621
  if (!(C.type === "mousemove" && $)) {
13622
13622
  var G = Lt().concat(k).map(function(J) {
13623
- var Ne, We = J._tippy, Ln = (Ne = We.popperInstance) == null ? void 0 : Ne.state;
13623
+ var Ne, Ue = J._tippy, Ln = (Ne = Ue.popperInstance) == null ? void 0 : Ne.state;
13624
13624
  return Ln ? {
13625
13625
  popperRect: J.getBoundingClientRect(),
13626
13626
  popperState: Ln,
@@ -13644,11 +13644,11 @@ function uv(n, e) {
13644
13644
  y.props.trigger.indexOf("focusin") < 0 && C.target !== te() || y.props.interactive && C.relatedTarget && k.contains(C.relatedTarget) || on(C);
13645
13645
  }
13646
13646
  function hr(C) {
13647
- return ft.isTouch ? Q() !== C.type.indexOf("touch") >= 0 : !1;
13647
+ return ft.isTouch ? Z() !== C.type.indexOf("touch") >= 0 : !1;
13648
13648
  }
13649
13649
  function fi() {
13650
13650
  pi();
13651
- var C = y.props, R = C.popperOptions, $ = C.placement, G = C.offset, J = C.getReferenceClientRect, Ne = C.moveTransition, We = Y() ? pl(k).arrow : null, Ln = J ? {
13651
+ var C = y.props, R = C.popperOptions, $ = C.placement, G = C.offset, J = C.getReferenceClientRect, Ne = C.moveTransition, Ue = Y() ? pl(k).arrow : null, Ln = J ? {
13652
13652
  getBoundingClientRect: J,
13653
13653
  contextElement: J.contextElement || te()
13654
13654
  } : n, ma = {
@@ -13691,10 +13691,10 @@ function uv(n, e) {
13691
13691
  adaptive: !Ne
13692
13692
  }
13693
13693
  }, ma];
13694
- Y() && We && sn.push({
13694
+ Y() && Ue && sn.push({
13695
13695
  name: "arrow",
13696
13696
  options: {
13697
- element: We,
13697
+ element: Ue,
13698
13698
  padding: 3
13699
13699
  }
13700
13700
  }), sn.push.apply(sn, (R == null ? void 0 : R.modifiers) || []), y.popperInstance = zb(Ln, k, Object.assign({}, R, {
@@ -13772,8 +13772,8 @@ function uv(n, e) {
13772
13772
  var C = y.state.isVisible, R = y.state.isDestroyed, $ = !y.state.isEnabled, G = ft.isTouch && !y.props.touch, J = Ns(y.props.duration, 0, Ve.duration);
13773
13773
  if (!(C || R || $ || G) && !te().hasAttribute("disabled") && (we("onShow", [y], !1), y.props.onShow(y) !== !1)) {
13774
13774
  if (y.state.isVisible = !0, Y() && (k.style.visibility = "visible"), ae(), et(), y.state.isMounted || (k.style.transition = "none"), Y()) {
13775
- var Ne = me(), We = Ne.box, Ln = Ne.content;
13776
- Ds([We, Ln], 0);
13775
+ var Ne = me(), Ue = Ne.box, Ln = Ne.content;
13776
+ Ds([Ue, Ln], 0);
13777
13777
  }
13778
13778
  f = function() {
13779
13779
  var sn;
@@ -13794,8 +13794,8 @@ function uv(n, e) {
13794
13794
  var C = !y.state.isVisible, R = y.state.isDestroyed, $ = !y.state.isEnabled, G = Ns(y.props.duration, 1, Ve.duration);
13795
13795
  if (!(C || R || $) && (we("onHide", [y], !1), y.props.onHide(y) !== !1)) {
13796
13796
  if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, Y() && (k.style.visibility = "hidden"), nn(), xt(), ae(!0), Y()) {
13797
- var J = me(), Ne = J.box, We = J.content;
13798
- y.props.animation && (Ds([Ne, We], G), _c([Ne, We], "hidden"));
13797
+ var J = me(), Ne = J.box, Ue = J.content;
13798
+ y.props.animation && (Ds([Ne, Ue], G), _c([Ne, Ue], "hidden"));
13799
13799
  }
13800
13800
  st(), lt(), y.props.animation ? Y() && Dn(G, y.unmount) : y.unmount();
13801
13801
  }
@@ -14452,7 +14452,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14452
14452
  ];
14453
14453
  },
14454
14454
  renderHTML({ HTMLAttributes: n }) {
14455
- return ["blockquote", ee(this.options.HTMLAttributes, n), 0];
14455
+ return ["blockquote", Q(this.options.HTMLAttributes, n), 0];
14456
14456
  },
14457
14457
  addCommands() {
14458
14458
  return {
@@ -14474,7 +14474,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14474
14474
  })
14475
14475
  ];
14476
14476
  }
14477
- }), wv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, kv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Cv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Sv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Tv = Xe.create({
14477
+ }), wv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/, kv = /(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g, Cv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/, Sv = /(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g, Tv = _e.create({
14478
14478
  name: "bold",
14479
14479
  addOptions() {
14480
14480
  return {
@@ -14501,7 +14501,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14501
14501
  ];
14502
14502
  },
14503
14503
  renderHTML({ HTMLAttributes: n }) {
14504
- return ["strong", ee(this.options.HTMLAttributes, n), 0];
14504
+ return ["strong", Q(this.options.HTMLAttributes, n), 0];
14505
14505
  },
14506
14506
  addCommands() {
14507
14507
  return {
@@ -14560,7 +14560,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14560
14560
  ];
14561
14561
  },
14562
14562
  renderHTML({ HTMLAttributes: n }) {
14563
- return ["ul", ee(this.options.HTMLAttributes, n), 0];
14563
+ return ["ul", Q(this.options.HTMLAttributes, n), 0];
14564
14564
  },
14565
14565
  addCommands() {
14566
14566
  return {
@@ -14588,7 +14588,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14588
14588
  n
14589
14589
  ];
14590
14590
  }
14591
- }), Ev = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, Ov = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, Nv = Xe.create({
14591
+ }), Ev = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))$/, Ov = /(?:^|\s)(`(?!\s+`)((?:[^`]+))`(?!\s+`))/g, Nv = _e.create({
14592
14592
  name: "code",
14593
14593
  addOptions() {
14594
14594
  return {
@@ -14604,7 +14604,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14604
14604
  ];
14605
14605
  },
14606
14606
  renderHTML({ HTMLAttributes: n }) {
14607
- return ["code", ee(this.options.HTMLAttributes, n), 0];
14607
+ return ["code", Q(this.options.HTMLAttributes, n), 0];
14608
14608
  },
14609
14609
  addCommands() {
14610
14610
  return {
@@ -14674,7 +14674,7 @@ const vv = /^\s*>\s$/, xv = ie.create({
14674
14674
  renderHTML({ node: n, HTMLAttributes: e }) {
14675
14675
  return [
14676
14676
  "pre",
14677
- ee(this.options.HTMLAttributes, e),
14677
+ Q(this.options.HTMLAttributes, e),
14678
14678
  [
14679
14679
  "code",
14680
14680
  {
@@ -15089,7 +15089,7 @@ const Uv = fe.create({
15089
15089
  ];
15090
15090
  },
15091
15091
  renderHTML({ HTMLAttributes: n }) {
15092
- return ["br", ee(this.options.HTMLAttributes, n)];
15092
+ return ["br", Q(this.options.HTMLAttributes, n)];
15093
15093
  },
15094
15094
  renderText() {
15095
15095
  return `
@@ -15147,7 +15147,7 @@ const Uv = fe.create({
15147
15147
  }));
15148
15148
  },
15149
15149
  renderHTML({ node: n, HTMLAttributes: e }) {
15150
- return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, ee(this.options.HTMLAttributes, e), 0];
15150
+ return [`h${this.options.levels.includes(n.attrs.level) ? n.attrs.level : this.options.levels[0]}`, Q(this.options.HTMLAttributes, e), 0];
15151
15151
  },
15152
15152
  addCommands() {
15153
15153
  return {
@@ -15550,7 +15550,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15550
15550
  return [{ tag: "hr" }];
15551
15551
  },
15552
15552
  renderHTML({ HTMLAttributes: n }) {
15553
- return ["hr", ee(this.options.HTMLAttributes, n)];
15553
+ return ["hr", Q(this.options.HTMLAttributes, n)];
15554
15554
  },
15555
15555
  addCommands() {
15556
15556
  return {
@@ -15588,7 +15588,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15588
15588
  })
15589
15589
  ];
15590
15590
  }
15591
- }), o1 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, s1 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, l1 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, a1 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, c1 = Xe.create({
15591
+ }), o1 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, s1 = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, l1 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, a1 = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, c1 = _e.create({
15592
15592
  name: "italic",
15593
15593
  addOptions() {
15594
15594
  return {
@@ -15614,7 +15614,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15614
15614
  ];
15615
15615
  },
15616
15616
  renderHTML({ HTMLAttributes: n }) {
15617
- return ["em", ee(this.options.HTMLAttributes, n), 0];
15617
+ return ["em", Q(this.options.HTMLAttributes, n), 0];
15618
15618
  },
15619
15619
  addCommands() {
15620
15620
  return {
@@ -15672,7 +15672,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15672
15672
  ];
15673
15673
  },
15674
15674
  renderHTML({ HTMLAttributes: n }) {
15675
- return ["li", ee(this.options.HTMLAttributes, n), 0];
15675
+ return ["li", Q(this.options.HTMLAttributes, n), 0];
15676
15676
  },
15677
15677
  addKeyboardShortcuts() {
15678
15678
  return {
@@ -15716,7 +15716,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15716
15716
  },
15717
15717
  renderHTML({ HTMLAttributes: n }) {
15718
15718
  const { start: e, ...t } = n;
15719
- return e === 1 ? ["ol", ee(this.options.HTMLAttributes, t), 0] : ["ol", ee(this.options.HTMLAttributes, n), 0];
15719
+ return e === 1 ? ["ol", Q(this.options.HTMLAttributes, t), 0] : ["ol", Q(this.options.HTMLAttributes, n), 0];
15720
15720
  },
15721
15721
  addCommands() {
15722
15722
  return {
@@ -15763,7 +15763,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15763
15763
  ];
15764
15764
  },
15765
15765
  renderHTML({ HTMLAttributes: n }) {
15766
- return ["p", ee(this.options.HTMLAttributes, n), 0];
15766
+ return ["p", Q(this.options.HTMLAttributes, n), 0];
15767
15767
  },
15768
15768
  addCommands() {
15769
15769
  return {
@@ -15775,7 +15775,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15775
15775
  "Mod-Alt-0": () => this.editor.commands.setParagraph()
15776
15776
  };
15777
15777
  }
15778
- }), h1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, m1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, g1 = Xe.create({
15778
+ }), h1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/, m1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g, g1 = _e.create({
15779
15779
  name: "strike",
15780
15780
  addOptions() {
15781
15781
  return {
@@ -15801,7 +15801,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15801
15801
  ];
15802
15802
  },
15803
15803
  renderHTML({ HTMLAttributes: n }) {
15804
- return ["s", ee(this.options.HTMLAttributes, n), 0];
15804
+ return ["s", Q(this.options.HTMLAttributes, n), 0];
15805
15805
  },
15806
15806
  addCommands() {
15807
15807
  return {
@@ -15841,7 +15841,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15841
15841
  const v = [];
15842
15842
  return this.options.bold !== !1 && v.push(Tv.configure((n = this.options) === null || n === void 0 ? void 0 : n.bold)), this.options.blockquote !== !1 && v.push(xv.configure((e = this.options) === null || e === void 0 ? void 0 : e.blockquote)), this.options.bulletList !== !1 && v.push(Mv.configure((t = this.options) === null || t === void 0 ? void 0 : t.bulletList)), this.options.code !== !1 && v.push(Nv.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && v.push(Iv.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && v.push(Lv.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && v.push(zv.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && v.push(Uv.configure((l = this.options) === null || l === void 0 ? void 0 : l.gapcursor)), this.options.hardBreak !== !1 && v.push(qv.configure((a = this.options) === null || a === void 0 ? void 0 : a.hardBreak)), this.options.heading !== !1 && v.push(Kv.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && v.push(r1.configure((d = this.options) === null || d === void 0 ? void 0 : d.history)), this.options.horizontalRule !== !1 && v.push(i1.configure((u = this.options) === null || u === void 0 ? void 0 : u.horizontalRule)), this.options.italic !== !1 && v.push(c1.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && v.push(d1.configure((p = this.options) === null || p === void 0 ? void 0 : p.listItem)), this.options.orderedList !== !1 && v.push(f1.configure((h = this.options) === null || h === void 0 ? void 0 : h.orderedList)), this.options.paragraph !== !1 && v.push(p1.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && v.push(g1.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && v.push(y1.configure((b = this.options) === null || b === void 0 ? void 0 : b.text)), v;
15843
15843
  }
15844
- }), v1 = Xe.create({
15844
+ }), v1 = _e.create({
15845
15845
  name: "underline",
15846
15846
  addOptions() {
15847
15847
  return {
@@ -15861,7 +15861,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15861
15861
  ];
15862
15862
  },
15863
15863
  renderHTML({ HTMLAttributes: n }) {
15864
- return ["u", ee(this.options.HTMLAttributes, n), 0];
15864
+ return ["u", Q(this.options.HTMLAttributes, n), 0];
15865
15865
  },
15866
15866
  addCommands() {
15867
15867
  return {
@@ -15876,7 +15876,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15876
15876
  "Mod-U": () => this.editor.commands.toggleUnderline()
15877
15877
  };
15878
15878
  }
15879
- }), x1 = Xe.create({
15879
+ }), x1 = _e.create({
15880
15880
  name: "textStyle",
15881
15881
  priority: 101,
15882
15882
  addOptions() {
@@ -15893,7 +15893,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
15893
15893
  ];
15894
15894
  },
15895
15895
  renderHTML({ HTMLAttributes: n }) {
15896
- return ["span", ee(this.options.HTMLAttributes, n), 0];
15896
+ return ["span", Q(this.options.HTMLAttributes, n), 0];
15897
15897
  },
15898
15898
  addCommands() {
15899
15899
  return {
@@ -16122,7 +16122,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
16122
16122
  renderHTML({ HTMLAttributes: n }) {
16123
16123
  return [
16124
16124
  "div",
16125
- ee(this.options.HTMLAttributes, n, {
16125
+ Q(this.options.HTMLAttributes, n, {
16126
16126
  "data-type": "columnBlock",
16127
16127
  class: "column-block",
16128
16128
  style: "display: flex; gap: 1rem; min-height: 100px;"
@@ -16202,7 +16202,7 @@ const zf = Bf(!1, !0), $f = Bf(!0, !0), r1 = fe.create({
16202
16202
  renderHTML({ HTMLAttributes: n }) {
16203
16203
  return [
16204
16204
  "div",
16205
- ee(this.options.HTMLAttributes, n, {
16205
+ Q(this.options.HTMLAttributes, n, {
16206
16206
  "data-type": "column",
16207
16207
  class: "column",
16208
16208
  style: "flex: 1; min-height: 100px; padding: 12px;"
@@ -18103,7 +18103,7 @@ const Ii = ({ editor: n }) => {
18103
18103
  const { colgroup: t, tableWidth: r, tableMinWidth: i } = Bx(n, this.options.cellMinWidth);
18104
18104
  return [
18105
18105
  "table",
18106
- ee(this.options.HTMLAttributes, e, {
18106
+ Q(this.options.HTMLAttributes, e, {
18107
18107
  style: r ? `width: ${r}` : `min-width: ${i}`
18108
18108
  }),
18109
18109
  t,
@@ -18214,7 +18214,7 @@ const Ii = ({ editor: n }) => {
18214
18214
  ];
18215
18215
  },
18216
18216
  renderHTML({ HTMLAttributes: n }) {
18217
- return ["td", ee(this.options.HTMLAttributes, n), 0];
18217
+ return ["td", Q(this.options.HTMLAttributes, n), 0];
18218
18218
  }
18219
18219
  }), jx = ie.create({
18220
18220
  name: "tableHeader",
@@ -18249,7 +18249,7 @@ const Ii = ({ editor: n }) => {
18249
18249
  ];
18250
18250
  },
18251
18251
  renderHTML({ HTMLAttributes: n }) {
18252
- return ["th", ee(this.options.HTMLAttributes, n), 0];
18252
+ return ["th", Q(this.options.HTMLAttributes, n), 0];
18253
18253
  }
18254
18254
  }), _x = ie.create({
18255
18255
  name: "tableRow",
@@ -18266,7 +18266,7 @@ const Ii = ({ editor: n }) => {
18266
18266
  ];
18267
18267
  },
18268
18268
  renderHTML({ HTMLAttributes: n }) {
18269
- return ["tr", ee(this.options.HTMLAttributes, n), 0];
18269
+ return ["tr", Q(this.options.HTMLAttributes, n), 0];
18270
18270
  }
18271
18271
  }), Wx = fe.create({
18272
18272
  name: "textAlign",
@@ -18308,7 +18308,7 @@ const Ii = ({ editor: n }) => {
18308
18308
  "Mod-Shift-j": () => this.editor.commands.setTextAlign("justify")
18309
18309
  };
18310
18310
  }
18311
- }), Ux = Xe.create({
18311
+ }), Ux = _e.create({
18312
18312
  name: "fontSize",
18313
18313
  addAttributes() {
18314
18314
  return {
@@ -18697,7 +18697,7 @@ const pw = /* @__PURE__ */ El(cw, [["render", fw]]), hw = ie.create({
18697
18697
  center: "text-align: center;",
18698
18698
  end: "text-align: right;"
18699
18699
  }, s = {
18700
- ...ee(i),
18700
+ ...Q(i),
18701
18701
  style: r ? "cursor: pointer;" : ""
18702
18702
  };
18703
18703
  return r && (s.onclick = `window.open('${r}', '_blank')`), [
@@ -19076,7 +19076,7 @@ const vw = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15
19076
19076
  ];
19077
19077
  },
19078
19078
  renderHTML({ HTMLAttributes: n }) {
19079
- return ["image-carousel", ee(n)];
19079
+ return ["image-carousel", Q(n)];
19080
19080
  },
19081
19081
  addNodeView() {
19082
19082
  return is(Zw);
@@ -19314,7 +19314,7 @@ Pe.prototype = {
19314
19314
  return i.j[n] = s, s;
19315
19315
  }
19316
19316
  };
19317
- const F = (n, e, t, r, i) => n.ta(e, t, r, i), ce = (n, e, t, r, i) => n.tr(e, t, r, i), yd = (n, e, t, r, i) => n.ts(e, t, r, i), A = (n, e, t, r, i) => n.tt(e, t, r, i), Mt = "WORD", Cl = "UWORD", Xf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", ni = "LOCALHOST", Sl = "TLD", Tl = "UTLD", Ui = "SCHEME", _n = "SLASH_SCHEME", la = "NUM", Al = "WS", aa = "NL", Lr = "OPENBRACE", Pr = "CLOSEBRACE", fo = "OPENBRACKET", po = "CLOSEBRACKET", ho = "OPENPAREN", mo = "CLOSEPAREN", go = "OPENANGLEBRACKET", yo = "CLOSEANGLEBRACKET", bo = "FULLWIDTHLEFTPAREN", vo = "FULLWIDTHRIGHTPAREN", xo = "LEFTCORNERBRACKET", wo = "RIGHTCORNERBRACKET", ko = "LEFTWHITECORNERBRACKET", Co = "RIGHTWHITECORNERBRACKET", So = "FULLWIDTHLESSTHAN", To = "FULLWIDTHGREATERTHAN", Ao = "AMPERSAND", Mo = "APOSTROPHE", Eo = "ASTERISK", Ht = "AT", Oo = "BACKSLASH", No = "BACKTICK", Do = "CARET", jt = "COLON", ca = "COMMA", Ro = "DOLLAR", dt = "DOT", Io = "EQUALS", da = "EXCLAMATION", qe = "HYPHEN", Br = "PERCENT", Lo = "PIPE", Po = "PLUS", Bo = "POUND", zr = "QUERY", ua = "QUOTE", Zf = "FULLWIDTHMIDDLEDOT", fa = "SEMI", ut = "SLASH", $r = "TILDE", zo = "UNDERSCORE", ep = "EMOJI", $o = "SYM";
19317
+ const F = (n, e, t, r, i) => n.ta(e, t, r, i), ce = (n, e, t, r, i) => n.tr(e, t, r, i), yd = (n, e, t, r, i) => n.ts(e, t, r, i), A = (n, e, t, r, i) => n.tt(e, t, r, i), Mt = "WORD", Cl = "UWORD", Xf = "ASCIINUMERICAL", Qf = "ALPHANUMERICAL", ni = "LOCALHOST", Sl = "TLD", Tl = "UTLD", Ui = "SCHEME", _n = "SLASH_SCHEME", la = "NUM", Al = "WS", aa = "NL", Lr = "OPENBRACE", Pr = "CLOSEBRACE", fo = "OPENBRACKET", po = "CLOSEBRACKET", ho = "OPENPAREN", mo = "CLOSEPAREN", go = "OPENANGLEBRACKET", yo = "CLOSEANGLEBRACKET", bo = "FULLWIDTHLEFTPAREN", vo = "FULLWIDTHRIGHTPAREN", xo = "LEFTCORNERBRACKET", wo = "RIGHTCORNERBRACKET", ko = "LEFTWHITECORNERBRACKET", Co = "RIGHTWHITECORNERBRACKET", So = "FULLWIDTHLESSTHAN", To = "FULLWIDTHGREATERTHAN", Ao = "AMPERSAND", Mo = "APOSTROPHE", Eo = "ASTERISK", Ht = "AT", Oo = "BACKSLASH", No = "BACKTICK", Do = "CARET", jt = "COLON", ca = "COMMA", Ro = "DOLLAR", dt = "DOT", Io = "EQUALS", da = "EXCLAMATION", Ke = "HYPHEN", Br = "PERCENT", Lo = "PIPE", Po = "PLUS", Bo = "POUND", zr = "QUERY", ua = "QUOTE", Zf = "FULLWIDTHMIDDLEDOT", fa = "SEMI", ut = "SLASH", $r = "TILDE", zo = "UNDERSCORE", ep = "EMOJI", $o = "SYM";
19318
19318
  var tp = /* @__PURE__ */ Object.freeze({
19319
19319
  __proto__: null,
19320
19320
  ALPHANUMERICAL: Qf,
@@ -19342,7 +19342,7 @@ var tp = /* @__PURE__ */ Object.freeze({
19342
19342
  FULLWIDTHLESSTHAN: So,
19343
19343
  FULLWIDTHMIDDLEDOT: Zf,
19344
19344
  FULLWIDTHRIGHTPAREN: vo,
19345
- HYPHEN: qe,
19345
+ HYPHEN: Ke,
19346
19346
  LEFTCORNERBRACKET: xo,
19347
19347
  LEFTWHITECORNERBRACKET: ko,
19348
19348
  LOCALHOST: ni,
@@ -19380,7 +19380,7 @@ function uk(n = []) {
19380
19380
  const e = {};
19381
19381
  Pe.groups = e;
19382
19382
  const t = new Pe();
19383
- Li == null && (Li = vd(rk)), Pi == null && (Pi = vd(ik)), A(t, "'", Mo), A(t, "{", Lr), A(t, "}", Pr), A(t, "[", fo), A(t, "]", po), A(t, "(", ho), A(t, ")", mo), A(t, "<", go), A(t, ">", yo), A(t, "(", bo), A(t, ")", vo), A(t, "「", xo), A(t, "」", wo), A(t, "『", ko), A(t, "』", Co), A(t, "<", So), A(t, ">", To), A(t, "&", Ao), A(t, "*", Eo), A(t, "@", Ht), A(t, "`", No), A(t, "^", Do), A(t, ":", jt), A(t, ",", ca), A(t, "$", Ro), A(t, ".", dt), A(t, "=", Io), A(t, "!", da), A(t, "-", qe), A(t, "%", Br), A(t, "|", Lo), A(t, "+", Po), A(t, "#", Bo), A(t, "?", zr), A(t, '"', ua), A(t, "/", ut), A(t, ";", fa), A(t, "~", $r), A(t, "_", zo), A(t, "\\", Oo), A(t, "・", Zf);
19383
+ Li == null && (Li = vd(rk)), Pi == null && (Pi = vd(ik)), A(t, "'", Mo), A(t, "{", Lr), A(t, "}", Pr), A(t, "[", fo), A(t, "]", po), A(t, "(", ho), A(t, ")", mo), A(t, "<", go), A(t, ">", yo), A(t, "(", bo), A(t, ")", vo), A(t, "「", xo), A(t, "」", wo), A(t, "『", ko), A(t, "』", Co), A(t, "<", So), A(t, ">", To), A(t, "&", Ao), A(t, "*", Eo), A(t, "@", Ht), A(t, "`", No), A(t, "^", Do), A(t, ":", jt), A(t, ",", ca), A(t, "$", Ro), A(t, ".", dt), A(t, "=", Io), A(t, "!", da), A(t, "-", Ke), A(t, "%", Br), A(t, "|", Lo), A(t, "+", Po), A(t, "#", Bo), A(t, "?", zr), A(t, '"', ua), A(t, "/", ut), A(t, ";", fa), A(t, "~", $r), A(t, "_", zo), A(t, "\\", Oo), A(t, "・", Zf);
19384
19384
  const r = ce(t, Tt, la, {
19385
19385
  [vl]: !0
19386
19386
  });
@@ -19732,39 +19732,39 @@ const wd = as("email", {
19732
19732
  const n = this.tk;
19733
19733
  return n.length >= 2 && n[0].t !== ni && n[1].t === jt;
19734
19734
  }
19735
- }), Ue = (n) => new Pe(n);
19735
+ }), qe = (n) => new Pe(n);
19736
19736
  function hk({
19737
19737
  groups: n
19738
19738
  }) {
19739
- const e = n.domain.concat([Ao, Eo, Ht, Oo, No, Do, Ro, Io, qe, la, Br, Lo, Po, Bo, ut, $o, $r, zo]), t = [Mo, jt, ca, dt, da, Br, zr, ua, fa, go, yo, Lr, Pr, po, fo, ho, mo, bo, vo, xo, wo, ko, Co, So, To], r = [Ao, Mo, Eo, Oo, No, Do, Ro, Io, qe, Lr, Pr, Br, Lo, Po, Bo, zr, ut, $o, $r, zo], i = Ue(), o = A(i, $r);
19739
+ const e = n.domain.concat([Ao, Eo, Ht, Oo, No, Do, Ro, Io, Ke, la, Br, Lo, Po, Bo, ut, $o, $r, zo]), t = [Mo, jt, ca, dt, da, Br, zr, ua, fa, go, yo, Lr, Pr, po, fo, ho, mo, bo, vo, xo, wo, ko, Co, So, To], r = [Ao, Mo, Eo, Oo, No, Do, Ro, Io, Ke, Lr, Pr, Br, Lo, Po, Bo, zr, ut, $o, $r, zo], i = qe(), o = A(i, $r);
19740
19740
  F(o, r, o), F(o, n.domain, o);
19741
- const s = Ue(), l = Ue(), a = Ue();
19741
+ const s = qe(), l = qe(), a = qe();
19742
19742
  F(i, n.domain, s), F(i, n.scheme, l), F(i, n.slashscheme, a), F(s, r, o), F(s, n.domain, s);
19743
19743
  const c = A(s, Ht);
19744
19744
  A(o, Ht, c), A(l, Ht, c), A(a, Ht, c);
19745
19745
  const d = A(o, dt);
19746
19746
  F(d, r, o), F(d, n.domain, o);
19747
- const u = Ue();
19747
+ const u = qe();
19748
19748
  F(c, n.domain, u), F(u, n.domain, u);
19749
19749
  const f = A(u, dt);
19750
19750
  F(f, n.domain, u);
19751
- const p = Ue(wd);
19751
+ const p = qe(wd);
19752
19752
  F(f, n.tld, p), F(f, n.utld, p), A(c, ni, p);
19753
- const h = A(u, qe);
19754
- A(h, qe, h), F(h, n.domain, u), F(p, n.domain, u), A(p, dt, f), A(p, qe, h);
19753
+ const h = A(u, Ke);
19754
+ A(h, Ke, h), F(h, n.domain, u), F(p, n.domain, u), A(p, dt, f), A(p, Ke, h);
19755
19755
  const m = A(p, jt);
19756
19756
  F(m, n.numeric, wd);
19757
- const g = A(s, qe), b = A(s, dt);
19758
- A(g, qe, g), F(g, n.domain, s), F(b, r, o), F(b, n.domain, s);
19759
- const v = Ue(Bi);
19760
- F(b, n.tld, v), F(b, n.utld, v), F(v, n.domain, s), F(v, r, o), A(v, dt, b), A(v, qe, g), A(v, Ht, c);
19761
- const w = A(v, jt), y = Ue(Bi);
19757
+ const g = A(s, Ke), b = A(s, dt);
19758
+ A(g, Ke, g), F(g, n.domain, s), F(b, r, o), F(b, n.domain, s);
19759
+ const v = qe(Bi);
19760
+ F(b, n.tld, v), F(b, n.utld, v), F(v, n.domain, s), F(v, r, o), A(v, dt, b), A(v, Ke, g), A(v, Ht, c);
19761
+ const w = A(v, jt), y = qe(Bi);
19762
19762
  F(w, n.numeric, y);
19763
- const S = Ue(Bi), k = Ue();
19763
+ const S = qe(Bi), k = qe();
19764
19764
  F(S, e, S), F(S, t, k), F(k, e, S), F(k, t, k), A(v, ut, S), A(y, ut, S);
19765
19765
  const O = A(l, jt), H = A(a, jt), D = A(H, ut), q = A(D, ut);
19766
- F(l, n.domain, s), A(l, dt, b), A(l, qe, g), F(a, n.domain, s), A(a, dt, b), A(a, qe, g), F(O, n.domain, S), A(O, ut, S), A(O, zr, S), F(q, n.domain, S), F(q, e, S), A(q, ut, S);
19767
- const Q = [
19766
+ F(l, n.domain, s), A(l, dt, b), A(l, Ke, g), F(a, n.domain, s), A(a, dt, b), A(a, Ke, g), F(O, n.domain, S), A(O, ut, S), A(O, zr, S), F(q, n.domain, S), F(q, e, S), A(q, ut, S);
19767
+ const Z = [
19768
19768
  [Lr, Pr],
19769
19769
  // {}
19770
19770
  [fo, po],
@@ -19782,12 +19782,12 @@ function hk({
19782
19782
  [So, To]
19783
19783
  // <>
19784
19784
  ];
19785
- for (let Y = 0; Y < Q.length; Y++) {
19786
- const [te, xe] = Q[Y], me = A(S, te);
19785
+ for (let Y = 0; Y < Z.length; Y++) {
19786
+ const [te, xe] = Z[Y], me = A(S, te);
19787
19787
  A(k, te, me), A(me, xe, S);
19788
- const oe = Ue(Bi);
19788
+ const oe = qe(Bi);
19789
19789
  F(me, e, oe);
19790
- const ae = Ue();
19790
+ const ae = qe();
19791
19791
  F(me, t), F(oe, e, oe), F(oe, t, ae), F(ae, e, oe), F(ae, t, ae), A(oe, xe, S), A(ae, xe, S);
19792
19792
  }
19793
19793
  return A(i, ni, v), A(i, aa, pk), {
@@ -19970,7 +19970,7 @@ function ln(n, e) {
19970
19970
  "i"
19971
19971
  ));
19972
19972
  }
19973
- const Tk = Xe.create({
19973
+ const Tk = _e.create({
19974
19974
  name: "link",
19975
19975
  priority: 1e3,
19976
19976
  keepOnSplit: !1,
@@ -20046,9 +20046,9 @@ const Tk = Xe.create({
20046
20046
  defaultValidate: (e) => !!ln(e, this.options.protocols),
20047
20047
  protocols: this.options.protocols,
20048
20048
  defaultProtocol: this.options.defaultProtocol
20049
- }) ? ["a", ee(this.options.HTMLAttributes, n), 0] : [
20049
+ }) ? ["a", Q(this.options.HTMLAttributes, n), 0] : [
20050
20050
  "a",
20051
- ee(this.options.HTMLAttributes, { ...n, href: "" }),
20051
+ Q(this.options.HTMLAttributes, { ...n, href: "" }),
20052
20052
  0
20053
20053
  ];
20054
20054
  },
@@ -20239,7 +20239,19 @@ const Rk = fe.create({
20239
20239
  })
20240
20240
  ] : [];
20241
20241
  }
20242
- }), Ik = [
20242
+ }), Ik = /\[bluetext\]([\s\S]*?)\[\/bluetext\]/g;
20243
+ function Lk(n) {
20244
+ return typeof n != "string" ? n : n.replace(Ik, (e, t) => `<span class="bluetext">${t.trim()}</span>`);
20245
+ }
20246
+ const Pk = _e.create({
20247
+ name: "blueText",
20248
+ parseHTML() {
20249
+ return [{ tag: "span.bluetext" }];
20250
+ },
20251
+ renderHTML({ HTMLAttributes: n }) {
20252
+ return ["span", Q({ class: "bluetext" }, n), 0];
20253
+ }
20254
+ }), Bk = [
20243
20255
  b1.configure({
20244
20256
  heading: {
20245
20257
  levels: [1, 2],
@@ -20271,6 +20283,7 @@ const Rk = fe.create({
20271
20283
  v1,
20272
20284
  x1,
20273
20285
  w1,
20286
+ Pk,
20274
20287
  B1,
20275
20288
  z1,
20276
20289
  fe.create({
@@ -20324,17 +20337,17 @@ const Rk = fe.create({
20324
20337
  Ek
20325
20338
  ], op = (n, e, { templateLocked: t = !1 } = {}) => {
20326
20339
  const r = [
20327
- ...Ik,
20340
+ ...Bk,
20328
20341
  Rk.configure({ enabled: t })
20329
20342
  ];
20330
20343
  return new mv({
20331
20344
  extensions: r,
20332
- content: e || null,
20345
+ content: e ? Lk(e) : null,
20333
20346
  editable: n
20334
20347
  });
20335
20348
  }, zi = (n, e) => {
20336
20349
  n.setOptions({ editable: e }), e && n.commands.focus("start"), n.view.update(n.view.props);
20337
- }, Lk = { class: "p-2.5 flex flex-col items-center justify-center h-[50px] text-center leading-tight gap-y-[5px]" }, Pk = { class: "w-[24px] h-[24px] flex items-center justify-center" }, Le = {
20350
+ }, zk = { class: "p-2.5 flex flex-col items-center justify-center h-[50px] text-center leading-tight gap-y-[5px]" }, $k = { class: "w-[24px] h-[24px] flex items-center justify-center" }, Le = {
20338
20351
  __name: "ControlItem",
20339
20352
  props: {
20340
20353
  controlName: {
@@ -20355,8 +20368,8 @@ const Rk = fe.create({
20355
20368
  return (t, r) => (E(), V("div", {
20356
20369
  class: W(["rounded-[10px] transition duration-300 ease-in-out", e.disabled ? "opacity-30 cursor-default" : "cursor-pointer"])
20357
20370
  }, [
20358
- x("div", Lk, [
20359
- x("div", Pk, [
20371
+ x("div", zk, [
20372
+ x("div", $k, [
20360
20373
  Sp(t.$slots, "icon")
20361
20374
  ]),
20362
20375
  x("span", {
@@ -20365,27 +20378,27 @@ const Rk = fe.create({
20365
20378
  ])
20366
20379
  ], 2));
20367
20380
  }
20368
- }, Bk = ["src"], zk = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), $k = [
20369
- zk
20370
- ], Hk = {
20381
+ }, Hk = ["src"], Fk = /* @__PURE__ */ x("i", { class: "fa-solid fa-trash-can text-xs" }, null, -1), Vk = [
20382
+ Fk
20383
+ ], jk = {
20371
20384
  key: 1,
20372
20385
  class: "flex flex-col gap-[10px] items-center justify-center w-full"
20373
- }, Fk = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[28px] text-black-150" }, null, -1), Vk = { class: "flex flex-col gap-[5px] items-center text-center w-full" }, jk = {
20386
+ }, _k = /* @__PURE__ */ x("i", { class: "fa-light fa-image text-[28px] text-black-150" }, null, -1), Wk = { class: "flex flex-col gap-[5px] items-center text-center w-full" }, Uk = {
20374
20387
  key: 0,
20375
20388
  class: "text-[14px] leading-[1.2]"
20376
- }, _k = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Tap to choose", -1), Wk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " from photos or camera", -1), Uk = [
20377
- _k,
20378
- Wk
20379
- ], qk = {
20389
+ }, qk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Tap to choose", -1), Kk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " from photos or camera", -1), Jk = [
20390
+ qk,
20391
+ Kk
20392
+ ], Gk = {
20380
20393
  key: 1,
20381
20394
  class: "text-[14px] leading-[1.2]"
20382
- }, Kk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file", -1), Jk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop", -1), Gk = [
20383
- Kk,
20384
- Jk
20385
- ], Yk = { class: "text-[12px] leading-[1.2] text-black-700" }, Xk = {
20395
+ }, Yk = /* @__PURE__ */ x("span", { class: "font-bold text-proclus-950" }, "Upload a file", -1), Xk = /* @__PURE__ */ x("span", { class: "text-black-950" }, " or drag and drop", -1), Qk = [
20396
+ Yk,
20397
+ Xk
20398
+ ], Zk = { class: "text-[12px] leading-[1.2] text-black-700" }, eC = {
20386
20399
  key: 2,
20387
20400
  class: "absolute -bottom-5 left-0 text-[11px] text-error-950"
20388
- }, Qk = ["accept"], Zk = {
20401
+ }, tC = ["accept"], nC = {
20389
20402
  __name: "FileUploadZone",
20390
20403
  props: {
20391
20404
  acceptedTypes: {
@@ -20435,19 +20448,19 @@ const Rk = fe.create({
20435
20448
  src: n.previewUrl,
20436
20449
  alt: "Preview",
20437
20450
  class: "w-full h-full object-cover rounded-[8px]"
20438
- }, null, 8, Bk),
20451
+ }, null, 8, Hk),
20439
20452
  x("button", {
20440
20453
  class: "absolute top-[10px] right-[10px] w-[24px] h-[24px] flex items-center justify-center bg-[#ffffff] rounded shadow text-black-700 hover:text-error-950 transition-colors",
20441
20454
  onClick: m[0] || (m[0] = xr((g) => h.$emit("fileRemoved"), ["stop"]))
20442
- }, $k)
20443
- ], 64)) : (E(), V("div", Hk, [
20444
- Fk,
20445
- x("div", Vk, [
20446
- a.value ? (E(), V("p", jk, Uk)) : (E(), V("p", qk, Gk)),
20447
- x("p", Yk, " PNG or JPG up to " + kn(l.value) + "MB ", 1)
20455
+ }, Vk)
20456
+ ], 64)) : (E(), V("div", jk, [
20457
+ _k,
20458
+ x("div", Wk, [
20459
+ a.value ? (E(), V("p", Uk, Jk)) : (E(), V("p", Gk, Qk)),
20460
+ x("p", Zk, " PNG or JPG up to " + kn(l.value) + "MB ", 1)
20448
20461
  ])
20449
20462
  ])),
20450
- s.value ? (E(), V("p", Xk, kn(s.value), 1)) : _("", !0),
20463
+ s.value ? (E(), V("p", eC, kn(s.value), 1)) : _("", !0),
20451
20464
  x("input", {
20452
20465
  ref_key: "fileInput",
20453
20466
  ref: i,
@@ -20455,12 +20468,12 @@ const Rk = fe.create({
20455
20468
  accept: c.value,
20456
20469
  class: "hidden",
20457
20470
  onChange: f
20458
- }, null, 40, Qk)
20471
+ }, null, 40, tC)
20459
20472
  ], 34));
20460
20473
  }
20461
- }, eC = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
20474
+ }, rC = /* @__PURE__ */ x("div", { class: "flex items-center px-[20px] py-[15px] border-b-[1px] border-black-600 w-full" }, [
20462
20475
  /* @__PURE__ */ x("p", { class: "flex-1 text-[18px] font-bold text-black-950 leading-normal" }, "Image upload")
20463
- ], -1), tC = { class: "bg-[rgba(7,21,30,0.04)] px-[20px] py-[15px]" }, nC = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, rC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Image to Editor", -1), iC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, sp = {
20476
+ ], -1), iC = { class: "bg-[rgba(7,21,30,0.04)] px-[20px] py-[15px]" }, oC = { class: "flex gap-[20px] items-end justify-center py-[15px] border-t-[1px] border-black-600" }, sC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Image to Editor", -1), lC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, sp = {
20464
20477
  __name: "AddImageModal",
20465
20478
  props: {
20466
20479
  mode: {
@@ -20520,10 +20533,10 @@ const Rk = fe.create({
20520
20533
  class: "w-[410px] max-w-[93vw] !p-0 !rounded-[20px] !top-[calc(50%+83px)] !shadow-[0px_6px_15px_0px_rgba(0,0,0,0.1),0px_3px_8px_0px_rgba(0,0,0,0.1)]"
20521
20534
  }, {
20522
20535
  header: P(() => [
20523
- eC
20536
+ rC
20524
20537
  ]),
20525
20538
  footer: P(() => [
20526
- x("div", nC, [
20539
+ x("div", oC, [
20527
20540
  I(K(Od), {
20528
20541
  onClick: h[0] || (h[0] = (m) => p.$emit("close"))
20529
20542
  }, {
@@ -20544,8 +20557,8 @@ const Rk = fe.create({
20544
20557
  ])
20545
20558
  ]),
20546
20559
  default: P(() => [
20547
- x("div", tC, [
20548
- I(Zk, {
20560
+ x("div", iC, [
20561
+ I(nC, {
20549
20562
  acceptedTypes: n.acceptedTypes,
20550
20563
  maxFileSize: n.maxFileSize,
20551
20564
  previewUrl: o.value,
@@ -20561,14 +20574,14 @@ const Rk = fe.create({
20561
20574
  class: "w-[90vw] md:w-[600px] h-fit !p-0"
20562
20575
  }, {
20563
20576
  header: P(({ handleClose: m }) => [
20564
- rC,
20577
+ sC,
20565
20578
  I(Dd, {
20566
20579
  class: "!w-[14px] !h-[14px] p-0 top-[25px] right-[25px] absolute text-steel-950 cursor-pointer",
20567
20580
  onClick: h[1] || (h[1] = (g) => p.$emit("close"))
20568
20581
  })
20569
20582
  ]),
20570
20583
  default: P(() => [
20571
- x("div", iC, [
20584
+ x("div", lC, [
20572
20585
  I(K(Rd), {
20573
20586
  tableData: c.value,
20574
20587
  tableCols: d,
@@ -20580,13 +20593,13 @@ const Rk = fe.create({
20580
20593
  _: 1
20581
20594
  }));
20582
20595
  }
20583
- }, oC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Link to Editor", -1), sC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, lC = {
20596
+ }, aC = /* @__PURE__ */ x("p", { class: "text-style-sub-header text-app-950 p-6" }, "Add Link to Editor", -1), cC = { class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6" }, dC = {
20584
20597
  key: 0,
20585
20598
  class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6"
20586
- }, aC = {
20599
+ }, uC = {
20587
20600
  key: 1,
20588
20601
  class: "border-t-[1px] border-steel-500 flex flex-col gap-y-[25px] py-[25px] p-6"
20589
- }, cC = {
20602
+ }, fC = {
20590
20603
  key: 0,
20591
20604
  class: "border-t-[1px] border-steel-500 flex justify-end gap-x-[30px] pt-[25px] p-6"
20592
20605
  }, lp = {
@@ -20623,14 +20636,14 @@ const Rk = fe.create({
20623
20636
  class: "w-[50%] h-fit !p-0"
20624
20637
  }, {
20625
20638
  header: P(({ handleClose: f }) => [
20626
- oC,
20639
+ aC,
20627
20640
  I(Dd, {
20628
20641
  class: "!w-[14px] !h-[14px] p-0 top-[25px] right-[25px] absolute text-steel-950 cursor-pointer",
20629
20642
  onClick: u[0] || (u[0] = (p) => d.$emit("close"))
20630
20643
  })
20631
20644
  ]),
20632
20645
  footer: P(() => [
20633
- r.value ? _("", !0) : (E(), V("div", cC, [
20646
+ r.value ? _("", !0) : (E(), V("div", fC, [
20634
20647
  I(K(Od), {
20635
20648
  onClick: u[4] || (u[4] = (f) => d.$emit("close"))
20636
20649
  }, {
@@ -20650,7 +20663,7 @@ const Rk = fe.create({
20650
20663
  ]))
20651
20664
  ]),
20652
20665
  default: P(() => [
20653
- x("div", sC, [
20666
+ x("div", cC, [
20654
20667
  I(K(Mp), {
20655
20668
  useLabels: "",
20656
20669
  leftLabel: "Web URL",
@@ -20660,7 +20673,7 @@ const Rk = fe.create({
20660
20673
  "onUpdate:modelValue": u[1] || (u[1] = (f) => r.value = f)
20661
20674
  }, null, 8, ["modelValue"])
20662
20675
  ]),
20663
- r.value ? _("", !0) : (E(), V("div", lC, [
20676
+ r.value ? _("", !0) : (E(), V("div", dC, [
20664
20677
  I(K(Ta), {
20665
20678
  label: "Display Text",
20666
20679
  placeholder: "Enter display text for link...",
@@ -20678,7 +20691,7 @@ const Rk = fe.create({
20678
20691
  required: ""
20679
20692
  }, null, 8, ["modelValue"])
20680
20693
  ])),
20681
- r.value ? (E(), V("div", aC, [
20694
+ r.value ? (E(), V("div", uC, [
20682
20695
  I(K(Rd), {
20683
20696
  tableData: n.documents,
20684
20697
  tableCols: s,
@@ -20690,18 +20703,18 @@ const Rk = fe.create({
20690
20703
  _: 1
20691
20704
  }));
20692
20705
  }
20693
- }, dC = { key: 0 }, uC = {
20706
+ }, pC = { key: 0 }, hC = {
20694
20707
  key: 0,
20695
20708
  class: "flex flex-col"
20696
- }, fC = /* @__PURE__ */ x("div", { class: "w-full bg-proclus-950 px-[15px] py-[8px] leading-tight" }, [
20709
+ }, mC = /* @__PURE__ */ x("div", { class: "w-full bg-proclus-950 px-[15px] py-[8px] leading-tight" }, [
20697
20710
  /* @__PURE__ */ x("h2", { class: "text-[14px] font-semibold text-white" }, "Edit options")
20698
- ], -1), pC = { class: "w-full flex flex-wrap justify-between p-[15px] gap-y-[15px]" }, hC = { class: "w-full border-t-[1px] border-black-600 flex flex-row items-center justify-between px-[15px] py-[15px]" }, mC = {
20711
+ ], -1), gC = { class: "w-full flex flex-wrap justify-between p-[15px] gap-y-[15px]" }, yC = { class: "w-full border-t-[1px] border-black-600 flex flex-row items-center justify-between px-[15px] py-[15px]" }, bC = {
20699
20712
  key: 0,
20700
20713
  class: "flex flex-col justify-start items-start h-full"
20701
- }, gC = /* @__PURE__ */ x("div", { class: "w-full bg-black-950 px-4 py-6 leading-tight" }, [
20714
+ }, vC = /* @__PURE__ */ x("div", { class: "w-full bg-black-950 px-4 py-6 leading-tight" }, [
20702
20715
  /* @__PURE__ */ x("h2", { class: "text-base font-semibold text-white" }, "Edit options"),
20703
20716
  /* @__PURE__ */ x("p", { class: "text-steel-600" }, "Use the options below to add elements to the editor.")
20704
- ], -1), yC = { class: "w-full px-4" }, bC = { class: "w-full grid grid-cols-2 gap-5 gap-y-3 px-4 mt-4" }, vC = { class: "w-full border-t-[1px] border-steel-500 h-12 mt-auto flex flex-row items-center justify-end py-8 px-6 gap-6" }, xC = {
20717
+ ], -1), xC = { class: "w-full px-4" }, wC = { class: "w-full grid grid-cols-2 gap-5 gap-y-3 px-4 mt-4" }, kC = { class: "w-full border-t-[1px] border-steel-500 h-12 mt-auto flex flex-row items-center justify-end py-8 px-6 gap-6" }, CC = {
20705
20718
  __name: "Sidebar",
20706
20719
  props: {
20707
20720
  editor: {
@@ -20822,13 +20835,13 @@ const Rk = fe.create({
20822
20835
  }, g = () => {
20823
20836
  r("save");
20824
20837
  };
20825
- return (b, v) => n.editor ? (E(), V("div", dC, [
20838
+ return (b, v) => n.editor ? (E(), V("div", pC, [
20826
20839
  x("div", {
20827
20840
  class: W(["sidebar-mobile lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-[#ffffff] shadow-xl transition-transform ease-in-out duration-300", n.isOpen ? "translate-y-0" : "translate-y-full"])
20828
20841
  }, [
20829
- n.isOpen ? (E(), V("div", uC, [
20830
- fC,
20831
- x("div", pC, [
20842
+ n.isOpen ? (E(), V("div", hC, [
20843
+ mC,
20844
+ x("div", gC, [
20832
20845
  I(Le, {
20833
20846
  controlName: "Image",
20834
20847
  active: n.editor.isActive("image"),
@@ -20924,7 +20937,7 @@ const Rk = fe.create({
20924
20937
  _: 1
20925
20938
  }, 8, ["active", "disabled"])
20926
20939
  ]),
20927
- x("div", hC, [
20940
+ x("div", yC, [
20928
20941
  I(Vr, { onClick: m }, {
20929
20942
  default: P(() => [
20930
20943
  Be("Cancel")
@@ -20944,9 +20957,9 @@ const Rk = fe.create({
20944
20957
  key: 0,
20945
20958
  class: W(["hidden lg:block h-full absolute fixed right-0 top-0 bg-[#ffffff] shadow-xl z-50 transition transition-width ease-in-out duration-300", [n.isOpen ? "w-72" : "w-0", n.customClasses]])
20946
20959
  }, [
20947
- n.isOpen ? (E(), V("div", mC, [
20948
- gC,
20949
- x("div", yC, [
20960
+ n.isOpen ? (E(), V("div", bC, [
20961
+ vC,
20962
+ x("div", xC, [
20950
20963
  I(K(Md), {
20951
20964
  modelValue: i.value,
20952
20965
  "onUpdate:modelValue": v[6] || (v[6] = (w) => i.value = w),
@@ -20959,7 +20972,7 @@ const Rk = fe.create({
20959
20972
  _: 1
20960
20973
  }, 8, ["modelValue"])
20961
20974
  ]),
20962
- x("div", bC, [
20975
+ x("div", wC, [
20963
20976
  new String("image").includes(i.value.toLowerCase()) ? (E(), X(Le, {
20964
20977
  key: 0,
20965
20978
  controlName: "Image",
@@ -21055,7 +21068,7 @@ const Rk = fe.create({
21055
21068
  _: 1
21056
21069
  }, 8, ["active", "disabled"])) : _("", !0)
21057
21070
  ]),
21058
- x("div", vC, [
21071
+ x("div", kC, [
21059
21072
  I(Vr, { onClick: m }, {
21060
21073
  default: P(() => [
21061
21074
  Be("Cancel")
@@ -21091,7 +21104,7 @@ const Rk = fe.create({
21091
21104
  }, null, 8, ["uploadImage"])) : _("", !0)
21092
21105
  ])) : _("", !0);
21093
21106
  }
21094
- }, wC = {
21107
+ }, SC = {
21095
21108
  name: "InlineMenu",
21096
21109
  data() {
21097
21110
  return {
@@ -21163,33 +21176,33 @@ const Rk = fe.create({
21163
21176
  this.editor.chain().focus().setFontSize({ fontSize: this.fontSize }).run();
21164
21177
  }
21165
21178
  }
21166
- }, kC = { class: "bg-[#ffffff] flex flex-row rounded-md p-1 border-[1px] border-steel-500 max-w-[450px]" }, CC = { class: "flex flex-row gap-x-2" }, SC = ["onClick"], TC = ["onClick"], AC = { class: "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center" }, MC = {
21179
+ }, TC = { class: "bg-[#ffffff] flex flex-row rounded-md p-1 border-[1px] border-steel-500 max-w-[450px]" }, AC = { class: "flex flex-row gap-x-2" }, MC = ["onClick"], EC = ["onClick"], OC = { class: "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center" }, NC = {
21167
21180
  key: 0,
21168
21181
  class: "absolute top-9 z-10 p-1 rounded bg-steel-200 flex flex-row flex-wrap gap-x-1 max-w-[188px] border-[1px] border-steel-500"
21169
- }, EC = ["onClick"], OC = /* @__PURE__ */ x("b", null, "B", -1), NC = [
21170
- OC
21171
- ], DC = /* @__PURE__ */ x("i", null, "I", -1), RC = [
21172
- DC
21173
- ], IC = /* @__PURE__ */ x("u", null, "U", -1), LC = [
21174
- IC
21175
- ], PC = /* @__PURE__ */ x("del", null, "ab", -1), BC = [
21176
- PC
21177
- ], zC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-left" }, null, -1), $C = [
21178
- zC
21179
- ], HC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-center" }, null, -1), FC = [
21180
- HC
21181
- ], VC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-right" }, null, -1), jC = [
21182
- VC
21183
- ], _C = {
21182
+ }, DC = ["onClick"], RC = /* @__PURE__ */ x("b", null, "B", -1), IC = [
21183
+ RC
21184
+ ], LC = /* @__PURE__ */ x("i", null, "I", -1), PC = [
21185
+ LC
21186
+ ], BC = /* @__PURE__ */ x("u", null, "U", -1), zC = [
21187
+ BC
21188
+ ], $C = /* @__PURE__ */ x("del", null, "ab", -1), HC = [
21189
+ $C
21190
+ ], FC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-left" }, null, -1), VC = [
21191
+ FC
21192
+ ], jC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-center" }, null, -1), _C = [
21193
+ jC
21194
+ ], WC = /* @__PURE__ */ x("i", { class: "fa-solid fa-align-right" }, null, -1), UC = [
21195
+ WC
21196
+ ], qC = {
21184
21197
  key: 0,
21185
21198
  class: "flex flex-row gap-x-2 border-s-[1px] border-s-steel-950 pl-2 ml-2"
21186
21199
  };
21187
- function WC(n, e, t, r, i, o) {
21200
+ function KC(n, e, t, r, i, o) {
21188
21201
  const s = Tr("ChevronDownIcon"), l = Tr("DropdownMenu"), a = Tr("bubble-menu");
21189
21202
  return E(), X(a, { editor: t.editor }, {
21190
21203
  default: P(() => [
21191
- x("div", kC, [
21192
- x("div", CC, [
21204
+ x("div", TC, [
21205
+ x("div", AC, [
21193
21206
  I(l, {
21194
21207
  data: i.fontSizeSelection,
21195
21208
  forceWidth: "60px",
@@ -21203,25 +21216,25 @@ function WC(n, e, t, r, i, o) {
21203
21216
  }, [
21204
21217
  x("p", null, kn(o.findFontSize), 1),
21205
21218
  I(s, { class: "w-2 h-2 ml-1" })
21206
- ], 8, SC)
21219
+ ], 8, MC)
21207
21220
  ]),
21208
21221
  default: P(({ itemList: c, selectItem: d }) => [
21209
21222
  (E(!0), V(Cn, null, Fr(c, (u) => (E(), V("div", {
21210
21223
  key: u.id,
21211
21224
  onClick: (f) => d(u.id),
21212
21225
  class: "bg-[#ffffff] p-0.5 items-center flex justify-center cursor-pointer hover:bg-steel-500"
21213
- }, kn(u.val), 9, TC))), 128))
21226
+ }, kn(u.val), 9, EC))), 128))
21214
21227
  ]),
21215
21228
  _: 1
21216
21229
  }, 8, ["data", "modelValue"]),
21217
- x("button", AC, [
21230
+ x("button", OC, [
21218
21231
  x("div", {
21219
21232
  class: "size-4 rounded",
21220
21233
  style: un("background-color:" + o.findFontColor),
21221
21234
  onClick: e[1] || (e[1] = (...c) => o.toggleColorPicker && o.toggleColorPicker(...c))
21222
21235
  }, null, 4)
21223
21236
  ]),
21224
- i.colorPicker ? (E(), V("div", MC, [
21237
+ i.colorPicker ? (E(), V("div", NC, [
21225
21238
  (E(!0), V(Cn, null, Fr(i.colors, (c) => (E(), V("div", {
21226
21239
  class: "rounded border-[1px] border-steel-500 mb-1 cursor-pointer",
21227
21240
  key: c.id,
@@ -21231,38 +21244,38 @@ function WC(n, e, t, r, i, o) {
21231
21244
  class: "size-4 rounded m-1",
21232
21245
  style: un("background-color:" + c.color)
21233
21246
  }, null, 4)
21234
- ], 8, EC))), 128))
21247
+ ], 8, DC))), 128))
21235
21248
  ])) : _("", !0),
21236
21249
  x("button", {
21237
21250
  onClick: e[2] || (e[2] = (c) => t.editor.chain().focus().toggleBold().run()),
21238
21251
  class: W([t.editor.isActive("bold") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21239
- }, NC, 2),
21252
+ }, IC, 2),
21240
21253
  x("button", {
21241
21254
  onClick: e[3] || (e[3] = (c) => t.editor.chain().focus().toggleItalic().run()),
21242
21255
  class: W([t.editor.isActive("italic") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21243
- }, RC, 2),
21256
+ }, PC, 2),
21244
21257
  x("button", {
21245
21258
  onClick: e[4] || (e[4] = (c) => t.editor.chain().focus().toggleUnderline().run()),
21246
21259
  class: W([t.editor.isActive("underline") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21247
- }, LC, 2),
21260
+ }, zC, 2),
21248
21261
  x("button", {
21249
21262
  onClick: e[5] || (e[5] = (c) => t.editor.chain().focus().toggleStrike().run()),
21250
21263
  class: W([t.editor.isActive("strike") ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21251
- }, BC, 2),
21264
+ }, HC, 2),
21252
21265
  x("button", {
21253
21266
  onClick: e[6] || (e[6] = (c) => t.editor.chain().focus().setTextAlign("left").run()),
21254
21267
  class: W([t.editor.isActive({ textAlign: "left" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21255
- }, $C, 2),
21268
+ }, VC, 2),
21256
21269
  x("button", {
21257
21270
  onClick: e[7] || (e[7] = (c) => t.editor.chain().focus().setTextAlign("center").run()),
21258
21271
  class: W([t.editor.isActive({ textAlign: "center" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21259
- }, FC, 2),
21272
+ }, _C, 2),
21260
21273
  x("button", {
21261
21274
  onClick: e[8] || (e[8] = (c) => t.editor.chain().focus().setTextAlign("right").run()),
21262
21275
  class: W([t.editor.isActive({ textAlign: "right" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border-[1px] border-solid border-steel-500 rounded p-0.5 items-center flex justify-center"])
21263
- }, jC, 2)
21276
+ }, UC, 2)
21264
21277
  ]),
21265
- o.listActive ? (E(), V("div", _C, [
21278
+ o.listActive ? (E(), V("div", qC, [
21266
21279
  t.editor.can().sinkListItem("listItem") ? (E(), V("button", {
21267
21280
  key: 0,
21268
21281
  onClick: e[9] || (e[9] = (c) => t.editor.chain().focus().sinkListItem("listItem").run()),
@@ -21279,10 +21292,10 @@ function WC(n, e, t, r, i, o) {
21279
21292
  _: 1
21280
21293
  }, 8, ["editor"]);
21281
21294
  }
21282
- const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21295
+ const JC = /* @__PURE__ */ El(SC, [["render", KC]]), GC = {
21283
21296
  key: 0,
21284
21297
  class: "flex flex-row justify-end mx-8 mb-2"
21285
- }, ES = {
21298
+ }, DS = {
21286
21299
  __name: "Tiptap",
21287
21300
  props: {
21288
21301
  modelValue: {
@@ -21347,7 +21360,7 @@ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21347
21360
  const h = p && !r.readOnly;
21348
21361
  s.value = h, zi(l, h), h ? (c(), o("sidebarOpened")) : o("sidebarClosed");
21349
21362
  } }), (p, h) => (E(), V("div", null, [
21350
- !r.readOnly && !r.hideEditButton ? (E(), V("div", qC, [
21363
+ !r.readOnly && !r.hideEditButton ? (E(), V("div", GC, [
21351
21364
  s.value ? _("", !0) : (E(), X(K(jr), {
21352
21365
  key: 0,
21353
21366
  class: "ml-8 mt-2",
@@ -21365,7 +21378,7 @@ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21365
21378
  class: "mx-8 bg-surface-raised text-black-950 dark:text-content rounded-md p-2 box-content transition transition-width ease-in-out duration-300",
21366
21379
  style: un("min-height:" + n.editorHeight + "; max-height:")
21367
21380
  }, null, 8, ["editor", "style"])) : _("", !0),
21368
- K(l) ? (E(), X(xC, {
21381
+ K(l) ? (E(), X(CC, {
21369
21382
  key: 2,
21370
21383
  editor: K(l),
21371
21384
  isOpen: K(l) && s.value,
@@ -21376,24 +21389,24 @@ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21376
21389
  onCancel: d,
21377
21390
  onSave: u
21378
21391
  }, null, 8, ["editor", "isOpen", "customClasses", "templateLocked", "documents", "uploadImage"])) : _("", !0),
21379
- K(l) && s.value ? (E(), X(UC, {
21392
+ K(l) && s.value ? (E(), X(JC, {
21380
21393
  key: 3,
21381
21394
  editor: K(l),
21382
21395
  class: "max-w-[450px]"
21383
21396
  }, null, 8, ["editor"])) : _("", !0)
21384
21397
  ]));
21385
21398
  }
21386
- }, KC = { class: "flex flex-col w-full" }, JC = /* @__PURE__ */ x("i", { class: "fa-solid fa-bold text-sm" }, null, -1), GC = [
21387
- JC
21388
- ], YC = /* @__PURE__ */ x("i", { class: "fa-solid fa-italic text-sm" }, null, -1), XC = [
21389
- YC
21390
- ], QC = /* @__PURE__ */ x("i", { class: "fa-solid fa-globe-pointer text-sm" }, null, -1), ZC = [
21391
- QC
21392
- ], eS = /* @__PURE__ */ x("i", { class: "fa-solid fa-list text-sm" }, null, -1), tS = [
21393
- eS
21394
- ], nS = /* @__PURE__ */ x("i", { class: "fa-solid fa-image text-sm" }, null, -1), rS = [
21395
- nS
21396
- ], OS = {
21399
+ }, YC = { class: "flex flex-col w-full" }, XC = /* @__PURE__ */ x("i", { class: "fa-solid fa-bold text-sm" }, null, -1), QC = [
21400
+ XC
21401
+ ], ZC = /* @__PURE__ */ x("i", { class: "fa-solid fa-italic text-sm" }, null, -1), eS = [
21402
+ ZC
21403
+ ], tS = /* @__PURE__ */ x("i", { class: "fa-solid fa-globe-pointer text-sm" }, null, -1), nS = [
21404
+ tS
21405
+ ], rS = /* @__PURE__ */ x("i", { class: "fa-solid fa-list text-sm" }, null, -1), iS = [
21406
+ rS
21407
+ ], oS = /* @__PURE__ */ x("i", { class: "fa-solid fa-image text-sm" }, null, -1), sS = [
21408
+ oS
21409
+ ], RS = {
21397
21410
  __name: "TiptapTextArea",
21398
21411
  props: {
21399
21412
  modelValue: {
@@ -21504,30 +21517,30 @@ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21504
21517
  o.value = !0;
21505
21518
  };
21506
21519
  return (b, v) => (E(), V(Cn, null, [
21507
- x("div", KC, [
21520
+ x("div", YC, [
21508
21521
  x("div", {
21509
21522
  class: W(["flex flex-row items-center w-full border-t-[1px] border-l border-r border-steel-500 rounded-tl-2xl rounded-tr-2xl bg-steel-100 px-5 gap-x-1", { "opacity-50 pointer-events-none": n.readOnly }])
21510
21523
  }, [
21511
21524
  x("button", {
21512
21525
  class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("bold") ? "bg-app-950" : ""]),
21513
21526
  onClick: a
21514
- }, GC, 2),
21527
+ }, QC, 2),
21515
21528
  x("button", {
21516
21529
  class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("italic") ? "bg-app-950" : ""]),
21517
21530
  onClick: c
21518
- }, XC, 2),
21531
+ }, eS, 2),
21519
21532
  x("button", {
21520
21533
  class: "h-8 w-8 hover:bg-steel-300",
21521
21534
  onClick: h
21522
- }, ZC),
21535
+ }, nS),
21523
21536
  x("button", {
21524
21537
  class: W(["h-8 w-8 hover:bg-steel-300", K(s).isActive("bulletList") ? "bg-app-950" : ""]),
21525
21538
  onClick: d
21526
- }, tS, 2),
21539
+ }, iS, 2),
21527
21540
  x("button", {
21528
21541
  class: "h-8 w-8 hover:bg-steel-300",
21529
21542
  onClick: g
21530
- }, rS)
21543
+ }, sS)
21531
21544
  ], 2),
21532
21545
  x("div", {
21533
21546
  class: W(["w-full px-5 py-3 rounded-bl-2xl rounded-br-2xl border-[1px] border-steel-500 dark:border-line overflow-auto resize-y text-black-950 dark:text-content", { "bg-surface-raised": !n.readOnly, "bg-surface-sunken cursor-not-allowed": n.readOnly }])
@@ -21574,7 +21587,7 @@ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21574
21587
  ]
21575
21588
  }
21576
21589
  ]
21577
- }), NS = {
21590
+ }), IS = {
21578
21591
  type: "doc",
21579
21592
  content: [
21580
21593
  Ho("Description"),
@@ -21591,7 +21604,7 @@ const UC = /* @__PURE__ */ El(wC, [["render", WC]]), qC = {
21591
21604
  ]
21592
21605
  };
21593
21606
  export {
21594
- NS as EDSTemplate,
21595
- ES as Tiptap,
21596
- OS as TiptapTextArea
21607
+ IS as EDSTemplate,
21608
+ DS as Tiptap,
21609
+ RS as TiptapTextArea
21597
21610
  };