vdc-editor 0.1.291 → 0.1.293

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.
@@ -2,7 +2,7 @@ var _R = Object.defineProperty;
2
2
  var kR = (t, e, n) => e in t ? _R(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var rn = (t, e, n) => kR(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as M6 from "vue";
5
- import { defineComponent as K, createElementBlock as ie, openBlock as A, normalizeClass as $e, unref as g, toDisplayString as Ie, markRaw as Nv, ref as z, onMounted as ct, onBeforeUnmount as Gn, h as zn, getCurrentInstance as tr, watchEffect as In, nextTick as _t, customRef as oC, provide as en, reactive as ko, render as O6, shallowRef as Zh, watch as De, inject as Pt, computed as J, createBlock as H, normalizeStyle as wt, withCtx as O, createElementVNode as q, withDirectives as Wn, createCommentVNode as we, Fragment as nt, renderList as $t, withModifiers as mn, vShow as mo, getCurrentScope as rC, onScopeDispose as iC, shallowReadonly as Vl, toRefs as Vn, renderSlot as ce, onBeforeMount as Ad, onUnmounted as _n, normalizeProps as Ft, guardReactiveProps as Vt, createVNode as R, mergeProps as Ne, toHandlers as sC, resolveDynamicComponent as An, toRef as TR, camelize as aC, withKeys as ms, toHandlerKey as AR, readonly as Lv, Teleport as Du, useSlots as Qh, createTextVNode as Qe, Comment as lC, cloneVNode as MR, mergeDefaults as uC, watchPostEffect as OR, effectScope as Rv, onBeforeUpdate as IR, onUpdated as NR, isRef as Pu, vModelSelect as LR, Text as RR, defineAsyncComponent as DR, createSlots as Dv, vModelText as cC, resolveComponent as Jl, createStaticVNode as PR, useAttrs as Md, onActivated as I6, onDeactivated as BR } from "vue";
5
+ import { defineComponent as K, createElementBlock as ie, openBlock as A, normalizeClass as $e, unref as g, toDisplayString as Ie, markRaw as Nv, ref as V, onMounted as ct, onBeforeUnmount as Gn, h as zn, getCurrentInstance as tr, watchEffect as In, nextTick as _t, customRef as oC, provide as en, reactive as ko, render as O6, shallowRef as Zh, watch as De, inject as Pt, computed as J, createBlock as H, normalizeStyle as wt, withCtx as O, createElementVNode as q, withDirectives as Wn, createCommentVNode as we, Fragment as nt, renderList as $t, withModifiers as mn, vShow as mo, getCurrentScope as rC, onScopeDispose as iC, shallowReadonly as Vl, toRefs as Vn, renderSlot as ce, onBeforeMount as Ad, onUnmounted as _n, normalizeProps as Ft, guardReactiveProps as Vt, createVNode as R, mergeProps as Ne, toHandlers as sC, resolveDynamicComponent as An, toRef as TR, camelize as aC, withKeys as ms, toHandlerKey as AR, readonly as Lv, Teleport as Du, useSlots as Qh, createTextVNode as Qe, Comment as lC, cloneVNode as MR, mergeDefaults as uC, watchPostEffect as OR, effectScope as Rv, onBeforeUpdate as IR, onUpdated as NR, isRef as Pu, vModelSelect as LR, Text as RR, defineAsyncComponent as DR, createSlots as Dv, vModelText as cC, resolveComponent as Jl, createStaticVNode as PR, useAttrs as Md, onActivated as I6, onDeactivated as BR } from "vue";
6
6
  import { useVModel as FR, useLocalStorage as Vp, createEventHook as N6, createGlobalState as $R, useFullscreen as HR, useEventBus as Bo, useFocus as zR, onClickOutside as VR, useWindowSize as UR, useEventListener as as, useFileDialog as WR, useElementSize as jR, useThrottleFn as dC, useResizeObserver as fC, onLongPress as qR } from "@vueuse/core";
7
7
  function pC(t) {
8
8
  var e, n, o = "";
@@ -246,7 +246,7 @@ const xn = (t) => {
246
246
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
247
247
  uD.test(t) && !cD.test(t)
248
248
  ), vC = () => !1, xD = (t) => dD.test(t), CD = (t) => fD.test(t), SD = () => {
249
- const t = xn("colors"), e = xn("spacing"), n = xn("blur"), o = xn("brightness"), r = xn("borderColor"), i = xn("borderRadius"), s = xn("borderSpacing"), a = xn("borderWidth"), l = xn("contrast"), u = xn("grayscale"), d = xn("hueRotate"), f = xn("invert"), h = xn("gap"), m = xn("gradientColorStops"), b = xn("gradientColorStopPositions"), v = xn("inset"), y = xn("margin"), x = xn("opacity"), S = xn("padding"), E = xn("saturate"), C = xn("scale"), k = xn("sepia"), T = xn("skew"), M = xn("space"), V = xn("translate"), N = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", It, e], j = () => [It, e], ne = () => ["", Ki, Ns], ue = () => ["auto", cu, It], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], B = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], P = () => ["", "0", It], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], oe = () => [cu, It];
249
+ const t = xn("colors"), e = xn("spacing"), n = xn("blur"), o = xn("brightness"), r = xn("borderColor"), i = xn("borderRadius"), s = xn("borderSpacing"), a = xn("borderWidth"), l = xn("contrast"), u = xn("grayscale"), d = xn("hueRotate"), f = xn("invert"), h = xn("gap"), m = xn("gradientColorStops"), b = xn("gradientColorStopPositions"), v = xn("inset"), y = xn("margin"), x = xn("opacity"), S = xn("padding"), E = xn("saturate"), C = xn("scale"), k = xn("sepia"), T = xn("skew"), M = xn("space"), z = xn("translate"), N = () => ["auto", "contain", "none"], L = () => ["auto", "hidden", "clip", "visible", "scroll"], W = () => ["auto", It, e], j = () => [It, e], te = () => ["", Ki, Ns], ue = () => ["auto", cu, It], G = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], B = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], U = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], P = () => ["", "0", It], ee = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], oe = () => [cu, It];
250
250
  return {
251
251
  cacheSize: 500,
252
252
  separator: ":",
@@ -258,7 +258,7 @@ const xn = (t) => {
258
258
  borderColor: [t],
259
259
  borderRadius: ["none", "", "full", Ls, It],
260
260
  borderSpacing: j(),
261
- borderWidth: ne(),
261
+ borderWidth: te(),
262
262
  contrast: oe(),
263
263
  grayscale: P(),
264
264
  hueRotate: oe(),
@@ -1578,7 +1578,7 @@ const xn = (t) => {
1578
1578
  * @see https://tailwindcss.com/docs/ring-width
1579
1579
  */
1580
1580
  "ring-w": [{
1581
- ring: ne()
1581
+ ring: te()
1582
1582
  }],
1583
1583
  /**
1584
1584
  * Ring Width Inset
@@ -1912,14 +1912,14 @@ const xn = (t) => {
1912
1912
  * @see https://tailwindcss.com/docs/translate
1913
1913
  */
1914
1914
  "translate-x": [{
1915
- "translate-x": [V]
1915
+ "translate-x": [z]
1916
1916
  }],
1917
1917
  /**
1918
1918
  * Translate Y
1919
1919
  * @see https://tailwindcss.com/docs/translate
1920
1920
  */
1921
1921
  "translate-y": [{
1922
- "translate-y": [V]
1922
+ "translate-y": [z]
1923
1923
  }],
1924
1924
  /**
1925
1925
  * Skew X
@@ -10662,15 +10662,15 @@ function KB(t, e, n, o, r) {
10662
10662
  return N(t, Da(13, "Enter"));
10663
10663
  });
10664
10664
  }, 20));
10665
- let C = b.start, k = b.endA, T, M, V;
10665
+ let C = b.start, k = b.endA, T, M, z;
10666
10666
  if (S) {
10667
10667
  if (v.pos == y.pos)
10668
10668
  Jo && Qs <= 11 && v.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => ps(t), 20)), T = t.state.tr.delete(C, k), M = d.resolve(b.start).marksAcross(d.resolve(b.endA));
10669
10669
  else if (
10670
10670
  // Adding or removing a mark
10671
- b.endA == b.endB && (V = GB(v.parent.content.cut(v.parentOffset, y.parentOffset), x.parent.content.cut(x.parentOffset, b.endA - x.start())))
10671
+ b.endA == b.endB && (z = GB(v.parent.content.cut(v.parentOffset, y.parentOffset), x.parent.content.cut(x.parentOffset, b.endA - x.start())))
10672
10672
  )
10673
- T = t.state.tr, V.type == "add" ? T.addMark(C, k, V.mark) : T.removeMark(C, k, V.mark);
10673
+ T = t.state.tr, z.type == "add" ? T.addMark(C, k, z.mark) : T.removeMark(C, k, z.mark);
10674
10674
  else if (v.parent.child(v.index()).isText && v.index() == y.index() - (y.textOffset ? 0 : 1)) {
10675
10675
  let N = v.parent.textBetween(v.parentOffset, y.parentOffset);
10676
10676
  if (t.someProp("handleTextInput", (L) => L(t, C, k, N)))
@@ -12399,13 +12399,13 @@ function zF(t) {
12399
12399
  if (S) {
12400
12400
  let { text: k } = x;
12401
12401
  typeof k == "string" ? k = k : k = o2(Ae.from(k), m.schema);
12402
- const { from: T } = x, M = T + k.length, V = HF(k);
12402
+ const { from: T } = x, M = T + k.length, z = HF(k);
12403
12403
  return l({
12404
12404
  rule: d,
12405
12405
  state: m,
12406
12406
  from: T,
12407
12407
  to: { b: M },
12408
- pasteEvt: V
12408
+ pasteEvt: z
12409
12409
  });
12410
12410
  }
12411
12411
  const E = h.doc.content.findDiffStart(m.doc.content), C = h.doc.content.findDiffEnd(m.doc.content);
@@ -13406,8 +13406,8 @@ const j$ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edit
13406
13406
  if (r) {
13407
13407
  let x = Ae.empty;
13408
13408
  const S = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
13409
- for (let V = l.depth - S; V >= l.depth - 3; V -= 1)
13410
- x = Ae.from(l.node(V).copy(x));
13409
+ for (let z = l.depth - S; z >= l.depth - 3; z -= 1)
13410
+ x = Ae.from(l.node(z).copy(x));
13411
13411
  const E = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, C = {
13412
13412
  ..._p(h, l.node().type.name, l.node().attrs),
13413
13413
  ...e
@@ -13416,10 +13416,10 @@ const j$ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edit
13416
13416
  const T = l.before(l.depth - (S - 1));
13417
13417
  n.replace(T, l.after(-E), new ze(x, 4 - S, 0));
13418
13418
  let M = -1;
13419
- n.doc.nodesBetween(T, n.doc.content.size, (V, N) => {
13419
+ n.doc.nodesBetween(T, n.doc.content.size, (z, N) => {
13420
13420
  if (M > -1)
13421
13421
  return !1;
13422
- V.isTextblock && V.content.size === 0 && (M = N + 1);
13422
+ z.isTextblock && z.content.size === 0 && (M = N + 1);
13423
13423
  }), M > -1 && n.setSelection(Ye.near(n.doc.resolve(M))), n.scrollIntoView();
13424
13424
  }
13425
13425
  return !0;
@@ -13476,7 +13476,7 @@ const j$ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edit
13476
13476
  return l().command(() => (i.setNodeMarkup(k.pos, m), !0)).command(() => Y1(i, m)).command(() => J1(i, m)).run();
13477
13477
  }
13478
13478
  return !n || !C || !a ? l().command(() => d().wrapInList(m, o) ? !0 : u.clearNodes()).wrapInList(m, o).command(() => Y1(i, m)).command(() => J1(i, m)).run() : l().command(() => {
13479
- const T = d().wrapInList(m, o), M = C.filter((V) => h.includes(V.type.name));
13479
+ const T = d().wrapInList(m, o), M = C.filter((z) => h.includes(z.type.name));
13480
13480
  return i.ensureMarks(M), T ? !0 : u.clearNodes();
13481
13481
  }).wrapInList(m, o).command(() => Y1(i, m)).command(() => J1(i, m)).run();
13482
13482
  }, G$ = (t, e = {}, n = {}) => ({ state: o, commands: r }) => {
@@ -14781,8 +14781,8 @@ var NH = function(e, n) {
14781
14781
  function LH(t) {
14782
14782
  var e, n = t.state, o = t.name, r = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Si(n.placement), l = f2(a), u = [Qo, $r].indexOf(a) >= 0, d = u ? "height" : "width";
14783
14783
  if (!(!i || !s)) {
14784
- var f = NH(r.padding, n), h = d2(i), m = l === "y" ? Zo : Qo, b = l === "y" ? Fr : $r, v = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], y = s[l] - n.rects.reference[l], x = Rd(i), S = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, E = v / 2 - y / 2, C = f[m], k = S - h[d] - f[b], T = S / 2 - h[d] / 2 + E, M = Rc(C, T, k), V = l;
14785
- n.modifiersData[o] = (e = {}, e[V] = M, e.centerOffset = M - T, e);
14784
+ var f = NH(r.padding, n), h = d2(i), m = l === "y" ? Zo : Qo, b = l === "y" ? Fr : $r, v = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], y = s[l] - n.rects.reference[l], x = Rd(i), S = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, E = v / 2 - y / 2, C = f[m], k = S - h[d] - f[b], T = S / 2 - h[d] / 2 + E, M = Rc(C, T, k), z = l;
14785
+ n.modifiersData[o] = (e = {}, e[z] = M, e.centerOffset = M - T, e);
14786
14786
  }
14787
14787
  }
14788
14788
  function RH(t) {
@@ -14825,8 +14825,8 @@ function Uw(t) {
14825
14825
  m = y.x, v = y.y;
14826
14826
  var x = s.hasOwnProperty("x"), S = s.hasOwnProperty("y"), E = Qo, C = Zo, k = window;
14827
14827
  if (u) {
14828
- var T = Rd(n), M = "clientHeight", V = "clientWidth";
14829
- if (T === vr(n) && (T = ha(n), gs(T).position !== "static" && a === "absolute" && (M = "scrollHeight", V = "scrollWidth")), T = T, r === Zo || (r === Qo || r === $r) && i === td) {
14828
+ var T = Rd(n), M = "clientHeight", z = "clientWidth";
14829
+ if (T === vr(n) && (T = ha(n), gs(T).position !== "static" && a === "absolute" && (M = "scrollHeight", z = "scrollWidth")), T = T, r === Zo || (r === Qo || r === $r) && i === td) {
14830
14830
  C = Fr;
14831
14831
  var N = f && T === k && k.visualViewport ? k.visualViewport.height : (
14832
14832
  // $FlowFixMe[prop-missing]
@@ -14838,7 +14838,7 @@ function Uw(t) {
14838
14838
  E = $r;
14839
14839
  var L = f && T === k && k.visualViewport ? k.visualViewport.width : (
14840
14840
  // $FlowFixMe[prop-missing]
14841
- T[V]
14841
+ T[z]
14842
14842
  );
14843
14843
  m -= L - o.width, m *= l ? 1 : -1;
14844
14844
  }
@@ -14853,8 +14853,8 @@ function Uw(t) {
14853
14853
  y: v
14854
14854
  };
14855
14855
  if (m = j.x, v = j.y, l) {
14856
- var ne;
14857
- return Object.assign({}, W, (ne = {}, ne[C] = S ? "0" : "", ne[E] = x ? "0" : "", ne.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", ne));
14856
+ var te;
14857
+ return Object.assign({}, W, (te = {}, te[C] = S ? "0" : "", te[E] = x ? "0" : "", te.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", te));
14858
14858
  }
14859
14859
  return Object.assign({}, W, (e = {}, e[C] = S ? v + "px" : "", e[E] = x ? m + "px" : "", e.transform = "", e));
14860
14860
  }
@@ -15060,7 +15060,7 @@ function nd(t, e) {
15060
15060
  reference: T,
15061
15061
  element: E,
15062
15062
  placement: r
15063
- }), V = Sb(Object.assign({}, E, M)), N = h === vc ? V : T, L = {
15063
+ }), z = Sb(Object.assign({}, E, M)), N = h === vc ? z : T, L = {
15064
15064
  top: k.top - N.top + x.top,
15065
15065
  bottom: N.bottom - k.bottom + x.bottom,
15066
15066
  left: k.left - N.left + x.left,
@@ -15068,9 +15068,9 @@ function nd(t, e) {
15068
15068
  }, W = t.modifiersData.offset;
15069
15069
  if (h === vc && W) {
15070
15070
  var j = W[r];
15071
- Object.keys(L).forEach(function(ne) {
15072
- var ue = [$r, Fr].indexOf(ne) >= 0 ? 1 : -1, G = [Zo, Fr].indexOf(ne) >= 0 ? "y" : "x";
15073
- L[ne] += j[G] * ue;
15071
+ Object.keys(L).forEach(function(te) {
15072
+ var ue = [$r, Fr].indexOf(te) >= 0 ? 1 : -1, G = [Zo, Fr].indexOf(te) >= 0 ? "y" : "x";
15073
+ L[te] += j[G] * ue;
15074
15074
  });
15075
15075
  }
15076
15076
  return L;
@@ -15113,25 +15113,25 @@ function JH(t) {
15113
15113
  flipVariations: b,
15114
15114
  allowedAutoPlacements: v
15115
15115
  }) : pe);
15116
- }, []), k = e.rects.reference, T = e.rects.popper, M = /* @__PURE__ */ new Map(), V = !0, N = C[0], L = 0; L < C.length; L++) {
15117
- var W = C[L], j = Si(W), ne = Eu(W) === xu, ue = [Zo, Fr].indexOf(j) >= 0, G = ue ? "width" : "height", B = nd(e, {
15116
+ }, []), k = e.rects.reference, T = e.rects.popper, M = /* @__PURE__ */ new Map(), z = !0, N = C[0], L = 0; L < C.length; L++) {
15117
+ var W = C[L], j = Si(W), te = Eu(W) === xu, ue = [Zo, Fr].indexOf(j) >= 0, G = ue ? "width" : "height", B = nd(e, {
15118
15118
  placement: W,
15119
15119
  boundary: d,
15120
15120
  rootBoundary: f,
15121
15121
  altBoundary: h,
15122
15122
  padding: u
15123
- }), F = ue ? ne ? $r : Qo : ne ? Fr : Zo;
15123
+ }), F = ue ? te ? $r : Qo : te ? Fr : Zo;
15124
15124
  k[G] > T[G] && (F = kp(F));
15125
15125
  var U = kp(F), P = [];
15126
15126
  if (i && P.push(B[j] <= 0), a && P.push(B[F] <= 0, B[U] <= 0), P.every(function(Be) {
15127
15127
  return Be;
15128
15128
  })) {
15129
- N = W, V = !1;
15129
+ N = W, z = !1;
15130
15130
  break;
15131
15131
  }
15132
15132
  M.set(W, P);
15133
15133
  }
15134
- if (V)
15134
+ if (z)
15135
15135
  for (var ee = b ? 3 : 1, oe = function(pe) {
15136
15136
  var ke = C.find(function(re) {
15137
15137
  var de = M.get(re);
@@ -15247,7 +15247,7 @@ function az(t) {
15247
15247
  rootBoundary: u,
15248
15248
  padding: f,
15249
15249
  altBoundary: d
15250
- }), x = Si(e.placement), S = Eu(e.placement), E = !S, C = f2(x), k = sz(C), T = e.modifiersData.popperOffsets, M = e.rects.reference, V = e.rects.popper, N = typeof v == "function" ? v(Object.assign({}, e.rects, {
15250
+ }), x = Si(e.placement), S = Eu(e.placement), E = !S, C = f2(x), k = sz(C), T = e.modifiersData.popperOffsets, M = e.rects.reference, z = e.rects.popper, N = typeof v == "function" ? v(Object.assign({}, e.rects, {
15251
15251
  placement: e.placement
15252
15252
  })) : v, L = typeof N == "number" ? {
15253
15253
  mainAxis: N,
@@ -15261,14 +15261,14 @@ function az(t) {
15261
15261
  };
15262
15262
  if (T) {
15263
15263
  if (i) {
15264
- var ne, ue = C === "y" ? Zo : Qo, G = C === "y" ? Fr : $r, B = C === "y" ? "height" : "width", F = T[C], U = F + y[ue], P = F - y[G], ee = m ? -V[B] / 2 : 0, oe = S === xu ? M[B] : V[B], me = S === xu ? -V[B] : -M[B], Se = e.elements.arrow, Be = m && Se ? d2(Se) : {
15264
+ var te, ue = C === "y" ? Zo : Qo, G = C === "y" ? Fr : $r, B = C === "y" ? "height" : "width", F = T[C], U = F + y[ue], P = F - y[G], ee = m ? -z[B] / 2 : 0, oe = S === xu ? M[B] : z[B], me = S === xu ? -z[B] : -M[B], Se = e.elements.arrow, Be = m && Se ? d2(Se) : {
15265
15265
  width: 0,
15266
15266
  height: 0
15267
- }, pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pE(), ke = pe[ue], re = pe[G], de = Rc(0, M[B], Be[B]), fe = E ? M[B] / 2 - ee - de - ke - L.mainAxis : oe - de - ke - L.mainAxis, ge = E ? -M[B] / 2 + ee + de + re + L.mainAxis : me + de + re + L.mainAxis, xe = e.elements.arrow && Rd(e.elements.arrow), He = xe ? C === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Ve = (ne = W == null ? void 0 : W[C]) != null ? ne : 0, it = F + fe - Ve - He, ut = F + ge - Ve, at = Rc(m ? oh(U, it) : U, F, m ? Ka(P, ut) : P);
15267
+ }, pe = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : pE(), ke = pe[ue], re = pe[G], de = Rc(0, M[B], Be[B]), fe = E ? M[B] / 2 - ee - de - ke - L.mainAxis : oe - de - ke - L.mainAxis, ge = E ? -M[B] / 2 + ee + de + re + L.mainAxis : me + de + re + L.mainAxis, xe = e.elements.arrow && Rd(e.elements.arrow), He = xe ? C === "y" ? xe.clientTop || 0 : xe.clientLeft || 0 : 0, Ve = (te = W == null ? void 0 : W[C]) != null ? te : 0, it = F + fe - Ve - He, ut = F + ge - Ve, at = Rc(m ? oh(U, it) : U, F, m ? Ka(P, ut) : P);
15268
15268
  T[C] = at, j[C] = at - F;
15269
15269
  }
15270
15270
  if (a) {
15271
- var nn, Q = C === "x" ? Zo : Qo, X = C === "x" ? Fr : $r, Te = T[k], Re = k === "y" ? "height" : "width", et = Te + y[Q], Ct = Te - y[X], lt = [Zo, Qo].indexOf(x) !== -1, ye = (nn = W == null ? void 0 : W[k]) != null ? nn : 0, Z = lt ? et : Te - M[Re] - V[Re] - ye + L.altAxis, ae = lt ? Te + M[Re] + V[Re] - ye - L.altAxis : Ct, Ee = m && lt ? IH(Z, Te, ae) : Rc(m ? Z : et, Te, m ? ae : Ct);
15271
+ var nn, Q = C === "x" ? Zo : Qo, X = C === "x" ? Fr : $r, Te = T[k], Re = k === "y" ? "height" : "width", et = Te + y[Q], Ct = Te - y[X], lt = [Zo, Qo].indexOf(x) !== -1, ye = (nn = W == null ? void 0 : W[k]) != null ? nn : 0, Z = lt ? et : Te - M[Re] - z[Re] - ye + L.altAxis, ae = lt ? Te + M[Re] + z[Re] - ye - L.altAxis : Ct, Ee = m && lt ? IH(Z, Te, ae) : Rc(m ? Z : et, Te, m ? ae : Ct);
15272
15272
  T[k] = Ee, j[k] = Ee - Te;
15273
15273
  }
15274
15274
  e.modifiersData[o] = j;
@@ -15421,10 +15421,10 @@ function bz(t) {
15421
15421
  d.reset = !1, C = -1;
15422
15422
  continue;
15423
15423
  }
15424
- var k = d.orderedModifiers[C], T = k.fn, M = k.options, V = M === void 0 ? {} : M, N = k.name;
15424
+ var k = d.orderedModifiers[C], T = k.fn, M = k.options, z = M === void 0 ? {} : M, N = k.name;
15425
15425
  typeof T == "function" && (d = T({
15426
15426
  state: d,
15427
- options: V,
15427
+ options: z,
15428
15428
  name: N,
15429
15429
  instance: m
15430
15430
  }) || d);
@@ -15872,7 +15872,7 @@ function Kz(t, e) {
15872
15872
  return process.env.NODE_ENV !== "production" && Eb(!0, "render() function has not been supplied."), C;
15873
15873
  var k = n.render(C), T = k.popper, M = k.onUpdate;
15874
15874
  T.setAttribute("data-tippy-root", ""), T.id = "tippy-" + C.id, C.popper = T, t._tippy = C, T._tippy = C;
15875
- var V = S.map(function(he) {
15875
+ var z = S.map(function(he) {
15876
15876
  return he.fn(C);
15877
15877
  }), N = t.hasAttribute("aria-expanded");
15878
15878
  return xe(), ee(), F(), U("onCreate", [C]), n.showOnCreate && et(), T.addEventListener("mouseenter", function() {
@@ -15891,11 +15891,11 @@ function Kz(t, e) {
15891
15891
  var he;
15892
15892
  return !!((he = C.props.render) != null && he.$$tippy);
15893
15893
  }
15894
- function ne() {
15894
+ function te() {
15895
15895
  return v || t;
15896
15896
  }
15897
15897
  function ue() {
15898
- var he = ne().parentNode;
15898
+ var he = te().parentNode;
15899
15899
  return he ? Iz(he) : document;
15900
15900
  }
15901
15901
  function G() {
@@ -15908,7 +15908,7 @@ function Kz(t, e) {
15908
15908
  he === void 0 && (he = !1), T.style.pointerEvents = C.props.interactive && !he ? "" : "none", T.style.zIndex = "" + C.props.zIndex;
15909
15909
  }
15910
15910
  function U(he, Ue, ot) {
15911
- if (ot === void 0 && (ot = !0), V.forEach(function(gt) {
15911
+ if (ot === void 0 && (ot = !0), z.forEach(function(gt) {
15912
15912
  gt[he] && gt[he].apply(gt, Ue);
15913
15913
  }), ot) {
15914
15914
  var xt;
@@ -15934,7 +15934,7 @@ function Kz(t, e) {
15934
15934
  if (!(N || !C.props.aria.expanded)) {
15935
15935
  var he = eu(C.props.triggerTarget || t);
15936
15936
  he.forEach(function(Ue) {
15937
- C.props.interactive ? Ue.setAttribute("aria-expanded", C.state.isVisible && Ue === ne() ? "true" : "false") : Ue.removeAttribute("aria-expanded");
15937
+ C.props.interactive ? Ue.setAttribute("aria-expanded", C.state.isVisible && Ue === te() ? "true" : "false") : Ue.removeAttribute("aria-expanded");
15938
15938
  });
15939
15939
  }
15940
15940
  }
@@ -16039,7 +16039,7 @@ function Kz(t, e) {
16039
16039
  }
16040
16040
  }
16041
16041
  function it(he) {
16042
- var Ue = he.target, ot = ne().contains(Ue) || T.contains(Ue);
16042
+ var Ue = he.target, ot = te().contains(Ue) || T.contains(Ue);
16043
16043
  if (!(he.type === "mousemove" && ot)) {
16044
16044
  var xt = Re().concat(T).map(function(gt) {
16045
16045
  var cn, Zt = gt._tippy, Xn = (cn = Zt.popperInstance) == null ? void 0 : cn.state;
@@ -16063,7 +16063,7 @@ function Kz(t, e) {
16063
16063
  }
16064
16064
  }
16065
16065
  function at(he) {
16066
- C.props.trigger.indexOf("focusin") < 0 && he.target !== ne() || C.props.interactive && he.relatedTarget && T.contains(he.relatedTarget) || Ct(he);
16066
+ C.props.trigger.indexOf("focusin") < 0 && he.target !== te() || C.props.interactive && he.relatedTarget && T.contains(he.relatedTarget) || Ct(he);
16067
16067
  }
16068
16068
  function nn(he) {
16069
16069
  return xi.isTouch ? W() !== he.type.indexOf("touch") >= 0 : !1;
@@ -16072,7 +16072,7 @@ function Kz(t, e) {
16072
16072
  X();
16073
16073
  var he = C.props, Ue = he.popperOptions, ot = he.placement, xt = he.offset, gt = he.getReferenceClientRect, cn = he.moveTransition, Zt = j() ? kb(T).arrow : null, Xn = gt ? {
16074
16074
  getBoundingClientRect: gt,
16075
- contextElement: gt.contextElement || ne()
16075
+ contextElement: gt.contextElement || te()
16076
16076
  } : t, Uo = {
16077
16077
  name: "$$tippy",
16078
16078
  enabled: !0,
@@ -16129,7 +16129,7 @@ function Kz(t, e) {
16129
16129
  C.popperInstance && (C.popperInstance.destroy(), C.popperInstance = null);
16130
16130
  }
16131
16131
  function Te() {
16132
- var he = C.props.appendTo, Ue, ot = ne();
16132
+ var he = C.props.appendTo, Ue, ot = te();
16133
16133
  C.props.interactive && he === xE || he === "parent" ? Ue = ot.parentNode : Ue = CE(he, [ot]), Ue.contains(T) || Ue.appendChild(T), C.state.isMounted = !0, Q(), process.env.NODE_ENV !== "production" && rs(C.props.interactive && he === fr.appendTo && ot.nextElementSibling !== T, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
16134
16134
 
16135
16135
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
@@ -16192,7 +16192,7 @@ function Kz(t, e) {
16192
16192
  function Ge() {
16193
16193
  process.env.NODE_ENV !== "production" && rs(C.state.isDestroyed, jl("show"));
16194
16194
  var he = C.state.isVisible, Ue = C.state.isDestroyed, ot = !C.state.isEnabled, xt = xi.isTouch && !C.props.touch, gt = Z1(C.props.duration, 0, fr.duration);
16195
- if (!(he || Ue || ot || xt) && !ne().hasAttribute("disabled") && (U("onShow", [C], !1), C.props.onShow(C) !== !1)) {
16195
+ if (!(he || Ue || ot || xt) && !te().hasAttribute("disabled") && (U("onShow", [C], !1), C.props.onShow(C) !== !1)) {
16196
16196
  if (C.state.isVisible = !0, j() && (T.style.visibility = "visible"), F(), pe(), C.state.isMounted || (T.style.transition = "none"), j()) {
16197
16197
  var cn = G(), Zt = cn.box, Xn = cn.content;
16198
16198
  Q1([Zt, Xn], 0);
@@ -16547,7 +16547,7 @@ const Dd = K({
16547
16547
  }
16548
16548
  },
16549
16549
  setup(t, { slots: e }) {
16550
- const n = z(null);
16550
+ const n = V(null);
16551
16551
  return ct(() => {
16552
16552
  const { updateDelay: o, editor: r, pluginKey: i, shouldShow: s, tippyOptions: a } = t;
16553
16553
  r.registerPlugin(ME({
@@ -16617,7 +16617,7 @@ const Po = K({
16617
16617
  }
16618
16618
  },
16619
16619
  setup(t) {
16620
- const e = z(), n = tr();
16620
+ const e = V(), n = tr();
16621
16621
  return In(() => {
16622
16622
  const o = t.editor;
16623
16623
  o && o.options.element && e.value && _t(() => {
@@ -16670,7 +16670,7 @@ K({
16670
16670
  }
16671
16671
  },
16672
16672
  setup(t, { slots: e }) {
16673
- const n = z(null);
16673
+ const n = V(null);
16674
16674
  return ct(() => {
16675
16675
  const { pluginKey: o, editor: r, tippyOptions: i, shouldShow: s } = t;
16676
16676
  r.registerPlugin(OE({
@@ -16824,7 +16824,7 @@ class Jz extends pH {
16824
16824
  updateAttributes: (r = {}) => this.updateAttributes(r),
16825
16825
  deleteNode: () => this.deleteNode()
16826
16826
  }, n = this.onDragStart.bind(this);
16827
- this.decorationClasses = z(this.getDecorationClasses());
16827
+ this.decorationClasses = V(this.getDecorationClasses());
16828
16828
  const o = K({
16829
16829
  extends: { ...this.component },
16830
16830
  props: Object.keys(e),
@@ -17442,7 +17442,7 @@ var ah = { exports: {} };
17442
17442
  ah.exports;
17443
17443
  (function(t, e) {
17444
17444
  (function() {
17445
- var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, b = 1, v = 2, y = 1, x = 2, S = 4, E = 8, C = 16, k = 32, T = 64, M = 128, V = 256, N = 512, L = 30, W = "...", j = 800, ne = 16, ue = 1, G = 2, B = 3, F = 1 / 0, U = 9007199254740991, P = 17976931348623157e292, ee = NaN, oe = 4294967295, me = oe - 1, Se = oe >>> 1, Be = [
17445
+ var n, o = "4.17.21", r = 200, i = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", s = "Expected a function", a = "Invalid `variable` option passed into `_.template`", l = "__lodash_hash_undefined__", u = 500, d = "__lodash_placeholder__", f = 1, h = 2, m = 4, b = 1, v = 2, y = 1, x = 2, S = 4, E = 8, C = 16, k = 32, T = 64, M = 128, z = 256, N = 512, L = 30, W = "...", j = 800, te = 16, ue = 1, G = 2, B = 3, F = 1 / 0, U = 9007199254740991, P = 17976931348623157e292, ee = NaN, oe = 4294967295, me = oe - 1, Se = oe >>> 1, Be = [
17446
17446
  ["ary", M],
17447
17447
  ["bind", y],
17448
17448
  ["bindKey", x],
@@ -17451,7 +17451,7 @@ ah.exports;
17451
17451
  ["flip", N],
17452
17452
  ["partial", k],
17453
17453
  ["partialRight", T],
17454
- ["rearg", V]
17454
+ ["rearg", z]
17455
17455
  ], pe = "[object Arguments]", ke = "[object Array]", re = "[object AsyncFunction]", de = "[object Boolean]", fe = "[object Date]", ge = "[object DOMException]", xe = "[object Error]", He = "[object Function]", Ve = "[object GeneratorFunction]", it = "[object Map]", ut = "[object Number]", at = "[object Null]", nn = "[object Object]", Q = "[object Promise]", X = "[object Proxy]", Te = "[object RegExp]", Re = "[object Set]", et = "[object String]", Ct = "[object Symbol]", lt = "[object Undefined]", ye = "[object WeakMap]", Z = "[object WeakSet]", ae = "[object ArrayBuffer]", Ee = "[object DataView]", Ge = "[object Float32Array]", bt = "[object Float64Array]", be = "[object Int8Array]", We = "[object Int16Array]", Xt = "[object Int32Array]", he = "[object Uint8Array]", Ue = "[object Uint8ClampedArray]", ot = "[object Uint16Array]", xt = "[object Uint32Array]", gt = /\b__p \+= '';/g, cn = /\b(__p \+=) '' \+/g, Zt = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Xn = /&(?:amp|lt|gt|quot|#39);/g, Uo = /[&<>"']/g, so = RegExp(Xn.source), Oo = RegExp(Uo.source), Io = /<%-([\s\S]+?)%>/g, ao = /<%([\s\S]+?)%>/g, Qd = /<%=([\s\S]+?)%>/g, Qu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Tl = /^\w*$/, tT = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, xm = /[\\^$.*+?()[\]{}|]/g, nT = RegExp(xm.source), Cm = /^\s+/, oT = /\s/, rT = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, iT = /\{\n\/\* \[wrapped with (.+)\] \*/, sT = /,? & /, aT = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, lT = /[()=,{}\[\]\/\s]/, uT = /\\(\\)?/g, cT = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, o3 = /\w*$/, dT = /^[-+]0x[0-9a-f]+$/i, fT = /^0b[01]+$/i, pT = /^\[object .+?Constructor\]$/, hT = /^0o[0-7]+$/i, mT = /^(?:0|[1-9]\d*)$/, gT = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, ef = /($^)/, bT = /['\n\r\u2028\u2029\\]/g, tf = "\\ud800-\\udfff", vT = "\\u0300-\\u036f", yT = "\\ufe20-\\ufe2f", wT = "\\u20d0-\\u20ff", r3 = vT + yT + wT, i3 = "\\u2700-\\u27bf", s3 = "a-z\\xdf-\\xf6\\xf8-\\xff", xT = "\\xac\\xb1\\xd7\\xf7", CT = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", ST = "\\u2000-\\u206f", ET = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", a3 = "A-Z\\xc0-\\xd6\\xd8-\\xde", l3 = "\\ufe0e\\ufe0f", u3 = xT + CT + ST + ET, Sm = "['’]", _T = "[" + tf + "]", c3 = "[" + u3 + "]", nf = "[" + r3 + "]", d3 = "\\d+", kT = "[" + i3 + "]", f3 = "[" + s3 + "]", p3 = "[^" + tf + u3 + d3 + i3 + s3 + a3 + "]", Em = "\\ud83c[\\udffb-\\udfff]", TT = "(?:" + nf + "|" + Em + ")", h3 = "[^" + tf + "]", _m = "(?:\\ud83c[\\udde6-\\uddff]){2}", km = "[\\ud800-\\udbff][\\udc00-\\udfff]", Al = "[" + a3 + "]", m3 = "\\u200d", g3 = "(?:" + f3 + "|" + p3 + ")", AT = "(?:" + Al + "|" + p3 + ")", b3 = "(?:" + Sm + "(?:d|ll|m|re|s|t|ve))?", v3 = "(?:" + Sm + "(?:D|LL|M|RE|S|T|VE))?", y3 = TT + "?", w3 = "[" + l3 + "]?", MT = "(?:" + m3 + "(?:" + [h3, _m, km].join("|") + ")" + w3 + y3 + ")*", OT = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", IT = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", x3 = w3 + y3 + MT, NT = "(?:" + [kT, _m, km].join("|") + ")" + x3, LT = "(?:" + [h3 + nf + "?", nf, _m, km, _T].join("|") + ")", RT = RegExp(Sm, "g"), DT = RegExp(nf, "g"), Tm = RegExp(Em + "(?=" + Em + ")|" + LT + x3, "g"), PT = RegExp([
17456
17456
  Al + "?" + f3 + "+" + b3 + "(?=" + [c3, Al, "$"].join("|") + ")",
17457
17457
  AT + "+" + v3 + "(?=" + [c3, Al + g3, "$"].join("|") + ")",
@@ -18086,7 +18086,7 @@ ah.exports;
18086
18086
  return c;
18087
18087
  }
18088
18088
  function HA() {
18089
- var c = this.__wrapped__.value(), p = this.__dir__, w = Tt(c), _ = p < 0, I = w ? c.length : 0, $ = ZM(0, I, this.__views__), Y = $.start, te = $.end, le = te - Y, Me = _ ? te : Y - 1, Oe = this.__iteratees__, Le = Oe.length, je = 0, rt = bo(le, this.__takeCount__);
18089
+ var c = this.__wrapped__.value(), p = this.__dir__, w = Tt(c), _ = p < 0, I = w ? c.length : 0, $ = ZM(0, I, this.__views__), Y = $.start, ne = $.end, le = ne - Y, Me = _ ? ne : Y - 1, Oe = this.__iteratees__, Le = Oe.length, je = 0, rt = bo(le, this.__takeCount__);
18090
18090
  if (!w || !_ && I == le && rt == le)
18091
18091
  return b4(c, this.__actions__);
18092
18092
  var pt = [];
@@ -18238,14 +18238,14 @@ ah.exports;
18238
18238
  }
18239
18239
  qr.prototype.clear = rM, qr.prototype.delete = iM, qr.prototype.get = sM, qr.prototype.has = aM, qr.prototype.set = lM;
18240
18240
  function G3(c, p) {
18241
- var w = Tt(c), _ = !w && Ma(c), I = !w && !_ && Is(c), $ = !w && !_ && !I && Hl(c), Y = w || _ || I || $, te = Y ? Pm(c.length, vA) : [], le = te.length;
18241
+ var w = Tt(c), _ = !w && Ma(c), I = !w && !_ && Is(c), $ = !w && !_ && !I && Hl(c), Y = w || _ || I || $, ne = Y ? Pm(c.length, vA) : [], le = ne.length;
18242
18242
  for (var Me in c)
18243
18243
  (p || on.call(c, Me)) && !(Y && // Safari 9 has enumerable `arguments.length` in strict mode.
18244
18244
  (Me == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
18245
18245
  I && (Me == "offset" || Me == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
18246
18246
  $ && (Me == "buffer" || Me == "byteLength" || Me == "byteOffset") || // Skip index properties.
18247
- Ui(Me, le))) && te.push(Me);
18248
- return te;
18247
+ Ui(Me, le))) && ne.push(Me);
18248
+ return ne;
18249
18249
  }
18250
18250
  function X3(c) {
18251
18251
  var p = c.length;
@@ -18298,26 +18298,26 @@ ah.exports;
18298
18298
  return c === c && (w !== n && (c = c <= w ? c : w), p !== n && (c = c >= p ? c : p)), c;
18299
18299
  }
18300
18300
  function Er(c, p, w, _, I, $) {
18301
- var Y, te = p & f, le = p & h, Me = p & m;
18301
+ var Y, ne = p & f, le = p & h, Me = p & m;
18302
18302
  if (w && (Y = I ? w(c, _, I, $) : w(c)), Y !== n)
18303
18303
  return Y;
18304
18304
  if (!kn(c))
18305
18305
  return c;
18306
18306
  var Oe = Tt(c);
18307
18307
  if (Oe) {
18308
- if (Y = eO(c), !te)
18308
+ if (Y = eO(c), !ne)
18309
18309
  return Wo(c, Y);
18310
18310
  } else {
18311
18311
  var Le = vo(c), je = Le == He || Le == Ve;
18312
18312
  if (Is(c))
18313
- return w4(c, te);
18313
+ return w4(c, ne);
18314
18314
  if (Le == nn || Le == pe || je && !I) {
18315
- if (Y = le || je ? {} : $4(c), !te)
18315
+ if (Y = le || je ? {} : $4(c), !ne)
18316
18316
  return le ? UM(c, fM(Y, c)) : VM(c, Y3(Y, c));
18317
18317
  } else {
18318
18318
  if (!vn[Le])
18319
18319
  return I ? c : {};
18320
- Y = tO(c, Le, te);
18320
+ Y = tO(c, Le, ne);
18321
18321
  }
18322
18322
  }
18323
18323
  $ || ($ = new qr());
@@ -18359,12 +18359,12 @@ ah.exports;
18359
18359
  }, p);
18360
18360
  }
18361
18361
  function ac(c, p, w, _) {
18362
- var I = -1, $ = of, Y = !0, te = c.length, le = [], Me = p.length;
18363
- if (!te)
18362
+ var I = -1, $ = of, Y = !0, ne = c.length, le = [], Me = p.length;
18363
+ if (!ne)
18364
18364
  return le;
18365
18365
  w && (p = Sn(p, rr(w))), _ ? ($ = Om, Y = !1) : p.length >= r && ($ = ec, Y = !1, p = new Ea(p));
18366
18366
  e:
18367
- for (; ++I < te; ) {
18367
+ for (; ++I < ne; ) {
18368
18368
  var Oe = c[I], Le = w == null ? Oe : w(Oe);
18369
18369
  if (Oe = _ || Oe !== 0 ? Oe : 0, Y && Le === Le) {
18370
18370
  for (var je = Me; je--; )
@@ -18385,8 +18385,8 @@ ah.exports;
18385
18385
  function Cf(c, p, w) {
18386
18386
  for (var _ = -1, I = c.length; ++_ < I; ) {
18387
18387
  var $ = c[_], Y = p($);
18388
- if (Y != null && (te === n ? Y === Y && !sr(Y) : w(Y, te)))
18389
- var te = Y, le = $;
18388
+ if (Y != null && (ne === n ? Y === Y && !sr(Y) : w(Y, ne)))
18389
+ var ne = Y, le = $;
18390
18390
  }
18391
18391
  return le;
18392
18392
  }
@@ -18405,8 +18405,8 @@ ah.exports;
18405
18405
  function uo(c, p, w, _, I) {
18406
18406
  var $ = -1, Y = c.length;
18407
18407
  for (w || (w = oO), I || (I = []); ++$ < Y; ) {
18408
- var te = c[$];
18409
- p > 0 && w(te) ? p > 1 ? uo(te, p - 1, w, _, I) : Es(I, te) : _ || (I[I.length] = te);
18408
+ var ne = c[$];
18409
+ p > 0 && w(ne) ? p > 1 ? uo(ne, p - 1, w, _, I) : Es(I, ne) : _ || (I[I.length] = ne);
18410
18410
  }
18411
18411
  return I;
18412
18412
  }
@@ -18448,18 +18448,18 @@ ah.exports;
18448
18448
  return c >= bo(p, w) && c < Jn(p, w);
18449
18449
  }
18450
18450
  function Gm(c, p, w) {
18451
- for (var _ = w ? Om : of, I = c[0].length, $ = c.length, Y = $, te = ve($), le = 1 / 0, Me = []; Y--; ) {
18451
+ for (var _ = w ? Om : of, I = c[0].length, $ = c.length, Y = $, ne = ve($), le = 1 / 0, Me = []; Y--; ) {
18452
18452
  var Oe = c[Y];
18453
- Y && p && (Oe = Sn(Oe, rr(p))), le = bo(Oe.length, le), te[Y] = !w && (p || I >= 120 && Oe.length >= 120) ? new Ea(Y && Oe) : n;
18453
+ Y && p && (Oe = Sn(Oe, rr(p))), le = bo(Oe.length, le), ne[Y] = !w && (p || I >= 120 && Oe.length >= 120) ? new Ea(Y && Oe) : n;
18454
18454
  }
18455
18455
  Oe = c[0];
18456
- var Le = -1, je = te[0];
18456
+ var Le = -1, je = ne[0];
18457
18457
  e:
18458
18458
  for (; ++Le < I && Me.length < le; ) {
18459
18459
  var rt = Oe[Le], pt = p ? p(rt) : rt;
18460
18460
  if (rt = w || rt !== 0 ? rt : 0, !(je ? ec(je, pt) : _(Me, pt, w))) {
18461
18461
  for (Y = $; --Y; ) {
18462
- var Nt = te[Y];
18462
+ var Nt = ne[Y];
18463
18463
  if (!(Nt ? ec(Nt, pt) : _(c[Y], pt, w)))
18464
18464
  continue e;
18465
18465
  }
@@ -18491,7 +18491,7 @@ ah.exports;
18491
18491
  return c === p ? !0 : c == null || p == null || !Nn(c) && !Nn(p) ? c !== c && p !== p : CM(c, p, w, _, uc, I);
18492
18492
  }
18493
18493
  function CM(c, p, w, _, I, $) {
18494
- var Y = Tt(c), te = Tt(p), le = Y ? ke : vo(c), Me = te ? ke : vo(p);
18494
+ var Y = Tt(c), ne = Tt(p), le = Y ? ke : vo(c), Me = ne ? ke : vo(p);
18495
18495
  le = le == pe ? nn : le, Me = Me == pe ? nn : Me;
18496
18496
  var Oe = le == nn, Le = Me == nn, je = le == Me;
18497
18497
  if (je && Is(c)) {
@@ -18518,14 +18518,14 @@ ah.exports;
18518
18518
  if (c == null)
18519
18519
  return !$;
18520
18520
  for (c = dn(c); I--; ) {
18521
- var te = w[I];
18522
- if (Y && te[2] ? te[1] !== c[te[0]] : !(te[0] in c))
18521
+ var ne = w[I];
18522
+ if (Y && ne[2] ? ne[1] !== c[ne[0]] : !(ne[0] in c))
18523
18523
  return !1;
18524
18524
  }
18525
18525
  for (; ++I < $; ) {
18526
- te = w[I];
18527
- var le = te[0], Me = c[le], Oe = te[1];
18528
- if (Y && te[2]) {
18526
+ ne = w[I];
18527
+ var le = ne[0], Me = c[le], Oe = ne[1];
18528
+ if (Y && ne[2]) {
18529
18529
  if (Me === n && !(le in c))
18530
18530
  return !1;
18531
18531
  } else {
@@ -18598,21 +18598,21 @@ ah.exports;
18598
18598
  if (I || (I = new qr()), kn($))
18599
18599
  AM(c, p, Y, w, Ef, _, I);
18600
18600
  else {
18601
- var te = _ ? _(g1(c, Y), $, Y + "", c, p, I) : n;
18602
- te === n && (te = $), Um(c, Y, te);
18601
+ var ne = _ ? _(g1(c, Y), $, Y + "", c, p, I) : n;
18602
+ ne === n && (ne = $), Um(c, Y, ne);
18603
18603
  }
18604
18604
  }, qo);
18605
18605
  }
18606
18606
  function AM(c, p, w, _, I, $, Y) {
18607
- var te = g1(c, w), le = g1(p, w), Me = Y.get(le);
18607
+ var ne = g1(c, w), le = g1(p, w), Me = Y.get(le);
18608
18608
  if (Me) {
18609
18609
  Um(c, w, Me);
18610
18610
  return;
18611
18611
  }
18612
- var Oe = $ ? $(te, le, w + "", c, p, Y) : n, Le = Oe === n;
18612
+ var Oe = $ ? $(ne, le, w + "", c, p, Y) : n, Le = Oe === n;
18613
18613
  if (Le) {
18614
18614
  var je = Tt(le), rt = !je && Is(le), pt = !je && !rt && Hl(le);
18615
- Oe = le, je || rt || pt ? Tt(te) ? Oe = te : Fn(te) ? Oe = Wo(te) : rt ? (Le = !1, Oe = w4(le, !0)) : pt ? (Le = !1, Oe = x4(le, !0)) : Oe = [] : hc(le) || Ma(le) ? (Oe = te, Ma(te) ? Oe = b6(te) : (!kn(te) || Wi(te)) && (Oe = $4(le))) : Le = !1;
18615
+ Oe = le, je || rt || pt ? Tt(ne) ? Oe = ne : Fn(ne) ? Oe = Wo(ne) : rt ? (Le = !1, Oe = w4(le, !0)) : pt ? (Le = !1, Oe = x4(le, !0)) : Oe = [] : hc(le) || Ma(le) ? (Oe = ne, Ma(ne) ? Oe = b6(ne) : (!kn(ne) || Wi(ne)) && (Oe = $4(le))) : Le = !1;
18616
18616
  }
18617
18617
  Le && (Y.set(le, Oe), I(Oe, le, _, $, Y), Y.delete(le)), Um(c, w, Oe);
18618
18618
  }
@@ -18629,7 +18629,7 @@ ah.exports;
18629
18629
  }) : p = [Ko];
18630
18630
  var _ = -1;
18631
18631
  p = Sn(p, rr(dt()));
18632
- var I = s4(c, function($, Y, te) {
18632
+ var I = s4(c, function($, Y, ne) {
18633
18633
  var le = Sn(p, function(Me) {
18634
18634
  return Me($);
18635
18635
  });
@@ -18646,8 +18646,8 @@ ah.exports;
18646
18646
  }
18647
18647
  function d4(c, p, w) {
18648
18648
  for (var _ = -1, I = p.length, $ = {}; ++_ < I; ) {
18649
- var Y = p[_], te = ka(c, Y);
18650
- w(te, Y) && cc($, Ms(Y, c), te);
18649
+ var Y = p[_], ne = ka(c, Y);
18650
+ w(ne, Y) && cc($, Ms(Y, c), ne);
18651
18651
  }
18652
18652
  return $;
18653
18653
  }
@@ -18657,10 +18657,10 @@ ah.exports;
18657
18657
  };
18658
18658
  }
18659
18659
  function Zm(c, p, w, _) {
18660
- var I = _ ? eA : Ml, $ = -1, Y = p.length, te = c;
18661
- for (c === p && (p = Wo(p)), w && (te = Sn(c, rr(w))); ++$ < Y; )
18662
- for (var le = 0, Me = p[$], Oe = w ? w(Me) : Me; (le = I(te, Oe, le, _)) > -1; )
18663
- te !== c && hf.call(te, le, 1), hf.call(c, le, 1);
18660
+ var I = _ ? eA : Ml, $ = -1, Y = p.length, ne = c;
18661
+ for (c === p && (p = Wo(p)), w && (ne = Sn(c, rr(w))); ++$ < Y; )
18662
+ for (var le = 0, Me = p[$], Oe = w ? w(Me) : Me; (le = I(ne, Oe, le, _)) > -1; )
18663
+ ne !== c && hf.call(ne, le, 1), hf.call(c, le, 1);
18664
18664
  return c;
18665
18665
  }
18666
18666
  function f4(c, p) {
@@ -18704,15 +18704,15 @@ ah.exports;
18704
18704
  if (!kn(c))
18705
18705
  return c;
18706
18706
  p = Ms(p, c);
18707
- for (var I = -1, $ = p.length, Y = $ - 1, te = c; te != null && ++I < $; ) {
18707
+ for (var I = -1, $ = p.length, Y = $ - 1, ne = c; ne != null && ++I < $; ) {
18708
18708
  var le = mi(p[I]), Me = w;
18709
18709
  if (le === "__proto__" || le === "constructor" || le === "prototype")
18710
18710
  return c;
18711
18711
  if (I != Y) {
18712
- var Oe = te[le];
18713
- Me = _ ? _(Oe, le, te) : n, Me === n && (Me = kn(Oe) ? Oe : Ui(p[I + 1]) ? [] : {});
18712
+ var Oe = ne[le];
18713
+ Me = _ ? _(Oe, le, ne) : n, Me === n && (Me = kn(Oe) ? Oe : Ui(p[I + 1]) ? [] : {});
18714
18714
  }
18715
- sc(te, le, Me), te = te[le];
18715
+ sc(ne, le, Me), ne = ne[le];
18716
18716
  }
18717
18717
  return c;
18718
18718
  }
@@ -18758,20 +18758,20 @@ ah.exports;
18758
18758
  if ($ === 0)
18759
18759
  return 0;
18760
18760
  p = w(p);
18761
- for (var Y = p !== p, te = p === null, le = sr(p), Me = p === n; I < $; ) {
18761
+ for (var Y = p !== p, ne = p === null, le = sr(p), Me = p === n; I < $; ) {
18762
18762
  var Oe = bf((I + $) / 2), Le = w(c[Oe]), je = Le !== n, rt = Le === null, pt = Le === Le, Nt = sr(Le);
18763
18763
  if (Y)
18764
18764
  var ht = _ || pt;
18765
- else Me ? ht = pt && (_ || je) : te ? ht = pt && je && (_ || !rt) : le ? ht = pt && je && !rt && (_ || !Nt) : rt || Nt ? ht = !1 : ht = _ ? Le <= p : Le < p;
18765
+ else Me ? ht = pt && (_ || je) : ne ? ht = pt && je && (_ || !rt) : le ? ht = pt && je && !rt && (_ || !Nt) : rt || Nt ? ht = !1 : ht = _ ? Le <= p : Le < p;
18766
18766
  ht ? I = Oe + 1 : $ = Oe;
18767
18767
  }
18768
18768
  return bo($, me);
18769
18769
  }
18770
18770
  function h4(c, p) {
18771
18771
  for (var w = -1, _ = c.length, I = 0, $ = []; ++w < _; ) {
18772
- var Y = c[w], te = p ? p(Y) : Y;
18773
- if (!w || !Kr(te, le)) {
18774
- var le = te;
18772
+ var Y = c[w], ne = p ? p(Y) : Y;
18773
+ if (!w || !Kr(ne, le)) {
18774
+ var le = ne;
18775
18775
  $[I++] = Y === 0 ? 0 : Y;
18776
18776
  }
18777
18777
  }
@@ -18791,7 +18791,7 @@ ah.exports;
18791
18791
  return p == "0" && 1 / c == -1 / 0 ? "-0" : p;
18792
18792
  }
18793
18793
  function As(c, p, w) {
18794
- var _ = -1, I = of, $ = c.length, Y = !0, te = [], le = te;
18794
+ var _ = -1, I = of, $ = c.length, Y = !0, ne = [], le = ne;
18795
18795
  if (w)
18796
18796
  Y = !1, I = Om;
18797
18797
  else if ($ >= r) {
@@ -18800,7 +18800,7 @@ ah.exports;
18800
18800
  return sf(Me);
18801
18801
  Y = !1, I = ec, le = new Ea();
18802
18802
  } else
18803
- le = p ? [] : te;
18803
+ le = p ? [] : ne;
18804
18804
  e:
18805
18805
  for (; ++_ < $; ) {
18806
18806
  var Oe = c[_], Le = p ? p(Oe) : Oe;
@@ -18808,10 +18808,10 @@ ah.exports;
18808
18808
  for (var je = le.length; je--; )
18809
18809
  if (le[je] === Le)
18810
18810
  continue e;
18811
- p && le.push(Le), te.push(Oe);
18812
- } else I(le, Le, w) || (le !== te && le.push(Le), te.push(Oe));
18811
+ p && le.push(Le), ne.push(Oe);
18812
+ } else I(le, Le, w) || (le !== ne && le.push(Le), ne.push(Oe));
18813
18813
  }
18814
- return te;
18814
+ return ne;
18815
18815
  }
18816
18816
  function n1(c, p) {
18817
18817
  return p = Ms(p, c), c = U4(c, p), c == null || delete c[mi(kr(p))];
@@ -18835,14 +18835,14 @@ ah.exports;
18835
18835
  if (_ < 2)
18836
18836
  return _ ? As(c[0]) : [];
18837
18837
  for (var I = -1, $ = ve(_); ++I < _; )
18838
- for (var Y = c[I], te = -1; ++te < _; )
18839
- te != I && ($[I] = ac($[I] || Y, c[te], p, w));
18838
+ for (var Y = c[I], ne = -1; ++ne < _; )
18839
+ ne != I && ($[I] = ac($[I] || Y, c[ne], p, w));
18840
18840
  return As(uo($, 1), p, w);
18841
18841
  }
18842
18842
  function v4(c, p, w) {
18843
18843
  for (var _ = -1, I = c.length, $ = p.length, Y = {}; ++_ < I; ) {
18844
- var te = _ < $ ? p[_] : n;
18845
- w(Y, c[_], te);
18844
+ var ne = _ < $ ? p[_] : n;
18845
+ w(Y, c[_], ne);
18846
18846
  }
18847
18847
  return Y;
18848
18848
  }
@@ -18890,19 +18890,19 @@ ah.exports;
18890
18890
  }
18891
18891
  function C4(c, p) {
18892
18892
  if (c !== p) {
18893
- var w = c !== n, _ = c === null, I = c === c, $ = sr(c), Y = p !== n, te = p === null, le = p === p, Me = sr(p);
18894
- if (!te && !Me && !$ && c > p || $ && Y && le && !te && !Me || _ && Y && le || !w && le || !I)
18893
+ var w = c !== n, _ = c === null, I = c === c, $ = sr(c), Y = p !== n, ne = p === null, le = p === p, Me = sr(p);
18894
+ if (!ne && !Me && !$ && c > p || $ && Y && le && !ne && !Me || _ && Y && le || !w && le || !I)
18895
18895
  return 1;
18896
- if (!_ && !$ && !Me && c < p || Me && w && I && !_ && !$ || te && w && I || !Y && I || !le)
18896
+ if (!_ && !$ && !Me && c < p || Me && w && I && !_ && !$ || ne && w && I || !Y && I || !le)
18897
18897
  return -1;
18898
18898
  }
18899
18899
  return 0;
18900
18900
  }
18901
18901
  function zM(c, p, w) {
18902
- for (var _ = -1, I = c.criteria, $ = p.criteria, Y = I.length, te = w.length; ++_ < Y; ) {
18902
+ for (var _ = -1, I = c.criteria, $ = p.criteria, Y = I.length, ne = w.length; ++_ < Y; ) {
18903
18903
  var le = C4(I[_], $[_]);
18904
18904
  if (le) {
18905
- if (_ >= te)
18905
+ if (_ >= ne)
18906
18906
  return le;
18907
18907
  var Me = w[_];
18908
18908
  return le * (Me == "desc" ? -1 : 1);
@@ -18911,20 +18911,20 @@ ah.exports;
18911
18911
  return c.index - p.index;
18912
18912
  }
18913
18913
  function S4(c, p, w, _) {
18914
- for (var I = -1, $ = c.length, Y = w.length, te = -1, le = p.length, Me = Jn($ - Y, 0), Oe = ve(le + Me), Le = !_; ++te < le; )
18915
- Oe[te] = p[te];
18914
+ for (var I = -1, $ = c.length, Y = w.length, ne = -1, le = p.length, Me = Jn($ - Y, 0), Oe = ve(le + Me), Le = !_; ++ne < le; )
18915
+ Oe[ne] = p[ne];
18916
18916
  for (; ++I < Y; )
18917
18917
  (Le || I < $) && (Oe[w[I]] = c[I]);
18918
18918
  for (; Me--; )
18919
- Oe[te++] = c[I++];
18919
+ Oe[ne++] = c[I++];
18920
18920
  return Oe;
18921
18921
  }
18922
18922
  function E4(c, p, w, _) {
18923
- for (var I = -1, $ = c.length, Y = -1, te = w.length, le = -1, Me = p.length, Oe = Jn($ - te, 0), Le = ve(Oe + Me), je = !_; ++I < Oe; )
18923
+ for (var I = -1, $ = c.length, Y = -1, ne = w.length, le = -1, Me = p.length, Oe = Jn($ - ne, 0), Le = ve(Oe + Me), je = !_; ++I < Oe; )
18924
18924
  Le[I] = c[I];
18925
18925
  for (var rt = I; ++le < Me; )
18926
18926
  Le[rt + le] = p[le];
18927
- for (; ++Y < te; )
18927
+ for (; ++Y < ne; )
18928
18928
  (je || I < $) && (Le[rt + w[Y]] = c[I++]);
18929
18929
  return Le;
18930
18930
  }
@@ -18938,8 +18938,8 @@ ah.exports;
18938
18938
  var I = !w;
18939
18939
  w || (w = {});
18940
18940
  for (var $ = -1, Y = p.length; ++$ < Y; ) {
18941
- var te = p[$], le = _ ? _(w[te], c[te], te, w, c) : n;
18942
- le === n && (le = c[te]), I ? Hi(w, te, le) : sc(w, te, le);
18941
+ var ne = p[$], le = _ ? _(w[ne], c[ne], ne, w, c) : n;
18942
+ le === n && (le = c[ne]), I ? Hi(w, ne, le) : sc(w, ne, le);
18943
18943
  }
18944
18944
  return w;
18945
18945
  }
@@ -18959,8 +18959,8 @@ ah.exports;
18959
18959
  return Bt(function(p, w) {
18960
18960
  var _ = -1, I = w.length, $ = I > 1 ? w[I - 1] : n, Y = I > 2 ? w[2] : n;
18961
18961
  for ($ = c.length > 3 && typeof $ == "function" ? (I--, $) : n, Y && Lo(w[0], w[1], Y) && ($ = I < 3 ? n : $, I = 1), p = dn(p); ++_ < I; ) {
18962
- var te = w[_];
18963
- te && c(p, te, _, $);
18962
+ var ne = w[_];
18963
+ ne && c(p, ne, _, $);
18964
18964
  }
18965
18965
  return p;
18966
18966
  });
@@ -18978,8 +18978,8 @@ ah.exports;
18978
18978
  }
18979
18979
  function k4(c) {
18980
18980
  return function(p, w, _) {
18981
- for (var I = -1, $ = dn(p), Y = _(p), te = Y.length; te--; ) {
18982
- var le = Y[c ? te : ++I];
18981
+ for (var I = -1, $ = dn(p), Y = _(p), ne = Y.length; ne--; ) {
18982
+ var le = Y[c ? ne : ++I];
18983
18983
  if (w($[le], le, $) === !1)
18984
18984
  break;
18985
18985
  }
@@ -19034,8 +19034,8 @@ ah.exports;
19034
19034
  function jM(c, p, w) {
19035
19035
  var _ = dc(c);
19036
19036
  function I() {
19037
- for (var $ = arguments.length, Y = ve($), te = $, le = $l(I); te--; )
19038
- Y[te] = arguments[te];
19037
+ for (var $ = arguments.length, Y = ve($), ne = $, le = $l(I); ne--; )
19038
+ Y[ne] = arguments[ne];
19039
19039
  var Me = $ < 3 && Y[0] !== le && Y[$ - 1] !== le ? [] : _s(Y, le);
19040
19040
  if ($ -= Me.length, $ < w)
19041
19041
  return N4(
@@ -19060,8 +19060,8 @@ ah.exports;
19060
19060
  var I = dn(p);
19061
19061
  if (!jo(p)) {
19062
19062
  var $ = dt(w, 3);
19063
- p = eo(p), w = function(te) {
19064
- return $(I[te], te, I);
19063
+ p = eo(p), w = function(ne) {
19064
+ return $(I[ne], ne, I);
19065
19065
  };
19066
19066
  }
19067
19067
  var Y = c(p, w, _);
@@ -19080,8 +19080,8 @@ ah.exports;
19080
19080
  }
19081
19081
  for (_ = Y ? _ : w; ++_ < w; ) {
19082
19082
  $ = p[_];
19083
- var te = Nf($), le = te == "wrapper" ? d1($) : n;
19084
- le && m1(le[0]) && le[1] == (M | E | k | V) && !le[4].length && le[9] == 1 ? Y = Y[Nf(le[0])].apply(Y, le[3]) : Y = $.length == 1 && m1($) ? Y[te]() : Y.thru($);
19083
+ var ne = Nf($), le = ne == "wrapper" ? d1($) : n;
19084
+ le && m1(le[0]) && le[1] == (M | E | k | z) && !le[4].length && le[9] == 1 ? Y = Y[Nf(le[0])].apply(Y, le[3]) : Y = $.length == 1 && m1($) ? Y[ne]() : Y.thru($);
19085
19085
  }
19086
19086
  return function() {
19087
19087
  var Me = arguments, Oe = Me[0];
@@ -19093,7 +19093,7 @@ ah.exports;
19093
19093
  };
19094
19094
  });
19095
19095
  }
19096
- function Af(c, p, w, _, I, $, Y, te, le, Me) {
19096
+ function Af(c, p, w, _, I, $, Y, ne, le, Me) {
19097
19097
  var Oe = p & M, Le = p & y, je = p & x, rt = p & (E | C), pt = p & N, Nt = je ? n : dc(c);
19098
19098
  function ht() {
19099
19099
  for (var Ht = arguments.length, Wt = ve(Ht), ar = Ht; ar--; )
@@ -19110,13 +19110,13 @@ ah.exports;
19110
19110
  w,
19111
19111
  Wt,
19112
19112
  $n,
19113
- te,
19113
+ ne,
19114
19114
  le,
19115
19115
  Me - Ht
19116
19116
  );
19117
19117
  }
19118
19118
  var Gr = Le ? w : this, qi = je ? Gr[c] : c;
19119
- return Ht = Wt.length, te ? Wt = dO(Wt, te) : pt && Ht > 1 && Wt.reverse(), Oe && le < Ht && (Wt.length = le), this && this !== lo && this instanceof ht && (qi = Nt || dc(qi)), qi.apply(Gr, Wt);
19119
+ return Ht = Wt.length, ne ? Wt = dO(Wt, ne) : pt && Ht > 1 && Wt.reverse(), Oe && le < Ht && (Wt.length = le), this && this !== lo && this instanceof ht && (qi = Nt || dc(qi)), qi.apply(Gr, Wt);
19120
19120
  }
19121
19121
  return ht;
19122
19122
  }
@@ -19159,10 +19159,10 @@ ah.exports;
19159
19159
  function qM(c, p, w, _) {
19160
19160
  var I = p & y, $ = dc(c);
19161
19161
  function Y() {
19162
- for (var te = -1, le = arguments.length, Me = -1, Oe = _.length, Le = ve(Oe + le), je = this && this !== lo && this instanceof Y ? $ : c; ++Me < Oe; )
19162
+ for (var ne = -1, le = arguments.length, Me = -1, Oe = _.length, Le = ve(Oe + le), je = this && this !== lo && this instanceof Y ? $ : c; ++Me < Oe; )
19163
19163
  Le[Me] = _[Me];
19164
19164
  for (; le--; )
19165
- Le[Me++] = arguments[++te];
19165
+ Le[Me++] = arguments[++ne];
19166
19166
  return or(je, I ? w : this, Le);
19167
19167
  }
19168
19168
  return Y;
@@ -19177,7 +19177,7 @@ ah.exports;
19177
19177
  return typeof p == "string" && typeof w == "string" || (p = Tr(p), w = Tr(w)), c(p, w);
19178
19178
  };
19179
19179
  }
19180
- function N4(c, p, w, _, I, $, Y, te, le, Me) {
19180
+ function N4(c, p, w, _, I, $, Y, ne, le, Me) {
19181
19181
  var Oe = p & E, Le = Oe ? Y : n, je = Oe ? n : Y, rt = Oe ? $ : n, pt = Oe ? n : $;
19182
19182
  p |= Oe ? k : T, p &= ~(Oe ? T : k), p & S || (p &= -4);
19183
19183
  var Nt = [
@@ -19188,7 +19188,7 @@ ah.exports;
19188
19188
  Le,
19189
19189
  pt,
19190
19190
  je,
19191
- te,
19191
+ ne,
19192
19192
  le,
19193
19193
  Me
19194
19194
  ], ht = w.apply(n, Nt);
@@ -19213,12 +19213,12 @@ ah.exports;
19213
19213
  return w == it ? Fm(p) : w == Re ? cA(p) : nA(p, c(p));
19214
19214
  };
19215
19215
  }
19216
- function zi(c, p, w, _, I, $, Y, te) {
19216
+ function zi(c, p, w, _, I, $, Y, ne) {
19217
19217
  var le = p & x;
19218
19218
  if (!le && typeof c != "function")
19219
19219
  throw new Cr(s);
19220
19220
  var Me = _ ? _.length : 0;
19221
- if (Me || (p &= -97, _ = I = n), Y = Y === n ? Y : Jn(Ot(Y), 0), te = te === n ? te : Ot(te), Me -= I ? I.length : 0, p & T) {
19221
+ if (Me || (p &= -97, _ = I = n), Y = Y === n ? Y : Jn(Ot(Y), 0), ne = ne === n ? ne : Ot(ne), Me -= I ? I.length : 0, p & T) {
19222
19222
  var Oe = _, Le = I;
19223
19223
  _ = I = n;
19224
19224
  }
@@ -19232,11 +19232,11 @@ ah.exports;
19232
19232
  Le,
19233
19233
  $,
19234
19234
  Y,
19235
- te
19235
+ ne
19236
19236
  ];
19237
- if (je && lO(rt, je), c = rt[0], p = rt[1], w = rt[2], _ = rt[3], I = rt[4], te = rt[9] = rt[9] === n ? le ? 0 : c.length : Jn(rt[9] - Me, 0), !te && p & (E | C) && (p &= -25), !p || p == y)
19237
+ if (je && lO(rt, je), c = rt[0], p = rt[1], w = rt[2], _ = rt[3], I = rt[4], ne = rt[9] = rt[9] === n ? le ? 0 : c.length : Jn(rt[9] - Me, 0), !ne && p & (E | C) && (p &= -25), !p || p == y)
19238
19238
  var pt = WM(c, p, w);
19239
- else p == E || p == C ? pt = jM(c, p, te) : (p == k || p == (y | k)) && !I.length ? pt = qM(c, p, w, _) : pt = Af.apply(n, rt);
19239
+ else p == E || p == C ? pt = jM(c, p, ne) : (p == k || p == (y | k)) && !I.length ? pt = qM(c, p, w, _) : pt = Af.apply(n, rt);
19240
19240
  var Nt = je ? p4 : W4;
19241
19241
  return j4(Nt(pt, rt), c, p);
19242
19242
  }
@@ -19250,14 +19250,14 @@ ah.exports;
19250
19250
  return hc(c) ? n : c;
19251
19251
  }
19252
19252
  function P4(c, p, w, _, I, $) {
19253
- var Y = w & b, te = c.length, le = p.length;
19254
- if (te != le && !(Y && le > te))
19253
+ var Y = w & b, ne = c.length, le = p.length;
19254
+ if (ne != le && !(Y && le > ne))
19255
19255
  return !1;
19256
19256
  var Me = $.get(c), Oe = $.get(p);
19257
19257
  if (Me && Oe)
19258
19258
  return Me == p && Oe == c;
19259
19259
  var Le = -1, je = !0, rt = w & v ? new Ea() : n;
19260
- for ($.set(c, p), $.set(p, c); ++Le < te; ) {
19260
+ for ($.set(c, p), $.set(p, c); ++Le < ne; ) {
19261
19261
  var pt = c[Le], Nt = p[Le];
19262
19262
  if (_)
19263
19263
  var ht = Y ? _(Nt, pt, Le, p, c, $) : _(pt, Nt, Le, c, p, $);
@@ -19300,16 +19300,16 @@ ah.exports;
19300
19300
  case et:
19301
19301
  return c == p + "";
19302
19302
  case it:
19303
- var te = Fm;
19303
+ var ne = Fm;
19304
19304
  case Re:
19305
19305
  var le = _ & b;
19306
- if (te || (te = sf), c.size != p.size && !le)
19306
+ if (ne || (ne = sf), c.size != p.size && !le)
19307
19307
  return !1;
19308
19308
  var Me = Y.get(c);
19309
19309
  if (Me)
19310
19310
  return Me == p;
19311
19311
  _ |= v, Y.set(c, p);
19312
- var Oe = P4(te(c), te(p), _, I, $, Y);
19312
+ var Oe = P4(ne(c), ne(p), _, I, $, Y);
19313
19313
  return Y.delete(c), Oe;
19314
19314
  case Ct:
19315
19315
  if (ic)
@@ -19318,11 +19318,11 @@ ah.exports;
19318
19318
  return !1;
19319
19319
  }
19320
19320
  function YM(c, p, w, _, I, $) {
19321
- var Y = w & b, te = u1(c), le = te.length, Me = u1(p), Oe = Me.length;
19321
+ var Y = w & b, ne = u1(c), le = ne.length, Me = u1(p), Oe = Me.length;
19322
19322
  if (le != Oe && !Y)
19323
19323
  return !1;
19324
19324
  for (var Le = le; Le--; ) {
19325
- var je = te[Le];
19325
+ var je = ne[Le];
19326
19326
  if (!(Y ? je in p : on.call(p, je)))
19327
19327
  return !1;
19328
19328
  }
@@ -19332,7 +19332,7 @@ ah.exports;
19332
19332
  var Nt = !0;
19333
19333
  $.set(c, p), $.set(p, c);
19334
19334
  for (var ht = Y; ++Le < le; ) {
19335
- je = te[Le];
19335
+ je = ne[Le];
19336
19336
  var Ht = c[je], Wt = p[je];
19337
19337
  if (_)
19338
19338
  var ar = Y ? _(Wt, Ht, je, p, c, $) : _(Ht, Wt, je, c, p, $);
@@ -19565,16 +19565,16 @@ ah.exports;
19565
19565
  return p;
19566
19566
  }
19567
19567
  function lO(c, p) {
19568
- var w = c[1], _ = p[1], I = w | _, $ = I < (y | x | M), Y = _ == M && w == E || _ == M && w == V && c[7].length <= p[8] || _ == (M | V) && p[7].length <= p[8] && w == E;
19568
+ var w = c[1], _ = p[1], I = w | _, $ = I < (y | x | M), Y = _ == M && w == E || _ == M && w == z && c[7].length <= p[8] || _ == (M | z) && p[7].length <= p[8] && w == E;
19569
19569
  if (!($ || Y))
19570
19570
  return c;
19571
19571
  _ & y && (c[2] = p[2], I |= w & y ? 0 : S);
19572
- var te = p[3];
19573
- if (te) {
19572
+ var ne = p[3];
19573
+ if (ne) {
19574
19574
  var le = c[3];
19575
- c[3] = le ? S4(le, te, p[4]) : te, c[4] = le ? _s(c[3], d) : p[4];
19575
+ c[3] = le ? S4(le, ne, p[4]) : ne, c[4] = le ? _s(c[3], d) : p[4];
19576
19576
  }
19577
- return te = p[5], te && (le = c[5], c[5] = le ? E4(le, te, p[6]) : te, c[6] = le ? _s(c[5], d) : p[6]), te = p[7], te && (c[7] = te), _ & M && (c[8] = c[8] == null ? p[8] : bo(c[8], p[8])), c[9] == null && (c[9] = p[9]), c[0] = p[0], c[1] = I, c;
19577
+ return ne = p[5], ne && (le = c[5], c[5] = le ? E4(le, ne, p[6]) : ne, c[6] = le ? _s(c[5], d) : p[6]), ne = p[7], ne && (c[7] = ne), _ & M && (c[8] = c[8] == null ? p[8] : bo(c[8], p[8])), c[9] == null && (c[9] = p[9]), c[0] = p[0], c[1] = I, c;
19578
19578
  }
19579
19579
  function uO(c) {
19580
19580
  var p = [];
@@ -19591,9 +19591,9 @@ ah.exports;
19591
19591
  for (var _ = arguments, I = -1, $ = Jn(_.length - p, 0), Y = ve($); ++I < $; )
19592
19592
  Y[I] = _[p + I];
19593
19593
  I = -1;
19594
- for (var te = ve(p + 1); ++I < p; )
19595
- te[I] = _[I];
19596
- return te[p] = w(Y), or(c, this, te);
19594
+ for (var ne = ve(p + 1); ++I < p; )
19595
+ ne[I] = _[I];
19596
+ return ne[p] = w(Y), or(c, this, ne);
19597
19597
  };
19598
19598
  }
19599
19599
  function U4(c, p) {
@@ -19620,7 +19620,7 @@ ah.exports;
19620
19620
  function q4(c) {
19621
19621
  var p = 0, w = 0;
19622
19622
  return function() {
19623
- var _ = OA(), I = ne - (_ - w);
19623
+ var _ = OA(), I = te - (_ - w);
19624
19624
  if (w = _, I > 0) {
19625
19625
  if (++p >= j)
19626
19626
  return arguments[0];
@@ -20151,7 +20151,7 @@ ah.exports;
20151
20151
  return _.placeholder = l6.placeholder, _;
20152
20152
  }
20153
20153
  function u6(c, p, w) {
20154
- var _, I, $, Y, te, le, Me = 0, Oe = !1, Le = !1, je = !0;
20154
+ var _, I, $, Y, ne, le, Me = 0, Oe = !1, Le = !1, je = !0;
20155
20155
  if (typeof c != "function")
20156
20156
  throw new Cr(s);
20157
20157
  p = Tr(p) || 0, kn(w) && (Oe = !!w.leading, Le = "maxWait" in w, $ = Le ? Jn(Tr(w.maxWait) || 0, p) : $, je = "trailing" in w ? !!w.trailing : je);
@@ -20160,7 +20160,7 @@ ah.exports;
20160
20160
  return _ = I = n, Me = $n, Y = c.apply(qi, Gr), Y;
20161
20161
  }
20162
20162
  function pt($n) {
20163
- return Me = $n, te = pc(Ht, p), Oe ? rt($n) : Y;
20163
+ return Me = $n, ne = pc(Ht, p), Oe ? rt($n) : Y;
20164
20164
  }
20165
20165
  function Nt($n) {
20166
20166
  var Gr = $n - le, qi = $n - Me, A6 = p - Gr;
@@ -20174,26 +20174,26 @@ ah.exports;
20174
20174
  var $n = Bf();
20175
20175
  if (ht($n))
20176
20176
  return Wt($n);
20177
- te = pc(Ht, Nt($n));
20177
+ ne = pc(Ht, Nt($n));
20178
20178
  }
20179
20179
  function Wt($n) {
20180
- return te = n, je && _ ? rt($n) : (_ = I = n, Y);
20180
+ return ne = n, je && _ ? rt($n) : (_ = I = n, Y);
20181
20181
  }
20182
20182
  function ar() {
20183
- te !== n && y4(te), Me = 0, _ = le = I = te = n;
20183
+ ne !== n && y4(ne), Me = 0, _ = le = I = ne = n;
20184
20184
  }
20185
20185
  function Ro() {
20186
- return te === n ? Y : Wt(Bf());
20186
+ return ne === n ? Y : Wt(Bf());
20187
20187
  }
20188
20188
  function lr() {
20189
20189
  var $n = Bf(), Gr = ht($n);
20190
20190
  if (_ = arguments, I = this, le = $n, Gr) {
20191
- if (te === n)
20191
+ if (ne === n)
20192
20192
  return pt(le);
20193
20193
  if (Le)
20194
- return y4(te), te = pc(Ht, p), rt(le);
20194
+ return y4(ne), ne = pc(Ht, p), rt(le);
20195
20195
  }
20196
- return te === n && (te = pc(Ht, p)), Y;
20196
+ return ne === n && (ne = pc(Ht, p)), Y;
20197
20197
  }
20198
20198
  return lr.cancel = ar, lr.flush = Ro, lr;
20199
20199
  }
@@ -20254,7 +20254,7 @@ ah.exports;
20254
20254
  var w = _s(p, $l(c6));
20255
20255
  return zi(c, T, n, p, w);
20256
20256
  }), ZI = Vi(function(c, p) {
20257
- return zi(c, V, n, n, n, p);
20257
+ return zi(c, z, n, n, n, p);
20258
20258
  });
20259
20259
  function QI(c, p) {
20260
20260
  if (typeof c != "function")
@@ -20509,8 +20509,8 @@ ah.exports;
20509
20509
  c = dn(c);
20510
20510
  var w = -1, _ = p.length, I = _ > 2 ? p[2] : n;
20511
20511
  for (I && Lo(p[0], p[1], I) && (_ = 1); ++w < _; )
20512
- for (var $ = p[w], Y = qo($), te = -1, le = Y.length; ++te < le; ) {
20513
- var Me = Y[te], Oe = c[Me];
20512
+ for (var $ = p[w], Y = qo($), ne = -1, le = Y.length; ++ne < le; ) {
20513
+ var Me = Y[ne], Oe = c[Me];
20514
20514
  (Oe === n || Kr(Oe, Ll[Me]) && !on.call(c, Me)) && (c[Me] = $[Me]);
20515
20515
  }
20516
20516
  return c;
@@ -20628,8 +20628,8 @@ ah.exports;
20628
20628
  var $ = c && c.constructor;
20629
20629
  I ? w = _ ? new $() : [] : kn(c) ? w = Wi($) ? Pl(pf(c)) : {} : w = {};
20630
20630
  }
20631
- return (I ? xr : pi)(c, function(Y, te, le) {
20632
- return p(w, Y, te, le);
20631
+ return (I ? xr : pi)(c, function(Y, ne, le) {
20632
+ return p(w, Y, ne, le);
20633
20633
  }), w;
20634
20634
  }
20635
20635
  function aL(c, p) {
@@ -20734,13 +20734,13 @@ ah.exports;
20734
20734
  function IL(c, p, w) {
20735
20735
  var _ = D.templateSettings;
20736
20736
  w && Lo(c, p, w) && (p = n), c = Qt(c), p = Vf({}, p, _, R4);
20737
- var I = Vf({}, p.imports, _.imports, R4), $ = eo(I), Y = Bm(I, $), te, le, Me = 0, Oe = p.interpolate || ef, Le = "__p += '", je = $m(
20737
+ var I = Vf({}, p.imports, _.imports, R4), $ = eo(I), Y = Bm(I, $), ne, le, Me = 0, Oe = p.interpolate || ef, Le = "__p += '", je = $m(
20738
20738
  (p.escape || ef).source + "|" + Oe.source + "|" + (Oe === Qd ? cT : ef).source + "|" + (p.evaluate || ef).source + "|$",
20739
20739
  "g"
20740
20740
  ), rt = "//# sourceURL=" + (on.call(p, "sourceURL") ? (p.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++HT + "]") + `
20741
20741
  `;
20742
20742
  c.replace(je, function(ht, Ht, Wt, ar, Ro, lr) {
20743
- return Wt || (Wt = ar), Le += c.slice(Me, lr).replace(bT, sA), Ht && (te = !0, Le += `' +
20743
+ return Wt || (Wt = ar), Le += c.slice(Me, lr).replace(bT, sA), Ht && (ne = !0, Le += `' +
20744
20744
  __e(` + Ht + `) +
20745
20745
  '`), Ro && (le = !0, Le += `';
20746
20746
  ` + Ro + `;
@@ -20759,7 +20759,7 @@ __p += '`), Wt && (Le += `' +
20759
20759
  throw new St(a);
20760
20760
  Le = (le ? Le.replace(gt, "") : Le).replace(cn, "$1").replace(Zt, "$1;"), Le = "function(" + (pt || "obj") + `) {
20761
20761
  ` + (pt ? "" : `obj || (obj = {});
20762
- `) + "var __t, __p = ''" + (te ? ", __e = _.escape" : "") + (le ? `, __j = Array.prototype.join;
20762
+ `) + "var __t, __p = ''" + (ne ? ", __e = _.escape" : "") + (le ? `, __j = Array.prototype.join;
20763
20763
  function print() { __p += __j.call(arguments, '') }
20764
20764
  ` : `;
20765
20765
  `) + Le + `return __p
@@ -20815,20 +20815,20 @@ function print() { __p += __j.call(arguments, '') }
20815
20815
  }
20816
20816
  if (w >= $)
20817
20817
  return c;
20818
- var te = w - Il(_);
20819
- if (te < 1)
20818
+ var ne = w - Il(_);
20819
+ if (ne < 1)
20820
20820
  return _;
20821
- var le = Y ? Os(Y, 0, te).join("") : c.slice(0, te);
20821
+ var le = Y ? Os(Y, 0, ne).join("") : c.slice(0, ne);
20822
20822
  if (I === n)
20823
20823
  return le + _;
20824
- if (Y && (te += le.length - te), S1(I)) {
20825
- if (c.slice(te).search(I)) {
20824
+ if (Y && (ne += le.length - ne), S1(I)) {
20825
+ if (c.slice(ne).search(I)) {
20826
20826
  var Me, Oe = le;
20827
20827
  for (I.global || (I = $m(I.source, Qt(o3.exec(I)) + "g")), I.lastIndex = 0; Me = I.exec(Oe); )
20828
20828
  var Le = Me.index;
20829
- le = le.slice(0, Le === n ? te : Le);
20829
+ le = le.slice(0, Le === n ? ne : Le);
20830
20830
  }
20831
- } else if (c.indexOf(ir(I), te) != te) {
20831
+ } else if (c.indexOf(ir(I), ne) != ne) {
20832
20832
  var je = le.lastIndexOf(I);
20833
20833
  je > -1 && (le = le.slice(0, je));
20834
20834
  }
@@ -20905,9 +20905,9 @@ function print() { __p += __j.call(arguments, '') }
20905
20905
  var _ = eo(p), I = Sf(p, _);
20906
20906
  w == null && !(kn(p) && (I.length || !_.length)) && (w = p, p = c, c = this, I = Sf(p, eo(p)));
20907
20907
  var $ = !(kn(w) && "chain" in w) || !!w.chain, Y = Wi(c);
20908
- return xr(I, function(te) {
20909
- var le = p[te];
20910
- c[te] = le, Y && (c.prototype[te] = function() {
20908
+ return xr(I, function(ne) {
20909
+ var le = p[ne];
20910
+ c[ne] = le, Y && (c.prototype[ne] = function() {
20911
20911
  var Me = this.__chain__;
20912
20912
  if ($ || Me) {
20913
20913
  var Oe = c(this.__wrapped__), Le = Oe.__actions__ = Wo(this.__actions__);
@@ -21062,18 +21062,18 @@ function print() { __p += __j.call(arguments, '') }
21062
21062
  }, pi(zt.prototype, function(c, p) {
21063
21063
  var w = /^(?:filter|find|map|reject)|While$/.test(p), _ = /^(?:head|last)$/.test(p), I = D[_ ? "take" + (p == "last" ? "Right" : "") : p], $ = _ || /^find/.test(p);
21064
21064
  I && (D.prototype[p] = function() {
21065
- var Y = this.__wrapped__, te = _ ? [1] : arguments, le = Y instanceof zt, Me = te[0], Oe = le || Tt(Y), Le = function(Ht) {
21066
- var Wt = I.apply(D, Es([Ht], te));
21065
+ var Y = this.__wrapped__, ne = _ ? [1] : arguments, le = Y instanceof zt, Me = ne[0], Oe = le || Tt(Y), Le = function(Ht) {
21066
+ var Wt = I.apply(D, Es([Ht], ne));
21067
21067
  return _ && je ? Wt[0] : Wt;
21068
21068
  };
21069
21069
  Oe && w && typeof Me == "function" && Me.length != 1 && (le = Oe = !1);
21070
21070
  var je = this.__chain__, rt = !!this.__actions__.length, pt = $ && !je, Nt = le && !rt;
21071
21071
  if (!$ && Oe) {
21072
21072
  Y = Nt ? Y : new zt(this);
21073
- var ht = c.apply(Y, te);
21073
+ var ht = c.apply(Y, ne);
21074
21074
  return ht.__actions__.push({ func: Df, args: [Le], thisArg: n }), new Sr(ht, je);
21075
21075
  }
21076
- return pt && Nt ? c.apply(this, te) : (ht = this.thru(Le), pt ? _ ? ht.value()[0] : ht.value() : ht);
21076
+ return pt && Nt ? c.apply(this, ne) : (ht = this.thru(Le), pt ? _ ? ht.value()[0] : ht.value() : ht);
21077
21077
  });
21078
21078
  }), xr(["pop", "push", "shift", "sort", "splice", "unshift"], function(c) {
21079
21079
  var p = af[c], w = /^(?:push|sort|unshift)$/.test(c) ? "tap" : "thru", _ = /^(?:pop|shift)$/.test(c);
@@ -21172,42 +21172,45 @@ function pV() {
21172
21172
  return t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "-9999px", t.style.whiteSpace = "nowrap", t.style.visibility = "hidden", document.body.appendChild(t), Us = t, t;
21173
21173
  }
21174
21174
  function v0(t) {
21175
- var s;
21176
- const e = z(null), n = z(null), o = () => {
21177
- const a = (t == null ? void 0 : t.minChars) ?? 0;
21178
- return typeof a == "number" ? a : g(a) ?? 0;
21175
+ var a;
21176
+ const e = V(null), n = V(null), o = () => {
21177
+ const l = (t == null ? void 0 : t.minChars) ?? 0;
21178
+ return typeof l == "number" ? l : g(l) ?? 0;
21179
21179
  }, r = () => {
21180
- const a = (t == null ? void 0 : t.fontSize) ?? "";
21181
- return typeof a == "string" ? a : g(a) ?? "";
21180
+ const l = (t == null ? void 0 : t.fontSize) ?? "";
21181
+ return typeof l == "string" ? l : g(l) ?? "";
21182
+ }, i = () => {
21183
+ const l = (t == null ? void 0 : t.fixed) ?? !1;
21184
+ return typeof l == "boolean" ? l : g(l) ?? !1;
21182
21185
  };
21183
- function i() {
21184
- t != null && t.fixed && n.value !== null || _t(() => {
21185
- const a = e.value;
21186
- if (!a || typeof window > "u" || !(a instanceof Element)) return;
21187
- const l = pV();
21188
- if (!l) return;
21189
- const u = getComputedStyle(a);
21190
- l.style.fontFamily = u.fontFamily || "", l.style.fontSize = r() || u.fontSize || "", l.style.fontWeight = u.fontWeight || "", l.style.letterSpacing = u.letterSpacing || "";
21191
- const d = Math.max(1, o());
21192
- l.textContent = "가".repeat(d);
21193
- const f = Math.ceil(l.getBoundingClientRect().width), h = (E) => parseFloat(E) || 0, m = h(u.paddingLeft), b = h(u.paddingRight), v = h(u.borderLeftWidth), y = h(u.borderRightWidth), x = m + b + v + y, S = a.offsetWidth - a.clientWidth - (v + y);
21194
- n.value = f + x + S + 4;
21186
+ function s() {
21187
+ i() && n.value !== null || _t(() => {
21188
+ const l = e.value;
21189
+ if (!l || typeof window > "u" || !(l instanceof Element)) return;
21190
+ const u = pV();
21191
+ if (!u) return;
21192
+ const d = getComputedStyle(l);
21193
+ u.style.fontFamily = d.fontFamily || "", u.style.fontSize = r() || d.fontSize || "", u.style.fontWeight = d.fontWeight || "", u.style.letterSpacing = d.letterSpacing || "";
21194
+ const f = Math.max(1, o());
21195
+ u.textContent = "가".repeat(f);
21196
+ const h = Math.ceil(u.getBoundingClientRect().width), m = (C) => parseFloat(C) || 0, b = m(d.paddingLeft), v = m(d.paddingRight), y = m(d.borderLeftWidth), x = m(d.borderRightWidth), S = b + v + y + x, E = l.offsetWidth - l.clientWidth - (y + x);
21197
+ n.value = h + S + E + 4;
21195
21198
  });
21196
21199
  }
21197
21200
  return ct(() => {
21198
- i(), typeof window < "u" && window.addEventListener("resize", i);
21201
+ s(), typeof window < "u" && window.addEventListener("resize", s);
21199
21202
  }), t != null && t.minChars && typeof t.minChars.value < "u" && De(t.minChars, () => {
21200
- i();
21201
- }), !(t != null && t.fixed) && (t != null && t.fontSize) && typeof t.fontSize.value < "u" && De(t.fontSize, () => {
21202
- i();
21203
- }), (s = t == null ? void 0 : t.editor) == null || s.on("transaction", () => {
21204
- setTimeout(i, 150);
21203
+ s();
21204
+ }), t != null && t.fontSize && typeof t.fontSize.value < "u" && De(t.fontSize, () => {
21205
+ s();
21206
+ }), (a = t == null ? void 0 : t.editor) == null || a.on("transaction", () => {
21207
+ setTimeout(s, 150);
21205
21208
  }), Gn(() => {
21206
- typeof window < "u" && window.removeEventListener("resize", i), Us && Us.parentNode && (Us.parentNode.removeChild(Us), Us = null);
21209
+ typeof window < "u" && window.removeEventListener("resize", s), Us && Us.parentNode && (Us.parentNode.removeChild(Us), Us = null);
21207
21210
  }), {
21208
21211
  contentInner: e,
21209
21212
  measuredMinWidth: n,
21210
- measure: i
21213
+ measure: s
21211
21214
  };
21212
21215
  }
21213
21216
  const hV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mV = ln.create({
@@ -21287,15 +21290,15 @@ const hV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mV = ln.c
21287
21290
  TOP_RIGHT: "tr",
21288
21291
  BOTTOM_LEFT: "bl",
21289
21292
  BOTTOM_RIGHT: "br"
21290
- }, o = Pt("isMobile", !1), r = z({ width: l8, height: l8 }), i = z({ width: 0, height: 0 }), s = z(!1), a = z({
21293
+ }, o = Pt("isMobile", !1), r = V({ width: l8, height: l8 }), i = V({ width: 0, height: 0 }), s = V(!1), a = V({
21291
21294
  x: 0,
21292
21295
  y: 0,
21293
21296
  w: 0,
21294
21297
  h: 0,
21295
21298
  dir: ""
21296
21299
  }), l = J(() => {
21297
- const { src: C, alt: k, width: T, height: M, flipX: V, flipY: N } = e.node.attrs, L = [];
21298
- V && L.push("rotateX(180deg)"), N && L.push("rotateY(180deg)");
21300
+ const { src: C, alt: k, width: T, height: M, flipX: z, flipY: N } = e.node.attrs, L = [];
21301
+ z && L.push("rotateX(180deg)"), N && L.push("rotateY(180deg)");
21299
21302
  const W = L.join(" ");
21300
21303
  return {
21301
21304
  src: C || void 0,
@@ -21310,7 +21313,7 @@ const hV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mV = ln.c
21310
21313
  J(() => ({
21311
21314
  width: g(l).style.width === "100%" ? "100%" : void 0
21312
21315
  }));
21313
- const u = z(null), d = new ResizeObserver((C) => {
21316
+ const u = V(null), d = new ResizeObserver((C) => {
21314
21317
  for (const k of C) {
21315
21318
  const { width: T, height: M } = k.contentRect;
21316
21319
  i.value = { width: T, height: M }, e.updateAttributes({ originWidth: T, originHeight: M });
@@ -21327,17 +21330,17 @@ const hV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mV = ln.c
21327
21330
  function m(C, k) {
21328
21331
  C.preventDefault(), C.stopPropagation();
21329
21332
  let T = 0, M = 0;
21330
- const V = document.querySelector(".image-resizer");
21331
- if (V && (V.style.borderColor = "#3b82f6"), "touches" in C && C.touches.length > 0)
21333
+ const z = document.querySelector(".image-resizer");
21334
+ if (z && (z.style.borderColor = "#3b82f6"), "touches" in C && C.touches.length > 0)
21332
21335
  T = C.touches[0].clientX, M = C.touches[0].clientY;
21333
21336
  else if ("clientX" in C)
21334
21337
  T = C.clientX, M = C.clientY;
21335
21338
  else
21336
21339
  return;
21337
21340
  const { width: N, height: L } = g(i), W = N / L;
21338
- let j = Number(e.node.attrs.width) || N, ne = Number(e.node.attrs.height) || Math.round(j / W);
21341
+ let j = Number(e.node.attrs.width) || N, te = Number(e.node.attrs.height) || Math.round(j / W);
21339
21342
  const ue = g(r).width;
21340
- j = Math.min(j > ue ? ue : j, ue), ne = Math.round(j / W), Object.assign(a.value, { x: T, y: M, w: j, h: ne, dir: k }), s.value = !0, y();
21343
+ j = Math.min(j > ue ? ue : j, ue), te = Math.round(j / W), Object.assign(a.value, { x: T, y: M, w: j, h: te, dir: k }), s.value = !0, y();
21341
21344
  }
21342
21345
  const b = Kt.throttle((C) => {
21343
21346
  if (!g(s)) return;
@@ -21348,7 +21351,7 @@ const hV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mV = ln.c
21348
21351
  k = C.clientX;
21349
21352
  else
21350
21353
  return;
21351
- const { x: T, w: M, dir: V } = g(a), N = (k - T) * (/l/.test(V) ? -1 : 1), L = dV(M + N, eV, g(r).width);
21354
+ const { x: T, w: M, dir: z } = g(a), N = (k - T) * (/l/.test(z) ? -1 : 1), L = dV(M + N, eV, g(r).width);
21352
21355
  e.updateAttributes({ width: L });
21353
21356
  }, u8), v = (C) => {
21354
21357
  C.preventDefault(), C.stopPropagation();
@@ -21594,7 +21597,7 @@ const hV = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, mV = ln.c
21594
21597
  () => r.value ? s(e.commentCuesheet) : ""
21595
21598
  ), u = J(
21596
21599
  () => i.value ? s(e.content) : ""
21597
- ), d = z(), f = z(), h = z();
21600
+ ), d = V(), f = V(), h = V();
21598
21601
  Gn(() => {
21599
21602
  d.value && d.value.destroy(), f.value && f.value.destroy(), h.value && h.value.destroy();
21600
21603
  });
@@ -21976,7 +21979,7 @@ const FV = (t) => ({
21976
21979
  }, m = E2(r), b = S2(m), v = await s.getDimensions(u), y = m === "y", x = y ? "top" : "left", S = y ? "bottom" : "right", E = y ? "clientHeight" : "clientWidth", C = i.reference[b] + i.reference[m] - h[m] - i.floating[b], k = h[m] - i.reference[m], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
21977
21980
  let M = T ? T[E] : 0;
21978
21981
  (!M || !await (s.isElement == null ? void 0 : s.isElement(T))) && (M = a.floating[E] || i.floating[b]);
21979
- const V = C / 2 - k / 2, N = M / 2 - v[b] / 2 - 1, L = ra(f[x], N), W = ra(f[S], N), j = L, ne = M - v[b] - W, ue = M / 2 - v[b] / 2 + V, G = Ob(j, ue, ne), B = !l.arrow && Hu(r) != null && ue !== G && i.reference[b] / 2 - (ue < j ? L : W) - v[b] / 2 < 0, F = B ? ue < j ? ue - j : ue - ne : 0;
21982
+ const z = C / 2 - k / 2, N = M / 2 - v[b] / 2 - 1, L = ra(f[x], N), W = ra(f[S], N), j = L, te = M - v[b] - W, ue = M / 2 - v[b] / 2 + z, G = Ob(j, ue, te), B = !l.arrow && Hu(r) != null && ue !== G && i.reference[b] / 2 - (ue < j ? L : W) - v[b] / 2 < 0, F = B ? ue < j ? ue - j : ue - te : 0;
21980
21983
  return {
21981
21984
  [m]: h[m] + F,
21982
21985
  data: {
@@ -22015,11 +22018,11 @@ const FV = (t) => ({
22015
22018
  return {};
22016
22019
  const x = ys(r), S = ia(a), E = ys(a) === a, C = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = h || (E || !v ? [ch(a)] : LV(a)), T = b !== "none";
22017
22020
  !h && T && k.push(...DV(a, v, b, C));
22018
- const M = [a, ...k], V = await id(e, y), N = [];
22021
+ const M = [a, ...k], z = await id(e, y), N = [];
22019
22022
  let L = ((o = i.flip) == null ? void 0 : o.overflows) || [];
22020
- if (d && N.push(V[x]), f) {
22023
+ if (d && N.push(z[x]), f) {
22021
22024
  const ue = NV(r, s, C);
22022
- N.push(V[ue[0]], V[ue[1]]);
22025
+ N.push(z[ue[0]], z[ue[1]]);
22023
22026
  }
22024
22027
  if (L = [...L, {
22025
22028
  placement: r,
@@ -22041,8 +22044,8 @@ const FV = (t) => ({
22041
22044
  if (!B)
22042
22045
  switch (m) {
22043
22046
  case "bestFit": {
22044
- var ne;
22045
- const F = (ne = L.filter((U) => {
22047
+ var te;
22048
+ const F = (te = L.filter((U) => {
22046
22049
  if (T) {
22047
22050
  const P = ia(U.placement);
22048
22051
  return P === S || // Create a bias to the `y` side axis due to horizontal
@@ -22050,7 +22053,7 @@ const FV = (t) => ({
22050
22053
  P === "y";
22051
22054
  }
22052
22055
  return !0;
22053
- }).map((U) => [U.placement, U.overflows.filter((P) => P > 0).reduce((P, ee) => P + ee, 0)]).sort((U, P) => U[1] - P[1])[0]) == null ? void 0 : ne[0];
22056
+ }).map((U) => [U.placement, U.overflows.filter((P) => P > 0).reduce((P, ee) => P + ee, 0)]).sort((U, P) => U[1] - P[1])[0]) == null ? void 0 : te[0];
22054
22057
  F && (B = F);
22055
22058
  break;
22056
22059
  }
@@ -22291,14 +22294,14 @@ const VV = function(t) {
22291
22294
  let y, x;
22292
22295
  f === "top" || f === "bottom" ? (y = f, x = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = f, y = h === "end" ? "top" : "bottom");
22293
22296
  const S = v - d.top - d.bottom, E = b - d.left - d.right, C = ra(v - d[y], S), k = ra(b - d[x], E), T = !e.middlewareData.shift;
22294
- let M = C, V = k;
22295
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (V = E), (o = e.middlewareData.shift) != null && o.enabled.y && (M = S), T && !h) {
22296
- const L = cr(d.left, 0), W = cr(d.right, 0), j = cr(d.top, 0), ne = cr(d.bottom, 0);
22297
- m ? V = b - 2 * (L !== 0 || W !== 0 ? L + W : cr(d.left, d.right)) : M = v - 2 * (j !== 0 || ne !== 0 ? j + ne : cr(d.top, d.bottom));
22297
+ let M = C, z = k;
22298
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (z = E), (o = e.middlewareData.shift) != null && o.enabled.y && (M = S), T && !h) {
22299
+ const L = cr(d.left, 0), W = cr(d.right, 0), j = cr(d.top, 0), te = cr(d.bottom, 0);
22300
+ m ? z = b - 2 * (L !== 0 || W !== 0 ? L + W : cr(d.left, d.right)) : M = v - 2 * (j !== 0 || te !== 0 ? j + te : cr(d.top, d.bottom));
22298
22301
  }
22299
22302
  await l({
22300
22303
  ...e,
22301
- availableWidth: V,
22304
+ availableWidth: z,
22302
22305
  availableHeight: M
22303
22306
  });
22304
22307
  const N = await s.getDimensions(a.floating);
@@ -22845,7 +22848,7 @@ function yU(t, e, n) {
22845
22848
  }), l = J(() => {
22846
22849
  var M;
22847
22850
  return (M = nu(n.transform)) != null ? M : !0;
22848
- }), u = J(() => Lb(t.value)), d = J(() => Lb(e.value)), f = z(0), h = z(0), m = z(a.value), b = z(s.value), v = Zh({}), y = z(!1), x = J(() => {
22851
+ }), u = J(() => Lb(t.value)), d = J(() => Lb(e.value)), f = V(0), h = V(0), m = V(a.value), b = V(s.value), v = Zh({}), y = V(!1), x = J(() => {
22849
22852
  const M = {
22850
22853
  position: m.value,
22851
22854
  left: "0",
@@ -22853,16 +22856,16 @@ function yU(t, e, n) {
22853
22856
  };
22854
22857
  if (!d.value)
22855
22858
  return M;
22856
- const V = x8(d.value, f.value), N = x8(d.value, h.value);
22859
+ const z = x8(d.value, f.value), N = x8(d.value, h.value);
22857
22860
  return l.value ? {
22858
22861
  ...M,
22859
- transform: "translate(" + V + "px, " + N + "px)",
22862
+ transform: "translate(" + z + "px, " + N + "px)",
22860
22863
  ...qE(d.value) >= 1.5 && {
22861
22864
  willChange: "transform"
22862
22865
  }
22863
22866
  } : {
22864
22867
  position: m.value,
22865
- left: V + "px",
22868
+ left: z + "px",
22866
22869
  top: N + "px"
22867
22870
  };
22868
22871
  });
@@ -22875,8 +22878,8 @@ function yU(t, e, n) {
22875
22878
  middleware: i.value,
22876
22879
  placement: s.value,
22877
22880
  strategy: a.value
22878
- }).then((V) => {
22879
- f.value = V.x, h.value = V.y, m.value = V.strategy, b.value = V.placement, v.value = V.middlewareData, y.value = M !== !1;
22881
+ }).then((z) => {
22882
+ f.value = z.x, h.value = z.y, m.value = z.strategy, b.value = z.placement, v.value = z.middlewareData, y.value = M !== !1;
22880
22883
  });
22881
22884
  }
22882
22885
  function C() {
@@ -23048,7 +23051,7 @@ function IU(t, e) {
23048
23051
  function JE(t, e, n = {}) {
23049
23052
  const {
23050
23053
  immediate: o = !0
23051
- } = n, r = z(!1);
23054
+ } = n, r = V(!1);
23052
23055
  let i = null;
23053
23056
  function s() {
23054
23057
  i && (clearTimeout(i), i = null);
@@ -23117,7 +23120,7 @@ function RU(...t) {
23117
23120
  }, s);
23118
23121
  }
23119
23122
  function ZE() {
23120
- const t = z(!1), e = tr();
23123
+ const t = V(!1), e = tr();
23121
23124
  return e && ct(() => {
23122
23125
  t.value = !0;
23123
23126
  }, e), t;
@@ -23168,7 +23171,7 @@ function yr(t, e, n, o = {}) {
23168
23171
  h ? h(E) && b(v, E) : b(v, E);
23169
23172
  };
23170
23173
  if (l) {
23171
- const E = x(), C = z(E);
23174
+ const E = x(), C = V(E);
23172
23175
  let k = !1;
23173
23176
  return De(
23174
23177
  () => t[e],
@@ -23285,13 +23288,13 @@ let zU = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", VU
23285
23288
  return e;
23286
23289
  };
23287
23290
  const UU = GE(() => {
23288
- const t = z(/* @__PURE__ */ new Map()), e = z(), n = J(() => {
23291
+ const t = V(/* @__PURE__ */ new Map()), e = V(), n = J(() => {
23289
23292
  for (const s of t.value.values())
23290
23293
  if (s)
23291
23294
  return !0;
23292
23295
  return !1;
23293
23296
  }), o = E0({
23294
- scrollBody: z(!0)
23297
+ scrollBody: V(!0)
23295
23298
  });
23296
23299
  let r = null;
23297
23300
  const i = () => {
@@ -23348,7 +23351,7 @@ const jU = "data-radix-vue-collection-item";
23348
23351
  function $d(t, e = jU) {
23349
23352
  const n = Symbol();
23350
23353
  return { createCollection: (o) => {
23351
- const r = z([]);
23354
+ const r = V([]);
23352
23355
  function i() {
23353
23356
  const s = li(o);
23354
23357
  return s ? r.value = Array.from(
@@ -23358,11 +23361,11 @@ function $d(t, e = jU) {
23358
23361
  return IR(() => {
23359
23362
  r.value = [];
23360
23363
  }), ct(i), NR(i), De(() => o == null ? void 0 : o.value, i, { immediate: !0 }), en(n, r), r;
23361
- }, injectCollection: () => Pt(n, z([])) };
23364
+ }, injectCollection: () => Pt(n, V([])) };
23362
23365
  }
23363
23366
  function ml(t) {
23364
23367
  const e = E0({
23365
- dir: z("ltr")
23368
+ dir: V("ltr")
23366
23369
  });
23367
23370
  return J(() => {
23368
23371
  var n;
@@ -23424,7 +23427,7 @@ function un(t, e) {
23424
23427
  }));
23425
23428
  }
23426
23429
  function Xe() {
23427
- const t = tr(), e = z(), n = J(() => {
23430
+ const t = tr(), e = V(), n = J(() => {
23428
23431
  var s, a;
23429
23432
  return ["#text", "#comment"].includes((s = e.value) == null ? void 0 : s.$el.nodeName) ? (a = e.value) == null ? void 0 : a.$el.nextElementSibling : li(e);
23430
23433
  }), o = Object.assign({}, t.exposed), r = {};
@@ -23456,7 +23459,7 @@ function Xe() {
23456
23459
  return { forwardRef: i, currentRef: e, currentElement: n };
23457
23460
  }
23458
23461
  function qU(t, e) {
23459
- const n = XE(!1, 300), o = z(null), r = CU();
23462
+ const n = XE(!1, 300), o = V(null), r = CU();
23460
23463
  function i() {
23461
23464
  o.value = null, n.value = !1;
23462
23465
  }
@@ -23650,7 +23653,7 @@ function Hr(t, e = "radix") {
23650
23653
  return M6.useId ? `${e}-${M6.useId()}` : n.useId ? `${e}-${n.useId()}` : `${e}-${++oW}`;
23651
23654
  }
23652
23655
  function rW(t) {
23653
- const e = z(), n = J(() => {
23656
+ const e = V(), n = J(() => {
23654
23657
  var r;
23655
23658
  return ((r = e.value) == null ? void 0 : r.width) ?? 0;
23656
23659
  }), o = J(() => {
@@ -23682,7 +23685,7 @@ function rW(t) {
23682
23685
  };
23683
23686
  }
23684
23687
  function n_(t, e) {
23685
- const n = z(t);
23688
+ const n = V(t);
23686
23689
  function o(r) {
23687
23690
  return e[n.value][r] ?? n.value;
23688
23691
  }
@@ -23768,7 +23771,7 @@ const L2 = K({
23768
23771
  }
23769
23772
  });
23770
23773
  function o_() {
23771
- const t = z(), e = J(() => {
23774
+ const t = V(), e = J(() => {
23772
23775
  var n, o;
23773
23776
  return ["#text", "#comment"].includes((n = t.value) == null ? void 0 : n.$el.nodeName) ? (o = t.value) == null ? void 0 : o.$el.nextElementSibling : li(t);
23774
23777
  });
@@ -23779,7 +23782,7 @@ function o_() {
23779
23782
  }
23780
23783
  function lW(t, e) {
23781
23784
  var n;
23782
- const o = z({}), r = z("none"), i = z(t), s = t.value ? "mounted" : "unmounted";
23785
+ const o = V({}), r = V("none"), i = V(t), s = t.value ? "mounted" : "unmounted";
23783
23786
  let a;
23784
23787
  const l = ((n = e.value) == null ? void 0 : n.ownerDocument.defaultView) ?? C0, { state: u, dispatch: d } = n_(s, {
23785
23788
  mounted: {
@@ -23861,7 +23864,7 @@ const Ur = K({
23861
23864
  slots: {},
23862
23865
  setup(t, { slots: e, expose: n }) {
23863
23866
  var o;
23864
- const { present: r, forceMount: i } = Vn(t), s = z(), { isPresent: a } = lW(r, s);
23867
+ const { present: r, forceMount: i } = Vn(t), s = V(), { isPresent: a } = lW(r, s);
23865
23868
  n({ present: a });
23866
23869
  let l = e.default({ present: a });
23867
23870
  l = S0(l || []);
@@ -23903,7 +23906,7 @@ const Ur = K({
23903
23906
  const n = t, o = yr(n, "open", e, {
23904
23907
  defaultValue: n.defaultOpen,
23905
23908
  passive: n.open === void 0
23906
- }), r = z(), i = z(), { modal: s } = Vn(n);
23909
+ }), r = V(), i = V(), { modal: s } = Vn(n);
23907
23910
  return uW({
23908
23911
  open: o,
23909
23912
  modal: s,
@@ -23994,7 +23997,7 @@ function r_(t, e) {
23994
23997
  }
23995
23998
  function hW(t, e) {
23996
23999
  var n;
23997
- const o = ((n = e == null ? void 0 : e.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = z(!1), i = z(() => {
24000
+ const o = ((n = e == null ? void 0 : e.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = V(!1), i = V(() => {
23998
24001
  });
23999
24002
  return In((s) => {
24000
24003
  if (!xs)
@@ -24034,7 +24037,7 @@ function hW(t, e) {
24034
24037
  }
24035
24038
  function mW(t, e) {
24036
24039
  var n;
24037
- const o = ((n = e == null ? void 0 : e.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = z(!1);
24040
+ const o = ((n = e == null ? void 0 : e.value) == null ? void 0 : n.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), r = V(!1);
24038
24041
  return In((i) => {
24039
24042
  if (!xs)
24040
24043
  return;
@@ -24159,7 +24162,7 @@ function Bs(t, { select: e = !1 } = {}) {
24159
24162
  t.focus({ preventScroll: !0 }), t !== n && yW(t) && e && t.select();
24160
24163
  }
24161
24164
  }
24162
- const wW = SU(() => z([]));
24165
+ const wW = SU(() => V([]));
24163
24166
  function xW() {
24164
24167
  const t = wW();
24165
24168
  return {
@@ -24190,7 +24193,7 @@ const T0 = /* @__PURE__ */ K({
24190
24193
  },
24191
24194
  emits: ["mountAutoFocus", "unmountAutoFocus"],
24192
24195
  setup(t, { emit: e }) {
24193
- const n = t, o = e, { currentRef: r, currentElement: i } = Xe(), s = z(null), a = xW(), l = ko({
24196
+ const n = t, o = e, { currentRef: r, currentElement: i } = Xe(), s = V(null), a = xW(), l = ko({
24194
24197
  paused: !1,
24195
24198
  pause() {
24196
24199
  this.paused = !0;
@@ -24428,7 +24431,7 @@ const u_ = /* @__PURE__ */ K({
24428
24431
  setup(t, { emit: e }) {
24429
24432
  const n = t, o = gl(e);
24430
24433
  Xe();
24431
- const r = Di(), i = z(!1), s = z(!1);
24434
+ const r = Di(), i = V(!1), s = V(!1);
24432
24435
  return (a, l) => (A(), H(u_, Ne({ ...n, ...g(o) }, {
24433
24436
  "trap-focus": !1,
24434
24437
  "disable-outside-pointer-events": !1,
@@ -24703,7 +24706,7 @@ const FW = ["value", "checked", "name", "disabled", "required"], [$W, HW] = bn("
24703
24706
  inheritAttrs: !1,
24704
24707
  __name: "PopperRoot",
24705
24708
  setup(t) {
24706
- const e = z();
24709
+ const e = V();
24707
24710
  return UW({
24708
24711
  anchor: e,
24709
24712
  onAnchorChange: (n) => e.value = n
@@ -24787,7 +24790,7 @@ const f_ = {
24787
24790
  }),
24788
24791
  emits: ["placed"],
24789
24792
  setup(t, { emit: e }) {
24790
- const n = t, o = e, r = d_(), { forwardRef: i, currentElement: s } = Xe(), a = z(), l = z(), { width: u, height: d } = rW(l), f = J(
24793
+ const n = t, o = e, r = d_(), { forwardRef: i, currentElement: s } = Xe(), a = V(), l = V(), { width: u, height: d } = rW(l), f = J(
24791
24794
  () => n.side + (n.align !== "center" ? `-${n.align}` : "")
24792
24795
  ), h = J(() => typeof n.collisionPadding == "number" ? n.collisionPadding : { top: 0, right: 0, bottom: 0, left: 0, ...n.collisionPadding }), m = J(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), b = J(() => ({
24793
24796
  padding: h.value,
@@ -24813,14 +24816,14 @@ const f_ = {
24813
24816
  }),
24814
24817
  fU({
24815
24818
  ...b.value,
24816
- apply: ({ elements: L, rects: W, availableWidth: j, availableHeight: ne }) => {
24819
+ apply: ({ elements: L, rects: W, availableWidth: j, availableHeight: te }) => {
24817
24820
  const { width: ue, height: G } = W.reference, B = L.floating.style;
24818
24821
  B.setProperty(
24819
24822
  "--radix-popper-available-width",
24820
24823
  `${j}px`
24821
24824
  ), B.setProperty(
24822
24825
  "--radix-popper-available-height",
24823
- `${ne}px`
24826
+ `${te}px`
24824
24827
  ), B.setProperty(
24825
24828
  "--radix-popper-anchor-width",
24826
24829
  `${ue}px`
@@ -24860,11 +24863,11 @@ const f_ = {
24860
24863
  var L;
24861
24864
  return ((L = E.value.arrow) == null ? void 0 : L.centerOffset) !== 0;
24862
24865
  }
24863
- ), M = z("");
24866
+ ), M = V("");
24864
24867
  In(() => {
24865
24868
  s.value && (M.value = window.getComputedStyle(s.value).zIndex);
24866
24869
  });
24867
- const V = J(() => {
24870
+ const z = J(() => {
24868
24871
  var L;
24869
24872
  return ((L = E.value.arrow) == null ? void 0 : L.x) ?? 0;
24870
24873
  }), N = J(() => {
@@ -24874,11 +24877,11 @@ const f_ = {
24874
24877
  return qW({
24875
24878
  placedSide: C,
24876
24879
  onArrowChange: (L) => l.value = L,
24877
- arrowX: V,
24880
+ arrowX: z,
24878
24881
  arrowY: N,
24879
24882
  shouldHideArrow: T
24880
24883
  }), (L, W) => {
24881
- var j, ne, ue;
24884
+ var j, te, ue;
24882
24885
  return A(), ie("div", {
24883
24886
  ref_key: "floatingRef",
24884
24887
  ref: a,
@@ -24891,7 +24894,7 @@ const f_ = {
24891
24894
  zIndex: M.value,
24892
24895
  "--radix-popper-transform-origin": [
24893
24896
  (j = g(E).transformOrigin) == null ? void 0 : j.x,
24894
- (ne = g(E).transformOrigin) == null ? void 0 : ne.y
24897
+ (te = g(E).transformOrigin) == null ? void 0 : te.y
24895
24898
  ].join(" "),
24896
24899
  // hide the content if using the hide middleware and should be hidden
24897
24900
  // set visibility to hidden and disable pointer events so the UI behaves
@@ -24954,7 +24957,7 @@ const f_ = {
24954
24957
  }
24955
24958
  }), KW = "data-radix-vue-collection-item", [P2, GW] = bn("CollectionProvider");
24956
24959
  function XW(t = KW) {
24957
- const e = z(/* @__PURE__ */ new Map()), n = z(), o = GW({
24960
+ const e = V(/* @__PURE__ */ new Map()), n = V(), o = GW({
24958
24961
  collectionRef: n,
24959
24962
  itemMap: e,
24960
24963
  attrName: t
@@ -25002,7 +25005,7 @@ function m_(t) {
25002
25005
  }
25003
25006
  function g_(t) {
25004
25007
  const e = E0({
25005
- nonce: z()
25008
+ nonce: V()
25006
25009
  });
25007
25010
  return J(() => {
25008
25011
  var n;
@@ -25027,7 +25030,7 @@ const b_ = /* @__PURE__ */ K({
25027
25030
  }
25028
25031
  });
25029
25032
  function JW() {
25030
- const t = z(!1);
25033
+ const t = V(!1);
25031
25034
  return ct(() => {
25032
25035
  ku("keydown", () => {
25033
25036
  t.value = !0;
@@ -25045,7 +25048,7 @@ const ZW = GE(JW), [O0, QW] = bn(["MenuRoot", "MenuSub"], "MenuContext"), [B2, e
25045
25048
  },
25046
25049
  emits: ["update:open"],
25047
25050
  setup(t, { emit: e }) {
25048
- const n = t, o = e, { modal: r, dir: i } = Vn(n), s = ml(i), a = yr(n, "open", o), l = z(), u = ZW();
25051
+ const n = t, o = e, { modal: r, dir: i } = Vn(n), s = ml(i), a = yr(n, "open", o), l = V(), u = ZW();
25049
25052
  return QW({
25050
25053
  open: a,
25051
25054
  onOpenChange: (d) => {
@@ -25113,7 +25116,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25113
25116
  const o = t, r = n, { loop: i, orientation: s, dir: a } = Vn(o), l = ml(a), u = yr(o, "currentTabStopId", r, {
25114
25117
  defaultValue: o.defaultCurrentTabStopId,
25115
25118
  passive: o.currentTabStopId === void 0
25116
- }), d = z(!1), f = z(!1), h = z(0), { getItems: m } = XW();
25119
+ }), d = V(!1), f = V(!1), h = V(0), { getItems: m } = XW();
25117
25120
  function b(y) {
25118
25121
  const x = !f.value;
25119
25122
  if (y.currentTarget && y.target === y.currentTarget && x && !d.value) {
@@ -25276,7 +25279,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25276
25279
  setup(t, { emit: e }) {
25277
25280
  const n = t, o = e, r = O0(), i = B2(), { trapFocus: s, disableOutsidePointerEvents: a, loop: l } = Vn(n);
25278
25281
  O2(), _0(a.value);
25279
- const u = z(""), d = z(0), f = z(0), h = z(null), m = z("right"), b = z(0), v = z(null), { createCollection: y } = $d(), { forwardRef: x, currentElement: S } = Xe(), E = y(S);
25282
+ const u = V(""), d = V(0), f = V(0), h = V(null), m = V("right"), b = V(0), v = V(null), { createCollection: y } = $d(), { forwardRef: x, currentElement: S } = Xe(), E = y(S);
25280
25283
  De(S, (L) => {
25281
25284
  r.onContentChange(L);
25282
25285
  });
@@ -25297,7 +25300,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25297
25300
  function M(L) {
25298
25301
  if (L.defaultPrevented)
25299
25302
  return;
25300
- const W = L.target.closest("[data-radix-menu-content]") === L.currentTarget, j = L.ctrlKey || L.altKey || L.metaKey, ne = L.key.length === 1, ue = FU(
25303
+ const W = L.target.closest("[data-radix-menu-content]") === L.currentTarget, j = L.ctrlKey || L.altKey || L.metaKey, te = L.key.length === 1, ue = FU(
25301
25304
  L,
25302
25305
  _o(),
25303
25306
  S.value,
@@ -25311,13 +25314,13 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25311
25314
  );
25312
25315
  if (ue)
25313
25316
  return ue == null ? void 0 : ue.focus();
25314
- if (L.code === "Space" || (W && (L.key === "Tab" && L.preventDefault(), !j && ne && C(L.key)), L.target !== S.value) || !_W.includes(L.key))
25317
+ if (L.code === "Space" || (W && (L.key === "Tab" && L.preventDefault(), !j && te && C(L.key)), L.target !== S.value) || !_W.includes(L.key))
25315
25318
  return;
25316
25319
  L.preventDefault();
25317
25320
  const G = E.value;
25318
25321
  s_.includes(L.key) && G.reverse(), Fb(G);
25319
25322
  }
25320
- function V(L) {
25323
+ function z(L) {
25321
25324
  var W, j;
25322
25325
  (j = (W = L == null ? void 0 : L.currentTarget) == null ? void 0 : W.contains) != null && j.call(W, L.target) || (window.clearTimeout(d.value), u.value = "");
25323
25326
  }
@@ -25325,8 +25328,8 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25325
25328
  var W;
25326
25329
  if (!$b(L))
25327
25330
  return;
25328
- const j = L.target, ne = b.value !== L.clientX;
25329
- if ((W = L == null ? void 0 : L.currentTarget) != null && W.contains(j) && ne) {
25331
+ const j = L.target, te = b.value !== L.clientX;
25332
+ if ((W = L == null ? void 0 : L.currentTarget) != null && W.contains(j) && te) {
25330
25333
  const ue = L.clientX > b.value ? "right" : "left";
25331
25334
  m.value = ue, b.value = L.clientX;
25332
25335
  }
@@ -25393,7 +25396,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25393
25396
  sticky: L.sticky,
25394
25397
  "hide-when-detached": L.hideWhenDetached,
25395
25398
  onKeydown: M,
25396
- onBlur: V,
25399
+ onBlur: z,
25397
25400
  onPointermove: N
25398
25401
  }, {
25399
25402
  default: O(() => [
@@ -25421,7 +25424,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25421
25424
  as: {}
25422
25425
  },
25423
25426
  setup(t) {
25424
- const e = t, n = x_(), { forwardRef: o } = Xe(), r = z(!1);
25427
+ const e = t, n = x_(), { forwardRef: o } = Xe(), r = V(!1);
25425
25428
  async function i(a) {
25426
25429
  if (!a.defaultPrevented && $b(a)) {
25427
25430
  if (e.disabled)
@@ -25478,7 +25481,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25478
25481
  },
25479
25482
  emits: ["select"],
25480
25483
  setup(t, { emit: e }) {
25481
- const n = t, o = e, { forwardRef: r, currentElement: i } = Xe(), s = B2(), a = x_(), l = z(!1);
25484
+ const n = t, o = e, { forwardRef: r, currentElement: i } = Xe(), s = B2(), a = x_(), l = V(!1);
25482
25485
  async function u() {
25483
25486
  const d = i.value;
25484
25487
  if (!n.disabled && d) {
@@ -25522,7 +25525,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25522
25525
  },
25523
25526
  setup(t) {
25524
25527
  const e = fj({
25525
- checked: z(!1)
25528
+ checked: V(!1)
25526
25529
  });
25527
25530
  return (n, o) => (A(), H(g(Ur), {
25528
25531
  present: n.forceMount || g(fh)(g(e).checked.value) || g(e).checked.value === !0
@@ -25724,7 +25727,7 @@ const [aj, lj] = bn("RovingFocusGroup"), w_ = /* @__PURE__ */ K({
25724
25727
  setup(t, { emit: e }) {
25725
25728
  const n = t, o = e, { dir: r, modal: i } = Vn(n);
25726
25729
  Xe();
25727
- const s = ml(r), a = z(!1);
25730
+ const s = ml(r), a = V(!1);
25728
25731
  return yj({
25729
25732
  open: a,
25730
25733
  onOpenChange: (l) => {
@@ -25759,7 +25762,7 @@ const xj = /* @__PURE__ */ K({
25759
25762
  as: { default: "span" }
25760
25763
  },
25761
25764
  setup(t) {
25762
- const e = t, { disabled: n } = Vn(e), { forwardRef: o } = Xe(), r = __(), i = z({ x: 0, y: 0 }), s = J(() => ({
25765
+ const e = t, { disabled: n } = Vn(e), { forwardRef: o } = Xe(), r = __(), i = V({ x: 0, y: 0 }), s = J(() => ({
25763
25766
  getBoundingClientRect: () => ({
25764
25767
  width: 0,
25765
25768
  height: 0,
@@ -25769,7 +25772,7 @@ const xj = /* @__PURE__ */ K({
25769
25772
  bottom: i.value.y,
25770
25773
  ...i.value
25771
25774
  })
25772
- })), a = z(0);
25775
+ })), a = V(0);
25773
25776
  function l() {
25774
25777
  window.clearTimeout(a.value);
25775
25778
  }
@@ -25848,7 +25851,7 @@ const xj = /* @__PURE__ */ K({
25848
25851
  setup(t, { emit: e }) {
25849
25852
  const n = un(t, e);
25850
25853
  Xe();
25851
- const o = __(), r = z(!1);
25854
+ const o = __(), r = V(!1);
25852
25855
  return (i, s) => (A(), H(g(S_), Ne(g(n), {
25853
25856
  side: "right",
25854
25857
  "side-offset": 2,
@@ -25906,7 +25909,7 @@ const xj = /* @__PURE__ */ K({
25906
25909
  const r = yr(n, "open", o, {
25907
25910
  defaultValue: n.defaultOpen,
25908
25911
  passive: n.open === void 0
25909
- }), i = z(), { modal: s, dir: a } = Vn(n), l = ml(a);
25912
+ }), i = V(), { modal: s, dir: a } = Vn(n), l = ml(a);
25910
25913
  return _j({
25911
25914
  open: r,
25912
25915
  onOpenChange: (u) => {
@@ -26017,7 +26020,7 @@ const xj = /* @__PURE__ */ K({
26017
26020
  setup(t, { emit: e }) {
26018
26021
  const n = un(t, e);
26019
26022
  Xe();
26020
- const o = k_(), r = z(!1);
26023
+ const o = k_(), r = V(!1);
26021
26024
  function i(s) {
26022
26025
  s.defaultPrevented || (r.value || setTimeout(() => {
26023
26026
  var a;
@@ -26151,7 +26154,7 @@ const xj = /* @__PURE__ */ K({
26151
26154
  const n = t, o = e, { modal: r } = Vn(n), i = yr(n, "open", o, {
26152
26155
  defaultValue: n.defaultOpen,
26153
26156
  passive: n.open === void 0
26154
- }), s = z(), a = z(!1);
26157
+ }), s = V(), a = V(!1);
26155
26158
  return Dj({
26156
26159
  contentId: "",
26157
26160
  modal: r,
@@ -26307,7 +26310,7 @@ const xj = /* @__PURE__ */ K({
26307
26310
  },
26308
26311
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
26309
26312
  setup(t, { emit: e }) {
26310
- const n = t, o = e, r = Vu(), i = z(!1);
26313
+ const n = t, o = e, r = Vu(), i = V(!1);
26311
26314
  _0(!0);
26312
26315
  const s = un(n, o), { forwardRef: a, currentElement: l } = Xe();
26313
26316
  return k0(l), (u, d) => (A(), H(T_, Ne(g(s), {
@@ -26357,7 +26360,7 @@ const xj = /* @__PURE__ */ K({
26357
26360
  },
26358
26361
  emits: ["escapeKeyDown", "pointerDownOutside", "focusOutside", "interactOutside", "openAutoFocus", "closeAutoFocus"],
26359
26362
  setup(t, { emit: e }) {
26360
- const n = t, o = e, r = Vu(), i = z(!1), s = z(!1), a = un(n, o);
26363
+ const n = t, o = e, r = Vu(), i = V(!1), s = V(!1), a = un(n, o);
26361
26364
  return (l, u) => (A(), H(T_, Ne(g(a), {
26362
26365
  "trap-focus": !1,
26363
26366
  "disable-outside-pointer-events": !1,
@@ -26453,7 +26456,7 @@ const xj = /* @__PURE__ */ K({
26453
26456
  as: {}
26454
26457
  },
26455
26458
  setup(t, { expose: e }) {
26456
- const n = t, o = z(0), r = z(0), i = z(), s = z(), a = z(), l = z(), u = z(!1), d = z(!1), { type: f, dir: h, scrollHideDelay: m } = Vn(n), b = ml(h);
26459
+ const n = t, o = V(0), r = V(0), i = V(), s = V(), a = V(), l = V(), u = V(!1), d = V(!1), { type: f, dir: h, scrollHideDelay: m } = Vn(n), b = ml(h);
26457
26460
  function v() {
26458
26461
  var E;
26459
26462
  (E = i.value) == null || E.scrollTo({
@@ -26538,7 +26541,7 @@ const xj = /* @__PURE__ */ K({
26538
26541
  as: {}
26539
26542
  },
26540
26543
  setup(t, { expose: e }) {
26541
- const n = t, { nonce: o } = Vn(n), r = g_(o), i = Wr(), s = z();
26544
+ const n = t, { nonce: o } = Vn(n), r = g_(o), i = Wr(), s = V();
26542
26545
  ct(() => {
26543
26546
  i.onViewportChange(s.value), i.onContentChange(l.value);
26544
26547
  }), e({
@@ -26651,7 +26654,7 @@ const O_ = /* @__PURE__ */ K({
26651
26654
  },
26652
26655
  emits: ["onDragScroll", "onWheelScroll", "onThumbPointerDown"],
26653
26656
  setup(t, { emit: e }) {
26654
- const n = t, o = e, r = Wr(), i = N0(), s = L0(), { forwardRef: a, currentElement: l } = Xe(), u = z(""), d = z();
26657
+ const n = t, o = e, r = Wr(), i = N0(), s = L0(), { forwardRef: a, currentElement: l } = Xe(), u = V(""), d = V();
26655
26658
  function f(x) {
26656
26659
  var S, E;
26657
26660
  if (d.value) {
@@ -26771,14 +26774,14 @@ const O_ = /* @__PURE__ */ K({
26771
26774
  }), [N0, Yj] = bn("ScrollAreaScrollbarVisible"), $2 = /* @__PURE__ */ K({
26772
26775
  __name: "ScrollAreaScrollbarVisible",
26773
26776
  setup(t) {
26774
- const e = Wr(), n = L0(), { forwardRef: o } = Xe(), r = z({
26777
+ const e = Wr(), n = L0(), { forwardRef: o } = Xe(), r = V({
26775
26778
  content: 0,
26776
26779
  viewport: 0,
26777
26780
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
26778
26781
  }), i = J(() => {
26779
26782
  const x = M_(r.value.viewport, r.value.content);
26780
26783
  return x > 0 && x < 1;
26781
- }), s = z(), a = z(0);
26784
+ }), s = V(), a = V(0);
26782
26785
  function l(x, S) {
26783
26786
  if (m.value) {
26784
26787
  const E = e.viewport.value.scrollLeft + x.deltaY;
@@ -26860,7 +26863,7 @@ const O_ = /* @__PURE__ */ K({
26860
26863
  forceMount: { type: Boolean }
26861
26864
  },
26862
26865
  setup(t) {
26863
- const e = Wr(), n = L0(), { forwardRef: o } = Xe(), r = z(!1), i = YE(() => {
26866
+ const e = Wr(), n = L0(), { forwardRef: o } = Xe(), r = V(!1), i = YE(() => {
26864
26867
  if (e.viewport.value) {
26865
26868
  const s = e.viewport.value.offsetWidth < e.viewport.value.scrollWidth, a = e.viewport.value.offsetHeight < e.viewport.value.scrollHeight;
26866
26869
  r.value = n.isHorizontal.value ? s : a;
@@ -26892,7 +26895,7 @@ const O_ = /* @__PURE__ */ K({
26892
26895
  setup(t) {
26893
26896
  const e = Wr(), { forwardRef: n } = Xe();
26894
26897
  let o;
26895
- const r = z(!1);
26898
+ const r = V(!1);
26896
26899
  function i() {
26897
26900
  window.clearTimeout(o), r.value = !0;
26898
26901
  }
@@ -27062,7 +27065,7 @@ const O_ = /* @__PURE__ */ K({
27062
27065
  function i(h) {
27063
27066
  o.handleThumbUp(h);
27064
27067
  }
27065
- const { forwardRef: s, currentElement: a } = Xe(), l = z(), u = J(() => n.viewport.value);
27068
+ const { forwardRef: s, currentElement: a } = Xe(), l = V(), u = J(() => n.viewport.value);
27066
27069
  function d() {
27067
27070
  if (!l.value) {
27068
27071
  const h = qj(
@@ -27099,7 +27102,7 @@ const O_ = /* @__PURE__ */ K({
27099
27102
  }), nq = /* @__PURE__ */ K({
27100
27103
  __name: "ScrollAreaCornerImpl",
27101
27104
  setup(t) {
27102
- const e = Wr(), n = z(0), o = z(0), r = J(() => !!n.value && !!o.value);
27105
+ const e = Wr(), n = V(0), o = V(0), r = J(() => !!n.value && !!o.value);
27103
27106
  function i() {
27104
27107
  var a;
27105
27108
  const l = ((a = e.scrollbarX.value) == null ? void 0 : a.offsetHeight) || 0;
@@ -27163,7 +27166,7 @@ const O_ = /* @__PURE__ */ K({
27163
27166
  value: {}
27164
27167
  },
27165
27168
  setup(t) {
27166
- const e = t, { value: n } = Vn(e), o = z();
27169
+ const e = t, { value: n } = Vn(e), o = V();
27167
27170
  return (r, i) => (A(), H(g(p_), { "as-child": "" }, {
27168
27171
  default: O(() => [
27169
27172
  Wn(q("select", Ne({
@@ -27205,10 +27208,10 @@ const O_ = /* @__PURE__ */ K({
27205
27208
  }), i = yr(n, "open", o, {
27206
27209
  defaultValue: n.defaultOpen,
27207
27210
  passive: n.open === void 0
27208
- }), s = z(), a = z(), l = z({
27211
+ }), s = V(), a = V(), l = V({
27209
27212
  x: 0,
27210
27213
  y: 0
27211
- }), u = z(!1), { required: d, disabled: f, dir: h } = Vn(n), m = ml(h);
27214
+ }), u = V(!1), { required: d, disabled: f, dir: h } = Vn(n), m = ml(h);
27212
27215
  N_({
27213
27216
  triggerElement: s,
27214
27217
  onTriggerChange: (x) => {
@@ -27236,7 +27239,7 @@ const O_ = /* @__PURE__ */ K({
27236
27239
  triggerPointerDownPosRef: l,
27237
27240
  disabled: f
27238
27241
  });
27239
- const b = I2(s), v = z(/* @__PURE__ */ new Set()), y = J(() => Array.from(v.value).map((x) => {
27242
+ const b = I2(s), v = V(/* @__PURE__ */ new Set()), y = J(() => Array.from(v.value).map((x) => {
27240
27243
  var S;
27241
27244
  return (S = x.props) == null ? void 0 : S.value;
27242
27245
  }).join(";"));
@@ -27379,7 +27382,7 @@ const fq = /* @__PURE__ */ K({
27379
27382
  },
27380
27383
  emits: ["placed"],
27381
27384
  setup(t, { emit: e }) {
27382
- const n = t, o = e, { injectCollection: r } = $d(), i = bl(), s = vl(), a = r(), l = z(!1), u = z(!0), d = z(), { forwardRef: f, currentElement: h } = Xe(), { viewport: m, selectedItem: b, selectedItemText: v, focusSelectedItem: y } = s;
27385
+ const n = t, o = e, { injectCollection: r } = $d(), i = bl(), s = vl(), a = r(), l = V(!1), u = V(!0), d = V(), { forwardRef: f, currentElement: h } = Xe(), { viewport: m, selectedItem: b, selectedItemText: v, focusSelectedItem: y } = s;
27383
27386
  function x() {
27384
27387
  if (i.triggerElement.value && i.valueElement.value && d.value && h.value && m != null && m.value && b != null && b.value && v != null && v.value) {
27385
27388
  const C = i.triggerElement.value.getBoundingClientRect(), k = h.value.getBoundingClientRect(), T = i.valueElement.value.getBoundingClientRect(), M = v.value.getBoundingClientRect();
@@ -27394,24 +27397,24 @@ const fq = /* @__PURE__ */ K({
27394
27397
  );
27395
27398
  d.value.style.minWidth = `${ge}px`, d.value.style.right = `${Ve}px`;
27396
27399
  }
27397
- const V = a.value, N = window.innerHeight - Jr * 2, L = m.value.scrollHeight, W = window.getComputedStyle(h.value), j = Number.parseInt(
27400
+ const z = a.value, N = window.innerHeight - Jr * 2, L = m.value.scrollHeight, W = window.getComputedStyle(h.value), j = Number.parseInt(
27398
27401
  W.borderTopWidth,
27399
27402
  10
27400
- ), ne = Number.parseInt(W.paddingTop, 10), ue = Number.parseInt(
27403
+ ), te = Number.parseInt(W.paddingTop, 10), ue = Number.parseInt(
27401
27404
  W.borderBottomWidth,
27402
27405
  10
27403
27406
  ), G = Number.parseInt(
27404
27407
  W.paddingBottom,
27405
27408
  10
27406
- ), B = j + ne + L + G + ue, F = Math.min(
27409
+ ), B = j + te + L + G + ue, F = Math.min(
27407
27410
  b.value.offsetHeight * 5,
27408
27411
  B
27409
27412
  ), U = window.getComputedStyle(m.value), P = Number.parseInt(U.paddingTop, 10), ee = Number.parseInt(
27410
27413
  U.paddingBottom,
27411
27414
  10
27412
- ), oe = C.top + C.height / 2 - Jr, me = N - oe, Se = b.value.offsetHeight / 2, Be = b.value.offsetTop + Se, pe = j + ne + Be, ke = B - pe;
27415
+ ), oe = C.top + C.height / 2 - Jr, me = N - oe, Se = b.value.offsetHeight / 2, Be = b.value.offsetTop + Se, pe = j + te + Be, ke = B - pe;
27413
27416
  if (pe <= oe) {
27414
- const re = b.value === V[V.length - 1];
27417
+ const re = b.value === z[z.length - 1];
27415
27418
  d.value.style.bottom = "0px";
27416
27419
  const de = h.value.clientHeight - m.value.offsetTop - m.value.offsetHeight, fe = Math.max(
27417
27420
  me,
@@ -27419,7 +27422,7 @@ const fq = /* @__PURE__ */ K({
27419
27422
  ), ge = pe + fe;
27420
27423
  d.value.style.height = `${ge}px`;
27421
27424
  } else {
27422
- const re = b.value === V[0];
27425
+ const re = b.value === z[0];
27423
27426
  d.value.style.top = "0px";
27424
27427
  const de = Math.max(
27425
27428
  oe,
@@ -27430,7 +27433,7 @@ const fq = /* @__PURE__ */ K({
27430
27433
  d.value.style.margin = `${Jr}px 0`, d.value.style.minHeight = `${F}px`, d.value.style.maxHeight = `${N}px`, o("placed"), requestAnimationFrame(() => l.value = !0);
27431
27434
  }
27432
27435
  }
27433
- const S = z("");
27436
+ const S = V("");
27434
27437
  ct(async () => {
27435
27438
  await _t(), x(), h.value && (S.value = window.getComputedStyle(h.value).zIndex);
27436
27439
  });
@@ -27534,9 +27537,9 @@ const fq = /* @__PURE__ */ K({
27534
27537
  setup(t, { emit: e }) {
27535
27538
  const n = t, o = e, r = bl();
27536
27539
  O2(), _0(n.bodyLock);
27537
- const { createCollection: i } = $d(), s = z();
27540
+ const { createCollection: i } = $d(), s = V();
27538
27541
  k0(s);
27539
- const a = i(s), { search: l, handleTypeaheadSearch: u } = N2(a), d = z(), f = z(), h = z(), m = z(!1), b = z(!1);
27542
+ const a = i(s), { search: l, handleTypeaheadSearch: u } = N2(a), d = V(), f = V(), h = V(), m = V(!1), b = V(!1);
27540
27543
  function v() {
27541
27544
  f.value && s.value && Fb([f.value, s.value]);
27542
27545
  }
@@ -27558,15 +27561,15 @@ const fq = /* @__PURE__ */ K({
27558
27561
  Math.round(N.pageY) - (((W = x.value) == null ? void 0 : W.y) ?? 0)
27559
27562
  )
27560
27563
  };
27561
- }, V = (N) => {
27564
+ }, z = (N) => {
27562
27565
  var L;
27563
27566
  N.pointerType !== "touch" && (T.x <= 10 && T.y <= 10 ? N.preventDefault() : (L = s.value) != null && L.contains(N.target) || y(!1), document.removeEventListener("pointermove", M), x.value = null);
27564
27567
  };
27565
- x.value !== null && (document.addEventListener("pointermove", M), document.addEventListener("pointerup", V, {
27568
+ x.value !== null && (document.addEventListener("pointermove", M), document.addEventListener("pointerup", z, {
27566
27569
  capture: !0,
27567
27570
  once: !0
27568
27571
  })), k(() => {
27569
- document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", V, {
27572
+ document.removeEventListener("pointermove", M), document.removeEventListener("pointerup", z, {
27570
27573
  capture: !0
27571
27574
  });
27572
27575
  });
@@ -27576,7 +27579,7 @@ const fq = /* @__PURE__ */ K({
27576
27579
  if (k.key === "Tab" && k.preventDefault(), !T && k.key.length === 1 && u(k.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(k.key)) {
27577
27580
  let M = a.value;
27578
27581
  if (["ArrowUp", "End"].includes(k.key) && (M = M.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(k.key)) {
27579
- const V = k.target, N = M.indexOf(V);
27582
+ const z = k.target, N = M.indexOf(z);
27580
27583
  M = M.slice(N + 1);
27581
27584
  }
27582
27585
  setTimeout(() => Fb(M)), k.preventDefault();
@@ -27590,9 +27593,9 @@ const fq = /* @__PURE__ */ K({
27590
27593
  d.value = k;
27591
27594
  },
27592
27595
  itemRefCallback: (k, T, M) => {
27593
- var V, N;
27596
+ var z, N;
27594
27597
  const L = !b.value && !M;
27595
- (((V = r.modelValue) == null ? void 0 : V.value) !== void 0 && ((N = r.modelValue) == null ? void 0 : N.value) === T || L) && (f.value = k, L && (b.value = !0));
27598
+ (((z = r.modelValue) == null ? void 0 : z.value) !== void 0 && ((N = r.modelValue) == null ? void 0 : N.value) === T || L) && (f.value = k, L && (b.value = !0));
27596
27599
  },
27597
27600
  selectedItem: f,
27598
27601
  selectedItemText: h,
@@ -27601,9 +27604,9 @@ const fq = /* @__PURE__ */ K({
27601
27604
  (k = s.value) == null || k.focus();
27602
27605
  },
27603
27606
  itemTextRefCallback: (k, T, M) => {
27604
- var V, N;
27607
+ var z, N;
27605
27608
  const L = !b.value && !M;
27606
- (((V = r.modelValue) == null ? void 0 : V.value) !== void 0 && ((N = r.modelValue) == null ? void 0 : N.value) === T || L) && (h.value = k);
27609
+ (((z = r.modelValue) == null ? void 0 : z.value) !== void 0 && ((N = r.modelValue) == null ? void 0 : N.value) === T || L) && (h.value = k);
27607
27610
  },
27608
27611
  focusSelectedItem: v,
27609
27612
  position: n.position,
@@ -27614,8 +27617,8 @@ const fq = /* @__PURE__ */ K({
27614
27617
  onMountAutoFocus: T[6] || (T[6] = mn(() => {
27615
27618
  }, ["prevent"])),
27616
27619
  onUnmountAutoFocus: T[7] || (T[7] = (M) => {
27617
- var V;
27618
- o("closeAutoFocus", M), !M.defaultPrevented && ((V = g(r).triggerElement.value) == null || V.focus({ preventScroll: !0 }), M.preventDefault());
27620
+ var z;
27621
+ o("closeAutoFocus", M), !M.defaultPrevented && ((z = g(r).triggerElement.value) == null || z.focus({ preventScroll: !0 }), M.preventDefault());
27619
27622
  })
27620
27623
  }, {
27621
27624
  default: O(() => [
@@ -27696,11 +27699,11 @@ const fq = /* @__PURE__ */ K({
27696
27699
  },
27697
27700
  emits: ["closeAutoFocus", "escapeKeyDown", "pointerDownOutside"],
27698
27701
  setup(t, { emit: e }) {
27699
- const n = t, o = un(n, e), r = bl(), i = z();
27702
+ const n = t, o = un(n, e), r = bl(), i = V();
27700
27703
  ct(() => {
27701
27704
  i.value = new DocumentFragment();
27702
27705
  });
27703
- const s = z(), a = J(() => n.forceMount || r.open.value);
27706
+ const s = V(), a = J(() => n.forceMount || r.open.value);
27704
27707
  return (l, u) => {
27705
27708
  var d;
27706
27709
  return a.value ? (A(), H(g(Ur), {
@@ -27758,7 +27761,7 @@ const fq = /* @__PURE__ */ K({
27758
27761
  const e = t, { disabled: n } = Vn(e), o = bl(), r = vl(Uu), { forwardRef: i, currentElement: s } = Xe(), a = J(() => {
27759
27762
  var v;
27760
27763
  return ((v = o.modelValue) == null ? void 0 : v.value) === e.value;
27761
- }), l = z(!1), u = z(e.textValue ?? ""), d = Hr(void 0, "radix-vue-select-item-text");
27764
+ }), l = V(!1), u = V(e.textValue ?? ""), d = Hr(void 0, "radix-vue-select-item-text");
27762
27765
  async function f(v) {
27763
27766
  await _t(), !(v != null && v.defaultPrevented) && (n.value || (o.onValueChange(e.value), o.onOpenChange(!1)));
27764
27767
  }
@@ -27911,7 +27914,7 @@ const fq = /* @__PURE__ */ K({
27911
27914
  ct(() => {
27912
27915
  r == null || r.onViewportChange(a.value);
27913
27916
  });
27914
- const l = z(0);
27917
+ const l = V(0);
27915
27918
  function u(d) {
27916
27919
  const f = d.currentTarget, { shouldExpandOnScrollRef: h, contentWrapper: m } = i ?? {};
27917
27920
  if (h != null && h.value && m != null && m.value) {
@@ -27964,7 +27967,7 @@ const fq = /* @__PURE__ */ K({
27964
27967
  __name: "SelectScrollButtonImpl",
27965
27968
  emits: ["autoScroll"],
27966
27969
  setup(t, { emit: e }) {
27967
- const n = e, { injectCollection: o } = $d(), r = o(), i = vl(Uu), s = z(null);
27970
+ const n = e, { injectCollection: o } = $d(), r = o(), i = vl(Uu), s = V(null);
27968
27971
  function a() {
27969
27972
  s.value !== null && (window.clearInterval(s.value), s.value = null);
27970
27973
  }
@@ -28013,7 +28016,7 @@ const fq = /* @__PURE__ */ K({
28013
28016
  as: {}
28014
28017
  },
28015
28018
  setup(t) {
28016
- const e = vl(Uu), n = e.position === "item-aligned" ? H2() : void 0, { forwardRef: o, currentElement: r } = Xe(), i = z(!1);
28019
+ const e = vl(Uu), n = e.position === "item-aligned" ? H2() : void 0, { forwardRef: o, currentElement: r } = Xe(), i = V(!1);
28017
28020
  return In((s) => {
28018
28021
  var a, l;
28019
28022
  if ((a = e.viewport) != null && a.value && (l = e.isPositioned) != null && l.value) {
@@ -28046,7 +28049,7 @@ const fq = /* @__PURE__ */ K({
28046
28049
  as: {}
28047
28050
  },
28048
28051
  setup(t) {
28049
- const e = vl(Uu), n = e.position === "item-aligned" ? H2() : void 0, { forwardRef: o, currentElement: r } = Xe(), i = z(!1);
28052
+ const e = vl(Uu), n = e.position === "item-aligned" ? H2() : void 0, { forwardRef: o, currentElement: r } = Xe(), i = V(!1);
28050
28053
  return In((s) => {
28051
28054
  var a, l;
28052
28055
  if ((a = e.viewport) != null && a.value && (l = e.isPositioned) != null && l.value) {
@@ -28295,7 +28298,7 @@ const Bq = ["name", "disabled", "required", "value", "checked", "data-state", "d
28295
28298
  const a = yr(n, "modelValue", o, {
28296
28299
  defaultValue: n.defaultValue,
28297
28300
  passive: n.modelValue === void 0
28298
- }), l = z();
28301
+ }), l = V();
28299
28302
  return Vq({
28300
28303
  modelValue: a,
28301
28304
  changeModelValue: (u) => {
@@ -28366,7 +28369,7 @@ const jq = /* @__PURE__ */ K({
28366
28369
  as: {}
28367
28370
  },
28368
28371
  setup(t) {
28369
- const e = t, { forwardRef: n } = Xe(), o = z2(), r = J(() => P_(o.baseId, e.value)), i = J(() => B_(o.baseId, e.value)), s = J(() => e.value === o.modelValue.value), a = z(s.value);
28372
+ const e = t, { forwardRef: n } = Xe(), o = z2(), r = J(() => P_(o.baseId, e.value)), i = J(() => B_(o.baseId, e.value)), s = J(() => e.value === o.modelValue.value), a = V(s.value);
28370
28373
  return ct(() => {
28371
28374
  requestAnimationFrame(() => {
28372
28375
  a.value = !1;
@@ -28498,7 +28501,7 @@ const jq = /* @__PURE__ */ K({
28498
28501
  setup(t) {
28499
28502
  const e = t, { delayDuration: n, skipDelayDuration: o, disableHoverableContent: r, disableClosingTrigger: i, ignoreNonKeyboardFocus: s, disabled: a } = Vn(e);
28500
28503
  Xe();
28501
- const l = z(!0), u = z(!1), { start: d, stop: f } = JE(() => {
28504
+ const l = V(!0), u = V(!1), { start: d, stop: f } = JE(() => {
28502
28505
  l.value = !0;
28503
28506
  }, o, { immediate: !1 });
28504
28507
  return Gq({
@@ -28539,7 +28542,7 @@ const jq = /* @__PURE__ */ K({
28539
28542
  De(d, (E) => {
28540
28543
  r.onClose && (E ? (r.onOpen(), document.dispatchEvent(new CustomEvent(F_))) : r.onClose());
28541
28544
  });
28542
- const f = z(!1), h = z(), m = J(() => d.value ? f.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: v } = JE(() => {
28545
+ const f = V(!1), h = V(), m = J(() => d.value ? f.value ? "delayed-open" : "instant-open" : "closed"), { start: b, stop: v } = JE(() => {
28543
28546
  f.value = !0, d.value = !0;
28544
28547
  }, l, { immediate: !1 });
28545
28548
  function y() {
@@ -28587,7 +28590,7 @@ const jq = /* @__PURE__ */ K({
28587
28590
  setup(t) {
28588
28591
  const e = t, n = R0(), o = V2();
28589
28592
  n.contentId || (n.contentId = Hr(void 0, "radix-vue-tooltip-content"));
28590
- const { forwardRef: r, currentElement: i } = Xe(), s = z(!1), a = z(!1), l = J(() => n.disabled.value ? {} : {
28593
+ const { forwardRef: r, currentElement: i } = Xe(), s = V(!1), a = V(!1), l = J(() => n.disabled.value ? {} : {
28591
28594
  click: v,
28592
28595
  focus: m,
28593
28596
  pointermove: f,
@@ -29121,7 +29124,7 @@ function SK(t, e = {}) {
29121
29124
  const Re = x(Q.currentPeek());
29122
29125
  return Q.resetPeek(), Re;
29123
29126
  }
29124
- function V(Q, X) {
29127
+ function z(Q, X) {
29125
29128
  const { currentType: Te } = X;
29126
29129
  if (!(Te === 7 || Te === 11))
29127
29130
  return !1;
@@ -29155,7 +29158,7 @@ function SK(t, e = {}) {
29155
29158
  const Te = Q.currentChar();
29156
29159
  return Te === Rs ? Rs : X(Te) ? (Q.next(), Te) : null;
29157
29160
  }
29158
- function ne(Q) {
29161
+ function te(Q) {
29159
29162
  const X = Q.charCodeAt(0);
29160
29163
  return X >= 97 && X <= 122 || // a-z
29161
29164
  X >= 65 && X <= 90 || // A-Z
@@ -29164,7 +29167,7 @@ function SK(t, e = {}) {
29164
29167
  X === 36;
29165
29168
  }
29166
29169
  function ue(Q) {
29167
- return j(Q, ne);
29170
+ return j(Q, te);
29168
29171
  }
29169
29172
  function G(Q) {
29170
29173
  const X = Q.charCodeAt(0);
@@ -29366,7 +29369,7 @@ function SK(t, e = {}) {
29366
29369
  /* TokenChars.LinkedDelimiter */
29367
29370
  );
29368
29371
  default:
29369
- return L(Q) ? (Re = h(X, 1, Ve(Q)), X.braceNest = 0, X.inLinked = !1, Re) : T(Q, X) || V(Q, X) ? (y(Q), ut(Q, X)) : M(Q, X) ? (y(Q), h(X, 11, xe(Q))) : N(Q, X) ? (y(Q), et === "{" ? it(Q, X) || Re : h(X, 10, He(Q))) : (Te === 7 && f(vt.INVALID_LINKED_FORMAT, i(), 0), X.braceNest = 0, X.inLinked = !1, at(Q, X));
29372
+ return L(Q) ? (Re = h(X, 1, Ve(Q)), X.braceNest = 0, X.inLinked = !1, Re) : T(Q, X) || z(Q, X) ? (y(Q), ut(Q, X)) : M(Q, X) ? (y(Q), h(X, 11, xe(Q))) : N(Q, X) ? (y(Q), et === "{" ? it(Q, X) || Re : h(X, 10, He(Q))) : (Te === 7 && f(vt.INVALID_LINKED_FORMAT, i(), 0), X.braceNest = 0, X.inLinked = !1, at(Q, X));
29370
29373
  }
29371
29374
  }
29372
29375
  function at(Q, X) {
@@ -29433,11 +29436,11 @@ function TK(t = {}) {
29433
29436
  function o(x, S, E, C, ...k) {
29434
29437
  const T = x.currentPosition();
29435
29438
  if (T.offset += C, T.column += C, n) {
29436
- const M = e ? zb(E, T) : null, V = Wu(S, M, {
29439
+ const M = e ? zb(E, T) : null, z = Wu(S, M, {
29437
29440
  domain: EK,
29438
29441
  args: k
29439
29442
  });
29440
- n(V);
29443
+ n(z);
29441
29444
  }
29442
29445
  }
29443
29446
  function r(x, S, E) {
@@ -29535,8 +29538,8 @@ function TK(t = {}) {
29535
29538
  }
29536
29539
  }
29537
29540
  } while (S.currentType !== 13 && S.currentType !== 1);
29538
- const M = S.currentType === 1 ? S.lastOffset : x.currentOffset(), V = S.currentType === 1 ? S.lastEndLoc : x.currentPosition();
29539
- return i(k, M, V), k;
29541
+ const M = S.currentType === 1 ? S.lastOffset : x.currentOffset(), z = S.currentType === 1 ? S.lastEndLoc : x.currentPosition();
29542
+ return i(k, M, z), k;
29540
29543
  }
29541
29544
  function b(x, S, E, C) {
29542
29545
  const k = x.context();
@@ -29544,8 +29547,8 @@ function TK(t = {}) {
29544
29547
  const M = r(1, S, E);
29545
29548
  M.cases = [], M.cases.push(C);
29546
29549
  do {
29547
- const V = m(x);
29548
- T || (T = V.items.length === 0), M.cases.push(V);
29550
+ const z = m(x);
29551
+ T || (T = z.items.length === 0), M.cases.push(z);
29549
29552
  } while (k.currentType !== 13);
29550
29553
  return T && o(x, vt.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), i(M, x.currentOffset(), x.currentPosition()), M;
29551
29554
  }
@@ -30451,7 +30454,7 @@ let U8 = 0;
30451
30454
  function RG(t = {}) {
30452
30455
  const e = pn(t.onWarn) ? t.onWarn : ma, n = Ke(t.version) ? t.version : kG, o = Ke(t.locale) || pn(t.locale) ? t.locale : ud, r = pn(o) ? ud : o, i = Mn(t.fallbackLocale) || Dt(t.fallbackLocale) || Ke(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : r, s = Dt(t.messages) ? t.messages : dg(r), a = Dt(t.datetimeFormats) ? t.datetimeFormats : dg(r), l = Dt(t.numberFormats) ? t.numberFormats : dg(r), u = Zn(an(), t.modifiers, TG()), d = t.pluralRules || an(), f = pn(t.missing) ? t.missing : null, h = qt(t.missingWarn) || Au(t.missingWarn) ? t.missingWarn : !0, m = qt(t.fallbackWarn) || Au(t.fallbackWarn) ? t.fallbackWarn : !0, b = !!t.fallbackFormat, v = !!t.unresolving, y = pn(t.postTranslation) ? t.postTranslation : null, x = Dt(t.processor) ? t.processor : null, S = qt(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, E = !!t.escapeParameter, C = pn(t.messageCompiler) ? t.messageCompiler : U_;
30453
30456
  process.env.NODE_ENV !== "production" && pn(t.messageCompiler) && z_(sl(Go.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
30454
- const k = pn(t.messageResolver) ? t.messageResolver : W_ || CG, T = pn(t.localeFallbacker) ? t.localeFallbacker : j_ || pG, M = jt(t.fallbackContext) ? t.fallbackContext : void 0, V = t, N = jt(V.__datetimeFormatters) ? V.__datetimeFormatters : /* @__PURE__ */ new Map(), L = jt(V.__numberFormatters) ? V.__numberFormatters : /* @__PURE__ */ new Map(), W = jt(V.__meta) ? V.__meta : {};
30457
+ const k = pn(t.messageResolver) ? t.messageResolver : W_ || CG, T = pn(t.localeFallbacker) ? t.localeFallbacker : j_ || pG, M = jt(t.fallbackContext) ? t.fallbackContext : void 0, z = t, N = jt(z.__datetimeFormatters) ? z.__datetimeFormatters : /* @__PURE__ */ new Map(), L = jt(z.__numberFormatters) ? z.__numberFormatters : /* @__PURE__ */ new Map(), W = jt(z.__meta) ? z.__meta : {};
30455
30458
  U8++;
30456
30459
  const j = {
30457
30460
  version: n,
@@ -30477,7 +30480,7 @@ function RG(t = {}) {
30477
30480
  onWarn: e,
30478
30481
  __meta: W
30479
30482
  };
30480
- return j.datetimeFormats = a, j.numberFormats = l, j.__datetimeFormatters = N, j.__numberFormatters = L, process.env.NODE_ENV !== "production" && (j.__v_emitter = V.__v_emitter != null ? V.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && lG(j, n, W), j;
30483
+ return j.datetimeFormats = a, j.numberFormats = l, j.__datetimeFormatters = N, j.__numberFormatters = L, process.env.NODE_ENV !== "production" && (j.__v_emitter = z.__v_emitter != null ? z.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && lG(j, n, W), j;
30481
30484
  }
30482
30485
  const dg = (t) => ({ [t]: an() });
30483
30486
  function F0(t, e) {
@@ -30559,8 +30562,8 @@ function j8(t, ...e) {
30559
30562
  return o ? B0 : l;
30560
30563
  let M = `${S}__${l}`;
30561
30564
  P0(f) || (M = `${M}__${JSON.stringify(f)}`);
30562
- let V = a.get(M);
30563
- return V || (V = new Intl.DateTimeFormat(S, Zn({}, E, f)), a.set(M, V)), b ? V.formatToParts(u) : V.format(u);
30565
+ let z = a.get(M);
30566
+ return z || (z = new Intl.DateTimeFormat(S, Zn({}, E, f)), a.set(M, z)), b ? z.formatToParts(u) : z.format(u);
30564
30567
  }
30565
30568
  const J_ = [
30566
30569
  "localeMatcher",
@@ -30653,8 +30656,8 @@ function K8(t, ...e) {
30653
30656
  return o ? B0 : l;
30654
30657
  let M = `${S}__${l}`;
30655
30658
  P0(f) || (M = `${M}__${JSON.stringify(f)}`);
30656
- let V = a.get(M);
30657
- return V || (V = new Intl.NumberFormat(S, Zn({}, E, f)), a.set(M, V)), b ? V.formatToParts(u) : V.format(u);
30659
+ let z = a.get(M);
30660
+ return z || (z = new Intl.NumberFormat(S, Zn({}, E, f)), a.set(M, z)), b ? z.formatToParts(u) : z.format(u);
30658
30661
  }
30659
30662
  const Z_ = [
30660
30663
  "localeMatcher",
@@ -30722,11 +30725,11 @@ function UG(t = {}) {
30722
30725
  const [E, C] = S;
30723
30726
  let k = "text", T = "";
30724
30727
  S.length === 1 ? jt(E) ? (T = E.modifier || T, k = E.type || k) : Ke(E) && (T = E || T) : S.length === 2 && (Ke(E) && (T = E || T), Ke(C) && (k = C || k));
30725
- const M = d(x, !0)(y), V = (
30728
+ const M = d(x, !0)(y), z = (
30726
30729
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
30727
30730
  k === "vnode" && Mn(M) && T ? M[0] : M
30728
30731
  );
30729
- return T ? f(T)(V, k) : V;
30732
+ return T ? f(T)(z, k) : z;
30730
30733
  },
30731
30734
  message: d,
30732
30735
  type: b,
@@ -30752,19 +30755,19 @@ function J8(t, ...e) {
30752
30755
  let T = !1;
30753
30756
  const M = () => {
30754
30757
  T = !0;
30755
- }, V = Nr(C) ? C : e9(t, l, S, C, k, M);
30758
+ }, z = Nr(C) ? C : e9(t, l, S, C, k, M);
30756
30759
  if (T)
30757
30760
  return C;
30758
- const N = GG(t, S, E, u), L = UG(N), W = jG(t, V, L), j = o ? o(W, l) : W;
30761
+ const N = GG(t, S, E, u), L = UG(N), W = jG(t, z, L), j = o ? o(W, l) : W;
30759
30762
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
30760
- const ne = {
30763
+ const te = {
30761
30764
  timestamp: Date.now(),
30762
30765
  key: Ke(l) ? l : Nr(C) ? C.key : "",
30763
30766
  locale: S || (Nr(C) ? C.locale : ""),
30764
30767
  format: Ke(C) ? C : Nr(C) ? C.source : "",
30765
30768
  message: j
30766
30769
  };
30767
- ne.meta = Zn({}, t.__meta, /* @__PURE__ */ NG() || {}), uG(ne);
30770
+ te.meta = Zn({}, t.__meta, /* @__PURE__ */ NG() || {}), uG(te);
30768
30771
  }
30769
30772
  return j;
30770
30773
  }
@@ -31157,7 +31160,7 @@ const lX = /* @__NO_SIDE_EFFECTS__ */ () => {
31157
31160
  return t && (e = r9(t)[Q8]) ? { [Q8]: e } : null;
31158
31161
  };
31159
31162
  function J2(t = {}) {
31160
- const { __root: e, __injectWithOption: n } = t, o = e === void 0, r = t.flatJson, i = ui ? z : Zh;
31163
+ const { __root: e, __injectWithOption: n } = t, o = e === void 0, r = t.flatJson, i = ui ? V : Zh;
31161
31164
  let s = qt(t.inheritLocale) ? t.inheritLocale : !0;
31162
31165
  const a = i(
31163
31166
  // prettier-ignore
@@ -31213,7 +31216,7 @@ function J2(t = {}) {
31213
31216
  set: (ye) => {
31214
31217
  l.value = ye, M.fallbackLocale = l.value, yc(M, a.value, ye);
31215
31218
  }
31216
- }), j = J(() => u.value), ne = /* @__PURE__ */ J(() => d.value), ue = /* @__PURE__ */ J(() => f.value);
31219
+ }), j = J(() => u.value), te = /* @__PURE__ */ J(() => d.value), ue = /* @__PURE__ */ J(() => f.value);
31217
31220
  function G() {
31218
31221
  return pn(S) ? S : null;
31219
31222
  }
@@ -31439,7 +31442,7 @@ function J2(t = {}) {
31439
31442
  setMissingHandler: U,
31440
31443
  [n9]: xe
31441
31444
  };
31442
- return lt.datetimeFormats = ne, lt.numberFormats = ue, lt.rt = me, lt.te = He, lt.tm = it, lt.d = Se, lt.n = Be, lt.getDateTimeFormat = Q, lt.setDateTimeFormat = X, lt.mergeDateTimeFormat = Te, lt.getNumberFormat = Re, lt.setNumberFormat = et, lt.mergeNumberFormat = Ct, lt[o9] = n, lt[Kb] = de, lt[Gb] = ge, lt[Xb] = fe, process.env.NODE_ENV !== "production" && (lt[al] = (ye) => {
31445
+ return lt.datetimeFormats = te, lt.numberFormats = ue, lt.rt = me, lt.te = He, lt.tm = it, lt.d = Se, lt.n = Be, lt.getDateTimeFormat = Q, lt.setDateTimeFormat = X, lt.mergeDateTimeFormat = Te, lt.getNumberFormat = Re, lt.setNumberFormat = et, lt.mergeNumberFormat = Ct, lt[o9] = n, lt[Kb] = de, lt[Gb] = ge, lt[Xb] = fe, process.env.NODE_ENV !== "production" && (lt[al] = (ye) => {
31443
31446
  M.__v_emitter = ye;
31444
31447
  }, lt[cd] = () => {
31445
31448
  M.__v_emitter = void 0;
@@ -31710,9 +31713,9 @@ function CX(t) {
31710
31713
  let b = t.messages;
31711
31714
  if (Dt(t.sharedMessages)) {
31712
31715
  const k = t.sharedMessages;
31713
- b = Object.keys(k).reduce((M, V) => {
31714
- const N = M[V] || (M[V] = {});
31715
- return Zn(N, k[V]), M;
31716
+ b = Object.keys(k).reduce((M, z) => {
31717
+ const N = M[z] || (M[z] = {});
31718
+ return Zn(N, k[z]), M;
31716
31719
  }, b || {});
31717
31720
  }
31718
31721
  const { __i18n: v, __root: y, __injectWithOption: x } = t, S = t.datetimeFormats, E = t.numberFormats, C = t.flatJson;
@@ -32466,7 +32469,7 @@ const CY = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
32466
32469
  toolbarExtensionOrder: {}
32467
32470
  },
32468
32471
  setup(t) {
32469
- const e = DR(() => import("./BulkSpellChecker-CZ8kB6L9.mjs")), { t: n } = Jt(), o = t, r = Pt("isEditable", z(!0)), i = [
32472
+ const e = DR(() => import("./BulkSpellChecker-BB2AUOZm.mjs")), { t: n } = Jt(), o = t, r = Pt("isEditable", V(!0)), i = [
32470
32473
  mh,
32471
32474
  hd,
32472
32475
  vh,
@@ -32494,11 +32497,11 @@ const CY = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
32494
32497
  t: g(n)
32495
32498
  });
32496
32499
  if (Array.isArray(k)) {
32497
- const T = k.map((M, V) => ({
32500
+ const T = k.map((M, z) => ({
32498
32501
  id: `${y.name}`,
32499
32502
  button: M,
32500
- divider: V === k.length - 1 ? S : !1,
32501
- spacer: V === 0 ? E : !1
32503
+ divider: z === k.length - 1 ? S : !1,
32504
+ spacer: z === 0 ? E : !1
32502
32505
  }));
32503
32506
  v = [...v, ...T];
32504
32507
  continue;
@@ -33743,7 +33746,7 @@ function lJ(t, e, n, o) {
33743
33746
  T.status === "pending" && (T.status = "aborted");
33744
33747
  }), h = [];
33745
33748
  }
33746
- function C(T, M, V) {
33749
+ function C(T, M, z) {
33747
33750
  const N = M !== "success";
33748
33751
  switch (h = h.filter((L) => L !== T), l) {
33749
33752
  case "pending":
@@ -33756,11 +33759,11 @@ function lJ(t, e, n, o) {
33756
33759
  return;
33757
33760
  }
33758
33761
  if (M === "abort") {
33759
- d = V, S();
33762
+ d = z, S();
33760
33763
  return;
33761
33764
  }
33762
33765
  if (N) {
33763
- d = V, h.length || (s.length ? k() : S());
33766
+ d = z, h.length || (s.length ? k() : S());
33764
33767
  return;
33765
33768
  }
33766
33769
  if (b(), E(), !t.random) {
@@ -33768,7 +33771,7 @@ function lJ(t, e, n, o) {
33768
33771
  L !== -1 && L !== t.index && (t.index = L);
33769
33772
  }
33770
33773
  l = "completed", m.forEach((L) => {
33771
- L(V);
33774
+ L(z);
33772
33775
  });
33773
33776
  }
33774
33777
  function k() {
@@ -33789,8 +33792,8 @@ function lJ(t, e, n, o) {
33789
33792
  const M = {
33790
33793
  status: "pending",
33791
33794
  resource: T,
33792
- callback: (V, N) => {
33793
- C(M, V, N);
33795
+ callback: (z, N) => {
33796
+ C(M, z, N);
33794
33797
  }
33795
33798
  };
33796
33799
  h.push(M), u++, f = setTimeout(k, t.rotate), n(T, e, M.callback);
@@ -34682,7 +34685,7 @@ const kJ = { key: 0 }, TJ = {
34682
34685
  disabled: { type: Boolean, default: !1 }
34683
34686
  },
34684
34687
  setup(t) {
34685
- const e = t, { t: n } = Jt(), o = z("100"), r = z(), i = z(), s = z(), a = ["left", "center", "right"], l = {
34688
+ const e = t, { t: n } = Jt(), o = V("100"), r = V(), i = V(), s = V(), a = ["left", "center", "right"], l = {
34686
34689
  left: "AlignLeft",
34687
34690
  center: "AlignCenter",
34688
34691
  right: "AlignRight"
@@ -34696,7 +34699,7 @@ const kJ = { key: 0 }, TJ = {
34696
34699
  const L = Math.max(0, Math.min(100, parseInt(o.value)));
34697
34700
  e.editor.chain().focus(void 0, { scrollIntoView: !1 }).updateImage({ width: `${L}%` }).run();
34698
34701
  }
34699
- const h = z(!1), m = z(null), b = ({ editor: N }) => l2(N.view.state, "image") || h.value;
34702
+ const h = V(!1), m = V(null), b = ({ editor: N }) => l2(N.view.state, "image") || h.value;
34700
34703
  function v() {
34701
34704
  const N = D9(e.editor, "node-image");
34702
34705
  return N ? (m.value = N, N.getBoundingClientRect()) : h.value && m.value ? m.value.getBoundingClientRect() : new DOMRect(-1e3, -1e3, 0, 0);
@@ -34740,17 +34743,17 @@ const kJ = { key: 0 }, TJ = {
34740
34743
  function M() {
34741
34744
  const { state: N, dispatch: L } = e.editor.view, { tr: W, selection: j } = N;
34742
34745
  if (!(j instanceof Je)) return;
34743
- const ne = j.from, ue = N.doc.nodeAt(ne);
34746
+ const te = j.from, ue = N.doc.nodeAt(te);
34744
34747
  if (!ue) return;
34745
- const B = N.doc.resolve(ne).nodeBefore;
34748
+ const B = N.doc.resolve(te).nodeBefore;
34746
34749
  if (!B) return;
34747
- const F = ne - B.nodeSize, U = W.delete(ne, ne + ue.nodeSize).insert(F, ue).setSelection(Je.create(W.doc, F));
34750
+ const F = te - B.nodeSize, U = W.delete(te, te + ue.nodeSize).insert(F, ue).setSelection(Je.create(W.doc, F));
34748
34751
  L(U), e.editor.commands.focus();
34749
34752
  }
34750
- function V() {
34751
- const { state: N, dispatch: L } = e.editor.view, { tr: W, doc: j, selection: ne } = N;
34752
- if (!(ne instanceof Je)) return;
34753
- const ue = ne.from, G = j.nodeAt(ue);
34753
+ function z() {
34754
+ const { state: N, dispatch: L } = e.editor.view, { tr: W, doc: j, selection: te } = N;
34755
+ if (!(te instanceof Je)) return;
34756
+ const ue = te.from, G = j.nodeAt(ue);
34754
34757
  if (!G) return;
34755
34758
  const B = ue + G.nodeSize;
34756
34759
  if (B >= j.content.size) return;
@@ -34760,7 +34763,7 @@ const kJ = { key: 0 }, TJ = {
34760
34763
  L(ee), e.editor.commands.focus();
34761
34764
  }
34762
34765
  return (N, L) => {
34763
- const W = ft, j = ri, ne = wl, ue = md, G = la, B = Ou, F = j0, U = W0, P = wa, ee = ya;
34766
+ const W = ft, j = ri, te = wl, ue = md, G = la, B = Ou, F = j0, U = W0, P = wa, ee = ya;
34764
34767
  return A(), H(g(Dd), {
34765
34768
  editor: N.editor,
34766
34769
  "plugin-key": "image-menus-123",
@@ -34804,7 +34807,7 @@ const kJ = { key: 0 }, TJ = {
34804
34807
  R(W, {
34805
34808
  tooltip: g(n)("editor.image.menu.moveDown"),
34806
34809
  icon: "MoveDown",
34807
- action: V,
34810
+ action: z,
34808
34811
  disabled: !N.editor.isEditable
34809
34812
  }, null, 8, ["tooltip", "disabled"]),
34810
34813
  R(j, {
@@ -34816,7 +34819,7 @@ const kJ = { key: 0 }, TJ = {
34816
34819
  "onUpdate:open": L[4] || (L[4] = (oe) => h.value = oe)
34817
34820
  }, {
34818
34821
  default: O(() => [
34819
- R(ne, null, {
34822
+ R(te, null, {
34820
34823
  default: O(() => [
34821
34824
  R(W, {
34822
34825
  title: g(n)("editor.image.menu.size"),
@@ -36385,7 +36388,7 @@ let zr = (t = 21) => {
36385
36388
  return e;
36386
36389
  };
36387
36390
  function em(t = {}) {
36388
- const e = z(!1);
36391
+ const e = V(!1);
36389
36392
  let n = null;
36390
36393
  function o() {
36391
36394
  e.value = !1;
@@ -36435,7 +36438,7 @@ const ZZ = { class: "flex flex-col" }, QZ = { class: "w-6 h-6 p-0.5 inline-block
36435
36438
  const { t: n } = Jt(), o = nV.reduce((C, k, T) => {
36436
36439
  const M = Math.floor(T / 10);
36437
36440
  return C[M] || (C[M] = []), C[M].push(k), C;
36438
- }, []), r = t, i = z(!1), s = z(r.modelValue), a = z(!1);
36441
+ }, []), r = t, i = V(!1), s = V(r.modelValue), a = V(!1);
36439
36442
  De(
36440
36443
  () => r.modelValue,
36441
36444
  (C) => {
@@ -36526,8 +36529,8 @@ const ZZ = { class: "flex flex-col" }, QZ = { class: "w-6 h-6 p-0.5 inline-block
36526
36529
  ]),
36527
36530
  q("span", iQ, Ie(g(n)("editor.default")), 1)
36528
36531
  ])),
36529
- (A(!0), ie(nt, null, $t(g(o), (M, V) => (A(), ie("span", {
36530
- key: V,
36532
+ (A(!0), ie(nt, null, $t(g(o), (M, z) => (A(), ie("span", {
36533
+ key: z,
36531
36534
  class: "relative flex w-full h-auto p-0 last:pb-2"
36532
36535
  }, [
36533
36536
  (A(!0), ie(nt, null, $t(M, (N, L) => (A(), ie("span", {
@@ -36550,8 +36553,8 @@ const ZZ = { class: "flex flex-col" }, QZ = { class: "w-6 h-6 p-0.5 inline-block
36550
36553
  Wn(q("div", uQ, [
36551
36554
  q("div", cQ, Ie(g(n)("editor.recent")), 1),
36552
36555
  q("span", dQ, [
36553
- (A(!0), ie(nt, null, $t(b.value, (M, V) => (A(), ie("span", {
36554
- key: V,
36556
+ (A(!0), ie(nt, null, $t(b.value, (M, z) => (A(), ie("span", {
36557
+ key: z,
36555
36558
  class: "w-6 h-6 p-0.5 inline-block rounded-sm border border-transparent flex-[0 0 auto] cursor-pointer hover:border-ed-border hover:shadow-sm",
36556
36559
  onClick: (N) => v(M)
36557
36560
  }, [
@@ -36699,7 +36702,7 @@ const gQ = () => {
36699
36702
  laserPointer: !0
36700
36703
  }
36701
36704
  }, io = $R(() => {
36702
- const { state: t } = mQ(), e = z(vQ), n = z(), o = z(!1), { isFullscreen: r, toggle: i } = HR(document.getElementById("vdc-editor")), s = ko({
36705
+ const { state: t } = mQ(), e = V(vQ), n = V(), o = V(!1), { isFullscreen: r, toggle: i } = HR(document.getElementById("vdc-editor")), s = ko({
36703
36706
  extensions: t.extensions ?? [],
36704
36707
  defaultLang: Qz,
36705
36708
  color: void 0,
@@ -36712,14 +36715,14 @@ const gQ = () => {
36712
36715
  fontSize: "",
36713
36716
  fontWeight: "",
36714
36717
  viewSuperText: !1,
36715
- zoom: z([100]),
36718
+ zoom: V([100]),
36716
36719
  editor: {
36717
36720
  text: "",
36718
36721
  html: "",
36719
36722
  json: {}
36720
36723
  },
36721
36724
  AIMenu: !1
36722
- }), a = bQ(), l = gQ(), u = z(null);
36725
+ }), a = bQ(), l = gQ(), u = V(null);
36723
36726
  function d(ke) {
36724
36727
  n.value = ke;
36725
36728
  }
@@ -36765,20 +36768,20 @@ const gQ = () => {
36765
36768
  In(() => {
36766
36769
  s.extensions = t.extensions, s.defaultLang = t.defaultLang;
36767
36770
  });
36768
- const V = z();
36771
+ const z = V();
36769
36772
  function N(ke) {
36770
- V.value = ke;
36773
+ z.value = ke;
36771
36774
  }
36772
36775
  function L() {
36773
36776
  var ke;
36774
- (ke = V.value) == null || ke.openDialog();
36777
+ (ke = z.value) == null || ke.openDialog();
36775
36778
  }
36776
36779
  function W() {
36777
36780
  var ke;
36778
- (ke = V.value) == null || ke.closeDialog();
36781
+ (ke = z.value) == null || ke.closeDialog();
36779
36782
  }
36780
- const j = z([]);
36781
- function ne(ke) {
36783
+ const j = V([]);
36784
+ function te(ke) {
36782
36785
  j.value = ke;
36783
36786
  }
36784
36787
  function ue(ke, re, de = !0) {
@@ -36788,19 +36791,19 @@ const gQ = () => {
36788
36791
  ut && (ut.setAttribute(Et.ELEMENT_ID, He || ""), ut.setAttribute(Et.TEXT, de ? fV(Ve) : Ve));
36789
36792
  }), ge.body.innerHTML;
36790
36793
  }
36791
- const G = (ke) => u.value = ke, B = z(null), F = z();
36794
+ const G = (ke) => u.value = ke, B = V(null), F = V();
36792
36795
  function U(ke) {
36793
36796
  F.value = ke;
36794
36797
  }
36795
- const P = z();
36798
+ const P = V();
36796
36799
  function ee(ke) {
36797
36800
  P.value = ke;
36798
36801
  }
36799
- const oe = z(null), me = z();
36802
+ const oe = V(null), me = V();
36800
36803
  function Se(ke) {
36801
36804
  me.value = ke;
36802
36805
  }
36803
- const Be = z();
36806
+ const Be = V();
36804
36807
  function pe(ke) {
36805
36808
  Be.value = ke;
36806
36809
  }
@@ -36832,7 +36835,7 @@ const gQ = () => {
36832
36835
  openSuperInput: L,
36833
36836
  closeSuperInput: W,
36834
36837
  imageAttachments: j,
36835
- setImageAttachment: ne,
36838
+ setImageAttachment: te,
36836
36839
  getUpdatedContentBySuperText: ue,
36837
36840
  textAlert: u,
36838
36841
  setTextAlert: G,
@@ -38699,7 +38702,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), oe = F, ee = U), P ==
38699
38702
  for (const U of Object.keys(n))
38700
38703
  n[U] === F && delete n[U];
38701
38704
  }
38702
- function V() {
38705
+ function z() {
38703
38706
  return Object.keys(e);
38704
38707
  }
38705
38708
  function N(F) {
@@ -38725,7 +38728,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), oe = F, ee = U), P ==
38725
38728
  );
38726
38729
  });
38727
38730
  }
38728
- function ne(F) {
38731
+ function te(F) {
38729
38732
  j(F), o.push(F);
38730
38733
  }
38731
38734
  function ue(F) {
@@ -38753,12 +38756,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), oe = F, ee = U), P ==
38753
38756
  initHighlightingOnLoad: S,
38754
38757
  registerLanguage: T,
38755
38758
  unregisterLanguage: M,
38756
- listLanguages: V,
38759
+ listLanguages: z,
38757
38760
  getLanguage: N,
38758
38761
  registerAliases: L,
38759
38762
  autoDetection: W,
38760
38763
  inherit: Px,
38761
- addPlugin: ne,
38764
+ addPlugin: te,
38762
38765
  removePlugin: ue
38763
38766
  }), t.debugMode = function() {
38764
38767
  r = !1;
@@ -39260,7 +39263,7 @@ const Cd = _l("XIcon", [
39260
39263
  __name: "CodeBlockView",
39261
39264
  props: fl,
39262
39265
  setup(t) {
39263
- const e = t, n = z(e.extension.options.lowlight.listLanguages()), o = J({
39266
+ const e = t, n = V(e.extension.options.lowlight.listLanguages()), o = J({
39264
39267
  get() {
39265
39268
  return e.node.attrs.language || "auto";
39266
39269
  },
@@ -40268,7 +40271,7 @@ const Cd = _l("XIcon", [
40268
40271
  isActive: { type: Function, default: void 0 }
40269
40272
  },
40270
40273
  setup(t) {
40271
- const e = t, n = z(void 0);
40274
+ const e = t, n = V(void 0);
40272
40275
  function o(i) {
40273
40276
  var s;
40274
40277
  (s = e.action) == null || s.call(e, i);
@@ -41684,7 +41687,7 @@ function cne({
41684
41687
  Lt(E, t.numeric, C);
41685
41688
  const k = Ar(mp), T = Ar();
41686
41689
  Lt(k, e, k), Lt(k, n, T), Lt(T, e, k), Lt(T, n, T), Pe(S, yi, k), Pe(C, yi, k);
41687
- const M = Pe(a, Ws), V = Pe(l, Ws), N = Pe(V, yi), L = Pe(N, yi);
41690
+ const M = Pe(a, Ws), z = Pe(l, Ws), N = Pe(z, yi), L = Pe(N, yi);
41688
41691
  Lt(a, t.domain, s), Pe(a, vi, x), Pe(a, Mr, y), Lt(l, t.domain, s), Pe(l, vi, x), Pe(l, Mr, y), Lt(M, t.domain, k), Pe(M, yi, k), Pe(M, Vc, k), Lt(L, t.domain, k), Lt(L, e, k), Pe(L, yi, k);
41689
41692
  const W = [
41690
41693
  [$c, Hc],
@@ -41705,8 +41708,8 @@ function cne({
41705
41708
  // <>
41706
41709
  ];
41707
41710
  for (let j = 0; j < W.length; j++) {
41708
- const [ne, ue] = W[j], G = Pe(k, ne);
41709
- Pe(T, ne, G), Pe(G, ue, k);
41711
+ const [te, ue] = W[j], G = Pe(k, te);
41712
+ Pe(T, te, G), Pe(G, ue, k);
41710
41713
  const B = Ar(mp);
41711
41714
  Lt(G, e, B);
41712
41715
  const F = Ar();
@@ -42057,7 +42060,7 @@ const xne = To.create({
42057
42060
  text: "",
42058
42061
  link: ""
42059
42062
  });
42060
- const s = z(null), { focused: a } = zR(s), l = z(!0), u = z(null);
42063
+ const s = V(null), { focused: a } = zR(s), l = V(!0), u = V(null);
42061
42064
  VR(u, (h) => o("onClickOutside", h)), In(() => {
42062
42065
  const { href: h, target: m } = n.editor.getAttributes("link"), { from: b, to: v } = n.editor.state.selection, y = n.editor.state.doc.textBetween(b, v, " ");
42063
42066
  i = {
@@ -44985,7 +44988,7 @@ const Py = /* @__PURE__ */ K({
44985
44988
  },
44986
44989
  emits: ["close"],
44987
44990
  setup(t, { emit: e }) {
44988
- const n = t, o = e, { t: r } = Jt(), i = io(), s = J(() => n.message || r(i.textAlert.value || "editor.alert")), a = ko({ x: 0, y: 0 }), l = z(!1), u = { x: 0, y: 0 }, d = () => {
44991
+ const n = t, o = e, { t: r } = Jt(), i = io(), s = J(() => n.message || r(i.textAlert.value || "editor.alert")), a = ko({ x: 0, y: 0 }), l = V(!1), u = { x: 0, y: 0 }, d = () => {
44989
44992
  o("close");
44990
44993
  }, f = (b) => {
44991
44994
  l.value = !0, u.x = b.clientX - a.x, u.y = b.clientY - a.y, document.addEventListener("mousemove", h), document.addEventListener("mouseup", m);
@@ -45117,7 +45120,7 @@ const Py = /* @__PURE__ */ K({
45117
45120
  text: {}
45118
45121
  },
45119
45122
  setup(t) {
45120
- const e = z(!1), n = z(!1), o = z(null);
45123
+ const e = V(!1), n = V(!1), o = V(null);
45121
45124
  function r() {
45122
45125
  e.value = !e.value;
45123
45126
  }
@@ -45276,10 +45279,10 @@ const are = ["onClick"], lre = { class: "flex items-center mb-2" }, ure = { clas
45276
45279
  }
45277
45280
  const k = h.indexOf(m);
45278
45281
  k !== -1 && h.splice(k, 1);
45279
- const T = (L = f.extensionManager.extensions.find((W) => W.name === "spellchecker")) == null ? void 0 : L.options, M = (T == null ? void 0 : T.spellcheckHighlightMode) ?? bs.ERROR_TYPE, V = (T == null ? void 0 : T.spellcheckHighlightColor) ?? ol;
45280
- vv(f, h, M, V);
45282
+ const T = (L = f.extensionManager.extensions.find((W) => W.name === "spellchecker")) == null ? void 0 : L.options, M = (T == null ? void 0 : T.spellcheckHighlightMode) ?? bs.ERROR_TYPE, z = (T == null ? void 0 : T.spellcheckHighlightColor) ?? ol;
45283
+ vv(f, h, M, z);
45281
45284
  }
45282
- const a = z(null), l = z(zg), { height: u } = UR();
45285
+ const a = V(null), l = V(zg), { height: u } = UR();
45283
45286
  function d() {
45284
45287
  const f = a.value;
45285
45288
  if (!f) return;
@@ -46680,11 +46683,11 @@ const Zie = async (t) => {
46680
46683
  duplex: "half"
46681
46684
  }), T;
46682
46685
  if (Ce.isFormData(o) && (T = k.headers.get("content-type")) && d.setContentType(T), k.body) {
46683
- const [M, V] = g5(
46686
+ const [M, z] = g5(
46684
46687
  y,
46685
46688
  Xh(b5(l))
46686
46689
  );
46687
- o = y5(k.body, w5, M, V);
46690
+ o = y5(k.body, w5, M, z);
46688
46691
  }
46689
46692
  }
46690
46693
  Ce.isString(f) || (f = f ? "include" : "omit");
@@ -46705,13 +46708,13 @@ const Zie = async (t) => {
46705
46708
  ["status", "statusText", "headers"].forEach((N) => {
46706
46709
  k[N] = S[N];
46707
46710
  });
46708
- const T = Ce.toFiniteNumber(S.headers.get("content-length")), [M, V] = a && g5(
46711
+ const T = Ce.toFiniteNumber(S.headers.get("content-length")), [M, z] = a && g5(
46709
46712
  T,
46710
46713
  Xh(b5(a), !0)
46711
46714
  ) || [];
46712
46715
  S = new Response(
46713
46716
  y5(S.body, w5, M, () => {
46714
- V && V(), v && v();
46717
+ z && z(), v && v();
46715
46718
  }),
46716
46719
  k
46717
46720
  );
@@ -47194,7 +47197,7 @@ const hm = (t) => {
47194
47197
  var nr = /* @__PURE__ */ ((t) => (t.TOGGLE_SUPER_TEXT = "toggle-super-text", t.SUPER_TEXT_UPDATE_POSITION = "SUPER_TEXT_UPDATE_POSITION", t.RENDER_SUPER_TEXT = "RENDER_SUPER_TEXT", t.SUPER_VIEW_PAGE = "SUPER_VIEW_PAGE", t.INCREASE_DECREASE_FONTSIZE = "increase-decrease-fontsize", t))(nr || {});
47195
47198
  const E5 = 8;
47196
47199
  function use(t, e) {
47197
- const n = z(!1);
47200
+ const n = V(!1);
47198
47201
  let o = !1, r = null, i = null, s = null, a = null, l = 0, u = 0;
47199
47202
  function d(S) {
47200
47203
  const E = S.cloneNode(!0);
@@ -47227,22 +47230,22 @@ function use(t, e) {
47227
47230
  function y(S) {
47228
47231
  var M;
47229
47232
  if (!o && !n.value || r === null) return;
47230
- const E = Array.from(S.changedTouches).find((V) => V.identifier === r);
47233
+ const E = Array.from(S.changedTouches).find((z) => z.identifier === r);
47231
47234
  if (!E) return;
47232
47235
  const C = E.clientX - l, k = E.clientY - u, T = C * C + k * k;
47233
47236
  if (!n.value && o && T >= E5 * E5) {
47234
- const V = S.currentTarget || S.target || null;
47235
- m(E, V);
47237
+ const z = S.currentTarget || S.target || null;
47238
+ m(E, z);
47236
47239
  }
47237
47240
  if (n.value) {
47238
47241
  i && (i.style.left = `${E.clientX}px`, i.style.top = `${E.clientY}px`);
47239
47242
  try {
47240
- const V = (M = t.editor) == null ? void 0 : M.view;
47241
- if (!V) {
47243
+ const z = (M = t.editor) == null ? void 0 : M.view;
47244
+ if (!z) {
47242
47245
  s = null;
47243
47246
  return;
47244
47247
  }
47245
- const N = V.posAtCoords({ left: E.clientX, top: E.clientY });
47248
+ const N = z.posAtCoords({ left: E.clientX, top: E.clientY });
47246
47249
  N && typeof N.pos == "number" ? s = N.pos : s = null;
47247
47250
  } catch {
47248
47251
  s = null;
@@ -47266,8 +47269,8 @@ function use(t, e) {
47266
47269
  b();
47267
47270
  return;
47268
47271
  }
47269
- const T = k.nodeSize, M = a, V = M + T, N = s;
47270
- if (N >= M && N <= V) {
47272
+ const T = k.nodeSize, M = a, z = M + T, N = s;
47273
+ if (N >= M && N <= z) {
47271
47274
  b();
47272
47275
  return;
47273
47276
  }
@@ -47275,8 +47278,8 @@ function use(t, e) {
47275
47278
  N > M && (L = N - T);
47276
47279
  const W = C.state.doc.content.size;
47277
47280
  L < 0 && (L = 0), L > W && (L = W);
47278
- const j = k.type.create(k.attrs), ne = C.state.tr;
47279
- ne.delete(M, V), ne.insert(L, j), C.dispatch(ne), b();
47281
+ const j = k.type.create(k.attrs), te = C.state.tr;
47282
+ te.delete(M, z), te.insert(L, j), C.dispatch(te), b();
47280
47283
  return;
47281
47284
  }
47282
47285
  if (o) {
@@ -47297,7 +47300,7 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47297
47300
  __name: "SuperText",
47298
47301
  props: fl,
47299
47302
  setup(t) {
47300
- const e = t, n = z(!1), o = Pt("isMobile", !1), r = J(() => e.editor.storage.superText.enable), i = Bo(nr.RENDER_SUPER_TEXT), { onTouchStart: s, onTouchMove: a, onTouchEnd: l } = use(e, r), u = z(null), d = z(!1), f = () => {
47303
+ const e = t, n = V(!1), o = Pt("isMobile", !1), r = J(() => e.editor.storage.superText.enable), i = Bo(nr.RENDER_SUPER_TEXT), { onTouchStart: s, onTouchMove: a, onTouchEnd: l } = use(e, r), u = V(null), d = V(!1), f = () => {
47301
47304
  d.value = !0;
47302
47305
  }, h = () => {
47303
47306
  d.value = !1;
@@ -47318,26 +47321,26 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47318
47321
  }, v = J(() => o ? b : m), y = J(() => {
47319
47322
  const L = e.getPos(), W = e.editor.state.doc.resolve(L);
47320
47323
  for (let j = W.depth; j > 0; j--) {
47321
- const ne = W.node(j);
47322
- if (ne.type.name === "paragraph")
47323
- return ne;
47324
+ const te = W.node(j);
47325
+ if (te.type.name === "paragraph")
47326
+ return te;
47324
47327
  }
47325
47328
  return null;
47326
47329
  }), x = J(() => {
47327
47330
  var L;
47328
47331
  return ((L = y.value) == null ? void 0 : L.attrs.id) || "";
47329
- }), S = Pt("canEditSuper", z(!0));
47332
+ }), S = Pt("canEditSuper", V(!0));
47330
47333
  function E(L) {
47331
47334
  var B, F;
47332
47335
  if (hm(L)) {
47333
47336
  T();
47334
47337
  return;
47335
47338
  }
47336
- const W = e.getPos(), j = (B = e.editor) == null ? void 0 : B.state.doc.nodeAt(W), ne = L.trim(), { [Et.ELEMENT_ID]: ue, ...G } = (j == null ? void 0 : j.attrs) || {};
47339
+ const W = e.getPos(), j = (B = e.editor) == null ? void 0 : B.state.doc.nodeAt(W), te = L.trim(), { [Et.ELEMENT_ID]: ue, ...G } = (j == null ? void 0 : j.attrs) || {};
47337
47340
  (F = e.editor) == null || F.view.dispatch(
47338
47341
  e.editor.state.tr.setNodeMarkup(W, void 0, {
47339
47342
  ...G,
47340
- [Et.TEXT]: ne
47343
+ [Et.TEXT]: te
47341
47344
  })
47342
47345
  ), requestAnimationFrame(() => {
47343
47346
  e.editor.commands.setTextSelection(W + 1), e.editor.view.focus();
@@ -47353,16 +47356,16 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47353
47356
  i.emit({ action: "hover", payload: ue });
47354
47357
  }
47355
47358
  function k(L) {
47356
- const W = e.node.attrs[Et.ID], ne = {
47359
+ const W = e.node.attrs[Et.ID], te = {
47357
47360
  lineId: L == null ? void 0 : L.target.querySelector(`[node-id="${W}"]`).getAttribute("line-id"),
47358
47361
  dataId: W,
47359
47362
  text: ""
47360
47363
  };
47361
- i.emit({ action: "hover", payload: ne }), u.value = null;
47364
+ i.emit({ action: "hover", payload: te }), u.value = null;
47362
47365
  }
47363
47366
  function T() {
47364
- const { getPos: L, node: W, editor: j } = e, ne = L(), ue = ne + 1;
47365
- j.commands.deleteRange({ from: ne, to: ue });
47367
+ const { getPos: L, node: W, editor: j } = e, te = L(), ue = te + 1;
47368
+ j.commands.deleteRange({ from: te, to: ue });
47366
47369
  }
47367
47370
  function M() {
47368
47371
  if (!S.value) return;
@@ -47373,7 +47376,7 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47373
47376
  }
47374
47377
  e.editor.view.dom.blur(), n.value = !0;
47375
47378
  }
47376
- function V() {
47379
+ function z() {
47377
47380
  e.editor.commands.setSuperTextContent(
47378
47381
  e.node.attrs[Et.TEXT],
47379
47382
  e.node.attrs[Et.POSITION]
@@ -47384,7 +47387,7 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47384
47387
  });
47385
47388
  const N = J(() => e.node.attrs[Et.TEXT].replace(/<p><\/p>\s*$/, "<p>&nbsp;</p>"));
47386
47389
  return (L, W) => {
47387
- const j = Kn, ne = $y, ue = Fy, G = By, B = Py, F = Zd;
47390
+ const j = Kn, te = $y, ue = Fy, G = By, B = Py, F = Zd;
47388
47391
  return A(), H(g(dl), Ne({
47389
47392
  as: "span",
47390
47393
  class: g(cse)(
@@ -47398,7 +47401,7 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47398
47401
  g(o) && !r.value ? (A(), ie("button", {
47399
47402
  key: 0,
47400
47403
  class: "w-6 inline-flex justify-center rounded text-ed-red-500 active:bg-ed-accent",
47401
- onClick: mn(V, ["stop"])
47404
+ onClick: mn(z, ["stop"])
47402
47405
  }, [
47403
47406
  R(g(tn), {
47404
47407
  name: "fileEdit2",
@@ -47408,12 +47411,12 @@ const dse = ["innerHTML"], fse = ["book-mark-node-id", "book-mark-content", "nod
47408
47411
  g(o) && r.value ? (A(), ie("div", {
47409
47412
  key: 1,
47410
47413
  class: "super-text-view-mode-item whitespace-break-spaces wrap-anywhere",
47411
- onClick: mn(V, ["stop"]),
47414
+ onClick: mn(z, ["stop"]),
47412
47415
  innerHTML: N.value
47413
47416
  }, null, 8, dse)) : we("", !0),
47414
47417
  g(o) ? we("", !0) : (A(), H(B, { key: 2 }, {
47415
47418
  default: O(() => [
47416
- R(ne, {
47419
+ R(te, {
47417
47420
  as: "template",
47418
47421
  class: "relative",
47419
47422
  disabled: !g(S)
@@ -48144,7 +48147,7 @@ const k5 = io(), xo = {
48144
48147
  function e(x, S) {
48145
48148
  t[x].editor = S;
48146
48149
  }
48147
- const n = z(Qr.NO_ERROR);
48150
+ const n = V(Qr.NO_ERROR);
48148
48151
  function o() {
48149
48152
  Object.values(t).forEach((x) => {
48150
48153
  x.wrongWords = [];
@@ -48159,12 +48162,12 @@ const k5 = io(), xo = {
48159
48162
  let x = !1, S = !1;
48160
48163
  for (const [k, { editor: T }] of Object.entries(t)) {
48161
48164
  if (!T) continue;
48162
- const M = (E = T == null ? void 0 : T.extensionManager.extensions.find((N) => N.name === "spellchecker")) == null ? void 0 : E.options.proofreader.api, V = T.getText({ blockSeparator: `
48165
+ const M = (E = T == null ? void 0 : T.extensionManager.extensions.find((N) => N.name === "spellchecker")) == null ? void 0 : E.options.proofreader.api, z = T.getText({ blockSeparator: `
48163
48166
  ` });
48164
- if (!(!M || !V))
48167
+ if (!(!M || !z))
48165
48168
  try {
48166
48169
  const { data: N } = await Bn.post(M, {
48167
- value: V
48170
+ value: z
48168
48171
  });
48169
48172
  if (!N.success && N.code !== Zz.NOTHING_TO_CHANGE) {
48170
48173
  S = !0, t[k].wrongWords = [];
@@ -48235,17 +48238,17 @@ const k5 = io(), xo = {
48235
48238
  }
48236
48239
  const M = S.map((W) => {
48237
48240
  var G;
48238
- const j = k(W.startIndex), ne = k(Math.max(0, W.endIndex - 1)) + 1, ue = ((G = W.correctWord) == null ? void 0 : G[0]) ?? W.wrongWord;
48239
- return { item: W, from: j, to: ne, replacement: ue };
48241
+ const j = k(W.startIndex), te = k(Math.max(0, W.endIndex - 1)) + 1, ue = ((G = W.correctWord) == null ? void 0 : G[0]) ?? W.wrongWord;
48242
+ return { item: W, from: j, to: te, replacement: ue };
48240
48243
  }).filter((W) => typeof W.from == "number" && typeof W.to == "number" && W.from < W.to);
48241
48244
  if (!M.length) return;
48242
48245
  M.sort((W, j) => j.from - W.from);
48243
- const V = x.state.tr;
48246
+ const z = x.state.tr;
48244
48247
  let N = Number.POSITIVE_INFINITY;
48245
48248
  const L = /* @__PURE__ */ new Set();
48246
48249
  for (const W of M)
48247
- W.to > N || (V.insertText(W.replacement, W.from, W.to), L.add(W.item), N = W.from);
48248
- L.size > 0 && (x.view.dispatch(V), x.view.focus()), L.size > 0 && (S = S.filter((W) => ![...L].some((j) => j === W))), vv(x, S);
48250
+ W.to > N || (z.insertText(W.replacement, W.from, W.to), L.add(W.item), N = W.from);
48251
+ L.size > 0 && (x.view.dispatch(z), x.view.focus()), L.size > 0 && (S = S.filter((W) => ![...L].some((j) => j === W))), vv(x, S);
48249
48252
  }
48250
48253
  function y() {
48251
48254
  for (const [x, { editor: S, wrongWords: E }] of Object.entries(t))
@@ -48308,7 +48311,7 @@ const k5 = io(), xo = {
48308
48311
  clearAllEditorHighlightErrors: h,
48309
48312
  reRunSpellCheckAndHighlight: m,
48310
48313
  replaceAllEditorErrors: b
48311
- } = vse(), v = z(!1), y = ko({ x: 0, y: 0 }), x = z(!1), S = { x: 0, y: 0 }, E = (j) => {
48314
+ } = vse(), v = V(!1), y = ko({ x: 0, y: 0 }), x = V(!1), S = { x: 0, y: 0 }, E = (j) => {
48312
48315
  x.value = !0, S.x = j.clientX - y.x, S.y = j.clientY - y.y, document.addEventListener("mousemove", C), document.addEventListener("mouseup", k);
48313
48316
  }, C = (j) => {
48314
48317
  x.value && (y.x = j.clientX - S.x, y.y = j.clientY - S.y);
@@ -48318,7 +48321,7 @@ const k5 = io(), xo = {
48318
48321
  _n(() => {
48319
48322
  document.removeEventListener("mousemove", C), document.removeEventListener("mouseup", k);
48320
48323
  });
48321
- const T = z(null), M = z({ top: 0, right: 0, left: 0 }), V = () => {
48324
+ const T = V(null), M = V({ top: 0, right: 0, left: 0 }), z = () => {
48322
48325
  if (T.value) {
48323
48326
  const j = T.value.$el.getBoundingClientRect();
48324
48327
  M.value = {
@@ -48333,10 +48336,10 @@ const k5 = io(), xo = {
48333
48336
  }), _n(() => {
48334
48337
  s(Ci.EDITOR_COMMENT, null), s(Ci.EDITOR_CONTENT, null);
48335
48338
  }), De(v, async (j) => {
48336
- j ? (await _t(), V(), a(e.isEnableSpellCheckRealTime), await u(), f()) : (d(), l(), h());
48339
+ j ? (await _t(), z(), a(e.isEnableSpellCheckRealTime), await u(), f()) : (d(), l(), h());
48337
48340
  });
48338
48341
  const N = (W = (L = e.editor) == null ? void 0 : L.extensionManager.extensions.find((j) => j.name === "spellchecker")) == null ? void 0 : W.options.bulkSpellCheckerButton;
48339
- return (j, ne) => {
48342
+ return (j, te) => {
48340
48343
  const ue = tn, G = Vy, B = am, F = sm, U = im, P = rm, ee = Mre, oe = Xd, me = Gd;
48341
48344
  return A(), H(me, { open: g(v) }, {
48342
48345
  default: O(() => [
@@ -48344,7 +48347,7 @@ const k5 = io(), xo = {
48344
48347
  "as-child": "",
48345
48348
  ref_key: "triggerRef",
48346
48349
  ref: T,
48347
- onClick: ne[0] || (ne[0] = (Se) => v.value = !g(v))
48350
+ onClick: te[0] || (te[0] = (Se) => v.value = !g(v))
48348
48351
  }, {
48349
48352
  default: O(() => [
48350
48353
  g(N) ? (A(), H(An(g(N).component), {
@@ -48358,7 +48361,7 @@ const k5 = io(), xo = {
48358
48361
  iconClass: g(N).props.iconClass
48359
48362
  }, null, 8, ["buttonName", "icon", "type", "disabled", "iconPosition", "buttonSize", "iconClass"])) : (A(), ie("button", wse, [
48360
48363
  R(ue, { name: "checkUnderline" }),
48361
- ne[4] || (ne[4] = Qe("맞춤법 일괄 교정 "))
48364
+ te[4] || (te[4] = Qe("맞춤법 일괄 교정 "))
48362
48365
  ]))
48363
48366
  ]),
48364
48367
  _: 1
@@ -48385,7 +48388,7 @@ const k5 = io(), xo = {
48385
48388
  default: O(() => [
48386
48389
  R(B, { class: "text-base space-x-2" }, {
48387
48390
  default: O(() => [
48388
- ne[5] || (ne[5] = q("span", null, "맞춤법/문법 오류", -1)),
48391
+ te[5] || (te[5] = q("span", null, "맞춤법/문법 오류", -1)),
48389
48392
  R(G, { class: "text-sm bg-blue-500 hover:bg-blue-500 dark:bg-dark-blue-100 px-2" }, {
48390
48393
  default: O(() => [
48391
48394
  Qe(Ie(g(o)) + "개", 1)
@@ -48396,7 +48399,7 @@ const k5 = io(), xo = {
48396
48399
  _: 1
48397
48400
  }),
48398
48401
  R(F, {
48399
- onClick: ne[1] || (ne[1] = (Se) => v.value = !1),
48402
+ onClick: te[1] || (te[1] = (Se) => v.value = !1),
48400
48403
  class: "text-xs flex items-center gap-x-1"
48401
48404
  }, {
48402
48405
  default: O(() => [
@@ -48416,9 +48419,9 @@ const k5 = io(), xo = {
48416
48419
  editorsState: g(n),
48417
48420
  spellCheckStatus: g(r),
48418
48421
  allWrongWordsMissSuggestions: g(i),
48419
- onCloseModal: ne[2] || (ne[2] = (Se) => v.value = !1),
48422
+ onCloseModal: te[2] || (te[2] = (Se) => v.value = !1),
48420
48423
  onRunSpellcheck: g(m),
48421
- onReplaceAllEditorErrors: ne[3] || (ne[3] = (Se) => (g(b)(), v.value = !1))
48424
+ onReplaceAllEditorErrors: te[3] || (te[3] = (Se) => (g(b)(), v.value = !1))
48422
48425
  }, null, 8, ["editorsState", "spellCheckStatus", "allWrongWordsMissSuggestions", "onRunSpellcheck"])
48423
48426
  ], 4)
48424
48427
  ]),
@@ -48484,15 +48487,15 @@ const k5 = io(), xo = {
48484
48487
  }),
48485
48488
  Sk,
48486
48489
  P7
48487
- ], l = z(o.spellcheckEnabled), u = J(() => {
48488
- var ne;
48489
- return (ne = o.parentEditor) == null ? void 0 : ne.extensionManager.extensions.find((ue) => ue.name === "spellchecker");
48490
+ ], l = V(o.spellcheckEnabled), u = J(() => {
48491
+ var te;
48492
+ return (te = o.parentEditor) == null ? void 0 : te.extensionManager.extensions.find((ue) => ue.name === "spellchecker");
48490
48493
  }), d = J(
48491
48494
  () => {
48492
- var ne, ue, G, B, F, U, P, ee, oe, me;
48495
+ var te, ue, G, B, F, U, P, ee, oe, me;
48493
48496
  return Ck.configure({
48494
48497
  proofreader: new Uk({
48495
- api: (ue = (ne = u.value) == null ? void 0 : ne.options.proofreader) == null ? void 0 : ue.api,
48498
+ api: (ue = (te = u.value) == null ? void 0 : te.options.proofreader) == null ? void 0 : ue.api,
48496
48499
  limit: (B = (G = u.value) == null ? void 0 : G.options.proofreader) == null ? void 0 : B.limit,
48497
48500
  transfer: (U = (F = u.value) == null ? void 0 : F.options.proofreader) == null ? void 0 : U.transfer,
48498
48501
  enabled: l.value
@@ -48512,8 +48515,8 @@ const k5 = io(), xo = {
48512
48515
  extensions: a.concat(d.value),
48513
48516
  editable: !o.isReadOnly,
48514
48517
  autofocus: o.autofocus,
48515
- onUpdate: ({ editor: ne }) => {
48516
- r("update:modelValue", ne.getHTML());
48518
+ onUpdate: ({ editor: te }) => {
48519
+ r("update:modelValue", te.getHTML());
48517
48520
  },
48518
48521
  parseOptions: {
48519
48522
  preserveWhitespace: "full"
@@ -48521,19 +48524,19 @@ const k5 = io(), xo = {
48521
48524
  });
48522
48525
  De(
48523
48526
  () => o.isReadOnly,
48524
- (ne) => {
48527
+ (te) => {
48525
48528
  var ue;
48526
- f.setEditable(!ne), (ue = f == null ? void 0 : f.commands) != null && ue.setIsEnableSuggestion && f.commands.setIsEnableSuggestion(!ne);
48529
+ f.setEditable(!te), (ue = f == null ? void 0 : f.commands) != null && ue.setIsEnableSuggestion && f.commands.setIsEnableSuggestion(!te);
48527
48530
  },
48528
48531
  { immediate: !0 }
48529
48532
  );
48530
- function h(ne) {
48533
+ function h(te) {
48531
48534
  const { view: ue } = f, { from: G } = ue.state.selection;
48532
- f.commands.insertContentAt(G, ne), f.commands.focus();
48535
+ f.commands.insertContentAt(G, te), f.commands.focus();
48533
48536
  }
48534
48537
  function m() {
48535
- var ne;
48536
- l.value = !l.value, f.commands.handleActiveSpellCheck(l.value), (ne = f == null ? void 0 : f.commands) != null && ne.setIsEnableSuggestion && f.commands.setIsEnableSuggestion(l.value);
48538
+ var te;
48539
+ l.value = !l.value, f.commands.handleActiveSpellCheck(l.value), (te = f == null ? void 0 : f.commands) != null && te.setIsEnableSuggestion && f.commands.setIsEnableSuggestion(l.value);
48537
48540
  }
48538
48541
  const { contentInner: b, measuredMinWidth: v, measure: y } = v0({
48539
48542
  minChars: s,
@@ -48556,31 +48559,31 @@ const k5 = io(), xo = {
48556
48559
  paddingRight: "7px"
48557
48560
  } : {
48558
48561
  width: `${v.value}px`
48559
- }), V = document.createElement("canvas").getContext("2d");
48562
+ }), z = document.createElement("canvas").getContext("2d");
48560
48563
  function N() {
48561
- if (!v.value || !(b.value instanceof Element) || !V) return;
48562
- const ne = f.getText({ blockSeparator: `
48564
+ if (!v.value || !(b.value instanceof Element) || !z) return;
48565
+ const te = f.getText({ blockSeparator: `
48563
48566
  ` }), ue = getComputedStyle(b.value);
48564
- V.font = ue.font;
48567
+ z.font = ue.font;
48565
48568
  const G = 20, B = () => Math.max(0, (v.value || 0) - G);
48566
48569
  function F(oe, me) {
48567
48570
  let Se = 1, Be = oe.length, pe = 0;
48568
48571
  for (; Se <= Be; ) {
48569
48572
  const ke = Math.floor((Se + Be) / 2);
48570
- V.measureText(oe.slice(0, ke)).width <= me ? (pe = ke, Se = ke + 1) : Be = ke - 1;
48573
+ z.measureText(oe.slice(0, ke)).width <= me ? (pe = ke, Se = ke + 1) : Be = ke - 1;
48571
48574
  }
48572
48575
  return pe;
48573
48576
  }
48574
48577
  let U = "";
48575
48578
  const P = [];
48576
- for (const oe of ne) {
48579
+ for (const oe of te) {
48577
48580
  if (oe === `
48578
48581
  `) {
48579
48582
  P.push(U), U = "";
48580
48583
  continue;
48581
48584
  }
48582
- if (U += oe, V.measureText(U).width > B())
48583
- for (; V.measureText(U).width > B(); ) {
48585
+ if (U += oe, z.measureText(U).width > B())
48586
+ for (; z.measureText(U).width > B(); ) {
48584
48587
  const me = F(U, B());
48585
48588
  me <= 0 ? (P.push(U.charAt(0)), U = U.slice(1)) : (P.push(U.slice(0, me)), U = U.slice(me));
48586
48589
  }
@@ -48589,21 +48592,21 @@ const k5 = io(), xo = {
48589
48592
  }
48590
48593
  const L = J(() => {
48591
48594
  var ue, G, B;
48592
- const ne = (B = (G = (ue = o.parentEditor) == null ? void 0 : ue.storage.superText.superInputModal) == null ? void 0 : G.props) == null ? void 0 : B.guidelineLeftOffset;
48593
- return i.value || !ne ? {} : {
48595
+ const te = (B = (G = (ue = o.parentEditor) == null ? void 0 : ue.storage.superText.superInputModal) == null ? void 0 : G.props) == null ? void 0 : B.guidelineLeftOffset;
48596
+ return i.value || !te ? {} : {
48594
48597
  backgroundImage: "linear-gradient(to right, #d1d5db 1px, transparent 1px)",
48595
48598
  backgroundSize: "1px 100%",
48596
48599
  backgroundRepeat: "no-repeat",
48597
- backgroundPosition: Rn(ne)
48600
+ backgroundPosition: Rn(te)
48598
48601
  };
48599
48602
  }), { isScrolling: W, handleScroll: j } = Ru();
48600
- return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: N, editor: f }), (ne, ue) => (A(), ie("div", {
48603
+ return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: N, editor: f }), (te, ue) => (A(), ie("div", {
48601
48604
  ref_key: "contentInner",
48602
48605
  ref: b,
48603
48606
  class: $e(
48604
48607
  g(Fe)(
48605
48608
  "h-40 overflow-y-auto border focus-within:border-ed-input-focus rounded-[3px] p-2.5 relative",
48606
- ne.isReadOnly && "border-none",
48609
+ te.isReadOnly && "border-none",
48607
48610
  g(i) && "h-auto min-h-20 max-h-44 border-ed-gray rounded-md px-4 py-2.5",
48608
48611
  g(i) && !g(W) && "scrollbar-thumb-transparent"
48609
48612
  )
@@ -48633,7 +48636,7 @@ const k5 = io(), xo = {
48633
48636
  emits: ["close", "save"],
48634
48637
  setup(t, { emit: e }) {
48635
48638
  var B, F;
48636
- const n = e, o = t, { t: r } = Jt(), i = z(""), s = z(""), a = z(null), l = z(!1), u = Vp("superInputModalPosition", null), d = ko({ x: 0, y: 0 }), f = z(!1), h = { x: 0, y: 0 }, m = z(!1), b = z(!1), v = z(!1), y = (U) => {
48639
+ const n = e, o = t, { t: r } = Jt(), i = V(""), s = V(""), a = V(null), l = V(!1), u = Vp("superInputModalPosition", null), d = ko({ x: 0, y: 0 }), f = V(!1), h = { x: 0, y: 0 }, m = V(!1), b = V(!1), v = V(!1), y = (U) => {
48637
48640
  f.value = !0;
48638
48641
  const P = U.currentTarget.closest(".draggable-dialog").getBoundingClientRect();
48639
48642
  h.x = U.clientX - P.left, h.y = U.clientY - P.top, document.addEventListener("mousemove", x), document.addEventListener("mouseup", S);
@@ -48666,7 +48669,7 @@ const k5 = io(), xo = {
48666
48669
  i.value = a.value.wrapText(), s.value = "", b.value ? m.value = !0 : n("close"), n("save", i.value), i.value = "";
48667
48670
  }, k = () => {
48668
48671
  m.value = !1, n("close");
48669
- }, T = (F = (B = o.editor) == null ? void 0 : B.extensionManager.extensions.find((U) => U.name === "superText")) == null ? void 0 : F.options.specialCharModal, M = Pt("fontFamily", ""), V = J(() => {
48672
+ }, T = (F = (B = o.editor) == null ? void 0 : B.extensionManager.extensions.find((U) => U.name === "superText")) == null ? void 0 : F.options.specialCharModal, M = Pt("fontFamily", ""), z = J(() => {
48670
48673
  var U, P, ee;
48671
48674
  return Ap(o.editor, hd) && g(M) ? g(M) : (ee = (P = (U = o.editor) == null ? void 0 : U.storage.superText.superInputModal) == null ? void 0 : P.props) == null ? void 0 : ee.fontFamily;
48672
48675
  }), N = Vp("recentSpecialChars", []), L = (U) => {
@@ -48679,7 +48682,7 @@ const k5 = io(), xo = {
48679
48682
  }, j = (U, P) => {
48680
48683
  var ee;
48681
48684
  P && ((ee = a.value) == null || ee.insertSpecialCharater(U), L(U));
48682
- }, ne = J(() => {
48685
+ }, te = J(() => {
48683
48686
  var U;
48684
48687
  return (U = a.value) == null ? void 0 : U.isChecked;
48685
48688
  }), ue = () => {
@@ -48717,7 +48720,7 @@ const k5 = io(), xo = {
48717
48720
  top: "0px",
48718
48721
  left: "0px",
48719
48722
  transform: `translate(${d.x}px, ${d.y}px)`,
48720
- fontFamily: g(V)
48723
+ fontFamily: g(z)
48721
48724
  })
48722
48725
  }, [
48723
48726
  R(me, {
@@ -48765,7 +48768,7 @@ const k5 = io(), xo = {
48765
48768
  id: "spellcheck",
48766
48769
  type: "checkbox",
48767
48770
  class: "shrink-0",
48768
- checked: g(ne),
48771
+ checked: g(te),
48769
48772
  onChange: ue
48770
48773
  }, null, 40, kse),
48771
48774
  q("label", Tse, Ie(g(r)("editor.menubar.menu.spellCheck")), 1)
@@ -48796,7 +48799,7 @@ const k5 = io(), xo = {
48796
48799
  l.value ? (A(), H(An((ge = g(T)) == null ? void 0 : ge.component), Ne({
48797
48800
  key: 0,
48798
48801
  "custom-class": "!z-[70] !pointer-events-auto",
48799
- "font-family": g(V)
48802
+ "font-family": g(z)
48800
48803
  }, g(T).props, {
48801
48804
  onSelectedChar: j,
48802
48805
  onClose: P[1] || (P[1] = (xe) => l.value = !1)
@@ -48888,7 +48891,7 @@ const k5 = io(), xo = {
48888
48891
  disableSuperInput: { type: Boolean }
48889
48892
  },
48890
48893
  setup(t, { expose: e }) {
48891
- const n = t, { t: o } = Jt(), r = z(!1), i = ko({ from: 0, to: 0, text: "" }), s = Pt("isEditable", z(!0)), a = Pt("canEditSuper", z(!0)), l = J(() => n.mode === qe.EDITOR || n.mode === qe.PLAIN_TEXT || !a.value || n.disableSuperInput);
48894
+ const n = t, { t: o } = Jt(), r = V(!1), i = ko({ from: 0, to: 0, text: "" }), s = Pt("isEditable", V(!0)), a = Pt("canEditSuper", V(!0)), l = J(() => n.mode === qe.EDITOR || n.mode === qe.PLAIN_TEXT || !a.value || n.disableSuperInput);
48892
48895
  function u() {
48893
48896
  if (!n.editor) return "";
48894
48897
  const { from: S, to: E } = n.editor.state.selection, C = n.editor.state.doc.cut(S, E), T = Vr.fromSchema(n.editor.schema).serializeFragment(C.content), M = document.createElement("div");
@@ -48907,7 +48910,7 @@ const k5 = io(), xo = {
48907
48910
  }), r.value = !1, requestAnimationFrame(() => {
48908
48911
  n.editor.commands.setTextSelection(i.from + 1), n.editor.view.focus();
48909
48912
  });
48910
- }, v = z(!1), y = async (S) => {
48913
+ }, v = V(!1), y = async (S) => {
48911
48914
  var E, C;
48912
48915
  if (S) {
48913
48916
  const k = await ((C = (E = n.editor).hasClipboard) == null ? void 0 : C.call(E));
@@ -48919,7 +48922,7 @@ const k5 = io(), xo = {
48919
48922
  i.from = C, i.to = k, i.text = "", S.dom.blur(), r.value = !0;
48920
48923
  };
48921
48924
  return e({ toggleDialog: f, openDialog: h, closeDialog: m }), (S, E) => {
48922
- const C = Zd, k = $y, T = Fy, M = By, V = Py;
48925
+ const C = Zd, k = $y, T = Fy, M = By, z = Py;
48923
48926
  return A(), ie(nt, null, [
48924
48927
  R(C, {
48925
48928
  open: r.value,
@@ -48928,7 +48931,7 @@ const k5 = io(), xo = {
48928
48931
  onClose: f,
48929
48932
  onSave: b
48930
48933
  }, null, 8, ["open", "editor", "super-text-init"]),
48931
- R(V, { "onUpdate:open": y }, {
48934
+ R(z, { "onUpdate:open": y }, {
48932
48935
  default: O(() => [
48933
48936
  R(k, {
48934
48937
  as: "template",
@@ -49005,7 +49008,7 @@ const k5 = io(), xo = {
49005
49008
  __name: "PageNode",
49006
49009
  props: fl,
49007
49010
  setup(t) {
49008
- const { state: e, page: n, superTextStore: o } = io(), { size: r, pagination: i, margin: s } = n.value, a = z(null), l = z(t.node.attrs.viewSuperTextArea), u = J(() => l.value && t.editor.storage.page.mode !== "editor"), d = J(() => t.editor.storage.page.mode === qe.REPORT), { width: f, height: h } = r, m = J(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = Bo(nr.SUPER_VIEW_PAGE);
49011
+ const { state: e, page: n, superTextStore: o } = io(), { size: r, pagination: i, margin: s } = n.value, a = V(null), l = V(t.node.attrs.viewSuperTextArea), u = J(() => l.value && t.editor.storage.page.mode !== "editor"), d = J(() => t.editor.storage.page.mode === qe.REPORT), { width: f, height: h } = r, m = J(() => i ? `calc(${h} - ${(s == null ? void 0 : s.top) ?? 0} - ${(s == null ? void 0 : s.bottom) ?? 0}` : "max-content"), b = Bo(nr.SUPER_VIEW_PAGE);
49009
49012
  return De(
49010
49013
  () => t.node.attrs,
49011
49014
  (v) => {
@@ -49128,10 +49131,10 @@ const Pse = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: o, edi
49128
49131
  const k = s.before(s.depth - (x - 1));
49129
49132
  e.replace(k, s.after(-S), new ze(y, 4 - x, 0));
49130
49133
  let T = -1;
49131
- e.doc.nodesBetween(k, e.doc.content.size, (M, V) => {
49134
+ e.doc.nodesBetween(k, e.doc.content.size, (M, z) => {
49132
49135
  if (T > -1)
49133
49136
  return !1;
49134
- M.isTextblock && M.content.size === 0 && (T = V + 1);
49137
+ M.isTextblock && M.content.size === 0 && (T = z + 1);
49135
49138
  }), T > -1 && e.setSelection(Ye.near(e.doc.resolve(T))), e.scrollIntoView();
49136
49139
  }
49137
49140
  return !0;
@@ -49893,7 +49896,7 @@ const eae = /* @__PURE__ */ K({
49893
49896
  label: g(e)("editor.default"),
49894
49897
  value: "default"
49895
49898
  }), u;
49896
- }), r = z("default"), i = t;
49899
+ }), r = V("default"), i = t;
49897
49900
  function s(a) {
49898
49901
  a === "default" ? i.editor.chain().focus().unsetLineHeight().run() : i.editor.chain().focus().setLineHeight(a).run(), r.value = a;
49899
49902
  }
@@ -50040,7 +50043,7 @@ const Xy = ln.create({
50040
50043
  },
50041
50044
  emits: ["close", "save", "delete"],
50042
50045
  setup(t, { emit: e }) {
50043
- const n = e, o = t, { t: r } = Jt(), i = z(""), s = z(!1), a = z(o.isViewMode ?? !1), l = z(!1);
50046
+ const n = e, o = t, { t: r } = Jt(), i = V(""), s = V(!1), a = V(o.isViewMode ?? !1), l = V(!1);
50044
50047
  De(
50045
50048
  () => o.isViewMode,
50046
50049
  (m) => {
@@ -50146,7 +50149,7 @@ const Xy = ln.create({
50146
50149
  __name: "ConfigPlan",
50147
50150
  props: fl,
50148
50151
  setup(t) {
50149
- const e = t, n = z(!1), o = z(null), { selection: r, doc: i } = e.editor.state, s = Pt("isMobile"), a = z(!1), l = Bo(nr.RENDER_SUPER_TEXT), u = J(() => {
50152
+ const e = t, n = V(!1), o = V(null), { selection: r, doc: i } = e.editor.state, s = Pt("isMobile"), a = V(!1), l = Bo(nr.RENDER_SUPER_TEXT), u = J(() => {
50150
50153
  var k, T;
50151
50154
  const x = i.resolve(r.from), S = x == null ? void 0 : x.node(-1), E = (k = S == null ? void 0 : S.attrs) == null ? void 0 : k.id, C = (T = S == null ? void 0 : S.attrs) == null ? void 0 : T.pageNumber;
50152
50155
  return {
@@ -50192,7 +50195,7 @@ const Xy = ln.create({
50192
50195
  n.value = !0, s && (a.value = !0);
50193
50196
  }
50194
50197
  return (x, S) => {
50195
- const E = Kn, C = $y, k = Fy, T = By, M = Py, V = Zd;
50198
+ const E = Kn, C = $y, k = Fy, T = By, M = Py, z = Zd;
50196
50199
  return A(), H(g(dl), {
50197
50200
  as: "span",
50198
50201
  class: $e(["w-fit text-inherit super-text align-middle", {
@@ -50279,7 +50282,7 @@ const Xy = ln.create({
50279
50282
  onClose: S[2] || (S[2] = (N) => n.value = !1),
50280
50283
  onSave: h,
50281
50284
  onDelete: v
50282
- }, null, 8, ["title", "open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (A(), H(V, {
50285
+ }, null, 8, ["title", "open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (A(), H(z, {
50283
50286
  key: 0,
50284
50287
  open: n.value,
50285
50288
  editor: e.editor,
@@ -50505,8 +50508,8 @@ function cae(t) {
50505
50508
  });
50506
50509
  const T = S && S[k];
50507
50510
  if (T) {
50508
- const M = (C + k) % e * 2, V = s[M];
50509
- V == null || V != T && s[M + 1] == 1 ? (s[M] = T, s[M + 1] = 1) : V == T && s[M + 1]++;
50511
+ const M = (C + k) % e * 2, z = s[M];
50512
+ z == null || z != T && s[M + 1] == 1 ? (s[M] = T, s[M + 1] = 1) : z == T && s[M + 1]++;
50510
50513
  }
50511
50514
  }
50512
50515
  }
@@ -52425,7 +52428,7 @@ const Cle = ["disabled"], Sle = {
52425
52428
  },
52426
52429
  emits: ["create-table"],
52427
52430
  setup(t, { emit: e }) {
52428
- const n = e, o = z(!1), r = z(!0), i = ko({
52431
+ const n = e, o = V(!1), r = V(!0), i = ko({
52429
52432
  rows: G5() ? Zf : Jf,
52430
52433
  cols: G5() ? Zf : Jf
52431
52434
  }), s = ko({
@@ -53010,7 +53013,7 @@ const zle = yt.create({
53010
53013
  ...fl
53011
53014
  },
53012
53015
  setup(t) {
53013
- const e = t, n = Pt("isEditable", z(!0)), o = z(""), r = z(!1), i = z(), { t: s } = Jt();
53016
+ const e = t, n = Pt("isEditable", V(!0)), o = V(""), r = V(!1), i = V(), { t: s } = Jt();
53014
53017
  function a(f) {
53015
53018
  var y;
53016
53019
  r.value = !0;
@@ -53386,7 +53389,7 @@ const Fk = ({ validateFn: t, onUpload: e }) => async (n, o, r) => {
53386
53389
  ...fl
53387
53390
  },
53388
53391
  setup(t) {
53389
- const e = t, n = z(""), o = z(), { t: r } = Jt(), i = Pt("isEditable", z(!0));
53392
+ const e = t, n = V(""), o = V(), { t: r } = Jt(), i = Pt("isEditable", V(!0));
53390
53393
  function s(d) {
53391
53394
  var v, y;
53392
53395
  const f = (v = d == null ? void 0 : d.target) == null ? void 0 : v.files;
@@ -53548,7 +53551,7 @@ function X5(t) {
53548
53551
  }, cue);
53549
53552
  Gg.set(t, e);
53550
53553
  }
53551
- const Yr = z({
53554
+ const Yr = V({
53552
53555
  toasts: []
53553
53556
  });
53554
53557
  function jc(t) {
@@ -53716,7 +53719,7 @@ const pue = {
53716
53719
  const e = t, { t: n } = Jt(), o = io(), r = J(() => {
53717
53720
  var f;
53718
53721
  return (f = e.editor) == null ? void 0 : f.storage.specialCharacter.specialCharModal;
53719
- }), i = z(!1);
53722
+ }), i = V(!1);
53720
53723
  let s = null;
53721
53724
  function a() {
53722
53725
  const f = document.activeElement;
@@ -54266,8 +54269,8 @@ function Aue({ pluginKey: t = Tue, editor: e, char: n = "@", allowSpaces: o = !1
54266
54269
  view() {
54267
54270
  return {
54268
54271
  update: async (x, S) => {
54269
- var E, C, k, T, M, V, N;
54270
- const L = (E = this.key) === null || E === void 0 ? void 0 : E.getState(S), W = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state), j = L.active && W.active && L.range.from !== W.range.from, ne = !L.active && W.active, ue = L.active && !W.active, G = !ne && !ue && L.query !== W.query, B = ne || j && G, F = G || j, U = ue || j && G;
54272
+ var E, C, k, T, M, z, N;
54273
+ const L = (E = this.key) === null || E === void 0 ? void 0 : E.getState(S), W = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state), j = L.active && W.active && L.range.from !== W.range.from, te = !L.active && W.active, ue = L.active && !W.active, G = !te && !ue && L.query !== W.query, B = te || j && G, F = G || j, U = ue || j && G;
54271
54274
  if (!B && !F && !U)
54272
54275
  return;
54273
54276
  const P = U && !B ? L : W, ee = x.dom.querySelector(`[data-decoration-id="${P.decorationId}"]`);
@@ -54293,7 +54296,7 @@ function Aue({ pluginKey: t = Tue, editor: e, char: n = "@", allowSpaces: o = !1
54293
54296
  }, B && ((k = v == null ? void 0 : v.onBeforeStart) === null || k === void 0 || k.call(v, b)), F && ((T = v == null ? void 0 : v.onBeforeUpdate) === null || T === void 0 || T.call(v, b)), (F || B) && (b.items = await d({
54294
54297
  editor: e,
54295
54298
  query: P.query
54296
- })), U && ((M = v == null ? void 0 : v.onExit) === null || M === void 0 || M.call(v, b)), F && ((V = v == null ? void 0 : v.onUpdate) === null || V === void 0 || V.call(v, b)), B && ((N = v == null ? void 0 : v.onStart) === null || N === void 0 || N.call(v, b));
54299
+ })), U && ((M = v == null ? void 0 : v.onExit) === null || M === void 0 || M.call(v, b)), F && ((z = v == null ? void 0 : v.onUpdate) === null || z === void 0 || z.call(v, b)), B && ((N = v == null ? void 0 : v.onStart) === null || N === void 0 || N.call(v, b));
54297
54300
  },
54298
54301
  destroy: () => {
54299
54302
  var x;
@@ -54317,8 +54320,8 @@ function Aue({ pluginKey: t = Tue, editor: e, char: n = "@", allowSpaces: o = !1
54317
54320
  },
54318
54321
  // Apply changes to the plugin state from a view transaction.
54319
54322
  apply(x, S, E, C) {
54320
- const { isEditable: k } = e, { composing: T } = e.view, { selection: M } = x, { empty: V, from: N } = M, L = { ...S };
54321
- if (L.composing = T, k && (V || e.view.composing)) {
54323
+ const { isEditable: k } = e, { composing: T } = e.view, { selection: M } = x, { empty: z, from: N } = M, L = { ...S };
54324
+ if (L.composing = T, k && (z || e.view.composing)) {
54322
54325
  (N < S.range.from || N > S.range.to) && !T && !S.composing && (L.active = !1);
54323
54326
  const W = m({
54324
54327
  char: n,
@@ -54600,7 +54603,7 @@ const Bue = {
54600
54603
  command: { type: Function, default: void 0 }
54601
54604
  },
54602
54605
  setup(t, { expose: e }) {
54603
- const n = z(0), o = z(0), r = z(null), { t: i } = Jt(), s = z([]), a = t;
54606
+ const n = V(0), o = V(0), r = V(null), { t: i } = Jt(), s = V([]), a = t;
54604
54607
  e({ onKeyDown: l }), De([() => n.value, () => o.value], async () => {
54605
54608
  if (!r.value) return;
54606
54609
  await _t();
@@ -55304,7 +55307,7 @@ const $fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
55304
55307
  VideoUpload: Pk
55305
55308
  }, Symbol.toStringTag, { value: "Module" })), lce = '<page id="ft6nbbxs" extend="false" pagenumber="1" force="false"><h1 id="tk6n64mj" extend="&quot;false&quot;"><strong>Introduction(English)</strong></h1><p id="s864ng1o" extend="&quot;false&quot;">MyMy Editor is open-source document editor based on Vue3 and Tiptap. MyMy Editor provides comprehensive document editing capabilities, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.</p><h1 id="jm9johtz" extend="&quot;false&quot;"><strong>소개(국문)</strong></h1><p id="0qei01hl" extend="&quot;false&quot;">마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.</p><blockquote class="blockquote"><p id="nekf7yi0" extend="false"><span style="color: rgb(115, 209, 61)"><strong><em>Make by VDC</em></strong></span></p></blockquote></page>';
55306
55309
  function Hfe() {
55307
- const t = window.localStorage.getItem("content"), e = z(t || lce), n = J(() => [
55310
+ const t = window.localStorage.getItem("content"), e = V(t || lce), n = J(() => [
55308
55311
  Hk.configure({
55309
55312
  placeholder: {
55310
55313
  showOnlyCurrent: !0
@@ -55402,7 +55405,7 @@ function Hfe() {
55402
55405
  return { defaultExtensions: n, content: e, dispatchUpdateStatusSuperText: r };
55403
55406
  }
55404
55407
  function uce() {
55405
- const t = z(!1);
55408
+ const t = V(!1);
55406
55409
  return {
55407
55410
  hasEverFocused: t,
55408
55411
  markAsFocused: () => {
@@ -55435,7 +55438,7 @@ function uce() {
55435
55438
  };
55436
55439
  }
55437
55440
  function Ru(t = 250) {
55438
- const e = z(!1);
55441
+ const e = V(!1);
55439
55442
  let n = null;
55440
55443
  const o = () => {
55441
55444
  e.value = !0, n && clearTimeout(n), n = setTimeout(() => {
@@ -55450,7 +55453,7 @@ function Ru(t = 250) {
55450
55453
  };
55451
55454
  }
55452
55455
  function cce() {
55453
- const t = z(!1);
55456
+ const t = V(!1);
55454
55457
  let e = !1;
55455
55458
  function n() {
55456
55459
  const a = Array.from(document.querySelectorAll(".inside-toolbar")), l = document.querySelector("#tool-bar-format"), u = document.querySelector("#tool-bar-image"), d = Array.from(document.querySelectorAll('[contenteditable="true"].tiptap:not(.simple-editor)'));
@@ -55497,7 +55500,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
55497
55500
  tooltipOptions: { default: void 0 }
55498
55501
  },
55499
55502
  setup(t) {
55500
- const e = t, n = z(void 0), { state: o } = io();
55503
+ const e = t, n = V(void 0), { state: o } = io();
55501
55504
  function r(s) {
55502
55505
  var a;
55503
55506
  (a = e.action) == null || a.call(e, s);
@@ -55649,7 +55652,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
55649
55652
  }
55650
55653
  }, {
55651
55654
  default: O(() => {
55652
- var S, E, C, k, T, M, V, N, L;
55655
+ var S, E, C, k, T, M, z, N, L;
55653
55656
  return [
55654
55657
  q("div", bce, [
55655
55658
  R(ft, {
@@ -55728,7 +55731,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
55728
55731
  "tooltip-options": {
55729
55732
  sideOffset: 15
55730
55733
  },
55731
- disabled: !((V = y.editor) != null && V.can().mergeCells())
55734
+ disabled: !((z = y.editor) != null && z.can().mergeCells())
55732
55735
  }, null, 8, ["tooltip", "disabled"]),
55733
55736
  R(ft, {
55734
55737
  icon: "TableCellsSplit",
@@ -55889,7 +55892,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
55889
55892
  disabled: { type: Boolean, default: !1 }
55890
55893
  },
55891
55894
  setup(t) {
55892
- const e = t, n = z(!1), o = J(() => {
55895
+ const e = t, n = V(!1), o = J(() => {
55893
55896
  const { href: a } = e.editor.getAttributes("link");
55894
55897
  return a;
55895
55898
  }), r = J(() => e.editor.isActive("link"));
@@ -55969,13 +55972,13 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
55969
55972
  ]);
55970
55973
  }
55971
55974
  }), jk = (t, e, n, o, r) => {
55972
- const i = z(0), s = Bo(nr.RENDER_SUPER_TEXT), a = (k) => {
55975
+ const i = V(0), s = Bo(nr.RENDER_SUPER_TEXT), a = (k) => {
55973
55976
  if (!e.value || !t) return;
55974
- const T = e.value.index, M = e.value.id, { state: V } = t, { tr: N } = V;
55977
+ const T = e.value.index, M = e.value.id, { state: z } = t, { tr: N } = z;
55975
55978
  let L = !1;
55976
- V.doc.descendants((W, j) => {
55977
- var ne, ue;
55978
- if (((ne = W.attrs) == null ? void 0 : ne[Et.ID]) === M) {
55979
+ z.doc.descendants((W, j) => {
55980
+ var te, ue;
55981
+ if (((te = W.attrs) == null ? void 0 : te[Et.ID]) === M) {
55979
55982
  (ue = W.attrs[Et.TEXT]) != null && ue.trim();
55980
55983
  const G = k.trim();
55981
55984
  if (hm(G))
@@ -55988,20 +55991,20 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
55988
55991
  }
55989
55992
  return !0;
55990
55993
  }), L && t && t.view.dispatch(N), T !== -1 && (n.value[T].text = k, n.value[T].textOriginal = k);
55991
- }, l = z(/* @__PURE__ */ new Map()), u = () => {
55994
+ }, l = V(/* @__PURE__ */ new Map()), u = () => {
55992
55995
  if (!(t != null && t.view.dom)) return [];
55993
55996
  const k = [], T = t == null ? void 0 : t.view.dom.querySelectorAll("[node-id]"), M = /* @__PURE__ */ new Map();
55994
- return l.value.clear(), T.forEach((V) => {
55995
- const N = V.getBoundingClientRect().top;
55996
- M.has(N) || M.set(N, V), l.value.set(V.getAttribute("node-id") || "unknown", 0);
55997
+ return l.value.clear(), T.forEach((z) => {
55998
+ const N = z.getBoundingClientRect().top;
55999
+ M.has(N) || M.set(N, z), l.value.set(z.getAttribute("node-id") || "unknown", 0);
55997
56000
  }), k.push(...M.values()), k;
55998
56001
  }, d = (k) => {
55999
56002
  const T = k.closest(`#${o}`);
56000
56003
  if (!T) return;
56001
- const M = T.getBoundingClientRect().top, V = T == null ? void 0 : T.scrollTop;
56002
- return k.getBoundingClientRect().top - (M - V);
56004
+ const M = T.getBoundingClientRect().top, z = T == null ? void 0 : T.scrollTop;
56005
+ return k.getBoundingClientRect().top - (M - z);
56003
56006
  }, f = (k, T) => {
56004
- const M = n.value.findIndex((V) => V.id === k);
56007
+ const M = n.value.findIndex((z) => z.id === k);
56005
56008
  M > -1 && (n.value[M].status = T);
56006
56009
  }, h = (k) => k.replace(/<p><\/p>/g, "<p>&nbsp;</p>"), m = () => {
56007
56010
  if (!n.value || n.value.length === 0) {
@@ -56027,31 +56030,31 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56027
56030
  }), k.forEach((N, L) => {
56028
56031
  M[L].isHidden && N.classList.add("hidden"), M[L].isTruncated && N.classList.add("super-text-truncate");
56029
56032
  });
56030
- let V = 0;
56033
+ let z = 0;
56031
56034
  for (const N of l.value.values())
56032
- N > V && (V = N);
56033
- i.value = V;
56035
+ N > z && (z = N);
56036
+ i.value = z;
56034
56037
  }, b = async () => {
56035
56038
  await _t();
56036
56039
  const T = u().map((M) => {
56037
- const V = M.getAttribute("node-id"), N = M.getAttribute("book-mark-content"), L = M.getAttribute("page-id"), W = M.getAttribute("page-number"), j = M.getBoundingClientRect(), ne = M.getAttribute("line-id"), ue = M.getAttribute("element-id");
56040
+ const z = M.getAttribute("node-id"), N = M.getAttribute("book-mark-content"), L = M.getAttribute("page-id"), W = M.getAttribute("page-number"), j = M.getBoundingClientRect(), te = M.getAttribute("line-id"), ue = M.getAttribute("element-id");
56038
56041
  return {
56039
56042
  position: j,
56040
56043
  text: h(N),
56041
- id: V,
56044
+ id: z,
56042
56045
  pageId: L,
56043
56046
  pageNumber: W,
56044
56047
  visiblePosition: d(M),
56045
56048
  status: 0,
56046
- lineId: ne,
56049
+ lineId: te,
56047
56050
  elementId: ue,
56048
56051
  textOriginal: h(N)
56049
56052
  };
56050
56053
  });
56051
56054
  n.value = T;
56052
56055
  }, v = (k, T) => {
56053
- const M = k.bottom <= T.top, V = k.top >= T.bottom;
56054
- return !(M || V);
56056
+ const M = k.bottom <= T.top, z = k.top >= T.bottom;
56057
+ return !(M || z);
56055
56058
  };
56056
56059
  async function y() {
56057
56060
  const k = r.value;
@@ -56060,13 +56063,13 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56060
56063
  return;
56061
56064
  }
56062
56065
  k.sort((T, M) => {
56063
- const V = Number(T.getAttribute("index")), N = Number(M.getAttribute("index"));
56064
- return V - N;
56066
+ const z = Number(T.getAttribute("index")), N = Number(M.getAttribute("index"));
56067
+ return z - N;
56065
56068
  }), k.forEach((T) => T.classList.remove("super-text-truncate")), k.forEach((T, M) => {
56066
- const V = T.getBoundingClientRect();
56069
+ const z = T.getBoundingClientRect();
56067
56070
  k.slice(M + 1).forEach((N) => {
56068
56071
  const L = N.getBoundingClientRect();
56069
- v(V, L) && T.classList.add("super-text-truncate");
56072
+ v(z, L) && T.classList.add("super-text-truncate");
56070
56073
  });
56071
56074
  }), m();
56072
56075
  }
@@ -56075,19 +56078,19 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56075
56078
  const T = t == null ? void 0 : t.view.dom.querySelector(`[node-id='${k.dataId}']`), M = r.value.find((L) => {
56076
56079
  const W = L.getBoundingClientRect().top, j = T == null ? void 0 : T.getBoundingClientRect().top;
56077
56080
  if (j == null) return !1;
56078
- const ne = j - W;
56079
- return Math.abs(ne - 9) <= 2;
56081
+ const te = j - W;
56082
+ return Math.abs(te - 9) <= 2;
56080
56083
  });
56081
56084
  if (!M) return;
56082
- const V = Number(M.getAttribute("index"));
56085
+ const z = Number(M.getAttribute("index"));
56083
56086
  if (!k.text) {
56084
- M.querySelector(".super-text-lines").innerHTML = n.value[V].textOriginal, r.value.forEach((L) => L.classList.remove("hidden")), y();
56087
+ M.querySelector(".super-text-lines").innerHTML = n.value[z].textOriginal, r.value.forEach((L) => L.classList.remove("hidden")), y();
56085
56088
  return;
56086
56089
  }
56087
56090
  M.querySelector(".super-text-lines").innerHTML = h(k.text), M.classList.remove("super-text-truncate");
56088
56091
  const N = M.getBoundingClientRect();
56089
56092
  r.value.forEach((L, W) => {
56090
- if (W !== V) {
56093
+ if (W !== z) {
56091
56094
  const j = L.getBoundingClientRect();
56092
56095
  v(N, j) && L.classList.add("hidden");
56093
56096
  }
@@ -56109,11 +56112,11 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56109
56112
  }, E = (k, T) => {
56110
56113
  const M = k.currentTarget;
56111
56114
  M.classList.remove("super-text-truncate");
56112
- const V = M.getBoundingClientRect();
56115
+ const z = M.getBoundingClientRect();
56113
56116
  r.value.forEach((N, L) => {
56114
56117
  if (L !== T) {
56115
56118
  const W = N.getBoundingClientRect();
56116
- v(V, W) && N.classList.add("hidden");
56119
+ v(z, W) && N.classList.add("hidden");
56117
56120
  }
56118
56121
  }), m();
56119
56122
  }, C = () => {
@@ -56149,58 +56152,58 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56149
56152
  fixedWidth: { type: Boolean }
56150
56153
  },
56151
56154
  setup(t, { expose: e }) {
56152
- const n = t, o = z([]), r = z([]), i = z(!1), s = z(!1), a = z(null), l = Pt("isMobile", !1), u = Pt("canEditSuper", z(!0)), { onUpdate: d, handleMouseOver: f, handleMouseLeave: h, wrapperMinHeight: m } = jk(
56155
+ const n = t, o = V([]), r = V([]), i = V(!1), s = V(!1), a = V(null), l = Pt("isMobile", !1), u = Pt("canEditSuper", V(!0)), { onUpdate: d, handleMouseOver: f, handleMouseLeave: h, wrapperMinHeight: m } = jk(
56153
56156
  n.editor,
56154
56157
  a,
56155
56158
  r,
56156
56159
  "editor-container",
56157
56160
  o
56158
- ), b = (E, C) => {
56161
+ ), b = (C, k) => {
56159
56162
  u.value && (a.value = {
56160
- id: E.id,
56161
- text: E.text,
56162
- elementId: E.elementId,
56163
- index: C
56163
+ id: C.id,
56164
+ text: C.text,
56165
+ elementId: C.elementId,
56166
+ index: k
56164
56167
  }, i.value = !0, l && (s.value = !0));
56165
- }, v = (E) => {
56166
- var C, k;
56167
- return Up(E ? ((C = n.superPreviewCustomClass) == null ? void 0 : C.completedSuper) ?? "bg-black" : ((k = n.superPreviewCustomClass) == null ? void 0 : k.unproducedSuper) ?? "bg-red-500");
56168
- }, y = J(() => n.fontSize ?? ""), { contentInner: x, measuredMinWidth: S } = v0({
56168
+ }, v = (C) => {
56169
+ var k, T;
56170
+ return Up(C ? ((k = n.superPreviewCustomClass) == null ? void 0 : k.completedSuper) ?? "bg-black" : ((T = n.superPreviewCustomClass) == null ? void 0 : T.unproducedSuper) ?? "bg-red-500");
56171
+ }, y = J(() => n.fontSize ?? ""), x = J(() => n.fixedWidth ?? !1), { contentInner: S, measuredMinWidth: E } = v0({
56169
56172
  minChars: n.minChars,
56170
56173
  fontSize: y,
56171
- fixed: n.fixedWidth
56174
+ fixed: x
56172
56175
  });
56173
- return e({ measuredMinWidthComment: S }), (E, C) => {
56174
- var T;
56175
- const k = tn;
56176
+ return e({ measuredMinWidthComment: E }), (C, k) => {
56177
+ var M;
56178
+ const T = tn;
56176
56179
  return A(), ie("div", {
56177
56180
  id: "super-text-view-wrapper",
56178
56181
  ref_key: "contentInner",
56179
- ref: x,
56180
- style: wt({ width: `${Number(g(S)) + 25}px`, minHeight: `${g(m)}px` }),
56182
+ ref: S,
56183
+ style: wt({ width: `${Number(g(E)) + 25}px`, minHeight: `${g(m)}px` }),
56181
56184
  class: $e(
56182
56185
  g(Fe)(
56183
56186
  "relative border border-ed-gray-400 dark:bg-black rounded-[3px] mr-2.5",
56184
- E.fixedWidth && "overflow-hidden",
56185
- ((T = E.superPreviewCustomClass) == null ? void 0 : T.overall) ?? "bg-ed-gray-50"
56187
+ C.fixedWidth && "overflow-hidden",
56188
+ ((M = C.superPreviewCustomClass) == null ? void 0 : M.overall) ?? "bg-ed-gray-50"
56186
56189
  )
56187
56190
  )
56188
56191
  }, [
56189
- (A(!0), ie(nt, null, $t(r.value, (M, V) => {
56190
- var N, L, W;
56192
+ (A(!0), ie(nt, null, $t(r.value, (z, N) => {
56193
+ var L, W, j;
56191
56194
  return A(), ie("div", {
56192
- key: M.id,
56195
+ key: z.id,
56193
56196
  ref_for: !0,
56194
56197
  ref_key: "superTextRefs",
56195
56198
  ref: o,
56196
- index: V,
56197
- "book-mark-id": M.id,
56198
- "line-id": M.lineId,
56199
+ index: N,
56200
+ "book-mark-id": z.id,
56201
+ "line-id": z.lineId,
56199
56202
  class: $e(g(Fe)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
56200
- style: wt({ top: `${M.visiblePosition || ((N = M.position) == null ? void 0 : N.top)}px` }),
56201
- onMouseover: (j) => g(f)(j, V),
56202
- onMouseleave: C[0] || (C[0] = //@ts-ignore
56203
- (...j) => g(h) && g(h)(...j))
56203
+ style: wt({ top: `${z.visiblePosition || ((L = z.position) == null ? void 0 : L.top)}px` }),
56204
+ onMouseover: (te) => g(f)(te, N),
56205
+ onMouseleave: k[0] || (k[0] = //@ts-ignore
56206
+ (...te) => g(h) && g(h)(...te))
56204
56207
  }, [
56205
56208
  R(g(Vy), {
56206
56209
  role: "text",
@@ -56208,23 +56211,23 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56208
56211
  class: $e(
56209
56212
  g(Fe)(
56210
56213
  "w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56211
- E.fixedWidth ? "whitespace-nowrap overflow-hidden" : "wrap-anywhere whitespace-break-spaces",
56212
- M.elementId ? ((L = E.superPreviewCustomClass) == null ? void 0 : L.completedSuper) ?? "bg-black" : ((W = E.superPreviewCustomClass) == null ? void 0 : W.unproducedSuper) ?? "bg-red-500",
56214
+ C.fixedWidth ? "whitespace-nowrap overflow-hidden" : "wrap-anywhere whitespace-break-spaces",
56215
+ z.elementId ? ((W = C.superPreviewCustomClass) == null ? void 0 : W.completedSuper) ?? "bg-black" : ((j = C.superPreviewCustomClass) == null ? void 0 : j.unproducedSuper) ?? "bg-red-500",
56213
56216
  {
56214
56217
  "cursor-default": !g(u)
56215
56218
  }
56216
56219
  )
56217
56220
  ),
56218
- onDblclick: (j) => b(M, V)
56221
+ onDblclick: (te) => b(z, N)
56219
56222
  }, {
56220
56223
  default: O(() => [
56221
56224
  q("div", {
56222
56225
  class: "super-text-lines",
56223
- innerHTML: M.text
56226
+ innerHTML: z.text
56224
56227
  }, null, 8, _ce),
56225
- R(k, {
56228
+ R(T, {
56226
56229
  name: "triangle",
56227
- class: $e(["absolute top-[0.4em] rotate-90 w-3 h-3 right-0", v(M.elementId)])
56230
+ class: $e(["absolute top-[0.4em] rotate-90 w-3 h-3 right-0", v(z.elementId)])
56228
56231
  }, null, 8, ["class"])
56229
56232
  ]),
56230
56233
  _: 2
@@ -56237,13 +56240,13 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56237
56240
  editor: n.editor,
56238
56241
  "super-text-init": a.value.text,
56239
56242
  "super-text-element-id": a.value.elementId,
56240
- onClose: C[1] || (C[1] = (M) => i.value = !1),
56243
+ onClose: k[1] || (k[1] = (z) => i.value = !1),
56241
56244
  onSave: g(d)
56242
56245
  }, null, 8, ["open", "editor", "super-text-init", "super-text-element-id", "onSave"])) : we("", !0)
56243
56246
  ], 6);
56244
56247
  };
56245
56248
  }
56246
- }), Tce = /* @__PURE__ */ ci(kce, [["__scopeId", "data-v-19e7be48"]]), Ace = ["index", "book-mark-id", "line-id", "onMouseover"], Mce = ["innerHTML"], Oce = /* @__PURE__ */ K({
56249
+ }), Tce = /* @__PURE__ */ ci(kce, [["__scopeId", "data-v-fc989bc6"]]), Ace = ["index", "book-mark-id", "line-id", "onMouseover"], Mce = ["innerHTML"], Oce = /* @__PURE__ */ K({
56247
56250
  __name: "SuperTextViewComment",
56248
56251
  props: {
56249
56252
  editor: {},
@@ -56252,7 +56255,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56252
56255
  fixedWidth: { type: Boolean }
56253
56256
  },
56254
56257
  setup(t) {
56255
- const e = t, n = z([]), o = z([]), r = z(!1), i = z(!1), s = z(null), a = Pt("isMobile", !1), l = Pt("isEditable", z(!0)), { onUpdate: u, handleMouseOver: d, handleMouseLeave: f, wrapperMinHeight: h } = jk(
56258
+ const e = t, n = V([]), o = V([]), r = V(!1), i = V(!1), s = V(null), a = Pt("isMobile", !1), l = Pt("isEditable", V(!0)), { onUpdate: u, handleMouseOver: d, handleMouseLeave: f, wrapperMinHeight: h } = jk(
56256
56259
  e.editor,
56257
56260
  s,
56258
56261
  o,
@@ -56284,7 +56287,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56284
56287
  )
56285
56288
  }, [
56286
56289
  (A(!0), ie(nt, null, $t(o.value, (C, k) => {
56287
- var T, M, V;
56290
+ var T, M, z;
56288
56291
  return A(), ie("div", {
56289
56292
  key: C.id,
56290
56293
  ref_for: !0,
@@ -56306,7 +56309,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56306
56309
  g(Fe)(
56307
56310
  "w-full !font-normal px-1 pt-0 m-0 !leading-tight rounded-sm text-white border-transparent cursor-pointer",
56308
56311
  y.fixedWidth ? "whitespace-nowrap overflow-hidden" : "wrap-anywhere whitespace-break-spaces",
56309
- C.elementId ? ((M = y.superPreviewCustomClass) == null ? void 0 : M.completedSuper) ?? "bg-black" : ((V = y.superPreviewCustomClass) == null ? void 0 : V.unproducedSuper) ?? "bg-red-500",
56312
+ C.elementId ? ((M = y.superPreviewCustomClass) == null ? void 0 : M.completedSuper) ?? "bg-black" : ((z = y.superPreviewCustomClass) == null ? void 0 : z.unproducedSuper) ?? "bg-red-500",
56310
56313
  {
56311
56314
  "cursor-default": !g(l)
56312
56315
  }
@@ -56461,7 +56464,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56461
56464
  checkSpellStore: h,
56462
56465
  setEditorContextMenuRef: m,
56463
56466
  setEditorFocusedInstance: b
56464
- } = a, v = Pt("isEditable", z(!0)), y = new Li({
56467
+ } = a, v = Pt("isEditable", V(!0)), y = new Li({
56465
56468
  enablePasteRules: !1,
56466
56469
  // disable Markdown when pasting
56467
56470
  enableInputRules: !1,
@@ -56475,18 +56478,18 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56475
56478
  handleKeyDown: Kt.throttle((T, M) => M.key === "Enter" && s.enter && !M.shiftKey ? (r("enter"), !0) : !1, Oi),
56476
56479
  transformPastedHTML: (T) => qk(T),
56477
56480
  handlePaste: (T, M) => {
56478
- const V = M.clipboardData;
56479
- if (!V) return !1;
56480
- const N = o.mode, L = V.getData("text/plain") || "", W = Array.from(V.items).some((j) => j.type.startsWith("image/"));
56481
+ const z = M.clipboardData;
56482
+ if (!z) return !1;
56483
+ const N = o.mode, L = z.getData("text/plain") || "", W = Array.from(z.items).some((j) => j.type.startsWith("image/"));
56481
56484
  return (N === qe.STRAIGHT || N === qe.REPORT) && W ? (M.preventDefault(), !0) : N === qe.PLAIN_TEXT ? (M.preventDefault(), T.dispatch(T.state.tr.insertText(L, T.state.selection.from)), !0) : !1;
56482
56485
  },
56483
56486
  clipboardTextParser: (T, M) => {
56484
- const V = T.split(/(?:\r\n?|\n)/), N = [];
56485
- V.forEach((W) => {
56487
+ const z = T.split(/(?:\r\n?|\n)/), N = [];
56488
+ z.forEach((W) => {
56486
56489
  let j = { type: "paragraph" };
56487
56490
  W.length > 0 && (j.content = [{ type: "text", text: W }]);
56488
- let ne = Dr.fromJSON(M.doc.type.schema, j);
56489
- N.push(ne);
56491
+ let te = Dr.fromJSON(M.doc.type.schema, j);
56492
+ N.push(te);
56490
56493
  });
56491
56494
  const L = Ae.fromArray(N);
56492
56495
  return ze.maxOpen(L);
@@ -56541,8 +56544,8 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56541
56544
  () => o.modelValue,
56542
56545
  (T) => {
56543
56546
  if (!y || Kt.isEqual(S(y, o.output), T)) return;
56544
- const { from: M, to: V } = y.state.selection;
56545
- y.commands.setTextSelection({ from: M, to: V }), y.commands.setContent(qn(T, o.disabled), !1), x();
56547
+ const { from: M, to: z } = y.state.selection;
56548
+ y.commands.setTextSelection({ from: M, to: z }), y.commands.setContent(qn(T, o.disabled), !1), x();
56546
56549
  },
56547
56550
  { deep: !0 }
56548
56551
  ), De(
@@ -56562,7 +56565,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56562
56565
  ), _n(() => y == null ? void 0 : y.destroy()), Kd(Pd.SAVE, () => {
56563
56566
  localStorage.setItem("comment", S(y, "html"));
56564
56567
  });
56565
- const E = z(null);
56568
+ const E = V(null);
56566
56569
  function C(T) {
56567
56570
  T === qe.REPORT && m(E.value);
56568
56571
  }
@@ -56618,7 +56621,7 @@ const dce = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
56618
56621
  }
56619
56622
  });
56620
56623
  function Fce(t, e, n = !1, o = 200) {
56621
- const { height: r } = jR(t), i = z(0), s = z(0), a = z(o), l = z(0), u = async () => {
56624
+ const { height: r } = jR(t), i = V(0), s = V(0), a = V(o), l = V(0), u = async () => {
56622
56625
  await _t();
56623
56626
  const d = r.value - 8;
56624
56627
  e.value === qe.REPORT ? (i.value = d / 3, s.value = n ? "auto" : d - i.value, a.value = o / 3 * 2, l.value = o / 3) : (i.value = 0, s.value = n ? "auto" : r.value);
@@ -56856,7 +56859,7 @@ var $ce = { exports: {} };
56856
56859
  function M(P) {
56857
56860
  return 44032 <= P && P <= 55203;
56858
56861
  }
56859
- function V(P, ee) {
56862
+ function z(P, ee) {
56860
56863
  return y[P] && y[P][ee] ? y[P][ee] : !1;
56861
56864
  }
56862
56865
  function N(P, ee) {
@@ -56883,7 +56886,7 @@ var $ce = { exports: {} };
56883
56886
  if (at === 1) {
56884
56887
  if (ge = P[Be + at].charCodeAt(0), k(ge))
56885
56888
  if (Be + at + 1 <= fe && k(xe = P[Be + at + 1].charCodeAt(0))) {
56886
- ee.push(String.fromCharCode(V(ge, xe))), Be = fe;
56889
+ ee.push(String.fromCharCode(z(ge, xe))), Be = fe;
56887
56890
  return;
56888
56891
  } else {
56889
56892
  ee.push(P[Be + at]), Be = fe;
@@ -56900,7 +56903,7 @@ var $ce = { exports: {} };
56900
56903
  return;
56901
56904
  } else
56902
56905
  ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + r);
56903
- else at === 3 ? (He = P[Be + at].charCodeAt(0), V(xe, He) ? xe = V(xe, He) : Ve = He, ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + b[Ve] + r)) : at === 4 ? (it = P[Be + at].charCodeAt(0), N(Ve, it) ? Ve = N(Ve, it) : Ve = it, ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + b[Ve] + r)) : at === 5 && (it = P[Be + at].charCodeAt(0), Ve = N(Ve, it), ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + b[Ve] + r));
56906
+ else at === 3 ? (He = P[Be + at].charCodeAt(0), z(xe, He) ? xe = z(xe, He) : Ve = He, ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + b[Ve] + r)) : at === 4 ? (it = P[Be + at].charCodeAt(0), N(Ve, it) ? Ve = N(Ve, it) : Ve = it, ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + b[Ve] + r)) : at === 5 && (it = P[Be + at].charCodeAt(0), Ve = N(Ve, it), ut = String.fromCharCode((h[ge] * 21 + m[xe]) * 28 + b[Ve] + r));
56904
56907
  if (Be + at >= fe) {
56905
56908
  ee.push(ut), Be = fe;
56906
56909
  return;
@@ -56912,10 +56915,10 @@ var $ce = { exports: {} };
56912
56915
  re(de - 1), re(de), Se = 0;
56913
56916
  continue;
56914
56917
  }
56915
- Se === 0 ? C(me) ? Se = 1 : k(me) && (Se = 4) : Se == 1 ? k(me) ? Se = 2 : N(pe, me) ? Se = 5 : re(de - 1) : Se == 2 ? T(me) ? Se = 3 : k(me) ? V(pe, me) || (re(de - 1), Se = 4) : (re(de - 1), Se = 1) : Se == 3 ? T(me) ? !ke && N(pe, me) ? ke = !0 : (re(de - 1), Se = 1) : C(me) ? (re(de - 1), Se = 1) : k(me) && (re(de - 2), Se = 2) : Se == 4 ? k(me) ? V(pe, me) ? (re(de), Se = 0) : re(de - 1) : (re(de - 1), Se = 1) : Se == 5 && (k(me) ? (re(de - 2), Se = 2) : (re(de - 1), Se = 1)), pe = me;
56918
+ Se === 0 ? C(me) ? Se = 1 : k(me) && (Se = 4) : Se == 1 ? k(me) ? Se = 2 : N(pe, me) ? Se = 5 : re(de - 1) : Se == 2 ? T(me) ? Se = 3 : k(me) ? z(pe, me) || (re(de - 1), Se = 4) : (re(de - 1), Se = 1) : Se == 3 ? T(me) ? !ke && N(pe, me) ? ke = !0 : (re(de - 1), Se = 1) : C(me) ? (re(de - 1), Se = 1) : k(me) && (re(de - 2), Se = 2) : Se == 4 ? k(me) ? z(pe, me) ? (re(de), Se = 0) : re(de - 1) : (re(de - 1), Se = 1) : Se == 5 && (k(me) ? (re(de - 2), Se = 2) : (re(de - 1), Se = 1)), pe = me;
56916
56919
  }
56917
56920
  return re(de - 1), ee.join("");
56918
- }, ne = function(P, ee) {
56921
+ }, te = function(P, ee) {
56919
56922
  var oe = L(P).join(""), me = L(ee).join("");
56920
56923
  return oe.indexOf(me);
56921
56924
  }, ue = function(P, ee) {
@@ -56964,7 +56967,7 @@ var $ce = { exports: {} };
56964
56967
  assemble: j,
56965
56968
  a: j,
56966
56969
  // alias for assemble
56967
- search: ne,
56970
+ search: te,
56968
56971
  rangeSearch: ue,
56969
56972
  Searcher: G,
56970
56973
  endsWithConsonant: B,
@@ -57092,7 +57095,7 @@ function Yl(t) {
57092
57095
  t.view.dispatch(e);
57093
57096
  }
57094
57097
  function Hce(t) {
57095
- const e = z(-1), n = z([]), o = J(() => n.value.length);
57098
+ const e = V(-1), n = V([]), o = J(() => n.value.length);
57096
57099
  function r(f) {
57097
57100
  var x;
57098
57101
  const h = t.value;
@@ -57240,7 +57243,7 @@ const Gk = /* @__PURE__ */ K({
57240
57243
  wholeWord: u.value
57241
57244
  };
57242
57245
  }
57243
- const i = z(""), s = z(""), a = z(null), l = z(!1), u = z(!1), d = J(() => i.value ? n.totalMatches === 0 ? "No matches" : `${n.currentMatchIndex + 1} / ${n.totalMatches}` : ""), f = Vp("findReplaceDialogPosition", null), h = ko({ x: 0, y: 0 }), m = z(!1), b = { x: 0, y: 0 }, v = (N) => {
57246
+ const i = V(""), s = V(""), a = V(null), l = V(!1), u = V(!1), d = J(() => i.value ? n.totalMatches === 0 ? "No matches" : `${n.currentMatchIndex + 1} / ${n.totalMatches}` : ""), f = Vp("findReplaceDialogPosition", null), h = ko({ x: 0, y: 0 }), m = V(!1), b = { x: 0, y: 0 }, v = (N) => {
57244
57247
  const L = N.target;
57245
57248
  if (L.closest("input") || L.closest("button") || L.closest("label") || L.closest(".content-area"))
57246
57249
  return;
@@ -57262,13 +57265,13 @@ const Gk = /* @__PURE__ */ K({
57262
57265
  }), De(
57263
57266
  () => n.modelValue,
57264
57267
  async (N) => {
57265
- var ne, ue;
57268
+ var te, ue;
57266
57269
  if (!N) return;
57267
57270
  await _t();
57268
57271
  const L = document.querySelector(".find-replace-dialog");
57269
57272
  if (!L) return;
57270
57273
  const W = window.innerWidth, j = window.innerHeight;
57271
- f.value && f.value.x !== void 0 && f.value.y !== void 0 ? (h.x = f.value.x, h.y = f.value.y) : (h.x = Math.max((W - L.offsetWidth) / 2, 0), h.y = Math.max((j - L.offsetHeight) / 2, 0)), i.value && o("refresh", r()), await _t(), (ue = (ne = a.value) == null ? void 0 : ne.$el) == null || ue.focus();
57274
+ f.value && f.value.x !== void 0 && f.value.y !== void 0 ? (h.x = f.value.x, h.y = f.value.y) : (h.x = Math.max((W - L.offsetWidth) / 2, 0), h.y = Math.max((j - L.offsetHeight) / 2, 0)), i.value && o("refresh", r()), await _t(), (ue = (te = a.value) == null ? void 0 : te.$el) == null || ue.focus();
57272
57275
  }
57273
57276
  );
57274
57277
  const S = () => {
@@ -57296,7 +57299,7 @@ const Gk = /* @__PURE__ */ K({
57296
57299
  const L = N.target.value;
57297
57300
  i.value = L, o("refresh", r());
57298
57301
  }
57299
- function V(N) {
57302
+ function z(N) {
57300
57303
  const W = N.target.value + (N.data ?? "");
57301
57304
  o("refresh", {
57302
57305
  find: W,
@@ -57306,7 +57309,7 @@ const Gk = /* @__PURE__ */ K({
57306
57309
  });
57307
57310
  }
57308
57311
  return (N, L) => {
57309
- const W = la, j = Gk, ne = Kn, ue = Xd, G = Gd;
57312
+ const W = la, j = Gk, te = Kn, ue = Xd, G = Gd;
57310
57313
  return A(), H(G, { open: N.modelValue }, {
57311
57314
  default: O(() => [
57312
57315
  R(ue, {
@@ -57344,7 +57347,7 @@ const Gk = /* @__PURE__ */ K({
57344
57347
  "onUpdate:modelValue": L[0] || (L[0] = (B) => i.value = B),
57345
57348
  class: "rounded-md h-[36px] text-sm pr-[90px] !border-gray-300 focus:!border-blue-500 focus:!ring-0 outline-none",
57346
57349
  onInput: M,
57347
- onCompositionupdate: V,
57350
+ onCompositionupdate: z,
57348
57351
  onKeydown: ms(mn(E, ["prevent"]), ["enter"])
57349
57352
  }, null, 8, ["modelValue", "onKeydown"]),
57350
57353
  g(d) ? (A(), ie("span", Kce, Ie(g(d)), 1)) : we("", !0)
@@ -57376,7 +57379,7 @@ const Gk = /* @__PURE__ */ K({
57376
57379
  q("div", ede, [
57377
57380
  L[4] || (L[4] = q("div", null, null, -1)),
57378
57381
  q("div", tde, [
57379
- R(ne, {
57382
+ R(te, {
57380
57383
  variant: "outline",
57381
57384
  class: "h-[36px] text-sm flex-1 rounded-md border-blue-500 text-blue-600 hover:bg-blue-50",
57382
57385
  onClick: k
@@ -57386,7 +57389,7 @@ const Gk = /* @__PURE__ */ K({
57386
57389
  ]),
57387
57390
  _: 1
57388
57391
  }),
57389
- R(ne, {
57392
+ R(te, {
57390
57393
  variant: "outline",
57391
57394
  class: "h-[36px] text-sm flex-1 rounded-md border-blue-500 text-blue-600 hover:bg-blue-50",
57392
57395
  onClick: T
@@ -57396,7 +57399,7 @@ const Gk = /* @__PURE__ */ K({
57396
57399
  ]),
57397
57400
  _: 1
57398
57401
  }),
57399
- R(ne, {
57402
+ R(te, {
57400
57403
  class: "h-[36px] text-sm flex-1 rounded-md bg-blue-500 hover:bg-blue-600",
57401
57404
  disabled: !i.value,
57402
57405
  onClick: C
@@ -57406,7 +57409,7 @@ const Gk = /* @__PURE__ */ K({
57406
57409
  ]),
57407
57410
  _: 1
57408
57411
  }, 8, ["disabled"]),
57409
- R(ne, {
57412
+ R(te, {
57410
57413
  class: "h-[36px] text-sm flex-1 rounded-md bg-blue-500 hover:bg-blue-600",
57411
57414
  disabled: !i.value,
57412
57415
  onClick: E
@@ -57513,19 +57516,19 @@ const Gk = /* @__PURE__ */ K({
57513
57516
  en("isEditable", S);
57514
57517
  const E = J(() => S.value ? !0 : o.canEditSuperReadOnly);
57515
57518
  en("canEditSuper", E);
57516
- const C = J(() => o.mode === qe.EDITOR), k = z(o.fontSizeDefault), T = z(o.fontFamilyDefault), M = z(o.fontWeightDefault);
57519
+ const C = J(() => o.mode === qe.EDITOR), k = V(o.fontSizeDefault), T = V(o.fontFamilyDefault), M = V(o.fontWeightDefault);
57517
57520
  en("fontSize", k), en("fontFamily", T), en("fontWeight", M);
57518
- const V = (be) => {
57521
+ const z = (be) => {
57519
57522
  !S.value || !((be.ctrlKey || be.metaKey) && be.key.toLowerCase() === "h") || (be.preventDefault(), be.stopPropagation(), be.stopImmediatePropagation(), W.value = !0);
57520
57523
  };
57521
57524
  ct(() => {
57522
- it(), window.addEventListener("keydown", V, !0);
57525
+ it(), window.addEventListener("keydown", z, !0);
57523
57526
  }), _n(() => {
57524
- window.removeEventListener("keydown", V, !0);
57527
+ window.removeEventListener("keydown", z, !0);
57525
57528
  }), I6(() => {
57526
- window.addEventListener("keydown", V, !0);
57529
+ window.addEventListener("keydown", z, !0);
57527
57530
  }), BR(() => {
57528
- window.removeEventListener("keydown", V, !0);
57531
+ window.removeEventListener("keydown", z, !0);
57529
57532
  });
57530
57533
  const N = (be) => {
57531
57534
  const We = parseInt(k.value || "16px"), Xt = be ? We + 2 : We - 2;
@@ -57546,9 +57549,9 @@ const Gk = /* @__PURE__ */ K({
57546
57549
  maxWidth: Rn(o.maxWidth),
57547
57550
  width: o.maxWidth ? "100%" : void 0,
57548
57551
  margin: o.maxWidth ? "0 auto" : void 0
57549
- })), W = z(!1), {
57552
+ })), W = V(!1), {
57550
57553
  searchUp: j,
57551
- searchDown: ne,
57554
+ searchDown: te,
57552
57555
  replaceCurrent: ue,
57553
57556
  replaceAll: G,
57554
57557
  totalMatches: B,
@@ -57562,7 +57565,7 @@ const Gk = /* @__PURE__ */ K({
57562
57565
  const ee = (be) => {
57563
57566
  U(be);
57564
57567
  }, oe = (be) => {
57565
- ne(be);
57568
+ te(be);
57566
57569
  }, me = (be) => {
57567
57570
  j(be);
57568
57571
  }, Se = (be) => {
@@ -57661,7 +57664,7 @@ const Gk = /* @__PURE__ */ K({
57661
57664
  minChars: o.minChar.content,
57662
57665
  fontSize: k,
57663
57666
  editor: pe
57664
- }), xe = z(null), He = J(() => {
57667
+ }), xe = V(null), He = J(() => {
57665
57668
  var be;
57666
57669
  return (be = xe.value) == null ? void 0 : be.measuredMinWidthComment;
57667
57670
  });
@@ -57733,12 +57736,12 @@ const Gk = /* @__PURE__ */ K({
57733
57736
  if (!((he = pe == null ? void 0 : pe.storage) != null && he.superText)) return !1;
57734
57737
  const { enable: be } = pe.storage.superText, We = [qe.EDITOR, qe.PLAIN_TEXT].includes(o.mode), Xt = o.disabled;
57735
57738
  return be && !We && !Xt;
57736
- }), Q = z(null), X = J(() => o.mode), { commentHeight: Te, contentHeight: Re, minHeight: et, minHeightComment: Ct } = Fce(
57739
+ }), Q = V(null), X = J(() => o.mode), { commentHeight: Te, contentHeight: Re, minHeight: et, minHeightComment: Ct } = Fce(
57737
57740
  Q,
57738
57741
  X,
57739
57742
  o.autoHeight,
57740
57743
  typeof o.minHeight == "string" ? parseInt(o.minHeight) : o.minHeight
57741
- ), lt = z(null);
57744
+ ), lt = V(null);
57742
57745
  function ye(be) {
57743
57746
  be === qe.STRAIGHT && v(lt.value);
57744
57747
  }
@@ -57770,7 +57773,7 @@ const Gk = /* @__PURE__ */ K({
57770
57773
  ye(be), Z(be);
57771
57774
  }
57772
57775
  );
57773
- const Ee = z(null), Ge = () => {
57776
+ const Ee = V(null), Ge = () => {
57774
57777
  var We;
57775
57778
  (We = Ee.value) != null && We.editor.commands.focusInvalidChar() || pe.commands.focusInvalidChar();
57776
57779
  };
@@ -57998,7 +58001,7 @@ const Gk = /* @__PURE__ */ K({
57998
58001
  const C = y.includes(v.id ?? "") || x.includes(v.buttonName ?? "");
57999
58002
  return { ...v, separator: C };
58000
58003
  }), b);
58001
- }), i = (h) => h.id === "spellchecker" ? "!text-ed-blue !bg-white !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap" : h.button.componentProps.customClass, s = (h) => h.id === "spellchecker" ? "Spellchecker" : h.button.componentProps.icon, a = z(null), l = z(!1), u = z(!1);
58004
+ }), i = (h) => h.id === "spellchecker" ? "!text-ed-blue !bg-white !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap" : h.button.componentProps.customClass, s = (h) => h.id === "spellchecker" ? "Spellchecker" : h.button.componentProps.icon, a = V(null), l = V(!1), u = V(!1);
58002
58005
  function d() {
58003
58006
  const h = a.value;
58004
58007
  if (!h) return;
@@ -58077,27 +58080,27 @@ const Gk = /* @__PURE__ */ K({
58077
58080
  threshold: { default: 10 }
58078
58081
  },
58079
58082
  setup(t) {
58080
- const e = t, { t: n } = Jt(), o = z("100"), r = z(), i = z(), s = z(), a = ["left", "center", "right"], l = {
58083
+ const e = t, { t: n } = Jt(), o = V("100"), r = V(), i = V(), s = V(), a = ["left", "center", "right"], l = {
58081
58084
  left: "AlignLeft",
58082
58085
  center: "AlignCenter",
58083
58086
  right: "AlignRight"
58084
58087
  };
58085
- function u(ne) {
58086
- ne == null || ne.preventDefault(), e.editor.getAttributes("image").src && (e.editor.commands.updateImage({ width: r.value ? `${r.value}px` : null }), lh());
58088
+ function u(te) {
58089
+ te == null || te.preventDefault(), e.editor.getAttributes("image").src && (e.editor.commands.updateImage({ width: r.value ? `${r.value}px` : null }), lh());
58087
58090
  }
58088
- function d(ne) {
58091
+ function d(te) {
58089
58092
  const ue = Math.max(0, Math.min(100, parseInt(o.value)));
58090
58093
  e.editor.commands.updateImage({ width: `${ue}%` }), lh();
58091
58094
  }
58092
- function f(ne) {
58093
- e.editor.commands.updateAttributes("image", { textAlign: ne });
58095
+ function f(te) {
58096
+ e.editor.commands.updateAttributes("image", { textAlign: te });
58094
58097
  }
58095
58098
  De(o, () => {
58096
58099
  o.value && d();
58097
58100
  }), De(
58098
58101
  () => e.editor.getAttributes("image"),
58099
- (ne) => {
58100
- ne && (r.value = Math.round(parseFloat(ne.originWidth)), i.value = Math.round(parseFloat(ne.originHeight)), s.value = ne.originWidth / ne.originHeight);
58102
+ (te) => {
58103
+ te && (r.value = Math.round(parseFloat(te.originWidth)), i.value = Math.round(parseFloat(te.originHeight)), s.value = te.originWidth / te.originHeight);
58101
58104
  }
58102
58105
  );
58103
58106
  function h() {
@@ -58106,33 +58109,33 @@ const Gk = /* @__PURE__ */ K({
58106
58109
  function m() {
58107
58110
  r.value && s.value ? i.value = Math.max(20, Math.round(r.value / s.value)) : i.value = null;
58108
58111
  }
58109
- function b(ne) {
58110
- f(ne);
58112
+ function b(te) {
58113
+ f(te);
58111
58114
  }
58112
58115
  function v() {
58113
- const ne = e.editor.getAttributes("image"), { flipX: ue } = ne;
58116
+ const te = e.editor.getAttributes("image"), { flipX: ue } = te;
58114
58117
  e.editor.commands.updateImage({ flipX: !ue });
58115
58118
  }
58116
58119
  function y() {
58117
- const ne = e.editor.getAttributes("image"), { flipY: ue } = ne;
58120
+ const te = e.editor.getAttributes("image"), { flipY: ue } = te;
58118
58121
  e.editor.commands.updateImage({ flipY: !ue });
58119
58122
  }
58120
58123
  function x() {
58121
- const { state: ne, dispatch: ue } = e.editor.view;
58122
- $u(ne, ue);
58124
+ const { state: te, dispatch: ue } = e.editor.view;
58125
+ $u(te, ue);
58123
58126
  }
58124
58127
  function S() {
58125
- const { state: ne, dispatch: ue } = e.editor.view, { tr: G, selection: B } = ne;
58128
+ const { state: te, dispatch: ue } = e.editor.view, { tr: G, selection: B } = te;
58126
58129
  if (!(B instanceof Je)) return;
58127
- const F = B.from, U = ne.doc.nodeAt(F);
58130
+ const F = B.from, U = te.doc.nodeAt(F);
58128
58131
  if (!U) return;
58129
- const ee = ne.doc.resolve(F).nodeBefore;
58132
+ const ee = te.doc.resolve(F).nodeBefore;
58130
58133
  if (!ee) return;
58131
58134
  const oe = F - ee.nodeSize, me = G.delete(F, F + U.nodeSize).insert(oe, U).setSelection(Je.create(G.doc, oe));
58132
58135
  ue(me);
58133
58136
  }
58134
58137
  function E() {
58135
- const { state: ne, dispatch: ue } = e.editor.view, { tr: G, doc: B, selection: F } = ne;
58138
+ const { state: te, dispatch: ue } = e.editor.view, { tr: G, doc: B, selection: F } = te;
58136
58139
  if (!(F instanceof Je)) return;
58137
58140
  const U = F.from, P = B.nodeAt(U);
58138
58141
  if (!P) return;
@@ -58143,11 +58146,11 @@ const Gk = /* @__PURE__ */ K({
58143
58146
  const me = ee + oe.nodeSize - P.nodeSize, Se = U + oe.nodeSize, Be = G.delete(U, U + P.nodeSize).insert(me, P).setSelection(Je.create(G.doc, Se));
58144
58147
  ue(Be);
58145
58148
  }
58146
- const C = z(null), k = z(!1), T = z(!1);
58149
+ const C = V(null), k = V(!1), T = V(!1);
58147
58150
  function M() {
58148
- const ne = C.value;
58149
- if (!ne) return;
58150
- const { scrollLeft: ue, scrollWidth: G, clientWidth: B } = ne;
58151
+ const te = C.value;
58152
+ if (!te) return;
58153
+ const { scrollLeft: ue, scrollWidth: G, clientWidth: B } = te;
58151
58154
  if (!(G > B + 1)) {
58152
58155
  k.value = !1, T.value = !1;
58153
58156
  return;
@@ -58155,8 +58158,8 @@ const Gk = /* @__PURE__ */ K({
58155
58158
  const U = ue <= e.threshold, P = ue + B >= G - e.threshold;
58156
58159
  k.value = !U, T.value = !P;
58157
58160
  }
58158
- const V = dC(M, 10);
58159
- as(C, "scroll", V), fC(C, V), as(window, "resize", V);
58161
+ const z = dC(M, 10);
58162
+ as(C, "scroll", z), fC(C, z), as(window, "resize", z);
58160
58163
  const N = Pt("isMobile", !1), L = `dropdown-trigger-${zr(10)}`, { isOpen: W } = em({
58161
58164
  scrollEl: "tool-bar-image-scroll",
58162
58165
  ignoreSelector: `[data-radix-popper-content-wrapper], .${L}`
@@ -58164,10 +58167,10 @@ const Gk = /* @__PURE__ */ K({
58164
58167
  () => N ? {
58165
58168
  modal: !1,
58166
58169
  open: W.value,
58167
- "onUpdate:open": (ne) => W.value = ne
58170
+ "onUpdate:open": (te) => W.value = te
58168
58171
  } : {}
58169
58172
  );
58170
- return (ne, ue) => {
58173
+ return (te, ue) => {
58171
58174
  const G = ft, B = ri, F = wl, U = md, P = la, ee = Ou, oe = j0, me = W0, Se = wa, Be = ya;
58172
58175
  return A(), ie("div", {
58173
58176
  id: "tool-bar-image",
@@ -58202,13 +58205,13 @@ const Gk = /* @__PURE__ */ K({
58202
58205
  tooltip: g(n)("editor.image.menu.moveUp"),
58203
58206
  icon: "MoveUp",
58204
58207
  action: S,
58205
- disabled: !ne.editor.isEditable
58208
+ disabled: !te.editor.isEditable
58206
58209
  }, null, 8, ["tooltip", "disabled"]),
58207
58210
  R(G, {
58208
58211
  tooltip: g(n)("editor.image.menu.moveDown"),
58209
58212
  icon: "MoveDown",
58210
58213
  action: E,
58211
- disabled: !ne.editor.isEditable
58214
+ disabled: !te.editor.isEditable
58212
58215
  }, null, 8, ["tooltip", "disabled"]),
58213
58216
  R(B, {
58214
58217
  orientation: "vertical",
@@ -58311,8 +58314,8 @@ const Gk = /* @__PURE__ */ K({
58311
58314
  tooltip: g(n)(`editor.textalign.${pe}.tooltip`),
58312
58315
  icon: l[pe],
58313
58316
  action: () => b(pe),
58314
- disabled: !ne.editor.can().setTextAlign(pe),
58315
- "is-active": () => ne.editor.isActive({ textAlign: pe }) || !1
58317
+ disabled: !te.editor.can().setTextAlign(pe),
58318
+ "is-active": () => te.editor.isActive({ textAlign: pe }) || !1
58316
58319
  }, null, 8, ["tooltip", "icon", "action", "disabled", "is-active"])), 64)),
58317
58320
  R(B, {
58318
58321
  orientation: "vertical",
@@ -58322,7 +58325,7 @@ const Gk = /* @__PURE__ */ K({
58322
58325
  tooltip: g(n)("editor.remove"),
58323
58326
  icon: "Trash2",
58324
58327
  action: x,
58325
- disabled: !ne.editor.isEditable
58328
+ disabled: !te.editor.isEditable
58326
58329
  }, null, 8, ["tooltip", "disabled"])
58327
58330
  ], 512)
58328
58331
  ])
@@ -58409,13 +58412,13 @@ const Gk = /* @__PURE__ */ K({
58409
58412
  "splitter-dblclick"
58410
58413
  ],
58411
58414
  setup(t, { emit: e }) {
58412
- const n = e, o = t, r = Qh(), i = z([]), s = J(() => i.value.reduce((re, de) => (re[~~de.id] = de) && re, {})), a = J(() => i.value.length), l = z(null), u = z(!1), d = z({
58415
+ const n = e, o = t, r = Qh(), i = V([]), s = J(() => i.value.reduce((re, de) => (re[~~de.id] = de) && re, {})), a = J(() => i.value.length), l = V(null), u = V(!1), d = V({
58413
58416
  mouseDown: !1,
58414
58417
  dragging: !1,
58415
58418
  activeSplitter: null,
58416
58419
  cursorOffset: 0
58417
58420
  // Cursor offset within the splitter.
58418
- }), f = z({
58421
+ }), f = V({
58419
58422
  // Used to detect double click on touch devices.
58420
58423
  splitter: null,
58421
58424
  timeoutId: null
@@ -58480,12 +58483,12 @@ const Gk = /* @__PURE__ */ K({
58480
58483
  return;
58481
58484
  }
58482
58485
  if (o.pushOtherPanes) {
58483
- const Q = V(fe, He);
58486
+ const Q = z(fe, He);
58484
58487
  if (!Q) return;
58485
58488
  ({ sums: fe, panesToResize: Ve } = Q), it = i.value[Ve[0]] || null, ut = i.value[Ve[1]] || null;
58486
58489
  }
58487
58490
  it !== null && (it.size = Math.min(Math.max(He - fe.prevPanesSize - fe.prevReachedMinPanes, it.min), it.max)), ut !== null && (ut.size = Math.min(Math.max(100 - He - fe.nextPanesSize - fe.nextReachedMinPanes, ut.min), ut.max));
58488
- }, V = (re, de) => {
58491
+ }, z = (re, de) => {
58489
58492
  const fe = d.value.activeSplitter, ge = [fe, fe + 1];
58490
58493
  return de < re.prevPanesSize + i.value[ge[0]].min && (ge[0] = W(fe).index, re.prevReachedMinPanes = 0, ge[0] < fe && i.value.forEach((xe, He) => {
58491
58494
  He > ge[0] && He <= fe && (xe.size = xe.min, re.prevReachedMinPanes += xe.min);
@@ -58496,7 +58499,7 @@ const Gk = /* @__PURE__ */ K({
58496
58499
  }), re.nextPanesSize = L(ge[1] - 1), ge[1] === void 0) ? (re.nextReachedMinPanes = 0, i.value.forEach((xe, He) => {
58497
58500
  He < a.value - 1 && He >= fe + 1 && (xe.size = xe.min, re.nextReachedMinPanes += xe.min);
58498
58501
  }), i.value[ge[0]].size = 100 - re.prevPanesSize - L(ge[0] - 1), null) : { sums: re, panesToResize: ge };
58499
- }, N = (re) => i.value.reduce((de, fe, ge) => de + (ge < re ? fe.size : 0), 0), L = (re) => i.value.reduce((de, fe, ge) => de + (ge > re + 1 ? fe.size : 0), 0), W = (re) => [...i.value].reverse().find((de) => de.index < re && de.size > de.min) || {}, j = (re) => i.value.find((de) => de.index > re + 1 && de.size > de.min) || {}, ne = () => {
58502
+ }, N = (re) => i.value.reduce((de, fe, ge) => de + (ge < re ? fe.size : 0), 0), L = (re) => i.value.reduce((de, fe, ge) => de + (ge > re + 1 ? fe.size : 0), 0), W = (re) => [...i.value].reverse().find((de) => de.index < re && de.size > de.min) || {}, j = (re) => i.value.find((de) => de.index > re + 1 && de.size > de.min) || {}, te = () => {
58500
58503
  var re;
58501
58504
  const de = Array.from(((re = l.value) == null ? void 0 : re.children) || []);
58502
58505
  for (const fe of de) {
@@ -58590,7 +58593,7 @@ const Gk = /* @__PURE__ */ K({
58590
58593
  });
58591
58594
  };
58592
58595
  De(() => o.firstSplitter, () => B()), ct(() => {
58593
- ne(), B(), ee(), pe("ready"), u.value = !0;
58596
+ te(), B(), ee(), pe("ready"), u.value = !0;
58594
58597
  }), Gn(() => u.value = !1);
58595
58598
  const ke = () => {
58596
58599
  var re;
@@ -58611,7 +58614,7 @@ const Gk = /* @__PURE__ */ K({
58611
58614
  },
58612
58615
  setup(t) {
58613
58616
  var e;
58614
- const n = t, o = Pt("requestUpdate"), r = Pt("onPaneAdd"), i = Pt("horizontal"), s = Pt("onPaneRemove"), a = Pt("onPaneClick"), l = (e = tr()) == null ? void 0 : e.uid, u = Pt("indexedPanes"), d = J(() => u.value[l]), f = z(null), h = J(() => {
58617
+ const n = t, o = Pt("requestUpdate"), r = Pt("onPaneAdd"), i = Pt("horizontal"), s = Pt("onPaneRemove"), a = Pt("onPaneClick"), l = (e = tr()) == null ? void 0 : e.uid, u = Pt("indexedPanes"), d = J(() => u.value[l]), f = V(null), h = J(() => {
58615
58618
  const y = isNaN(n.size) || n.size === void 0 ? 0 : parseFloat(n.size);
58616
58619
  return Math.max(Math.min(y, b.value), m.value);
58617
58620
  }), m = J(() => {
@@ -58672,8 +58675,8 @@ const Gk = /* @__PURE__ */ K({
58672
58675
  setup(t) {
58673
58676
  const e = t, n = J(() => {
58674
58677
  var M;
58675
- const T = ((M = e.extensions) == null ? void 0 : M.filter((V) => V.name !== "spellchecker")) || [];
58676
- return T.some((V) => V.name === "image") || T.push(Bd.configure()), T;
58678
+ const T = ((M = e.extensions) == null ? void 0 : M.filter((z) => z.name !== "spellchecker")) || [];
58679
+ return T.some((z) => z.name === "image") || T.push(Bd.configure()), T;
58677
58680
  }), o = J(() => Ga(e.comment)), r = J(() => Ga(e.commentCuesheet)), i = J(() => Ga(e.content));
58678
58681
  function s(T) {
58679
58682
  return b2(T).replace(/<script\b[\s\S]*?<\/script\s*>/gi, "");
@@ -58684,7 +58687,7 @@ const Gk = /* @__PURE__ */ K({
58684
58687
  () => r.value ? s(e.commentCuesheet) : ""
58685
58688
  ), u = J(
58686
58689
  () => i.value ? s(e.content) : ""
58687
- ), d = z(), f = z(), h = z();
58690
+ ), d = V(), f = V(), h = V();
58688
58691
  Gn(() => {
58689
58692
  d.value && d.value.destroy(), f.value && f.value.destroy(), h.value && h.value.destroy();
58690
58693
  });
@@ -58701,8 +58704,8 @@ const Gk = /* @__PURE__ */ K({
58701
58704
  o.value || (d.value = m(qn(e.comment, !0, e.mode))), r.value || (f.value = m(qn(e.commentCuesheet, !0, e.mode))), i.value || (h.value = m(qn(e.content, !0, e.mode)));
58702
58705
  function b(T, M) {
58703
58706
  if (!T) return;
58704
- const V = qn(M, !0, e.mode);
58705
- Kt.isEqual(T.getHTML(), V) || T.commands.setContent(V, !1, {
58707
+ const z = qn(M, !0, e.mode);
58708
+ Kt.isEqual(T.getHTML(), z) || T.commands.setContent(z, !1, {
58706
58709
  preserveWhitespace: "full"
58707
58710
  });
58708
58711
  }
@@ -58726,10 +58729,10 @@ const Gk = /* @__PURE__ */ K({
58726
58729
  () => e.mode === qe.STRAIGHT || e.mode === qe.PLAIN_TEXT || !E.value
58727
58730
  );
58728
58731
  return (T, M) => {
58729
- const V = Td;
58732
+ const z = Td;
58730
58733
  return A(), H(g(wm), {
58731
58734
  horizontal: "",
58732
- class: $e(g(Fe)("flex-1 text-sm"))
58735
+ class: $e(g(Fe)("flex-1 text-sm", T.contentTextStyle))
58733
58736
  }, {
58734
58737
  default: O(() => [
58735
58738
  g(k) ? (A(), H(g(ki), {
@@ -58738,15 +58741,14 @@ const Gk = /* @__PURE__ */ K({
58738
58741
  g(Fe)(
58739
58742
  "!overflow-y-auto border border-ed-gray rounded-md",
58740
58743
  !T.isEditorViewSplitContent && "border-none",
58741
- !g(x) && "scrollbar-thumb-transparent",
58742
- T.contentTextStyle
58744
+ !g(x) && "scrollbar-thumb-transparent"
58743
58745
  )
58744
58746
  ),
58745
58747
  onScroll: g(S)
58746
58748
  }, {
58747
58749
  default: O(() => [
58748
58750
  q("div", bde, [
58749
- T.fieldNameContent ? (A(), H(V, {
58751
+ T.fieldNameContent ? (A(), H(z, {
58750
58752
  key: 0,
58751
58753
  "field-name": T.fieldNameContent,
58752
58754
  class: "leading-7 font-medium text-blue-500"
@@ -58779,7 +58781,7 @@ const Gk = /* @__PURE__ */ K({
58779
58781
  class: $e(g(Fe)("divide-y divide-ed-gray divide-dashed"))
58780
58782
  }, [
58781
58783
  g(C) ? (A(), ie("div", yde, [
58782
- T.fieldNameComment ? (A(), H(V, {
58784
+ T.fieldNameComment ? (A(), H(z, {
58783
58785
  key: 0,
58784
58786
  "field-name": T.fieldNameComment,
58785
58787
  class: "leading-7 font-medium text-blue-500"
@@ -58794,7 +58796,7 @@ const Gk = /* @__PURE__ */ K({
58794
58796
  }, null, 8, ["editor"]))
58795
58797
  ])) : we("", !0),
58796
58798
  T.mode === g(qe).REPORT ? (A(), ie("div", xde, [
58797
- T.fieldNameCommentCuesheet ? (A(), H(V, {
58799
+ T.fieldNameCommentCuesheet ? (A(), H(z, {
58798
58800
  key: 0,
58799
58801
  "field-name": T.fieldNameCommentCuesheet,
58800
58802
  class: "leading-7 font-medium text-blue-500"
@@ -58809,7 +58811,7 @@ const Gk = /* @__PURE__ */ K({
58809
58811
  }, null, 8, ["editor"]))
58810
58812
  ])) : we("", !0),
58811
58813
  T.isEditorViewSplitContent ? we("", !0) : (A(), ie("div", Sde, [
58812
- T.fieldNameContent ? (A(), H(V, {
58814
+ T.fieldNameContent ? (A(), H(z, {
58813
58815
  key: 0,
58814
58816
  "field-name": T.fieldNameContent,
58815
58817
  class: "leading-7 font-medium text-blue-500"
@@ -58830,17 +58832,13 @@ const Gk = /* @__PURE__ */ K({
58830
58832
  T.isEditorViewSplitContent ? (A(), H(g(ki), {
58831
58833
  key: 1,
58832
58834
  class: $e(
58833
- g(Fe)(
58834
- "!overflow-y-auto border border-ed-gray rounded-md",
58835
- !g(x) && "scrollbar-thumb-transparent",
58836
- T.contentTextStyle
58837
- )
58835
+ g(Fe)("!overflow-y-auto border border-ed-gray rounded-md", !g(x) && "scrollbar-thumb-transparent")
58838
58836
  ),
58839
58837
  onScroll: g(S)
58840
58838
  }, {
58841
58839
  default: O(() => [
58842
58840
  q("div", _de, [
58843
- T.fieldNameContent ? (A(), H(V, {
58841
+ T.fieldNameContent ? (A(), H(z, {
58844
58842
  key: 0,
58845
58843
  "field-name": T.fieldNameContent,
58846
58844
  class: "leading-7 font-medium text-blue-500"
@@ -58873,7 +58871,7 @@ const Gk = /* @__PURE__ */ K({
58873
58871
  customClassToolbar: {}
58874
58872
  },
58875
58873
  setup(t) {
58876
- const { t: e } = Jt(), n = t, o = Pt("isEditable", z(!0)), r = J(() => {
58874
+ const { t: e } = Jt(), n = t, o = Pt("isEditable", V(!0)), r = J(() => {
58877
58875
  const l = [...n.editor.extensionManager.extensions], u = l.find((h) => h.name === Qb);
58878
58876
  let d = l.sort((h, m) => h.name === "spellchecker" ? -1 : m.name === "spellchecker" || h.name === "superText" ? 1 : m.name === "superText" ? -1 : 0);
58879
58877
  u && (d = l.sort((h, m) => h.name === "configPlan" ? 1 : m.name === "configPlan" ? -1 : 0));
@@ -58904,7 +58902,7 @@ const Gk = /* @__PURE__ */ K({
58904
58902
  h && (h.button.componentProps.disabled = !0);
58905
58903
  }
58906
58904
  return n.activeExtensions.length ? f.filter((h) => h.id && n.activeExtensions.includes(h.id)) : f;
58907
- }), i = (l) => l.id === "spellchecker" ? "!text-ed-blue data-[state=off]:bg-white dark:data-[state=off]:bg-ed-accent/40 !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap" : l.button.componentProps.customClass, s = (l) => l.id === "spellchecker" ? "Spellchecker" : l.button.componentProps.icon, a = z(!1);
58905
+ }), i = (l) => l.id === "spellchecker" ? "!text-ed-blue data-[state=off]:bg-white dark:data-[state=off]:bg-ed-accent/40 !font-normal rounded [&>div>svg]:w-[19px] [&>div>svg]:h-[19px] h-[26px] gap-x-1 whitespace-nowrap" : l.button.componentProps.customClass, s = (l) => l.id === "spellchecker" ? "Spellchecker" : l.button.componentProps.icon, a = V(!1);
58908
58906
  return (l, u) => {
58909
58907
  const d = Gk;
58910
58908
  return A(), ie("div", {
@@ -58974,7 +58972,7 @@ const Gk = /* @__PURE__ */ K({
58974
58972
  },
58975
58973
  emits: ["close-long-press-menu"],
58976
58974
  setup(t, { emit: e }) {
58977
- const n = t, o = e, { t: r } = Jt(), i = J(() => [...n.editor.extensionManager.extensions].find((f) => f.name === "superText")), s = z(!1), a = J(() => n.editor.storage.deviceEnv.specialCharModal), l = (d) => {
58975
+ const n = t, o = e, { t: r } = Jt(), i = J(() => [...n.editor.extensionManager.extensions].find((f) => f.name === "superText")), s = V(!1), a = J(() => n.editor.storage.deviceEnv.specialCharModal), l = (d) => {
58978
58976
  const { state: f } = n.editor, { from: h } = f.selection;
58979
58977
  n.editor.commands.insertContentAt(h, d);
58980
58978
  }, u = () => {
@@ -59035,7 +59033,7 @@ const Gk = /* @__PURE__ */ K({
59035
59033
  disableSuperInput: { type: Boolean }
59036
59034
  },
59037
59035
  setup(t) {
59038
- const e = t, n = new v2(), o = z(!1), r = async () => {
59036
+ const e = t, n = new v2(), o = V(!1), r = async () => {
59039
59037
  var m, b;
59040
59038
  const h = await ((b = (m = e.editor).hasClipboard) == null ? void 0 : b.call(m));
59041
59039
  o.value = !!h;
@@ -59054,7 +59052,7 @@ const Gk = /* @__PURE__ */ K({
59054
59052
  }
59055
59053
  return null;
59056
59054
  }
59057
- }, s = z(null), a = z(!1), l = ({ editor: h, state: m }) => {
59055
+ }, s = V(null), a = V(!1), l = ({ editor: h, state: m }) => {
59058
59056
  if (e.editor.storage.deviceEnv.isForceCloseBubble || e.editor.isActive("link")) return !1;
59059
59057
  const { selection: b } = m, v = !b.empty && p0(b) || a.value;
59060
59058
  return v && h.extensionStorage.spellchecker.spellchecker.hideSuggestionBox(), v;
@@ -59096,7 +59094,7 @@ const Gk = /* @__PURE__ */ K({
59096
59094
  return ct(() => {
59097
59095
  const h = e.editor.view.dom;
59098
59096
  qR(
59099
- z(h),
59097
+ V(h),
59100
59098
  (v) => {
59101
59099
  a.value = !0, f(v);
59102
59100
  },
@@ -59156,7 +59154,7 @@ const Gk = /* @__PURE__ */ K({
59156
59154
  },
59157
59155
  emits: ["save", "close"],
59158
59156
  setup(t, { emit: e }) {
59159
- const n = t, o = e, r = z(""), i = z(""), s = J(() => hm(r.value)), a = () => {
59157
+ const n = t, o = e, r = V(""), i = V(""), s = J(() => hm(r.value)), a = () => {
59160
59158
  r.value = "", i.value = "", n.editor.commands.setSuperTextContent(r.value, i.value);
59161
59159
  }, l = () => {
59162
59160
  a(), o("close");
@@ -59384,7 +59382,7 @@ const Pde = /* @__PURE__ */ K({
59384
59382
  },
59385
59383
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected", "onBlurEditor", "lineFocus", "onFocus", "onBlur"],
59386
59384
  setup(t, { expose: e, emit: n }) {
59387
- const o = t, r = n, i = Md(), s = io(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, { onTypingScrollCaretNearBottom: f } = Zk(o.bottomOffset), h = Pt("isEditable", z(!0)), m = new Li({
59385
+ const o = t, r = n, i = Md(), s = io(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, { onTypingScrollCaretNearBottom: f } = Zk(o.bottomOffset), h = Pt("isEditable", V(!0)), m = new Li({
59388
59386
  enablePasteRules: !1,
59389
59387
  // disable Markdown when pasting
59390
59388
  enableInputRules: !1,
@@ -59544,7 +59542,7 @@ const Pde = /* @__PURE__ */ K({
59544
59542
  }
59545
59543
  });
59546
59544
  function Qk(t = !1, e = 10) {
59547
- const n = e, o = 90, r = 50, i = n + 1, s = z(!0), a = z(!0), l = z(r), u = z(r);
59545
+ const n = e, o = 90, r = 50, i = n + 1, s = V(!0), a = V(!0), l = V(r), u = V(r);
59548
59546
  return {
59549
59547
  HEADER_ONLY_SIZE: n,
59550
59548
  FULL_SIZE: o,
@@ -59650,10 +59648,10 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
59650
59648
  setImageAttachment: b,
59651
59649
  setEditorContentMobile: v,
59652
59650
  footerTargetRef: y
59653
- } = a, { markAsFocused: x, insertHtml: S } = uce(), E = J(() => o.isShowFormatControlBar && o.mode === qe.EDITOR && L && !o.isEditorView), C = J(() => E.value ? 100 : 40), k = z(!1), { onTypingScrollCaretNearBottom: T, onKeyboardShowScrollNearBottom: M, setKeyboardHeight: V } = Zk(C);
59651
+ } = a, { markAsFocused: x, insertHtml: S } = uce(), E = J(() => o.isShowFormatControlBar && o.mode === qe.EDITOR && L && !o.isEditorView), C = J(() => E.value ? 100 : 40), k = V(!1), { onTypingScrollCaretNearBottom: T, onKeyboardShowScrollNearBottom: M, setKeyboardHeight: z } = Zk(C);
59654
59652
  function N() {
59655
59653
  i.isNativeWebViewAvailable() && (i.receiveDataFromNative(Tb.KEYBOARD_DID_SHOW, (Z) => {
59656
- k.value = !0, V(Z.height), setTimeout(() => {
59654
+ k.value = !0, z(Z.height), setTimeout(() => {
59657
59655
  var ae;
59658
59656
  (ae = U.value) != null && ae.isFocused && M(U.value);
59659
59657
  }, 50);
@@ -59661,10 +59659,10 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
59661
59659
  k.value = !1;
59662
59660
  }));
59663
59661
  }
59664
- const L = z(!o.disabled && !o.readonly);
59662
+ const L = V(!o.disabled && !o.readonly);
59665
59663
  en("isEditable", L);
59666
- const W = z(o.fontSizeDefault), j = z(o.fontFamilyDefault), ne = z(o.fontWeightDefault), ue = z(o.letterSpacingDefault);
59667
- en("fontSize", W), en("fontFamily", j), en("fontWeight", ne), en("letterSpacing", ue);
59664
+ const W = V(o.fontSizeDefault), j = V(o.fontFamilyDefault), te = V(o.fontWeightDefault), ue = V(o.letterSpacingDefault);
59665
+ en("fontSize", W), en("fontFamily", j), en("fontWeight", te), en("letterSpacing", ue);
59668
59666
  const G = J(() => ({
59669
59667
  ...g(u) ? { height: "100%" } : {
59670
59668
  minHeight: o.minHeight ? Rn(o.minHeight) : void 0,
@@ -59728,7 +59726,7 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
59728
59726
  });
59729
59727
  }), b(ae);
59730
59728
  }
59731
- const U = z(), { isShowToolBarBaseOnEditor: P } = cce();
59729
+ const U = V(), { isShowToolBarBaseOnEditor: P } = cce();
59732
59730
  ct(() => {
59733
59731
  ee(B), v(B), N();
59734
59732
  });
@@ -59866,7 +59864,7 @@ const Bde = { class: "flex justify-between items-center relative gap-x-3" }, Fde
59866
59864
  const Z = ED(o.contentAutoCopied, ".super-text");
59867
59865
  S(B, Z);
59868
59866
  }
59869
- const { isScrolling: X, handleScroll: Te } = Ru(), Re = z(null);
59867
+ const { isScrolling: X, handleScroll: Te } = Ru(), Re = V(null);
59870
59868
  e({ editor: B });
59871
59869
  const et = J(() => {
59872
59870
  var Z;
@@ -60540,7 +60538,7 @@ var eT = { exports: {} };
60540
60538
  afterIndex: U
60541
60539
  };
60542
60540
  }
60543
- function V(G) {
60541
+ function z(G) {
60544
60542
  for (var B = new C(), F, U = [G]; U.length; )
60545
60543
  if (G = U.pop(), F = k(G), F && F.length) {
60546
60544
  if (F.segmentStartInBefore > 0 && F.segmentStartInAfter > 0) {
@@ -60568,7 +60566,7 @@ var eT = { exports: {} };
60568
60566
  function N(G, B) {
60569
60567
  if (!G) throw new Error("Missing beforeTokens");
60570
60568
  if (!B) throw new Error("Missing afterTokens");
60571
- var F = 0, U = 0, P = [], ee = M(G, B, 0, 0), oe = V(ee);
60569
+ var F = 0, U = 0, P = [], ee = M(G, B, 0, 0), oe = z(ee);
60572
60570
  oe.push(new v(G.length, B.length, 0, ee));
60573
60571
  for (var me = 0; me < oe.length; me++) {
60574
60572
  var Se = oe[me], Be = "none";
@@ -60663,7 +60661,7 @@ var eT = { exports: {} };
60663
60661
  return j.delete.apply(null, arguments) + j.insert.apply(null, arguments);
60664
60662
  }
60665
60663
  };
60666
- function ne(G, B, F, U, P) {
60664
+ function te(G, B, F, U, P) {
60667
60665
  return F.reduce(function(ee, oe, me) {
60668
60666
  return ee + j[oe.action](
60669
60667
  oe,
@@ -60679,9 +60677,9 @@ var eT = { exports: {} };
60679
60677
  if (G === B) return G;
60680
60678
  P ? l = new RegExp("^<(" + P.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, G = y(G), B = y(B);
60681
60679
  var ee = N(G, B);
60682
- return ne(G, B, ee, U, F);
60680
+ return te(G, B, ee, U, F);
60683
60681
  }
60684
- ue.htmlToTokens = y, ue.findMatchingBlocks = V, V.findBestMatch = k, V.createMap = S, V.createToken = b, V.createSegment = M, V.getKeyForToken = x, ue.calculateOperations = N, ue.renderOperations = ne, t !== null ? t.exports = ue : this.htmldiff = ue;
60682
+ ue.htmlToTokens = y, ue.findMatchingBlocks = z, z.findBestMatch = k, z.createMap = S, z.createToken = b, z.createSegment = M, z.getKeyForToken = x, ue.calculateOperations = N, ue.renderOperations = te, t !== null ? t.exports = ue : this.htmldiff = ue;
60685
60683
  }).call(tu);
60686
60684
  })(eT);
60687
60685
  var $de = eT.exports;
@@ -60709,7 +60707,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60709
60707
  contentTextStyle: {}
60710
60708
  },
60711
60709
  setup(t) {
60712
- const e = t, n = J(() => [...e.extensions, Jk]), o = z(!1), r = J(() => !e.originalData || !e.changedData ? {
60710
+ const e = t, n = J(() => [...e.extensions, Jk]), o = V(!1), r = J(() => !e.originalData || !e.changedData ? {
60713
60711
  comment: "",
60714
60712
  content: ""
60715
60713
  } : {
@@ -60732,7 +60730,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60732
60730
  class: "flex flex-col"
60733
60731
  }, {
60734
60732
  default: O(() => {
60735
- var S, E, C, k, T, M, V, N, L, W, j;
60733
+ var S, E, C, k, T, M, z, N, L, W, j;
60736
60734
  return [
60737
60735
  (E = (S = v.originalData) == null ? void 0 : S.titleBar) != null && E.title ? (A(), ie("div", zde, [
60738
60736
  q("div", Vde, [
@@ -60757,7 +60755,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60757
60755
  )
60758
60756
  ),
60759
60757
  onScroll: y[0] || (y[0] = //@ts-ignore
60760
- (...ne) => g(h) && g(h)(...ne))
60758
+ (...te) => g(h) && g(h)(...te))
60761
60759
  }, [
60762
60760
  R(qc, {
60763
60761
  "editor-class": "h-full",
@@ -60765,7 +60763,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60765
60763
  disabled: "",
60766
60764
  "hide-toolbar": "",
60767
60765
  extensions: g(n),
60768
- "field-name-comment": (V = v.originalData) == null ? void 0 : V.fieldNameComment,
60766
+ "field-name-comment": (z = v.originalData) == null ? void 0 : z.fieldNameComment,
60769
60767
  "field-name-content": (N = v.originalData) == null ? void 0 : N.fieldNameContent,
60770
60768
  comment: (L = v.originalData) == null ? void 0 : L.comment,
60771
60769
  "model-value": (W = v.originalData) == null ? void 0 : W.content,
@@ -60810,7 +60808,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60810
60808
  class: "flex flex-col"
60811
60809
  }, {
60812
60810
  default: O(() => {
60813
- var S, E, C, k, T, M, V, N, L;
60811
+ var S, E, C, k, T, M, z, N, L;
60814
60812
  return [
60815
60813
  (E = (S = v.changedData) == null ? void 0 : S.titleBar) != null && E.title ? (A(), ie("div", Xde, [
60816
60814
  q("div", Yde, [
@@ -60843,7 +60841,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60843
60841
  disabled: "",
60844
60842
  "hide-toolbar": "",
60845
60843
  extensions: g(n),
60846
- "field-name-comment": (V = v.changedData) == null ? void 0 : V.fieldNameComment,
60844
+ "field-name-comment": (z = v.changedData) == null ? void 0 : z.fieldNameComment,
60847
60845
  "field-name-content": (N = v.changedData) == null ? void 0 : N.fieldNameContent,
60848
60846
  comment: g(r).comment,
60849
60847
  "model-value": g(r).content,
@@ -60930,9 +60928,9 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60930
60928
  setup(t, { expose: e, emit: n }) {
60931
60929
  const o = t, r = n;
60932
60930
  J(() => o.mode === qe.EDITOR);
60933
- const i = Bo(nr.RENDER_SUPER_TEXT), s = io(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, f = z(!1);
60931
+ const i = Bo(nr.RENDER_SUPER_TEXT), s = io(), { isReady: a, editor: l, updateEditorState: u, checkSpellStore: d } = s, f = V(!1);
60934
60932
  en("isEditable", f);
60935
- const h = z(d8(o.modelValue));
60933
+ const h = V(d8(o.modelValue));
60936
60934
  function m(C) {
60937
60935
  if (o.disabled || o.readonly) return;
60938
60936
  const k = g9(C);
@@ -60966,7 +60964,7 @@ const Hde = /* @__PURE__ */ cV($de), eC = (t, e, n) => {
60966
60964
  onSelectionUpdate: () => {
60967
60965
  m(v);
60968
60966
  }
60969
- }), y = z(!1);
60967
+ }), y = V(!1);
60970
60968
  function x() {
60971
60969
  r("setEditorSelected", v);
60972
60970
  }
@@ -61135,15 +61133,15 @@ const Wfe = /* @__PURE__ */ K({
61135
61133
  en("isMobile", !0), J(() => o.mode === qe.EDITOR);
61136
61134
  const i = Bo(nr.INCREASE_DECREASE_FONTSIZE);
61137
61135
  Md();
61138
- const s = io(), { state: a, isFullscreen: l, isReady: u, editor: d, updateEditorState: f, checkSpellStore: h } = s, m = z(!1);
61136
+ const s = io(), { state: a, isFullscreen: l, isReady: u, editor: d, updateEditorState: f, checkSpellStore: h } = s, m = V(!1);
61139
61137
  en("isEditable", m);
61140
- const b = z(void 0), v = z(), y = z(o.fontSizeDefault), x = z(o.fontFamilyDefault), S = z(o.fontWeightDefault);
61138
+ const b = V(void 0), v = V(), y = V(o.fontSizeDefault), x = V(o.fontFamilyDefault), S = V(o.fontWeightDefault);
61141
61139
  en("fontSize", y), en("fontFamily", x), en("fontWeight", S);
61142
61140
  const E = J(() => ({
61143
61141
  fontFamily: x.value,
61144
61142
  fontSize: y.value,
61145
61143
  ...S.value ? { fontWeight: S.value } : {}
61146
- })), C = z(), k = (B) => {
61144
+ })), C = V(), k = (B) => {
61147
61145
  const F = parseInt(y.value || "12px"), U = B ? F + 2 : F - 2;
61148
61146
  y.value = U + "px";
61149
61147
  };
@@ -61167,7 +61165,7 @@ const Wfe = /* @__PURE__ */ K({
61167
61165
  const F = g9(B);
61168
61166
  b.value = F;
61169
61167
  }
61170
- function V() {
61168
+ function z() {
61171
61169
  b.value = void 0;
61172
61170
  }
61173
61171
  const N = new Li({
@@ -61187,15 +61185,15 @@ const Wfe = /* @__PURE__ */ K({
61187
61185
  extensions: Kt.uniqBy(o.extensions, "name"),
61188
61186
  editable: m.value,
61189
61187
  onFocus: () => {
61190
- ne(), L.value = !0, M(N);
61188
+ te(), L.value = !0, M(N);
61191
61189
  },
61192
61190
  onBlur: () => {
61193
- L.value = !1, V();
61191
+ L.value = !1, z();
61194
61192
  },
61195
61193
  onSelectionUpdate: () => {
61196
61194
  M(N);
61197
61195
  }
61198
- }), L = z(!1), W = z();
61196
+ }), L = V(!1), W = V();
61199
61197
  ct(() => {
61200
61198
  W.value = N;
61201
61199
  });
@@ -61212,7 +61210,7 @@ const Wfe = /* @__PURE__ */ K({
61212
61210
  },
61213
61211
  { immediate: !0 }
61214
61212
  );
61215
- function ne(B) {
61213
+ function te(B) {
61216
61214
  W.value = N;
61217
61215
  }
61218
61216
  function ue(B, F) {
@@ -61817,4 +61815,4 @@ export {
61817
61815
  vfe as n,
61818
61816
  qfe as u
61819
61817
  };
61820
- //# sourceMappingURL=index-zUBhFmHH.mjs.map
61818
+ //# sourceMappingURL=index-BOWfT2S-.mjs.map