vdc-editor 0.1.213 → 0.1.215

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.
@@ -6869,7 +6869,7 @@ class yh {
6869
6869
  return Ue.between(e.resolve(this.anchor), e.resolve(this.head));
6870
6870
  }
6871
6871
  }
6872
- class et extends tt {
6872
+ class Qe extends tt {
6873
6873
  /**
6874
6874
  Create a node selection. Does not verify the validity of its
6875
6875
  argument.
@@ -6880,13 +6880,13 @@ class et extends tt {
6880
6880
  }
6881
6881
  map(e, n) {
6882
6882
  let { deleted: o, pos: r } = n.mapResult(this.anchor), i = e.resolve(r);
6883
- return o ? tt.near(i) : new et(i);
6883
+ return o ? tt.near(i) : new Qe(i);
6884
6884
  }
6885
6885
  content() {
6886
6886
  return new Pe(Ce.from(this.node), 0, 0);
6887
6887
  }
6888
6888
  eq(e) {
6889
- return e instanceof et && e.anchor == this.anchor;
6889
+ return e instanceof Qe && e.anchor == this.anchor;
6890
6890
  }
6891
6891
  toJSON() {
6892
6892
  return { type: "node", anchor: this.anchor };
@@ -6900,13 +6900,13 @@ class et extends tt {
6900
6900
  static fromJSON(e, n) {
6901
6901
  if (typeof n.anchor != "number")
6902
6902
  throw new RangeError("Invalid input for NodeSelection.fromJSON");
6903
- return new et(e.resolve(n.anchor));
6903
+ return new Qe(e.resolve(n.anchor));
6904
6904
  }
6905
6905
  /**
6906
6906
  Create a node selection from non-resolved positions.
6907
6907
  */
6908
6908
  static create(e, n) {
6909
- return new et(e.resolve(n));
6909
+ return new Qe(e.resolve(n));
6910
6910
  }
6911
6911
  /**
6912
6912
  Determines whether the given node may be selected as a node
@@ -6916,8 +6916,8 @@ class et extends tt {
6916
6916
  return !e.isText && e.type.spec.selectable !== !1;
6917
6917
  }
6918
6918
  }
6919
- et.prototype.visible = !1;
6920
- tt.jsonID("node", et);
6919
+ Qe.prototype.visible = !1;
6920
+ tt.jsonID("node", Qe);
6921
6921
  class Rb {
6922
6922
  constructor(e) {
6923
6923
  this.anchor = e;
@@ -6928,7 +6928,7 @@ class Rb {
6928
6928
  }
6929
6929
  resolve(e) {
6930
6930
  let n = e.resolve(this.anchor), o = n.nodeAfter;
6931
- return o && et.isSelectable(o) ? new et(n) : tt.near(n);
6931
+ return o && Qe.isSelectable(o) ? new Qe(n) : tt.near(n);
6932
6932
  }
6933
6933
  }
6934
6934
  class vo extends tt {
@@ -6980,8 +6980,8 @@ function Ml(t, e, n, o, r, i = !1) {
6980
6980
  for (let s = o - (r > 0 ? 0 : 1); r > 0 ? s < e.childCount : s >= 0; s += r) {
6981
6981
  let a = e.child(s);
6982
6982
  if (a.isAtom) {
6983
- if (!i && et.isSelectable(a))
6984
- return et.create(t, n - (r < 0 ? a.nodeSize : 0));
6983
+ if (!i && Qe.isSelectable(a))
6984
+ return Qe.create(t, n - (r < 0 ? a.nodeSize : 0));
6985
6985
  } else {
6986
6986
  let l = Ml(t, a, n + r, r < 0 ? a.childCount : 0, r, i);
6987
6987
  if (l)
@@ -8887,9 +8887,9 @@ function Db(t, e = null) {
8887
8887
  for (l = s; r && !r.node; )
8888
8888
  r = r.parent;
8889
8889
  let f = r.node;
8890
- if (r && f.isAtom && et.isSelectable(f) && r.parent && !(f.isInline && eD(n.focusNode, n.focusOffset, r.dom))) {
8890
+ if (r && f.isAtom && Qe.isSelectable(f) && r.parent && !(f.isInline && eD(n.focusNode, n.focusOffset, r.dom))) {
8891
8891
  let h = r.posBefore;
8892
- u = new et(s == h ? a : o.resolve(h));
8892
+ u = new Qe(s == h ? a : o.resolve(h));
8893
8893
  }
8894
8894
  } else {
8895
8895
  if (n instanceof t.dom.ownerDocument.defaultView.Selection && n.rangeCount > 1) {
@@ -8971,7 +8971,7 @@ function MD(t) {
8971
8971
  r ? n.setStart(o.parentNode, io(o) + 1) : n.setStart(o, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !r && !t.state.selection.visible && Vo && Fs <= 11 && (o.disabled = !0, o.disabled = !1);
8972
8972
  }
8973
8973
  function eC(t, e) {
8974
- if (e instanceof et) {
8974
+ if (e instanceof Qe) {
8975
8975
  let n = t.docView.descAt(e.from);
8976
8976
  n != t.lastSelectedViewDesc && (u6(t), n && n.selectNode(), t.lastSelectedViewDesc = n);
8977
8977
  } else
@@ -9019,17 +9019,17 @@ function d6(t, e, n) {
9019
9019
  } else if (o.empty) {
9020
9020
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
9021
9021
  let r = sg(t.state, e);
9022
- return r && r instanceof et ? Ss(t, r) : !1;
9022
+ return r && r instanceof Qe ? Ss(t, r) : !1;
9023
9023
  } else if (!(Er && n.indexOf("m") > -1)) {
9024
9024
  let r = o.$head, i = r.textOffset ? null : e < 0 ? r.nodeBefore : r.nodeAfter, s;
9025
9025
  if (!i || i.isText)
9026
9026
  return !1;
9027
9027
  let a = e < 0 ? r.pos - i.nodeSize : r.pos;
9028
- return i.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? et.isSelectable(i) ? Ss(t, new et(e < 0 ? t.state.doc.resolve(r.pos - i.nodeSize) : r)) : rd ? Ss(t, new Ue(t.state.doc.resolve(e < 0 ? a : a + i.nodeSize))) : !1 : !1;
9028
+ return i.isAtom || (s = t.docView.descAt(a)) && !s.contentDOM ? Qe.isSelectable(i) ? Ss(t, new Qe(e < 0 ? t.state.doc.resolve(r.pos - i.nodeSize) : r)) : rd ? Ss(t, new Ue(t.state.doc.resolve(e < 0 ? a : a + i.nodeSize))) : !1 : !1;
9029
9029
  }
9030
9030
  } else return !1;
9031
9031
  else {
9032
- if (o instanceof et && o.node.isInline)
9032
+ if (o instanceof Qe && o.node.isInline)
9033
9033
  return Ss(t, new Ue(e > 0 ? o.$to : o.$from));
9034
9034
  {
9035
9035
  let r = sg(t.state, e);
@@ -9185,7 +9185,7 @@ function p6(t, e, n) {
9185
9185
  let { $from: r, $to: i } = o;
9186
9186
  if (!r.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
9187
9187
  let s = sg(t.state, e);
9188
- if (s && s instanceof et)
9188
+ if (s && s instanceof Qe)
9189
9189
  return Ss(t, s);
9190
9190
  }
9191
9191
  if (!r.parent.inlineContent) {
@@ -9542,22 +9542,22 @@ function ZD(t, e) {
9542
9542
  if (e == -1)
9543
9543
  return !1;
9544
9544
  let n = t.state.doc.resolve(e), o = n.nodeAfter;
9545
- return o && o.isAtom && et.isSelectable(o) ? (Vl(t, new et(n)), !0) : !1;
9545
+ return o && o.isAtom && Qe.isSelectable(o) ? (Vl(t, new Qe(n)), !0) : !1;
9546
9546
  }
9547
9547
  function QD(t, e) {
9548
9548
  if (e == -1)
9549
9549
  return !1;
9550
9550
  let n = t.state.selection, o, r;
9551
- n instanceof et && (o = n.node);
9551
+ n instanceof Qe && (o = n.node);
9552
9552
  let i = t.state.doc.resolve(e);
9553
9553
  for (let s = i.depth + 1; s > 0; s--) {
9554
9554
  let a = s > i.depth ? i.nodeAfter : i.node(s);
9555
- if (et.isSelectable(a)) {
9555
+ if (Qe.isSelectable(a)) {
9556
9556
  o && n.$from.depth > 0 && s >= n.$from.depth && i.before(n.$from.depth + 1) == n.$from.pos ? r = i.before(n.$from.depth) : r = i.before(s);
9557
9557
  break;
9558
9558
  }
9559
9559
  }
9560
- return r != null ? (Vl(t, et.create(t.state.doc, r)), !0) : !1;
9560
+ return r != null ? (Vl(t, Qe.create(t.state.doc, r)), !0) : !1;
9561
9561
  }
9562
9562
  function eP(t, e, n, o, r) {
9563
9563
  return $b(t, "handleClickOn", e, n, o) || t.someProp("handleClick", (i) => i(t, e, o)) || (r ? QD(t, n) : ZD(t, n));
@@ -9579,8 +9579,8 @@ function oP(t, e, n) {
9579
9579
  let s = i > r.depth ? r.nodeAfter : r.node(i), a = r.before(i);
9580
9580
  if (s.inlineContent)
9581
9581
  Vl(t, Ue.create(o, a + 1, a + 1 + s.content.size));
9582
- else if (et.isSelectable(s))
9583
- Vl(t, et.create(o, a));
9582
+ else if (Qe.isSelectable(s))
9583
+ Vl(t, Qe.create(o, a));
9584
9584
  else
9585
9585
  continue;
9586
9586
  return !0;
@@ -9611,7 +9611,7 @@ class rP {
9611
9611
  const a = r ? null : o.target, l = a ? e.docView.nearestDesc(a, !0) : null;
9612
9612
  this.target = l && l.dom.nodeType == 1 ? l.dom : null;
9613
9613
  let { selection: u } = e.state;
9614
- (o.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || u instanceof et && u.from <= s && u.to > s) && (this.mightDrag = {
9614
+ (o.button == 0 && i.type.spec.draggable && i.type.spec.selectable !== !1 || u instanceof Qe && u.from <= s && u.to > s) && (this.mightDrag = {
9615
9615
  node: i,
9616
9616
  pos: s,
9617
9617
  addAttr: !!(this.target && !this.target.draggable),
@@ -9786,12 +9786,12 @@ Mo.dragstart = (t, e) => {
9786
9786
  if (o && o.done(), !n.dataTransfer)
9787
9787
  return;
9788
9788
  let r = t.state.selection, i = r.empty ? null : t.posAtCoords(Ch(n)), s;
9789
- if (!(i && i.pos >= r.from && i.pos <= (r instanceof et ? r.to - 1 : r.to))) {
9789
+ if (!(i && i.pos >= r.from && i.pos <= (r instanceof Qe ? r.to - 1 : r.to))) {
9790
9790
  if (o && o.mightDrag)
9791
- s = et.create(t.state.doc, o.mightDrag.pos);
9791
+ s = Qe.create(t.state.doc, o.mightDrag.pos);
9792
9792
  else if (n.target && n.target.nodeType == 1) {
9793
9793
  let f = t.docView.nearestDesc(n.target, !0);
9794
- f && f.node.type.spec.draggable && f != t.docView && (s = et.create(t.state.doc, f.posBefore));
9794
+ f && f.node.type.spec.draggable && f != t.docView && (s = Qe.create(t.state.doc, f.posBefore));
9795
9795
  }
9796
9796
  }
9797
9797
  let a = (s || t.state.selection).content(), { dom: l, text: u, slice: d } = Bb(t, a);
@@ -9834,8 +9834,8 @@ No.drop = (t, e) => {
9834
9834
  if (f ? u.replaceRangeWith(d, d, s.content.firstChild) : u.replaceRange(d, d, s), u.doc.eq(h))
9835
9835
  return;
9836
9836
  let m = u.doc.resolve(d);
9837
- if (f && et.isSelectable(s.content.firstChild) && m.nodeAfter && m.nodeAfter.sameMarkup(s.content.firstChild))
9838
- u.setSelection(new et(m));
9837
+ if (f && Qe.isSelectable(s.content.firstChild) && m.nodeAfter && m.nodeAfter.sameMarkup(s.content.firstChild))
9838
+ u.setSelection(new Qe(m));
9839
9839
  else {
9840
9840
  let b = u.mapping.map(l);
9841
9841
  u.mapping.maps[u.mapping.maps.length - 1].forEach((y, w, x, _) => b = _), u.setSelection(Pb(t, m, u.doc.resolve(b)));
@@ -10849,7 +10849,7 @@ class kP {
10849
10849
  scrollToSelection() {
10850
10850
  let e = this.domSelectionRange().focusNode;
10851
10851
  if (!(!e || !this.dom.contains(e.nodeType == 1 ? e : e.parentNode))) {
10852
- if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof et) {
10852
+ if (!this.someProp("handleScrollToSelection", (n) => n(this))) if (this.state.selection instanceof Qe) {
10853
10853
  let n = this.docView.domAfterPos(this.state.selection.from);
10854
10854
  n.nodeType == 1 && Z4(this, n.getBoundingClientRect(), e);
10855
10855
  } else
@@ -10886,7 +10886,7 @@ class kP {
10886
10886
  let i = o.from + (this.state.doc.content.size - n.doc.content.size);
10887
10887
  (i > 0 && this.state.doc.nodeAt(i)) == o.node && (r = i);
10888
10888
  }
10889
- this.dragging = new hC(e.slice, e.move, r < 0 ? void 0 : et.create(this.state.doc, r));
10889
+ this.dragging = new hC(e.slice, e.move, r < 0 ? void 0 : Qe.create(this.state.doc, r));
10890
10890
  }
10891
10891
  someProp(e, n) {
10892
10892
  let o = this._props && this._props[e], r;
@@ -11307,13 +11307,13 @@ const wC = (t, e, n) => {
11307
11307
  let i = r.nodeBefore;
11308
11308
  if (OC(t, r, e, -1))
11309
11309
  return !0;
11310
- if (o.parent.content.size == 0 && (Yl(i, "end") || et.isSelectable(i)))
11310
+ if (o.parent.content.size == 0 && (Yl(i, "end") || Qe.isSelectable(i)))
11311
11311
  for (let s = o.depth; ; s--) {
11312
11312
  let a = vh(t.doc, o.before(s), o.after(s), Pe.empty);
11313
11313
  if (a && a.slice.size < a.to - a.from) {
11314
11314
  if (e) {
11315
11315
  let l = t.tr.step(a);
11316
- l.setSelection(Yl(i, "end") ? tt.findFrom(l.doc.resolve(l.mapping.map(r.pos, -1)), -1) : et.create(l.doc, r.pos - i.nodeSize)), e(l.scrollIntoView());
11316
+ l.setSelection(Yl(i, "end") ? tt.findFrom(l.doc.resolve(l.mapping.map(r.pos, -1)), -1) : Qe.create(l.doc, r.pos - i.nodeSize)), e(l.scrollIntoView());
11317
11317
  }
11318
11318
  return !0;
11319
11319
  }
@@ -11381,7 +11381,7 @@ const CC = (t, e, n) => {
11381
11381
  i = Wb(o);
11382
11382
  }
11383
11383
  let s = i && i.nodeBefore;
11384
- return !s || !et.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(et.create(t.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
11384
+ return !s || !Qe.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(Qe.create(t.doc, i.pos - s.nodeSize)).scrollIntoView()), !0);
11385
11385
  };
11386
11386
  function Wb(t) {
11387
11387
  if (!t.parent.type.spec.isolating)
@@ -11407,12 +11407,12 @@ const _C = (t, e, n) => {
11407
11407
  let i = r.nodeAfter;
11408
11408
  if (OC(t, r, e, 1))
11409
11409
  return !0;
11410
- if (o.parent.content.size == 0 && (Yl(i, "start") || et.isSelectable(i))) {
11410
+ if (o.parent.content.size == 0 && (Yl(i, "start") || Qe.isSelectable(i))) {
11411
11411
  let s = vh(t.doc, o.before(), o.after(), Pe.empty);
11412
11412
  if (s && s.slice.size < s.to - s.from) {
11413
11413
  if (e) {
11414
11414
  let a = t.tr.step(s);
11415
- a.setSelection(Yl(i, "start") ? tt.findFrom(a.doc.resolve(a.mapping.map(r.pos)), 1) : et.create(a.doc, a.mapping.map(r.pos))), e(a.scrollIntoView());
11415
+ a.setSelection(Yl(i, "start") ? tt.findFrom(a.doc.resolve(a.mapping.map(r.pos)), 1) : Qe.create(a.doc, a.mapping.map(r.pos))), e(a.scrollIntoView());
11416
11416
  }
11417
11417
  return !0;
11418
11418
  }
@@ -11428,7 +11428,7 @@ const _C = (t, e, n) => {
11428
11428
  i = jb(o);
11429
11429
  }
11430
11430
  let s = i && i.nodeAfter;
11431
- return !s || !et.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(et.create(t.doc, i.pos)).scrollIntoView()), !0);
11431
+ return !s || !Qe.isSelectable(s) ? !1 : (e && e(t.tr.setSelection(Qe.create(t.doc, i.pos)).scrollIntoView()), !0);
11432
11432
  };
11433
11433
  function jb(t) {
11434
11434
  if (!t.parent.type.spec.isolating)
@@ -11442,7 +11442,7 @@ function jb(t) {
11442
11442
  return null;
11443
11443
  }
11444
11444
  const $P = (t, e) => {
11445
- let n = t.selection, o = n instanceof et, r;
11445
+ let n = t.selection, o = n instanceof Qe, r;
11446
11446
  if (o) {
11447
11447
  if (n.node.isTextblock || !Gs(t.doc, n.from))
11448
11448
  return !1;
@@ -11451,12 +11451,12 @@ const $P = (t, e) => {
11451
11451
  return !1;
11452
11452
  if (e) {
11453
11453
  let i = t.tr.join(r);
11454
- o && i.setSelection(et.create(i.doc, r - t.doc.resolve(r).nodeBefore.nodeSize)), e(i.scrollIntoView());
11454
+ o && i.setSelection(Qe.create(i.doc, r - t.doc.resolve(r).nodeBefore.nodeSize)), e(i.scrollIntoView());
11455
11455
  }
11456
11456
  return !0;
11457
11457
  }, HP = (t, e) => {
11458
11458
  let n = t.selection, o;
11459
- if (n instanceof et) {
11459
+ if (n instanceof Qe) {
11460
11460
  if (n.node.isTextblock || !Gs(t.doc, n.to))
11461
11461
  return !1;
11462
11462
  o = n.to;
@@ -11518,7 +11518,7 @@ const VP = (t, e) => {
11518
11518
  function UP(t) {
11519
11519
  return (e, n) => {
11520
11520
  let { $from: o, $to: r } = e.selection;
11521
- if (e.selection instanceof et && e.selection.node.isBlock)
11521
+ if (e.selection instanceof Qe && e.selection.node.isBlock)
11522
11522
  return !o.parentOffset || !sr(e.doc, o.pos) ? !1 : (n && n(e.tr.split(o.pos).scrollIntoView()), !0);
11523
11523
  if (!o.depth)
11524
11524
  return !1;
@@ -11544,7 +11544,7 @@ function UP(t) {
11544
11544
  }
11545
11545
  const WP = UP(), jP = (t, e) => {
11546
11546
  let { $from: n, to: o } = t.selection, r, i = n.sharedDepth(o);
11547
- return i == 0 ? !1 : (r = n.before(i), e && e(t.tr.setSelection(et.create(t.doc, r))), !0);
11547
+ return i == 0 ? !1 : (r = n.before(i), e && e(t.tr.setSelection(Qe.create(t.doc, r))), !0);
11548
11548
  }, qP = (t, e) => (e && e(t.tr.setSelection(new vo(t.doc))), !0);
11549
11549
  function KP(t, e, n) {
11550
11550
  let o = e.nodeBefore, r = e.nodeAfter, i = e.index();
@@ -13275,7 +13275,7 @@ function Nh(t, { checkChildren: e = !0, ignoreWhitespace: n = !1 } = {}) {
13275
13275
  return !1;
13276
13276
  }
13277
13277
  function WC(t) {
13278
- return t instanceof et;
13278
+ return t instanceof Qe;
13279
13279
  }
13280
13280
  function jC(t, e, n) {
13281
13281
  const r = t.state.doc.content.size, i = Xi(e, 0, r), s = Xi(n, 0, r), a = t.coordsAtPos(i), l = t.coordsAtPos(s, -1), u = Math.min(a.top, l.top), d = Math.max(a.bottom, l.bottom), f = Math.min(a.left, l.left), h = Math.max(a.right, l.right), m = h - f, b = d - u, x = {
@@ -13344,7 +13344,7 @@ const mF = (t, e = {}) => ({ tr: n, state: o, dispatch: r }) => {
13344
13344
  return n.selection.$anchor.sameParent(n.selection.$head) && (s = n.selection.$anchor.parent.attrs), i.isTextblock ? r().command(({ commands: a }) => O6(i, { ...s, ...e })(n) ? !0 : a.clearNodes()).command(({ state: a }) => O6(i, { ...s, ...e })(a, o)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
13345
13345
  }, vF = (t) => ({ tr: e, dispatch: n }) => {
13346
13346
  if (n) {
13347
- const { doc: o } = e, r = Xi(t, 0, o.content.size), i = et.create(o, r);
13347
+ const { doc: o } = e, r = Xi(t, 0, o.content.size), i = Qe.create(o, r);
13348
13348
  e.setSelection(i);
13349
13349
  }
13350
13350
  return !0;
@@ -13367,7 +13367,7 @@ function D6(t, e) {
13367
13367
  }
13368
13368
  const xF = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, editor: r }) => {
13369
13369
  const { selection: i, doc: s } = e, { $from: a, $to: l } = i, u = r.extensionManager.attributes, d = jf(u, a.node().type.name, a.node().attrs);
13370
- if (i instanceof et && i.node.isBlock)
13370
+ if (i instanceof Qe && i.node.isBlock)
13371
13371
  return !a.parentOffset || !sr(s, a.pos) ? !1 : (o && (t && D6(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
13372
13372
  if (!a.parent.isBlock)
13373
13373
  return !1;
@@ -14488,7 +14488,7 @@ class WF {
14488
14488
  const b = this.getPos();
14489
14489
  if (typeof b != "number")
14490
14490
  return;
14491
- const y = et.create(u.state.doc, b), w = u.state.tr.setSelection(y);
14491
+ const y = Qe.create(u.state.doc, b), w = u.state.tr.setSelection(y);
14492
14492
  u.dispatch(w);
14493
14493
  }
14494
14494
  stopEvent(e) {
@@ -14503,7 +14503,7 @@ class WF {
14503
14503
  const i = e.type.startsWith("drag"), s = e.type === "drop";
14504
14504
  if ((["INPUT", "BUTTON", "SELECT", "TEXTAREA"].includes(o.tagName) || o.isContentEditable) && !s && !i)
14505
14505
  return !0;
14506
- const { isEditable: l } = this.editor, { isDragging: u } = this, d = !!this.node.type.spec.draggable, f = et.isSelectable(this.node), h = e.type === "copy", m = e.type === "paste", b = e.type === "cut", y = e.type === "mousedown";
14506
+ const { isEditable: l } = this.editor, { isDragging: u } = this, d = !!this.node.type.spec.draggable, f = Qe.isSelectable(this.node), h = e.type === "copy", m = e.type === "paste", b = e.type === "cut", y = e.type === "mousedown";
14507
14507
  if (!d && f && i && e.target === this.dom && e.preventDefault(), d && i && !u && e.target === this.dom)
14508
14508
  return e.preventDefault(), !1;
14509
14509
  if (d && l && !u && y) {
@@ -15860,7 +15860,7 @@ function _H(t, e) {
15860
15860
  clearDelayTimeouts: me,
15861
15861
  setProps: ge,
15862
15862
  setContent: Ne,
15863
- show: Ze,
15863
+ show: Je,
15864
15864
  hide: yt,
15865
15865
  hideWithInteractivity: jt,
15866
15866
  enable: oe,
@@ -16189,7 +16189,7 @@ function _H(t, e) {
16189
16189
  content: fe
16190
16190
  });
16191
16191
  }
16192
- function Ze() {
16192
+ function Je() {
16193
16193
  process.env.NODE_ENV !== "production" && Wi(C.state.isDestroyed, Sl("show"));
16194
16194
  var fe = C.state.isVisible, qe = C.state.isDestroyed, rt = !C.state.isEnabled, Pt = ci.isTouch && !C.props.touch, It = t1(C.props.duration, 0, nr.duration);
16195
16195
  if (!(fe || qe || rt || Pt) && !ue().hasAttribute("disabled") && (J("onShow", [C], !1), C.props.onShow(C) !== !1)) {
@@ -17070,7 +17070,7 @@ const vE = "1", RH = {
17070
17070
  }, cd = {
17071
17071
  SAVE: "ctrl+s,command+s"
17072
17072
  };
17073
- var Je = /* @__PURE__ */ ((t) => (t.COMPARE = "compare", t.EDITOR = "editor", t.STRAIGHT = "straight", t.REPORT = "report", t.PLAIN_TEXT = "plainText", t.SUPER_VIEW_MOBILE = "superViewMobile", t))(Je || {}), zo = /* @__PURE__ */ ((t) => (t.COMMENT = "editor-comment-section", t.DISABLE_SUPER_INPUT = "data-disable-super-input", t))(zo || {});
17073
+ var et = /* @__PURE__ */ ((t) => (t.COMPARE = "compare", t.EDITOR = "editor", t.STRAIGHT = "straight", t.REPORT = "report", t.PLAIN_TEXT = "plainText", t.SUPER_VIEW_MOBILE = "superViewMobile", t))(et || {}), zo = /* @__PURE__ */ ((t) => (t.COMMENT = "editor-comment-section", t.DISABLE_SUPER_INPUT = "data-disable-super-input", t))(zo || {});
17074
17074
  const LH = [
17075
17075
  "a",
17076
17076
  "abbr",
@@ -17232,9 +17232,9 @@ function yE(t) {
17232
17232
  }
17233
17233
  const bo = (t, e, n) => {
17234
17234
  if (typeof t == "object") return t;
17235
- if (typeof t == "string" && (t = yE(t), n === Je.PLAIN_TEXT && !e))
17235
+ if (typeof t == "string" && (t = yE(t), n === et.PLAIN_TEXT && !e))
17236
17236
  return t.replace(/\r?\n/g, "<br>");
17237
- if (!e || n === Je.PLAIN_TEXT || n === Je.EDITOR) return t;
17237
+ if (!e || n === et.PLAIN_TEXT || n === et.EDITOR) return t;
17238
17238
  const o = document.createElement("div");
17239
17239
  return o.innerHTML = t, PH(o), o.innerHTML;
17240
17240
  };
@@ -17289,7 +17289,7 @@ _p.exports;
17289
17289
  ["partial", T],
17290
17290
  ["partialRight", A],
17291
17291
  ["rearg", F]
17292
- ], Ve = "[object Arguments]", Ye = "[object Array]", se = "[object AsyncFunction]", ce = "[object Boolean]", we = "[object Date]", xe = "[object DOMException]", Ae = "[object Error]", ae = "[object Function]", Me = "[object GeneratorFunction]", Ke = "[object Map]", it = "[object Number]", Nt = "[object Null]", Ut = "[object Object]", q = "[object Promise]", z = "[object Proxy]", ve = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", mt = "[object Symbol]", oe = "[object Undefined]", X = "[object WeakMap]", me = "[object WeakSet]", ge = "[object ArrayBuffer]", Ne = "[object DataView]", Ze = "[object Float32Array]", yt = "[object Float64Array]", jt = "[object Int8Array]", pn = "[object Int16Array]", Lr = "[object Int32Array]", fe = "[object Uint8Array]", qe = "[object Uint8ClampedArray]", rt = "[object Uint16Array]", Pt = "[object Uint32Array]", It = /\b__p \+= '';/g, Fn = /\b(__p \+=) '' \+/g, Zn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Qn = /&(?:amp|lt|gt|quot|#39);/g, Dr = /[&<>"']/g, eo = RegExp(Qn.source), Si = RegExp(Dr.source), sl = /<%-([\s\S]+?)%>/g, us = /<%([\s\S]+?)%>/g, Cd = /<%=([\s\S]+?)%>/g, Au = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, al = /^\w*$/, M7 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _0 = /[\\^$.*+?()[\]{}|]/g, N7 = RegExp(_0.source), S0 = /^\s+/, I7 = /\s/, R7 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, L7 = /\{\n\/\* \[wrapped with (.+)\] \*/, D7 = /,? & /, P7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, B7 = /[()=,{}\[\]\/\s]/, F7 = /\\(\\)?/g, $7 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Z2 = /\w*$/, H7 = /^[-+]0x[0-9a-f]+$/i, z7 = /^0b[01]+$/i, V7 = /^\[object .+?Constructor\]$/, U7 = /^0o[0-7]+$/i, W7 = /^(?:0|[1-9]\d*)$/, j7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ed = /($^)/, q7 = /['\n\r\u2028\u2029\\]/g, _d = "\\ud800-\\udfff", K7 = "\\u0300-\\u036f", G7 = "\\ufe20-\\ufe2f", X7 = "\\u20d0-\\u20ff", Q2 = K7 + G7 + X7, ey = "\\u2700-\\u27bf", ty = "a-z\\xdf-\\xf6\\xf8-\\xff", Y7 = "\\xac\\xb1\\xd7\\xf7", J7 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Z7 = "\\u2000-\\u206f", Q7 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ny = "A-Z\\xc0-\\xd6\\xd8-\\xde", oy = "\\ufe0e\\ufe0f", ry = Y7 + J7 + Z7 + Q7, T0 = "['’]", ek = "[" + _d + "]", iy = "[" + ry + "]", Sd = "[" + Q2 + "]", sy = "\\d+", tk = "[" + ey + "]", ay = "[" + ty + "]", ly = "[^" + _d + ry + sy + ey + ty + ny + "]", k0 = "\\ud83c[\\udffb-\\udfff]", nk = "(?:" + Sd + "|" + k0 + ")", uy = "[^" + _d + "]", A0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", O0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", ll = "[" + ny + "]", cy = "\\u200d", dy = "(?:" + ay + "|" + ly + ")", ok = "(?:" + ll + "|" + ly + ")", fy = "(?:" + T0 + "(?:d|ll|m|re|s|t|ve))?", py = "(?:" + T0 + "(?:D|LL|M|RE|S|T|VE))?", hy = nk + "?", my = "[" + oy + "]?", rk = "(?:" + cy + "(?:" + [uy, A0, O0].join("|") + ")" + my + hy + ")*", ik = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", sk = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gy = my + hy + rk, ak = "(?:" + [tk, A0, O0].join("|") + ")" + gy, lk = "(?:" + [uy + Sd + "?", Sd, A0, O0, ek].join("|") + ")", uk = RegExp(T0, "g"), ck = RegExp(Sd, "g"), M0 = RegExp(k0 + "(?=" + k0 + ")|" + lk + gy, "g"), dk = RegExp([
17292
+ ], Ve = "[object Arguments]", Ye = "[object Array]", se = "[object AsyncFunction]", ce = "[object Boolean]", we = "[object Date]", xe = "[object DOMException]", Ae = "[object Error]", ae = "[object Function]", Me = "[object GeneratorFunction]", Ke = "[object Map]", it = "[object Number]", Nt = "[object Null]", Ut = "[object Object]", q = "[object Promise]", z = "[object Proxy]", ve = "[object RegExp]", Oe = "[object Set]", Ge = "[object String]", mt = "[object Symbol]", oe = "[object Undefined]", X = "[object WeakMap]", me = "[object WeakSet]", ge = "[object ArrayBuffer]", Ne = "[object DataView]", Je = "[object Float32Array]", yt = "[object Float64Array]", jt = "[object Int8Array]", pn = "[object Int16Array]", Lr = "[object Int32Array]", fe = "[object Uint8Array]", qe = "[object Uint8ClampedArray]", rt = "[object Uint16Array]", Pt = "[object Uint32Array]", It = /\b__p \+= '';/g, Fn = /\b(__p \+=) '' \+/g, Zn = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Qn = /&(?:amp|lt|gt|quot|#39);/g, Dr = /[&<>"']/g, eo = RegExp(Qn.source), Si = RegExp(Dr.source), sl = /<%-([\s\S]+?)%>/g, us = /<%([\s\S]+?)%>/g, Cd = /<%=([\s\S]+?)%>/g, Au = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, al = /^\w*$/, M7 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, _0 = /[\\^$.*+?()[\]{}|]/g, N7 = RegExp(_0.source), S0 = /^\s+/, I7 = /\s/, R7 = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, L7 = /\{\n\/\* \[wrapped with (.+)\] \*/, D7 = /,? & /, P7 = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, B7 = /[()=,{}\[\]\/\s]/, F7 = /\\(\\)?/g, $7 = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Z2 = /\w*$/, H7 = /^[-+]0x[0-9a-f]+$/i, z7 = /^0b[01]+$/i, V7 = /^\[object .+?Constructor\]$/, U7 = /^0o[0-7]+$/i, W7 = /^(?:0|[1-9]\d*)$/, j7 = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, Ed = /($^)/, q7 = /['\n\r\u2028\u2029\\]/g, _d = "\\ud800-\\udfff", K7 = "\\u0300-\\u036f", G7 = "\\ufe20-\\ufe2f", X7 = "\\u20d0-\\u20ff", Q2 = K7 + G7 + X7, ey = "\\u2700-\\u27bf", ty = "a-z\\xdf-\\xf6\\xf8-\\xff", Y7 = "\\xac\\xb1\\xd7\\xf7", J7 = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Z7 = "\\u2000-\\u206f", Q7 = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ny = "A-Z\\xc0-\\xd6\\xd8-\\xde", oy = "\\ufe0e\\ufe0f", ry = Y7 + J7 + Z7 + Q7, T0 = "['’]", ek = "[" + _d + "]", iy = "[" + ry + "]", Sd = "[" + Q2 + "]", sy = "\\d+", tk = "[" + ey + "]", ay = "[" + ty + "]", ly = "[^" + _d + ry + sy + ey + ty + ny + "]", k0 = "\\ud83c[\\udffb-\\udfff]", nk = "(?:" + Sd + "|" + k0 + ")", uy = "[^" + _d + "]", A0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", O0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", ll = "[" + ny + "]", cy = "\\u200d", dy = "(?:" + ay + "|" + ly + ")", ok = "(?:" + ll + "|" + ly + ")", fy = "(?:" + T0 + "(?:d|ll|m|re|s|t|ve))?", py = "(?:" + T0 + "(?:D|LL|M|RE|S|T|VE))?", hy = nk + "?", my = "[" + oy + "]?", rk = "(?:" + cy + "(?:" + [uy, A0, O0].join("|") + ")" + my + hy + ")*", ik = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", sk = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", gy = my + hy + rk, ak = "(?:" + [tk, A0, O0].join("|") + ")" + gy, lk = "(?:" + [uy + Sd + "?", Sd, A0, O0, ek].join("|") + ")", uk = RegExp(T0, "g"), ck = RegExp(Sd, "g"), M0 = RegExp(k0 + "(?=" + k0 + ")|" + lk + gy, "g"), dk = RegExp([
17293
17293
  ll + "?" + ay + "+" + fy + "(?=" + [iy, ll, "$"].join("|") + ")",
17294
17294
  ok + "+" + py + "(?=" + [iy, ll + dy, "$"].join("|") + ")",
17295
17295
  ll + "?" + dy + "+" + fy,
@@ -17330,9 +17330,9 @@ _p.exports;
17330
17330
  "parseInt",
17331
17331
  "setTimeout"
17332
17332
  ], mk = -1, hn = {};
