smart-editor-v3 1.13.0 → 1.13.1

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.
@@ -3,7 +3,7 @@ var D7 = (t, e, n) => e in t ? O7(t, e, { enumerable: !0, configurable: !0, writ
3
3
  var nf = (t, e, n) => D7(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import "./style.css";
5
5
  import { NInput as tm, NButton as fo, NCheckbox as I7, NCard as L7, NEmpty as R7, NTooltip as Ua, NDrawerContent as B7, NDrawer as $7, NDropdown as i0, NSelect as T4, NColorPicker as A4, NEllipsis as P7, NTree as F7, NPopover as z7, NFlex as H7, NModal as V7, NFormItem as U7, NInputNumber as E4, useMessage as W7, zhCN as M4, enUS as N4, dateZhCN as O4, dateEnUS as D4, NMessageProvider as j7, NConfigProvider as I4, darkTheme as q7 } from "naive-ui";
6
- import { defineComponent as Io, h as Ut, getCurrentInstance as xa, effectScope as K7, inject as G7, onMounted as Ln, onUnmounted as nm, computed as Je, watch as Kt, Fragment as Ge, isRef as ti, ref as se, shallowRef as Y7, createVNode as Y, Text as J7, unref as b, openBlock as I, createBlock as Q, withCtx as ie, createElementVNode as j, toDisplayString as Se, createTextVNode as en, createCommentVNode as Fe, createElementBlock as ae, renderList as Qt, normalizeClass as dt, resolveDynamicComponent as dn, onBeforeUnmount as Ir, watchEffect as X7, nextTick as Q7, provide as Uu, markRaw as L4, reactive as Z7, render as sg, customRef as e_, withDirectives as Bl, normalizeStyle as tn, vShow as Wu, renderSlot as _n, useAttrs as rm, mergeProps as Hn, onBeforeMount as R4, mergeModels as ag, useModel as t_ } from "vue";
6
+ import { defineComponent as Io, h as Wt, getCurrentInstance as xa, effectScope as K7, inject as G7, onMounted as Un, onUnmounted as nm, computed as Je, watch as Ut, Fragment as Ge, isRef as ti, ref as se, shallowRef as Y7, createVNode as Y, Text as J7, unref as b, openBlock as I, createBlock as Q, withCtx as ie, createElementVNode as j, toDisplayString as Se, createTextVNode as en, createCommentVNode as Fe, createElementBlock as ae, renderList as Qt, normalizeClass as dt, resolveDynamicComponent as dn, onBeforeUnmount as Ir, watchEffect as X7, nextTick as Q7, provide as Uu, markRaw as L4, reactive as Z7, render as sg, customRef as e_, withDirectives as Bl, normalizeStyle as tn, vShow as Wu, renderSlot as _n, useAttrs as rm, mergeProps as zn, onBeforeMount as R4, mergeModels as ag, useModel as t_ } from "vue";
7
7
  import { useStorage as lg, createGlobalState as n_, useWindowSize as s0, onClickOutside as a0, useElementBounding as r_, useThrottleFn as l0, useEventBus as o_, useResizeObserver as B4, useClipboard as i_, useFileDialog as om, useTimestamp as s_, createInjectionState as a_, useDark as l_ } from "@vueuse/core";
8
8
  import { UseDraggable as c_, vElementHover as u_ } from "@vueuse/components";
9
9
  import { createEditor as d_ } from "prism-code-editor";
@@ -2542,9 +2542,9 @@ function dm(t = {}) {
2542
2542
  function Ct(oe, me) {
2543
2543
  d.value[oe] = An(d.value[oe] || {}, me), L.numberFormats = d.value, Ag(L, oe, me);
2544
2544
  }
2545
- Lg++, e && so && (Kt(e.locale, (oe) => {
2545
+ Lg++, e && so && (Ut(e.locale, (oe) => {
2546
2546
  s && (a.value = oe, L.locale = oe, ol(L, a.value, l.value));
2547
- }), Kt(e.fallbackLocale, (oe) => {
2547
+ }), Ut(e.fallbackLocale, (oe) => {
2548
2548
  s && (l.value = oe, L.fallbackLocale = oe, ol(L, a.value, l.value));
2549
2549
  }));
2550
2550
  const nt = {
@@ -3212,7 +3212,7 @@ const Ek = /* @__PURE__ */ Io({
3212
3212
  const i = Object.keys(n).filter((d) => d !== "_"), s = {};
3213
3213
  t.locale && (s.locale = t.locale), t.plural !== void 0 && (s.plural = Ce(t.plural) ? +t.plural : t.plural);
3214
3214
  const a = Ak(e, i), l = o[Eh](t.keypath, a, s), c = An({}, r), u = Ce(t.tag) || xt(t.tag) ? t.tag : a2();
3215
- return Ut(u, c, l);
3215
+ return Wt(u, c, l);
3216
3216
  };
3217
3217
  }
3218
3218
  }), Pg = Ek;
@@ -3232,7 +3232,7 @@ function l2(t, e, n, r) {
3232
3232
  return Mk(m) && (m[0].key = `${f.type}-${h}`), m;
3233
3233
  }) : Ce(l) && (c = [l]);
3234
3234
  const u = An({}, i), d = Ce(t.tag) || xt(t.tag) ? t.tag : a2();
3235
- return Ut(d, u, c);
3235
+ return Wt(d, u, c);
3236
3236
  };
3237
3237
  }
3238
3238
  const Nk = /* @__PURE__ */ Io({
@@ -3307,7 +3307,7 @@ function Ik(t) {
3307
3307
  return {
3308
3308
  created: (s, a) => {
3309
3309
  const [l, c] = e(a);
3310
- so && t.global === c && (s.__i18nWatcher = Kt(c.locale, () => {
3310
+ so && t.global === c && (s.__i18nWatcher = Ut(c.locale, () => {
3311
3311
  a.instance && a.instance.$forceUpdate();
3312
3312
  })), s.__composer = c, s.textContent = l;
3313
3313
  },
@@ -3468,7 +3468,7 @@ function Vk(t, e = !1) {
3468
3468
  }
3469
3469
  function Uk(t, e, n) {
3470
3470
  let r = null;
3471
- Ln(() => {
3471
+ Un(() => {
3472
3472
  if (process.env.NODE_ENV !== "production" && e.vnode.el) {
3473
3473
  e.vnode.el.__VUE_I18N__ = n, r = sm();
3474
3474
  const o = n;
@@ -4659,7 +4659,7 @@ const de = n_(() => {
4659
4659
  }, g = () => {
4660
4660
  e.value = void 0, f.value = !1, l.value = [], n.value = !0, i.value = null;
4661
4661
  };
4662
- return Kt(
4662
+ return Ut(
4663
4663
  () => {
4664
4664
  var w;
4665
4665
  return (w = o.value.document) == null ? void 0 : w.readOnly;
@@ -4668,7 +4668,7 @@ const de = n_(() => {
4668
4668
  var S;
4669
4669
  (S = e.value) == null || S.setEditable(!w), t.value = qr();
4670
4670
  }
4671
- ), Kt(
4671
+ ), Ut(
4672
4672
  () => o.value.page,
4673
4673
  ({
4674
4674
  defaultBackground: w,
@@ -4734,11 +4734,11 @@ function Ta(t) {
4734
4734
  if (typeof t == "object")
4735
4735
  return t[mm.locale.value];
4736
4736
  }
4737
- function Pn(t) {
4737
+ function $n(t) {
4738
4738
  this.content = t;
4739
4739
  }
4740
- Pn.prototype = {
4741
- constructor: Pn,
4740
+ $n.prototype = {
4741
+ constructor: $n,
4742
4742
  find: function(t) {
4743
4743
  for (var e = 0; e < this.content.length; e += 2)
4744
4744
  if (this.content[e] === t) return e;
@@ -4757,7 +4757,7 @@ Pn.prototype = {
4757
4757
  // given, the key of the binding will be replaced with that key.
4758
4758
  update: function(t, e, n) {
4759
4759
  var r = n && n != t ? this.remove(n) : this, o = r.find(t), i = r.content.slice();
4760
- return o == -1 ? i.push(n || t, e) : (i[o + 1] = e, n && (i[o] = n)), new Pn(i);
4760
+ return o == -1 ? i.push(n || t, e) : (i[o + 1] = e, n && (i[o] = n)), new $n(i);
4761
4761
  },
4762
4762
  // :: (string) → OrderedMap
4763
4763
  // Return a map with the given key removed, if it existed.
@@ -4765,25 +4765,25 @@ Pn.prototype = {
4765
4765
  var e = this.find(t);
4766
4766
  if (e == -1) return this;
4767
4767
  var n = this.content.slice();
4768
- return n.splice(e, 2), new Pn(n);
4768
+ return n.splice(e, 2), new $n(n);
4769
4769
  },
4770
4770
  // :: (string, any) → OrderedMap
4771
4771
  // Add a new key to the start of the map.
4772
4772
  addToStart: function(t, e) {
4773
- return new Pn([t, e].concat(this.remove(t).content));
4773
+ return new $n([t, e].concat(this.remove(t).content));
4774
4774
  },
4775
4775
  // :: (string, any) → OrderedMap
4776
4776
  // Add a new key to the end of the map.
4777
4777
  addToEnd: function(t, e) {
4778
4778
  var n = this.remove(t).content.slice();
4779
- return n.push(t, e), new Pn(n);
4779
+ return n.push(t, e), new $n(n);
4780
4780
  },
4781
4781
  // :: (string, string, any) → OrderedMap
4782
4782
  // Add a key after the given key. If `place` is not found, the new
4783
4783
  // key is added to the end.
4784
4784
  addBefore: function(t, e, n) {
4785
4785
  var r = this.remove(e), o = r.content.slice(), i = r.find(t);
4786
- return o.splice(i == -1 ? o.length : i, 0, e, n), new Pn(o);
4786
+ return o.splice(i == -1 ? o.length : i, 0, e, n), new $n(o);
4787
4787
  },
4788
4788
  // :: ((key: string, value: any))
4789
4789
  // Call the given function for each key/value pair in the map, in
@@ -4796,20 +4796,20 @@ Pn.prototype = {
4796
4796
  // Create a new map by prepending the keys in this map that don't
4797
4797
  // appear in `map` before the keys in `map`.
4798
4798
  prepend: function(t) {
4799
- return t = Pn.from(t), t.size ? new Pn(t.content.concat(this.subtract(t).content)) : this;
4799
+ return t = $n.from(t), t.size ? new $n(t.content.concat(this.subtract(t).content)) : this;
4800
4800
  },
4801
4801
  // :: (union<Object, OrderedMap>) → OrderedMap
4802
4802
  // Create a new map by appending the keys in this map that don't
4803
4803
  // appear in `map` after the keys in `map`.
4804
4804
  append: function(t) {
4805
- return t = Pn.from(t), t.size ? new Pn(this.subtract(t).content.concat(t.content)) : this;
4805
+ return t = $n.from(t), t.size ? new $n(this.subtract(t).content.concat(t.content)) : this;
4806
4806
  },
4807
4807
  // :: (union<Object, OrderedMap>) → OrderedMap
4808
4808
  // Create a map containing all the keys in this map that don't
4809
4809
  // appear in `map`.
4810
4810
  subtract: function(t) {
4811
4811
  var e = this;
4812
- t = Pn.from(t);
4812
+ t = $n.from(t);
4813
4813
  for (var n = 0; n < t.content.length; n += 2)
4814
4814
  e = e.remove(t.content[n]);
4815
4815
  return e;
@@ -4828,11 +4828,11 @@ Pn.prototype = {
4828
4828
  return this.content.length >> 1;
4829
4829
  }
4830
4830
  };
4831
- Pn.from = function(t) {
4832
- if (t instanceof Pn) return t;
4831
+ $n.from = function(t) {
4832
+ if (t instanceof $n) return t;
4833
4833
  var e = [];
4834
4834
  if (t) for (var n in t) e.push(n, t[n]);
4835
- return new Pn(e);
4835
+ return new $n(e);
4836
4836
  };
4837
4837
  function d2(t, e, n) {
4838
4838
  for (let r = 0; ; r++) {
@@ -6780,7 +6780,7 @@ class T2 {
6780
6780
  let n = this.spec = {};
6781
6781
  for (let o in e)
6782
6782
  n[o] = e[o];
6783
- n.nodes = Pn.from(e.nodes), n.marks = Pn.from(e.marks || {}), this.nodes = Kg.compile(this.spec.nodes, this), this.marks = p0.compile(this.spec.marks, this);
6783
+ n.nodes = $n.from(e.nodes), n.marks = $n.from(e.marks || {}), this.nodes = Kg.compile(this.spec.nodes, this), this.marks = p0.compile(this.spec.marks, this);
6784
6784
  let r = /* @__PURE__ */ Object.create(null);
6785
6785
  for (let o in this.nodes) {
6786
6786
  if (o in this.marks)
@@ -9838,7 +9838,7 @@ class gt {
9838
9838
  return e[this.key];
9839
9839
  }
9840
9840
  }
9841
- const Vn = function(t) {
9841
+ const Hn = function(t) {
9842
9842
  for (var e = 0; ; e++)
9843
9843
  if (t = t.previousSibling, !t)
9844
9844
  return e;
@@ -9863,7 +9863,7 @@ function cb(t, e, n, r, o) {
9863
9863
  let i = t.parentNode;
9864
9864
  if (!i || i.nodeType != 1 || kc(t) || G9.test(t.nodeName) || t.contentEditable == "false")
9865
9865
  return !1;
9866
- e = Vn(t) + (o < 0 ? 0 : 1), t = i;
9866
+ e = Hn(t) + (o < 0 ? 0 : 1), t = i;
9867
9867
  } else if (t.nodeType == 1) {
9868
9868
  if (t = t.childNodes[e + (o < 0 ? -1 : 0)], t.contentEditable == "false")
9869
9869
  return !1;
@@ -9884,7 +9884,7 @@ function Y9(t, e) {
9884
9884
  return null;
9885
9885
  t = t.childNodes[e - 1], e = Vr(t);
9886
9886
  } else if (t.parentNode && !kc(t))
9887
- e = Vn(t), t = t.parentNode;
9887
+ e = Hn(t), t = t.parentNode;
9888
9888
  else
9889
9889
  return null;
9890
9890
  }
@@ -9898,7 +9898,7 @@ function J9(t, e) {
9898
9898
  return null;
9899
9899
  t = t.childNodes[e], e = 0;
9900
9900
  } else if (t.parentNode && !kc(t))
9901
- e = Vn(t) + 1, t = t.parentNode;
9901
+ e = Hn(t) + 1, t = t.parentNode;
9902
9902
  else
9903
9903
  return null;
9904
9904
  }
@@ -9907,7 +9907,7 @@ function X9(t, e, n) {
9907
9907
  for (let r = e == 0, o = e == Vr(t); r || o; ) {
9908
9908
  if (t == n)
9909
9909
  return !0;
9910
- let i = Vn(t);
9910
+ let i = Hn(t);
9911
9911
  if (t = t.parentNode, !t)
9912
9912
  return !1;
9913
9913
  r = r && i == 0, o = o && i == Vr(t);
@@ -10378,7 +10378,7 @@ class Cc {
10378
10378
  }
10379
10379
  let o;
10380
10380
  if (e == this.dom && this.contentDOM)
10381
- o = n > Vn(this.contentDOM);
10381
+ o = n > Hn(this.contentDOM);
10382
10382
  else if (this.contentDOM && this.contentDOM != this.dom && this.dom.contains(this.contentDOM))
10383
10383
  o = e.compareDocumentPosition(this.contentDOM) & 2;
10384
10384
  else if (this.dom.firstChild) {
@@ -10468,12 +10468,12 @@ class Cc {
10468
10468
  let i, s = !0;
10469
10469
  for (; i = r ? this.children[r - 1] : null, !(!i || i.dom.parentNode == this.contentDOM); r--, s = !1)
10470
10470
  ;
10471
- return i && n && s && !i.border && !i.domAtom ? i.domFromPos(i.size, n) : { node: this.contentDOM, offset: i ? Vn(i.dom) + 1 : 0 };
10471
+ return i && n && s && !i.border && !i.domAtom ? i.domFromPos(i.size, n) : { node: this.contentDOM, offset: i ? Hn(i.dom) + 1 : 0 };
10472
10472
  } else {
10473
10473
  let i, s = !0;
10474
10474
  for (; i = r < this.children.length ? this.children[r] : null, !(!i || i.dom.parentNode == this.contentDOM); r++, s = !1)
10475
10475
  ;
10476
- return i && s && !i.border && !i.domAtom ? i.domFromPos(0, n) : { node: this.contentDOM, offset: i ? Vn(i.dom) : this.contentDOM.childNodes.length };
10476
+ return i && s && !i.border && !i.domAtom ? i.domFromPos(0, n) : { node: this.contentDOM, offset: i ? Hn(i.dom) : this.contentDOM.childNodes.length };
10477
10477
  }
10478
10478
  }
10479
10479
  // Used to find a DOM range in a single parent for a given changed
@@ -10492,7 +10492,7 @@ class Cc {
10492
10492
  for (let d = a; d > 0; d--) {
10493
10493
  let f = this.children[d - 1];
10494
10494
  if (f.size && f.dom.parentNode == this.contentDOM && !f.emptyChildAt(1)) {
10495
- o = Vn(f.dom) + 1;
10495
+ o = Hn(f.dom) + 1;
10496
10496
  break;
10497
10497
  }
10498
10498
  e -= f.size;
@@ -10504,7 +10504,7 @@ class Cc {
10504
10504
  for (let u = a + 1; u < this.children.length; u++) {
10505
10505
  let d = this.children[u];
10506
10506
  if (d.size && d.dom.parentNode == this.contentDOM && !d.emptyChildAt(-1)) {
10507
- i = Vn(d.dom);
10507
+ i = Hn(d.dom);
10508
10508
  break;
10509
10509
  }
10510
10510
  n += d.size;
@@ -10549,7 +10549,7 @@ class Cc {
10549
10549
  `), d && p == h.nodeValue.length)
10550
10550
  for (let m = h, y; m; m = m.parentNode) {
10551
10551
  if (y = m.nextSibling) {
10552
- y.nodeName == "BR" && (a = l = { node: y.parentNode, offset: Vn(y) + 1 });
10552
+ y.nodeName == "BR" && (a = l = { node: y.parentNode, offset: Hn(y) + 1 });
10553
10553
  break;
10554
10554
  }
10555
10555
  let g = m.pmViewDesc;
@@ -11389,7 +11389,7 @@ function AS(t) {
11389
11389
  if (!e)
11390
11390
  return;
11391
11391
  let r = t.cursorWrapper.dom, o = r.nodeName == "IMG";
11392
- o ? n.setStart(r.parentNode, Vn(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !o && !t.state.selection.visible && br && zi <= 11 && (r.disabled = !0, r.disabled = !1);
11392
+ o ? n.setStart(r.parentNode, Hn(r) + 1) : n.setStart(r, 0), n.collapse(!0), e.removeAllRanges(), e.addRange(n), !o && !t.state.selection.visible && br && zi <= 11 && (r.disabled = !0, r.disabled = !1);
11393
11393
  }
11394
11394
  function o3(t, e) {
11395
11395
  if (e instanceof Pe) {
@@ -11492,7 +11492,7 @@ function MS(t) {
11492
11492
  {
11493
11493
  let a = n.previousSibling;
11494
11494
  for (; a && wl(a, -1); )
11495
- o = n.parentNode, i = Vn(a), a = a.previousSibling;
11495
+ o = n.parentNode, i = Hn(a), a = a.previousSibling;
11496
11496
  if (a)
11497
11497
  n = a, r = Zu(n);
11498
11498
  else {
@@ -11524,7 +11524,7 @@ function NS(t) {
11524
11524
  {
11525
11525
  let a = n.nextSibling;
11526
11526
  for (; a && wl(a, 1); )
11527
- i = a.parentNode, s = Vn(a) + 1, a = a.nextSibling;
11527
+ i = a.parentNode, s = Hn(a) + 1, a = a.nextSibling;
11528
11528
  if (a)
11529
11529
  n = a, r = 0, o = Zu(n);
11530
11530
  else {
@@ -11542,7 +11542,7 @@ function s3(t) {
11542
11542
  }
11543
11543
  function OS(t, e) {
11544
11544
  for (; t && e == t.childNodes.length && !kc(t); )
11545
- e = Vn(t) + 1, t = t.parentNode;
11545
+ e = Hn(t) + 1, t = t.parentNode;
11546
11546
  for (; t && e < t.childNodes.length; ) {
11547
11547
  let n = t.childNodes[e];
11548
11548
  if (n.nodeType == 3)
@@ -11554,7 +11554,7 @@ function OS(t, e) {
11554
11554
  }
11555
11555
  function DS(t, e) {
11556
11556
  for (; t && !e && !kc(t); )
11557
- e = Vn(t), t = t.parentNode;
11557
+ e = Hn(t), t = t.parentNode;
11558
11558
  for (; t && e; ) {
11559
11559
  let n = t.childNodes[e - 1];
11560
11560
  if (n.nodeType == 3)
@@ -12945,7 +12945,7 @@ class hC {
12945
12945
  let { previousSibling: d, nextSibling: f } = e.addedNodes[u];
12946
12946
  (!d || Array.prototype.indexOf.call(e.addedNodes, d) < 0) && (o = d), (!f || Array.prototype.indexOf.call(e.addedNodes, f) < 0) && (i = f);
12947
12947
  }
12948
- let s = o && o.parentNode == e.target ? Vn(o) + 1 : 0, a = r.localPosFromDOM(e.target, s, -1), l = i && i.parentNode == e.target ? Vn(i) : e.target.childNodes.length, c = r.localPosFromDOM(e.target, l, 1);
12948
+ let s = o && o.parentNode == e.target ? Hn(o) + 1 : 0, a = r.localPosFromDOM(e.target, s, -1), l = i && i.parentNode == e.target ? Hn(i) : e.target.childNodes.length, c = r.localPosFromDOM(e.target, l, 1);
12949
12949
  return { from: a, to: c };
12950
12950
  } else return e.type == "attributes" ? { from: r.posAtStart - r.border, to: r.posAtEnd + r.border } : (this.lastChangedTextNode = e.target, {
12951
12951
  from: r.posAtStart,
@@ -13647,10 +13647,10 @@ var Wi = {
13647
13647
  221: "}",
13648
13648
  222: '"'
13649
13649
  }, AC = typeof navigator < "u" && /Mac/.test(navigator.platform), EC = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
13650
- for (var Un = 0; Un < 10; Un++) Wi[48 + Un] = Wi[96 + Un] = String(Un);
13651
- for (var Un = 1; Un <= 24; Un++) Wi[Un + 111] = "F" + Un;
13652
- for (var Un = 65; Un <= 90; Un++)
13653
- Wi[Un] = String.fromCharCode(Un + 32), rd[Un] = String.fromCharCode(Un);
13650
+ for (var Vn = 0; Vn < 10; Vn++) Wi[48 + Vn] = Wi[96 + Vn] = String(Vn);
13651
+ for (var Vn = 1; Vn <= 24; Vn++) Wi[Vn + 111] = "F" + Vn;
13652
+ for (var Vn = 65; Vn <= 90; Vn++)
13653
+ Wi[Vn] = String.fromCharCode(Vn + 32), rd[Vn] = String.fromCharCode(Vn);
13654
13654
  for (var wf in Wi) rd.hasOwnProperty(wf) || (rd[wf] = Wi[wf]);
13655
13655
  function MC(t) {
13656
13656
  var e = AC && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || EC && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? rd : Wi)[t.keyCode] || t.key || "Unidentified";
@@ -17142,7 +17142,7 @@ const Yl = {
17142
17142
  ctrlKey: 17,
17143
17143
  altKey: 18,
17144
17144
  metaKey: 91
17145
- }, zn = {
17145
+ }, Fn = {
17146
17146
  16: !1,
17147
17147
  18: !1,
17148
17148
  17: !1,
@@ -17211,8 +17211,8 @@ function iE(t, e) {
17211
17211
  function sE(t) {
17212
17212
  let e = t.keyCode || t.which || t.charCode;
17213
17213
  const n = Vt.indexOf(e);
17214
- if (n >= 0 && Vt.splice(n, 1), t.key && t.key.toLowerCase() === "meta" && Vt.splice(0, Vt.length), (e === 93 || e === 224) && (e = 91), e in zn) {
17215
- zn[e] = !1;
17214
+ if (n >= 0 && Vt.splice(n, 1), t.key && t.key.toLowerCase() === "meta" && Vt.splice(0, Vt.length), (e === 93 || e === 224) && (e = 91), e in Fn) {
17215
+ Fn[e] = !1;
17216
17216
  for (const r in Oo) Oo[r] === e && (Kr[r] = !1);
17217
17217
  }
17218
17218
  }
@@ -17263,9 +17263,9 @@ function Jb(t, e, n, r) {
17263
17263
  let o;
17264
17264
  if (e.scope === n || e.scope === "all") {
17265
17265
  o = e.mods.length > 0;
17266
- for (const i in zn)
17267
- Object.prototype.hasOwnProperty.call(zn, i) && (!zn[i] && e.mods.indexOf(+i) > -1 || zn[i] && e.mods.indexOf(+i) === -1) && (o = !1);
17268
- (e.mods.length === 0 && !zn[16] && !zn[18] && !zn[17] && !zn[91] || o || e.shortcut === "*") && (e.keys = [], e.keys = e.keys.concat(Vt), e.method(t, e) === !1 && (t.preventDefault ? t.preventDefault() : t.returnValue = !1, t.stopPropagation && t.stopPropagation(), t.cancelBubble && (t.cancelBubble = !0)));
17266
+ for (const i in Fn)
17267
+ Object.prototype.hasOwnProperty.call(Fn, i) && (!Fn[i] && e.mods.indexOf(+i) > -1 || Fn[i] && e.mods.indexOf(+i) === -1) && (o = !1);
17268
+ (e.mods.length === 0 && !Fn[16] && !Fn[18] && !Fn[17] && !Fn[91] || o || e.shortcut === "*") && (e.keys = [], e.keys = e.keys.concat(Vt), e.method(t, e) === !1 && (t.preventDefault ? t.preventDefault() : t.returnValue = !1, t.stopPropagation && t.stopPropagation(), t.cancelBubble && (t.cancelBubble = !0)));
17269
17269
  }
17270
17270
  }
17271
17271
  function Xb(t, e) {
@@ -17275,15 +17275,15 @@ function Xb(t, e) {
17275
17275
  if ((r === 93 || r === 224) && (r = 91), Vt.indexOf(r) === -1 && r !== 229 && Vt.push(r), ["ctrlKey", "altKey", "shiftKey", "metaKey"].forEach((a) => {
17276
17276
  const l = np[a];
17277
17277
  t[a] && Vt.indexOf(l) === -1 ? Vt.push(l) : !t[a] && Vt.indexOf(l) > -1 ? Vt.splice(Vt.indexOf(l), 1) : a === "metaKey" && t[a] && Vt.length === 3 && (t.ctrlKey || t.shiftKey || t.altKey || (Vt = Vt.slice(Vt.indexOf(l))));
17278
- }), r in zn) {
17279
- zn[r] = !0;
17278
+ }), r in Fn) {
17279
+ Fn[r] = !0;
17280
17280
  for (const a in Oo)
17281
17281
  Oo[a] === r && (Kr[a] = !0);
17282
17282
  if (!n) return;
17283
17283
  }
17284
- for (const a in zn)
17285
- Object.prototype.hasOwnProperty.call(zn, a) && (zn[a] = t[np[a]]);
17286
- t.getModifierState && !(t.altKey && !t.ctrlKey) && t.getModifierState("AltGraph") && (Vt.indexOf(17) === -1 && Vt.push(17), Vt.indexOf(18) === -1 && Vt.push(18), zn[17] = !0, zn[18] = !0);
17284
+ for (const a in Fn)
17285
+ Object.prototype.hasOwnProperty.call(Fn, a) && (Fn[a] = t[np[a]]);
17286
+ t.getModifierState && !(t.altKey && !t.ctrlKey) && t.getModifierState("AltGraph") && (Vt.indexOf(17) === -1 && Vt.push(17), Vt.indexOf(18) === -1 && Vt.push(18), Fn[17] = !0, Fn[18] = !0);
17287
17287
  const o = Jl();
17288
17288
  if (n)
17289
17289
  for (let a = 0; a < n.length; a++)
@@ -17416,7 +17416,7 @@ const Xe = (t, e) => {
17416
17416
  __name: "search-replace",
17417
17417
  setup(t) {
17418
17418
  const { editor: e, searchReplace: n } = de(), r = se(null), o = se(null);
17419
- Ln(() => {
17419
+ Un(() => {
17420
17420
  r.value = document.querySelector("body");
17421
17421
  });
17422
17422
  const { width: i } = s0(), s = {
@@ -17451,15 +17451,15 @@ const Xe = (t, e) => {
17451
17451
  );
17452
17452
  A.scrollIntoView({ behavior: "smooth", block: "center" });
17453
17453
  }
17454
- Kt(
17454
+ Ut(
17455
17455
  () => a.value.trim(),
17456
17456
  (w, S) => {
17457
17457
  w || d(), w !== S && f(!0);
17458
17458
  }
17459
- ), Kt(
17459
+ ), Ut(
17460
17460
  () => l.value.trim(),
17461
17461
  (w, S) => w === S ? null : f()
17462
- ), Kt(
17462
+ ), Ut(
17463
17463
  () => c.value,
17464
17464
  // 修复:使用 getter 函数监听 caseSensitive 的值
17465
17465
  (w, S) => {
@@ -17482,7 +17482,7 @@ const Xe = (t, e) => {
17482
17482
  var w;
17483
17483
  return (w = e.value) == null ? void 0 : w.commands.replaceAll();
17484
17484
  };
17485
- return Kt(
17485
+ return Ut(
17486
17486
  () => n.value,
17487
17487
  (w) => {
17488
17488
  a.value = w ? M0(e.value) : "";
@@ -18957,7 +18957,7 @@ function If(t, e, n) {
18957
18957
  return new t(i, n);
18958
18958
  }
18959
18959
  const QE = typeof console < "u" && console && console.warn || (() => {
18960
- }), ZE = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", qt = {
18960
+ }), ZE = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", Kt = {
18961
18961
  scanner: null,
18962
18962
  parser: null,
18963
18963
  tokenQueue: [],
@@ -18966,32 +18966,32 @@ const QE = typeof console < "u" && console && console.warn || (() => {
18966
18966
  initialized: !1
18967
18967
  };
18968
18968
  function eM() {
18969
- return mr.groups = {}, qt.scanner = null, qt.parser = null, qt.tokenQueue = [], qt.pluginQueue = [], qt.customSchemes = [], qt.initialized = !1, qt;
18969
+ return mr.groups = {}, Kt.scanner = null, Kt.parser = null, Kt.tokenQueue = [], Kt.pluginQueue = [], Kt.customSchemes = [], Kt.initialized = !1, Kt;
18970
18970
  }
18971
18971
  function iv(t, e = !1) {
18972
- if (qt.initialized && QE(`linkifyjs: already initialized - will not register custom scheme "${t}" ${ZE}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
18972
+ if (Kt.initialized && QE(`linkifyjs: already initialized - will not register custom scheme "${t}" ${ZE}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
18973
18973
  throw new Error(`linkifyjs: incorrect scheme format.
18974
18974
  1. Must only contain digits, lowercase ASCII letters or "-"
18975
18975
  2. Cannot start or end with "-"
18976
18976
  3. "-" cannot repeat`);
18977
- qt.customSchemes.push([t, e]);
18977
+ Kt.customSchemes.push([t, e]);
18978
18978
  }
18979
18979
  function tM() {
18980
- qt.scanner = KE(qt.customSchemes);
18981
- for (let t = 0; t < qt.tokenQueue.length; t++)
18982
- qt.tokenQueue[t][1]({
18983
- scanner: qt.scanner
18980
+ Kt.scanner = KE(Kt.customSchemes);
18981
+ for (let t = 0; t < Kt.tokenQueue.length; t++)
18982
+ Kt.tokenQueue[t][1]({
18983
+ scanner: Kt.scanner
18984
18984
  });
18985
- qt.parser = JE(qt.scanner.tokens);
18986
- for (let t = 0; t < qt.pluginQueue.length; t++)
18987
- qt.pluginQueue[t][1]({
18988
- scanner: qt.scanner,
18989
- parser: qt.parser
18985
+ Kt.parser = JE(Kt.scanner.tokens);
18986
+ for (let t = 0; t < Kt.pluginQueue.length; t++)
18987
+ Kt.pluginQueue[t][1]({
18988
+ scanner: Kt.scanner,
18989
+ parser: Kt.parser
18990
18990
  });
18991
- return qt.initialized = !0, qt;
18991
+ return Kt.initialized = !0, Kt;
18992
18992
  }
18993
18993
  function Jm(t) {
18994
- return qt.initialized || tM(), XE(qt.parser.start, t, f5(qt.scanner.start, t));
18994
+ return Kt.initialized || tM(), XE(Kt.parser.start, t, f5(Kt.scanner.start, t));
18995
18995
  }
18996
18996
  Jm.scan = f5;
18997
18997
  function p5(t, e = null, n = null) {
@@ -24600,16 +24600,16 @@ var uO = {
24600
24600
  "op-token": 1,
24601
24601
  spacing: 1,
24602
24602
  textord: 1
24603
- }, Wt = {
24603
+ }, jt = {
24604
24604
  math: {},
24605
24605
  text: {}
24606
24606
  };
24607
24607
  function v(t, e, n, r, o, i) {
24608
- Wt[t][o] = {
24608
+ jt[t][o] = {
24609
24609
  font: e,
24610
24610
  group: n,
24611
24611
  replace: r
24612
- }, i && r && (Wt[t][r] = Wt[t][o]);
24612
+ }, i && r && (jt[t][r] = jt[t][o]);
24613
24613
  }
24614
24614
  var _ = "math", fe = "text", C = "main", F = "ams", Yt = "accent-token", Ee = "bin", dr = "close", qa = "inner", Ve = "mathord", Cn = "op-token", Lr = "open", D0 = "punct", z = "rel", hi = "spacing", W = "textord";
24615
24615
  v(_, C, z, "≡", "\\equiv", !0);
@@ -25340,7 +25340,7 @@ var ru = [
25340
25340
  throw new ye("Unsupported character: " + e);
25341
25341
  }
25342
25342
  }, I0 = function(e, n, r) {
25343
- return Wt[r][e] && Wt[r][e].replace && (e = Wt[r][e].replace), {
25343
+ return jt[r][e] && jt[r][e].replace && (e = jt[r][e].replace), {
25344
25344
  value: e,
25345
25345
  metrics: e1(e, n, r)
25346
25346
  };
@@ -25360,7 +25360,7 @@ var ru = [
25360
25360
  }
25361
25361
  return l;
25362
25362
  }, hO = function(e, n, r, o) {
25363
- return o === void 0 && (o = []), r.font === "boldsymbol" && I0(e, "Main-Bold", n).metrics ? ro(e, "Main-Bold", n, r, o.concat(["mathbf"])) : e === "\\" || Wt[n][e].font === "main" ? ro(e, "Main-Regular", n, r, o) : ro(e, "AMS-Regular", n, r, o.concat(["amsrm"]));
25363
+ return o === void 0 && (o = []), r.font === "boldsymbol" && I0(e, "Main-Bold", n).metrics ? ro(e, "Main-Bold", n, r, o.concat(["mathbf"])) : e === "\\" || jt[n][e].font === "main" ? ro(e, "Main-Regular", n, r, o) : ro(e, "AMS-Regular", n, r, o.concat(["amsrm"]));
25364
25364
  }, pO = function(e, n, r, o, i) {
25365
25365
  return i !== "textord" && I0(e, "Math-BoldItalic", n).metrics ? {
25366
25366
  fontName: "Math-BoldItalic",
@@ -25390,7 +25390,7 @@ var ru = [
25390
25390
  if (r === "mathord")
25391
25391
  return ro(i, "Math-Italic", o, n, s.concat(["mathnormal"]));
25392
25392
  if (r === "textord") {
25393
- var y = Wt[o][i] && Wt[o][i].font;
25393
+ var y = jt[o][i] && jt[o][i].font;
25394
25394
  if (y === "ams") {
25395
25395
  var g = ou("amsrm", n.fontWeight, n.fontShape);
25396
25396
  return ro(i, g, o, n, s.concat("amsrm", n.fontWeight, n.fontShape));
@@ -25981,7 +25981,7 @@ var ge = {
25981
25981
  SpaceNode: DO,
25982
25982
  newDocumentFragment: j5
25983
25983
  }, Zr = function(e, n, r) {
25984
- return Wt[n][e] && Wt[n][e].replace && e.charCodeAt(0) !== 55349 && !(P5.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = Wt[n][e].replace), new ge.TextNode(e);
25984
+ return jt[n][e] && jt[n][e].replace && e.charCodeAt(0) !== 55349 && !(P5.hasOwnProperty(e) && r && (r.fontFamily && r.fontFamily.slice(4, 6) === "tt" || r.font && r.font.slice(4, 6) === "tt")) && (e = jt[n][e].replace), new ge.TextNode(e);
25985
25985
  }, r1 = function(e) {
25986
25986
  return e.length === 1 ? e[0] : new ge.MathNode("mrow", e);
25987
25987
  }, o1 = function(e, n) {
@@ -26018,7 +26018,7 @@ var ge = {
26018
26018
  var i = e.text;
26019
26019
  if (He.contains(["\\imath", "\\jmath"], i))
26020
26020
  return null;
26021
- Wt[o][i] && Wt[o][i].replace && (i = Wt[o][i].replace);
26021
+ jt[o][i] && jt[o][i].replace && (i = jt[o][i].replace);
26022
26022
  var s = ee.fontMap[r].fontName;
26023
26023
  return e1(i, s, o) ? ee.fontMap[r].variant : null;
26024
26024
  }, xr = function(e, n, r) {
@@ -27116,7 +27116,7 @@ Ae({
27116
27116
  }
27117
27117
  });
27118
27118
  var pl = function(e, n, r) {
27119
- var o = Wt.math[e] && Wt.math[e].replace, i = e1(o || e, n, r);
27119
+ var o = jt.math[e] && jt.math[e].replace, i = e1(o || e, n, r);
27120
27120
  if (!i)
27121
27121
  throw new Error("Unsupported symbol " + e + " and font size " + n + ".");
27122
27122
  return i;
@@ -30717,7 +30717,7 @@ M("\\errmessage", (t) => {
30717
30717
  });
30718
30718
  M("\\show", (t) => {
30719
30719
  var e = t.popToken(), n = e.text;
30720
- return console.log(e, t.macros.get(n), Bi[n], Wt.math[n], Wt.text[n]), "";
30720
+ return console.log(e, t.macros.get(n), Bi[n], jt.math[n], jt.text[n]), "";
30721
30721
  });
30722
30722
  M("\\bgroup", "{");
30723
30723
  M("\\egroup", "}");
@@ -30850,7 +30850,7 @@ var qv = {
30850
30850
  };
30851
30851
  M("\\dots", function(t) {
30852
30852
  var e = "\\dotso", n = t.expandAfterFuture().text;
30853
- return n in qv ? e = qv[n] : (n.slice(0, 4) === "\\not" || n in Wt.math && He.contains(["bin", "rel"], Wt.math[n].group)) && (e = "\\dotsb"), e;
30853
+ return n in qv ? e = qv[n] : (n.slice(0, 4) === "\\not" || n in jt.math && He.contains(["bin", "rel"], jt.math[n].group)) && (e = "\\dotsb"), e;
30854
30854
  });
30855
30855
  var m1 = {
30856
30856
  // \rightdelim@ checks for the following:
@@ -31455,7 +31455,7 @@ class xD {
31455
31455
  * `implicitCommands`.
31456
31456
  */
31457
31457
  isDefined(e) {
31458
- return this.macros.has(e) || Bi.hasOwnProperty(e) || Wt.math.hasOwnProperty(e) || Wt.text.hasOwnProperty(e) || S6.hasOwnProperty(e);
31458
+ return this.macros.has(e) || Bi.hasOwnProperty(e) || jt.math.hasOwnProperty(e) || jt.text.hasOwnProperty(e) || S6.hasOwnProperty(e);
31459
31459
  }
31460
31460
  /**
31461
31461
  * Determine whether a command is expandable.
@@ -32472,13 +32472,13 @@ class P0 {
32472
32472
  star: o
32473
32473
  };
32474
32474
  }
32475
- Gv.hasOwnProperty(n[0]) && !Wt[this.mode][n[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + n[0] + '" used in math mode', e), n = Gv[n[0]] + n.slice(1));
32475
+ Gv.hasOwnProperty(n[0]) && !jt[this.mode][n[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + n[0] + '" used in math mode', e), n = Gv[n[0]] + n.slice(1));
32476
32476
  var i = vD.exec(n);
32477
32477
  i && (n = n.substring(0, i.index), n === "i" ? n = "ı" : n === "j" && (n = "ȷ"));
32478
32478
  var s;
32479
- if (Wt[this.mode][n]) {
32479
+ if (jt[this.mode][n]) {
32480
32480
  this.settings.strict && this.mode === "math" && pp.indexOf(n) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + n[0] + '" used in math mode', e);
32481
- var a = Wt[this.mode][n].group, l = Cr.range(e), c;
32481
+ var a = jt[this.mode][n].group, l = Cr.range(e), c;
32482
32482
  if (uO.hasOwnProperty(a)) {
32483
32483
  var u = a;
32484
32484
  c = {
@@ -32697,11 +32697,11 @@ const TD = (t) => {
32697
32697
  }, AD = (t, e) => t.doc.resolve(e).parent.type.name !== "codeBlock", E6 = it.create({ name: "Mathematics", addOptions: () => ({ regex: /\$([^\$]*)\$/gi, katexOptions: void 0, shouldRender: AD }), addProseMirrorPlugins() {
32698
32698
  return [TD({ ...this.options, editor: this.editor })];
32699
32699
  } });
32700
- var Bn = [];
32700
+ var Rn = [];
32701
32701
  for (var Jf = 0; Jf < 256; ++Jf)
32702
- Bn.push((Jf + 256).toString(16).slice(1));
32702
+ Rn.push((Jf + 256).toString(16).slice(1));
32703
32703
  function ED(t, e = 0) {
32704
- return (Bn[t[e + 0]] + Bn[t[e + 1]] + Bn[t[e + 2]] + Bn[t[e + 3]] + "-" + Bn[t[e + 4]] + Bn[t[e + 5]] + "-" + Bn[t[e + 6]] + Bn[t[e + 7]] + "-" + Bn[t[e + 8]] + Bn[t[e + 9]] + "-" + Bn[t[e + 10]] + Bn[t[e + 11]] + Bn[t[e + 12]] + Bn[t[e + 13]] + Bn[t[e + 14]] + Bn[t[e + 15]]).toLowerCase();
32704
+ return (Rn[t[e + 0]] + Rn[t[e + 1]] + Rn[t[e + 2]] + Rn[t[e + 3]] + "-" + Rn[t[e + 4]] + Rn[t[e + 5]] + "-" + Rn[t[e + 6]] + Rn[t[e + 7]] + "-" + Rn[t[e + 8]] + Rn[t[e + 9]] + "-" + Rn[t[e + 10]] + Rn[t[e + 11]] + Rn[t[e + 12]] + Rn[t[e + 13]] + Rn[t[e + 14]] + Rn[t[e + 15]]).toLowerCase();
32705
32705
  }
32706
32706
  var cu, MD = new Uint8Array(16);
32707
32707
  function ND() {
@@ -34167,11 +34167,11 @@ function hL(t, e) {
34167
34167
  if (re.content) {
34168
34168
  var Ie = "aria-" + re.content, qe = E.id, yt = aa(x.props.triggerTarget || t);
34169
34169
  yt.forEach(function(mt) {
34170
- var Rn = mt.getAttribute(Ie);
34170
+ var Ln = mt.getAttribute(Ie);
34171
34171
  if (x.state.isVisible)
34172
- mt.setAttribute(Ie, Rn ? Rn + " " + qe : qe);
34172
+ mt.setAttribute(Ie, Ln ? Ln + " " + qe : qe);
34173
34173
  else {
34174
- var hn = Rn && Rn.replace(qe, "").trim();
34174
+ var hn = Ln && Ln.replace(qe, "").trim();
34175
34175
  hn ? mt.setAttribute(Ie, hn) : mt.removeAttribute(Ie);
34176
34176
  }
34177
34177
  });
@@ -34289,7 +34289,7 @@ function hL(t, e) {
34289
34289
  var Ie = re.target, qe = B().contains(Ie) || E.contains(Ie);
34290
34290
  if (!(re.type === "mousemove" && qe)) {
34291
34291
  var yt = Me().concat(E).map(function(mt) {
34292
- var Rn, hn = mt._tippy, gi = (Rn = hn.popperInstance) == null ? void 0 : Rn.state;
34292
+ var Ln, hn = mt._tippy, gi = (Ln = hn.popperInstance) == null ? void 0 : Ln.state;
34293
34293
  return gi ? {
34294
34294
  popperRect: mt.getBoundingClientRect(),
34295
34295
  popperState: gi,
@@ -34317,7 +34317,7 @@ function hL(t, e) {
34317
34317
  }
34318
34318
  function H() {
34319
34319
  U();
34320
- var re = x.props, Ie = re.popperOptions, qe = re.placement, yt = re.offset, mt = re.getReferenceClientRect, Rn = re.moveTransition, hn = T() ? Cp(E).arrow : null, gi = mt ? {
34320
+ var re = x.props, Ie = re.popperOptions, qe = re.placement, yt = re.offset, mt = re.getReferenceClientRect, Ln = re.moveTransition, hn = T() ? Cp(E).arrow : null, gi = mt ? {
34321
34321
  getBoundingClientRect: mt,
34322
34322
  contextElement: mt.contextElement || B()
34323
34323
  } : t, Pc = {
@@ -34357,7 +34357,7 @@ function hL(t, e) {
34357
34357
  }, {
34358
34358
  name: "computeStyles",
34359
34359
  options: {
34360
- adaptive: !Rn
34360
+ adaptive: !Ln
34361
34361
  }
34362
34362
  }, Pc];
34363
34363
  T() && hn && mo.push({
@@ -34441,7 +34441,7 @@ function hL(t, e) {
34441
34441
  var re = x.state.isVisible, Ie = x.state.isDestroyed, qe = !x.state.isEnabled, yt = xo.isTouch && !x.props.touch, mt = Xf(x.props.duration, 0, Ar.duration);
34442
34442
  if (!(re || Ie || qe || yt) && !B().hasAttribute("disabled") && (q("onShow", [x], !1), x.props.onShow(x) !== !1)) {
34443
34443
  if (x.state.isVisible = !0, T() && (E.style.visibility = "visible"), K(), et(), x.state.isMounted || (E.style.transition = "none"), T()) {
34444
- var Rn = N(), hn = Rn.box, gi = Rn.content;
34444
+ var Ln = N(), hn = Ln.box, gi = Ln.content;
34445
34445
  Qf([hn, gi], 0);
34446
34446
  }
34447
34447
  f = function() {
@@ -34463,8 +34463,8 @@ function hL(t, e) {
34463
34463
  var re = !x.state.isVisible, Ie = x.state.isDestroyed, qe = !x.state.isEnabled, yt = Xf(x.props.duration, 1, Ar.duration);
34464
34464
  if (!(re || Ie || qe) && (q("onHide", [x], !1), x.props.onHide(x) !== !1)) {
34465
34465
  if (x.state.isVisible = !1, x.state.isShown = !1, c = !1, s = !1, T() && (E.style.visibility = "hidden"), Ne(), Mt(), K(!0), T()) {
34466
- var mt = N(), Rn = mt.box, hn = mt.content;
34467
- x.props.animation && (Qf([Rn, hn], yt), dy([Rn, hn], "hidden"));
34466
+ var mt = N(), Ln = mt.box, hn = mt.content;
34467
+ x.props.animation && (Qf([Ln, hn], yt), dy([Ln, hn], "hidden"));
34468
34468
  }
34469
34469
  le(), ve(), x.props.animation ? T() && St(yt, x.unmount) : x.unmount();
34470
34470
  }
@@ -34769,7 +34769,7 @@ const Z6 = Io({
34769
34769
  },
34770
34770
  setup(t, { slots: e }) {
34771
34771
  const n = se(null);
34772
- return Ln(() => {
34772
+ return Un(() => {
34773
34773
  const { updateDelay: r, editor: o, pluginKey: i, shouldShow: s, tippyOptions: a } = t;
34774
34774
  o.registerPlugin(X6({
34775
34775
  updateDelay: r,
@@ -34784,7 +34784,7 @@ const Z6 = Io({
34784
34784
  o.unregisterPlugin(r);
34785
34785
  }), () => {
34786
34786
  var r;
34787
- return Ut("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
34787
+ return Wt("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
34788
34788
  };
34789
34789
  }
34790
34790
  });
@@ -34861,7 +34861,7 @@ const A1 = Io({
34861
34861
  }), { rootEl: e };
34862
34862
  },
34863
34863
  render() {
34864
- return Ut("div", {
34864
+ return Wt("div", {
34865
34865
  ref: (t) => {
34866
34866
  this.rootEl = t;
34867
34867
  }
@@ -34892,7 +34892,7 @@ Io({
34892
34892
  },
34893
34893
  setup(t, { slots: e }) {
34894
34894
  const n = se(null);
34895
- return Ln(() => {
34895
+ return Un(() => {
34896
34896
  const { pluginKey: r, editor: o, tippyOptions: i, shouldShow: s } = t;
34897
34897
  o.registerPlugin(Q6({
34898
34898
  pluginKey: r,
@@ -34906,7 +34906,7 @@ Io({
34906
34906
  o.unregisterPlugin(r);
34907
34907
  }), () => {
34908
34908
  var r;
34909
- return Ut("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
34909
+ return Wt("div", { ref: n }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
34910
34910
  };
34911
34911
  }
34912
34912
  });
@@ -34919,7 +34919,7 @@ const Hd = Io({
34919
34919
  }
34920
34920
  },
34921
34921
  render() {
34922
- return Ut(this.as, {
34922
+ return Wt(this.as, {
34923
34923
  style: {
34924
34924
  whiteSpace: "pre-wrap"
34925
34925
  },
@@ -34937,7 +34937,7 @@ const Hd = Io({
34937
34937
  inject: ["onDragStart", "decorationClasses"],
34938
34938
  render() {
34939
34939
  var t, e;
34940
- return Ut(this.as, {
34940
+ return Wt(this.as, {
34941
34941
  // @ts-ignore
34942
34942
  class: this.decorationClasses,
34943
34943
  style: {
@@ -34961,7 +34961,7 @@ class gL {
34961
34961
  return !((n = (e = this.renderedComponent.vNode) === null || e === void 0 ? void 0 : e.component) === null || n === void 0) && n.exposed ? this.renderedComponent.vNode.component.exposed : (o = (r = this.renderedComponent.vNode) === null || r === void 0 ? void 0 : r.component) === null || o === void 0 ? void 0 : o.proxy;
34962
34962
  }
34963
34963
  renderComponent() {
34964
- let e = Ut(this.component, this.props);
34964
+ let e = Wt(this.component, this.props);
34965
34965
  return this.editor.appContext && (e.appContext = this.editor.appContext), typeof document < "u" && this.el && sg(e, this.el), { vNode: e, destroy: () => {
34966
34966
  this.el && sg(null, this.el), this.el = null, e = null;
34967
34967
  }, el: this.el ? this.el.firstElementChild : null };
@@ -35526,7 +35526,7 @@ const vL = {
35526
35526
  o.value = !0, i.value = !1;
35527
35527
  }
35528
35528
  }
35529
- return Ln(() => {
35529
+ return Un(() => {
35530
35530
  var c;
35531
35531
  r.value = d_(n.value, {
35532
35532
  readOnly: (c = e.value.document) == null ? void 0 : c.readOnly,
@@ -35552,7 +35552,7 @@ const vL = {
35552
35552
  }), Ir(() => {
35553
35553
  var c;
35554
35554
  (c = r.value) == null || c.remove();
35555
- }), Kt(
35555
+ }), Ut(
35556
35556
  () => {
35557
35557
  var c;
35558
35558
  return (c = e.value.document) == null ? void 0 : c.readOnly;
@@ -35563,7 +35563,7 @@ const vL = {
35563
35563
  readOnly: c
35564
35564
  });
35565
35565
  }
35566
- ), Kt(
35566
+ ), Ut(
35567
35567
  () => [t.node.attrs.language, t.node.attrs.lineNumbers, t.node.attrs.wordWrap],
35568
35568
  () => {
35569
35569
  var c;
@@ -38964,7 +38964,7 @@ function $B(t, e, n) {
38964
38964
  return !1;
38965
38965
  return !0;
38966
38966
  }
38967
- var jt = class Ko extends ze {
38967
+ var qt = class Ko extends ze {
38968
38968
  // A table selection is identified by its anchor and head cells. The
38969
38969
  // positions given to this constructor should point _before_ two
38970
38970
  // cells in the same table. They may be the same, to select a single
@@ -39128,8 +39128,8 @@ var jt = class Ko extends ze {
39128
39128
  return new PB(this.$anchorCell.pos, this.$headCell.pos);
39129
39129
  }
39130
39130
  };
39131
- jt.prototype.visible = !1;
39132
- ze.jsonID("cell", jt);
39131
+ qt.prototype.visible = !1;
39132
+ ze.jsonID("cell", qt);
39133
39133
  var PB = class yw {
39134
39134
  constructor(e, n) {
39135
39135
  this.anchor = e, this.head = n;
@@ -39139,11 +39139,11 @@ var PB = class yw {
39139
39139
  }
39140
39140
  resolve(e) {
39141
39141
  const n = e.resolve(this.anchor), r = e.resolve(this.head);
39142
- return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && N1(n, r) ? new jt(n, r) : ze.near(r, 1);
39142
+ return n.parent.type.spec.tableRole == "row" && r.parent.type.spec.tableRole == "row" && n.index() < n.parent.childCount && r.index() < r.parent.childCount && N1(n, r) ? new qt(n, r) : ze.near(r, 1);
39143
39143
  }
39144
39144
  };
39145
39145
  function FB(t) {
39146
- if (!(t.selection instanceof jt)) return null;
39146
+ if (!(t.selection instanceof qt)) return null;
39147
39147
  const e = [];
39148
39148
  return t.selection.forEachCell((n, r) => {
39149
39149
  e.push(
@@ -39183,13 +39183,13 @@ function VB(t, e, n) {
39183
39183
  let i, s;
39184
39184
  if (r instanceof Pe && (s = r.node.type.spec.tableRole)) {
39185
39185
  if (s == "cell" || s == "header_cell")
39186
- i = jt.create(o, r.from);
39186
+ i = qt.create(o, r.from);
39187
39187
  else if (s == "row") {
39188
39188
  const a = o.resolve(r.from + 1);
39189
- i = jt.rowSelection(a, a);
39189
+ i = qt.rowSelection(a, a);
39190
39190
  } else if (!n) {
39191
39191
  const a = cn.get(r.node), l = r.from + 1, c = l + a.map[a.width * a.height - 1];
39192
- i = jt.create(o, l + 1, c);
39192
+ i = qt.create(o, l + 1, c);
39193
39193
  }
39194
39194
  } else r instanceof $e && zB(r) ? i = $e.create(o, r.from) : r instanceof $e && HB(r) && (i = $e.create(o, r.$from.start(), r.$from.end()));
39195
39195
  return i && (e || (e = t.tr)).setSelection(i), e;
@@ -39275,7 +39275,7 @@ function WB(t, e, n, r) {
39275
39275
  }
39276
39276
  function Po(t) {
39277
39277
  const e = t.selection, n = z0(t), r = n.node(-1), o = n.start(-1), i = cn.get(r);
39278
- return { ...e instanceof jt ? i.rectBetween(
39278
+ return { ...e instanceof qt ? i.rectBetween(
39279
39279
  e.$anchorCell.pos - o,
39280
39280
  e.$headCell.pos - o
39281
39281
  ) : i.findCell(n.pos - o), tableStart: o, map: i, table: r };
@@ -39451,7 +39451,7 @@ function e$({ width: t, height: e, map: n }, r) {
39451
39451
  }
39452
39452
  function Ay(t, e) {
39453
39453
  const n = t.selection;
39454
- if (!(n instanceof jt) || n.$anchorCell.pos == n.$headCell.pos)
39454
+ if (!(n instanceof qt) || n.$anchorCell.pos == n.$headCell.pos)
39455
39455
  return !1;
39456
39456
  const r = Po(t), { map: o } = r;
39457
39457
  if (e$(o, r)) return !1;
@@ -39484,7 +39484,7 @@ function Ay(t, e) {
39484
39484
  i.replaceWith(d + r.tableStart, u + r.tableStart, a);
39485
39485
  }
39486
39486
  i.setSelection(
39487
- new jt(i.doc.resolve(l + r.tableStart))
39487
+ new qt(i.doc.resolve(l + r.tableStart))
39488
39488
  ), e(i);
39489
39489
  }
39490
39490
  return !0;
@@ -39498,7 +39498,7 @@ function t$(t) {
39498
39498
  var r;
39499
39499
  const o = e.selection;
39500
39500
  let i, s;
39501
- if (o instanceof jt) {
39501
+ if (o instanceof qt) {
39502
39502
  if (o.$anchorCell.pos != o.$headCell.pos) return !1;
39503
39503
  i = o.$anchorCell.nodeAfter, s = o.$anchorCell.pos;
39504
39504
  } else {
@@ -39533,8 +39533,8 @@ function t$(t) {
39533
39533
  s,
39534
39534
  t({ node: i, row: u.top, col: u.left }),
39535
39535
  l[0]
39536
- ), o instanceof jt && d.setSelection(
39537
- new jt(
39536
+ ), o instanceof qt && d.setSelection(
39537
+ new qt(
39538
39538
  d.doc.resolve(o.$anchorCell.pos),
39539
39539
  f ? d.doc.resolve(f) : void 0
39540
39540
  )
@@ -39550,7 +39550,7 @@ function n$(t, e) {
39550
39550
  if (o.nodeAfter.attrs[t] === e) return !1;
39551
39551
  if (r) {
39552
39552
  const i = n.tr;
39553
- n.selection instanceof jt ? n.selection.forEachCell((s, a) => {
39553
+ n.selection instanceof qt ? n.selection.forEachCell((s, a) => {
39554
39554
  s.attrs[t] !== e && i.setNodeMarkup(a, null, {
39555
39555
  ...s.attrs,
39556
39556
  [t]: e
@@ -39695,7 +39695,7 @@ function s$(t, e) {
39695
39695
  }
39696
39696
  function pu(t, e) {
39697
39697
  const n = t.selection;
39698
- if (!(n instanceof jt)) return !1;
39698
+ if (!(n instanceof qt)) return !1;
39699
39699
  if (e) {
39700
39700
  const r = t.tr, o = Qn(t.schema).cell.createAndFill().content;
39701
39701
  n.forEachCell((i, s) => {
@@ -39898,7 +39898,7 @@ function Iy(t, e, n, r, o) {
39898
39898
  );
39899
39899
  }
39900
39900
  h(), d.setSelection(
39901
- new jt(
39901
+ new qt(
39902
39902
  d.doc.resolve(n + s.positionAt(a, l, i)),
39903
39903
  d.doc.resolve(n + s.positionAt(u - 1, c - 1, i))
39904
39904
  )
@@ -39925,7 +39925,7 @@ function mu(t, e) {
39925
39925
  return (n, r, o) => {
39926
39926
  if (!o) return !1;
39927
39927
  const i = n.selection;
39928
- if (i instanceof jt)
39928
+ if (i instanceof qt)
39929
39929
  return Ru(
39930
39930
  n,
39931
39931
  r,
@@ -39952,30 +39952,30 @@ function gu(t, e) {
39952
39952
  if (!o) return !1;
39953
39953
  const i = n.selection;
39954
39954
  let s;
39955
- if (i instanceof jt)
39955
+ if (i instanceof qt)
39956
39956
  s = i;
39957
39957
  else {
39958
39958
  const l = Sw(o, t, e);
39959
39959
  if (l == null) return !1;
39960
- s = new jt(n.doc.resolve(l));
39960
+ s = new qt(n.doc.resolve(l));
39961
39961
  }
39962
39962
  const a = bw(s.$headCell, t, e);
39963
39963
  return a ? Ru(
39964
39964
  n,
39965
39965
  r,
39966
- new jt(s.$anchorCell, a)
39966
+ new qt(s.$anchorCell, a)
39967
39967
  ) : !1;
39968
39968
  };
39969
39969
  }
39970
39970
  function f$(t, e) {
39971
39971
  const n = t.state.doc, r = Ga(n.resolve(e));
39972
- return r ? (t.dispatch(t.state.tr.setSelection(new jt(r))), !0) : !1;
39972
+ return r ? (t.dispatch(t.state.tr.setSelection(new qt(r))), !0) : !1;
39973
39973
  }
39974
39974
  function h$(t, e, n) {
39975
39975
  if (!ho(t.state)) return !1;
39976
39976
  let r = a$(n);
39977
39977
  const o = t.state.selection;
39978
- if (o instanceof jt) {
39978
+ if (o instanceof qt) {
39979
39979
  r || (r = {
39980
39980
  width: 1,
39981
39981
  height: 1,
@@ -40007,7 +40007,7 @@ function p$(t, e) {
40007
40007
  if (e.ctrlKey || e.metaKey) return;
40008
40008
  const r = Ly(t, e.target);
40009
40009
  let o;
40010
- if (e.shiftKey && t.state.selection instanceof jt)
40010
+ if (e.shiftKey && t.state.selection instanceof qt)
40011
40011
  i(t.state.selection.$anchorCell, e), e.preventDefault();
40012
40012
  else if (e.shiftKey && r && (o = Ga(t.state.selection.$anchor)) != null && ((n = ih(t, e)) == null ? void 0 : n.pos) != o.pos)
40013
40013
  i(o, e), e.preventDefault();
@@ -40019,7 +40019,7 @@ function p$(t, e) {
40019
40019
  if (!u || !N1(l, u))
40020
40020
  if (d) u = l;
40021
40021
  else return;
40022
- const f = new jt(l, u);
40022
+ const f = new qt(l, u);
40023
40023
  if (d || !t.state.selection.eq(f)) {
40024
40024
  const h = t.state.tr.setSelection(f);
40025
40025
  d && h.setMeta(Ni, l.pos), t.dispatch(h);
@@ -40478,7 +40478,7 @@ function Tw(t, e, n, r, o) {
40478
40478
  return i.table.createChecked(null, l);
40479
40479
  }
40480
40480
  function N$(t) {
40481
- return t instanceof jt;
40481
+ return t instanceof qt;
40482
40482
  }
40483
40483
  function sh({ editor: t }) {
40484
40484
  const { selection: e } = t.state;
@@ -40642,7 +40642,7 @@ const Aw = je.create({
40642
40642
  fixTables: () => ({ state: t, dispatch: e }) => (e && _w(t), !0),
40643
40643
  setCellSelection: (t) => ({ tr: e, dispatch: n }) => {
40644
40644
  if (n) {
40645
- const r = jt.create(
40645
+ const r = qt.create(
40646
40646
  e.doc,
40647
40647
  t.anchorCell,
40648
40648
  t.headCell
@@ -40843,11 +40843,11 @@ const Aw = je.create({
40843
40843
  }
40844
40844
  };
40845
40845
  }
40846
- }), $n = [];
40846
+ }), Bn = [];
40847
40847
  for (let t = 0; t < 256; ++t)
40848
- $n.push((t + 256).toString(16).slice(1));
40848
+ Bn.push((t + 256).toString(16).slice(1));
40849
40849
  function D$(t, e = 0) {
40850
- return ($n[t[e + 0]] + $n[t[e + 1]] + $n[t[e + 2]] + $n[t[e + 3]] + "-" + $n[t[e + 4]] + $n[t[e + 5]] + "-" + $n[t[e + 6]] + $n[t[e + 7]] + "-" + $n[t[e + 8]] + $n[t[e + 9]] + "-" + $n[t[e + 10]] + $n[t[e + 11]] + $n[t[e + 12]] + $n[t[e + 13]] + $n[t[e + 14]] + $n[t[e + 15]]).toLowerCase();
40850
+ return (Bn[t[e + 0]] + Bn[t[e + 1]] + Bn[t[e + 2]] + Bn[t[e + 3]] + "-" + Bn[t[e + 4]] + Bn[t[e + 5]] + "-" + Bn[t[e + 6]] + Bn[t[e + 7]] + "-" + Bn[t[e + 8]] + Bn[t[e + 9]] + "-" + Bn[t[e + 10]] + Bn[t[e + 11]] + Bn[t[e + 12]] + Bn[t[e + 13]] + Bn[t[e + 14]] + Bn[t[e + 15]]).toLowerCase();
40851
40851
  }
40852
40852
  let ah;
40853
40853
  const I$ = new Uint8Array(16);
@@ -42133,7 +42133,7 @@ var Nw = { exports: {} };
42133
42133
  function mt(O, V, R, X) {
42134
42134
  O.executeSql("CREATE TABLE IF NOT EXISTS " + V.storeName + " (id INTEGER PRIMARY KEY, key unique, value)", [], R, X);
42135
42135
  }
42136
- function Rn(O) {
42136
+ function Ln(O) {
42137
42137
  var V = this, R = {
42138
42138
  db: null
42139
42139
  };
@@ -42373,7 +42373,7 @@ var Nw = { exports: {} };
42373
42373
  }
42374
42374
  var s7 = {
42375
42375
  _driver: "webSQLStorage",
42376
- _initStorage: Rn,
42376
+ _initStorage: Ln,
42377
42377
  _support: on(),
42378
42378
  iterate: Pc,
42379
42379
  getItem: gi,
@@ -43265,7 +43265,7 @@ const qd = /* @__PURE__ */ O1(Y$), J$ = { class: "smart-shortcuts-drawer-header
43265
43265
  content: "",
43266
43266
  extensions: [...Ip({ history: e.value.extendRead })]
43267
43267
  }), u = Je(() => [...l.value].sort((h, p) => p.value.time - h.value.time));
43268
- Kt(a, async (h) => {
43268
+ Ut(a, async (h) => {
43269
43269
  var p;
43270
43270
  h && (await o.removeItemsByVersionId((p = e.value.history) == null ? void 0 : p.versionId), l.value = await o.getAllItems(), l.value.length > 0 && d(u.value[0]));
43271
43271
  });
@@ -43698,7 +43698,7 @@ const qd = /* @__PURE__ */ O1(Y$), J$ = { class: "smart-shortcuts-drawer-header
43698
43698
  setup(t, { emit: e }) {
43699
43699
  const n = t, r = e, o = se(!1), { container: i, editor: s, blockMenu: a, options: l } = de(), c = se(!1), u = se(!1), d = se(""), f = se("");
43700
43700
  function h(g) {
43701
- return () => Ut("i", { class: `${g}`, style: "font-size: 16px;" });
43701
+ return () => Wt("i", { class: `${g}`, style: "font-size: 16px;" });
43702
43702
  }
43703
43703
  function p(g) {
43704
43704
  try {
@@ -43973,7 +43973,7 @@ const qd = /* @__PURE__ */ O1(Y$), J$ = { class: "smart-shortcuts-drawer-header
43973
43973
  {
43974
43974
  key: "insertOptions",
43975
43975
  type: "render",
43976
- render: () => Ut(uP, {
43976
+ render: () => Wt(uP, {
43977
43977
  originType: "lineHead",
43978
43978
  node: n.node,
43979
43979
  pos: n.pos,
@@ -50054,30 +50054,30 @@ const aH = () => new sH(), lH = (t) => {
50054
50054
  }, dH = (t, e) => {
50055
50055
  const n = t.cbuf.length;
50056
50056
  n - t.cpos < e && (t.bufs.push(new Uint8Array(t.cbuf.buffer, 0, t.cpos)), t.cbuf = new Uint8Array(n0(n, e) * 2), t.cpos = 0);
50057
- }, Fn = (t, e) => {
50057
+ }, Pn = (t, e) => {
50058
50058
  const n = t.cbuf.length;
50059
50059
  t.cpos === n && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(n * 2), t.cpos = 0), t.cbuf[t.cpos++] = e;
50060
50060
  }, _c = (t, e) => {
50061
50061
  for (; e > Rl; )
50062
- Fn(t, yc | Rl & e), e = bc(e / 128);
50063
- Fn(t, Rl & e);
50062
+ Pn(t, yc | Rl & e), e = bc(e / 128);
50063
+ Pn(t, Rl & e);
50064
50064
  }, fH = (t, e) => {
50065
50065
  const n = jz(e);
50066
- for (n && (e = -e), Fn(t, (e > p4 ? yc : 0) | (n ? qz : 0) | p4 & e), e = bc(e / 64); e > 0; )
50067
- Fn(t, (e > Rl ? yc : 0) | Rl & e), e = bc(e / 128);
50066
+ for (n && (e = -e), Pn(t, (e > p4 ? yc : 0) | (n ? qz : 0) | p4 & e), e = bc(e / 64); e > 0; )
50067
+ Pn(t, (e > Rl ? yc : 0) | Rl & e), e = bc(e / 128);
50068
50068
  }, jp = new Uint8Array(3e4), hH = jp.length / 3, pH = (t, e) => {
50069
50069
  if (e.length < hH) {
50070
50070
  const n = wc.encodeInto(e, jp).written || 0;
50071
50071
  _c(t, n);
50072
50072
  for (let r = 0; r < n; r++)
50073
- Fn(t, jp[r]);
50073
+ Pn(t, jp[r]);
50074
50074
  } else
50075
50075
  I8(t, iH(e));
50076
50076
  }, mH = (t, e) => {
50077
50077
  const n = unescape(encodeURIComponent(e)), r = n.length;
50078
50078
  _c(t, r);
50079
50079
  for (let o = 0; o < r; o++)
50080
- Fn(
50080
+ Pn(
50081
50081
  t,
50082
50082
  /** @type {number} */
50083
50083
  n.codePointAt(o)
@@ -50098,25 +50098,25 @@ wc.encodeInto ? pH : mH, gH = (t, e) => {
50098
50098
  ), b4 = new DataView(new ArrayBuffer(4)), wH = (t) => (b4.setFloat32(0, t), b4.getFloat32(0) === t), qp = (t, e) => {
50099
50099
  switch (typeof e) {
50100
50100
  case "string":
50101
- Fn(t, 119), g4(t, e);
50101
+ Pn(t, 119), g4(t, e);
50102
50102
  break;
50103
50103
  case "number":
50104
- Yz(e) && Wz(e) <= Gz ? (Fn(t, 125), fH(t, e)) : wH(e) ? (Fn(t, 124), bH(t, e)) : (Fn(t, 123), vH(t, e));
50104
+ Yz(e) && Wz(e) <= Gz ? (Pn(t, 125), fH(t, e)) : wH(e) ? (Pn(t, 124), bH(t, e)) : (Pn(t, 123), vH(t, e));
50105
50105
  break;
50106
50106
  case "bigint":
50107
- Fn(t, 122), yH(t, e);
50107
+ Pn(t, 122), yH(t, e);
50108
50108
  break;
50109
50109
  case "object":
50110
50110
  if (e === null)
50111
- Fn(t, 126);
50111
+ Pn(t, 126);
50112
50112
  else if (Xz(e)) {
50113
- Fn(t, 117), _c(t, e.length);
50113
+ Pn(t, 117), _c(t, e.length);
50114
50114
  for (let n = 0; n < e.length; n++)
50115
50115
  qp(t, e[n]);
50116
50116
  } else if (e instanceof Uint8Array)
50117
- Fn(t, 116), I8(t, e);
50117
+ Pn(t, 116), I8(t, e);
50118
50118
  else {
50119
- Fn(t, 118);
50119
+ Pn(t, 118);
50120
50120
  const n = Object.keys(e);
50121
50121
  _c(t, n.length);
50122
50122
  for (let r = 0; r < n.length; r++) {
@@ -50126,10 +50126,10 @@ wc.encodeInto ? pH : mH, gH = (t, e) => {
50126
50126
  }
50127
50127
  break;
50128
50128
  case "boolean":
50129
- Fn(t, e ? 120 : 121);
50129
+ Pn(t, e ? 120 : 121);
50130
50130
  break;
50131
50131
  default:
50132
- Fn(t, 127);
50132
+ Pn(t, 127);
50133
50133
  }
50134
50134
  }, L8 = (t) => new Error(t), _H = () => {
50135
50135
  throw L8("Method unimplemented");
@@ -51560,7 +51560,7 @@ it.create({ name: "dragHandle", addOptions: () => ({ render() {
51560
51560
  } });
51561
51561
  const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Object], default: U8 }, editor: { type: Object, required: !0 }, tippyOptions: { type: Object, default: () => ({}) }, onNodeChange: { type: Function, default: null }, class: { type: String, default: "drag-handle" } }, setup(t, { slots: e }) {
51562
51562
  const n = se(null);
51563
- return Ln(() => {
51563
+ return Un(() => {
51564
51564
  const { editor: r, pluginKey: o, onNodeChange: i, tippyOptions: s } = t;
51565
51565
  r.registerPlugin(W8({ editor: r, element: n.value, pluginKey: o, tippyOptions: s, onNodeChange: i }));
51566
51566
  }), Ir(() => {
@@ -51568,7 +51568,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
51568
51568
  o.unregisterPlugin(r);
51569
51569
  }), () => {
51570
51570
  var r;
51571
- return Ut("div", { ref: n, class: t.class }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
51571
+ return Wt("div", { ref: n, class: t.class }, (r = e.default) === null || r === void 0 ? void 0 : r.call(e));
51572
51572
  };
51573
51573
  } }), TV = { class: "smart-block-menu-hander" }, AV = {
51574
51574
  key: 0,
@@ -51615,7 +51615,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
51615
51615
  w.width === "100%" ? r.value = w.width : r.value = `w:${Number.parseInt(w.width) + 2}px`;
51616
51616
  });
51617
51617
  }
51618
- Ln(() => {
51618
+ Un(() => {
51619
51619
  var h;
51620
51620
  e && ((h = e.value) == null || h.on("selectionUpdate", c));
51621
51621
  }), nm(() => {
@@ -51740,7 +51740,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
51740
51740
  function y() {
51741
51741
  l.value < i.value.length && !s.value && (s.value = !0, m());
51742
51742
  }
51743
- Kt(i, () => {
51743
+ Ut(i, () => {
51744
51744
  y();
51745
51745
  });
51746
51746
  async function g(E) {
@@ -51798,7 +51798,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
51798
51798
  function S() {
51799
51799
  h.value && h.value.abort();
51800
51800
  }
51801
- Ln(() => {
51801
+ Un(() => {
51802
51802
  sd("esc", () => {
51803
51803
  S();
51804
51804
  });
@@ -51977,7 +51977,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
51977
51977
  function h() {
51978
51978
  return n.tooltip === !1 ? "" : n.huge && n.tooltip ? `${n.tooltip}${n.shortcut ? ` (${or(n.shortcut)})` : ""}` : n.text ? `${n.tooltip ? n.tooltip : n.text}${n.shortcut ? ` (${or(n.shortcut)})` : ""}` : "";
51979
51979
  }
51980
- Kt(
51980
+ Ut(
51981
51981
  () => n.popupVisible,
51982
51982
  (g) => {
51983
51983
  c.value = g;
@@ -52015,7 +52015,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
52015
52015
  onMouseover: w[2] || (w[2] = (...te) => b(u) && b(u)(...te)),
52016
52016
  onMouseleave: d
52017
52017
  }, [
52018
- t.menuType === "button" ? (I(), Q(S, Hn({
52018
+ t.menuType === "button" ? (I(), Q(S, zn({
52019
52019
  key: 0,
52020
52020
  class: ["smart-menu-button", {
52021
52021
  "show-text": !t.hideText,
@@ -52037,7 +52037,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
52037
52037
  ])
52038
52038
  ]),
52039
52039
  _: 3
52040
- }, 16, ["class", "disabled"])) : t.menuType === "dropdown" ? (I(), Q(x, Hn({ key: 1 }, b(o), {
52040
+ }, 16, ["class", "disabled"])) : t.menuType === "dropdown" ? (I(), Q(x, zn({ key: 1 }, b(o), {
52041
52041
  trigger: "click",
52042
52042
  options: t.selectOptions,
52043
52043
  to: b(i),
@@ -52047,7 +52047,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
52047
52047
  default: ie(() => {
52048
52048
  var te;
52049
52049
  return [
52050
- Y(S, Hn({
52050
+ Y(S, zn({
52051
52051
  class: ["smart-menu-button has-arrow", {
52052
52052
  "show-text": !t.hideText,
52053
52053
  active: t.popupVisible
@@ -52075,7 +52075,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
52075
52075
  ];
52076
52076
  }),
52077
52077
  _: 3
52078
- }, 16, ["options", "to", "onSelect"])) : t.menuType === "select" ? (I(), Q(A, Hn({
52078
+ }, 16, ["options", "to", "onSelect"])) : t.menuType === "select" ? (I(), Q(A, zn({
52079
52079
  key: 2,
52080
52080
  size: "tiny",
52081
52081
  placement: "bottom-left",
@@ -52092,7 +52092,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
52092
52092
  ]),
52093
52093
  _: 3
52094
52094
  }, 16, ["value", "options", "disabled", "to"])) : t.menuType === "popup" ? (I(), ae(Ge, { key: 3 }, [
52095
- t.popupHandle === "arrow" ? (I(), Q(S, Hn({
52095
+ t.popupHandle === "arrow" ? (I(), Q(S, zn({
52096
52096
  key: 0,
52097
52097
  class: ["smart-menu-button has-arrow", {
52098
52098
  "show-text": !t.hideText,
@@ -52156,7 +52156,7 @@ const CV = Io({ name: "DragHandleVue", props: { pluginKey: { type: [String, Obje
52156
52156
  trigger: ie(() => {
52157
52157
  var te, T;
52158
52158
  return [
52159
- Y(S, Hn({
52159
+ Y(S, zn({
52160
52160
  ref_key: "popupHandleRef",
52161
52161
  ref: p,
52162
52162
  class: ["smart-menu-button", {
@@ -52254,7 +52254,7 @@ const rU = ["id"], oU = { class: "smart-color-picker-default-button" }, iU = { c
52254
52254
  u(h), r("change", h);
52255
52255
  }
52256
52256
  function f() {
52257
- return Ut("div", { class: "smart-color-picker-render" }, "更多颜色");
52257
+ return Wt("div", { class: "smart-color-picker-render" }, "更多颜色");
52258
52258
  }
52259
52259
  return (h, p) => {
52260
52260
  var g;
@@ -52549,10 +52549,16 @@ const rU = ["id"], oU = { class: "smart-color-picker-default-button" }, iU = { c
52549
52549
  __name: "title",
52550
52550
  setup(t) {
52551
52551
  const { editor: e } = de(), n = se("");
52552
- Ln(() => {
52553
- var o, i;
52554
- n.value = e.value && ((i = (o = ai(e.value)) == null ? void 0 : o.attrs) == null ? void 0 : i.title) || "";
52555
- });
52552
+ Ut(
52553
+ () => {
52554
+ var o, i;
52555
+ return e.value && ((i = (o = ai(e.value)) == null ? void 0 : o.attrs) == null ? void 0 : i.title);
52556
+ },
52557
+ (o) => {
52558
+ n.value = o || "";
52559
+ },
52560
+ { immediate: !0 }
52561
+ );
52556
52562
  function r() {
52557
52563
  var i;
52558
52564
  if (!n.value) {
@@ -53311,7 +53317,7 @@ const rU = ["id"], oU = { class: "smart-color-picker-default-button" }, iU = { c
53311
53317
  }
53312
53318
  ]);
53313
53319
  function r(o) {
53314
- return () => Ut("i", { class: `i-sed:${o}`, style: "font-size: 16px;" });
53320
+ return () => Wt("i", { class: `i-sed:${o}`, style: "font-size: 16px;" });
53315
53321
  }
53316
53322
  return (o, i) => {
53317
53323
  const s = De;
@@ -53942,7 +53948,7 @@ const rU = ["id"], oU = { class: "smart-color-picker-default-button" }, iU = { c
53942
53948
  s.value = null;
53943
53949
  }
53944
53950
  });
53945
- Kt(
53951
+ Ut(
53946
53952
  () => [i.value],
53947
53953
  (p) => {
53948
53954
  var m;
@@ -53964,7 +53970,7 @@ const rU = ["id"], oU = { class: "smart-color-picker-default-button" }, iU = { c
53964
53970
  function h() {
53965
53971
  a.value = !1, l.value = !1;
53966
53972
  }
53967
- return Ln(() => {
53973
+ return Un(() => {
53968
53974
  const p = document.querySelector(".smart-block-menu-hander");
53969
53975
  p == null || p.addEventListener("mousedown", d), p == null || p.addEventListener("mousemove", f), document == null || document.addEventListener("mouseup", h);
53970
53976
  }), nm(() => {
@@ -54153,7 +54159,7 @@ const vW = {
54153
54159
  A.href = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css", A.rel = "stylesheet", A.id = "katex-style", (x = document.querySelector("head")) == null || x.append(A);
54154
54160
  }
54155
54161
  }
54156
- return Ln(() => l()), Ir(() => {
54162
+ return Un(() => l()), Ir(() => {
54157
54163
  a.destroy();
54158
54164
  }), (w, S) => {
54159
54165
  var E;
@@ -54176,7 +54182,7 @@ const vW = {
54176
54182
  const { editor: e } = de(), n = se([]);
54177
54183
  let r = [];
54178
54184
  const o = se(!1), { width: i } = s0();
54179
- Kt(i, () => {
54185
+ Ut(i, () => {
54180
54186
  o.value = !1;
54181
54187
  });
54182
54188
  const s = se(null);
@@ -54189,7 +54195,7 @@ const vW = {
54189
54195
  }
54190
54196
  a = g;
54191
54197
  }
54192
- Ln(() => {
54198
+ Un(() => {
54193
54199
  const y = document.querySelector(".smart-tool-container");
54194
54200
  y && y instanceof HTMLElement && (s.value = new ResizeObserver((g) => {
54195
54201
  for (const w of g)
@@ -54231,7 +54237,7 @@ const vW = {
54231
54237
  JSON.stringify(r) !== JSON.stringify(g) && (r = g, n.value = JSON.parse(JSON.stringify(g)));
54232
54238
  }, 200)();
54233
54239
  }
54234
- Kt(
54240
+ Ut(
54235
54241
  () => {
54236
54242
  var y;
54237
54243
  return (y = e.value) == null ? void 0 : y.storage.tableOfContents.content;
@@ -54250,7 +54256,7 @@ const vW = {
54250
54256
  }
54251
54257
  function h({ option: y }) {
54252
54258
  const { level: g } = y;
54253
- return Ut(
54259
+ return Wt(
54254
54260
  P7,
54255
54261
  {
54256
54262
  style: `max-width: ${272 - 12 * (g - 1)}px;white-space: pre;`,
@@ -54263,7 +54269,7 @@ const vW = {
54263
54269
  );
54264
54270
  }
54265
54271
  function p() {
54266
- return Ut(
54272
+ return Wt(
54267
54273
  "i",
54268
54274
  {
54269
54275
  class: "i-sed:forward"
@@ -54386,7 +54392,7 @@ const vW = {
54386
54392
  const w = (L = y.value) == null ? void 0 : L.state.doc.lastChild, S = g.getBoundingClientRect();
54387
54393
  m.clientY > S.bottom && (w && (w.type.name !== "paragraph" || w.content.size !== 0) ? ($ = y.value) == null || $.chain().focus().insertContentAt(y.value.state.doc.content.size, "<p></p>").run() : (P = y.value) == null || P.chain().focus().run());
54388
54394
  }
54389
- return Ln(() => {
54395
+ return Un(() => {
54390
54396
  u();
54391
54397
  }), (m, y) => {
54392
54398
  const g = xW, w = vW, S = z7, x = oP, A = OE, E = Ua, L = H7, $ = pE;
@@ -54537,12 +54543,12 @@ const vW = {
54537
54543
  s();
54538
54544
  });
54539
54545
  const { width: c } = s0();
54540
- Kt(
54546
+ Ut(
54541
54547
  c,
54542
54548
  () => {
54543
54549
  s();
54544
54550
  }
54545
- ), Ln(() => {
54551
+ ), Un(() => {
54546
54552
  r.value.addEventListener("scroll", s);
54547
54553
  });
54548
54554
  function u() {
@@ -54675,7 +54681,7 @@ const vW = {
54675
54681
  };
54676
54682
  return (s, a) => {
54677
54683
  const l = V7;
54678
- return I(), Q(l, Hn({
54684
+ return I(), Q(l, zn({
54679
54685
  show: t.visible,
54680
54686
  to: b(o),
54681
54687
  preset: "card"
@@ -54719,7 +54725,7 @@ const vW = {
54719
54725
  }
54720
54726
  i.value.text = !1, i.value.href = !1, (a = e.value) == null || a.commands.setLink({ href: o.value, target: "_blank" }), (l = e.value) == null || l.chain().focus().insertContent(r.value).run(), n.value = !1;
54721
54727
  }
54722
- return Kt(
54728
+ return Ut(
54723
54729
  () => n.value,
54724
54730
  (a) => {
54725
54731
  var l;
@@ -54907,7 +54913,7 @@ const vW = {
54907
54913
  function s(a) {
54908
54914
  a.type === "image" && i();
54909
54915
  }
54910
- return Ln(() => {
54916
+ return Un(() => {
54911
54917
  hr.on(s);
54912
54918
  }), Ir(() => {
54913
54919
  hr.off(s);
@@ -54935,7 +54941,7 @@ const vW = {
54935
54941
  { label: k("list.ordered.upperLatin"), key: "upper-latin", icon: r("ordered-list-upper-latin") }
54936
54942
  ]);
54937
54943
  function r(i) {
54938
- return () => Ut("i", { class: `i-sed:${i}`, style: "font-size: 24px;" });
54944
+ return () => Wt("i", { class: `i-sed:${i}`, style: "font-size: 24px;" });
54939
54945
  }
54940
54946
  function o(i) {
54941
54947
  var a, l, c, u, d;
@@ -54981,7 +54987,7 @@ const vW = {
54981
54987
  { label: k("list.bullet.square"), key: "square", icon: r("bullet-list-square") }
54982
54988
  ]);
54983
54989
  function r(i) {
54984
- return () => Ut("i", { class: `i-sed:${i}`, style: "font-size: 24px;" });
54990
+ return () => Wt("i", { class: `i-sed:${i}`, style: "font-size: 24px;" });
54985
54991
  }
54986
54992
  function o(i) {
54987
54993
  var a, l, c, u;
@@ -55287,7 +55293,7 @@ const vW = {
55287
55293
  }
55288
55294
  return (s, a) => {
55289
55295
  const l = De;
55290
- return I(), Q(l, Hn({
55296
+ return I(), Q(l, zn({
55291
55297
  text: ("t" in s ? s.t : b(k))("base.fontSize.text"),
55292
55298
  "menu-type": "select",
55293
55299
  "hide-text": "",
@@ -55328,9 +55334,9 @@ const vW = {
55328
55334
  })))((l = e.value.dicts) == null ? void 0 : l.fonts) ?? [];
55329
55335
  });
55330
55336
  function i(a) {
55331
- return a.type === "group" && a.value === "default" ? `${a.label}` : Ut("div", { class: "smart-font-family-item" }, [
55332
- Ut("span", { style: { fontFamily: a.value === "default" ? "" : a.value } }, Ta(a.label)),
55333
- !r(a.value ?? "") && Ut("span", { class: "smart-font-family-unsupport", title: k("base.fontFamily.unsupport") }, "!")
55337
+ return a.type === "group" && a.value === "default" ? `${a.label}` : Wt("div", { class: "smart-font-family-item" }, [
55338
+ Wt("span", { style: { fontFamily: a.value === "default" ? "" : a.value } }, Ta(a.label)),
55339
+ !r(a.value ?? "") && Wt("span", { class: "smart-font-family-unsupport", title: k("base.fontFamily.unsupport") }, "!")
55334
55340
  ]);
55335
55341
  }
55336
55342
  function s(a) {
@@ -55340,7 +55346,7 @@ const vW = {
55340
55346
  return (a, l) => {
55341
55347
  var u;
55342
55348
  const c = De;
55343
- return I(), Q(c, Hn({
55349
+ return I(), Q(c, zn({
55344
55350
  text: ("t" in a ? a.t : b(k))("base.fontFamily.text"),
55345
55351
  "menu-type": "select",
55346
55352
  "hide-text": "",
@@ -55444,7 +55450,7 @@ const vW = {
55444
55450
  setup(t) {
55445
55451
  const e = se(null), n = se(!1), { editor: r, options: o, toolbarHover: i, toolbarContainer: s } = de(), a = se(!1), l = se([]), c = se(""), u = se(null);
55446
55452
  function d(g) {
55447
- return () => Ut("i", { class: `${g}`, style: "font-size: 16px;" });
55453
+ return () => Wt("i", { class: `${g}`, style: "font-size: 16px; color:#666" });
55448
55454
  }
55449
55455
  function f(g) {
55450
55456
  var w;
@@ -55465,7 +55471,7 @@ const vW = {
55465
55471
  function m(g) {
55466
55472
  g.type !== "image" && (u.value = g.pos, a.value = !0, l.value = [g.type], c.value = k("moreBar.title") + k(`moreBar.${g.type}`));
55467
55473
  }
55468
- Ln(() => {
55474
+ Un(() => {
55469
55475
  hr.on(m);
55470
55476
  }), Ir(() => {
55471
55477
  hr.off(m);
@@ -55919,7 +55925,7 @@ const vW = {
55919
55925
  ], 64);
55920
55926
  };
55921
55927
  }
55922
- }, kj = /* @__PURE__ */ Xe(xj, [["__scopeId", "data-v-2783c82b"]]), Sj = {}, Cj = { class: "smart-toolbar-container" };
55928
+ }, kj = /* @__PURE__ */ Xe(xj, [["__scopeId", "data-v-04f3f9fd"]]), Sj = {}, Cj = { class: "smart-toolbar-container" };
55923
55929
  function Tj(t, e) {
55924
55930
  const n = kj;
55925
55931
  return I(), ae("div", Cj, [
@@ -56003,7 +56009,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56003
56009
  io.message.error(k("save.error"), { placement: "bottom" }), console.error(J.message);
56004
56010
  }
56005
56011
  }, 1e3);
56006
- Kt(
56012
+ Ut(
56007
56013
  () => u.value,
56008
56014
  () => {
56009
56015
  u.value && (u.value.on("create", ({ editor: $ }) => {
@@ -56027,7 +56033,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56027
56033
  f(), o("destroy");
56028
56034
  }));
56029
56035
  }
56030
- ), Kt(
56036
+ ), Ut(
56031
56037
  () => h.value.showToc,
56032
56038
  ($) => {
56033
56039
  o("changed:pageShowToc", $);
@@ -56054,7 +56060,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56054
56060
  return u.value.getJSON();
56055
56061
  throw new Error("format must be html, text or json");
56056
56062
  }
56057
- Kt(
56063
+ Ut(
56058
56064
  () => r,
56059
56065
  () => d(r),
56060
56066
  { deep: !0 }
@@ -56369,7 +56375,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56369
56375
  var w;
56370
56376
  return !((w = s.value) != null && w.readOnly);
56371
56377
  });
56372
- Kt(
56378
+ Ut(
56373
56379
  () => n.popupVisible,
56374
56380
  (w) => {
56375
56381
  c.value = w;
@@ -56403,7 +56409,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56403
56409
  onMouseover: S[2] || (S[2] = (...$) => b(u) && b(u)(...$)),
56404
56410
  onMouseleave: d
56405
56411
  }, [
56406
- t.menuType === "button" ? (I(), Q(x, Hn({
56412
+ t.menuType === "button" ? (I(), Q(x, zn({
56407
56413
  key: 0,
56408
56414
  class: ["smart-menu-button", {
56409
56415
  "show-text": !t.hideText,
@@ -56425,7 +56431,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56425
56431
  ])
56426
56432
  ]),
56427
56433
  _: 3
56428
- }, 16, ["class", "disabled"])) : t.menuType === "dropdown" ? (I(), Q(A, Hn({ key: 1 }, b(o), {
56434
+ }, 16, ["class", "disabled"])) : t.menuType === "dropdown" ? (I(), Q(A, zn({ key: 1 }, b(o), {
56429
56435
  trigger: "click",
56430
56436
  options: t.selectOptions,
56431
56437
  to: b(i),
@@ -56433,7 +56439,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56433
56439
  onSelect: b(o).onChangeas
56434
56440
  }), {
56435
56441
  default: ie(() => [
56436
- Y(x, Hn({
56442
+ Y(x, zn({
56437
56443
  class: ["smart-menu-button has-arrow", {
56438
56444
  "show-text": !t.hideText,
56439
56445
  active: t.popupVisible
@@ -56460,7 +56466,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56460
56466
  }, 16, ["class", "disabled"])
56461
56467
  ]),
56462
56468
  _: 3
56463
- }, 16, ["options", "to", "onSelect"])) : t.menuType === "select" ? (I(), Q(E, Hn({
56469
+ }, 16, ["options", "to", "onSelect"])) : t.menuType === "select" ? (I(), Q(E, zn({
56464
56470
  key: 2,
56465
56471
  size: "tiny",
56466
56472
  placement: "bottom-left",
@@ -56477,7 +56483,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56477
56483
  ]),
56478
56484
  _: 3
56479
56485
  }, 16, ["value", "options", "disabled", "to"])) : t.menuType === "popup" ? (I(), ae(Ge, { key: 3 }, [
56480
- t.popupHandle === "arrow" ? (I(), Q(x, Hn({
56486
+ t.popupHandle === "arrow" ? (I(), Q(x, zn({
56481
56487
  key: 0,
56482
56488
  class: ["smart-menu-button has-arrow", {
56483
56489
  "show-text": !t.hideText,
@@ -56539,7 +56545,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
56539
56545
  trigger: "click"
56540
56546
  }, {
56541
56547
  trigger: ie(() => [
56542
- Y(x, Hn({
56548
+ Y(x, zn({
56543
56549
  ref_key: "popupHandleRef",
56544
56550
  ref: m,
56545
56551
  class: ["smart-menu-button", {
@@ -57141,7 +57147,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
57141
57147
  }
57142
57148
  ]);
57143
57149
  function r(o) {
57144
- return () => Ut("i", { class: `i-sed:${o}`, style: "font-size: 16px;" });
57150
+ return () => Wt("i", { class: `i-sed:${o}`, style: "font-size: 16px;" });
57145
57151
  }
57146
57152
  return (o, i) => {
57147
57153
  const s = Qe;
@@ -57193,7 +57199,7 @@ const Aj = /* @__PURE__ */ Xe(Sj, [["render", Tj], ["__scopeId", "data-v-3d91acb
57193
57199
  u(h), r("change", h);
57194
57200
  }
57195
57201
  function f() {
57196
- return Ut("div", { class: "smart-color-picker-render" }, "更多颜色");
57202
+ return Wt("div", { class: "smart-color-picker-render" }, "更多颜色");
57197
57203
  }
57198
57204
  return (h, p) => {
57199
57205
  var g;
@@ -57791,7 +57797,7 @@ const Mq = {
57791
57797
  });
57792
57798
  n(o), Ir(() => {
57793
57799
  o.destroy();
57794
- }), Kt(
57800
+ }), Ut(
57795
57801
  r,
57796
57802
  (s) => {
57797
57803
  o && (o.setEditable(!s.readOnly), o.commands.focus("end"));
@@ -57805,7 +57811,7 @@ const Mq = {
57805
57811
  l.href = "https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css", l.rel = "stylesheet", l.id = "katex-style", (a = document.querySelector("head")) == null || a.append(l);
57806
57812
  }
57807
57813
  }
57808
- return Ln(() => i()), (s, a) => {
57814
+ return Un(() => i()), (s, a) => {
57809
57815
  const l = Tq;
57810
57816
  return I(), ae(Ge, null, [
57811
57817
  Y(b(A1), {
@@ -58489,7 +58495,7 @@ const Mq = {
58489
58495
  }
58490
58496
  return (i, s) => {
58491
58497
  const a = Qe;
58492
- return I(), Q(a, Hn({
58498
+ return I(), Q(a, zn({
58493
58499
  text: ("t" in i ? i.t : b(k))("base.fontSize.text"),
58494
58500
  "menu-type": "select",
58495
58501
  "hide-text": "",
@@ -58530,9 +58536,9 @@ const Mq = {
58530
58536
  })))((l = e.value.dicts) == null ? void 0 : l.fonts) ?? [];
58531
58537
  });
58532
58538
  function i(a) {
58533
- return a.type === "group" && a.value === "default" ? `${a.label}` : Ut("div", { class: "smart-font-family-item" }, [
58534
- Ut("span", { style: { fontFamily: a.value === "default" ? "" : a.value } }, Ta(a.label)),
58535
- !r(a.value ?? "") && Ut("span", { class: "smart-font-family-unsupport", title: k("base.fontFamily.unsupport") }, "!")
58539
+ return a.type === "group" && a.value === "default" ? `${a.label}` : Wt("div", { class: "smart-font-family-item" }, [
58540
+ Wt("span", { style: { fontFamily: a.value === "default" ? "" : a.value } }, Ta(a.label)),
58541
+ !r(a.value ?? "") && Wt("span", { class: "smart-font-family-unsupport", title: k("base.fontFamily.unsupport") }, "!")
58536
58542
  ]);
58537
58543
  }
58538
58544
  function s(a) {
@@ -58542,7 +58548,7 @@ const Mq = {
58542
58548
  return (a, l) => {
58543
58549
  var u;
58544
58550
  const c = Qe;
58545
- return I(), Q(c, Hn({
58551
+ return I(), Q(c, zn({
58546
58552
  text: ("t" in a ? a.t : b(k))("base.fontFamily.text"),
58547
58553
  "menu-type": "select",
58548
58554
  "hide-text": "",
@@ -58715,7 +58721,7 @@ const Mq = {
58715
58721
  )}</span>`) : "";
58716
58722
  }
58717
58723
  const h = t_(t, "modelValue");
58718
- Ln(() => {
58724
+ Un(() => {
58719
58725
  var m;
58720
58726
  (m = a.value) == null || m.commands.setContent(h.value);
58721
58727
  });
@@ -58725,7 +58731,7 @@ const Mq = {
58725
58731
  }
58726
58732
  return Ir(() => {
58727
58733
  p();
58728
- }), Kt(
58734
+ }), Ut(
58729
58735
  () => a.value,
58730
58736
  () => {
58731
58737
  a.value && (a.value.on("create", () => {