@srcker/editor-vue-next 1.1.1 → 1.2.0

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as et, shallowRef as Zd, onMounted as tt, onBeforeUnmount as Ve, h as Sn, ref as te, getCurrentInstance as ef, watchEffect as tf, nextTick as Pa, unref as Ae, markRaw as nf, customRef as rf, createElementBlock as z, openBlock as I, createElementVNode as b, computed as Mn, normalizeClass as _, createVNode as $, toDisplayString as Be, Transition as rr, withCtx as Tn, withDirectives as ir, Fragment as Zt, renderList as en, normalizeStyle as hn, vShow as sr, createCommentVNode as pn, createBlock as Xs, withModifiers as sf, watch as of } from "vue";
1
+ import { defineComponent as et, shallowRef as Zd, onMounted as tt, onBeforeUnmount as Ve, h as Sn, ref as te, getCurrentInstance as ef, watchEffect as tf, nextTick as Pa, unref as Ae, markRaw as nf, customRef as rf, createElementBlock as z, openBlock as I, createElementVNode as b, computed as Mn, normalizeClass as _, createVNode as $, toDisplayString as Be, Transition as rr, withCtx as Tn, withDirectives as ir, Fragment as en, renderList as tn, normalizeStyle as Jt, vShow as sr, createCommentVNode as pn, createBlock as Xs, withModifiers as sf, watch as of } from "vue";
2
2
  /* empty css */