17333
- hn[Ze] = hn[yt] = hn[jt] = hn[pn] = hn[Lr] = hn[fe] = hn[qe] = hn[rt] = hn[Pt] = !0, hn[Ve] = hn[Ye] = hn[ge] = hn[ce] = hn[Ne] = hn[we] = hn[Ae] = hn[ae] = hn[Ke] = hn[it] = hn[Ut] = hn[ve] = hn[Oe] = hn[Ge] = hn[X] = !1;
17333
+ hn[Je] = hn[yt] = hn[jt] = hn[pn] = hn[Lr] = hn[fe] = hn[qe] = hn[rt] = hn[Pt] = !0, hn[Ve] = hn[Ye] = hn[ge] = hn[ce] = hn[Ne] = hn[we] = hn[Ae] = hn[ae] = hn[Ke] = hn[it] = hn[Ut] = hn[ve] = hn[Oe] = hn[Ge] = hn[X] = !1;
17334
17334
  var dn = {};
17335
- dn[Ve] = dn[Ye] = dn[ge] = dn[Ne] = dn[ce] = dn[we] = dn[Ze] = dn[yt] = dn[jt] = dn[pn] = dn[Lr] = dn[Ke] = dn[it] = dn[Ut] = dn[ve] = dn[Oe] = dn[Ge] = dn[mt] = dn[fe] = dn[qe] = dn[rt] = dn[Pt] = !0, dn[Ae] = dn[ae] = dn[X] = !1;
17335
+ dn[Ve] = dn[Ye] = dn[ge] = dn[Ne] = dn[ce] = dn[we] = dn[Je] = dn[yt] = dn[jt] = dn[pn] = dn[Lr] = dn[Ke] = dn[it] = dn[Ut] = dn[ve] = dn[Oe] = dn[Ge] = dn[mt] = dn[fe] = dn[qe] = dn[rt] = dn[Pt] = !0, dn[Ae] = dn[ae] = dn[X] = !1;
17336
17336
  var gk = {
17337
17337
  // Latin-1 Supplement block.
17338
17338
  À: "A",
@@ -17923,12 +17923,12 @@ _p.exports;
17923
17923
  return c;
17924
17924
  }
