@creatorsn/powereditor3 0.2.5 → 0.2.7

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 { ref as Mc, defineComponent as uo, provide as eg, markRaw as V4, reactive as W5, h as ho, render as tg, getCurrentInstance as $4, watchEffect as K5, nextTick as W4, unref as Bh, onBeforeUnmount as Pf, customRef as j5, onMounted as K4, resolveComponent as Me, createBlock as rn, openBlock as He, normalizeClass as tt, withCtx as ie, createElementVNode as X, createElementBlock as ot, createCommentVNode as Pt, toDisplayString as Ye, withDirectives as Ut, createVNode as ae, createTextVNode as ir, vShow as Wt, Fragment as Vr, renderList as wi, normalizeStyle as ut, renderSlot as mt, withKeys as to, Transition as Dc, vModelText as j4 } from "vue";
1
+ import { ref as Mc, defineComponent as uo, provide as eg, markRaw as V4, reactive as W5, h as ho, render as tg, getCurrentInstance as $4, watchEffect as K5, nextTick as W4, unref as Bh, onBeforeUnmount as Pf, customRef as j5, onMounted as K4, resolveComponent as Me, createBlock as rn, openBlock as He, normalizeClass as Ye, withCtx as ie, createElementVNode as X, createElementBlock as ot, createCommentVNode as Pt, toDisplayString as Ze, withDirectives as Ut, createVNode as ae, createTextVNode as ir, vShow as Wt, Fragment as Vr, renderList as wi, normalizeStyle as ut, renderSlot as mt, withKeys as to, Transition as Dc, vModelText as j4 } from "vue";
2
2
  function an(n) {
3
3
  this.content = n;
4
4
  }
@@ -21112,7 +21112,7 @@ function nT() {
21112
21112
  scope: "number",
21113
21113
  begin: Q,
21114
21114
  relevance: 0
21115
- }, Ze = {
21115
+ }, Xe = {
21116
21116
  // this outer rule makes sure we actually have a WHOLE regex and not simply
21117
21117
  // an expression such as:
21118
21118
  //
@@ -21135,7 +21135,7 @@ function nT() {
21135
21135
  }
21136
21136
  ]
21137
21137
  }]