3
3
  function ce(n) {
4
4
  this.content = n;
@@ -1409,7 +1409,7 @@ function ja(n, e) {
1409
1409
  e = n[t].type.name + "(" + e + ")";
1410
1410
  return e;
1411
1411
  }
1412
- class Jt {
1412
+ class Gt {
1413
1413
  /**
1414
1414
  @internal
1415
1415
  */
@@ -1422,7 +1422,7 @@ class Jt {
1422
1422
  static parse(e, t) {
1423
1423
  let r = new ff(e, t);
1424
1424
  if (r.next == null)
1425
- return Jt.empty;
1425
+ return Gt.empty;
1426
1426
  let i = Wa(r);
1427
1427
  r.next && r.err("Unexpected trailing text");
1428
1428
  let s = kf(bf(i));
@@ -1571,7 +1571,7 @@ class Jt {
1571
1571
  `);
1572
1572
  }
1573
1573
  }
1574
- Jt.empty = new Jt(!0);
1574
+ Gt.empty = new Gt(!0);
1575
1575
  class ff {
1576
1576
  constructor(e, t) {
1577
1577
  this.string = e, this.nodeTypes = t, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
@@ -1734,7 +1734,7 @@ function kf(n) {
1734
1734
  });
1735
1735
  });
1736
1736
  });
1737
- let s = e[r.join(",")] = new Jt(r.indexOf(n.length - 1) > -1);
1737
+ let s = e[r.join(",")] = new Gt(r.indexOf(n.length - 1) > -1);
1738
1738
  for (let o = 0; o < i.length; o++) {
1739
1739
  let l = i[o][1].sort(Ua);
1740
1740
  s.next.push({ type: i[o][0], next: e[l.join(",")] || t(l) });
@@ -1817,7 +1817,7 @@ let Zo = class Ya {
1817
1817
  True for node types that allow no content.
1818
1818
  */
1819
1819
  get isLeaf() {
1820
- return this.contentMatch == Jt.empty;
1820
+ return this.contentMatch == Gt.empty;
1821
1821
  }
1822
1822
  /**
1823
1823
  True when this node is an atom, i.e. when it does not have
@@ -2058,7 +2058,7 @@ class Xa {
2058
2058
  if (i in this.marks)
2059
2059
  throw new RangeError(i + " can not be both a node and a mark");
2060
2060
  let s = this.nodes[i], o = s.spec.content || "", l = s.spec.marks;
2061
- if (s.contentMatch = r[o] || (r[o] = Jt.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.spec.linebreakReplacement) {
2061
+ if (s.contentMatch = r[o] || (r[o] = Gt.parse(o, this.nodes)), s.inlineContent = s.contentMatch.inlineContent, s.spec.linebreakReplacement) {
2062
2062
  if (this.linebreakReplacement)
2063
2063
  throw new RangeError("Multiple linebreak nodes defined");
2064
2064
  if (!s.isInline || !s.isLeaf)
@@ -2641,7 +2641,7 @@ function il(n, e) {
2641
2641
  return !0;
2642
2642
  }
2643
2643
  }
2644
- class tn {
2644
+ class nn {
2645
2645
  /**
2646
2646
  Create a serializer. `nodes` should map node names to functions
2647
2647
  that take a node and return a description of the corresponding
@@ -2728,7 +2728,7 @@ class tn {
2728
2728
  properties in a schema's node and mark specs.
2729
2729
  */
2730
2730
  static fromSchema(e) {
2731
- return e.cached.domSerializer || (e.cached.domSerializer = new tn(this.nodesFromSchema(e), this.marksFromSchema(e)));
2731
+ return e.cached.domSerializer || (e.cached.domSerializer = new nn(this.nodesFromSchema(e), this.marksFromSchema(e)));
2732
2732
  }
2733
2733
  /**
2734
2734
  Gather the serializers in a schema's node specs into an object.
@@ -3255,7 +3255,7 @@ class Mt extends pe {
3255
3255
  return new Mt(this.pos, this.mark);
3256
3256
  }
3257
3257
  }
3258
- return new Gt(this.pos, this.mark);
3258
+ return new Yt(this.pos, this.mark);
3259
3259
  }
3260
3260
  map(e) {
3261
3261
  let t = e.mapResult(this.pos, 1);
@@ -3274,7 +3274,7 @@ class Mt extends pe {
3274
3274
  }
3275
3275
  }
3276
3276
  pe.jsonID("addNodeMark", Mt);
3277
- class Gt extends pe {
3277
+ class Yt extends pe {
3278
3278
  /**
3279
3279
  Create a mark-removing step.
3280
3280
  */
@@ -3294,7 +3294,7 @@ class Gt extends pe {
3294
3294
  }
3295
3295
  map(e) {
3296
3296
  let t = e.mapResult(this.pos, 1);
3297
- return t.deletedAfter ? null : new Gt(t.pos, this.mark);
3297
+ return t.deletedAfter ? null : new Yt(t.pos, this.mark);
3298
3298
  }
3299
3299
  toJSON() {
3300
3300
  return { stepType: "removeNodeMark", pos: this.pos, mark: this.mark.toJSON() };
@@ -3305,10 +3305,10 @@ class Gt extends pe {
3305
3305
  static fromJSON(e, t) {
3306
3306
  if (typeof t.pos != "number")
3307
3307
  throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");
3308
- return new Gt(t.pos, e.markFromJSON(t.mark));
3308
+ return new Yt(t.pos, e.markFromJSON(t.mark));
3309
3309
  }
3310
3310
  }
3311
- pe.jsonID("removeNodeMark", Gt);
3311
+ pe.jsonID("removeNodeMark", Yt);
3312
3312
  class oe extends pe {
3313
3313
  /**
3314
3314
  The given `slice` should fit the 'gap' between `from` and
@@ -4005,7 +4005,7 @@ function fc(n, e) {
4005
4005
  }
4006
4006
  return t;
4007
4007
  }
4008
- class un extends pe {
4008
+ class dn extends pe {
4009
4009
  /**
4010
4010
  Construct an attribute step.
4011
4011
  */
@@ -4027,11 +4027,11 @@ class un extends pe {
4027
4027
  return Se.empty;
4028
4028
  }
4029
4029
  invert(e) {
4030
- return new un(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
4030
+ return new dn(this.pos, this.attr, e.nodeAt(this.pos).attrs[this.attr]);
4031
4031
  }
4032
4032
  map(e) {
4033
4033
  let t = e.mapResult(this.pos, 1);
4034
- return t.deletedAfter ? null : new un(t.pos, this.attr, this.value);
4034
+ return t.deletedAfter ? null : new dn(t.pos, this.attr, this.value);
4035
4035
  }
4036
4036
  toJSON() {
4037
4037
  return { stepType: "attr", pos: this.pos, attr: this.attr, value: this.value };
@@ -4039,10 +4039,10 @@ class un extends pe {
4039
4039
  static fromJSON(e, t) {
4040
4040
  if (typeof t.pos != "number" || typeof t.attr != "string")
4041
4041
  throw new RangeError("Invalid input for AttrStep.fromJSON");
4042
- return new un(t.pos, t.attr, t.value);
4042
+ return new dn(t.pos, t.attr, t.value);
4043
4043
  }
4044
4044
  }
4045
- pe.jsonID("attr", un);
4045
+ pe.jsonID("attr", dn);
4046
4046
  class Jn extends pe {
4047
4047
  /**
4048
4048
  Construct an attribute step.
@@ -4243,7 +4243,7 @@ class hc {
4243
4243
  to set attributes on the document itself.
4244
4244
  */
4245
4245
  setNodeAttribute(e, t, r) {
4246
- return this.step(new un(e, t, r)), this;
4246
+ return this.step(new dn(e, t, r)), this;
4247
4247
  }
4248
4248
  /**
4249
4249
  Set a single attribute on the document to a new value.
@@ -4266,11 +4266,11 @@ class hc {
4266
4266
  if (!r)
4267
4267
  throw new RangeError("No node at position " + e);
4268
4268
  if (t instanceof j)
4269
- t.isInSet(r.marks) && this.step(new Gt(e, t));
4269
+ t.isInSet(r.marks) && this.step(new Yt(e, t));
4270
4270
  else {
4271
4271
  let i = r.marks, s, o = [];
4272
4272
  for (; s = t.isInSet(i); )
4273
- o.push(new Gt(e, s)), i = s.removeFromSet(i);
4273
+ o.push(new Yt(e, s)), i = s.removeFromSet(i);
4274
4274
  for (let l = o.length - 1; l >= 0; l--)
4275
4275
  this.step(o[l]);
4276
4276
  }
@@ -4406,11 +4406,11 @@ class D {
4406
4406
  found.
4407
4407
  */
4408
4408
  static findFrom(e, t, r = !1) {
4409
- let i = e.parent.inlineContent ? new L(e) : sn(e.node(0), e.parent, e.pos, e.index(), t, r);
4409
+ let i = e.parent.inlineContent ? new L(e) : on(e.node(0), e.parent, e.pos, e.index(), t, r);
4410
4410
  if (i)
4411
4411
  return i;
4412
4412
  for (let s = e.depth - 1; s >= 0; s--) {
4413
- let o = t < 0 ? sn(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : sn(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
4413
+ let o = t < 0 ? on(e.node(0), e.node(s), e.before(s + 1), e.index(s), t, r) : on(e.node(0), e.node(s), e.after(s + 1), e.index(s) + 1, t, r);
4414
4414
  if (o)
4415
4415
  return o;
4416
4416
  }
@@ -4431,14 +4431,14 @@ class D {
4431
4431
  exists.
4432
4432
  */
4433
4433
  static atStart(e) {
4434
- return sn(e, e, 0, 0, 1) || new Me(e);
4434
+ return on(e, e, 0, 0, 1) || new Me(e);
4435
4435
  }
4436
4436
  /**
4437
4437
  Find the cursor or leaf node selection closest to the end of the
4438
4438
  given document.
4439
4439
  */
4440
4440
  static atEnd(e) {
4441
- return sn(e, e, e.content.size, e.childCount, -1) || new Me(e);
4441
+ return on(e, e, e.content.size, e.childCount, -1) || new Me(e);
4442
4442
  }
4443
4443
  /**
4444
4444
  Deserialize the JSON representation of a selection. Must be
@@ -4677,7 +4677,7 @@ const Qf = {
4677
4677
  return new Me(n);
4678
4678
  }
4679
4679
  };
4680
- function sn(n, e, t, r, i, s = !1) {
4680
+ function on(n, e, t, r, i, s = !1) {
4681
4681
  if (e.inlineContent)
4682
4682
  return L.create(n, t);
4683
4683
  for (let o = r - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
@@ -4686,7 +4686,7 @@ function sn(n, e, t, r, i, s = !1) {
4686
4686
  if (!s && O.isSelectable(l))
4687
4687
  return O.create(n, t - (i < 0 ? l.nodeSize : 0));
4688
4688
  } else {
4689
- let a = sn(n, l, t + i, i < 0 ? l.childCount : 0, i, s);
4689
+ let a = on(n, l, t + i, i < 0 ? l.childCount : 0, i, s);
4690
4690
  if (a)
4691
4691
  return a;
4692
4692
  }
@@ -4909,7 +4909,7 @@ class Gi {
4909
4909
  });
4910
4910
  }
4911
4911
  }
4912
- class cn {
4912
+ class un {
4913
4913
  /**
4914
4914
  @internal
4915
4915
  */
@@ -4984,7 +4984,7 @@ class cn {
4984
4984
  applyInner(e) {
4985
4985
  if (!e.before.eq(this.doc))
4986
4986
  throw new RangeError("Applying a mismatched transaction");
4987
- let t = new cn(this.config), r = this.config.fields;
4987
+ let t = new un(this.config), r = this.config.fields;
4988
4988
  for (let i = 0; i < r.length; i++) {
4989
4989
  let s = r[i];
4990
4990
  t[s.name] = s.apply(e, this[s.name], this, t);
@@ -5001,7 +5001,7 @@ class cn {
5001
5001
  Create a new state.
5002
5002
  */
5003
5003
  static create(e) {
5004
- let t = new Gi(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new cn(t);
5004
+ let t = new Gi(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new un(t);
5005
5005
  for (let i = 0; i < t.fields.length; i++)
5006
5006
  r[t.fields[i].name] = t.fields[i].init(e, r);
5007
5007
  return r;
@@ -5015,7 +5015,7 @@ class cn {
5015
5015
  configuration object..
5016
5016
  */
5017
5017
  reconfigure(e) {
5018
- let t = new Gi(this.schema, e.plugins), r = t.fields, i = new cn(t);
5018
+ let t = new Gi(this.schema, e.plugins), r = t.fields, i = new un(t);
5019
5019
  for (let s = 0; s < r.length; s++) {
5020
5020
  let o = r[s].name;
5021
5021
  i[o] = this.hasOwnProperty(o) ? this[o] : r[s].init(e, i);
@@ -5052,7 +5052,7 @@ class cn {
5052
5052
  throw new RangeError("Invalid input for EditorState.fromJSON");
5053
5053
  if (!e.schema)
5054
5054
  throw new RangeError("Required config field 'schema' missing");
5055
- let i = new Gi(e.schema, e.plugins), s = new cn(i);
5055
+ let i = new Gi(e.schema, e.plugins), s = new un(i);
5056
5056
  return i.fields.forEach((o) => {
5057
5057
  if (o.name == "doc")
5058
5058
  s.doc = Et.fromJSON(e.schema, t.doc);
@@ -5575,7 +5575,7 @@ const lt = function(n, e, t) {
5575
5575
  return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
5576
5576
  }, vh = function() {
5577
5577
  Cs = null;
5578
- }, Yt = function(n, e, t, r) {
5578
+ }, Xt = function(n, e, t, r) {
5579
5579
  return t && (gl(n, e, t, r, -1) || gl(n, e, t, r, 1));
5580
5580
  }, xh = /^(img|br|input|textarea|hr)$/i;
5581
5581
  function gl(n, e, t, r, i) {
@@ -5648,7 +5648,7 @@ function or(n) {
5648
5648
  return e && e.node && e.node.isBlock && (e.dom == n || e.contentDOM == n);
5649
5649
  }
5650
5650
  const Ai = function(n) {
5651
- return n.focusNode && Yt(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
5651
+ return n.focusNode && Xt(n.focusNode, n.focusOffset, n.anchorNode, n.anchorOffset);
5652
5652
  };
5653
5653
  function Ft(n, e) {
5654
5654
  let t = document.createEvent("Event");
@@ -5756,18 +5756,18 @@ function Rc(n, e) {
5756
5756
  r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != s && (r.scrollLeft = s);
5757
5757
  }
5758
5758
  }
5759
- let nn = null;
5759
+ let rn = null;
5760
5760
  function Lh(n) {
5761
5761
  if (n.setActive)
5762
5762
  return n.setActive();
5763
- if (nn)
5764
- return n.focus(nn);
5763
+ if (rn)
5764
+ return n.focus(rn);
5765
5765
  let e = Dc(n);
5766
- n.focus(nn == null ? {
5766
+ n.focus(rn == null ? {
5767
5767
  get preventScroll() {
5768
- return nn = { preventScroll: !0 }, !0;
5768
+ return rn = { preventScroll: !0 }, !0;
5769
5769
  }
5770
- } : void 0), nn || (nn = !1, Rc(e, 0));
5770
+ } : void 0), rn || (rn = !1, Rc(e, 0));
5771
5771
  }
5772
5772
  function Ic(n, e) {
5773
5773
  let t, r = 2e8, i, s = 0, o = e.top, l = e.top, a, c;
@@ -6293,7 +6293,7 @@ class ar {
6293
6293
  let h = u.focusNode.childNodes[u.focusOffset];
6294
6294
  h && h.contentEditable == "false" && (i = !0);
6295
6295
  }
6296
- if (!(i || d && ye) && Yt(l.node, l.offset, u.anchorNode, u.anchorOffset) && Yt(a.node, a.offset, u.focusNode, u.focusOffset))
6296
+ if (!(i || d && ye) && Xt(l.node, l.offset, u.anchorNode, u.anchorOffset) && Xt(a.node, a.offset, u.focusNode, u.focusOffset))
6297
6297
  return;
6298
6298
  let f = !1;
6299
6299
  if ((c.extend || e == t) && !(d && Re)) {
@@ -6415,13 +6415,13 @@ class Uh extends ar {
6415
6415
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
6416
6416
  }
6417
6417
  }
6418
- class Xt extends ar {
6418
+ class Qt extends ar {
6419
6419
  constructor(e, t, r, i, s) {
6420
6420
  super(e, [], r, i), this.mark = t, this.spec = s;
6421
6421
  }
6422
6422
  static create(e, t, r, i) {
6423
6423
  let s = i.nodeViews[t.type.name], o = s && s(t, i, r);
6424
- return (!o || !o.dom) && (o = tn.renderSpec(document, t.type.spec.toDOM(t, r), null, t.attrs)), new Xt(e, t, o.dom, o.contentDOM || o.dom, o);
6424
+ return (!o || !o.dom) && (o = nn.renderSpec(document, t.type.spec.toDOM(t, r), null, t.attrs)), new Qt(e, t, o.dom, o.contentDOM || o.dom, o);
6425
6425
  }
6426
6426
  parseRule() {
6427
6427
  return this.dirty & Xe || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -6438,7 +6438,7 @@ class Xt extends ar {
6438
6438
  }
6439
6439
  }
6440
6440
  slice(e, t, r) {
6441
- let i = Xt.create(this.parent, this.mark, !0, r), s = this.children, o = this.size;
6441
+ let i = Qt.create(this.parent, this.mark, !0, r), s = this.children, o = this.size;
6442
6442
  t < o && (s = As(s, t, o, r)), e > 0 && (s = As(s, 0, e, r));
6443
6443
  for (let l = 0; l < s.length; l++)
6444
6444
  s[l].parent = i;
@@ -6476,7 +6476,7 @@ class Nt extends ar {
6476
6476
  u = document.createTextNode(t.text);
6477
6477
  else if (u.nodeType != 3)
6478
6478
  throw new RangeError("Text must be rendered as a DOM text node");
6479
- } else u || ({ dom: u, contentDOM: d } = tn.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
6479
+ } else u || ({ dom: u, contentDOM: d } = nn.renderSpec(document, t.type.spec.toDOM(t), null, t.attrs));
6480
6480
  !d && !t.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), t.type.spec.draggable && (u.draggable = !0));
6481
6481
  let f = u;
6482
6482
  return u = Vc(u, r, t), c ? a = new Kh(e, t, r, i, u, d || null, f, c, s, o + 1) : t.isText ? new Oi(e, t, r, i, u, f, s) : new Nt(e, t, r, i, u, d || null, f, s, o + 1);
@@ -6683,7 +6683,7 @@ function Fc(n, e, t) {
6683
6683
  r = r.nextSibling;
6684
6684
  } else
6685
6685
  i = !0, n.insertBefore(l, r);
6686
- if (o instanceof Xt) {
6686
+ if (o instanceof Qt) {
6687
6687
  let a = r ? r.previousSibling : n.lastChild;
6688
6688
  Fc(o.contentDOM, o.children, t), r = a ? a.nextSibling : n.firstChild;
6689
6689
  }
@@ -6802,7 +6802,7 @@ class Jh {
6802
6802
  if (l > -1)
6803
6803
  l > this.index && (this.changed = !0, this.destroyBetween(this.index, l)), this.top = this.top.children[this.index];
6804
6804
  else {
6805
- let a = Xt.create(this.top, e[s], t, r);
6805
+ let a = Qt.create(this.top, e[s], t, r);
6806
6806
  this.top.children.splice(this.index, 0, a), this.top = a, this.changed = !0;
6807
6807
  }
6808
6808
  this.index = 0, s++;
@@ -6895,7 +6895,7 @@ class Jh {
6895
6895
  // contentEditable.
6896
6896
  addTextblockHacks() {
6897
6897
  let e = this.top.children[this.index - 1], t = this.top;
6898
- for (; e instanceof Xt; )
6898
+ for (; e instanceof Qt; )
6899
6899
  t = e, e = t.children[t.children.length - 1];
6900
6900
  (!e || // Empty textblock
6901
6901
  !(e instanceof Oi) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((ye || he) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", t), this.addHackNode("BR", this.top));
@@ -6921,7 +6921,7 @@ function Gh(n, e) {
6921
6921
  for (; ; )
6922
6922
  if (r) {
6923
6923
  let c = t.children[r - 1];
6924
- if (c instanceof Xt)
6924
+ if (c instanceof Qt)
6925
6925
  t = c, r = c.children.length;
6926
6926
  else {
6927
6927
  l = c, r--;
@@ -7076,7 +7076,7 @@ function ft(n, e = !1) {
7076
7076
  if (jc(n, t), !!_c(n)) {
7077
7077
  if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && he) {
7078
7078
  let r = n.domSelectionRange(), i = n.domObserver.currentSelection;
7079
- if (r.anchorNode && i.anchorNode && Yt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
7079
+ if (r.anchorNode && i.anchorNode && Xt(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
7080
7080
  n.input.mouseDown.delayedSelectionSync = !0, n.domObserver.setCurSelection();
7081
7081
  return;
7082
7082
  }
@@ -7153,7 +7153,7 @@ function Wc(n) {
7153
7153
  }
7154
7154
  function np(n) {
7155
7155
  let e = n.docView.domFromPos(n.state.selection.anchor, 0), t = n.domSelectionRange();
7156
- return Yt(e.node, e.offset, t.anchorNode, t.anchorOffset);
7156
+ return Xt(e.node, e.offset, t.anchorNode, t.anchorOffset);
7157
7157
  }
7158
7158
  function Os(n, e) {
7159
7159
  let { $anchor: t, $head: r } = n.selection, i = e > 0 ? t.max(r) : t.min(r), s = i.parent.inlineContent ? i.depth ? n.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
@@ -7199,7 +7199,7 @@ function $n(n, e) {
7199
7199
  let t = n.pmViewDesc;
7200
7200
  return t && t.size == 0 && (e < 0 || n.nextSibling || n.nodeName != "BR");
7201
7201
  }
7202
- function rn(n, e) {
7202
+ function sn(n, e) {
7203
7203
  return e < 0 ? rp(n) : ip(n);
7204
7204
  }
7205
7205
  function rp(n) {
@@ -7386,22 +7386,22 @@ function ap(n) {
7386
7386
  function cp(n, e) {
7387
7387
  let t = e.keyCode, r = ap(e);
7388
7388
  if (t == 8 || Ne && t == 72 && r == "c")
7389
- return Ll(n, -1) || rn(n, -1);
7389
+ return Ll(n, -1) || sn(n, -1);
7390
7390
  if (t == 46 && !e.shiftKey || Ne && t == 68 && r == "c")
7391
- return Ll(n, 1) || rn(n, 1);
7391
+ return Ll(n, 1) || sn(n, 1);
7392
7392
  if (t == 13 || t == 27)
7393
7393
  return !0;
7394
7394
  if (t == 37 || Ne && t == 66 && r == "c") {
7395
7395
  let i = t == 37 ? Rl(n, n.state.selection.from) == "ltr" ? -1 : 1 : -1;
7396
- return Dl(n, i, r) || rn(n, i);
7396
+ return Dl(n, i, r) || sn(n, i);
7397
7397
  } else if (t == 39 || Ne && t == 70 && r == "c") {
7398
7398
  let i = t == 39 ? Rl(n, n.state.selection.from) == "ltr" ? 1 : -1 : 1;
7399
- return Dl(n, i, r) || rn(n, i);
7399
+ return Dl(n, i, r) || sn(n, i);
7400
7400
  } else {
7401
7401
  if (t == 38 || Ne && t == 80 && r == "c")
7402
- return Il(n, -1, r) || rn(n, -1);
7402
+ return Il(n, -1, r) || sn(n, -1);
7403
7403
  if (t == 40 || Ne && t == 78 && r == "c")
7404
- return lp(n) || Il(n, 1, r) || rn(n, 1);
7404
+ return lp(n) || Il(n, 1, r) || sn(n, 1);
7405
7405
  if (r == (Ne ? "m" : "c") && (t == 66 || t == 73 || t == 89 || t == 90))
7406
7406
  return !0;
7407
7407
  }
@@ -7417,7 +7417,7 @@ function uo(n, e) {
7417
7417
  let h = r.firstChild;
7418
7418
  t.push(h.type.name, h.attrs != h.type.defaultAttrs ? h.attrs : null), r = h.content;
7419
7419
  }
7420
- let o = n.someProp("clipboardSerializer") || tn.fromSchema(n.state.schema), l = Xc(), a = l.createElement("div");
7420
+ let o = n.someProp("clipboardSerializer") || nn.fromSchema(n.state.schema), l = Xc(), a = l.createElement("div");
7421
7421
  a.appendChild(o.serializeFragment(r, { document: l }));
7422
7422
  let c = a.firstChild, u, d = 0;
7423
7423
  for (; c && c.nodeType == 1 && (u = Yc[c.nodeName.toLowerCase()]); ) {
@@ -7452,7 +7452,7 @@ function Kc(n, e, t, r, i) {
7452
7452
  if (d)
7453
7453
  l = d;
7454
7454
  else {
7455
- let f = i.marks(), { schema: h } = n.state, p = tn.fromSchema(h);
7455
+ let f = i.marks(), { schema: h } = n.state, p = nn.fromSchema(h);
7456
7456
  o = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
7457
7457
  let g = o.appendChild(document.createElement("p"));
7458
7458
  m && g.appendChild(p.serializeNode(h.text(m, f)));
@@ -7689,7 +7689,7 @@ function ho(n, e, t, r, i) {
7689
7689
  return !0;
7690
7690
  return !1;
7691
7691
  }
7692
- function dn(n, e, t) {
7692
+ function fn(n, e, t) {
7693
7693
  if (n.focused || n.focus(), n.state.selection.eq(e))
7694
7694
  return;
7695
7695
  let r = n.state.tr.setSelection(e);
@@ -7699,7 +7699,7 @@ function Cp(n, e) {
7699
7699
  if (e == -1)
7700
7700
  return !1;
7701
7701
  let t = n.state.doc.resolve(e), r = t.nodeAfter;
7702
- return r && r.isAtom && O.isSelectable(r) ? (dn(n, new O(t)), !0) : !1;
7702
+ return r && r.isAtom && O.isSelectable(r) ? (fn(n, new O(t)), !0) : !1;
7703
7703
  }
7704
7704
  function Sp(n, e) {
7705
7705
  if (e == -1)
@@ -7714,7 +7714,7 @@ function Sp(n, e) {
7714
7714
  break;
7715
7715
  }
7716
7716
  }
7717
- return i != null ? (dn(n, O.create(n.state.doc, i)), !0) : !1;
7717
+ return i != null ? (fn(n, O.create(n.state.doc, i)), !0) : !1;
7718
7718
  }
7719
7719
  function Mp(n, e, t, r, i) {
7720
7720
  return ho(n, "handleClickOn", e, t, r) || n.someProp("handleClick", (s) => s(n, e, r)) || (i ? Sp(n, t) : Cp(n, t));
@@ -7730,14 +7730,14 @@ function Ap(n, e, t) {
7730
7730
  return !1;
7731
7731
  let r = n.state.doc;
7732
7732
  if (e == -1)
7733
- return r.inlineContent ? (dn(n, L.create(r, 0, r.content.size)), !0) : !1;
7733
+ return r.inlineContent ? (fn(n, L.create(r, 0, r.content.size)), !0) : !1;
7734
7734
  let i = r.resolve(e);
7735
7735
  for (let s = i.depth + 1; s > 0; s--) {
7736
7736
  let o = s > i.depth ? i.nodeAfter : i.node(s), l = i.before(s);
7737
7737
  if (o.inlineContent)
7738
- dn(n, L.create(r, l + 1, l + 1 + o.content.size));
7738
+ fn(n, L.create(r, l + 1, l + 1 + o.content.size));
7739
7739
  else if (O.isSelectable(o))
7740
- dn(n, O.create(r, l));
7740
+ fn(n, O.create(r, l));
7741
7741
  else
7742
7742
  continue;
7743
7743
  return !0;
@@ -7792,7 +7792,7 @@ class Op {
7792
7792
  // (hidden) cursor is doesn't change the selection, and
7793
7793
  // thus doesn't get a reaction from ProseMirror. This
7794
7794
  // works around that.
7795
- he && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (dn(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Tt(this.view, "pointer");
7795
+ he && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (fn(this.view, D.near(this.view.state.doc.resolve(t.pos))), e.preventDefault()) : Tt(this.view, "pointer");
7796
7796
  }
7797
7797
  move(e) {
7798
7798
  this.updateAllowDefault(e), Tt(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -8167,13 +8167,13 @@ class ge {
8167
8167
  return this.type instanceof Hr;
8168
8168
  }
8169
8169
  }
8170
- const on = [], Ut = {};
8170
+ const ln = [], Ut = {};
8171
8171
  class X {
8172
8172
  /**
8173
8173
  @internal
8174
8174
  */
8175
8175
  constructor(e, t) {
8176
- this.local = e.length ? e : on, this.children = t.length ? t : on;
8176
+ this.local = e.length ? e : ln, this.children = t.length ? t : ln;
8177
8177
  }
8178
8178
  /**
8179
8179
  Create a set of decorations, using the structure of the given
@@ -8222,7 +8222,7 @@ class X {
8222
8222
  let a = this.local[l].map(e, r, i);
8223
8223
  a && a.type.valid(t, a) ? (o || (o = [])).push(a) : s.onRemove && s.onRemove(this.local[l].spec);
8224
8224
  }
8225
- return this.children.length ? Bp(this.children, o || [], e, t, r, i, s) : o ? new X(o.sort(Kt), on) : fe;
8225
+ return this.children.length ? Bp(this.children, o || [], e, t, r, i, s) : o ? new X(o.sort(Kt), ln) : fe;
8226
8226
  }
8227
8227
  /**
8228
8228
  Add the given array of decorations to the ones in the set,
@@ -8295,7 +8295,7 @@ class X {
8295
8295
  }
8296
8296
  }
8297
8297
  if (i) {
8298
- let l = new X(i.sort(Kt), on);
8298
+ let l = new X(i.sort(Kt), ln);
8299
8299
  return r ? new xt([l, r]) : l;
8300
8300
  }
8301
8301
  return r || fe;
@@ -8327,7 +8327,7 @@ class X {
8327
8327
  */
8328
8328
  localsInner(e) {
8329
8329
  if (this == fe)
8330
- return on;
8330
+ return ln;
8331
8331
  if (e.inlineContent || !this.local.some(Dt.is))
8332
8332
  return this.local;
8333
8333
  let t = [];
@@ -8381,7 +8381,7 @@ class xt {
8381
8381
  t.push(s[o]);
8382
8382
  }
8383
8383
  }
8384
- return t ? go(r ? t : t.sort(Kt)) : on;
8384
+ return t ? go(r ? t : t.sort(Kt)) : ln;
8385
8385
  }
8386
8386
  // Create a group for the given array of decoration sets, or return
8387
8387
  // a single set when possible.
@@ -8604,7 +8604,7 @@ class _p {
8604
8604
  return ft(this.view);
8605
8605
  if (ve && Ot <= 11 && !this.view.state.selection.empty) {
8606
8606
  let e = this.view.domSelectionRange();
8607
- if (e.focusNode && Yt(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
8607
+ if (e.focusNode && Xt(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
8608
8608
  return this.flushSoon();
8609
8609
  }
8610
8610
  this.flush();
@@ -8708,7 +8708,7 @@ function jp(n) {
8708
8708
  }
8709
8709
  function Vl(n, e) {
8710
8710
  let t = e.startContainer, r = e.startOffset, i = e.endContainer, s = e.endOffset, o = n.domAtPos(n.state.selection.anchor);
8711
- return Yt(o.node, o.offset, i, s) && ([t, r, i, s] = [i, s, t, r]), { anchorNode: t, anchorOffset: r, focusNode: i, focusOffset: s };
8711
+ return Xt(o.node, o.offset, i, s) && ([t, r, i, s] = [i, s, t, r]), { anchorNode: t, anchorOffset: r, focusNode: i, focusOffset: s };
8712
8712
  }
8713
8713
  function Wp(n, e) {
8714
8714
  if (e.getComposedRanges) {
@@ -10111,7 +10111,7 @@ function xo(n) {
10111
10111
  }).flat(10);
10112
10112
  }
10113
10113
  function Co(n, e) {
10114
- const t = tn.fromSchema(e).serializeFragment(n), i = document.implementation.createHTMLDocument().createElement("div");
10114
+ const t = nn.fromSchema(e).serializeFragment(n), i = document.implementation.createHTMLDocument().createElement("div");
10115
10115
  return i.appendChild(t), i.innerHTML;
10116
10116
  }
10117
10117
  function gu(n) {
@@ -11869,7 +11869,7 @@ var H = class Ou extends To {
11869
11869
  })
11870
11870
  ];
11871
11871
  }
11872
- }), Gg = class ln {
11872
+ }), Gg = class an {
11873
11873
  constructor(e, t, r = !1, i = null) {
11874
11874
  this.currentNode = null, this.actualDepth = null, this.isBlock = r, this.resolvedPos = e, this.editor = t, this.currentNode = i;
11875
11875
  }
@@ -11928,15 +11928,15 @@ var H = class Ou extends To {
11928
11928
  if (this.depth === 0)
11929
11929
  return null;
11930
11930
  const e = this.resolvedPos.start(this.resolvedPos.depth - 1), t = this.resolvedPos.doc.resolve(e);
11931
- return new ln(t, this.editor);
11931
+ return new an(t, this.editor);
11932
11932
  }
11933
11933
  get before() {
11934
11934
  let e = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
11935
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new ln(e, this.editor);
11935
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new an(e, this.editor);
11936
11936
  }
11937
11937
  get after() {
11938
11938
  let e = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
11939
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new ln(e, this.editor);
11939
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new an(e, this.editor);
11940
11940
  }
11941
11941
  get children() {
11942
11942
  const e = [];
@@ -11947,8 +11947,8 @@ var H = class Ou extends To {
11947
11947
  const l = this.resolvedPos.doc.resolve(o);
11948
11948
  if (!i && l.depth <= this.depth)
11949
11949
  return;
11950
- const a = new ln(l, this.editor, i, i ? t : null);
11951
- i && (a.actualDepth = this.depth + 1), e.push(new ln(l, this.editor, i, i ? t : null));
11950
+ const a = new an(l, this.editor, i, i ? t : null);
11951
+ i && (a.actualDepth = this.depth + 1), e.push(new an(l, this.editor, i, i ? t : null));
11952
11952
  }), e;
11953
11953
  }
11954
11954
  get firstChild() {
@@ -12113,7 +12113,7 @@ var Qg = class extends $g {
12113
12113
  createMappablePosition: gg
12114
12114
  }, this.setOptions(e), this.createExtensionManager(), this.createCommandManager(), this.createSchema(), this.on("beforeCreate", this.options.onBeforeCreate), this.emit("beforeCreate", { editor: this }), this.on("mount", this.options.onMount), this.on("unmount", this.options.onUnmount), this.on("contentError", this.options.onContentError), this.on("create", this.options.onCreate), this.on("update", this.options.onUpdate), this.on("selectionUpdate", this.options.onSelectionUpdate), this.on("transaction", this.options.onTransaction), this.on("focus", this.options.onFocus), this.on("blur", this.options.onBlur), this.on("destroy", this.options.onDestroy), this.on("drop", ({ event: i, slice: s, moved: o }) => this.options.onDrop(i, s, o)), this.on("paste", ({ event: i, slice: s }) => this.options.onPaste(i, s)), this.on("delete", this.options.onDelete);
12115
12115
  const t = this.createDoc(), r = du(t, this.options.autofocus);
12116
- this.editorState = cn.create({
12116
+ this.editorState = un.create({
12117
12117
  doc: t,
12118
12118
  schema: this.schema,
12119
12119
  selection: r || void 0
@@ -12500,7 +12500,7 @@ var Qg = class extends $g {
12500
12500
  return this.$pos(0);
12501
12501
  }
12502
12502
  };
12503
- function Qt(n) {
12503
+ function Zt(n) {
12504
12504
  return new zi({
12505
12505
  find: n.find,
12506
12506
  handler: ({ state: e, range: t, match: r }) => {
@@ -13516,11 +13516,11 @@ ${t}
13516
13516
  },
13517
13517
  addInputRules() {
13518
13518
  return [
13519
- Qt({
13519
+ Zt({
13520
13520
  find: p0,
13521
13521
  type: this.type
13522
13522
  }),
13523
- Qt({
13523
+ Zt({
13524
13524
  find: g0,
13525
13525
  type: this.type
13526
13526
  })
@@ -13571,7 +13571,7 @@ ${t}
13571
13571
  },
13572
13572
  addInputRules() {
13573
13573
  return [
13574
- Qt({
13574
+ Zt({
13575
13575
  find: k0,
13576
13576
  type: this.type
13577
13577
  })
@@ -14009,11 +14009,11 @@ ${t}
14009
14009
  },
14010
14010
  addInputRules() {
14011
14011
  return [
14012
- Qt({
14012
+ Zt({
14013
14013
  find: O0,
14014
14014
  type: this.type
14015
14015
  }),
14016
- Qt({
14016
+ Zt({
14017
14017
  find: D0,
14018
14018
  type: this.type
14019
14019
  })
@@ -14173,7 +14173,7 @@ we.prototype = {
14173
14173
  return i.j[n] = o, o;
14174
14174
  }
14175
14175
  };
14176
- const B = (n, e, t, r, i) => n.ta(e, t, r, i), Q = (n, e, t, r, i) => n.tr(e, t, r, i), sa = (n, e, t, r, i) => n.ts(e, t, r, i), C = (n, e, t, r, i) => n.tt(e, t, r, i), st = "WORD", Vs = "UWORD", qu = "ASCIINUMERICAL", Ju = "ALPHANUMERICAL", er = "LOCALHOST", _s = "TLD", js = "UTLD", Or = "SCHEME", an = "SLASH_SCHEME", No = "NUM", Ws = "WS", Do = "NL", Hn = "OPENBRACE", Vn = "CLOSEBRACE", qr = "OPENBRACKET", Jr = "CLOSEBRACKET", Gr = "OPENPAREN", Yr = "CLOSEPAREN", Xr = "OPENANGLEBRACKET", Qr = "CLOSEANGLEBRACKET", Zr = "FULLWIDTHLEFTPAREN", ei = "FULLWIDTHRIGHTPAREN", ti = "LEFTCORNERBRACKET", ni = "RIGHTCORNERBRACKET", ri = "LEFTWHITECORNERBRACKET", ii = "RIGHTWHITECORNERBRACKET", si = "FULLWIDTHLESSTHAN", oi = "FULLWIDTHGREATERTHAN", li = "AMPERSAND", ai = "APOSTROPHE", ci = "ASTERISK", wt = "AT", ui = "BACKSLASH", di = "BACKTICK", fi = "CARET", Ct = "COLON", Ro = "COMMA", hi = "DOLLAR", We = "DOT", pi = "EQUALS", Io = "EXCLAMATION", Oe = "HYPHEN", _n = "PERCENT", mi = "PIPE", gi = "PLUS", yi = "POUND", jn = "QUERY", Lo = "QUOTE", Gu = "FULLWIDTHMIDDLEDOT", Po = "SEMI", Ue = "SLASH", Wn = "TILDE", bi = "UNDERSCORE", Yu = "EMOJI", ki = "SYM";
14176
+ const B = (n, e, t, r, i) => n.ta(e, t, r, i), Q = (n, e, t, r, i) => n.tr(e, t, r, i), sa = (n, e, t, r, i) => n.ts(e, t, r, i), C = (n, e, t, r, i) => n.tt(e, t, r, i), st = "WORD", Vs = "UWORD", qu = "ASCIINUMERICAL", Ju = "ALPHANUMERICAL", er = "LOCALHOST", _s = "TLD", js = "UTLD", Or = "SCHEME", cn = "SLASH_SCHEME", No = "NUM", Ws = "WS", Do = "NL", Hn = "OPENBRACE", Vn = "CLOSEBRACE", qr = "OPENBRACKET", Jr = "CLOSEBRACKET", Gr = "OPENPAREN", Yr = "CLOSEPAREN", Xr = "OPENANGLEBRACKET", Qr = "CLOSEANGLEBRACKET", Zr = "FULLWIDTHLEFTPAREN", ei = "FULLWIDTHRIGHTPAREN", ti = "LEFTCORNERBRACKET", ni = "RIGHTCORNERBRACKET", ri = "LEFTWHITECORNERBRACKET", ii = "RIGHTWHITECORNERBRACKET", si = "FULLWIDTHLESSTHAN", oi = "FULLWIDTHGREATERTHAN", li = "AMPERSAND", ai = "APOSTROPHE", ci = "ASTERISK", wt = "AT", ui = "BACKSLASH", di = "BACKTICK", fi = "CARET", Ct = "COLON", Ro = "COMMA", hi = "DOLLAR", We = "DOT", pi = "EQUALS", Io = "EXCLAMATION", Oe = "HYPHEN", _n = "PERCENT", mi = "PIPE", gi = "PLUS", yi = "POUND", jn = "QUERY", Lo = "QUOTE", Gu = "FULLWIDTHMIDDLEDOT", Po = "SEMI", Ue = "SLASH", Wn = "TILDE", bi = "UNDERSCORE", Yu = "EMOJI", ki = "SYM";
14177
14177
  var Xu = /* @__PURE__ */ Object.freeze({
14178
14178
  __proto__: null,
14179
14179
  ALPHANUMERICAL: Ju,
@@ -14222,7 +14222,7 @@ var Xu = /* @__PURE__ */ Object.freeze({
14222
14222
  SCHEME: Or,
14223
14223
  SEMI: Po,
14224
14224
  SLASH: Ue,
14225
- SLASH_SCHEME: an,
14225
+ SLASH_SCHEME: cn,
14226
14226
  SYM: ki,
14227
14227
  TILDE: Wn,
14228
14228
  TLD: _s,
@@ -14281,10 +14281,10 @@ function _0(n = []) {
14281
14281
  }, e), _t(js, {
14282
14282
  utld: !0,
14283
14283
  alpha: !0
14284
- }, e), yt(t, "file", Or, st, h), yt(t, "mailto", Or, st, h), yt(t, "http", an, st, h), yt(t, "https", an, st, h), yt(t, "ftp", an, st, h), yt(t, "ftps", an, st, h), _t(Or, {
14284
+ }, e), yt(t, "file", Or, st, h), yt(t, "mailto", Or, st, h), yt(t, "http", cn, st, h), yt(t, "https", cn, st, h), yt(t, "ftp", cn, st, h), yt(t, "ftps", cn, st, h), _t(Or, {
14285
14285
  scheme: !0,
14286
14286
  ascii: !0
14287
- }, e), _t(an, {
14287
+ }, e), _t(cn, {
14288
14288
  slashscheme: !0,
14289
14289
  ascii: !0
14290
14290
  }, e), n = n.sort((m, g) => m[0] > g[0] ? 1 : -1);
@@ -15822,7 +15822,7 @@ var m1 = xe.create({
15822
15822
  },
15823
15823
  addInputRules() {
15824
15824
  return [
15825
- Qt({
15825
+ Zt({
15826
15826
  find: g1,
15827
15827
  type: this.type
15828
15828
  })
@@ -16903,7 +16903,7 @@ var W1 = H.create({
16903
16903
  },
16904
16904
  addInputRules() {
16905
16905
  return [
16906
- Qt({
16906
+ Zt({
16907
16907
  find: X1,
16908
16908
  type: this.type
16909
16909
  })
@@ -18305,7 +18305,7 @@ function Nd(n) {
18305
18305
  function Dd(n) {
18306
18306
  return Fe(n) ? n : n.contextElement;
18307
18307
  }
18308
- function fn(n) {
18308
+ function hn(n) {
18309
18309
  const e = Dd(n);
18310
18310
  if (!Ze(e))
18311
18311
  return Je(1);
@@ -18335,14 +18335,14 @@ function nr(n, e, t, r) {
18335
18335
  e === void 0 && (e = !1), t === void 0 && (t = !1);
18336
18336
  const i = n.getBoundingClientRect(), s = Dd(n);
18337
18337
  let o = Je(1);
18338
- e && (r ? Fe(r) && (o = fn(r)) : o = fn(n));
18338
+ e && (r ? Fe(r) && (o = hn(r)) : o = hn(n));
18339
18339
  const l = Qy(s, t, r) ? Rd(s) : Je(0);
18340
18340
  let a = (i.left + l.x) / o.x, c = (i.top + l.y) / o.y, u = i.width / o.x, d = i.height / o.y;
18341
18341
  if (s) {
18342
18342
  const f = Te(s), h = r && Fe(r) ? Te(r) : r;
18343
18343
  let p = f, m = Js(p);
18344
18344
  for (; m && r && h !== p; ) {
18345
- const g = fn(m), y = m.getBoundingClientRect(), k = He(m), x = y.left + (m.clientLeft + parseFloat(k.paddingLeft)) * g.x, M = y.top + (m.clientTop + parseFloat(k.paddingTop)) * g.y;
18345
+ const g = hn(m), y = m.getBoundingClientRect(), k = He(m), x = y.left + (m.clientLeft + parseFloat(k.paddingLeft)) * g.x, M = y.top + (m.clientTop + parseFloat(k.paddingTop)) * g.y;
18346
18346
  a *= g.x, c *= g.y, u *= g.x, d *= g.y, a += x, c += M, p = Te(m), m = Js(p);
18347
18347
  }
18348
18348
  }
@@ -18381,7 +18381,7 @@ function Zy(n) {
18381
18381
  const u = Je(0), d = Ze(r);
18382
18382
  if ((d || !d && !s) && ((An(r) !== "body" || ur(o)) && (a = Vi(r)), Ze(r))) {
18383
18383
  const h = nr(r);
18384
- c = fn(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
18384
+ c = hn(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
18385
18385
  }
18386
18386
  const f = o && !d && !s ? Id(o, a) : Je(0);
18387
18387
  return {
@@ -18391,10 +18391,10 @@ function Zy(n) {
18391
18391
  y: t.y * c.y - a.scrollTop * c.y + u.y + f.y
18392
18392
  };
18393
18393
  }
18394
- function eb(n) {
18394
+ function e2(n) {
18395
18395
  return Array.from(n.getClientRects());
18396
18396
  }
18397
- function tb(n) {
18397
+ function t2(n) {
18398
18398
  const e = mt(n), t = Vi(n), r = n.ownerDocument.body, i = me(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), s = me(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
18399
18399
  let o = -t.scrollLeft + _i(n);
18400
18400
  const l = -t.scrollTop;
@@ -18406,7 +18406,7 @@ function tb(n) {
18406
18406
  };
18407
18407
  }
18408
18408
  const Aa = 25;
18409
- function nb(n, e) {
18409
+ function n2(n, e) {
18410
18410
  const t = Te(n), r = mt(n), i = t.visualViewport;
18411
18411
  let s = r.clientWidth, o = r.clientHeight, l = 0, a = 0;
18412
18412
  if (i) {
@@ -18426,9 +18426,9 @@ function nb(n, e) {
18426
18426
  y: a
18427
18427
  };
18428
18428
  }
18429
- const rb = /* @__PURE__ */ new Set(["absolute", "fixed"]);
18430
- function ib(n, e) {
18431
- const t = nr(n, !0, e === "fixed"), r = t.top + n.clientTop, i = t.left + n.clientLeft, s = Ze(n) ? fn(n) : Je(1), o = n.clientWidth * s.x, l = n.clientHeight * s.y, a = i * s.x, c = r * s.y;
18429
+ const r2 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
18430
+ function i2(n, e) {
18431
+ const t = nr(n, !0, e === "fixed"), r = t.top + n.clientTop, i = t.left + n.clientLeft, s = Ze(n) ? hn(n) : Je(1), o = n.clientWidth * s.x, l = n.clientHeight * s.y, a = i * s.x, c = r * s.y;
18432
18432
  return {
18433
18433
  width: o,
18434
18434
  height: l,
@@ -18439,11 +18439,11 @@ function ib(n, e) {
18439
18439
  function Oa(n, e, t) {
18440
18440
  let r;
18441
18441
  if (e === "viewport")
18442
- r = nb(n, t);
18442
+ r = n2(n, t);
18443
18443
  else if (e === "document")
18444
- r = tb(mt(n));
18444
+ r = t2(mt(n));
18445
18445
  else if (Fe(e))
18446
- r = ib(e, t);
18446
+ r = i2(e, t);
18447
18447
  else {
18448
18448
  const i = Rd(n);
18449
18449
  r = {
@@ -18459,7 +18459,7 @@ function Ld(n, e) {
18459
18459
  const t = Pt(n);
18460
18460
  return t === e || !Fe(t) || Cn(t) ? !1 : He(t).position === "fixed" || Ld(t, e);
18461
18461
  }
18462
- function sb(n, e) {
18462
+ function s2(n, e) {
18463
18463
  const t = e.get(n);
18464
18464
  if (t)
18465
18465
  return t;
@@ -18468,18 +18468,18 @@ function sb(n, e) {
18468
18468
  let o = s ? Pt(n) : n;
18469
18469
  for (; Fe(o) && !Cn(o); ) {
18470
18470
  const l = He(o), a = Ko(o);
18471
- !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && rb.has(i.position) || ur(o) && !a && Ld(n, o)) ? r = r.filter((u) => u !== o) : i = l, o = Pt(o);
18471
+ !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && r2.has(i.position) || ur(o) && !a && Ld(n, o)) ? r = r.filter((u) => u !== o) : i = l, o = Pt(o);
18472
18472
  }
18473
18473
  return e.set(n, r), r;
18474
18474
  }
18475
- function ob(n) {
18475
+ function o2(n) {
18476
18476
  let {
18477
18477
  element: e,
18478
18478
  boundary: t,
18479
18479
  rootBoundary: r,
18480
18480
  strategy: i
18481
18481
  } = n;
18482
- const o = [...t === "clippingAncestors" ? Hi(e) ? [] : sb(e, this._c) : [].concat(t), r], l = o[0], a = o.reduce((c, u) => {
18482
+ const o = [...t === "clippingAncestors" ? Hi(e) ? [] : s2(e, this._c) : [].concat(t), r], l = o[0], a = o.reduce((c, u) => {
18483
18483
  const d = Oa(e, u, i);
18484
18484
  return c.top = me(d.top, c.top), c.right = Qe(d.right, c.right), c.bottom = Qe(d.bottom, c.bottom), c.left = me(d.left, c.left), c;
18485
18485
  }, Oa(e, l, i));
@@ -18490,7 +18490,7 @@ function ob(n) {
18490
18490
  y: a.top
18491
18491
  };
18492
18492
  }
18493
- function lb(n) {
18493
+ function l2(n) {
18494
18494
  const {
18495
18495
  width: e,
18496
18496
  height: t
@@ -18500,7 +18500,7 @@ function lb(n) {
18500
18500
  height: t
18501
18501
  };
18502
18502
  }
18503
- function ab(n, e, t) {
18503
+ function a2(n, e, t) {
18504
18504
  const r = Ze(e), i = mt(e), s = t === "fixed", o = nr(n, !0, s, e);
18505
18505
  let l = {
18506
18506
  scrollLeft: 0,
@@ -18553,10 +18553,10 @@ function Pd(n, e) {
18553
18553
  r = Na(r, e);
18554
18554
  return r && Cn(r) && gs(r) && !Ko(r) ? t : r || Gy(n) || t;
18555
18555
  }
18556
- const cb = async function(n) {
18556
+ const c2 = async function(n) {
18557
18557
  const e = this.getOffsetParent || Pd, t = this.getDimensions, r = await t(n.floating);
18558
18558
  return {
18559
- reference: ab(n.reference, await e(n.floating), n.strategy),
18559
+ reference: a2(n.reference, await e(n.floating), n.strategy),
18560
18560
  floating: {
18561
18561
  x: 0,
18562
18562
  y: 0,
@@ -18565,23 +18565,23 @@ const cb = async function(n) {
18565
18565
  }
18566
18566
  };
18567
18567
  };
18568
- function ub(n) {
18568
+ function u2(n) {
18569
18569
  return He(n).direction === "rtl";
18570
18570
  }
18571
- const db = {
18571
+ const d2 = {
18572
18572
  convertOffsetParentRelativeRectToViewportRelativeRect: Zy,
18573
18573
  getDocumentElement: mt,
18574
- getClippingRect: ob,
18574
+ getClippingRect: o2,
18575
18575
  getOffsetParent: Pd,
18576
- getElementRects: cb,
18577
- getClientRects: eb,
18578
- getDimensions: lb,
18579
- getScale: fn,
18576
+ getElementRects: c2,
18577
+ getClientRects: e2,
18578
+ getDimensions: l2,
18579
+ getScale: hn,
18580
18580
  isElement: Fe,
18581
- isRTL: ub
18581
+ isRTL: u2
18582
18582
  }, zd = Fy, Bd = Ry, $d = Hy, Fd = Iy, Hd = Vy, Vd = Ly, _d = Ny, jd = zy, Wd = (n, e, t) => {
18583
18583
  const r = /* @__PURE__ */ new Map(), i = {
18584
- platform: db,
18584
+ platform: d2,
18585
18585
  ...t
18586
18586
  }, s = {
18587
18587
  ...i.platform,
@@ -18683,13 +18683,13 @@ var at = class {
18683
18683
  }
18684
18684
  // Find the table map for the given table node.
18685
18685
  static get(n) {
18686
- return Gs(n) || Ys(n, fb(n));
18686
+ return Gs(n) || Ys(n, f2(n));
18687
18687
  }
18688
18688
  };
18689
- function fb(n) {
18689
+ function f2(n) {
18690
18690
  if (n.type.spec.tableRole != "table")
18691
18691
  throw new RangeError("Not a table node: " + n.type.name);
18692
- const e = hb(n), t = n.childCount, r = [];
18692
+ const e = h2(n), t = n.childCount, r = [];
18693
18693
  let i = 0, s = null;
18694
18694
  const o = [];
18695
18695
  for (let c = 0, u = e * t; c < u; c++) r[c] = 0;
@@ -18736,9 +18736,9 @@ function fb(n) {
18736
18736
  let a = !1;
18737
18737
  for (let c = 0; !a && c < o.length; c += 2)
18738
18738
  o[c] != null && o[c + 1] < t && (a = !0);
18739
- return a && pb(l, o, n), l;
18739
+ return a && p2(l, o, n), l;
18740
18740
  }
18741
- function hb(n) {
18741
+ function h2(n) {
18742
18742
  let e = -1, t = !1;
18743
18743
  for (let r = 0; r < n.childCount; r++) {
18744
18744
  const i = n.child(r);
@@ -18759,7 +18759,7 @@ function hb(n) {
18759
18759
  }
18760
18760
  return e;
18761
18761
  }
18762
- function pb(n, e, t) {
18762
+ function p2(n, e, t) {
18763
18763
  n.problems || (n.problems = []);
18764
18764
  const r = {};
18765
18765
  for (let i = 0; i < n.map.length; i++) {
@@ -18773,7 +18773,7 @@ function pb(n, e, t) {
18773
18773
  const a = o.attrs;
18774
18774
  for (let c = 0; c < a.colspan; c++) {
18775
18775
  const u = (i + c) % n.width, d = e[u * 2];
18776
- d != null && (!a.colwidth || a.colwidth[c] != d) && ((l || (l = mb(a)))[c] = d);
18776
+ d != null && (!a.colwidth || a.colwidth[c] != d) && ((l || (l = m2(a)))[c] = d);
18777
18777
  }
18778
18778
  l && n.problems.unshift({
18779
18779
  type: "colwidth mismatch",
@@ -18782,7 +18782,7 @@ function pb(n, e, t) {
18782
18782
  });
18783
18783
  }
18784
18784
  }
18785
- function mb(n) {
18785
+ function m2(n) {
18786
18786
  if (n.colwidth) return n.colwidth.slice();
18787
18787
  const e = [];
18788
18788
  for (let t = 0; t < n.colspan; t++) e.push(0);
@@ -18800,7 +18800,7 @@ function Jo(n) {
18800
18800
  return e;
18801
18801
  }
18802
18802
  new Y("selectingCells");
18803
- function gb(n) {
18803
+ function g2(n) {
18804
18804
  for (let e = n.depth - 1; e > 0; e--)
18805
18805
  if (n.node(e).type.spec.tableRole == "row")
18806
18806
  return n.node(0).resolve(n.before(e + 1));
@@ -18812,18 +18812,18 @@ function Ud(n) {
18812
18812
  if (e.node(t).type.spec.tableRole == "row") return !0;
18813
18813
  return !1;
18814
18814
  }
18815
- function yb(n) {
18815
+ function y2(n) {
18816
18816
  const e = n.selection;
18817
18817
  if ("$anchorCell" in e && e.$anchorCell)
18818
18818
  return e.$anchorCell.pos > e.$headCell.pos ? e.$anchorCell : e.$headCell;
18819
18819
  if ("node" in e && e.node && e.node.type.spec.tableRole == "cell")
18820
18820
  return e.$anchor;
18821
- const t = gb(e.$head) || bb(e.$head);
18821
+ const t = g2(e.$head) || b2(e.$head);
18822
18822
  if (t)
18823
18823
  return t;
18824
18824
  throw new RangeError(`No cell found around position ${e.head}`);
18825
18825
  }
18826
- function bb(n) {
18826
+ function b2(n) {
18827
18827
  for (let e = n.nodeAfter, t = n.pos; e; e = e.firstChild, t++) {
18828
18828
  const r = e.type.spec.tableRole;
18829
18829
  if (r == "cell" || r == "header_cell") return n.doc.resolve(t);
@@ -19009,12 +19009,12 @@ var Ge = class ot extends D {
19009
19009
  return new ot(e.resolve(t), e.resolve(r));
19010
19010
  }
19011
19011
  getBookmark() {
19012
- return new kb(this.$anchorCell.pos, this.$headCell.pos);
19012
+ return new k2(this.$anchorCell.pos, this.$headCell.pos);
19013
19013
  }
19014
19014
  };
19015
19015
  Ge.prototype.visible = !1;
19016
19016
  D.jsonID("cell", Ge);
19017
- var kb = class Jd {
19017
+ var k2 = class Jd {
19018
19018
  constructor(e, t) {
19019
19019
  this.anchor = e, this.head = t;
19020
19020
  }
@@ -19028,13 +19028,13 @@ var kb = class Jd {
19028
19028
  };
19029
19029
  new Y("fix-tables");
19030
19030
  function Gd(n) {
19031
- const e = n.selection, t = yb(n), r = t.node(-1), i = t.start(-1), s = at.get(r);
19031
+ const e = n.selection, t = y2(n), r = t.node(-1), i = t.start(-1), s = at.get(r);
19032
19032
  return { ...e instanceof Ge ? s.rectBetween(
19033
19033
  e.$anchorCell.pos - i,
19034
19034
  e.$headCell.pos - i
19035
19035
  ) : s.findCell(t.pos - i), tableStart: i, map: s, table: r };
19036
19036
  }
19037
- function wb(n) {
19037
+ function w2(n) {
19038
19038
  return function(e, t) {
19039
19039
  if (!Ud(e)) return !1;
19040
19040
  if (t) {
@@ -19084,7 +19084,7 @@ function Ia(n, e, t) {
19084
19084
  return !0;
19085
19085
  }
19086
19086
  function Go(n, e) {
19087
- return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? wb(n) : function(t, r) {
19087
+ return e = e || { useDeprecatedLogic: !1 }, e.useDeprecatedLogic ? w2(n) : function(t, r) {
19088
19088
  if (!Ud(t)) return !1;
19089
19089
  if (r) {
19090
19090
  const i = Jo(t.schema), s = Gd(t), o = t.tr, l = Ia("row", s, i), a = Ia(
@@ -19213,11 +19213,11 @@ function Yd(n, e, t) {
19213
19213
  new Y(
19214
19214
  "tableColumnResizing"
19215
19215
  );
19216
- function vb(n, e) {
19216
+ function v2(n, e) {
19217
19217
  const t = Math.min(n.top, e.top), r = Math.max(n.bottom, e.bottom), i = Math.min(n.left, e.left), o = Math.max(n.right, e.right) - i, l = r - t, a = i, c = t;
19218
19218
  return new DOMRect(a, c, o, l);
19219
19219
  }
19220
- var xb = class {
19220
+ var x2 = class {
19221
19221
  constructor({
19222
19222
  editor: n,
19223
19223
  element: e,
@@ -19327,7 +19327,7 @@ var xb = class {
19327
19327
  const { $anchorCell: s, $headCell: o } = e, l = s ? s.pos : o.pos, a = o ? o.pos : s.pos, c = this.view.nodeDOM(l), u = this.view.nodeDOM(a);
19328
19328
  if (!c || !u)
19329
19329
  return;
19330
- const d = c === u ? c.getBoundingClientRect() : vb(
19330
+ const d = c === u ? c.getBoundingClientRect() : v2(
19331
19331
  c.getBoundingClientRect(),
19332
19332
  u.getBoundingClientRect()
19333
19333
  );
@@ -19384,10 +19384,10 @@ var xb = class {
19384
19384
  destroy() {
19385
19385
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
19386
19386
  }
19387
- }, Cb = (n) => new J({
19387
+ }, C2 = (n) => new J({
19388
19388
  key: typeof n.pluginKey == "string" ? new Y(n.pluginKey) : n.pluginKey,
19389
- view: (e) => new xb({ view: e, ...n })
19390
- }), Sb = et({
19389
+ view: (e) => new x2({ view: e, ...n })
19390
+ }), S2 = et({
19391
19391
  name: "BubbleMenu",
19392
19392
  inheritAttrs: !1,
19393
19393
  props: {
@@ -19439,7 +19439,7 @@ var xb = class {
19439
19439
  } = n, f = r.value;
19440
19440
  f && (f.style.visibility = "hidden", f.style.position = "absolute", f.remove(), Pa(() => {
19441
19441
  i.registerPlugin(
19442
- Cb({
19442
+ C2({
19443
19443
  editor: i,
19444
19444
  element: f,
19445
19445
  options: s,
@@ -19460,7 +19460,7 @@ var xb = class {
19460
19460
  return Sn("div", { ref: r, ...t }, (i = e.default) == null ? void 0 : i.call(e));
19461
19461
  };
19462
19462
  }
19463
- }), Mb = class {
19463
+ }), M2 = class {
19464
19464
  constructor({
19465
19465
  editor: n,
19466
19466
  element: e,
@@ -19578,9 +19578,9 @@ var xb = class {
19578
19578
  destroy() {
19579
19579
  this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
19580
19580
  }
19581
- }, Tb = (n) => new J({
19581
+ }, T2 = (n) => new J({
19582
19582
  key: typeof n.pluginKey == "string" ? new Y(n.pluginKey) : n.pluginKey,
19583
- view: (e) => new Mb({ view: e, ...n })
19583
+ view: (e) => new M2({ view: e, ...n })
19584
19584
  });
19585
19585
  et({
19586
19586
  name: "FloatingMenu",
@@ -19622,7 +19622,7 @@ et({
19622
19622
  return tt(() => {
19623
19623
  const { pluginKey: i, editor: s, updateDelay: o, resizeDelay: l, options: a, appendTo: c, shouldShow: u } = n, d = r.value;
19624
19624
  d && (d.style.visibility = "hidden", d.style.position = "absolute", d.remove(), s.registerPlugin(
19625
- Tb({
19625
+ T2({
19626
19626
  pluginKey: i,
19627
19627
  editor: s,
19628
19628
  element: d,
@@ -19642,7 +19642,7 @@ et({
19642
19642
  };
19643
19643
  }
19644
19644
  });
19645
- const Eb = ["disabled"], Ab = {
19645
+ const E2 = ["disabled"], A2 = {
19646
19646
  __name: "UndoButton",
19647
19647
  props: {
19648
19648
  editor: {
@@ -19673,9 +19673,9 @@ const Eb = ["disabled"], Ab = {
19673
19673
  ])
19674
19674
  ], -1),
19675
19675
  b("div", { class: "tips" }, "撤销", -1)
19676
- ])], 8, Eb));
19676
+ ])], 8, E2));
19677
19677
  }
19678
- }, Ob = ["disabled"], Nb = {
19678
+ }, O2 = ["disabled"], N2 = {
19679
19679
  __name: "RedoButton",
19680
19680
  props: {
19681
19681
  editor: {
@@ -19706,9 +19706,9 @@ const Eb = ["disabled"], Ab = {
19706
19706
  ])
19707
19707
  ], -1),
19708
19708
  b("div", { class: "tips" }, "撤销", -1)
19709
- ])], 8, Ob));
19709
+ ])], 8, O2));
19710
19710
  }
19711
- }, Db = {
19711
+ }, D2 = {
19712
19712
  __name: "FormatButton",
19713
19713
  props: {
19714
19714
  editor: {
@@ -19745,7 +19745,7 @@ const Eb = ["disabled"], Ab = {
19745
19745
  for (const [r, i] of e)
19746
19746
  t[r] = i;
19747
19747
  return t;
19748
- }, Rb = { class: "label" }, Ib = { class: "dropdown" }, Lb = ["onClick"], Pb = { class: "icon" }, zb = {
19748
+ }, R2 = { class: "label" }, I2 = { class: "dropdown" }, L2 = ["onClick"], P2 = { class: "icon" }, z2 = {
19749
19749
  __name: "HeadingButton",
19750
19750
  props: {
19751
19751
  editor: {
@@ -19795,11 +19795,11 @@ const Eb = ["disabled"], Ab = {
19795
19795
  })
19796
19796
  ])
19797
19797
  ], -1)),
19798
- b("span", Rb, Be(o.value), 1)
19798
+ b("span", R2, Be(o.value), 1)
19799
19799
  ]),
19800
19800
  $(rr, { name: "dropdown" }, {
19801
19801
  default: Tn(() => [
19802
- ir(b("div", Ib, [
19802
+ ir(b("div", I2, [
19803
19803
  b("div", {
19804
19804
  class: _(["item", { "is-selected": n.editor.isActive("paragraph") }]),
19805
19805
  onClick: u[1] || (u[1] = (d) => s())
@@ -19807,17 +19807,17 @@ const Eb = ["disabled"], Ab = {
19807
19807
  b("span", { class: "icon" }, "H", -1),
19808
19808
  b("span", { class: "text" }, "正文", -1)
19809
19809
  ])], 2),
19810
- (I(), z(Zt, null, en([1, 2, 3, 4, 5], (d) => b("div", {
19810
+ (I(), z(en, null, tn([1, 2, 3, 4, 5], (d) => b("div", {
19811
19811
  class: _(["item", { "is-selected": n.editor.isActive("heading", { level: d }) }]),
19812
19812
  key: d,
19813
19813
  onClick: (f) => i(d)
19814
19814
  }, [
19815
- b("span", Pb, "H" + Be(d), 1),
19815
+ b("span", P2, "H" + Be(d), 1),
19816
19816
  b("span", {
19817
19817
  class: "text",
19818
- style: hn({ fontSize: r[d], fontWeight: "bold" })
19818
+ style: Jt({ fontSize: r[d], fontWeight: "bold" })
19819
19819
  }, "标题 " + Be(d), 5)
19820
- ], 10, Lb)), 64))
19820
+ ], 10, L2)), 64))
19821
19821
  ], 512), [
19822
19822
  [sr, e.value]
19823
19823
  ])
@@ -19826,7 +19826,7 @@ const Eb = ["disabled"], Ab = {
19826
19826
  })
19827
19827
  ], 2));
19828
19828
  }
19829
- }, Bb = /* @__PURE__ */ je(zb, [["__scopeId", "data-v-5aae4186"]]), $b = { class: "label" }, Fb = { class: "dropdown" }, Hb = ["onClick"], Vb = { class: "text" }, _b = {
19829
+ }, B2 = /* @__PURE__ */ je(z2, [["__scopeId", "data-v-5aae4186"]]), $2 = { class: "label" }, F2 = { class: "dropdown" }, H2 = ["onClick"], V2 = { class: "text" }, _2 = {
19830
19830
  __name: "FontSizeButton",
19831
19831
  props: {
19832
19832
  editor: {
@@ -19868,18 +19868,18 @@ const Eb = ["disabled"], Ab = {
19868
19868
  })
19869
19869
  ])
19870
19870
  ], -1)),
19871
- b("span", $b, Be(s.value), 1)
19871
+ b("span", $2, Be(s.value), 1)
19872
19872
  ]),
19873
19873
  $(rr, { name: "dropdown" }, {
19874
19874
  default: Tn(() => [
19875
- ir(b("div", Fb, [
19876
- (I(), z(Zt, null, en(r, (u) => b("div", {
19875
+ ir(b("div", F2, [
19876
+ (I(), z(en, null, tn(r, (u) => b("div", {
19877
19877
  class: _(["item", { "is-selected": n.editor.isActive("textStyle", { fontSize: u }) }]),
19878
19878
  key: u,
19879
19879
  onClick: (d) => i(u)
19880
19880
  }, [
19881
- b("span", Vb, Be(u), 1)
19882
- ], 10, Hb)), 64))
19881
+ b("span", V2, Be(u), 1)
19882
+ ], 10, H2)), 64))
19883
19883
  ], 512), [
19884
19884
  [sr, e.value]
19885
19885
  ])
@@ -19888,7 +19888,7 @@ const Eb = ["disabled"], Ab = {
19888
19888
  })
19889
19889
  ], 2));
19890
19890
  }
19891
- }, jb = /* @__PURE__ */ je(_b, [["__scopeId", "data-v-69936158"]]), Wb = {
19891
+ }, j2 = /* @__PURE__ */ je(_2, [["__scopeId", "data-v-69936158"]]), W2 = {
19892
19892
  __name: "BoldButton",
19893
19893
  props: {
19894
19894
  editor: {
@@ -19920,7 +19920,7 @@ const Eb = ["disabled"], Ab = {
19920
19920
  b("div", { class: "tips" }, "加粗", -1)
19921
19921
  ])], 2));
19922
19922
  }
19923
- }, Ub = {
19923
+ }, U2 = {
19924
19924
  __name: "ItalicButton",
19925
19925
  props: {
19926
19926
  editor: {
@@ -19952,7 +19952,7 @@ const Eb = ["disabled"], Ab = {
19952
19952
  b("div", { class: "tips" }, "斜体", -1)
19953
19953
  ])], 2));
19954
19954
  }
19955
- }, Kb = {
19955
+ }, K2 = {
19956
19956
  __name: "UnderLineButton",
19957
19957
  props: {
19958
19958
  editor: {
@@ -19984,7 +19984,7 @@ const Eb = ["disabled"], Ab = {
19984
19984
  b("div", { class: "tips" }, "下划线", -1)
19985
19985
  ])], 2));
19986
19986
  }
19987
- }, qb = {
19987
+ }, q2 = {
19988
19988
  __name: "StrikeButton",
19989
19989
  props: {
19990
19990
  editor: {
@@ -20016,7 +20016,7 @@ const Eb = ["disabled"], Ab = {
20016
20016
  b("div", { class: "tips" }, "删除线", -1)
20017
20017
  ])], 2));
20018
20018
  }
20019
- }, Jb = {
20019
+ }, J2 = {
20020
20020
  __name: "CodeButton",
20021
20021
  props: {
20022
20022
  editor: {
@@ -20048,7 +20048,7 @@ const Eb = ["disabled"], Ab = {
20048
20048
  b("div", { class: "tips" }, "行内代码", -1)
20049
20049
  ])], 2));
20050
20050
  }
20051
- }, Gb = {
20051
+ }, G2 = {
20052
20052
  __name: "CodeBlockButton",
20053
20053
  props: {
20054
20054
  editor: {
@@ -20080,7 +20080,7 @@ const Eb = ["disabled"], Ab = {
20080
20080
  b("div", { class: "tips" }, "代码块", -1)
20081
20081
  ])], 2));
20082
20082
  }
20083
- }, Yb = {
20083
+ }, Y2 = {
20084
20084
  __name: "IndentLeftButton",
20085
20085
  props: {
20086
20086
  editor: {
@@ -20112,7 +20112,7 @@ const Eb = ["disabled"], Ab = {
20112
20112
  b("div", { class: "tips" }, "增加缩进", -1)
20113
20113
  ])]));
20114
20114
  }
20115
- }, Xb = {
20115
+ }, X2 = {
20116
20116
  __name: "IndentRightButton",
20117
20117
  props: {
20118
20118
  editor: {
@@ -20148,7 +20148,7 @@ const Eb = ["disabled"], Ab = {
20148
20148
  b("div", { class: "tips" }, "减少缩进", -1)
20149
20149
  ])]));
20150
20150
  }
20151
- }, Qb = {
20151
+ }, Q2 = {
20152
20152
  __name: "TextAlignLeftButton",
20153
20153
  props: {
20154
20154
  editor: {
@@ -20180,7 +20180,7 @@ const Eb = ["disabled"], Ab = {
20180
20180
  b("div", { class: "tips" }, "左对齐", -1)
20181
20181
  ])], 2));
20182
20182
  }
20183
- }, Zb = {
20183
+ }, Z2 = {
20184
20184
  __name: "TextAlignCenterButton",
20185
20185
  props: {
20186
20186
  editor: {
@@ -20212,7 +20212,7 @@ const Eb = ["disabled"], Ab = {
20212
20212
  b("div", { class: "tips" }, "居中对齐", -1)
20213
20213
  ])], 2));
20214
20214
  }
20215
- }, e2 = {
20215
+ }, eb = {
20216
20216
  __name: "TextAlignRightButton",
20217
20217
  props: {
20218
20218
  editor: {
@@ -20244,7 +20244,7 @@ const Eb = ["disabled"], Ab = {
20244
20244
  b("div", { class: "tips" }, "右对齐", -1)
20245
20245
  ])], 2));
20246
20246
  }
20247
- }, t2 = {
20247
+ }, tb = {
20248
20248
  __name: "BlockQuoteButton",
20249
20249
  props: {
20250
20250
  editor: {
@@ -20276,7 +20276,7 @@ const Eb = ["disabled"], Ab = {
20276
20276
  b("div", { class: "tips" }, "引用", -1)
20277
20277
  ])], 2));
20278
20278
  }
20279
- }, n2 = {
20279
+ }, nb = {
20280
20280
  __name: "LinkButton",
20281
20281
  props: {
20282
20282
  editor: {
@@ -20321,7 +20321,7 @@ const Eb = ["disabled"], Ab = {
20321
20321
  b("div", { class: "tips" }, "设置超链接", -1)
20322
20322
  ])], 2));
20323
20323
  }
20324
- }, r2 = { class: "label" }, i2 = { class: "dropdown" }, s2 = ["onClick"], o2 = { class: "text" }, l2 = {
20324
+ }, rb = { class: "label" }, ib = { class: "dropdown" }, sb = ["onClick"], ob = { class: "text" }, lb = {
20325
20325
  __name: "LineHeightButton",
20326
20326
  props: {
20327
20327
  editor: {
@@ -20363,18 +20363,18 @@ const Eb = ["disabled"], Ab = {
20363
20363
  })
20364
20364
  ])
20365
20365
  ], -1)),
20366
- b("span", r2, Be(s.value), 1)
20366
+ b("span", rb, Be(s.value), 1)
20367
20367
  ]),
20368
20368
  $(rr, { name: "dropdown" }, {
20369
20369
  default: Tn(() => [
20370
- ir(b("div", i2, [
20371
- (I(), z(Zt, null, en(r, (u) => b("div", {
20370
+ ir(b("div", ib, [
20371
+ (I(), z(en, null, tn(r, (u) => b("div", {
20372
20372
  class: _(["item", { "is-selected": n.editor.isActive("textStyle", { lineHeight: u }) }]),
20373
20373
  key: u,
20374
20374
  onClick: (d) => i(u)
20375
20375
  }, [
20376
- b("span", o2, Be(u), 1)
20377
- ], 10, s2)), 64))
20376
+ b("span", ob, Be(u), 1)
20377
+ ], 10, sb)), 64))
20378
20378
  ], 512), [
20379
20379
  [sr, e.value]
20380
20380
  ])
@@ -20383,13 +20383,13 @@ const Eb = ["disabled"], Ab = {
20383
20383
  })
20384
20384
  ], 2));
20385
20385
  }
20386
- }, a2 = /* @__PURE__ */ je(l2, [["__scopeId", "data-v-5cb0ec55"]]), c2 = ["disabled"], u2 = {
20386
+ }, ab = /* @__PURE__ */ je(lb, [["__scopeId", "data-v-5cb0ec55"]]), cb = ["disabled"], ub = {
20387
20387
  key: 0,
20388
20388
  class: "icon"
20389
- }, d2 = {
20389
+ }, db = {
20390
20390
  key: 1,
20391
20391
  class: "icon"
20392
- }, f2 = /* @__PURE__ */ et({
20392
+ }, fb = /* @__PURE__ */ et({
20393
20393
  __name: "ImageUploadButton",
20394
20394
  props: {
20395
20395
  editor: {},
@@ -20432,7 +20432,7 @@ const Eb = ["disabled"], Ab = {
20432
20432
  onChange: l,
20433
20433
  style: { display: "none" }
20434
20434
  }, null, 544),
20435
- s.value ? (I(), z("div", d2, [...c[1] || (c[1] = [
20435
+ s.value ? (I(), z("div", db, [...c[1] || (c[1] = [
20436
20436
  b("svg", { viewBox: "0 0 38 38" }, [
20437
20437
  b("circle", {
20438
20438
  stroke: "currentColor",
@@ -20454,7 +20454,7 @@ const Eb = ["disabled"], Ab = {
20454
20454
  })
20455
20455
  ])
20456
20456
  ], -1)
20457
- ])])) : (I(), z("div", u2, [...c[0] || (c[0] = [
20457
+ ])])) : (I(), z("div", ub, [...c[0] || (c[0] = [
20458
20458
  b("svg", {
20459
20459
  xmlns: "http://www.w3.org/2000/svg",
20460
20460
  viewBox: "0 0 448 512"
@@ -20470,9 +20470,9 @@ const Eb = ["disabled"], Ab = {
20470
20470
  ], -1)
20471
20471
  ])])),
20472
20472
  c[2] || (c[2] = b("div", { class: "tips" }, "上传图片", -1))
20473
- ], 8, c2));
20473
+ ], 8, cb));
20474
20474
  }
20475
- }), h2 = /* @__PURE__ */ je(f2, [["__scopeId", "data-v-9419e63b"]]), p2 = ["height"], m2 = {
20475
+ }), hb = /* @__PURE__ */ je(fb, [["__scopeId", "data-v-9419e63b"]]), pb = ["height"], mb = {
20476
20476
  __name: "IconCheck",
20477
20477
  props: {
20478
20478
  editor: {
@@ -20491,7 +20491,7 @@ const Eb = ["disabled"], Ab = {
20491
20491
  setup(n) {
20492
20492
  return (e, t) => (I(), z("div", {
20493
20493
  class: "icon",
20494
- style: hn({ color: n.color })
20494
+ style: Jt({ color: n.color })
20495
20495
  }, [
20496
20496
  (I(), z("svg", {
20497
20497
  xmlns: "http://www.w3.org/2000/svg",
@@ -20506,13 +20506,13 @@ const Eb = ["disabled"], Ab = {
20506
20506
  "stroke-linejoin": "round",
20507
20507
  d: "M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"
20508
20508
  }, null, -1)
20509
- ])], 8, p2))
20509
+ ])], 8, pb))
20510
20510
  ], 4));
20511
20511
  }
20512
- }, Xd = /* @__PURE__ */ je(m2, [["__scopeId", "data-v-fbcf4628"]]), g2 = { class: "trigger" }, y2 = {
20512
+ }, Xd = /* @__PURE__ */ je(mb, [["__scopeId", "data-v-fbcf4628"]]), gb = { class: "trigger" }, yb = {
20513
20513
  key: 0,
20514
20514
  class: "dropdown"
20515
- }, b2 = { class: "grid" }, k2 = ["onClick", "title"], w2 = { class: "footer" }, v2 = { class: "input" }, x2 = ["value"], C2 = {
20515
+ }, bb = { class: "grid" }, kb = ["onClick", "title"], wb = { class: "footer" }, vb = { class: "input" }, xb = ["value"], Cb = {
20516
20516
  __name: "TextColorButton",
20517
20517
  props: {
20518
20518
  editor: {
@@ -20615,7 +20615,7 @@ const Eb = ["disabled"], Ab = {
20615
20615
  onClick: c[2] || (c[2] = (u) => e.value = !e.value),
20616
20616
  title: "字体颜色"
20617
20617
  }, [
20618
- b("div", g2, [
20618
+ b("div", gb, [
20619
20619
  c[3] || (c[3] = b("div", { class: "icon" }, [
20620
20620
  b("svg", {
20621
20621
  xmlns: "http://www.w3.org/2000/svg",
@@ -20633,15 +20633,15 @@ const Eb = ["disabled"], Ab = {
20633
20633
  ], -1)),
20634
20634
  b("div", {
20635
20635
  class: "bar",
20636
- style: hn({ backgroundColor: s.value || "#000" })
20636
+ style: Jt({ backgroundColor: s.value || "#000" })
20637
20637
  }, null, 4)
20638
20638
  ]),
20639
- e.value ? (I(), z("div", y2, [
20640
- b("div", b2, [
20641
- (I(), z(Zt, null, en(r, (u) => b("div", {
20639
+ e.value ? (I(), z("div", yb, [
20640
+ b("div", bb, [
20641
+ (I(), z(en, null, tn(r, (u) => b("div", {
20642
20642
  key: u,
20643
20643
  class: "item",
20644
- style: hn({ backgroundColor: u }),
20644
+ style: Jt({ backgroundColor: u }),
20645
20645
  onClick: (d) => i(u),
20646
20646
  title: u
20647
20647
  }, [
@@ -20650,16 +20650,16 @@ const Eb = ["disabled"], Ab = {
20650
20650
  size: 10,
20651
20651
  color: "#fff"
20652
20652
  })) : pn("", !0)
20653
- ], 12, k2)), 64))
20653
+ ], 12, kb)), 64))
20654
20654
  ]),
20655
- b("div", w2, [
20655
+ b("div", wb, [
20656
20656
  c[4] || (c[4] = b("label", null, "自定义颜色", -1)),
20657
- b("div", v2, [
20657
+ b("div", vb, [
20658
20658
  b("input", {
20659
20659
  type: "color",
20660
20660
  onInput: c[0] || (c[0] = (u) => n.editor.chain().focus().setColor(u.target.value).run()),
20661
20661
  value: s.value
20662
- }, null, 40, x2)
20662
+ }, null, 40, xb)
20663
20663
  ]),
20664
20664
  b("div", {
20665
20665
  class: "button",
@@ -20671,10 +20671,10 @@ const Eb = ["disabled"], Ab = {
20671
20671
  ])) : pn("", !0)
20672
20672
  ], 2));
20673
20673
  }
20674
- }, S2 = /* @__PURE__ */ je(C2, [["__scopeId", "data-v-56dfdcbc"]]), M2 = { class: "trigger" }, T2 = {
20674
+ }, Sb = /* @__PURE__ */ je(Cb, [["__scopeId", "data-v-56dfdcbc"]]), Mb = { class: "trigger" }, Tb = {
20675
20675
  key: 0,
20676
20676
  class: "dropdown"
20677
- }, E2 = { class: "grid" }, A2 = ["onClick", "title"], O2 = { class: "footer" }, N2 = { class: "input" }, D2 = ["value"], R2 = {
20677
+ }, Eb = { class: "grid" }, Ab = ["onClick", "title"], Ob = { class: "footer" }, Nb = { class: "input" }, Db = ["value"], Rb = {
20678
20678
  __name: "BackgroundButton",
20679
20679
  props: {
20680
20680
  editor: {
@@ -20777,7 +20777,7 @@ const Eb = ["disabled"], Ab = {
20777
20777
  onClick: c[2] || (c[2] = (u) => e.value = !e.value),
20778
20778
  title: "背景颜色"
20779
20779
  }, [
20780
- b("div", M2, [
20780
+ b("div", Mb, [
20781
20781
  c[3] || (c[3] = b("div", { class: "icon" }, [
20782
20782
  b("svg", {
20783
20783
  xmlns: "http://www.w3.org/2000/svg",
@@ -20795,15 +20795,15 @@ const Eb = ["disabled"], Ab = {
20795
20795
  ], -1)),
20796
20796
  b("div", {
20797
20797
  class: "bar",
20798
- style: hn({ backgroundColor: s.value || "#000" })
20798
+ style: Jt({ backgroundColor: s.value || "#000" })
20799
20799
  }, null, 4)
20800
20800
  ]),
20801
- e.value ? (I(), z("div", T2, [
20802
- b("div", E2, [
20803
- (I(), z(Zt, null, en(r, (u) => b("div", {
20801
+ e.value ? (I(), z("div", Tb, [
20802
+ b("div", Eb, [
20803
+ (I(), z(en, null, tn(r, (u) => b("div", {
20804
20804
  key: u,
20805
20805
  class: "item",
20806
- style: hn({ backgroundColor: u }),
20806
+ style: Jt({ backgroundColor: u }),
20807
20807
  onClick: (d) => i(u),
20808
20808
  title: u
20809
20809
  }, [
@@ -20812,16 +20812,16 @@ const Eb = ["disabled"], Ab = {
20812
20812
  size: 10,
20813
20813
  color: "#fff"
20814
20814
  })) : pn("", !0)
20815
- ], 12, A2)), 64))
20815
+ ], 12, Ab)), 64))
20816
20816
  ]),
20817
- b("div", O2, [
20817
+ b("div", Ob, [
20818
20818
  c[4] || (c[4] = b("label", null, "自定义颜色", -1)),
20819
- b("div", N2, [
20819
+ b("div", Nb, [
20820
20820
  b("input", {
20821
20821
  type: "color",
20822
20822
  onInput: c[0] || (c[0] = (u) => n.editor.chain().focus().setBackgroundColor(u.target.value).run()),
20823
20823
  value: s.value
20824
- }, null, 40, D2)
20824
+ }, null, 40, Db)
20825
20825
  ]),
20826
20826
  b("div", {
20827
20827
  class: "button",
@@ -20833,7 +20833,7 @@ const Eb = ["disabled"], Ab = {
20833
20833
  ])) : pn("", !0)
20834
20834
  ], 2));
20835
20835
  }
20836
- }, I2 = /* @__PURE__ */ je(R2, [["__scopeId", "data-v-d4f91033"]]), L2 = {
20836
+ }, Ib = /* @__PURE__ */ je(Rb, [["__scopeId", "data-v-d4f91033"]]), Lb = {
20837
20837
  __name: "SubscriptButton",
20838
20838
  props: {
20839
20839
  editor: {
@@ -20865,7 +20865,7 @@ const Eb = ["disabled"], Ab = {
20865
20865
  b("div", { class: "tips" }, "下标文字", -1)
20866
20866
  ])], 2));
20867
20867
  }
20868
- }, P2 = {
20868
+ }, Pb = {
20869
20869
  __name: "SuperscriptButton",
20870
20870
  props: {
20871
20871
  editor: {
@@ -20897,7 +20897,7 @@ const Eb = ["disabled"], Ab = {
20897
20897
  b("div", { class: "tips" }, "下标文字", -1)
20898
20898
  ])], 2));
20899
20899
  }
20900
- }, z2 = { class: "dropdown" }, B2 = ["onClick"], $2 = { class: "icon" }, F2 = { class: "text" }, H2 = {
20900
+ }, zb = { class: "dropdown" }, Bb = ["onClick"], $b = { class: "icon" }, Fb = { class: "text" }, Hb = {
20901
20901
  __name: "BulletListButton",
20902
20902
  props: {
20903
20903
  editor: {
@@ -20950,15 +20950,15 @@ const Eb = ["disabled"], Ab = {
20950
20950
  ])], 2),
20951
20951
  $(rr, { name: "dropdown" }, {
20952
20952
  default: Tn(() => [
20953
- ir(b("div", z2, [
20954
- (I(), z(Zt, null, en(r, (c) => b("div", {
20953
+ ir(b("div", zb, [
20954
+ (I(), z(en, null, tn(r, (c) => b("div", {
20955
20955
  class: _(["item", { "is-selected": n.editor.isActive("bulletList") && n.editor.getAttributes("bulletList").listStyleType === c.value }]),
20956
20956
  key: c.value,
20957
20957
  onClick: (u) => i(c.value)
20958
20958
  }, [
20959
- b("div", $2, Be(c.icon), 1),
20960
- b("span", F2, Be(c.label), 1)
20961
- ], 10, B2)), 64))
20959
+ b("div", $b, Be(c.icon), 1),
20960
+ b("span", Fb, Be(c.label), 1)
20961
+ ], 10, Bb)), 64))
20962
20962
  ], 512), [
20963
20963
  [sr, e.value]
20964
20964
  ])
@@ -20967,7 +20967,7 @@ const Eb = ["disabled"], Ab = {
20967
20967
  })
20968
20968
  ], 512));
20969
20969
  }
20970
- }, V2 = /* @__PURE__ */ je(H2, [["__scopeId", "data-v-5a634115"]]), _2 = { class: "dropdown" }, j2 = ["onClick"], W2 = { class: "icon" }, U2 = { class: "text" }, K2 = {
20970
+ }, Vb = /* @__PURE__ */ je(Hb, [["__scopeId", "data-v-5a634115"]]), _b = { class: "dropdown" }, jb = ["onClick"], Wb = { class: "icon" }, Ub = { class: "text" }, Kb = {
20971
20971
  __name: "OrderedListButton",
20972
20972
  props: {
20973
20973
  editor: {
@@ -21023,15 +21023,15 @@ const Eb = ["disabled"], Ab = {
21023
21023
  ])], 2),
21024
21024
  $(rr, { name: "dropdown" }, {
21025
21025
  default: Tn(() => [
21026
- ir(b("div", _2, [
21027
- (I(), z(Zt, null, en(r, (c) => b("div", {
21026
+ ir(b("div", _b, [
21027
+ (I(), z(en, null, tn(r, (c) => b("div", {
21028
21028
  class: _(["item", { "is-selected": n.editor.isActive("orderedList") && n.editor.getAttributes("orderedList").listStyleType === c.value }]),
21029
21029
  key: c.value,
21030
21030
  onClick: (u) => i(c.value)
21031
21031
  }, [
21032
- b("div", W2, Be(c.icon), 1),
21033
- b("span", U2, Be(c.label), 1)
21034
- ], 10, j2)), 64))
21032
+ b("div", Wb, Be(c.icon), 1),
21033
+ b("span", Ub, Be(c.label), 1)
21034
+ ], 10, jb)), 64))
21035
21035
  ], 512), [
21036
21036
  [sr, e.value]
21037
21037
  ])
@@ -21040,7 +21040,7 @@ const Eb = ["disabled"], Ab = {
21040
21040
  })
21041
21041
  ], 512));
21042
21042
  }
21043
- }, q2 = /* @__PURE__ */ je(K2, [["__scopeId", "data-v-1a4525ea"]]), J2 = {
21043
+ }, qb = /* @__PURE__ */ je(Kb, [["__scopeId", "data-v-1a4525ea"]]), Jb = {
21044
21044
  __name: "TaskListButton",
21045
21045
  props: {
21046
21046
  editor: {
@@ -21072,15 +21072,15 @@ const Eb = ["disabled"], Ab = {
21072
21072
  b("div", { class: "tips" }, "任务列表", -1)
21073
21073
  ])], 2));
21074
21074
  }
21075
- }, G2 = { class: "icon" }, Y2 = {
21075
+ }, Gb = { class: "icon" }, Yb = {
21076
21076
  key: 0,
21077
21077
  xmlns: "http://www.w3.org/2000/svg",
21078
21078
  viewBox: "0 0 512 512"
21079
- }, X2 = {
21079
+ }, Xb = {
21080
21080
  key: 1,
21081
21081
  xmlns: "http://www.w3.org/2000/svg",
21082
21082
  viewBox: "0 0 512 512"
21083
- }, Q2 = /* @__PURE__ */ et({
21083
+ }, Qb = /* @__PURE__ */ et({
21084
21084
  __name: "ThemeButton",
21085
21085
  props: {
21086
21086
  theme: {}
@@ -21095,8 +21095,8 @@ const Eb = ["disabled"], Ab = {
21095
21095
  type: "button",
21096
21096
  onClick: r
21097
21097
  }, [
21098
- b("div", G2, [
21099
- n.theme === "light" ? (I(), z("svg", Y2, [...s[0] || (s[0] = [
21098
+ b("div", Gb, [
21099
+ n.theme === "light" ? (I(), z("svg", Yb, [...s[0] || (s[0] = [
21100
21100
  b("path", {
21101
21101
  fill: "currentColor",
21102
21102
  stroke: "currentColor",
@@ -21105,7 +21105,7 @@ const Eb = ["disabled"], Ab = {
21105
21105
  "stroke-linejoin": "round",
21106
21106
  d: "M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"
21107
21107
  }, null, -1)
21108
- ])])) : (I(), z("svg", X2, [...s[1] || (s[1] = [
21108
+ ])])) : (I(), z("svg", Xb, [...s[1] || (s[1] = [
21109
21109
  b("path", {
21110
21110
  fill: "currentColor",
21111
21111
  stroke: "currentColor",
@@ -21119,7 +21119,7 @@ const Eb = ["disabled"], Ab = {
21119
21119
  s[2] || (s[2] = b("div", { class: "tips" }, "切换主题", -1))
21120
21120
  ]));
21121
21121
  }
21122
- }), Z2 = { class: "tools" }, ek = { class: "group" }, tk = { class: "group" }, nk = { class: "group" }, rk = { class: "group" }, ik = { class: "group" }, sk = { class: "group" }, ok = { class: "group" }, lk = { class: "theme" }, ak = /* @__PURE__ */ et({
21122
+ }), Zb = { class: "tools" }, ek = { class: "group" }, tk = { class: "group" }, nk = { class: "group" }, rk = { class: "group" }, ik = { class: "group" }, sk = { class: "group" }, ok = { class: "group" }, lk = { class: "theme" }, ak = /* @__PURE__ */ et({
21123
21123
  __name: "EditorToolbar",
21124
21124
  props: {
21125
21125
  theme: {},
@@ -21135,54 +21135,54 @@ const Eb = ["disabled"], Ab = {
21135
21135
  onClick: i[1] || (i[1] = sf(() => {
21136
21136
  }, ["stop"]))
21137
21137
  }, [
21138
- b("div", Z2, [
21138
+ b("div", Zb, [
21139
21139
  b("div", ek, [
21140
- $(Ab, { editor: n.editor }, null, 8, ["editor"]),
21141
- $(Nb, { editor: n.editor }, null, 8, ["editor"]),
21142
- $(Db, { editor: n.editor }, null, 8, ["editor"])
21140
+ $(A2, { editor: n.editor }, null, 8, ["editor"]),
21141
+ $(N2, { editor: n.editor }, null, 8, ["editor"]),
21142
+ $(D2, { editor: n.editor }, null, 8, ["editor"])
21143
21143
  ]),
21144
21144
  b("div", tk, [
21145
- $(Bb, { editor: n.editor }, null, 8, ["editor"]),
21146
- $(jb, { editor: n.editor }, null, 8, ["editor"]),
21147
- $(a2, { editor: n.editor }, null, 8, ["editor"])
21145
+ $(B2, { editor: n.editor }, null, 8, ["editor"]),
21146
+ $(j2, { editor: n.editor }, null, 8, ["editor"]),
21147
+ $(ab, { editor: n.editor }, null, 8, ["editor"])
21148
21148
  ]),
21149
21149
  b("div", nk, [
21150
- $(S2, { editor: n.editor }, null, 8, ["editor"]),
21151
- $(I2, { editor: n.editor }, null, 8, ["editor"])
21150
+ $(Sb, { editor: n.editor }, null, 8, ["editor"]),
21151
+ $(Ib, { editor: n.editor }, null, 8, ["editor"])
21152
21152
  ]),
21153
21153
  b("div", rk, [
21154
- $(Wb, { editor: n.editor }, null, 8, ["editor"]),
21155
- $(Ub, { editor: n.editor }, null, 8, ["editor"]),
21156
- $(Kb, { editor: n.editor }, null, 8, ["editor"]),
21157
- $(qb, { editor: n.editor }, null, 8, ["editor"]),
21158
- $(Xb, { editor: n.editor }, null, 8, ["editor"]),
21159
- $(Yb, { editor: n.editor }, null, 8, ["editor"]),
21160
- $(Qb, { editor: n.editor }, null, 8, ["editor"]),
21161
- $(Zb, { editor: n.editor }, null, 8, ["editor"]),
21162
- $(e2, { editor: n.editor }, null, 8, ["editor"]),
21163
- $(t2, { editor: n.editor }, null, 8, ["editor"])
21154
+ $(W2, { editor: n.editor }, null, 8, ["editor"]),
21155
+ $(U2, { editor: n.editor }, null, 8, ["editor"]),
21156
+ $(K2, { editor: n.editor }, null, 8, ["editor"]),
21157
+ $(q2, { editor: n.editor }, null, 8, ["editor"]),
21158
+ $(X2, { editor: n.editor }, null, 8, ["editor"]),
21159
+ $(Y2, { editor: n.editor }, null, 8, ["editor"]),
21160
+ $(Q2, { editor: n.editor }, null, 8, ["editor"]),
21161
+ $(Z2, { editor: n.editor }, null, 8, ["editor"]),
21162
+ $(eb, { editor: n.editor }, null, 8, ["editor"]),
21163
+ $(tb, { editor: n.editor }, null, 8, ["editor"])
21164
21164
  ]),
21165
21165
  b("div", ik, [
21166
- $(V2, { editor: n.editor }, null, 8, ["editor"]),
21167
- $(q2, { editor: n.editor }, null, 8, ["editor"]),
21168
- $(J2, { editor: n.editor }, null, 8, ["editor"])
21166
+ $(Vb, { editor: n.editor }, null, 8, ["editor"]),
21167
+ $(qb, { editor: n.editor }, null, 8, ["editor"]),
21168
+ $(Jb, { editor: n.editor }, null, 8, ["editor"])
21169
21169
  ]),
21170
21170
  b("div", sk, [
21171
- $(L2, { editor: n.editor }, null, 8, ["editor"]),
21172
- $(P2, { editor: n.editor }, null, 8, ["editor"])
21171
+ $(Lb, { editor: n.editor }, null, 8, ["editor"]),
21172
+ $(Pb, { editor: n.editor }, null, 8, ["editor"])
21173
21173
  ]),
21174
21174
  b("div", ok, [
21175
- $(n2, { editor: n.editor }, null, 8, ["editor"]),
21176
- $(Jb, { editor: n.editor }, null, 8, ["editor"]),
21177
- $(Gb, { editor: n.editor }, null, 8, ["editor"]),
21178
- $(h2, {
21175
+ $(nb, { editor: n.editor }, null, 8, ["editor"]),
21176
+ $(J2, { editor: n.editor }, null, 8, ["editor"]),
21177
+ $(G2, { editor: n.editor }, null, 8, ["editor"]),
21178
+ $(hb, {
21179
21179
  editor: n.editor,
21180
21180
  uploadImage: n.uploadImage
21181
21181
  }, null, 8, ["editor", "uploadImage"])
21182
21182
  ])
21183
21183
  ]),
21184
21184
  b("div", lk, [
21185
- $(Q2, {
21185
+ $(Qb, {
21186
21186
  theme: n.theme,
21187
21187
  onToggleTheme: i[0] || (i[0] = () => t("toggle-theme"))
21188
21188
  }, null, 8, ["theme"])
@@ -21195,7 +21195,8 @@ const Eb = ["disabled"], Ab = {
21195
21195
  format: {},
21196
21196
  theme: {},
21197
21197
  modelValue: {},
21198
- uploadImage: { type: Function }
21198
+ uploadImage: {},
21199
+ height: { default: 500 }
21199
21200
  },
21200
21201
  emits: ["update:modelValue"],
21201
21202
  setup(n, { emit: e }) {
@@ -21287,7 +21288,7 @@ const Eb = ["disabled"], Ab = {
21287
21288
  onToggleTheme: u[0] || (u[0] = () => o()),
21288
21289
  uploadImage: (d) => t.uploadImage ? t.uploadImage(d) : a(d)
21289
21290
  }, null, 8, ["editor", "theme", "uploadImage"]),
21290
- Ae(l) ? (I(), Xs(Ae(Sb), {
21291
+ Ae(l) ? (I(), Xs(Ae(S2), {
21291
21292
  key: 0,
21292
21293
  class: "bubble-menu",
21293
21294
  "should-show": () => Ae(l).isActive("image"),
@@ -21316,11 +21317,12 @@ const Eb = ["disabled"], Ab = {
21316
21317
  }, 8, ["should-show", "editor"])) : pn("", !0),
21317
21318
  $(Ae(u0), {
21318
21319
  editor: Ae(l),
21319
- class: _(["editor-body srcker-html-content", i.value])
21320
- }, null, 8, ["editor", "class"])
21320
+ class: _(["editor-body srcker-html-content", i.value]),
21321
+ style: Jt({ height: `${t.height}px` })
21322
+ }, null, 8, ["editor", "class", "style"])
21321
21323
  ], 2));
21322
21324
  }
21323
- }), La = /* @__PURE__ */ je(uk, [["__scopeId", "data-v-58bc3fb5"]]);
21325
+ }), La = /* @__PURE__ */ je(uk, [["__scopeId", "data-v-279f24d5"]]);
21324
21326
  La.install = (n) => {
21325
21327
  n.component("RichEditor", La);
21326
21328
  };