17925
17925
  function mA() {
17926
- var c = this.__wrapped__.value(), p = this.__dir__, v = vt(c), S = p < 0, O = v ? c.length : 0, L = k9(0, O, this.__views__), W = L.start, G = L.end, te = G - W, Ee = S ? G : W - 1, _e = this.__iteratees__, Te = _e.length, Fe = 0, Qe = co(te, this.__takeCount__);
17927
- if (!v || !S && O == te && Qe == te)
17926
+ var c = this.__wrapped__.value(), p = this.__dir__, v = vt(c), S = p < 0, O = v ? c.length : 0, L = k9(0, O, this.__views__), W = L.start, G = L.end, te = G - W, Ee = S ? G : W - 1, _e = this.__iteratees__, Te = _e.length, Fe = 0, Ze = co(te, this.__takeCount__);
17927
+ if (!v || !S && O == te && Ze == te)
17928
17928
  return f3(c, this.__actions__);
17929
17929
  var lt = [];
17930
17930
  e:
17931
- for (; te-- && Fe < Qe; ) {
17931
+ for (; te-- && Fe < Ze; ) {
17932
17932
  Ee += p;
17933
17933
  for (var St = -1, ut = c[Ee]; ++St < Te; ) {
17934
17934
  var Rt = _e[St], $t = Rt.iteratee, Zo = Rt.type, So = $t(ut);
@@ -18158,9 +18158,9 @@ _p.exports;
18158
18158
  }
18159
18159
  }
18160
18160
  L || (L = new Br());
18161
- var Qe = L.get(c);
18162
- if (Qe)
18163
- return Qe;
18161
+ var Ze = L.get(c);
18162
+ if (Ze)
18163
+ return Ze;
18164
18164
  L.set(c, W), u4(c) ? c.forEach(function(ut) {
18165
18165
  W.add(gr(ut, p, v, ut, c, L));
18166
18166
  }) : a4(c) && c.forEach(function(ut, Rt) {
@@ -18293,14 +18293,14 @@ _p.exports;
18293
18293
  var Te = -1, Fe = G[0];
18294
18294
  e:
18295
18295
  for (; ++Te < O && Ee.length < te; ) {
18296
- var Qe = _e[Te], lt = p ? p(Qe) : Qe;
18297
- if (Qe = v || Qe !== 0 ? Qe : 0, !(Fe ? Ou(Fe, lt) : S(Ee, lt, v))) {
18296
+ var Ze = _e[Te], lt = p ? p(Ze) : Ze;
18297
+ if (Ze = v || Ze !== 0 ? Ze : 0, !(Fe ? Ou(Fe, lt) : S(Ee, lt, v))) {
18298
18298
  for (W = L; --W; ) {
18299
18299
  var St = G[W];
18300
18300
  if (!(St ? Ou(St, lt) : S(c[W], lt, v)))
18301
18301
  continue e;
18302
18302
  }
18303
- Fe && Fe.push(lt), Ee.push(Qe);
18303
+ Fe && Fe.push(lt), Ee.push(Ze);
18304
18304
  }
18305
18305
  }
18306
18306
  return Ee;
@@ -18339,9 +18339,9 @@ _p.exports;
18339
18339
  if (Fe && !_e)
18340
18340
  return L || (L = new Br()), W || wl(c) ? N3(c, p, v, S, O, L) : _9(c, p, te, v, S, O, L);
18341
18341
  if (!(v & b)) {
18342
- var Qe = _e && Xt.call(c, "__wrapped__"), lt = Te && Xt.call(p, "__wrapped__");
18343
- if (Qe || lt) {
18344
- var St = Qe ? c.value() : c, ut = lt ? p.value() : p;
18342
+ var Ze = _e && Xt.call(c, "__wrapped__"), lt = Te && Xt.call(p, "__wrapped__");
18343
+ if (Ze || lt) {
18344
+ var St = Ze ? c.value() : c, ut = lt ? p.value() : p;
18345
18345
  return L || (L = new Br()), O(St, ut, v, S, L);
18346
18346
  }
18347
18347
  }
@@ -18448,8 +18448,8 @@ _p.exports;
18448
18448
  }
18449
18449
  var _e = L ? L(G, te, v + "", c, p, W) : n, Te = _e === n;
18450
18450
  if (Te) {
18451
- var Fe = vt(te), Qe = !Fe && vs(te), lt = !Fe && !Qe && wl(te);
18452
- _e = te, Fe || Qe || lt ? vt(G) ? _e = G : Nn(G) ? _e = Lo(G) : Qe ? (Te = !1, _e = m3(te, !0)) : lt ? (Te = !1, _e = g3(te, !0)) : _e = [] : Uu(te) || fa(te) ? (_e = G, fa(G) ? _e = f4(G) : (!xn(G) || Ii(G)) && (_e = L3(te))) : Te = !1;
18451
+ var Fe = vt(te), Ze = !Fe && vs(te), lt = !Fe && !Ze && wl(te);
18452
+ _e = te, Fe || Ze || lt ? vt(G) ? _e = G : Nn(G) ? _e = Lo(G) : Ze ? (Te = !1, _e = m3(te, !0)) : lt ? (Te = !1, _e = g3(te, !0)) : _e = [] : Uu(te) || fa(te) ? (_e = G, fa(G) ? _e = f4(G) : (!xn(G) || Ii(G)) && (_e = L3(te))) : Te = !1;
18453
18453
  }
18454
18454
  Te && (W.set(te, _e), O(_e, te, S, L, W), W.delete(te)), q0(c, v, _e);
18455
18455
  }
@@ -18596,10 +18596,10 @@ _p.exports;
18596
18596
  return 0;
18597
18597
  p = v(p);
18598
18598
  for (var W = p !== p, G = p === null, te = Jo(p), Ee = p === n; O < L; ) {
18599
- var _e = $d((O + L) / 2), Te = v(c[_e]), Fe = Te !== n, Qe = Te === null, lt = Te === Te, St = Jo(Te);
18599
+ var _e = $d((O + L) / 2), Te = v(c[_e]), Fe = Te !== n, Ze = Te === null, lt = Te === Te, St = Jo(Te);
18600
18600
  if (W)
18601
18601
  var ut = S || lt;
18602
- else Ee ? ut = lt && (S || Fe) : G ? ut = lt && Fe && (S || !Qe) : te ? ut = lt && Fe && !Qe && (S || !St) : Qe || St ? ut = !1 : ut = S ? Te <= p : Te < p;
18602
+ else Ee ? ut = lt && (S || Fe) : G ? ut = lt && Fe && (S || !Ze) : te ? ut = lt && Fe && !Ze && (S || !St) : Ze || St ? ut = !1 : ut = S ? Te <= p : Te < p;
18603
18603
  ut ? O = _e + 1 : L = _e;
18604
18604
  }
18605
18605
  return co(L, Re);
@@ -18759,10 +18759,10 @@ _p.exports;
18759
18759
  function y3(c, p, v, S) {
18760
18760
  for (var O = -1, L = c.length, W = -1, G = v.length, te = -1, Ee = p.length, _e = Un(L - G, 0), Te = le(_e + Ee), Fe = !S; ++O < _e; )
18761
18761
  Te[O] = c[O];
18762
- for (var Qe = O; ++te < Ee; )
18763
- Te[Qe + te] = p[te];
18762
+ for (var Ze = O; ++te < Ee; )
18763
+ Te[Ze + te] = p[te];
18764
18764
  for (; ++W < G; )
18765
- (Fe || O < L) && (Te[Qe + v[W]] = c[O++]);
18765
+ (Fe || O < L) && (Te[Ze + v[W]] = c[O++]);
18766
18766
  return Te;
18767
18767
  }
18768
18768
  function Lo(c, p) {
@@ -18931,13 +18931,13 @@ _p.exports;
18931
18931
  });
18932
18932
  }
18933
18933
  function Yd(c, p, v, S, O, L, W, G, te, Ee) {
18934
- var _e = p & k, Te = p & w, Fe = p & x, Qe = p & (E | C), lt = p & P, St = Fe ? n : Hu(c);
18934
+ var _e = p & k, Te = p & w, Fe = p & x, Ze = p & (E | C), lt = p & P, St = Fe ? n : Hu(c);
18935
18935
  function ut() {
18936
18936
  for (var Rt = arguments.length, $t = le(Rt), Zo = Rt; Zo--; )
18937
18937
  $t[Zo] = arguments[Zo];
18938
- if (Qe)
18938
+ if (Ze)
18939
18939
  var So = yl(ut), Qo = Ik($t, So);
18940
- if (S && ($t = v3($t, S, O, Qe)), L && ($t = y3($t, L, W, Qe)), Rt -= Qo, Qe && Rt < Ee) {
18940
+ if (S && ($t = v3($t, S, O, Ze)), L && ($t = y3($t, L, W, Ze)), Rt -= Qo, Ze && Rt < Ee) {
18941
18941
  var In = fs($t, So);
18942
18942
  return k3(
18943
18943
  c,
@@ -19015,13 +19015,13 @@ _p.exports;
19015
19015
  };
19016
19016
  }
19017
19017
  function k3(c, p, v, S, O, L, W, G, te, Ee) {
19018
- var _e = p & E, Te = _e ? W : n, Fe = _e ? n : W, Qe = _e ? L : n, lt = _e ? n : L;
19018
+ var _e = p & E, Te = _e ? W : n, Fe = _e ? n : W, Ze = _e ? L : n, lt = _e ? n : L;
19019
19019
  p |= _e ? T : A, p &= ~(_e ? A : T), p & _ || (p &= -4);
19020
19020
  var St = [
19021
19021
  c,
19022
19022
  p,
19023
19023
  O,
19024
- Qe,
19024
+ Ze,
19025
19025
  Te,
19026
19026
  lt,
19027
19027
  Fe,
@@ -19059,7 +19059,7 @@ _p.exports;
19059
19059
  var _e = S, Te = O;
19060
19060
  S = O = n;
19061
19061
  }
19062
- var Fe = te ? n : hm(c), Qe = [
19062
+ var Fe = te ? n : hm(c), Ze = [
19063
19063
  c,
19064
19064
  p,
19065
19065
  v,
@@ -19071,11 +19071,11 @@ _p.exports;
19071
19071
  W,
19072
19072
  G
19073
19073
  ];
19074
- if (Fe && B9(Qe, Fe), c = Qe[0], p = Qe[1], v = Qe[2], S = Qe[3], O = Qe[4], G = Qe[9] = Qe[9] === n ? te ? 0 : c.length : Un(Qe[9] - Ee, 0), !G && p & (E | C) && (p &= -25), !p || p == w)
19074
+ if (Fe && B9(Ze, Fe), c = Ze[0], p = Ze[1], v = Ze[2], S = Ze[3], O = Ze[4], G = Ze[9] = Ze[9] === n ? te ? 0 : c.length : Un(Ze[9] - Ee, 0), !G && p & (E | C) && (p &= -25), !p || p == w)
19075
19075
  var lt = y9(c, p, v);
19076
- else p == E || p == C ? lt = w9(c, p, G) : (p == T || p == (w | T)) && !O.length ? lt = x9(c, p, v, S) : lt = Yd.apply(n, Qe);
19076
+ else p == E || p == C ? lt = w9(c, p, G) : (p == T || p == (w | T)) && !O.length ? lt = x9(c, p, v, S) : lt = Yd.apply(n, Ze);
19077
19077
  var St = Fe ? l3 : $3;
19078
- return H3(St(lt, Qe), c, p);
19078
+ return H3(St(lt, Ze), c, p);
19079
19079
  }
19080
19080
  function O3(c, p, v, S) {
19081
19081
  return c === n || Fr(c, pl[v]) && !Xt.call(S, v) ? p : c;
@@ -19093,7 +19093,7 @@ _p.exports;
19093
19093
  var Ee = L.get(c), _e = L.get(p);
19094
19094
  if (Ee && _e)
19095
19095
  return Ee == p && _e == c;
19096
- var Te = -1, Fe = !0, Qe = v & y ? new aa() : n;
19096
+ var Te = -1, Fe = !0, Ze = v & y ? new aa() : n;
19097
19097
  for (L.set(c, p), L.set(p, c); ++Te < G; ) {
19098
19098
  var lt = c[Te], St = p[Te];
19099
19099
  if (S)
@@ -19104,10 +19104,10 @@ _p.exports;
19104
19104
  Fe = !1;
19105
19105
  break;
19106
19106
  }
19107
- if (Qe) {
19107
+ if (Ze) {
19108
19108
  if (!D0(p, function(Rt, $t) {
19109
- if (!Ou(Qe, $t) && (lt === Rt || O(lt, Rt, v, S, L)))
19110
- return Qe.push($t);
19109
+ if (!Ou(Ze, $t) && (lt === Rt || O(lt, Rt, v, S, L)))
19110
+ return Ze.push($t);
19111
19111
  })) {
19112
19112
  Fe = !1;
19113
19113
  break;
@@ -19163,9 +19163,9 @@ _p.exports;
19163
19163
  if (!(W ? Fe in p : Xt.call(p, Fe)))
19164
19164
  return !1;
19165
19165
  }
19166
- var Qe = L.get(c), lt = L.get(p);
19167
- if (Qe && lt)
19168
- return Qe == p && lt == c;
19166
+ var Ze = L.get(c), lt = L.get(p);
19167
+ if (Ze && lt)
19168
+ return Ze == p && lt == c;
19169
19169
  var St = !0;
19170
19170
  L.set(c, p), L.set(p, c);
19171
19171
  for (var ut = W; ++Te < te; ) {
@@ -19315,7 +19315,7 @@ _p.exports;
19315
19315
  return new S(+c);
19316
19316
  case Ne:
19317
19317
  return p9(c, v);
19318
- case Ze:
19318
+ case Je:
19319
19319
  case yt:
19320
19320
  case jt:
19321
19321
  case pn:
@@ -19992,12 +19992,12 @@ _p.exports;
19992
19992
  if (typeof c != "function")
19993
19993
  throw new hr(s);
19994
19994
  p = yr(p) || 0, xn(v) && (_e = !!v.leading, Te = "maxWait" in v, L = Te ? Un(yr(v.maxWait) || 0, p) : L, Fe = "trailing" in v ? !!v.trailing : Fe);
19995
- function Qe(In) {
19995
+ function Ze(In) {
19996
19996
  var $r = S, Li = O;
19997
19997
  return S = O = n, Ee = In, W = c.apply(Li, $r), W;
19998
19998
  }
19999
19999
  function lt(In) {
20000
- return Ee = In, G = Vu(Rt, p), _e ? Qe(In) : W;
20000
+ return Ee = In, G = Vu(Rt, p), _e ? Ze(In) : W;
20001
20001
  }
20002
20002
  function St(In) {
20003
20003
  var $r = In - te, Li = In - Ee, E4 = p - $r;
@@ -20014,7 +20014,7 @@ _p.exports;
20014
20014
  G = Vu(Rt, St(In));
20015
20015
  }
20016
20016
  function $t(In) {
20017
- return G = n, Fe && S ? Qe(In) : (S = O = n, W);
20017
+ return G = n, Fe && S ? Ze(In) : (S = O = n, W);
20018
20018
  }
20019
20019
  function Zo() {
20020
20020
  G !== n && h3(G), Ee = 0, S = te = O = G = n;
@@ -20028,7 +20028,7 @@ _p.exports;
20028
20028
  if (G === n)
20029
20029
  return lt(te);
20030
20030
  if (Te)
20031
- return h3(G), G = Vu(Rt, p), Qe(te);
20031
+ return h3(G), G = Vu(Rt, p), Ze(te);
20032
20032
  }
20033
20033
  return G === n && (G = Vu(Rt, p)), W;
20034
20034
  }
@@ -20574,7 +20574,7 @@ _p.exports;
20574
20574
  var O = df({}, p.imports, S.imports, O3), L = Kn(O), W = H0(O, L), G, te, Ee = 0, _e = p.interpolate || Ed, Te = "__p += '", Fe = V0(
20575
20575
  (p.escape || Ed).source + "|" + _e.source + "|" + (_e === Cd ? $7 : Ed).source + "|" + (p.evaluate || Ed).source + "|$",
20576
20576
  "g"
20577
- ), Qe = "//# sourceURL=" + (Xt.call(p, "sourceURL") ? (p.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++mk + "]") + `
20577
+ ), Ze = "//# sourceURL=" + (Xt.call(p, "sourceURL") ? (p.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++mk + "]") + `
20578
20578
  `;
20579
20579
  c.replace(Fe, function(ut, Rt, $t, Zo, So, Qo) {
20580
20580
  return $t || ($t = Zo), Te += c.slice(Ee, Qo).replace(q7, Dk), Rt && (G = !0, Te += `' +
@@ -20602,7 +20602,7 @@ function print() { __p += __j.call(arguments, '') }
20602
20602
  `) + Te + `return __p
20603
20603
  }`;
20604
20604
  var St = x4(function() {
20605
- return qt(L, Qe + "return " + Te).apply(n, W);
20605
+ return qt(L, Ze + "return " + Te).apply(n, W);
20606
20606
  });
20607
20607
  if (St.source = Te, Sm(St))
20608
20608
  throw St;
@@ -20904,7 +20904,7 @@ function print() { __p += __j.call(arguments, '') }
20904
20904
  return S && Fe ? $t[0] : $t;
20905
20905
  };
20906
20906
  _e && v && typeof Ee == "function" && Ee.length != 1 && (te = _e = !1);
20907
- var Fe = this.__chain__, Qe = !!this.__actions__.length, lt = L && !Fe, St = te && !Qe;
20907
+ var Fe = this.__chain__, Ze = !!this.__actions__.length, lt = L && !Fe, St = te && !Ze;
20908
20908
  if (!L && _e) {
20909
20909
  W = St ? W : new Bt(this);
20910
20910
  var ut = c.apply(W, G);
@@ -30673,7 +30673,7 @@ function Hv(t = {}) {
30673
30673
  function re(X, me) {
30674
30674
  return X !== "translate" || !me.resolvedMessage;
30675
30675
  }
30676
- const ne = (X, me, ge, Ne, Ze, yt) => {
30676
+ const ne = (X, me, ge, Ne, Je, yt) => {
30677
30677
  P();
30678
30678
  let jt;
30679
30679
  try {
@@ -30696,7 +30696,7 @@ function Hv(t = {}) {
30696
30696
  groupId: `${ge}:${pn}`
30697
30697
  });
30698
30698
  }
30699
- return e && b ? Ne(e) : Ze(pn);
30699
+ return e && b ? Ne(e) : Je(pn);
30700
30700
  } else {
30701
30701
  if (yt(jt))
30702
30702
  return jt;
@@ -30751,15 +30751,15 @@ function Hv(t = {}) {
30751
30751
  return ne(() => {
30752
30752
  if (!X)
30753
30753
  return !1;
30754
- const ge = $e(me) ? me : a.value, Ne = it(ge), Ze = k.messageResolver(Ne, X);
30755
- return qs(Ze) || _r(Ze) || $e(Ze);
30754
+ const ge = $e(me) ? me : a.value, Ne = it(ge), Je = k.messageResolver(Ne, X);
30755
+ return qs(Je) || _r(Je) || $e(Je);
30756
30756
  }, () => [X], "translate exists", (ge) => Reflect.apply(ge.te, ge, [X, me]), EK, (ge) => zt(ge));
30757
30757
  }
30758
30758
  function Me(X) {
30759
30759
  let me = null;
30760
30760
  const ge = __(k, l.value, a.value);
30761
30761
  for (let Ne = 0; Ne < ge.length; Ne++) {
30762
- const Ze = u.value[ge[Ne]] || {}, yt = k.messageResolver(Ze, X);
30762
+ const Je = u.value[ge[Ne]] || {}, yt = k.messageResolver(Je, X);
30763
30763
  if (yt != null) {
30764
30764
  me = yt;
30765
30765
  break;
@@ -31804,7 +31804,7 @@ const iG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
31804
31804
  customClassToolbar: {}
31805
31805
  },
31806
31806
  setup(t) {
31807
- const e = dR(() => import("./BulkSpellChecker-BnB8tWHG.mjs")), { t: n } = Zt(), o = t, r = Yt("isEditable", H(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = Y(() => {
31807
+ const e = dR(() => import("./BulkSpellChecker-CxF_-wmI.mjs")), { t: n } = Zt(), o = t, r = Yt("isEditable", H(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = Y(() => {
31808
31808
  const f = [...o.editor.extensionManager.extensions].sort((m, b) => m.name === "superText" ? 1 : b.name === "superText" ? -1 : 0);
31809
31809
  let h = [];
31810
31810
  for (const m of f) {
@@ -31827,7 +31827,7 @@ const iG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
31827
31827
  }
31828
31828
  h.push({ button: _, divider: y, spacer: w, id: `${m.name}` });
31829
31829
  }
31830
- if (o.mode !== Je.EDITOR)
31830
+ if (o.mode !== et.EDITOR)
31831
31831
  return h.filter((m) => m.id && i.includes(m.id));
31832
31832
  if (h = h.filter((m) => m.id !== "superText"), !r.value) {
31833
31833
  h = h.map((b) => (b.button.componentProps.disabled = !0, b));
@@ -36094,23 +36094,23 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
36094
36094
  }
36095
36095
  let ge = 0;
36096
36096
  z.keywordPatternRe.lastIndex = 0;
36097
- let Ne = z.keywordPatternRe.exec(Ge), Ze = "";
36097
+ let Ne = z.keywordPatternRe.exec(Ge), Je = "";
36098
36098
  for (; Ne; ) {
36099
- Ze += Ge.substring(ge, Ne.index);
36099
+ Je += Ge.substring(ge, Ne.index);
36100
36100
  const yt = Nt.case_insensitive ? Ne[0].toLowerCase() : Ne[0], jt = Re(z, yt);
36101
36101
  if (jt) {
36102
36102
  const [pn, Lr] = jt;
36103
- if (Oe.addText(Ze), Ze = "", he[yt] = (he[yt] || 0) + 1, he[yt] <= dJ && (mt += Lr), pn.startsWith("_"))
36104
- Ze += Ne[0];
36103
+ if (Oe.addText(Je), Je = "", he[yt] = (he[yt] || 0) + 1, he[yt] <= dJ && (mt += Lr), pn.startsWith("_"))
36104
+ Je += Ne[0];
36105
36105
  else {
36106
36106
  const fe = Nt.classNameAliases[pn] || pn;
36107
36107
  Ye(Ne[0], fe);
36108
36108
  }
36109
36109
  } else
36110
- Ze += Ne[0];
36110
+ Je += Ne[0];
36111
36111
  ge = z.keywordPatternRe.lastIndex, Ne = z.keywordPatternRe.exec(Ge);
36112
36112
  }
36113
- Ze += Ge.substring(ge), Oe.addText(Ze);
36113
+ Je += Ge.substring(ge), Oe.addText(Je);
36114
36114
  }
36115
36115
  function ot() {
36116
36116
  if (Ge === "") return;
@@ -36133,22 +36133,22 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
36133
36133
  ge !== "" && (Oe.startScope(Ne), Oe.addText(ge), Oe.endScope());
36134
36134
  }
36135
36135
  function se(ge, Ne) {
36136
- let Ze = 1;
36136
+ let Je = 1;
36137
36137
  const yt = Ne.length - 1;
36138
- for (; Ze <= yt; ) {
36139
- if (!ge._emit[Ze]) {
36140
- Ze++;
36138
+ for (; Je <= yt; ) {
36139
+ if (!ge._emit[Je]) {
36140
+ Je++;
36141
36141
  continue;
36142
36142
  }
36143
- const jt = Nt.classNameAliases[ge[Ze]] || ge[Ze], pn = Ne[Ze];
36144
- jt ? Ye(pn, jt) : (Ge = pn, De(), Ge = ""), Ze++;
36143
+ const jt = Nt.classNameAliases[ge[Je]] || ge[Je], pn = Ne[Je];
36144
+ jt ? Ye(pn, jt) : (Ge = pn, De(), Ge = ""), Je++;
36145
36145
  }
36146
36146
  }
36147
36147
  function ce(ge, Ne) {
36148
36148
  return ge.scope && typeof ge.scope == "string" && Oe.openNode(Nt.classNameAliases[ge.scope] || ge.scope), ge.beginScope && (ge.beginScope._wrap ? (Ye(Ge, Nt.classNameAliases[ge.beginScope._wrap] || ge.beginScope._wrap), Ge = "") : ge.beginScope._multi && (se(ge.beginScope, Ne), Ge = "")), z = Object.create(ge, { parent: { value: z } }), z;
36149
36149
  }
36150
- function we(ge, Ne, Ze) {
36151
- let yt = kY(ge.endRe, Ze);
36150
+ function we(ge, Ne, Je) {
36151
+ let yt = kY(ge.endRe, Je);
36152
36152
  if (yt) {
36153
36153
  if (ge["on:end"]) {
36154
36154
  const jt = new xw(ge);
@@ -36161,20 +36161,20 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
36161
36161
  }
36162
36162
  }
36163
36163
  if (ge.endsWithParent)
36164
- return we(ge.parent, Ne, Ze);
36164
+ return we(ge.parent, Ne, Je);
36165
36165
  }
36166
36166
  function xe(ge) {
36167
36167
  return z.matcher.regexIndex === 0 ? (Ge += ge[0], 1) : (me = !0, 0);
36168
36168
  }
36169
36169
  function Ae(ge) {
36170
- const Ne = ge[0], Ze = ge.rule, yt = new xw(Ze), jt = [Ze.__beforeBegin, Ze["on:begin"]];
36170
+ const Ne = ge[0], Je = ge.rule, yt = new xw(Je), jt = [Je.__beforeBegin, Je["on:begin"]];
36171
36171
  for (const pn of jt)
36172
36172
  if (pn && (pn(ge, yt), yt.isMatchIgnored))
36173
36173
  return xe(Ne);
36174
- return Ze.skip ? Ge += Ne : (Ze.excludeBegin && (Ge += Ne), Ve(), !Ze.returnBegin && !Ze.excludeBegin && (Ge = Ne)), ce(Ze, ge), Ze.returnBegin ? 0 : Ne.length;
36174
+ return Je.skip ? Ge += Ne : (Je.excludeBegin && (Ge += Ne), Ve(), !Je.returnBegin && !Je.excludeBegin && (Ge = Ne)), ce(Je, ge), Je.returnBegin ? 0 : Ne.length;
36175
36175
  }
36176
36176
  function ae(ge) {
36177
- const Ne = ge[0], Ze = J.substring(ge.index), yt = we(z, ge, Ze);
36177
+ const Ne = ge[0], Je = J.substring(ge.index), yt = we(z, ge, Je);
36178
36178
  if (!yt)
36179
36179
  return kw;
36180
36180
  const jt = z;
@@ -36192,10 +36192,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
36192
36192
  }
36193
36193
  let Ke = {};
36194
36194
  function it(ge, Ne) {
36195
- const Ze = Ne && Ne[0];
36196
- if (Ge += ge, Ze == null)
36195
+ const Je = Ne && Ne[0];
36196
+ if (Ge += ge, Je == null)
36197
36197
  return Ve(), 0;
36198
- if (Ke.type === "begin" && Ne.type === "end" && Ke.index === Ne.index && Ze === "") {
36198
+ if (Ke.type === "begin" && Ne.type === "end" && Ke.index === Ne.index && Je === "") {
36199
36199
  if (Ge += J.slice(Ne.index, Ne.index + 1), !r) {
36200
36200
  const yt = new Error(`0 width match regex (${B})`);
36201
36201
  throw yt.languageName = B, yt.badRule = Ke.rule, yt;
@@ -36205,18 +36205,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
36205
36205
  if (Ke = Ne, Ne.type === "begin")
36206
36206
  return Ae(Ne);
36207
36207
  if (Ne.type === "illegal" && !re) {
36208
- const yt = new Error('Illegal lexeme "' + Ze + '" for mode "' + (z.scope || "<unnamed>") + '"');
36208
+ const yt = new Error('Illegal lexeme "' + Je + '" for mode "' + (z.scope || "<unnamed>") + '"');
36209
36209
  throw yt.mode = z, yt;
36210
36210
  } else if (Ne.type === "end") {
36211
36211
  const yt = ae(Ne);
36212
36212
  if (yt !== kw)
36213
36213
  return yt;
36214
36214
  }
36215
- if (Ne.type === "illegal" && Ze === "")
36215
+ if (Ne.type === "illegal" && Je === "")
36216
36216
  return 1;
36217
36217
  if (X > 1e5 && X > Ne.index * 3)
36218
36218
  throw new Error("potential infinite loop, way more iterations than matches");
36219
- return Ge += Ze, Ze.length;
36219
+ return Ge += Je, Je.length;
36220
36220
  }
36221
36221
  const Nt = P(B);
36222
36222
  if (!Nt)
@@ -36234,8 +36234,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), he = B, ne = J), re =
36234
36234
  X++, me ? me = !1 : z.matcher.considerAll(), z.matcher.lastIndex = oe;
36235
36235
  const ge = z.matcher.exec(J);
36236
36236
  if (!ge) break;
36237
- const Ne = J.substring(oe, ge.index), Ze = it(Ne, ge);
36238
- oe = ge.index + Ze;
36237
+ const Ne = J.substring(oe, ge.index), Je = it(Ne, ge);
36238
+ oe = ge.index + Je;
36239
36239
  }
36240
36240
  it(J.substring(oe));
36241
36241
  }
@@ -37649,7 +37649,7 @@ const Dp = s0("XIcon", [
37649
37649
  customClass: { default: "" }
37650
37650
  },
37651
37651
  setup(t) {
37652
- const e = t, { t: n } = Zt(), o = Y(() => e.editor.extensionStorage["base-kit"].mode === Je.EDITOR), r = Yt("fontSize"), i = Y(() => {
37652
+ const e = t, { t: n } = Zt(), o = Y(() => e.editor.extensionStorage["base-kit"].mode === et.EDITOR), r = Yt("fontSize"), i = Y(() => {
37653
37653
  const l = {
37654
37654
  title: n("editor.fontSize.default.tooltip"),
37655
37655
  isActive: () => !1
@@ -39911,7 +39911,7 @@ const UZ = wo.create({
39911
39911
  if (a) {
39912
39912
  const { $to: u } = s.selection, d = u.end();
39913
39913
  if (u.nodeAfter)
39914
- u.nodeAfter.isTextblock ? s.setSelection(Ue.create(s.doc, u.pos + 1)) : u.nodeAfter.isBlock ? s.setSelection(et.create(s.doc, u.pos)) : s.setSelection(Ue.create(s.doc, u.pos));
39914
+ u.nodeAfter.isTextblock ? s.setSelection(Ue.create(s.doc, u.pos + 1)) : u.nodeAfter.isBlock ? s.setSelection(Qe.create(s.doc, u.pos)) : s.setSelection(Ue.create(s.doc, u.pos));
39915
39915
  else {
39916
39916
  const f = (l = u.parent.type.contentMatch.defaultType) === null || l === void 0 ? void 0 : l.create();
39917
39917
  f && (s.insert(d, f), s.setSelection(Ue.create(s.doc, d + 1)));
@@ -40645,7 +40645,7 @@ class On extends tt {
40645
40645
  for (; ; ) {
40646
40646
  let s = n > 0 ? i.firstChild : i.lastChild;
40647
40647
  if (!s) {
40648
- if (i.isAtom && !i.isText && !et.isSelectable(i)) {
40648
+ if (i.isAtom && !i.isText && !Qe.isSelectable(i)) {
40649
40649
  e = e.doc.resolve(r + i.nodeSize * n), o = !1;
40650
40650
  continue e;
40651
40651
  }
@@ -40748,7 +40748,7 @@ function vQ(t, e, n) {
40748
40748
  if (!On.valid(o))
40749
40749
  return !1;
40750
40750
  let r = t.posAtCoords({ left: n.clientX, top: n.clientY });
40751
- return r && r.inside > -1 && et.isSelectable(t.state.doc.nodeAt(r.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new On(o))), !0);
40751
+ return r && r.inside > -1 && Qe.isSelectable(t.state.doc.nodeAt(r.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new On(o))), !0);
40752
40752
  }
40753
40753
  function yQ(t, e) {
40754
40754
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof On))
@@ -43166,7 +43166,7 @@ const u0 = "paragraph", Cr = "page", wT = "Extend", _u = "Node", mee = _u + wT,
43166
43166
  disableSuperInput: { type: Boolean }
43167
43167
  },
43168
43168
  setup(t, { expose: e }) {
43169
- const n = t, { t: o } = Zt(), r = H(!1), i = ur({ from: 0, to: 0, text: "" }), s = Yt("isEditable", H(!0)), a = Yt("canEditSuper", H(!0)), l = Y(() => n.mode === Je.EDITOR || n.mode === Je.PLAIN_TEXT || !a.value || n.disableSuperInput);
43169
+ const n = t, { t: o } = Zt(), r = H(!1), i = ur({ from: 0, to: 0, text: "" }), s = Yt("isEditable", H(!0)), a = Yt("canEditSuper", H(!0)), l = Y(() => n.mode === et.EDITOR || n.mode === et.PLAIN_TEXT || !a.value || n.disableSuperInput);
43170
43170
  function u() {
43171
43171
  if (!n.editor) return "";
43172
43172
  const { from: _, to: E } = n.editor.state.selection, C = n.editor.state.doc.cut(_, E), A = Qr.fromSchema(n.editor.schema).serializeFragment(C.content), k = document.createElement("div");
@@ -43285,7 +43285,7 @@ const ute = {
43285
43285
  __name: "PageNode",
43286
43286
  props: Ga,
43287
43287
  setup(t) {
43288
- const { state: e, page: n, superTextStore: o } = uo(), { size: r, pagination: i, margin: s } = n.value, a = H(null), l = H(t.node.attrs.viewSuperTextArea), u = Y(() => l.value && t.editor.storage.page.mode !== "editor"), d = Y(() => t.editor.storage.page.mode === Je.REPORT), { width: f, height: h } = r, m = Y(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = Ao(Ko.SUPER_VIEW_PAGE);
43288
+ const { state: e, page: n, superTextStore: o } = uo(), { size: r, pagination: i, margin: s } = n.value, a = H(null), l = H(t.node.attrs.viewSuperTextArea), u = Y(() => l.value && t.editor.storage.page.mode !== "editor"), d = Y(() => t.editor.storage.page.mode === et.REPORT), { width: f, height: h } = r, m = Y(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = Ao(Ko.SUPER_VIEW_PAGE);
43289
43289
  return Be(
43290
43290
  () => t.node.attrs,
43291
43291
  (y) => {
@@ -43321,7 +43321,7 @@ const ute = {
43321
43321
  default: N(() => [
43322
43322
  ee("div", ute, [
43323
43323
  D(x, {
43324
- mode: u.value ? g(Je).REPORT : g(Je).EDITOR,
43324
+ mode: u.value ? g(et).REPORT : g(et).EDITOR,
43325
43325
  editor: y.editor,
43326
43326
  "super-text-store": g(o)
43327
43327
  }, {
@@ -43351,7 +43351,7 @@ function tx(t, e) {
43351
43351
  }
43352
43352
  const fte = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, editor: r }) => {
43353
43353
  const { selection: i, doc: s } = e, { $from: a, $to: l } = i, u = r.extensionManager.attributes, d = tp(u, a.node().type.name, a.node().attrs);
43354
- if (d.id = ub(), d.extend && (d.extend = !1), i instanceof et && i.node.isBlock)
43354
+ if (d.id = ub(), d.extend && (d.extend = !1), i instanceof Qe && i.node.isBlock)
43355
43355
  return !a.parentOffset || !sr(s, a.pos) ? !1 : (o && (t && tx(n, r.extensionManager.splittableMarks), e.split(a.pos).scrollIntoView()), !0);
43356
43356
  if (!a.parent.isBlock)
43357
43357
  return !1;
@@ -43384,7 +43384,7 @@ const fte = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edi
43384
43384
  return !0;
43385
43385
  }, pte = (t) => ({ tr: e, state: n, dispatch: o, editor: r }) => {
43386
43386
  var y;
43387
- const i = qn(t, n.schema), { $from: s, $to: a } = n.selection, l = n.selection instanceof et ? n.selection.node : null;
43387
+ const i = qn(t, n.schema), { $from: s, $to: a } = n.selection, l = n.selection instanceof Qe ? n.selection.node : null;
43388
43388
  if (l != null && l.isBlock || s.depth < 2 || !s.sameParent(a))
43389
43389
  return !1;
43390
43390
  const u = s.node(-1);
@@ -43679,7 +43679,7 @@ const nx = (t) => t.command(({ tr: e }) => {
43679
43679
  customClass: { default: "" }
43680
43680
  },
43681
43681
  setup(t) {
43682
- const e = t, n = Y(() => e.editor.extensionStorage["base-kit"].mode === Je.EDITOR), { t: o } = Zt(), r = [
43682
+ const e = t, n = Y(() => e.editor.extensionStorage["base-kit"].mode === et.EDITOR), { t: o } = Zt(), r = [
43683
43683
  {
43684
43684
  label: o("editor.fontFamily.gulim"),
43685
43685
  value: "Gulim"
@@ -44370,11 +44370,11 @@ const nx = (t) => t.command(({ tr: e }) => {
44370
44370
  props: {
44371
44371
  handleTextInput(t) {
44372
44372
  const { selection: e } = t.state;
44373
- return e instanceof et && e.node.type.name === "image";
44373
+ return e instanceof Qe && e.node.type.name === "image";
44374
44374
  },
44375
44375
  handlePaste(t) {
44376
44376
  const { selection: e } = t.state;
44377
- return e instanceof et && e.node.type.name === "image";
44377
+ return e instanceof Qe && e.node.type.name === "image";
44378
44378
  }
44379
44379
  }
44380
44380
  })
@@ -45880,7 +45880,7 @@ function fne({ $from: t, $to: e }) {
45880
45880
  function pne(t, e, n) {
45881
45881
  const o = (e || t).selection, r = (e || t).doc;
45882
45882
  let i, s;
45883
- if (o instanceof et && (s = o.node.type.spec.tableRole)) {
45883
+ if (o instanceof Qe && (s = o.node.type.spec.tableRole)) {
45884
45884
  if (s == "cell" || s == "header_cell")
45885
45885
  i = un.create(r, o.from);
45886
45886
  else if (s == "row") {
@@ -48757,7 +48757,7 @@ const sre = {
48757
48757
  width: 2,
48758
48758
  class: "ProseMirror-dropcursor border-black"
48759
48759
  })
48760
- ), this.options.characterCount !== !1 && e.push(uQ.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(oT.configure(this.options.paragraph)), this.options.hardBreak !== !1 && e.push(nT.configure(this.options.hardBreak)), this.options.listItem !== !1 && e.push(CQ.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(qJ.configure(this.options.textStyle)), this.options.imageUpload !== !1 && e.push(UT.configure(this.options.imageUpload)), this.options.video !== !1 && e.push(zT.configure(this.options.video)), this.options.videoUpload !== !1 && e.push(HT.configure(this.options.videoUpload)), this.options.history !== !1 && e.push(m2.configure(this.options.history)), this.options.fontSize !== !1 && e.push(FS.configure(this.options.fontSize)), this.options.fontFamily !== !1 && e.push(kT.configure(this.options.fontFamily)), this.options.mode !== Je.EDITOR && e.push(Ete), this.options.superText !== !1 && this.options.mode !== Je.PLAIN_TEXT && (typeof this.options.superText == "boolean" ? e.push(sx.configure()) : e.push(sx.configure(this.options.superText))), this.options.mode === Je.EDITOR && (this.options.image !== !1 && e.push(z2.configure()), e.push(
48760
+ ), this.options.characterCount !== !1 && e.push(uQ.configure(this.options.characterCount)), this.options.paragraph !== !1 && e.push(oT.configure(this.options.paragraph)), this.options.hardBreak !== !1 && e.push(nT.configure(this.options.hardBreak)), this.options.listItem !== !1 && e.push(CQ.configure(this.options.listItem)), this.options.textStyle !== !1 && e.push(qJ.configure(this.options.textStyle)), this.options.imageUpload !== !1 && e.push(UT.configure(this.options.imageUpload)), this.options.video !== !1 && e.push(zT.configure(this.options.video)), this.options.videoUpload !== !1 && e.push(HT.configure(this.options.videoUpload)), this.options.history !== !1 && e.push(m2.configure(this.options.history)), this.options.fontSize !== !1 && e.push(FS.configure(this.options.fontSize)), this.options.fontFamily !== !1 && e.push(kT.configure(this.options.fontFamily)), this.options.mode !== et.EDITOR && e.push(Ete), this.options.superText !== !1 && this.options.mode !== et.PLAIN_TEXT && (typeof this.options.superText == "boolean" ? e.push(sx.configure()) : e.push(sx.configure(this.options.superText))), this.options.mode === et.EDITOR && (this.options.image !== !1 && e.push(z2.configure()), e.push(
48761
48761
  PS.configure({ spacer: !0 }),
48762
48762
  gS,
48763
48763
  mS,
@@ -48768,11 +48768,11 @@ const sre = {
48768
48768
  $S.configure({ spacer: !0 }),
48769
48769
  BS.configure({ types: ["heading", "paragraph"], spacer: !0 }),
48770
48770
  AT
48771
- )), this.options.mode !== Je.EDITOR && this.options.configPlan !== !1 && this.options.mode !== Je.PLAIN_TEXT && (typeof this.options.configPlan == "boolean" ? e.push(ax.configure()) : e.push(
48771
+ )), this.options.mode !== et.EDITOR && this.options.configPlan !== !1 && this.options.mode !== et.PLAIN_TEXT && (typeof this.options.configPlan == "boolean" ? e.push(ax.configure()) : e.push(
48772
48772
  ax.configure({
48773
48773
  specialCharModal: (r = this.options.configPlan) == null ? void 0 : r.specialCharModal
48774
48774
  })
48775
- )), this.options.mode !== Je.EDITOR && this.options.mode !== Je.PLAIN_TEXT && e.push(Ste), (this.options.mode === Je.STRAIGHT || this.options.mode === Je.REPORT || this.options.mode === Je.EDITOR) && this.options.timeHighlighter && e.push(koe.configure(this.options.timeHighlighter)), this.options.invalidCharFocus !== !1 && e.push(Aoe.configure(this.options.invalidCharFocus)), this.options.disabled && e.push(lre), e.push(
48775
+ )), this.options.mode !== et.EDITOR && this.options.mode !== et.PLAIN_TEXT && e.push(Ste), (this.options.mode === et.STRAIGHT || this.options.mode === et.REPORT || this.options.mode === et.EDITOR) && this.options.timeHighlighter && e.push(koe.configure(this.options.timeHighlighter)), this.options.invalidCharFocus !== !1 && e.push(Aoe.configure(this.options.invalidCharFocus)), this.options.disabled && e.push(lre), e.push(
48776
48776
  EQ,
48777
48777
  iT.configure(),
48778
48778
  Eoe.configure(),
@@ -53474,7 +53474,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53474
53474
  const A = T.clipboardData;
53475
53475
  if (!A) return !1;
53476
53476
  const k = o.mode, F = A.getData("text/plain") || "", P = Array.from(A.items).some((R) => R.type.startsWith("image/"));
53477
- return (k === Je.STRAIGHT || k === Je.REPORT) && P ? (T.preventDefault(), !0) : k === Je.PLAIN_TEXT ? (T.preventDefault(), C.dispatch(C.state.tr.insertText(F, C.state.selection.from)), !0) : !1;
53477
+ return (k === et.STRAIGHT || k === et.REPORT) && P ? (T.preventDefault(), !0) : k === et.PLAIN_TEXT ? (T.preventDefault(), C.dispatch(C.state.tr.insertText(F, C.state.selection.from)), !0) : !1;
53478
53478
  },
53479
53479
  clipboardTextParser: (C, T) => {
53480
53480
  const A = C.split(/(?:\r\n?|\n)/), k = [];
@@ -53502,7 +53502,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53502
53502
  m(_.value);
53503
53503
  }
53504
53504
  });
53505
- Y(() => o.mode === Je.EDITOR);
53505
+ Y(() => o.mode === et.EDITOR);
53506
53506
  async function w() {
53507
53507
  await Mt(), i.emit({
53508
53508
  action: "render"
@@ -53561,7 +53561,7 @@ const Ise = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53561
53561
  });
53562
53562
  const _ = H(null);
53563
53563
  function E(C) {
53564
- C === Je.REPORT && m(_.value);
53564
+ C === et.REPORT && m(_.value);
53565
53565
  }
53566
53566
  return pt(() => {
53567
53567
  E(o.mode);
@@ -53606,7 +53606,7 @@ function iae(t, e, n = !1, o = 200) {
53606
53606
  const { height: r } = wR(t), i = H(0), s = H(0), a = H(o), l = H(0), u = async () => {
53607
53607
  await Mt();
53608
53608
  const d = r.value - 8;
53609
- e.value === Je.REPORT ? (i.value = d / 3, s.value = n ? "auto" : d - i.value, a.value = o / 3 * 2, l.value = o / 3) : (i.value = 0, s.value = n ? "auto" : r.value);
53609
+ e.value === et.REPORT ? (i.value = d / 3, s.value = n ? "auto" : d - i.value, a.value = o / 3 * 2, l.value = o / 3) : (i.value = 0, s.value = n ? "auto" : r.value);
53610
53610
  };
53611
53611
  return n || Be(() => r.value, u), pt(() => {
53612
53612
  u();
@@ -53692,7 +53692,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
53692
53692
  const E = Y(() => [...u.extensions, ...xt.differenceBy(o.extensions, u.extensions, "name")].map((Me, Ke) => {
53693
53693
  var it;
53694
53694
  return ((it = Me.configure) == null ? void 0 : it.call(Me, { sort: Ke })) || Me;
53695
- })), C = Y(() => o.mode === Je.EDITOR), T = H(o.fontSizeDefault), A = H(o.fontFamilyDefault);
53695
+ })), C = Y(() => o.mode === et.EDITOR), T = H(o.fontSizeDefault), A = H(o.fontFamilyDefault);
53696
53696
  fn("fontSize", T), fn("fontFamily", A);
53697
53697
  const k = Y(() => {
53698
53698
  const ae = {
@@ -53750,7 +53750,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
53750
53750
  const Ke = Me.clipboardData;
53751
53751
  if (!Ke) return !1;
53752
53752
  const it = o.mode, Nt = Array.from(Ke.items), Ut = Nt.some((z) => z.type.startsWith("image/")), q = Nt.some((z) => z.type.startsWith("video/"));
53753
- return (it === Je.STRAIGHT || it === Je.REPORT) && (Ut || q) ? (Me.preventDefault(), !0) : q ? (Me.preventDefault(), re(["video"]) && Nt.forEach(async (z) => {
53753
+ return (it === et.STRAIGHT || it === et.REPORT) && (Ut || q) ? (Me.preventDefault(), !0) : q ? (Me.preventDefault(), re(["video"]) && Nt.forEach(async (z) => {
53754
53754
  var oe;
53755
53755
  if (!z.type.startsWith("video/")) return;
53756
53756
  const ve = z.getAsFile();
@@ -53809,7 +53809,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
53809
53809
  if (!ae) return "";
53810
53810
  if (ae.isEmpty)
53811
53811
  return Me === "json" ? {} : "";
53812
- if (o.mode === Je.PLAIN_TEXT)
53812
+ if (o.mode === et.PLAIN_TEXT)
53813
53813
  return ae.getText({ blockSeparator: `
53814
53814
  ` });
53815
53815
  switch (Me) {
@@ -53862,7 +53862,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
53862
53862
  const ne = Y(() => {
53863
53863
  var it;
53864
53864
  if (!((it = R == null ? void 0 : R.storage) != null && it.superText)) return !1;
53865
- const { enable: ae } = R.storage.superText, Me = [Je.EDITOR, Je.PLAIN_TEXT].includes(o.mode), Ke = o.disabled;
53865
+ const { enable: ae } = R.storage.superText, Me = [et.EDITOR, et.PLAIN_TEXT].includes(o.mode), Ke = o.disabled;
53866
53866
  return ae && !Me && !Ke;
53867
53867
  }), he = H(null), Re = Y(() => o.mode), { commentHeight: De, contentHeight: ot, minHeight: Ve, minHeightComment: Ye } = iae(
53868
53868
  he,
@@ -53871,7 +53871,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
53871
53871
  typeof o.minHeight == "string" ? parseInt(o.minHeight) : o.minHeight
53872
53872
  ), se = H(null);
53873
53873
  function ce(ae) {
53874
- ae === Je.STRAIGHT && w(se.value);
53874
+ ae === et.STRAIGHT && w(se.value);
53875
53875
  }
53876
53876
  pt(() => {
53877
53877
  ce(o.mode);
@@ -53965,11 +53965,11 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
53965
53965
  minWidth: `${U.value}px`
53966
53966
  })
53967
53967
  }, [
53968
- ae.mode === g(Je).REPORT && !ae.hideComment ? (M(), $(rae, {
53968
+ ae.mode === g(et).REPORT && !ae.hideComment ? (M(), $(rae, {
53969
53969
  key: 0,
53970
53970
  ref_key: "editorCommentRef",
53971
53971
  ref: we,
53972
- mode: g(Je).REPORT,
53972
+ mode: g(et).REPORT,
53973
53973
  extensions: ae.extensions,
53974
53974
  "model-value": o.comment,
53975
53975
  disabled: o.disabled,
@@ -54024,7 +54024,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
54024
54024
  D(g(fi), {
54025
54025
  editor: g(R),
54026
54026
  spellcheck: "true",
54027
- class: We(g(He)("h-full break-all", ae.mode === g(Je).PLAIN_TEXT && "plain-text"))
54027
+ class: We(g(He)("h-full break-all", ae.mode === g(et).PLAIN_TEXT && "plain-text"))
54028
54028
  }, null, 8, ["editor", "class"])
54029
54029
  ]),
54030
54030
  _: 1
@@ -54272,7 +54272,7 @@ const sae = { class: "flex flex-1" }, Y2 = /* @__PURE__ */ j({
54272
54272
  var m, b, y;
54273
54273
  return M(), pe(nt, null, [
54274
54274
  ee("div", dae, [
54275
- g(i) && !f.disableSuperInput && f.mode !== g(Je).EDITOR ? (M(), pe("button", {
54275
+ g(i) && !f.disableSuperInput && f.mode !== g(et).EDITOR ? (M(), pe("button", {
54276
54276
  key: 0,
54277
54277
  class: "bubble-menu-item",
54278
54278
  onClick: u
@@ -55200,10 +55200,10 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55200
55200
  handleKeyDown: xt.throttle((oe, X) => X.key === "Enter" && a.enter && !X.shiftKey ? (r("enter"), !0) : !1, vi),
55201
55201
  transformPastedHTML: (oe) => (oe = oe.replace(/\s*style="[^"]*"/g, ""), oe),
55202
55202
  handlePaste(oe, X) {
55203
- var Ze;
55204
- if (o.mode !== Je.PLAIN_TEXT) return !1;
55203
+ var Je;
55204
+ if (o.mode !== et.PLAIN_TEXT) return !1;
55205
55205
  X.preventDefault();
55206
- const me = ((Ze = X.clipboardData) == null ? void 0 : Ze.getData("text/plain")) || "", { tr: ge, selection: Ne } = oe.state;
55206
+ const me = ((Je = X.clipboardData) == null ? void 0 : Je.getData("text/plain")) || "", { tr: ge, selection: Ne } = oe.state;
55207
55207
  return oe.dispatch(ge.insertText(me, Ne.from)), !0;
55208
55208
  }
55209
55209
  },
@@ -55264,7 +55264,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55264
55264
  if (!oe) return "";
55265
55265
  if (oe.isEmpty)
55266
55266
  return X === "json" ? {} : "";
55267
- if (o.mode === Je.PLAIN_TEXT)
55267
+ if (o.mode === et.PLAIN_TEXT)
55268
55268
  return oe.getText({ blockSeparator: `
55269
55269
  ` });
55270
55270
  switch (X) {
@@ -55327,10 +55327,10 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55327
55327
  const me = V;
55328
55328
  if (me) {
55329
55329
  if (X) {
55330
- const ge = me.state.doc.nodeAt(+X), { [bt.ELEMENT_ID]: Ne, ...Ze } = (ge == null ? void 0 : ge.attrs) || {};
55330
+ const ge = me.state.doc.nodeAt(+X), { [bt.ELEMENT_ID]: Ne, ...Je } = (ge == null ? void 0 : ge.attrs) || {};
55331
55331
  me.view.dispatch(
55332
55332
  me.state.tr.setNodeMarkup(+X, void 0, {
55333
- ...Ze,
55333
+ ...Je,
55334
55334
  [bt.TEXT]: oe
55335
55335
  })
55336
55336
  );
@@ -55359,9 +55359,9 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55359
55359
  (me = be.value) == null || me.commands.toggleConfigPlanInput();
55360
55360
  };
55361
55361
  function Ye(oe) {
55362
- oe === Je.STRAIGHT && V.commands.focus("end"), oe === Je.EDITOR && V.commands.focus("end");
55362
+ oe === et.STRAIGHT && V.commands.focus("end"), oe === et.EDITOR && V.commands.focus("end");
55363
55363
  }
55364
- const se = Y(() => E.value && o.mode === Je.STRAIGHT || E.value && o.mode === Je.REPORT);
55364
+ const se = Y(() => E.value && o.mode === et.STRAIGHT || E.value && o.mode === et.REPORT);
55365
55365
  pt(() => {
55366
55366
  var oe, X;
55367
55367
  o.autoFocus && Ye(o.mode), (oe = V == null ? void 0 : V.commands) != null && oe.setIsMobile && V.commands.setIsMobile(!0), (X = V.storage.superText) != null && X.enable && V.commands.toggleSuperTextView();
@@ -55372,7 +55372,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55372
55372
  }
55373
55373
  );
55374
55374
  const ce = (mt = V.extensionManager.extensions.find((oe) => oe.name === "superText")) == null ? void 0 : mt.options.bottomSheetComponent, we = Y(() => {
55375
- const oe = o.mode === Je.REPORT, X = o.mode === Je.EDITOR && o.isScreenSplit, me = !o.hideComment;
55375
+ const oe = o.mode === et.REPORT, X = o.mode === et.EDITOR && o.isScreenSplit, me = !o.hideComment;
55376
55376
  return (oe || X) && me;
55377
55377
  }), xe = Y(() => !we.value), {
55378
55378
  HEADER_ONLY_SIZE: Ae,
@@ -55391,7 +55391,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55391
55391
  const { isScrolling: z, handleScroll: ve } = Qc(), { isScrolling: Oe, handleScroll: Ge } = Qc();
55392
55392
  return e({ editor: V }), (oe, X) => {
55393
55393
  var Pt, It, Fn, Zn;
55394
- const me = S7, ge = C0, Ne = x0, Ze = w0, yt = r0, jt = E7, pn = uae, Lr = Np, fe = aae, qe = ln, rt = ao;
55394
+ const me = S7, ge = C0, Ne = x0, Je = w0, yt = r0, jt = E7, pn = uae, Lr = Np, fe = aae, qe = ln, rt = ao;
55395
55395
  return M(), pe(nt, null, [
55396
55396
  g(be) ? (M(), pe("div", {
55397
55397
  key: 0,
@@ -55405,7 +55405,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55405
55405
  !o.height && "flex-1",
55406
55406
  oe.editorClass,
55407
55407
  oe.disabled && "disabled",
55408
- oe.mode !== g(Je).EDITOR && oe.isShowLineNumber && "editor-line"
55408
+ oe.mode !== g(et).EDITOR && oe.isShowLineNumber && "editor-line"
55409
55409
  )
55410
55410
  )
55411
55411
  }, [
@@ -55422,7 +55422,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55422
55422
  key: 1,
55423
55423
  editor: g(V)
55424
55424
  }, null, 8, ["editor"])) : Se("", !0),
55425
- De([g(ta)]) ? (M(), $(Ze, {
55425
+ De([g(ta)]) ? (M(), $(Je, {
55426
55426
  key: 2,
55427
55427
  editor: g(V)
55428
55428
  }, null, 8, ["editor"])) : Se("", !0),
@@ -55438,10 +55438,10 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55438
55438
  disabled: oe.disabled,
55439
55439
  class: "mb-[3px]",
55440
55440
  "custom-class-toolbar": oe.customClassToolbar,
55441
- "active-extensions": oe.mode === g(Je).EDITOR ? [Yc] : void 0
55441
+ "active-extensions": oe.mode === g(et).EDITOR ? [Yc] : void 0
55442
55442
  }, null, 8, ["editor", "mode", "disabled", "custom-class-toolbar", "active-extensions"])),
55443
55443
  (M(), $(ed, { to: "body" }, [
55444
- oe.isShowFormatControlBar && oe.mode === g(Je).EDITOR ? (M(), pe("div", {
55444
+ oe.isShowFormatControlBar && oe.mode === g(et).EDITOR ? (M(), pe("div", {
55445
55445
  key: 0,
55446
55446
  style: Dt({
55447
55447
  ...g(P),
@@ -55480,13 +55480,13 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55480
55480
  }, null, 8, ["title-bar"])) : Se("", !0),
55481
55481
  (Dr = oe.fieldNameComment) != null && Dr.label ? (M(), pe("div", {
55482
55482
  key: 1,
55483
- onClick: X[0] || (X[0] = (eo) => g(Nt)("pane1")),
55484
55483
  class: We(
55485
55484
  g(He)(
55486
55485
  "flex justify-between items-center py-1.5 mb-1 active:bg-ed-accent",
55487
55486
  !oe.isAccordion && "pointer-events-none"
55488
55487
  )
55489
- )
55488
+ ),
55489
+ onClick: X[0] || (X[0] = (eo) => g(Nt)("pane1"))
55490
55490
  }, [
55491
55491
  D(ph, {
55492
55492
  "field-name": oe.fieldNameComment,
@@ -55498,15 +55498,15 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55498
55498
  })) : Se("", !0)
55499
55499
  ], 2)) : Se("", !0),
55500
55500
  ko(ee("div", {
55501
- onScroll: X[2] || (X[2] = //@ts-ignore
55502
- (...eo) => g(ve) && g(ve)(...eo)),
55503
55501
  class: We(
55504
55502
  g(He)(
55505
55503
  "flex-1 !overflow-y-auto overflow-x-hidden basis-0 flex h-full flex-col",
55506
55504
  !g(z) && "scrollbar-thumb-transparent",
55507
55505
  oe.contentClass
55508
55506
  )
55509
- )
55507
+ ),
55508
+ onScroll: X[2] || (X[2] = //@ts-ignore
55509
+ (...eo) => g(ve) && g(ve)(...eo))
55510
55510
  }, [
55511
55511
  D(vae, {
55512
55512
  ref: "editorCommentRef",
@@ -55544,13 +55544,13 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55544
55544
  ee("div", wae, [
55545
55545
  (Dr = oe.fieldNameContent) != null && Dr.label ? (M(), pe("div", {
55546
55546
  key: 0,
55547
- onClick: X[3] || (X[3] = (Si) => g(Nt)("pane2")),
55548
55547
  class: We(
55549
55548
  g(He)(
55550
55549
  "flex justify-between items-center py-1.5 mb-1 active:bg-ed-accent flex-1",
55551
55550
  !oe.isAccordion && "pointer-events-none"
55552
55551
  )
55553
- )
55552
+ ),
55553
+ onClick: X[3] || (X[3] = (Si) => g(Nt)("pane2"))
55554
55554
  }, [
55555
55555
  D(ph, {
55556
55556
  "field-name": oe.fieldNameContent,
@@ -55582,17 +55582,17 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55582
55582
  D(fe, {
55583
55583
  id: "superView",
55584
55584
  checked: g(V).storage.superText.enable,
55585
- "onUpdate:checked": X[4] || (X[4] = (Si) => g(V).commands.toggleSuperTextView()),
55586
55585
  class: "w-8 h-5 data-[state=checked]:bg-blue-500",
55587
- "custom-class-thumb": "w-4 h-4 data-[state=checked]:translate-x-3"
55586
+ "custom-class-thumb": "w-4 h-4 data-[state=checked]:translate-x-3",
55587
+ "onUpdate:checked": X[4] || (X[4] = (Si) => g(V).commands.toggleSuperTextView())
55588
55588
  }, null, 8, ["checked"])
55589
55589
  ], 2)) : Se("", !0),
55590
55590
  oe.contentAutoCopied ? (M(), $(rt, {
55591
55591
  key: 2,
55592
55592
  disabled: g(f0)(oe.contentAutoCopied),
55593
- onClick: q,
55594
55593
  variant: "ghost",
55595
- class: "w-fit h-fit p-0 gap-x-1 label-large text-blue-500"
55594
+ class: "w-fit h-fit p-0 gap-x-1 label-large text-blue-500",
55595
+ onClick: q
55596
55596
  }, {
55597
55597
  default: N(() => [
55598
55598
  D(qe, {
@@ -55605,20 +55605,20 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55605
55605
  }, 8, ["disabled"])) : Se("", !0)
55606
55606
  ]),
55607
55607
  ko(ee("div", {
55608
- onScroll: X[5] || (X[5] = //@ts-ignore
55609
- (...Si) => g(Ge) && g(Ge)(...Si)),
55610
55608
  class: We(
55611
55609
  g(He)(
55612
55610
  "flex-1 !overflow-y-auto overflow-x-hidden basis-0 flex flex-col",
55613
55611
  !g(Oe) && "scrollbar-thumb-transparent",
55614
55612
  oe.contentClass
55615
55613
  )
55616
- )
55614
+ ),
55615
+ onScroll: X[5] || (X[5] = //@ts-ignore
55616
+ (...Si) => g(Ge) && g(Ge)(...Si))
55617
55617
  }, [
55618
55618
  D(g(fi), {
55619
55619
  id: "editor-panel",
55620
55620
  editor: g(V),
55621
- class: We(["flex-1 flex-col relative break-all", oe.mode === g(Je).PLAIN_TEXT && "plain-text"])
55621
+ class: We(["flex-1 flex-col relative break-all", oe.mode === g(et).PLAIN_TEXT && "plain-text"])
55622
55622
  }, null, 8, ["editor", "class"])
55623
55623
  ], 34), [
55624
55624
  [ir, g(Me)]
@@ -55654,7 +55654,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55654
55654
  }), _le = /* @__PURE__ */ j({
55655
55655
  __name: "ArticleEditor",
55656
55656
  props: {
55657
- mode: { default: Je.STRAIGHT },
55657
+ mode: { default: et.STRAIGHT },
55658
55658
  isMobile: { type: Boolean },
55659
55659
  superTextArea: {},
55660
55660
  modelValue: {},
@@ -55716,7 +55716,7 @@ const wae = { class: "flex justify-between items-center relative" }, xc = /* @__
55716
55716
  }), Sle = /* @__PURE__ */ j({
55717
55717
  __name: "DigitalNewsEditor",
55718
55718
  props: {
55719
- mode: { default: Je.EDITOR },
55719
+ mode: { default: et.EDITOR },
55720
55720
  isMobile: { type: Boolean },
55721
55721
  superTextArea: {},
55722
55722
  modelValue: {},
@@ -56206,15 +56206,16 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
56206
56206
  }, [
56207
56207
  D(xc, {
56208
56208
  "editor-class": "h-full",
56209
- mode: (k = b.originalData) != null && k.comment ? g(Je).REPORT : g(Je).EDITOR,
56209
+ mode: g(et).REPORT,
56210
56210
  disabled: "",
56211
56211
  "hide-toolbar": "",
56212
56212
  extensions: b.extensions,
56213
- "field-name-comment": (F = b.originalData) == null ? void 0 : F.fieldNameComment,
56214
- "field-name-content": (P = b.originalData) == null ? void 0 : P.fieldNameContent,
56215
- comment: (R = b.originalData) == null ? void 0 : R.comment,
56216
- "model-value": (Q = b.originalData) == null ? void 0 : Q.content
56217
- }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value"])
56213
+ "field-name-comment": (k = b.originalData) == null ? void 0 : k.fieldNameComment,
56214
+ "field-name-content": (F = b.originalData) == null ? void 0 : F.fieldNameContent,
56215
+ comment: (P = b.originalData) == null ? void 0 : P.comment,
56216
+ "model-value": (R = b.originalData) == null ? void 0 : R.content,
56217
+ "hide-comment": (Q = b.originalData) == null ? void 0 : Q.hideComment
56218
+ }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment"])
56218
56219
  ], 34), [
56219
56220
  [ir, g(i)]
56220
56221
  ])
@@ -56229,15 +56230,16 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
56229
56230
  ee("div", Mae, [
56230
56231
  D(xc, {
56231
56232
  "editor-class": "h-full",
56232
- mode: (x = b.originalData) != null && x.comment ? g(Je).REPORT : g(Je).EDITOR,
56233
+ mode: g(et).REPORT,
56233
56234
  disabled: "",
56234
56235
  "hide-toolbar": "",
56235
56236
  extensions: b.extensions,
56236
- "field-name-comment": (_ = b.changedData) == null ? void 0 : _.fieldNameComment,
56237
- "field-name-content": (E = b.changedData) == null ? void 0 : E.fieldNameContent,
56238
- comment: (C = b.changedData) == null ? void 0 : C.comment,
56239
- "model-value": (T = b.changedData) == null ? void 0 : T.content
56240
- }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value"])
56237
+ "field-name-comment": (x = b.changedData) == null ? void 0 : x.fieldNameComment,
56238
+ "field-name-content": (_ = b.changedData) == null ? void 0 : _.fieldNameContent,
56239
+ comment: (E = b.changedData) == null ? void 0 : E.comment,
56240
+ "model-value": (C = b.changedData) == null ? void 0 : C.content,
56241
+ "hide-comment": (T = b.changedData) == null ? void 0 : T.hideComment
56242
+ }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment"])
56241
56243
  ])
56242
56244
  ];
56243
56245
  }),
@@ -56278,15 +56280,16 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
56278
56280
  }, [
56279
56281
  D(xc, {
56280
56282
  "editor-class": "h-full",
56281
- mode: (k = b.originalData) != null && k.comment ? g(Je).REPORT : g(Je).EDITOR,
56283
+ mode: g(et).REPORT,
56282
56284
  disabled: "",
56283
56285
  "hide-toolbar": "",
56284
56286
  extensions: b.extensions,
56285
- "field-name-comment": (F = b.changedData) == null ? void 0 : F.fieldNameComment,
56286
- "field-name-content": (P = b.changedData) == null ? void 0 : P.fieldNameContent,
56287
+ "field-name-comment": (k = b.changedData) == null ? void 0 : k.fieldNameComment,
56288
+ "field-name-content": (F = b.changedData) == null ? void 0 : F.fieldNameContent,
56287
56289
  comment: g(o).comment,
56288
- "model-value": g(o).content
56289
- }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value"])
56290
+ "model-value": g(o).content,
56291
+ "hide-comment": (P = b.changedData) == null ? void 0 : P.hideComment
56292
+ }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment"])
56290
56293
  ], 34), [
56291
56294
  [ir, g(s)]
56292
56295
  ])
@@ -56300,7 +56303,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
56300
56303
  ], 2);
56301
56304
  };
56302
56305
  }
56303
- }), Tle = /* @__PURE__ */ ss(Fae, [["__scopeId", "data-v-5f36a8d1"]]), O7 = (t) => {
56306
+ }), Tle = /* @__PURE__ */ ss(Fae, [["__scopeId", "data-v-cff36561"]]), O7 = (t) => {
56304
56307
  if (!t) return -1;
56305
56308
  const { from: e } = t.state.selection;
56306
56309
  let n = 0;
@@ -56360,7 +56363,7 @@ const Cae = /* @__PURE__ */ BH(xae), Vx = (t, e, n) => {
56360
56363
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
56361
56364
  setup(t, { expose: e, emit: n }) {
56362
56365
  const o = t, r = n;
56363
- Y(() => o.mode === Je.EDITOR);
56366
+ Y(() => o.mode === et.EDITOR);
56364
56367
  const i = Ao(Ko.RENDER_SUPER_TEXT), s = uo(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, f = H(!1);
56365
56368
  fn("isEditable", f);
56366
56369
  const h = H(i8(o.modelValue));
@@ -56551,7 +56554,7 @@ const kle = /* @__PURE__ */ j({
56551
56554
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
56552
56555
  setup(t, { expose: e, emit: n }) {
56553
56556
  const o = t, r = n;
56554
- fn("isMobile", !0), Y(() => o.mode === Je.EDITOR);
56557
+ fn("isMobile", !0), Y(() => o.mode === et.EDITOR);
56555
56558
  const i = Ao(Ko.INCREASE_DECREASE_FONTSIZE);
56556
56559
  nd();
56557
56560
  const s = uo(), { state: a, isFullscreen: l, isReady: u, editor: d, updateEditorState: f, checkSpellStore: h } = s, m = H(!1);
@@ -57220,7 +57223,7 @@ export {
57220
57223
  zae as B,
57221
57224
  Lp as C,
57222
57225
  Lt as D,
57223
- Je as E,
57226
+ et as E,
57224
57227
  Vae as F,
57225
57228
  Kt as P,
57226
57229
  $o as S,
@@ -57252,4 +57255,4 @@ export {
57252
57255
  nle as y,
57253
57256
  Yae as z
57254
57257
  };
57255
- //# sourceMappingURL=index-DTtLJZUI.mjs.map
57258
+ //# sourceMappingURL=index-BA-CmqOV.mjs.map