21138
- }, Xe = {
21138
+ }, Je = {
21139
21139
  scope: "title",
21140
21140
  begin: q,
21141
21141
  relevance: 0
@@ -21169,8 +21169,8 @@ function nT() {
21169
21169
  NUMBER_MODE: Te,
21170
21170
  C_NUMBER_MODE: Ve,
21171
21171
  BINARY_NUMBER_MODE: yt,
21172
- REGEXP_MODE: Ze,
21173
- TITLE_MODE: Xe,
21172
+ REGEXP_MODE: Xe,
21173
+ TITLE_MODE: Je,
21174
21174
  UNDERSCORE_TITLE_MODE: vt,
21175
21175
  METHOD_GUARD: qe,
21176
21176
  END_SAME_AS_BEGIN: function(M) {
@@ -22047,12 +22047,12 @@ const on = (n, e) => {
22047
22047
  function gT(n, e, t, r, i, o) {
22048
22048
  const s = Me("fv-button"), a = Me("fv-DropDown"), l = Me("node-view-content"), c = Me("node-view-wrapper");
22049
22049
  return He(), rn(c, {
22050
- class: tt(["power-editor-code-block", [{ dark: i.thisTheme === "dark" }]])
22050
+ class: Ye(["power-editor-code-block", [{ dark: i.thisTheme === "dark" }]])
22051
22051
  }, {
22052
22052
  default: ie(() => [
22053
22053
  X("div", uT, [
22054
22054
  X("div", dT, [
22055
- X("p", hT, Ye(t.node.attrs.language || "auto"), 1)
22055
+ X("p", hT, Ze(t.node.attrs.language || "auto"), 1)
22056
22056
  ]),
22057
22057
  X("div", fT, [
22058
22058
  Ut(ae(a, {
@@ -22076,7 +22076,7 @@ function gT(n, e, t, r, i, o) {
22076
22076
  style: { width: "80px", float: "right" }
22077
22077
  }, {
22078
22078
  default: ie(() => [
22079
- ir(Ye(o.selectedLanguage[0].text || "Default"), 1)
22079
+ ir(Ze(o.selectedLanguage[0].text || "Default"), 1)
22080
22080
  ]),
22081
22081
  _: 2
22082
22082
  }, 1032, ["theme", "background", "title"])
@@ -22096,7 +22096,7 @@ function gT(n, e, t, r, i, o) {
22096
22096
  }, {
22097
22097
  default: ie(() => [
22098
22098
  X("i", {
22099
- class: tt(["ms-Icon", [`ms-Icon--${i.status.copy ? "Accept" : "Set"}`]])
22099
+ class: Ye(["ms-Icon", [`ms-Icon--${i.status.copy ? "Accept" : "Set"}`]])
22100
22100
  }, null, 2)
22101
22101
  ]),
22102
22102
  _: 1
@@ -22104,7 +22104,7 @@ function gT(n, e, t, r, i, o) {
22104
22104
  ])
22105
22105
  ]),
22106
22106
  X("pre", {
22107
- class: tt(["power-editor-code-block-pre", [
22107
+ class: Ye(["power-editor-code-block-pre", [
22108
22108
  {
22109
22109
  lineNumber: t.editor.storage.defaultStorage.codeBlockLineNumbers
22110
22110
  }
@@ -22120,7 +22120,7 @@ function gT(n, e, t, r, i, o) {
22120
22120
  key: d,
22121
22121
  class: "power-editor-code-block-line-number-item",
22122
22122
  title: d + 1
22123
- }, Ye(d + 1), 9, mT))), 128))
22123
+ }, Ze(d + 1), 9, mT))), 128))
22124
22124
  ])) : Pt("", !0)
22125
22125
  ]),
22126
22126
  _: 1
@@ -45507,7 +45507,7 @@ function iM(n) {
45507
45507
  /\[/,
45508
45508
  /%/
45509
45509
  ]
45510
- }, Ze = {
45510
+ }, Xe = {
45511
45511
  match: [
45512
45512
  /\b(?:subscript|init[?!]?)/,
45513
45513
  /\s*(?=[<(])/
@@ -45519,7 +45519,7 @@ function iM(n) {
45519
45519
  e
45520
45520
  ],
45521
45521
  illegal: /\[|%/
45522
- }, Xe = {
45522
+ }, Je = {
45523
45523
  match: [
45524
45524
  /operator/,
45525
45525
  /\s+/,
@@ -45575,7 +45575,7 @@ function iM(n) {
45575
45575
  contains: [
45576
45576
  ...r,
45577
45577
  yt,
45578
- Ze,
45578
+ Xe,
45579
45579
  {
45580
45580
  beginKeywords: "struct protocol class extension enum actor",
45581
45581
  end: "\\{",
@@ -45589,7 +45589,7 @@ function iM(n) {
45589
45589
  ...u
45590
45590
  ]
45591
45591
  },
45592
- Xe,
45592
+ Je,
45593
45593
  vt,
45594
45594
  {
45595
45595
  beginKeywords: "import",
@@ -50509,25 +50509,25 @@ function Ope() {
50509
50509
  return N(Te + (D + 1) * te / (te + d));
50510
50510
  }
50511
50511
  function oe(te) {
50512
- var me = [], ye = te.length, Te, Ve = 0, yt = f, Ze = b, Xe, vt, qe, Bt, nt, gt, It, Tt, at;
50513
- for (Xe = te.lastIndexOf(y), Xe < 0 && (Xe = 0), vt = 0; vt < Xe; ++vt)
50512
+ var me = [], ye = te.length, Te, Ve = 0, yt = f, Xe = b, Je, vt, qe, Bt, nt, gt, It, Tt, at;
50513
+ for (Je = te.lastIndexOf(y), Je < 0 && (Je = 0), vt = 0; vt < Je; ++vt)
50514
50514
  te.charCodeAt(vt) >= 128 && q("not-basic"), me.push(te.charCodeAt(vt));
50515
- for (qe = Xe > 0 ? Xe + 1 : 0; qe < ye; ) {
50516
- for (Bt = Ve, nt = 1, gt = l; qe >= ye && q("invalid-input"), It = ne(te.charCodeAt(qe++)), (It >= l || It > N((a - Ve) / nt)) && q("overflow"), Ve += It * nt, Tt = gt <= Ze ? c : gt >= Ze + u ? u : gt - Ze, !(It < Tt); gt += l)
50515
+ for (qe = Je > 0 ? Je + 1 : 0; qe < ye; ) {
50516
+ for (Bt = Ve, nt = 1, gt = l; qe >= ye && q("invalid-input"), It = ne(te.charCodeAt(qe++)), (It >= l || It > N((a - Ve) / nt)) && q("overflow"), Ve += It * nt, Tt = gt <= Xe ? c : gt >= Xe + u ? u : gt - Xe, !(It < Tt); gt += l)
50517
50517
  at = l - Tt, nt > N(a / at) && q("overflow"), nt *= at;
50518
- Te = me.length + 1, Ze = j(Ve - Bt, Te, Bt == 0), N(Ve / Te) > a - yt && q("overflow"), yt += N(Ve / Te), Ve %= Te, me.splice(Ve++, 0, yt);
50518
+ Te = me.length + 1, Xe = j(Ve - Bt, Te, Bt == 0), N(Ve / Te) > a - yt && q("overflow"), yt += N(Ve / Te), Ve %= Te, me.splice(Ve++, 0, yt);
50519
50519
  }
50520
50520
  return Q(me);
50521
50521
  }
50522
50522
  function re(te) {
50523
- var me, ye, Te, Ve, yt, Ze, Xe, vt, qe, Bt, nt, gt = [], It, Tt, at, en;
50524
- for (te = K(te), It = te.length, me = f, ye = 0, yt = b, Ze = 0; Ze < It; ++Ze)
50525
- nt = te[Ze], nt < 128 && gt.push(O(nt));
50523
+ var me, ye, Te, Ve, yt, Xe, Je, vt, qe, Bt, nt, gt = [], It, Tt, at, en;
50524
+ for (te = K(te), It = te.length, me = f, ye = 0, yt = b, Xe = 0; Xe < It; ++Xe)
50525
+ nt = te[Xe], nt < 128 && gt.push(O(nt));
50526
50526
  for (Te = Ve = gt.length, Ve && gt.push(y); Te < It; ) {
50527
- for (Xe = a, Ze = 0; Ze < It; ++Ze)
50528
- nt = te[Ze], nt >= me && nt < Xe && (Xe = nt);
50529
- for (Tt = Te + 1, Xe - me > N((a - ye) / Tt) && q("overflow"), ye += (Xe - me) * Tt, me = Xe, Ze = 0; Ze < It; ++Ze)
50530
- if (nt = te[Ze], nt < me && ++ye > a && q("overflow"), nt == me) {
50527
+ for (Je = a, Xe = 0; Xe < It; ++Xe)
50528
+ nt = te[Xe], nt >= me && nt < Je && (Je = nt);
50529
+ for (Tt = Te + 1, Je - me > N((a - ye) / Tt) && q("overflow"), ye += (Je - me) * Tt, me = Je, Xe = 0; Xe < It; ++Xe)
50530
+ if (nt = te[Xe], nt < me && ++ye > a && q("overflow"), nt == me) {
50531
50531
  for (vt = ye, qe = l; Bt = qe <= yt ? c : qe >= yt + u ? u : qe - yt, !(vt < Bt); qe += l)
50532
50532
  en = vt - Bt, at = l - Bt, gt.push(
50533
50533
  O(V(Bt + en % at, 0))
@@ -53186,14 +53186,14 @@ function Gpe() {
53186
53186
  j = re = he = B, oe = null;
53187
53187
  var Z = "Size1-Regular";
53188
53188
  B === "\\uparrow" ? re = he = "⏐" : B === "\\Uparrow" ? re = he = "‖" : B === "\\downarrow" ? j = re = "⏐" : B === "\\Downarrow" ? j = re = "‖" : B === "\\updownarrow" ? (j = "\\uparrow", re = "⏐", he = "\\downarrow") : B === "\\Updownarrow" ? (j = "\\Uparrow", re = "‖", he = "\\Downarrow") : B === "[" || B === "\\lbrack" ? (j = "⎡", re = "⎢", he = "⎣", Z = "Size4-Regular") : B === "]" || B === "\\rbrack" ? (j = "⎤", re = "⎥", he = "⎦", Z = "Size4-Regular") : B === "\\lfloor" ? (re = j = "⎢", he = "⎣", Z = "Size4-Regular") : B === "\\lceil" ? (j = "⎡", re = he = "⎢", Z = "Size4-Regular") : B === "\\rfloor" ? (re = j = "⎥", he = "⎦", Z = "Size4-Regular") : B === "\\rceil" ? (j = "⎤", re = he = "⎥", Z = "Size4-Regular") : B === "(" ? (j = "⎛", re = "⎜", he = "⎝", Z = "Size4-Regular") : B === ")" ? (j = "⎞", re = "⎟", he = "⎠", Z = "Size4-Regular") : B === "\\{" || B === "\\lbrace" ? (j = "⎧", oe = "⎨", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\}" || B === "\\rbrace" ? (j = "⎫", oe = "⎬", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\lgroup" ? (j = "⎧", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\rgroup" ? (j = "⎫", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\lmoustache" ? (j = "⎧", he = "⎭", re = "⎪", Z = "Size4-Regular") : B === "\\rmoustache" ? (j = "⎫", he = "⎩", re = "⎪", Z = "Size4-Regular") : B === "\\surd" && (j = "", he = "⎷", re = "", Z = "Size4-Regular");
53189
- var te = a(j, Z), me = te.height + te.depth, ye = a(re, Z), Te = ye.height + ye.depth, Ve = a(he, Z), yt = Ve.height + Ve.depth, Ze = 0, Xe = 1;
53189
+ var te = a(j, Z), me = te.height + te.depth, ye = a(re, Z), Te = ye.height + ye.depth, Ve = a(he, Z), yt = Ve.height + Ve.depth, Xe = 0, Je = 1;
53190
53190
  if (oe !== null) {
53191
53191
  var vt = a(oe, Z);
53192
- Ze = vt.height + vt.depth, Xe = 2;
53192
+ Xe = vt.height + vt.depth, Je = 2;
53193
53193
  }
53194
- var qe = me + yt + Ze, Bt = Math.ceil(
53195
- (K - qe) / (Xe * Te)
53196
- ), nt = qe + Bt * Xe * Te, gt = r.metrics.axisHeight;
53194
+ var qe = me + yt + Xe, Bt = Math.ceil(
53195
+ (K - qe) / (Je * Te)
53196
+ ), nt = qe + Bt * Je * Te, gt = r.metrics.axisHeight;
53197
53197
  Q && (gt *= ne.style.sizeMultiplier);
53198
53198
  var It = nt / 2 - gt, Tt = [];
53199
53199
  Tt.push(m(he, Z, V));
@@ -53597,7 +53597,7 @@ function Vpe() {
53597
53597
  }
53598
53598
  me.height = Z, me.depth = te, re += Z, me.pos = re, re += te + Te, U[N] = me;
53599
53599
  }
53600
- var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [], Ze = [], Xe, vt;
53600
+ var Ve = re / 2 + o.metrics.axisHeight, yt = C.value.cols || [], Xe = [], Je, vt;
53601
53601
  for (
53602
53602
  O = 0, vt = 0;
53603
53603
  // Continue while either there are more columns or more column
@@ -53606,12 +53606,12 @@ function Vpe() {
53606
53606
  ++O, ++vt
53607
53607
  ) {
53608
53608
  for (var qe = yt[vt] || {}, Bt = !0; qe.type === "separator"; ) {
53609
- if (Bt || (Xe = a(["arraycolsep"], []), Xe.style.width = o.metrics.doubleRuleSep + "em", Ze.push(Xe)), qe.separator === "|") {
53609
+ if (Bt || (Je = a(["arraycolsep"], []), Je.style.width = o.metrics.doubleRuleSep + "em", Xe.push(Je)), qe.separator === "|") {
53610
53610
  var nt = a(
53611
53611
  ["vertical-separator"],
53612
53612
  []
53613
53613
  );
53614
- nt.style.height = re + "em", nt.style.verticalAlign = -(re - Ve) + "em", Ze.push(nt);
53614
+ nt.style.height = re + "em", nt.style.verticalAlign = -(re - Ve) + "em", Xe.push(nt);
53615
53615
  } else
53616
53616
  throw new n(
53617
53617
  "Invalid separator type: " + qe.separator
@@ -53620,7 +53620,7 @@ function Vpe() {
53620
53620
  }
53621
53621
  if (!(O >= q)) {
53622
53622
  var gt;
53623
- (O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (Xe = a(["arraycolsep"], []), Xe.style.width = gt + "em", Ze.push(Xe)));
53623
+ (O > 0 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.pregap, K), gt !== 0 && (Je = a(["arraycolsep"], []), Je.style.width = gt + "em", Xe.push(Je)));
53624
53624
  var It = [];
53625
53625
  for (N = 0; N < z; ++N) {
53626
53626
  var Tt = U[N], at = Tt[O];
@@ -53632,10 +53632,10 @@ function Vpe() {
53632
53632
  It = t.makeVList(It, "individualShift", null, k), It = a(
53633
53633
  ["col-align-" + (qe.align || "c")],
53634
53634
  [It]
53635
- ), Ze.push(It), (O < q - 1 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.postgap, K), gt !== 0 && (Xe = a(["arraycolsep"], []), Xe.style.width = gt + "em", Ze.push(Xe)));
53635
+ ), Xe.push(It), (O < q - 1 || C.value.hskipBeforeAndAfter) && (gt = s.deflt(qe.postgap, K), gt !== 0 && (Je = a(["arraycolsep"], []), Je.style.width = gt + "em", Xe.push(Je)));
53636
53636
  }
53637
53637
  }
53638
- return U = a(["mtable"], Ze), a(["mord"], [U], k.getColor());
53638
+ return U = a(["mtable"], Xe), a(["mord"], [U], k.getColor());
53639
53639
  }, y.spacing = function(C, k, D) {
53640
53640
  return C.value === "\\ " || C.value === "\\space" || C.value === " " || C.value === "~" ? a(
53641
53641
  ["mord", "mspace"],
@@ -56894,7 +56894,7 @@ const Yn = (n, e = "en") => {
56894
56894
  function xme(n, e, t, r, i, o) {
56895
56895
  const s = Me("fv-button"), a = Me("fv-text-box");
56896
56896
  return He(), ot("div", {
56897
- class: tt(["power-editor-media-container", [{ dark: t.theme === "dark" }, { "active-effects": i.active }]]),
56897
+ class: Ye(["power-editor-media-container", [{ dark: t.theme === "dark" }, { "active-effects": i.active }]]),
56898
56898
  style: ut({ width: i.moveable ? `${i.elWidthEnd}px` : o.normalizeWidthValue(i.currentWidth) })
56899
56899
  }, [
56900
56900
  Ut(X("div", {
@@ -57014,7 +57014,7 @@ function xme(n, e, t, r, i, o) {
57014
57014
  onClick: o.newline
57015
57015
  }, {
57016
57016
  default: ie(() => [
57017
- ir(Ye(o.getTitle("Newline")), 1)
57017
+ ir(Ze(o.getTitle("Newline")), 1)
57018
57018
  ]),
57019
57019
  _: 1
57020
57020
  }, 8, ["background", "theme", "title", "onClick"])
@@ -57027,7 +57027,7 @@ function xme(n, e, t, r, i, o) {
57027
57027
  Ut(X("p", {
57028
57028
  class: "power-editor-media-container-caption",
57029
57029
  onClick: e[16] || (e[16] = (...l) => o.showCaptionBox && o.showCaptionBox(...l))
57030
- }, Ye(i.thisCaption), 513), [
57030
+ }, Ze(i.thisCaption), 513), [
57031
57031
  [Wt, i.thisCaption !== "" && !i.show.captionBox]
57032
57032
  ]),
57033
57033
  Ut(ae(a, {
@@ -57222,7 +57222,7 @@ function Eme(n, e, t, r, i, o) {
57222
57222
  const s = Me("fv-image"), a = Me("fv-progress-ring"), l = Me("media-container"), c = Me("fv-img"), u = Me("fv-button"), d = Me("fv-text-box"), m = Me("node-view-wrapper");
57223
57223
  return t.node ? (He(), rn(m, {
57224
57224
  key: 0,
57225
- class: tt(["power-editor-image-container", [{ dark: i.thisTheme === "dark" }]]),
57225
+ class: Ye(["power-editor-image-container", [{ dark: i.thisTheme === "dark" }]]),
57226
57226
  style: ut({
57227
57227
  "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start"
57228
57228
  })
@@ -57265,14 +57265,14 @@ function Eme(n, e, t, r, i, o) {
57265
57265
  color: i.thisTheme === "dark" ? "white" : "black",
57266
57266
  background: i.thisTheme === "dark" ? "rgba(0, 0, 0, 0.3)" : "rgba(255, 255, 255, 0.3)"
57267
57267
  }, null, 8, ["modelValue", "loading", "color", "background"]),
57268
- Ut(X("p", { class: "power-editor-image-status-title" }, Ye(i.statusInfo.info), 513), [
57268
+ Ut(X("p", { class: "power-editor-image-status-title" }, Ze(i.statusInfo.info), 513), [
57269
57269
  [Wt, i.statusInfo.info]
57270
57270
  ])
57271
57271
  ], 512), [
57272
57272
  [Wt, i.statusInfo.show]
57273
57273
  ]),
57274
57274
  X("div", {
57275
- class: tt(["power-editor-image-selection-mask", [{ selected: t.selected }]]),
57275
+ class: Ye(["power-editor-image-selection-mask", [{ selected: t.selected }]]),
57276
57276
  style: ut({ "--selected-bg": i.thisForeground })
57277
57277
  }, null, 6)
57278
57278
  ]),
@@ -58699,7 +58699,7 @@ H400000v` + (40 + h) + `H845.2724
58699
58699
  s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
58700
58700
  c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
58701
58701
  M` + (834 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
58702
- }, Ze = function(h, p) {
58702
+ }, Xe = function(h, p) {
58703
58703
  return "M263," + (601 + h + p) + `c0.7,0,18,39.7,52,119
58704
58704
  c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
58705
58705
  c340,-704.7,510.7,-1060.3,512,-1067
@@ -58711,7 +58711,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
58711
58711
  s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
58712
58712
  c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
58713
58713
  M` + (1001 + h) + " " + p + "h400000v" + (40 + h) + "h-400000z";
58714
- }, Xe = function(h, p) {
58714
+ }, Je = function(h, p) {
58715
58715
  return "M983 " + (10 + h + p) + `
58716
58716
  l` + h / 3.13 + " -" + h + `
58717
58717
  c4,-6.7,10,-10,18,-10 H400000v` + (40 + h) + `
@@ -58761,10 +58761,10 @@ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
58761
58761
  _ = yt(p, Ve);
58762
58762
  break;
58763
58763
  case "sqrtSize1":
58764
- _ = Ze(p, Ve);
58764
+ _ = Xe(p, Ve);
58765
58765
  break;
58766
58766
  case "sqrtSize2":
58767
- _ = Xe(p, Ve);
58767
+ _ = Je(p, Ve);
58768
58768
  break;
58769
58769
  case "sqrtSize3":
58770
58770
  _ = vt(p, Ve);
@@ -61891,8 +61891,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
61891
61891
  var Be = ti("textrm", p.fontWeight, p.fontShape);
61892
61892
  return kn(w, Be, _, p, E.concat(p.fontWeight, p.fontShape));
61893
61893
  } else {
61894
- var et = ti(Ee, p.fontWeight, p.fontShape);
61895
- return kn(w, et, _, p, E.concat(et, p.fontWeight, p.fontShape));
61894
+ var tt = ti(Ee, p.fontWeight, p.fontShape);
61895
+ return kn(w, tt, _, p, E.concat(tt, p.fontWeight, p.fontShape));
61896
61896
  }
61897
61897
  } else
61898
61898
  throw new Error("unexpected type: " + g + " in makeOrd");
@@ -61993,8 +61993,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
61993
61993
  if (we.type === "kern")
61994
61994
  ue += we.size;
61995
61995
  else {
61996
- var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {}, et = Ft(Ae, [G, Ee], void 0, Be);
61997
- et.style.top = -E - ue - Ee.depth + "em", we.marginLeft && (et.style.marginLeft = we.marginLeft), we.marginRight && (et.style.marginRight = we.marginRight), Y.push(et), ue += Ee.height + Ee.depth;
61996
+ var Ee = we.elem, Ae = we.wrapperClasses || [], Be = we.wrapperStyle || {}, tt = Ft(Ae, [G, Ee], void 0, Be);
61997
+ tt.style.top = -E - ue - Ee.depth + "em", we.marginLeft && (tt.style.marginLeft = we.marginLeft), we.marginRight && (tt.style.marginRight = we.marginRight), Y.push(tt), ue += Ee.height + Ee.depth;
61998
61998
  }
61999
61999
  se = Math.min(se, ue), ce = Math.max(ce, ue);
62000
62000
  }
@@ -62248,7 +62248,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62248
62248
  }, sn = function(h, p, g, _) {
62249
62249
  _ === void 0 && (_ = [null, null]);
62250
62250
  for (var w = [], E = 0; E < h.length; E++) {
62251
- var R = Je(h[E], p);
62251
+ var R = et(h[E], p);
62252
62252
  if (R instanceof at) {
62253
62253
  var L = R.children;
62254
62254
  w.push.apply(w, L);
@@ -62314,7 +62314,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62314
62314
  }, gs = function(h, p) {
62315
62315
  var g = ["nulldelimiter"].concat(h.baseSizingClasses());
62316
62316
  return Nr(p.concat(g));
62317
- }, Je = function(h, p, g) {
62317
+ }, et = function(h, p, g) {
62318
62318
  if (!h)
62319
62319
  return Nr();
62320
62320
  if (Na[h.type]) {
@@ -62661,7 +62661,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62661
62661
  height: ue
62662
62662
  };
62663
62663
  } else {
62664
- var Ae = [], Be = W6[F], et = Be[0], ft = Be[1], Lt = Be[2], ct = Lt / 1e3, pt = et.length, $t, Mt;
62664
+ var Ae = [], Be = W6[F], tt = Be[0], ft = Be[1], Lt = Be[2], ct = Lt / 1e3, pt = tt.length, $t, Mt;
62665
62665
  if (pt === 1) {
62666
62666
  var Dn = Be[3];
62667
62667
  $t = ["hide-tail"], Mt = [Dn];
@@ -62673,7 +62673,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62673
62673
  throw new Error(`Correct katexImagesData or update code here to support
62674
62674
  ` + pt + " children.");
62675
62675
  for (var Nn = 0; Nn < pt; Nn++) {
62676
- var oi = new ur(et[Nn]), gr = new dn([oi], {
62676
+ var oi = new ur(tt[Nn]), gr = new dn([oi], {
62677
62677
  width: "400em",
62678
62678
  height: ct + "em",
62679
62679
  viewBox: "0 0 " + L + " " + Lt,
@@ -62746,10 +62746,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62746
62746
  }
62747
62747
  var xu = function(h, p) {
62748
62748
  var g, _, w;
62749
- h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(Je(h, p)), h.base = _) : (_ = We(h, "accent"), g = _.base);
62750
- var E = Je(g, p.havingCrampedStyle()), R = _.isShifty && x.isCharacterBox(g), L = 0;
62749
+ h && h.type === "supsub" ? (_ = We(h.base, "accent"), g = _.base, h.base = g, w = Ca(et(h, p)), h.base = _) : (_ = We(h, "accent"), g = _.base);
62750
+ var E = et(g, p.havingCrampedStyle()), R = _.isShifty && x.isCharacterBox(g), L = 0;
62751
62751
  if (R) {
62752
- var F = x.getBaseElem(g), G = Je(F, p.havingCrampedStyle());
62752
+ var F = x.getBaseElem(g), G = et(F, p.havingCrampedStyle());
62753
62753
  L = Ri(G).skew;
62754
62754
  }
62755
62755
  var Y = _.label === "\\c", se = Y ? E.height + E.depth : Math.min(E.height, p.fontMetrics().xHeight), ce;
@@ -62858,7 +62858,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62858
62858
  };
62859
62859
  },
62860
62860
  htmlBuilder: function(h, p) {
62861
- var g = Je(h.base, p), _ = Rr.svgSpan(h, p), w = h.label === "\\utilde" ? 0.12 : 0, E = W.makeVList({
62861
+ var g = et(h.base, p), _ = Rr.svgSpan(h, p), w = h.label === "\\utilde" ? 0.12 : 0, E = W.makeVList({
62862
62862
  positionType: "top",
62863
62863
  positionData: g.height,
62864
62864
  children: [{
@@ -62933,10 +62933,10 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
62933
62933
  // Flow is unable to correctly infer the type of `group`, even though it's
62934
62934
  // unamibiguously determined from the passed-in `type` above.
62935
62935
  htmlBuilder: function(h, p) {
62936
- var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(Je(h.body, _, p), p), E = h.label.slice(0, 2) === "\\x" ? "x" : "cd";
62936
+ var g = p.style, _ = p.havingStyle(g.sup()), w = W.wrapFragment(et(h.body, _, p), p), E = h.label.slice(0, 2) === "\\x" ? "x" : "cd";
62937
62937
  w.classes.push(E + "-arrow-pad");
62938
62938
  var R;
62939
- h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(Je(h.below, _, p), p), R.classes.push(E + "-arrow-pad"));
62939
+ h.below && (_ = p.havingStyle(g.sub()), R = W.wrapFragment(et(h.below, _, p), p), R.classes.push(E + "-arrow-pad"));
62940
62940
  var L = Rr.svgSpan(h, p), F = -p.fontMetrics().axisHeight + 0.5 * L.height, G = -p.fontMetrics().axisHeight - 0.5 * L.height - 0.111;
62941
62941
  (w.depth > 0.25 || h.label === "\\xleftequilibrium") && (G -= w.depth);
62942
62942
  var Y;
@@ -63142,7 +63142,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63142
63142
  };
63143
63143
  },
63144
63144
  htmlBuilder: function(h, p) {
63145
- var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(Je(h.label, g, p), p);
63145
+ var g = p.havingStyle(p.style.sup()), _ = W.wrapFragment(et(h.label, g, p), p);
63146
63146
  return _.classes.push("cd-label-" + h.side), _.style.bottom = 0.8 - _.depth + "em", _.height = 0, _.depth = 0, _;
63147
63147
  },
63148
63148
  mathmlBuilder: function(h, p) {
@@ -63164,7 +63164,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63164
63164
  };
63165
63165
  },
63166
63166
  htmlBuilder: function(h, p) {
63167
- var g = W.wrapFragment(Je(h.fragment, p), p);
63167
+ var g = W.wrapFragment(et(h.fragment, p), p);
63168
63168
  return g.classes.push("cd-vert-arrow"), g;
63169
63169
  },
63170
63170
  mathmlBuilder: function(h, p) {
@@ -63446,8 +63446,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63446
63446
  h === "\\uparrow" ? F = G = "⏐" : h === "\\Uparrow" ? F = G = "‖" : h === "\\downarrow" ? R = F = "⏐" : h === "\\Downarrow" ? R = F = "‖" : h === "\\updownarrow" ? (R = "\\uparrow", F = "⏐", G = "\\downarrow") : h === "\\Updownarrow" ? (R = "\\Uparrow", F = "‖", G = "\\Downarrow") : x.contains(i5, h) ? F = "∣" : x.contains(o5, h) ? F = "∥" : h === "[" || h === "\\lbrack" ? (R = "⎡", F = "⎢", G = "⎣", Y = "Size4-Regular") : h === "]" || h === "\\rbrack" ? (R = "⎤", F = "⎥", G = "⎦", Y = "Size4-Regular") : h === "\\lfloor" || h === "⌊" ? (F = R = "⎢", G = "⎣", Y = "Size4-Regular") : h === "\\lceil" || h === "⌈" ? (R = "⎡", F = G = "⎢", Y = "Size4-Regular") : h === "\\rfloor" || h === "⌋" ? (F = R = "⎥", G = "⎦", Y = "Size4-Regular") : h === "\\rceil" || h === "⌉" ? (R = "⎤", F = G = "⎥", Y = "Size4-Regular") : h === "(" || h === "\\lparen" ? (R = "⎛", F = "⎜", G = "⎝", Y = "Size4-Regular") : h === ")" || h === "\\rparen" ? (R = "⎞", F = "⎟", G = "⎠", Y = "Size4-Regular") : h === "\\{" || h === "\\lbrace" ? (R = "⎧", L = "⎨", G = "⎩", F = "⎪", Y = "Size4-Regular") : h === "\\}" || h === "\\rbrace" ? (R = "⎫", L = "⎬", G = "⎭", F = "⎪", Y = "Size4-Regular") : h === "\\lgroup" || h === "⟮" ? (R = "⎧", G = "⎩", F = "⎪", Y = "Size4-Regular") : h === "\\rgroup" || h === "⟯" ? (R = "⎫", G = "⎭", F = "⎪", Y = "Size4-Regular") : h === "\\lmoustache" || h === "⎰" ? (R = "⎧", G = "⎭", F = "⎪", Y = "Size4-Regular") : (h === "\\rmoustache" || h === "⎱") && (R = "⎫", G = "⎩", F = "⎪", Y = "Size4-Regular");
63447
63447
  var se = _s(R, Y, w), ce = se.height + se.depth, ue = _s(F, Y, w), _e = ue.height + ue.depth, we = _s(G, Y, w), Ee = we.height + we.depth, Ae = 0, Be = 1;
63448
63448
  if (L !== null) {
63449
- var et = _s(L, Y, w);
63450
- Ae = et.height + et.depth, Be = 2;
63449
+ var tt = _s(L, Y, w);
63450
+ Ae = tt.height + tt.depth, Be = 2;
63451
63451
  }
63452
63452
  var ft = ce + Ee + Ae, Lt = Math.max(0, Math.ceil((p - ft) / (Be * _e))), ct = ft + Lt * Be * _e, pt = _.fontMetrics().axisHeight;
63453
63453
  g && (pt *= _.sizeMultiplier);
@@ -63807,7 +63807,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63807
63807
  }
63808
63808
  });
63809
63809
  var Nu = function(h, p) {
63810
- var g = W.wrapFragment(Je(h.body, p), p), _ = h.label.substr(1), w = p.sizeMultiplier, E, R = 0, L = x.isCharacterBox(h.body);
63810
+ var g = W.wrapFragment(et(h.body, p), p), _ = h.label.substr(1), w = p.sizeMultiplier, E, R = 0, L = x.isCharacterBox(h.body);
63811
63811
  if (_ === "sout")
63812
63812
  E = W.makeSpan(["stretchy", "sout"]), E.height = p.fontMetrics().defaultRuleThickness / w, R = -0.5 * p.fontMetrics().xHeight;
63813
63813
  else if (_ === "phase") {
@@ -63857,7 +63857,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63857
63857
  ]
63858
63858
  }, p);
63859
63859
  else {
63860
- var et = /cancel|phase/.test(_) ? ["svg-align"] : [];
63860
+ var tt = /cancel|phase/.test(_) ? ["svg-align"] : [];
63861
63861
  Be = W.makeVList({
63862
63862
  positionType: "individualShift",
63863
63863
  children: [
@@ -63871,7 +63871,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
63871
63871
  type: "elem",
63872
63872
  elem: E,
63873
63873
  shift: R,
63874
- wrapperClasses: et
63874
+ wrapperClasses: tt
63875
63875
  }
63876
63876
  ]
63877
63877
  }, p);
@@ -64069,8 +64069,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64069
64069
  break;
64070
64070
  } else if (Be === "\\\\") {
64071
64071
  T.consume();
64072
- var et = void 0;
64073
- T.gullet.future().text !== " " && (et = T.parseSizeGroup(!0)), we.push(et ? et.value : null), Ee.push(fm(T)), ue = [], _e.push(ue);
64072
+ var tt = void 0;
64073
+ T.gullet.future().text !== " " && (tt = T.parseSizeGroup(!0)), we.push(tt ? tt.value : null), Ee.push(fm(T)), ue = [], _e.push(ue);
64074
64074
  } else
64075
64075
  throw new o("Expected & or \\\\ or \\cr or \\end", T.nextToken);
64076
64076
  }
@@ -64106,23 +64106,23 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64106
64106
  number: 3,
64107
64107
  unit: "ex"
64108
64108
  }, p) : 12 * Y, _e = 3 * Y, we = h.arraystretch * ue, Ee = 0.7 * we, Ae = 0.3 * we, Be = 0;
64109
- function et(Jm) {
64109
+ function tt(Jm) {
64110
64110
  for (var Ua = 0; Ua < Jm.length; ++Ua)
64111
64111
  Ua > 0 && (Be += 0.25), F.push({
64112
64112
  pos: Be,
64113
64113
  isDashed: Jm[Ua]
64114
64114
  });
64115
64115
  }
64116
- for (et(E[0]), g = 0; g < h.body.length; ++g) {
64116
+ for (tt(E[0]), g = 0; g < h.body.length; ++g) {
64117
64117
  var ft = h.body[g], Lt = Ee, ct = Ae;
64118
64118
  R < ft.length && (R = ft.length);
64119
64119
  var pt = new Array(ft.length);
64120
64120
  for (_ = 0; _ < ft.length; ++_) {
64121
- var $t = Je(ft[_], p);
64121
+ var $t = et(ft[_], p);
64122
64122
  ct < $t.depth && (ct = $t.depth), Lt < $t.height && (Lt = $t.height), pt[_] = $t;
64123
64123
  }
64124
64124
  var Mt = h.rowGaps[g], Dn = 0;
64125
- Mt && (Dn = rt(Mt, p), Dn > 0 && (Dn += Ae, ct < Dn && (ct = Dn), Dn = 0)), h.addJot && (ct += _e), pt.height = Lt, pt.depth = ct, Be += Lt, pt.pos = Be, Be += ct + Dn, L[g] = pt, et(E[g + 1]);
64125
+ Mt && (Dn = rt(Mt, p), Dn > 0 && (Dn += Ae, ct < Dn && (ct = Dn), Dn = 0)), h.addJot && (ct += _e), pt.height = Lt, pt.depth = ct, Be += Lt, pt.pos = Be, Be += ct + Dn, L[g] = pt, tt(E[g + 1]);
64126
64126
  }
64127
64127
  var Nn = Be / 2 + p.fontMetrics().axisHeight, oi = h.cols || [], gr = [], Rn, No, Qm = [];
64128
64128
  if (h.addEqnNum)
@@ -64221,7 +64221,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64221
64221
  G.setAttribute("columnalign", ce.trim()), /[sd]/.test(_e) && G.setAttribute("columnlines", _e.trim());
64222
64222
  }
64223
64223
  if (h.colSeparationType === "align") {
64224
- for (var et = h.cols || [], ft = "", Lt = 1; Lt < et.length; Lt++)
64224
+ for (var tt = h.cols || [], ft = "", Lt = 1; Lt < tt.length; Lt++)
64225
64225
  ft += Lt % 2 ? "0em " : "1em ";
64226
64226
  G.setAttribute("columnspacing", ft.trim());
64227
64227
  } else h.colSeparationType === "alignat" || h.colSeparationType === "gather" ? G.setAttribute("columnspacing", "0em") : h.colSeparationType === "small" ? G.setAttribute("columnspacing", "0.2778em") : h.colSeparationType === "CD" ? G.setAttribute("columnspacing", "0.5em") : G.setAttribute("columnspacing", "1em");
@@ -64261,9 +64261,9 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64261
64261
  if (se)
64262
64262
  R < we.length && (R = we.length);
64263
64263
  else {
64264
- var et = we.length / 2;
64265
- if (E < et)
64266
- throw new o("Too many math in a row: " + ("expected " + E + ", but got " + et), we[0]);
64264
+ var tt = we.length / 2;
64265
+ if (E < tt)
64266
+ throw new o("Too many math in a row: " + ("expected " + E + ", but got " + tt), we[0]);
64267
64267
  }
64268
64268
  });
64269
64269
  for (var ce = 0; ce < R; ++ce) {
@@ -64650,7 +64650,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64650
64650
  });
64651
64651
  var _m = function(h, p) {
64652
64652
  var g = h.font, _ = p.withFont(g);
64653
- return Je(h.body, _);
64653
+ return et(h.body, _);
64654
64654
  }, ym = function(h, p) {
64655
64655
  var g = h.font, _ = p.withFont(g);
64656
64656
  return xt(h.body, _);
@@ -64745,13 +64745,13 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64745
64745
  }, Lu = function(h, p) {
64746
64746
  var g = wm(h.size, p.style), _ = g.fracNum(), w = g.fracDen(), E;
64747
64747
  E = p.havingStyle(_);
64748
- var R = Je(h.numer, E, p);
64748
+ var R = et(h.numer, E, p);
64749
64749
  if (h.continued) {
64750
64750
  var L = 8.5 / p.fontMetrics().ptPerEm, F = 3.5 / p.fontMetrics().ptPerEm;
64751
64751
  R.height = R.height < L ? L : R.height, R.depth = R.depth < F ? F : R.depth;
64752
64752
  }
64753
64753
  E = p.havingStyle(w);
64754
- var G = Je(h.denom, E, p), Y, se, ce;
64754
+ var G = et(h.denom, E, p), Y, se, ce;
64755
64755
  h.hasBarLine ? (h.barSize ? (se = rt(h.barSize, p), Y = W.makeLineSpan("frac-line", p, se)) : Y = W.makeLineSpan("frac-line", p), se = Y.height, ce = Y.height) : (Y = null, se = 0, ce = p.fontMetrics().defaultRuleThickness);
64756
64756
  var ue, _e, we;
64757
64757
  g.size === Z.DISPLAY.size || h.size === "display" ? (ue = p.fontMetrics().num1, se > 0 ? _e = 3 * ce : _e = 7 * ce, we = p.fontMetrics().denom1) : (se > 0 ? (ue = p.fontMetrics().num2, _e = ce) : (ue = p.fontMetrics().num3, _e = 3 * ce), we = p.fontMetrics().denom2);
@@ -64759,7 +64759,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64759
64759
  if (Y) {
64760
64760
  var Be = p.fontMetrics().axisHeight;
64761
64761
  ue - R.depth - (Be + 0.5 * se) < _e && (ue += _e - (ue - R.depth - (Be + 0.5 * se))), Be - 0.5 * se - (G.height - we) < _e && (we += _e - (Be - 0.5 * se - (G.height - we)));
64762
- var et = -(Be - 0.5 * se);
64762
+ var tt = -(Be - 0.5 * se);
64763
64763
  Ee = W.makeVList({
64764
64764
  positionType: "individualShift",
64765
64765
  children: [{
@@ -64769,7 +64769,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
64769
64769
  }, {
64770
64770
  type: "elem",
64771
64771
  elem: Y,
64772
- shift: et
64772
+ shift: tt
64773
64773
  }, {
64774
64774
  type: "elem",
64775
64775
  elem: R,
@@ -65039,8 +65039,8 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65039
65039
  });
65040
65040
  var Sm = function(h, p) {
65041
65041
  var g = p.style, _, w;
65042
- h.type === "supsub" ? (_ = h.sup ? Je(h.sup, p.havingStyle(g.sup()), p) : Je(h.sub, p.havingStyle(g.sub()), p), w = We(h.base, "horizBrace")) : w = We(h, "horizBrace");
65043
- var E = Je(w.base, p.havingBaseStyle(Z.DISPLAY)), R = Rr.svgSpan(w, p), L;
65042
+ h.type === "supsub" ? (_ = h.sup ? et(h.sup, p.havingStyle(g.sup()), p) : et(h.sub, p.havingStyle(g.sub()), p), w = We(h.base, "horizBrace")) : w = We(h, "horizBrace");
65043
+ var E = et(w.base, p.havingBaseStyle(Z.DISPLAY)), R = Rr.svgSpan(w, p), L;
65044
65044
  if (w.isOver ? (L = W.makeVList({
65045
65045
  positionType: "firstBaseline",
65046
65046
  children: [{
@@ -65440,7 +65440,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65440
65440
  },
65441
65441
  htmlBuilder: function(h, p) {
65442
65442
  var g;
65443
- h.alignment === "clap" ? (g = W.makeSpan([], [Je(h.body, p)]), g = W.makeSpan(["inner"], [g], p)) : g = W.makeSpan(["inner"], [Je(h.body, p)]);
65443
+ h.alignment === "clap" ? (g = W.makeSpan([], [et(h.body, p)]), g = W.makeSpan(["inner"], [g], p)) : g = W.makeSpan(["inner"], [et(h.body, p)]);
65444
65444
  var _ = W.makeSpan(["fix"], []), w = W.makeSpan([h.alignment], [g, _], p), E = W.makeSpan(["strut"]);
65445
65445
  return E.style.height = w.height + w.depth + "em", E.style.verticalAlign = -w.depth + "em", w.children.unshift(E), w = W.makeSpan(["thinbox"], [w], p), W.makeSpan(["mord", "vbox"], [w], p);
65446
65446
  },
@@ -65529,14 +65529,14 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65529
65529
  h = W.makeSpan([], [h]);
65530
65530
  var L = g && x.isCharacterBox(g), F, G;
65531
65531
  if (p) {
65532
- var Y = Je(p, _.havingStyle(w.sup()), _);
65532
+ var Y = et(p, _.havingStyle(w.sup()), _);
65533
65533
  G = {
65534
65534
  elem: Y,
65535
65535
  kern: Math.max(_.fontMetrics().bigOpSpacing1, _.fontMetrics().bigOpSpacing3 - Y.depth)
65536
65536
  };
65537
65537
  }
65538
65538
  if (g) {
65539
- var se = Je(g, _.havingStyle(w.sub()), _);
65539
+ var se = et(g, _.havingStyle(w.sub()), _);
65540
65540
  F = {
65541
65541
  elem: se,
65542
65542
  kern: Math.max(_.fontMetrics().bigOpSpacing2, _.fontMetrics().bigOpSpacing4 - se.height)
@@ -65886,7 +65886,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65886
65886
  };
65887
65887
  },
65888
65888
  htmlBuilder: function(h, p) {
65889
- var g = Je(h.body, p.havingCrampedStyle()), _ = W.makeLineSpan("overline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
65889
+ var g = et(h.body, p.havingCrampedStyle()), _ = W.makeLineSpan("overline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
65890
65890
  positionType: "firstBaseline",
65891
65891
  children: [{
65892
65892
  type: "elem",
@@ -65949,7 +65949,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65949
65949
  };
65950
65950
  },
65951
65951
  htmlBuilder: function(h, p) {
65952
- var g = W.makeSpan([], [Je(h.body, p.withPhantom())]);
65952
+ var g = W.makeSpan([], [et(h.body, p.withPhantom())]);
65953
65953
  if (g.height = 0, g.depth = 0, g.children)
65954
65954
  for (var _ = 0; _ < g.children.length; _++)
65955
65955
  g.children[_].height = 0, g.children[_].depth = 0;
@@ -65981,7 +65981,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
65981
65981
  };
65982
65982
  },
65983
65983
  htmlBuilder: function(h, p) {
65984
- var g = W.makeSpan(["inner"], [Je(h.body, p.withPhantom())]), _ = W.makeSpan(["fix"], []);
65984
+ var g = W.makeSpan(["inner"], [et(h.body, p.withPhantom())]), _ = W.makeSpan(["fix"], []);
65985
65985
  return W.makeSpan(["mord", "rlap"], [g, _], p);
65986
65986
  },
65987
65987
  mathmlBuilder: function(h, p) {
@@ -66006,7 +66006,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66006
66006
  };
66007
66007
  },
66008
66008
  htmlBuilder: function(h, p) {
66009
- var g = Je(h.body, p), _ = rt(h.dy, p);
66009
+ var g = et(h.body, p), _ = rt(h.dy, p);
66010
66010
  return W.makeVList({
66011
66011
  positionType: "shift",
66012
66012
  positionData: -_,
@@ -66116,7 +66116,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66116
66116
  };
66117
66117
  },
66118
66118
  htmlBuilder: function(h, p) {
66119
- var g = W.makeSpan([], [Je(h.body, p)]);
66119
+ var g = W.makeSpan([], [et(h.body, p)]);
66120
66120
  if (!h.smashHeight && !h.smashDepth)
66121
66121
  return g;
66122
66122
  if (h.smashHeight && (g.height = 0, g.children))
@@ -66155,7 +66155,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66155
66155
  };
66156
66156
  },
66157
66157
  htmlBuilder: function(h, p) {
66158
- var g = Je(h.body, p.havingCrampedStyle());
66158
+ var g = et(h.body, p.havingCrampedStyle());
66159
66159
  g.height === 0 && (g.height = p.fontMetrics().xHeight), g = W.wrapFragment(g, p);
66160
66160
  var _ = p.fontMetrics(), w = _.defaultRuleThickness, E = w;
66161
66161
  p.style.id < Z.TEXT.id && (E = p.fontMetrics().xHeight);
@@ -66181,15 +66181,15 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66181
66181
  }]
66182
66182
  }, p);
66183
66183
  if (h.index) {
66184
- var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee = Je(h.index, we, p), Ae = 0.6 * (_e.height - _e.depth), Be = W.makeVList({
66184
+ var we = p.havingStyle(Z.SCRIPTSCRIPT), Ee = et(h.index, we, p), Ae = 0.6 * (_e.height - _e.depth), Be = W.makeVList({
66185
66185
  positionType: "shift",
66186
66186
  positionData: -Ae,
66187
66187
  children: [{
66188
66188
  type: "elem",
66189
66189
  elem: Ee
66190
66190
  }]
66191
- }, p), et = W.makeSpan(["root"], [Be]);
66192
- return W.makeSpan(["mord", "sqrt"], [et, _e], p);
66191
+ }, p), tt = W.makeSpan(["root"], [Be]);
66192
+ return W.makeSpan(["mord", "sqrt"], [tt, _e], p);
66193
66193
  } else
66194
66194
  return W.makeSpan(["mord", "sqrt"], [_e], p);
66195
66195
  },
@@ -66263,21 +66263,21 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66263
66263
  var g = x5(h, p);
66264
66264
  if (g)
66265
66265
  return g(h, p);
66266
- var _ = h.base, w = h.sup, E = h.sub, R = Je(_, p), L, F, G = p.fontMetrics(), Y = 0, se = 0, ce = _ && x.isCharacterBox(_);
66266
+ var _ = h.base, w = h.sup, E = h.sub, R = et(_, p), L, F, G = p.fontMetrics(), Y = 0, se = 0, ce = _ && x.isCharacterBox(_);
66267
66267
  if (w) {
66268
66268
  var ue = p.havingStyle(p.style.sup());
66269
- L = Je(w, ue, p), ce || (Y = R.height - ue.fontMetrics().supDrop * ue.sizeMultiplier / p.sizeMultiplier);
66269
+ L = et(w, ue, p), ce || (Y = R.height - ue.fontMetrics().supDrop * ue.sizeMultiplier / p.sizeMultiplier);
66270
66270
  }
66271
66271
  if (E) {
66272
66272
  var _e = p.havingStyle(p.style.sub());
66273
- F = Je(E, _e, p), ce || (se = R.depth + _e.fontMetrics().subDrop * _e.sizeMultiplier / p.sizeMultiplier);
66273
+ F = et(E, _e, p), ce || (se = R.depth + _e.fontMetrics().subDrop * _e.sizeMultiplier / p.sizeMultiplier);
66274
66274
  }
66275
66275
  var we;
66276
66276
  p.style === Z.DISPLAY ? we = G.sup1 : p.style.cramped ? we = G.sup3 : we = G.sup2;
66277
66277
  var Ee = p.sizeMultiplier, Ae = 0.5 / G.ptPerEm / Ee + "em", Be = null;
66278
66278
  if (F) {
66279
- var et = h.base && h.base.type === "op" && h.base.name && (h.base.name === "\\oiint" || h.base.name === "\\oiiint");
66280
- (R instanceof yn || et) && (Be = -R.italic + "em");
66279
+ var tt = h.base && h.base.type === "op" && h.base.name && (h.base.name === "\\oiint" || h.base.name === "\\oiiint");
66280
+ (R instanceof yn || tt) && (Be = -R.italic + "em");
66281
66281
  }
66282
66282
  var ft;
66283
66283
  if (L && F) {
@@ -66516,7 +66516,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66516
66516
  };
66517
66517
  },
66518
66518
  htmlBuilder: function(h, p) {
66519
- var g = Je(h.body, p), _ = W.makeLineSpan("underline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
66519
+ var g = et(h.body, p), _ = W.makeLineSpan("underline-line", p), w = p.fontMetrics().defaultRuleThickness, E = W.makeVList({
66520
66520
  positionType: "top",
66521
66521
  positionData: g.height,
66522
66522
  children: [{
@@ -66559,7 +66559,7 @@ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`
66559
66559
  };
66560
66560
  },
66561
66561
  htmlBuilder: function(h, p) {
66562
- var g = Je(h.body, p), _ = p.fontMetrics().axisHeight, w = 0.5 * (g.height - _ - (g.depth + _));
66562
+ var g = et(h.body, p), _ = p.fontMetrics().axisHeight, w = 0.5 * (g.height - _ - (g.depth + _));
66563
66563
  return W.makeVList({
66564
66564
  positionType: "shift",
66565
66565
  positionData: w,
@@ -68193,7 +68193,7 @@ function pge(n, e, t, r, i, o) {
68193
68193
  return t.node ? (He(), rn(a, {
68194
68194
  key: 0,
68195
68195
  as: t.node.attrs.tag,
68196
- class: tt(["power-editor-equation-container", {
68196
+ class: Ye(["power-editor-equation-container", {
68197
68197
  dark: i.thisTheme === "dark",
68198
68198
  div: t.node.attrs.tag == "div",
68199
68199
  selected: t.selected
@@ -68231,7 +68231,7 @@ function pge(n, e, t, r, i, o) {
68231
68231
  onClick: o.close
68232
68232
  }, {
68233
68233
  default: ie(() => [
68234
- ir(Ye(i.getTitle("Done")), 1)
68234
+ ir(Ze(i.getTitle("Done")), 1)
68235
68235
  ]),
68236
68236
  _: 1
68237
68237
  }, 8, ["disabled", "background", "onClick"])
@@ -68254,7 +68254,7 @@ function pge(n, e, t, r, i, o) {
68254
68254
  X("i", { class: "ms-Icon ms-Icon--GripperDotsVertical" }, null, -1)
68255
68255
  ]), 32)) : Pt("", !0),
68256
68256
  X("span", {
68257
- class: tt(["power-editor-equation-target", { empty: i.thisValue === "" }]),
68257
+ class: Ye(["power-editor-equation-target", { empty: i.thisValue === "" }]),
68258
68258
  placeholder: t.node.attrs.emptyPlaceholder,
68259
68259
  innerHTML: i.thisValue === "" ? t.node.attrs.emptyPlaceholder : i.equationString,
68260
68260
  ref: "target",
@@ -68459,13 +68459,18 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68459
68459
  };
68460
68460
  },
68461
68461
  watch: {
68462
+ thisPlaceholder(n) {
68463
+ n !== this.node.attrs.placeholder && this.updateAttributes({
68464
+ placeholder: n
68465
+ });
68466
+ },
68462
68467
  showPopper(n) {
68463
68468
  n && this.$nextTick(() => {
68464
68469
  this.showPos();
68465
68470
  });
68466
68471
  },
68467
- "node.attrs.value"() {
68468
- this.delRecover(), this.getFilterItems();
68472
+ "node.attrs.value"(n, e) {
68473
+ this.delRecover(), this.getFilterItems(n, e);
68469
68474
  },
68470
68475
  "editor.storage.defaultStorage.theme"(n) {
68471
68476
  this.thisTheme = n;
@@ -68498,12 +68503,22 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68498
68503
  } catch {
68499
68504
  return "";
68500
68505
  }
68506
+ },
68507
+ thisPlaceholder() {
68508
+ var e, t;
68509
+ return ((t = (e = this.editor.storage.defaultStorage.mentionItemTools) == null ? void 0 : e.placeholder) == null ? void 0 : t.call(
68510
+ e,
68511
+ this.node.attrs.currentItem,
68512
+ this.node.attrs.value
68513
+ )) || this.node.attrs.placeholder;
68501
68514
  }
68502
68515
  },
68503
68516
  mounted() {
68504
- this.outSideClickInit(), this.windowEventInit(), setTimeout(() => {
68517
+ this.outSideClickInit(), this.windowEventInit(), this.thisPlaceholder !== this.node.attrs.placeholder && this.updateAttributes({
68518
+ placeholder: this.thisPlaceholder
68519
+ }), setTimeout(() => {
68505
68520
  this.node.attrs.freeze || (this.show(), this.$refs.target.focus(), this.$refs.list.setFocus());
68506
- }, 300), this.getFilterItems();
68521
+ }, 300), this.getFilterItems(this.node.attrs.value, "");
68507
68522
  },
68508
68523
  methods: {
68509
68524
  outSideClickInit() {
@@ -68526,17 +68541,19 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68526
68541
  this.$refs.target.focus();
68527
68542
  }, 300));
68528
68543
  },
68529
- async getFilterItems() {
68544
+ async getFilterItems(n, e) {
68530
68545
  this.loading = !0;
68531
- let n = [], e = await this.editor.storage.defaultStorage.mentionItemTools.mentionList(
68532
- this.node.attrs.value
68546
+ let t = [], r = await this.editor.storage.defaultStorage.mentionItemTools.mentionList(
68547
+ n,
68548
+ e
68533
68549
  );
68534
- for (let t of e)
68550
+ for (let i of r)
68535
68551
  await this.editor.storage.defaultStorage.mentionItemTools.filterFunc(
68536
- t,
68537
- this.node.attrs.value
68538
- ) && n.push(t);
68539
- this.filterItems = n, this.loading = !1;
68552
+ i,
68553
+ n,
68554
+ e
68555
+ ) && t.push(i);
68556
+ this.filterItems = t, this.loading = !1;
68540
68557
  },
68541
68558
  chooseItem(n) {
68542
68559
  this.updateAttributes({
@@ -68548,6 +68565,10 @@ const e6 = /* @__PURE__ */ on(dge, [["render", pge]]), mge = /(\$\s|\\\(\s)$/, g
68548
68565
  this.node.attrs.value
68549
68566
  ), this.close();
68550
68567
  },
68568
+ isLoading() {
68569
+ var n;
68570
+ return ((n = this.editor.storage.defaultStorage.mentionItemTools) == null ? void 0 : n.isLoading()) || !1;
68571
+ },
68551
68572
  valueTrigger(n) {
68552
68573
  return typeof n == "function" ? n() : n;
68553
68574
  },
@@ -68591,7 +68612,7 @@ function Age(n, e, t, r, i, o) {
68591
68612
  return t.node ? (He(), rn(l, {
68592
68613
  key: 0,
68593
68614
  as: "span",
68594
- class: tt(["power-editor-mention-container", {
68615
+ class: Ye(["power-editor-mention-container", {
68595
68616
  dark: i.thisTheme === "dark",
68596
68617
  selected: t.selected,
68597
68618
  showing: i.showPopper && i.filterItems.length > 0
@@ -68618,7 +68639,7 @@ function Age(n, e, t, r, i, o) {
68618
68639
  background: "white"
68619
68640
  }, null, 8, ["foreground"])
68620
68641
  ], 512), [
68621
- [Wt, i.loading]
68642
+ [Wt, i.loading || o.isLoading()]
68622
68643
  ]),
68623
68644
  ae(a, {
68624
68645
  modelValue: i.filterItems,
@@ -68634,7 +68655,9 @@ function Age(n, e, t, r, i, o) {
68634
68655
  listItem: ie((c) => [
68635
68656
  c.item.image ? (He(), ot("img", {
68636
68657
  key: 0,
68637
- class: tt(["power-editor-mention-img", [{ avatar: c.item.avatarImg }]]),
68658
+ class: Ye(["power-editor-mention-img", [
68659
+ { avatar: o.valueTrigger(c.item.avatarImg) }
68660
+ ]]),
68638
68661
  src: c.valueTrigger(c.item.image),
68639
68662
  alt: "",
68640
68663
  style: ut({
@@ -68643,14 +68666,14 @@ function Age(n, e, t, r, i, o) {
68643
68666
  }, null, 14, kge)) : Pt("", !0),
68644
68667
  c.item.icon ? (He(), ot("i", {
68645
68668
  key: 1,
68646
- class: tt(["ms-Icon", [`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),
68669
+ class: Ye(["ms-Icon", [`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),
68647
68670
  style: ut([{ color: c.valueTrigger(c.item.iconColor) }, { "margin-right": "15px" }])
68648
68671
  }, null, 6)) : Pt("", !0),
68649
68672
  X("p", {
68650
68673
  style: ut([{
68651
68674
  color: c.valueTrigger(c.item.type) == "header" ? i.thisForeground : c.item.color
68652
68675
  }, { flex: "1", "font-size": "12px" }])
68653
- }, Ye(c.valueTrigger(c.item.name)), 5)
68676
+ }, Ze(c.valueTrigger(c.item.name)), 5)
68654
68677
  ]),
68655
68678
  _: 1
68656
68679
  }, 8, ["modelValue", "theme", "onChooseItem"])
@@ -68674,12 +68697,14 @@ function Age(n, e, t, r, i, o) {
68674
68697
  key: 1,
68675
68698
  src: o.valueTrigger(t.node.attrs.currentItem.image),
68676
68699
  alt: "",
68677
- class: "power-editor-mention-rendered-img",
68700
+ class: Ye(["power-editor-mention-rendered-img", [
68701
+ { avatar: o.valueTrigger(t.node.attrs.currentItem.avatarImg) }
68702
+ ]]),
68678
68703
  style: { height: "15px" }
68679
- }, null, 8, Cge)) : Pt("", !0),
68704
+ }, null, 10, Cge)) : Pt("", !0),
68680
68705
  t.node.attrs.currentItem.icon ? (He(), ot("i", {
68681
68706
  key: 2,
68682
- class: tt(["ms-Icon power-editor-mention-icon", [
68707
+ class: Ye(["ms-Icon power-editor-mention-icon", [
68683
68708
  `ms-Icon--${o.valueTrigger(t.node.attrs.currentItem.icon)}`
68684
68709
  ]]),
68685
68710
  style: ut({
@@ -68688,8 +68713,8 @@ function Age(n, e, t, r, i, o) {
68688
68713
  }, null, 6)) : Pt("", !0),
68689
68714
  Ut(X("input", {
68690
68715
  "onUpdate:modelValue": e[0] || (e[0] = (c) => t.node.attrs.value = c),
68691
- class: tt(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
68692
- placeholder: t.node.attrs.placeholder,
68716
+ class: Ye(["power-editor-mention-input", [{ freeze: t.node.attrs.freeze }]]),
68717
+ placeholder: o.thisPlaceholder,
68693
68718
  readonly: t.node.attrs.freeze,
68694
68719
  ref: "target",
68695
68720
  title: t.node.attrs.value,
@@ -68705,9 +68730,9 @@ function Age(n, e, t, r, i, o) {
68705
68730
  ]),
68706
68731
  X("p", {
68707
68732
  title: t.node.attrs.value,
68708
- class: tt(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
68733
+ class: Ye(["power-editor-mention-placeholder", [{ show: t.node.attrs.freeze }]]),
68709
68734
  style: ut({ color: t.node.attrs.currentItem.color })
68710
- }, Ye(t.node.attrs.value ? t.node.attrs.value : t.node.attrs.placeholder), 15, Tge)
68735
+ }, Ze(t.node.attrs.value ? t.node.attrs.value : o.thisPlaceholder), 15, Tge)
68711
68736
  ])
68712
68737
  ]),
68713
68738
  _: 1
@@ -70852,7 +70877,7 @@ const l4e = /* @__PURE__ */ Tr(a4e), c4e = {
70852
70877
  function g4e(n, e, t, r, i, o) {
70853
70878
  const s = Me("fv-button"), a = Me("fv-slider"), l = Me("media-container"), c = Me("node-view-wrapper");
70854
70879
  return He(), rn(c, {
70855
- class: tt(["power-editor-drawing-block-container", [{ dark: i.thisTheme === "dark" }]]),
70880
+ class: Ye(["power-editor-drawing-block-container", [{ dark: i.thisTheme === "dark" }]]),
70856
70881
  style: ut({ "justify-content": t.node.attrs.alignCenter ? "center" : "flex-start" })
70857
70882
  }, {
70858
70883
  default: ie(() => [
@@ -70887,7 +70912,7 @@ function g4e(n, e, t, r, i, o) {
70887
70912
  style: { width: "150px", height: "100%", "margin-left": "5px", "margin-right": "5px" }
70888
70913
  }, {
70889
70914
  default: ie((u) => [
70890
- X("span", h4e, Ye(u.modelValue), 1)
70915
+ X("span", h4e, Ze(u.modelValue), 1)
70891
70916
  ]),
70892
70917
  _: 1
70893
70918
  }, 8, ["modelValue", "theme", "color"]),
@@ -70920,7 +70945,7 @@ function g4e(n, e, t, r, i, o) {
70920
70945
  onClick: (m) => i.color = u.color
70921
70946
  }, {
70922
70947
  default: ie(() => e[9] || (e[9] = [
70923
- ir(Ye(""))
70948
+ ir(Ze(""))
70924
70949
  ])),
70925
70950
  _: 2,
70926
70951
  __: [9]
@@ -70977,7 +71002,7 @@ function g4e(n, e, t, r, i, o) {
70977
71002
  }, {
70978
71003
  default: ie(() => [
70979
71004
  (He(), ot("svg", {
70980
- class: tt(["canvas-svg", [{ readonly: !t.editor.isEditable }]]),
71005
+ class: Ye(["canvas-svg", [{ readonly: !t.editor.isEditable }]]),
70981
71006
  viewBox: "0 0 500 250",
70982
71007
  ref: "canvas"
70983
71008
  }, [
@@ -71275,7 +71300,7 @@ const b4e = /* @__PURE__ */ on(c4e, [["render", g4e]]), _4e = Rt.create({
71275
71300
  function E4e(n, e, t, r, i, o) {
71276
71301
  const s = Me("fv-callout"), a = Me("fv-drawer");
71277
71302
  return He(), ot("div", {
71278
- class: tt(["power-editor-callout-base-container", [{ dark: t.theme === "dark" }]])
71303
+ class: Ye(["power-editor-callout-base-container", [{ dark: t.theme === "dark" }]])
71279
71304
  }, [
71280
71305
  t.mobileMode ? Pt("", !0) : (He(), rn(s, {
71281
71306
  key: 0,
@@ -71299,7 +71324,7 @@ function E4e(n, e, t, r, i, o) {
71299
71324
  }, {
71300
71325
  header: ie(() => [
71301
71326
  mt(n.$slots, "header", { title: t.title }, () => [
71302
- X("p", w4e, Ye(t.title), 1)
71327
+ X("p", w4e, Ze(t.title), 1)
71303
71328
  ])
71304
71329
  ]),
71305
71330
  main: ie(() => [
@@ -71316,7 +71341,7 @@ function E4e(n, e, t, r, i, o) {
71316
71341
  modelValue: i.thisShow,
71317
71342
  "onUpdate:modelValue": e[2] || (e[2] = (l) => i.thisShow = l),
71318
71343
  theme: t.theme,
71319
- class: tt(["power-editor-callout-base-mobile-container", [{ dark: t.theme === "dark" }]]),
71344
+ class: Ye(["power-editor-callout-base-mobile-container", [{ dark: t.theme === "dark" }]]),
71320
71345
  length: "calc(100% - 50px)",
71321
71346
  background: t.theme === "dark" ? "rgba(56, 56, 56, 0.9)" : "rgba(252, 252, 252, 0.9)",
71322
71347
  "control-padding": "0px 12px",
@@ -71328,7 +71353,7 @@ function E4e(n, e, t, r, i, o) {
71328
71353
  X("div", k4e, [
71329
71354
  mt(n.$slots, "header", { title: t.title }, () => [
71330
71355
  e[3] || (e[3] = X("p", { style: { width: "50px" } }, null, -1)),
71331
- X("p", S4e, Ye(t.title), 1)
71356
+ X("p", S4e, Ze(t.title), 1)
71332
71357
  ]),
71333
71358
  X("p", {
71334
71359
  class: "p-e-c-b-m-close",
@@ -71336,12 +71361,12 @@ function E4e(n, e, t, r, i, o) {
71336
71361
  color: t.theme === "dark" ? "whitesmoke" : t.foreground
71337
71362
  }),
71338
71363
  onClick: e[1] || (e[1] = (l) => i.thisShow = !1)
71339
- }, Ye(o.getTitle("Cancel")), 5)
71364
+ }, Ze(o.getTitle("Cancel")), 5)
71340
71365
  ])
71341
71366
  ]),
71342
71367
  default: ie(() => [
71343
71368
  X("div", {
71344
- class: tt(["p-e-c-b-m-content-block", t.popperClass])
71369
+ class: Ye(["p-e-c-b-m-content-block", t.popperClass])
71345
71370
  }, [
71346
71371
  X("div", C4e, [
71347
71372
  mt(n.$slots, "content", { index: "2" })
@@ -71420,7 +71445,7 @@ function M4e(n, e, t, r, i, o) {
71420
71445
  ]),
71421
71446
  content: ie(() => [
71422
71447
  X("div", {
71423
- class: tt(["power-editor-l-c-block", [{ dark: t.theme === "dark" }]])
71448
+ class: Ye(["power-editor-l-c-block", [{ dark: t.theme === "dark" }]])
71424
71449
  }, [
71425
71450
  Pt("", !0),
71426
71451
  ae(s, {
@@ -71463,7 +71488,7 @@ function M4e(n, e, t, r, i, o) {
71463
71488
  onClick: o.insert
71464
71489
  }, {
71465
71490
  default: ie(() => [
71466
- ir(Ye(o.getTitle("Insert")), 1)
71491
+ ir(Ze(o.getTitle("Insert")), 1)
71467
71492
  ]),
71468
71493
  _: 1
71469
71494
  }, 8, ["disabled", "background", "onClick"])
@@ -71532,7 +71557,7 @@ function I4e(n, e, t, r, i, o) {
71532
71557
  ]),
71533
71558
  content: ie(() => [
71534
71559
  X("div", {
71535
- class: tt(["power-editor-e-c-block", [{ dark: t.theme === "dark" }]])
71560
+ class: Ye(["power-editor-e-c-block", [{ dark: t.theme === "dark" }]])
71536
71561
  }, [
71537
71562
  Pt("", !0),
71538
71563
  ae(s, {
@@ -71575,7 +71600,7 @@ function I4e(n, e, t, r, i, o) {
71575
71600
  onClick: o.insert
71576
71601
  }, {
71577
71602
  default: ie(() => [
71578
- ir(Ye(o.getTitle("Insert")), 1)
71603
+ ir(Ze(o.getTitle("Insert")), 1)
71579
71604
  ]),
71580
71605
  _: 1
71581
71606
  }, 8, ["disabled", "background", "onClick"])
@@ -71690,16 +71715,16 @@ function U4e(n, e, t, r, i, o) {
71690
71715
  X("p", {
71691
71716
  class: "power-menu-sec-title",
71692
71717
  style: ut({ "--power-menu-sec-title-background": t.foreground })
71693
- }, Ye(o.getTitle("Foreground")), 5),
71718
+ }, Ze(o.getTitle("Foreground")), 5),
71694
71719
  X("div", {
71695
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71720
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71696
71721
  onClick: e[0] || (e[0] = (a) => o.execX("unsetColor"))
71697
71722
  }, [
71698
71723
  e[3] || (e[3] = X("p", { class: "peci-example" }, "A", -1)),
71699
- X("p", P4e, Ye(o.getTitle("removeColor")), 1)
71724
+ X("p", P4e, Ze(o.getTitle("removeColor")), 1)
71700
71725
  ], 2),
71701
71726
  (He(!0), ot(Vr, null, wi(i.colorList, (a, l) => (He(), ot("div", {
71702
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("textStyle", { color: a.color }) }]]),
71727
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("textStyle", { color: a.color }) }]]),
71703
71728
  key: "color:" + l,
71704
71729
  onClick: (c) => o.execMoreX("setColor", a.color)
71705
71730
  }, [
@@ -71707,21 +71732,21 @@ function U4e(n, e, t, r, i, o) {
71707
71732
  class: "peci-example",
71708
71733
  style: ut({ color: a.color })
71709
71734
  }, "A", 4),
71710
- X("p", F4e, Ye(o.getTitle(a.name)), 1)
71735
+ X("p", F4e, Ze(o.getTitle(a.name)), 1)
71711
71736
  ], 10, B4e))), 128)),
71712
71737
  X("p", {
71713
71738
  class: "power-menu-sec-title",
71714
71739
  style: ut({ "--power-menu-sec-title-background": t.foreground })
71715
- }, Ye(o.getTitle("Highlight Background")), 5),
71740
+ }, Ze(o.getTitle("Highlight Background")), 5),
71716
71741
  X("div", {
71717
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71742
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark" }]]),
71718
71743
  onClick: e[1] || (e[1] = (a) => o.execX("unsetHighlight"))
71719
71744
  }, [
71720
71745
  e[4] || (e[4] = X("p", { class: "peci-example" }, "A", -1)),
71721
- X("p", z4e, Ye(o.getTitle("removeHighlight")), 1)
71746
+ X("p", z4e, Ze(o.getTitle("removeHighlight")), 1)
71722
71747
  ], 2),
71723
71748
  (He(!0), ot(Vr, null, wi(i.highlightList, (a, l) => (He(), ot("div", {
71724
- class: tt(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("highlight", { color: a.color }) }]]),
71749
+ class: Ye(["power-editor-color-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("highlight", { color: a.color }) }]]),
71725
71750
  key: "highlight:" + l,
71726
71751
  onClick: (c) => o.execMoreX("setHighlight", { color: a.color })
71727
71752
  }, [
@@ -71729,7 +71754,7 @@ function U4e(n, e, t, r, i, o) {
71729
71754
  class: "peci-example",
71730
71755
  style: ut({ background: a.color })
71731
71756
  }, "A", 4),
71732
- X("p", H4e, Ye(o.getTitle(a.name)), 1)
71757
+ X("p", H4e, Ze(o.getTitle(a.name)), 1)
71733
71758
  ], 10, q4e))), 128))
71734
71759
  ]),
71735
71760
  _: 3
@@ -72984,7 +73009,7 @@ function Y4e(n, e, t, r, i, o) {
72984
73009
  ]),
72985
73010
  header: ie((c) => [
72986
73011
  X("div", $4e, [
72987
- X("p", W4e, Ye(o.getTitle(c.title)), 1),
73012
+ X("p", W4e, Ze(o.getTitle(c.title)), 1),
72988
73013
  ae(s, {
72989
73014
  theme: t.theme,
72990
73015
  icon: "Shuffle",
@@ -72995,7 +73020,7 @@ function Y4e(n, e, t, r, i, o) {
72995
73020
  onClick: o.insertRandom
72996
73021
  }, {
72997
73022
  default: ie(() => [
72998
- ir(Ye(o.getTitle("Random")), 1)
73023
+ ir(Ze(o.getTitle("Random")), 1)
72999
73024
  ]),
73000
73025
  _: 1
73001
73026
  }, 8, ["theme", "background", "onClick"])
@@ -73013,7 +73038,7 @@ function Y4e(n, e, t, r, i, o) {
73013
73038
  class: "power-editor-emoji-list",
73014
73039
  key: `type:${d}`
73015
73040
  }, [
73016
- X("p", K4e, Ye(o.getTitle(u.name)), 1),
73041
+ X("p", K4e, Ze(o.getTitle(u.name)), 1),
73017
73042
  X("div", j4e, [
73018
73043
  (He(!0), ot(Vr, null, wi(u.emojis, (m, b) => (He(), ot("i", {
73019
73044
  key: b,
@@ -73106,15 +73131,15 @@ function oye(n, e, t, r, i, o) {
73106
73131
  ]),
73107
73132
  content: ie((c) => [
73108
73133
  X("div", {
73109
- class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73134
+ class: Ye(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73110
73135
  }, [
73111
- X("p", J4e, Ye(o.getTitle("Method")) + " 1", 1),
73136
+ X("p", J4e, Ze(o.getTitle("Method")) + " 1", 1),
73112
73137
  X("i", {
73113
73138
  class: "ms-Icon ms-Icon--Photo2Add power-editor-i-c-icon-1",
73114
73139
  style: ut({ color: t.foreground }),
73115
73140
  onClick: (u) => n.$refs[`img_local_${c.index}`].click()
73116
73141
  }, null, 12, eye),
73117
- X("p", tye, Ye(o.getTitle("Choose Local Image as Base64 (multiple).")), 1),
73142
+ X("p", tye, Ze(o.getTitle("Choose Local Image as Base64 (multiple).")), 1),
73118
73143
  X("input", {
73119
73144
  type: "file",
73120
73145
  accept: "image/gif,image/png,image/jpeg,image/x-png,image/svg+xml",
@@ -73125,9 +73150,9 @@ function oye(n, e, t, r, i, o) {
73125
73150
  }, null, 40, nye)
73126
73151
  ], 2),
73127
73152
  X("div", {
73128
- class: tt(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73153
+ class: Ye(["power-editor-i-c-block", [{ dark: t.theme === "dark" }]])
73129
73154
  }, [
73130
- X("p", rye, Ye(o.getTitle("Method")) + " 2", 1),
73155
+ X("p", rye, Ze(o.getTitle("Method")) + " 2", 1),
73131
73156
  ae(s, {
73132
73157
  modelValue: i.url,
73133
73158
  "onUpdate:modelValue": e[0] || (e[0] = (u) => i.url = u),
@@ -73155,7 +73180,7 @@ function oye(n, e, t, r, i, o) {
73155
73180
  onClick: o.insert
73156
73181
  }, {
73157
73182
  default: ie(() => [
73158
- ir(Ye(o.getTitle("Insert")), 1)
73183
+ ir(Ze(o.getTitle("Insert")), 1)
73159
73184
  ]),
73160
73185
  _: 1
73161
73186
  }, 8, ["disabled", "background", "onClick"])
@@ -73234,7 +73259,7 @@ function uye(n, e, t, r, i, o) {
73234
73259
  ]),
73235
73260
  content: ie(() => [
73236
73261
  (He(), ot(Vr, null, wi(6, (l) => X("div", {
73237
- class: tt(["power-editor-heading-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("heading", { level: l }) }]]),
73262
+ class: Ye(["power-editor-heading-item", [{ dark: t.theme == "dark", choosen: t.editor.isActive("heading", { level: l }) }]]),
73238
73263
  key: "color:" + l,
73239
73264
  onClick: (c) => o.execMoreX("toggleHeading", { level: l })
73240
73265
  }, [
@@ -73247,11 +73272,11 @@ function uye(n, e, t, r, i, o) {
73247
73272
  title: o.getTitle("Heading") + l
73248
73273
  }, {
73249
73274
  default: ie(() => [
73250
- ir("H" + Ye(l), 1)
73275
+ ir("H" + Ze(l), 1)
73251
73276
  ]),
73252
73277
  _: 2
73253
73278
  }, 1032, ["theme", "background", "foreground", "title"]),
73254
- X("p", cye, Ye(o.getTitle("Heading")) + " " + Ye(l), 1)
73279
+ X("p", cye, Ze(o.getTitle("Heading")) + " " + Ze(l), 1)
73255
73280
  ], 10, lye)), 64))
73256
73281
  ]),
73257
73282
  _: 3
@@ -73669,7 +73694,7 @@ const R6 = /* @__PURE__ */ on(hye, [["render", mye]]), gye = {
73669
73694
  function bye(n, e, t, r, i, o) {
73670
73695
  const s = Me("fv-button"), a = Me("heading-callout"), l = Me("color-callout"), c = Me("emoji-callout"), u = Me("table-callout"), d = Me("image-callout"), m = Me("link-callout"), b = Me("embed-callout");
73671
73696
  return He(), ot("div", {
73672
- class: tt(["power-editor-tool-bar-container", [{ dark: i.thisTheme === "dark" }]]),
73697
+ class: Ye(["power-editor-tool-bar-container", [{ dark: i.thisTheme === "dark" }]]),
73673
73698
  style: ut({ height: `${t.toolbarHeight}px`, "border-radius": `${t.toolbarBorderRadius}px` })
73674
73699
  }, [
73675
73700
  mt(n.$slots, "custom-buttons-front", { defaultClass: "power-editor-cmd-btn" }),
@@ -74388,7 +74413,7 @@ const I6 = /* @__PURE__ */ on(gye, [["render", bye]]), _ye = {
74388
74413
  function yye(n, e, t, r, i, o) {
74389
74414
  const s = Me("fv-button"), a = Me("color-callout"), l = Me("table-callout");
74390
74415
  return He(), ot("div", {
74391
- class: tt(["power-editor-bubble-tool-bar-container", [{ dark: i.thisTheme === "dark" }]])
74416
+ class: Ye(["power-editor-bubble-tool-bar-container", [{ dark: i.thisTheme === "dark" }]])
74392
74417
  }, [
74393
74418
  ae(s, {
74394
74419
  class: "power-editor-bubble-cmd-btn",
@@ -74765,6 +74790,8 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
74765
74790
  mentionClickCallback: () => {
74766
74791
  console.log("mentionClickCallback");
74767
74792
  },
74793
+ placeholder: () => "mention",
74794
+ isLoading: () => !1,
74768
74795
  headerForeground: () => this.foreground
74769
74796
  };
74770
74797
  this.editor.storage.defaultStorage.mentionItemTools = Object.assign(
@@ -74994,7 +75021,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
74994
75021
  // this is a function
74995
75022
  focus: () => i.focus()
74996
75023
  }), (o, s) => (He(), ot("div", {
74997
- class: tt(["power-editor-container", [{ dark: n.theme === "dark" }]])
75024
+ class: Ye(["power-editor-container", [{ dark: n.theme === "dark" }]])
74998
75025
  }, [
74999
75026
  ae(Dc, { name: "power-editor-tool-bar-fade-in" }, {
75000
75027
  default: ie(() => [
@@ -75071,7 +75098,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
75071
75098
  [Wt, n.showToolBar]
75072
75099
  ]) : Pt("", !0),
75073
75100
  X("div", {
75074
- class: tt([[{ "read-only": !n.editable || !n.showToolBar }], "tip-tap-editor-container"]),
75101
+ class: Ye([[{ "read-only": !n.editable || !n.showToolBar }], "tip-tap-editor-container"]),
75075
75102
  ref: "container",
75076
75103
  style: ut({
75077
75104
  "padding-top": n.editable && n.showToolBar ? `${n.editablePaddingTop ? n.editablePaddingTop : n.toolbarHeight + 10}px` : `${n.readOnlyPaddingTop}px`,
@@ -75085,7 +75112,7 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
75085
75112
  }, [
75086
75113
  mt(o.$slots, "front-content"),
75087
75114
  ae(Bh(i2), {
75088
- class: tt(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
75115
+ class: Ye(["tip-tap-editor", [{ "format-painter": o.showFormatPainter }]]),
75089
75116
  editor: o.editor,
75090
75117
  theme: n.theme,
75091
75118
  ref: "editor",
@@ -75142,8 +75169,8 @@ const O6 = /* @__PURE__ */ on(_ye, [["render", yye]]), vye = {
75142
75169
  return (e, t) => {
75143
75170
  const r = Me("fv-button");
75144
75171
  return He(), ot("div", kye, [
75145
- X("h1", null, Ye(n.title), 1),
75146
- X("p", null, Ye(e.message), 1),
75172
+ X("h1", null, Ze(n.title), 1),
75173
+ X("p", null, Ze(e.message), 1),
75147
75174
  ae(r, null, {
75148
75175
  default: ie(() => t[0] || (t[0] = [
75149
75176
  ir("Confirm")