vdc-editor 0.1.227 → 0.1.229

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 oR = Object.defineProperty;
2
2
  var rR = (t, e, n) => e in t ? oR(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var hn = (t, e, n) => rR(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as T4 from "vue";
5
- import { defineComponent as j, createElementBlock as ue, openBlock as O, normalizeClass as He, unref as g, toDisplayString as Le, markRaw as Tb, ref as V, onMounted as mt, onBeforeUnmount as so, h as Dn, getCurrentInstance as jo, watchEffect as Tn, nextTick as Rt, customRef as Kx, shallowRef as mh, provide as yn, reactive as lr, render as k4, watch as De, computed as X, normalizeStyle as Ht, createCommentVNode as ve, createBlock as $, createVNode as L, getCurrentScope as Gx, onScopeDispose as Xx, shallowReadonly as wl, toRefs as Bn, withCtx as N, renderSlot as ne, onBeforeMount as ed, onUnmounted as zn, normalizeProps as jt, guardReactiveProps as Yt, mergeProps as Me, toHandlers as iR, resolveDynamicComponent as Wn, toRef as sR, camelize as Jx, withKeys as Ul, withModifiers as En, Fragment as et, toHandlerKey as aR, inject as Jt, readonly as Yx, Teleport as td, useSlots as gh, createTextVNode as at, Comment as Zx, cloneVNode as lR, mergeDefaults as Qx, watchPostEffect as uR, effectScope as kb, onBeforeUpdate as cR, onUpdated as dR, isRef as nd, createElementVNode as Q, renderList as Ut, withDirectives as _o, vModelSelect as fR, Text as pR, defineAsyncComponent as hR, createSlots as Ab, vModelText as mR, vShow as rr, useAttrs as od, onActivated as gR } from "vue";
5
+ import { defineComponent as j, createElementBlock as ue, openBlock as O, normalizeClass as He, unref as g, toDisplayString as Le, markRaw as Tb, ref as V, onMounted as mt, onBeforeUnmount as so, h as Dn, getCurrentInstance as jo, watchEffect as Tn, nextTick as It, customRef as Kx, shallowRef as mh, provide as yn, reactive as lr, render as k4, watch as De, computed as X, normalizeStyle as Ht, createCommentVNode as ve, createBlock as $, createVNode as L, getCurrentScope as Gx, onScopeDispose as Xx, shallowReadonly as wl, toRefs as Bn, withCtx as N, renderSlot as ne, onBeforeMount as ed, onUnmounted as zn, normalizeProps as jt, guardReactiveProps as Yt, mergeProps as Me, toHandlers as iR, resolveDynamicComponent as Wn, toRef as sR, camelize as Jx, withKeys as Ul, withModifiers as En, Fragment as et, toHandlerKey as aR, inject as Jt, readonly as Yx, Teleport as td, useSlots as gh, createTextVNode as at, Comment as Zx, cloneVNode as lR, mergeDefaults as Qx, watchPostEffect as uR, effectScope as kb, onBeforeUpdate as cR, onUpdated as dR, isRef as nd, createElementVNode as Q, renderList as Ut, withDirectives as _o, vModelSelect as fR, Text as pR, defineAsyncComponent as hR, createSlots as Ab, vModelText as mR, vShow as rr, useAttrs as od, onActivated as gR } from "vue";
6
6
  import { useVModel as bR, useLocalStorage as e5, createEventHook as A4, createGlobalState as vR, useFullscreen as yR, useEventBus as To, useFocus as wR, onClickOutside as xR, useFileDialog as CR, useElementSize as ER, onLongPress as SR, useEventListener as O4 } from "@vueuse/core";
7
7
  function t5(t) {
8
8
  var e, n, o = "";
@@ -246,7 +246,7 @@ const mn = (t) => {
246
246
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
247
247
  zR.test(t) && !VR.test(t)
248
248
  ), s5 = () => !1, QR = (t) => UR.test(t), eL = (t) => WR.test(t), tL = () => {
249
- const t = mn("colors"), e = mn("spacing"), n = mn("blur"), o = mn("brightness"), r = mn("borderColor"), i = mn("borderRadius"), s = mn("borderSpacing"), a = mn("borderWidth"), l = mn("contrast"), u = mn("grayscale"), d = mn("hueRotate"), f = mn("invert"), h = mn("gap"), m = mn("gradientColorStops"), b = mn("gradientColorStopPositions"), v = mn("inset"), w = mn("margin"), x = mn("opacity"), S = mn("padding"), E = mn("saturate"), C = mn("scale"), T = mn("sepia"), k = mn("skew"), A = mn("space"), F = mn("translate"), D = () => ["auto", "contain", "none"], P = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", kt, e], Y = () => [kt, e], Ee = () => ["", Pi, vs], me = () => ["auto", Fl, kt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", kt], se = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Fl, kt];
249
+ const t = mn("colors"), e = mn("spacing"), n = mn("blur"), o = mn("brightness"), r = mn("borderColor"), i = mn("borderRadius"), s = mn("borderSpacing"), a = mn("borderWidth"), l = mn("contrast"), u = mn("grayscale"), d = mn("hueRotate"), f = mn("invert"), h = mn("gap"), m = mn("gradientColorStops"), b = mn("gradientColorStopPositions"), v = mn("inset"), w = mn("margin"), x = mn("opacity"), S = mn("padding"), E = mn("saturate"), C = mn("scale"), T = mn("sepia"), k = mn("skew"), A = mn("space"), F = mn("translate"), D = () => ["auto", "contain", "none"], P = () => ["auto", "hidden", "clip", "visible", "scroll"], K = () => ["auto", kt, e], J = () => [kt, e], Ee = () => ["", Pi, vs], me = () => ["auto", Fl, kt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], U = () => ["solid", "dashed", "dotted", "double", "none"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], oe = () => ["", "0", kt], se = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Fl, kt];
250
250
  return {
251
251
  cacheSize: 500,
252
252
  separator: ":",
@@ -257,25 +257,25 @@ const mn = (t) => {
257
257
  brightness: fe(),
258
258
  borderColor: [t],
259
259
  borderRadius: ["none", "", "full", ys, kt],
260
- borderSpacing: Y(),
260
+ borderSpacing: J(),
261
261
  borderWidth: Ee(),
262
262
  contrast: fe(),
263
263
  grayscale: oe(),
264
264
  hueRotate: fe(),
265
265
  invert: oe(),
266
- gap: Y(),
266
+ gap: J(),
267
267
  gradientColorStops: [t],
268
268
  gradientColorStopPositions: [jR, vs],
269
269
  inset: K(),
270
270
  margin: K(),
271
271
  opacity: fe(),
272
- padding: Y(),
272
+ padding: J(),
273
273
  saturate: fe(),
274
274
  scale: fe(),
275
275
  sepia: oe(),
276
276
  skew: fe(),
277
- space: Y(),
278
- translate: Y()
277
+ space: J(),
278
+ translate: J()
279
279
  },
280
280
  classGroups: {
281
281
  // Layout
@@ -650,7 +650,7 @@ const mn = (t) => {
650
650
  * @see https://tailwindcss.com/docs/justify-content
651
651
  */
652
652
  "justify-content": [{
653
- justify: ["normal", ...J()]
653
+ justify: ["normal", ...Y()]
654
654
  }],
655
655
  /**
656
656
  * Justify Items
@@ -671,7 +671,7 @@ const mn = (t) => {
671
671
  * @see https://tailwindcss.com/docs/align-content
672
672
  */
673
673
  "align-content": [{
674
- content: ["normal", ...J(), "baseline"]
674
+ content: ["normal", ...Y(), "baseline"]
675
675
  }],
676
676
  /**
677
677
  * Align Items
@@ -692,7 +692,7 @@ const mn = (t) => {
692
692
  * @see https://tailwindcss.com/docs/place-content
693
693
  */
694
694
  "place-content": [{
695
- "place-content": [...J(), "baseline"]
695
+ "place-content": [...Y(), "baseline"]
696
696
  }],
697
697
  /**
698
698
  * Place Items
@@ -1106,7 +1106,7 @@ const mn = (t) => {
1106
1106
  * @see https://tailwindcss.com/docs/text-indent
1107
1107
  */
1108
1108
  indent: [{
1109
- indent: Y()
1109
+ indent: J()
1110
1110
  }],
1111
1111
  /**
1112
1112
  * Vertical Alignment
@@ -1997,126 +1997,126 @@ const mn = (t) => {
1997
1997
  * @see https://tailwindcss.com/docs/scroll-margin
1998
1998
  */
1999
1999
  "scroll-m": [{
2000
- "scroll-m": Y()
2000
+ "scroll-m": J()
2001
2001
  }],
2002
2002
  /**
2003
2003
  * Scroll Margin X
2004
2004
  * @see https://tailwindcss.com/docs/scroll-margin
2005
2005
  */
2006
2006
  "scroll-mx": [{
2007
- "scroll-mx": Y()
2007
+ "scroll-mx": J()
2008
2008
  }],
2009
2009
  /**
2010
2010
  * Scroll Margin Y
2011
2011
  * @see https://tailwindcss.com/docs/scroll-margin
2012
2012
  */
2013
2013
  "scroll-my": [{
2014
- "scroll-my": Y()
2014
+ "scroll-my": J()
2015
2015
  }],
2016
2016
  /**
2017
2017
  * Scroll Margin Start
2018
2018
  * @see https://tailwindcss.com/docs/scroll-margin
2019
2019
  */
2020
2020
  "scroll-ms": [{
2021
- "scroll-ms": Y()
2021
+ "scroll-ms": J()
2022
2022
  }],
2023
2023
  /**
2024
2024
  * Scroll Margin End
2025
2025
  * @see https://tailwindcss.com/docs/scroll-margin
2026
2026
  */
2027
2027
  "scroll-me": [{
2028
- "scroll-me": Y()
2028
+ "scroll-me": J()
2029
2029
  }],
2030
2030
  /**
2031
2031
  * Scroll Margin Top
2032
2032
  * @see https://tailwindcss.com/docs/scroll-margin
2033
2033
  */
2034
2034
  "scroll-mt": [{
2035
- "scroll-mt": Y()
2035
+ "scroll-mt": J()
2036
2036
  }],
2037
2037
  /**
2038
2038
  * Scroll Margin Right
2039
2039
  * @see https://tailwindcss.com/docs/scroll-margin
2040
2040
  */
2041
2041
  "scroll-mr": [{
2042
- "scroll-mr": Y()
2042
+ "scroll-mr": J()
2043
2043
  }],
2044
2044
  /**
2045
2045
  * Scroll Margin Bottom
2046
2046
  * @see https://tailwindcss.com/docs/scroll-margin
2047
2047
  */
2048
2048
  "scroll-mb": [{
2049
- "scroll-mb": Y()
2049
+ "scroll-mb": J()
2050
2050
  }],
2051
2051
  /**
2052
2052
  * Scroll Margin Left
2053
2053
  * @see https://tailwindcss.com/docs/scroll-margin
2054
2054
  */
2055
2055
  "scroll-ml": [{
2056
- "scroll-ml": Y()
2056
+ "scroll-ml": J()
2057
2057
  }],
2058
2058
  /**
2059
2059
  * Scroll Padding
2060
2060
  * @see https://tailwindcss.com/docs/scroll-padding
2061
2061
  */
2062
2062
  "scroll-p": [{
2063
- "scroll-p": Y()
2063
+ "scroll-p": J()
2064
2064
  }],
2065
2065
  /**
2066
2066
  * Scroll Padding X
2067
2067
  * @see https://tailwindcss.com/docs/scroll-padding
2068
2068
  */
2069
2069
  "scroll-px": [{
2070
- "scroll-px": Y()
2070
+ "scroll-px": J()
2071
2071
  }],
2072
2072
  /**
2073
2073
  * Scroll Padding Y
2074
2074
  * @see https://tailwindcss.com/docs/scroll-padding
2075
2075
  */
2076
2076
  "scroll-py": [{
2077
- "scroll-py": Y()
2077
+ "scroll-py": J()
2078
2078
  }],
2079
2079
  /**
2080
2080
  * Scroll Padding Start
2081
2081
  * @see https://tailwindcss.com/docs/scroll-padding
2082
2082
  */
2083
2083
  "scroll-ps": [{
2084
- "scroll-ps": Y()
2084
+ "scroll-ps": J()
2085
2085
  }],
2086
2086
  /**
2087
2087
  * Scroll Padding End
2088
2088
  * @see https://tailwindcss.com/docs/scroll-padding
2089
2089
  */
2090
2090
  "scroll-pe": [{
2091
- "scroll-pe": Y()
2091
+ "scroll-pe": J()
2092
2092
  }],
2093
2093
  /**
2094
2094
  * Scroll Padding Top
2095
2095
  * @see https://tailwindcss.com/docs/scroll-padding
2096
2096
  */
2097
2097
  "scroll-pt": [{
2098
- "scroll-pt": Y()
2098
+ "scroll-pt": J()
2099
2099
  }],
2100
2100
  /**
2101
2101
  * Scroll Padding Right
2102
2102
  * @see https://tailwindcss.com/docs/scroll-padding
2103
2103
  */
2104
2104
  "scroll-pr": [{
2105
- "scroll-pr": Y()
2105
+ "scroll-pr": J()
2106
2106
  }],
2107
2107
  /**
2108
2108
  * Scroll Padding Bottom
2109
2109
  * @see https://tailwindcss.com/docs/scroll-padding
2110
2110
  */
2111
2111
  "scroll-pb": [{
2112
- "scroll-pb": Y()
2112
+ "scroll-pb": J()
2113
2113
  }],
2114
2114
  /**
2115
2115
  * Scroll Padding Left
2116
2116
  * @see https://tailwindcss.com/docs/scroll-padding
2117
2117
  */
2118
2118
  "scroll-pl": [{
2119
- "scroll-pl": Y()
2119
+ "scroll-pl": J()
2120
2120
  }],
2121
2121
  /**
2122
2122
  * Scroll Snap Align
@@ -10618,7 +10618,7 @@ function _P(t, e, n, o, r) {
10618
10618
  if (t.input.compositionPendingChanges = 0, e < 0) {
10619
10619
  let D = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, P = Bb(t, D);
10620
10620
  if (P && !t.state.selection.eq(P)) {
10621
- if (ho && Xi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (Y) => Y(t, ba(13, "Enter"))))
10621
+ if (ho && Xi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (J) => J(t, ba(13, "Enter"))))
10622
10622
  return;
10623
10623
  let K = t.state.tr.setSelection(P);
10624
10624
  D == "pointer" ? K.setMeta("pointer", !0) : D == "key" && K.scrollIntoView(), i && K.setMeta("composition", i), t.dispatch(K);
@@ -14845,14 +14845,14 @@ function H6(t) {
14845
14845
  }
14846
14846
  var K = Object.assign({
14847
14847
  position: a
14848
- }, u && m$), Y = d === !0 ? g$({
14848
+ }, u && m$), J = d === !0 ? g$({
14849
14849
  x: m,
14850
14850
  y: v
14851
14851
  }, ur(n)) : {
14852
14852
  x: m,
14853
14853
  y: v
14854
14854
  };
14855
- if (m = Y.x, v = Y.y, l) {
14855
+ if (m = J.x, v = J.y, l) {
14856
14856
  var Ee;
14857
14857
  return Object.assign({}, K, (Ee = {}, Ee[C] = S ? "0" : "", Ee[E] = x ? "0" : "", Ee.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", Ee));
14858
14858
  }
@@ -15067,10 +15067,10 @@ function Nc(t, e) {
15067
15067
  right: D.right - T.right + x.right
15068
15068
  }, K = t.modifiersData.offset;
15069
15069
  if (h === Ku && K) {
15070
- var Y = K[r];
15070
+ var J = K[r];
15071
15071
  Object.keys(P).forEach(function(Ee) {
15072
15072
  var me = [Mr, Or].indexOf(Ee) >= 0 ? 1 : -1, q = [Vo, Or].indexOf(Ee) >= 0 ? "y" : "x";
15073
- P[Ee] += Y[q] * me;
15073
+ P[Ee] += J[q] * me;
15074
15074
  });
15075
15075
  }
15076
15076
  return P;
@@ -15114,7 +15114,7 @@ function M$(t) {
15114
15114
  allowedAutoPlacements: v
15115
15115
  }) : Ke);
15116
15116
  }, []), T = e.rects.reference, k = e.rects.popper, A = /* @__PURE__ */ new Map(), F = !0, D = C[0], P = 0; P < C.length; P++) {
15117
- var K = C[P], Y = ui(K), Ee = Ql(K) === Jl, me = [Vo, Or].indexOf(Y) >= 0, q = me ? "width" : "height", U = Nc(e, {
15117
+ var K = C[P], J = ui(K), Ee = Ql(K) === Jl, me = [Vo, Or].indexOf(J) >= 0, q = me ? "width" : "height", U = Nc(e, {
15118
15118
  placement: K,
15119
15119
  boundary: d,
15120
15120
  rootBoundary: f,
@@ -15122,8 +15122,8 @@ function M$(t) {
15122
15122
  padding: u
15123
15123
  }), B = me ? Ee ? Mr : Uo : Ee ? Or : Vo;
15124
15124
  T[q] > k[q] && (B = Kf(B));
15125
- var J = Kf(B), oe = [];
15126
- if (i && oe.push(U[Y] <= 0), a && oe.push(U[B] <= 0, U[J] <= 0), oe.every(function(rt) {
15125
+ var Y = Kf(B), oe = [];
15126
+ if (i && oe.push(U[J] <= 0), a && oe.push(U[B] <= 0, U[Y] <= 0), oe.every(function(rt) {
15127
15127
  return rt;
15128
15128
  })) {
15129
15129
  D = K, F = !1;
@@ -15255,23 +15255,23 @@ function H$(t) {
15255
15255
  } : Object.assign({
15256
15256
  mainAxis: 0,
15257
15257
  altAxis: 0
15258
- }, D), K = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Y = {
15258
+ }, D), K = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, J = {
15259
15259
  x: 0,
15260
15260
  y: 0
15261
15261
  };
15262
15262
  if (k) {
15263
15263
  if (i) {
15264
- var Ee, me = C === "y" ? Vo : Uo, q = C === "y" ? Or : Mr, U = C === "y" ? "height" : "width", B = k[C], J = B + w[me], oe = B - w[q], se = m ? -F[U] / 2 : 0, fe = S === Jl ? A[U] : F[U], Re = S === Jl ? -F[U] : -A[U], ye = e.elements.arrow, rt = m && ye ? i2(ye) : {
15264
+ var Ee, me = C === "y" ? Vo : Uo, q = C === "y" ? Or : Mr, U = C === "y" ? "height" : "width", B = k[C], Y = B + w[me], oe = B - w[q], se = m ? -F[U] / 2 : 0, fe = S === Jl ? A[U] : F[U], Re = S === Jl ? -F[U] : -A[U], ye = e.elements.arrow, rt = m && ye ? i2(ye) : {
15265
15265
  width: 0,
15266
15266
  height: 0
15267
- }, Ke = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eE(), it = Ke[me], te = Ke[q], de = uc(0, A[U], rt[U]), xe = E ? A[U] / 2 - se - de - it - P.mainAxis : fe - de - it - P.mainAxis, be = E ? -A[U] / 2 + se + de + te + P.mainAxis : Re + de + te + P.mainAxis, ke = e.elements.arrow && ud(e.elements.arrow), $e = ke ? C === "y" ? ke.clientTop || 0 : ke.clientLeft || 0 : 0, ce = (Ee = K == null ? void 0 : K[C]) != null ? Ee : 0, Pe = B + xe - ce - $e, nt = B + be - ce, pt = uc(m ? Cp(J, Pe) : J, B, m ? Aa(oe, nt) : oe);
15268
- k[C] = pt, Y[C] = pt - B;
15267
+ }, Ke = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eE(), it = Ke[me], te = Ke[q], de = uc(0, A[U], rt[U]), xe = E ? A[U] / 2 - se - de - it - P.mainAxis : fe - de - it - P.mainAxis, be = E ? -A[U] / 2 + se + de + te + P.mainAxis : Re + de + te + P.mainAxis, ke = e.elements.arrow && ud(e.elements.arrow), $e = ke ? C === "y" ? ke.clientTop || 0 : ke.clientLeft || 0 : 0, ce = (Ee = K == null ? void 0 : K[C]) != null ? Ee : 0, Pe = B + xe - ce - $e, nt = B + be - ce, pt = uc(m ? Cp(Y, Pe) : Y, B, m ? Aa(oe, nt) : oe);
15268
+ k[C] = pt, J[C] = pt - B;
15269
15269
  }
15270
15270
  if (a) {
15271
15271
  var re, H = C === "x" ? Vo : Uo, z = C === "x" ? Or : Mr, ie = k[T], Te = T === "y" ? "height" : "width", Ue = ie + w[H], bt = ie - w[z], st = [Vo, Uo].indexOf(x) !== -1, le = (re = K == null ? void 0 : K[T]) != null ? re : 0, Ae = st ? Ue : ie - A[Te] - F[Te] - le + P.altAxis, we = st ? ie + A[Te] + F[Te] - le - P.altAxis : bt, Ne = m && st ? c$(Ae, ie, we) : uc(m ? Ae : Ue, ie, m ? we : bt);
15272
- k[T] = Ne, Y[T] = Ne - ie;
15272
+ k[T] = Ne, J[T] = Ne - ie;
15273
15273
  }
15274
- e.modifiersData[o] = Y;
15274
+ e.modifiersData[o] = J;
15275
15275
  }
15276
15276
  }
15277
15277
  const z$ = {
@@ -15875,7 +15875,7 @@ function TH(t, e) {
15875
15875
  var F = S.map(function(pe) {
15876
15876
  return pe.fn(C);
15877
15877
  }), D = t.hasAttribute("aria-expanded");
15878
- return ke(), se(), B(), J("onCreate", [C]), n.showOnCreate && Ue(), k.addEventListener("mouseenter", function() {
15878
+ return ke(), se(), B(), Y("onCreate", [C]), n.showOnCreate && Ue(), k.addEventListener("mouseenter", function() {
15879
15879
  C.props.interactive && C.state.isVisible && C.clearDelayTimeouts();
15880
15880
  }), k.addEventListener("mouseleave", function() {
15881
15881
  C.props.interactive && C.props.trigger.indexOf("mouseenter") >= 0 && me().addEventListener("mousemove", b);
@@ -15887,7 +15887,7 @@ function TH(t, e) {
15887
15887
  function K() {
15888
15888
  return P()[0] === "hold";
15889
15889
  }
15890
- function Y() {
15890
+ function J() {
15891
15891
  var pe;
15892
15892
  return !!((pe = C.props.render) != null && pe.$$tippy);
15893
15893
  }
@@ -15907,7 +15907,7 @@ function TH(t, e) {
15907
15907
  function B(pe) {
15908
15908
  pe === void 0 && (pe = !1), k.style.pointerEvents = C.props.interactive && !pe ? "" : "none", k.style.zIndex = "" + C.props.zIndex;
15909
15909
  }
15910
- function J(pe, We, tt) {
15910
+ function Y(pe, We, tt) {
15911
15911
  if (tt === void 0 && (tt = !0), F.forEach(function(Dt) {
15912
15912
  Dt[pe] && Dt[pe].apply(Dt, We);
15913
15913
  }), tt) {
@@ -15953,7 +15953,7 @@ function TH(t, e) {
15953
15953
  if (li.isTouch || C.state.isVisible && C.props.trigger.indexOf("click") >= 0)
15954
15954
  return;
15955
15955
  } else
15956
- J("onClickOutside", [C, pe]);
15956
+ Y("onClickOutside", [C, pe]);
15957
15957
  C.props.hideOnClick === !0 && (C.clearDelayTimeouts(), C.hide(), a = !0, setTimeout(function() {
15958
15958
  a = !1;
15959
15959
  }), C.state.isMounted || it());
@@ -16070,7 +16070,7 @@ function TH(t, e) {
16070
16070
  }
16071
16071
  function H() {
16072
16072
  z();
16073
- var pe = C.props, We = pe.popperOptions, tt = pe.placement, _t = pe.offset, Dt = pe.getReferenceClientRect, Zn = pe.moveTransition, Io = Y() ? Eg(k).arrow : null, _i = Dt ? {
16073
+ var pe = C.props, We = pe.popperOptions, tt = pe.placement, _t = pe.offset, Dt = pe.getReferenceClientRect, Zn = pe.moveTransition, Io = J() ? Eg(k).arrow : null, _i = Dt ? {
16074
16074
  getBoundingClientRect: Dt,
16075
16075
  contextElement: Dt.contextElement || Ee()
16076
16076
  } : t, Tu = {
@@ -16080,7 +16080,7 @@ function TH(t, e) {
16080
16080
  requires: ["computeStyles"],
16081
16081
  fn: function(rl) {
16082
16082
  var ls = rl.state;
16083
- if (Y()) {
16083
+ if (J()) {
16084
16084
  var Ed = q(), Au = Ed.box;
16085
16085
  ["placement", "reference-hidden", "escaped"].forEach(function(il) {
16086
16086
  il === "placement" ? Au.setAttribute("data-placement", ls.placement) : ls.attributes.popper["data-popper-" + il] ? Au.setAttribute("data-" + il, "") : Au.removeAttribute("data-" + il);
@@ -16113,7 +16113,7 @@ function TH(t, e) {
16113
16113
  adaptive: !Zn
16114
16114
  }
16115
16115
  }, Tu];
16116
- Y() && Io && Ti.push({
16116
+ J() && Io && Ti.push({
16117
16117
  name: "arrow",
16118
16118
  options: {
16119
16119
  element: Io,
@@ -16142,14 +16142,14 @@ function TH(t, e) {
16142
16142
  return Ep(k.querySelectorAll("[data-tippy-root]"));
16143
16143
  }
16144
16144
  function Ue(pe) {
16145
- C.clearDelayTimeouts(), pe && J("onTrigger", [C, pe]), Ke();
16145
+ C.clearDelayTimeouts(), pe && Y("onTrigger", [C, pe]), Ke();
16146
16146
  var We = U(!0), tt = P(), _t = tt[0], Dt = tt[1];
16147
16147
  li.isTouch && _t === "hold" && Dt && (We = Dt), We ? o = setTimeout(function() {
16148
16148
  C.show();
16149
16149
  }, We) : C.show();
16150
16150
  }
16151
16151
  function bt(pe) {
16152
- if (C.clearDelayTimeouts(), J("onUntrigger", [C, pe]), !C.state.isVisible) {
16152
+ if (C.clearDelayTimeouts(), Y("onUntrigger", [C, pe]), !C.state.isVisible) {
16153
16153
  it();
16154
16154
  return;
16155
16155
  }
@@ -16173,7 +16173,7 @@ function TH(t, e) {
16173
16173
  }
16174
16174
  function we(pe) {
16175
16175
  if (process.env.NODE_ENV !== "production" && ji(C.state.isDestroyed, El("setProps")), !C.state.isDestroyed) {
16176
- J("onBeforeUpdate", [C, pe]), $e();
16176
+ Y("onBeforeUpdate", [C, pe]), $e();
16177
16177
  var We = C.props, tt = e8(t, Object.assign({}, We, X6(pe), {
16178
16178
  ignoreAttributes: !0
16179
16179
  }));
@@ -16181,7 +16181,7 @@ function TH(t, e) {
16181
16181
  _t.removeAttribute("aria-expanded");
16182
16182
  }) : tt.triggerTarget && t.removeAttribute("aria-expanded"), se(), B(), A && A(We, tt), C.popperInstance && (H(), Te().forEach(function(_t) {
16183
16183
  requestAnimationFrame(_t._tippy.popperInstance.forceUpdate);
16184
- })), J("onAfterUpdate", [C, pe]);
16184
+ })), Y("onAfterUpdate", [C, pe]);
16185
16185
  }
16186
16186
  }
16187
16187
  function Ne(pe) {
@@ -16192,20 +16192,20 @@ function TH(t, e) {
16192
16192
  function ot() {
16193
16193
  process.env.NODE_ENV !== "production" && ji(C.state.isDestroyed, El("show"));
16194
16194
  var pe = C.state.isVisible, We = C.state.isDestroyed, tt = !C.state.isEnabled, _t = li.isTouch && !C.props.touch, Dt = o1(C.props.duration, 0, tr.duration);
16195
- if (!(pe || We || tt || _t) && !Ee().hasAttribute("disabled") && (J("onShow", [C], !1), C.props.onShow(C) !== !1)) {
16196
- if (C.state.isVisible = !0, Y() && (k.style.visibility = "visible"), B(), Ke(), C.state.isMounted || (k.style.transition = "none"), Y()) {
16195
+ if (!(pe || We || tt || _t) && !Ee().hasAttribute("disabled") && (Y("onShow", [C], !1), C.props.onShow(C) !== !1)) {
16196
+ if (C.state.isVisible = !0, J() && (k.style.visibility = "visible"), B(), Ke(), C.state.isMounted || (k.style.transition = "none"), J()) {
16197
16197
  var Zn = q(), Io = Zn.box, _i = Zn.content;
16198
16198
  r1([Io, _i], 0);
16199
16199
  }
16200
16200
  h = function() {
16201
16201
  var Ti;
16202
16202
  if (!(!C.state.isVisible || u)) {
16203
- if (u = !0, k.offsetHeight, k.style.transition = C.props.moveTransition, Y() && C.props.animation) {
16203
+ if (u = !0, k.offsetHeight, k.style.transition = C.props.moveTransition, J() && C.props.animation) {
16204
16204
  var ku = q(), rl = ku.box, ls = ku.content;
16205
16205
  r1([rl, ls], Dt), J6([rl, ls], "visible");
16206
16206
  }
16207
- oe(), se(), G6(s1, C), (Ti = C.popperInstance) == null || Ti.forceUpdate(), J("onMount", [C]), C.props.animation && Y() && de(Dt, function() {
16208
- C.state.isShown = !0, J("onShown", [C]);
16207
+ oe(), se(), G6(s1, C), (Ti = C.popperInstance) == null || Ti.forceUpdate(), Y("onMount", [C]), C.props.animation && J() && de(Dt, function() {
16208
+ C.state.isShown = !0, Y("onShown", [C]);
16209
16209
  });
16210
16210
  }
16211
16211
  }, ie();
@@ -16214,12 +16214,12 @@ function TH(t, e) {
16214
16214
  function Ct() {
16215
16215
  process.env.NODE_ENV !== "production" && ji(C.state.isDestroyed, El("hide"));
16216
16216
  var pe = !C.state.isVisible, We = C.state.isDestroyed, tt = !C.state.isEnabled, _t = o1(C.props.duration, 1, tr.duration);
16217
- if (!(pe || We || tt) && (J("onHide", [C], !1), C.props.onHide(C) !== !1)) {
16218
- if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1, Y() && (k.style.visibility = "hidden"), fe(), it(), B(!0), Y()) {
16217
+ if (!(pe || We || tt) && (Y("onHide", [C], !1), C.props.onHide(C) !== !1)) {
16218
+ if (C.state.isVisible = !1, C.state.isShown = !1, u = !1, s = !1, J() && (k.style.visibility = "hidden"), fe(), it(), B(!0), J()) {
16219
16219
  var Dt = q(), Zn = Dt.box, Io = Dt.content;
16220
16220
  C.props.animation && (r1([Zn, Io], _t), J6([Zn, Io], "hidden"));
16221
16221
  }
16222
- oe(), se(), C.props.animation ? Y() && te(_t, C.unmount) : C.unmount();
16222
+ oe(), se(), C.props.animation ? J() && te(_t, C.unmount) : C.unmount();
16223
16223
  }
16224
16224
  }
16225
16225
  function Wt(pe) {
@@ -16230,10 +16230,10 @@ function TH(t, e) {
16230
16230
  pe._tippy.unmount();
16231
16231
  }), k.parentNode && k.parentNode.removeChild(k), s1 = s1.filter(function(pe) {
16232
16232
  return pe !== C;
16233
- }), C.state.isMounted = !1, J("onHidden", [C]));
16233
+ }), C.state.isMounted = !1, Y("onHidden", [C]));
16234
16234
  }
16235
16235
  function dr() {
16236
- process.env.NODE_ENV !== "production" && ji(C.state.isDestroyed, El("destroy")), !C.state.isDestroyed && (C.clearDelayTimeouts(), C.unmount(), $e(), delete t._tippy, C.state.isDestroyed = !0, J("onDestroy", [C]));
16236
+ process.env.NODE_ENV !== "production" && ji(C.state.isDestroyed, El("destroy")), !C.state.isDestroyed && (C.clearDelayTimeouts(), C.unmount(), $e(), delete t._tippy, C.state.isDestroyed = !0, Y("onDestroy", [C]));
16237
16237
  }
16238
16238
  }
16239
16239
  function Wa(t, e) {
@@ -16620,7 +16620,7 @@ const So = j({
16620
16620
  const e = V(), n = jo();
16621
16621
  return Tn(() => {
16622
16622
  const o = t.editor;
16623
- o && o.options.element && e.value && Rt(() => {
16623
+ o && o.options.element && e.value && It(() => {
16624
16624
  if (!e.value || !o.options.element.firstChild)
16625
16625
  return;
16626
16626
  const r = g(e.value);
@@ -17279,7 +17279,7 @@ var _p = { exports: {} };
17279
17279
  _p.exports;
17280
17280
  (function(t, e) {
17281
17281
  (function() {
17282
- 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, w = 1, x = 2, S = 4, E = 8, C = 16, T = 32, k = 64, A = 128, F = 256, D = 512, P = 30, K = "...", Y = 800, Ee = 16, me = 1, q = 2, U = 3, B = 1 / 0, J = 9007199254740991, oe = 17976931348623157e292, se = NaN, fe = 4294967295, Re = fe - 1, ye = fe >>> 1, rt = [
17282
+ 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, w = 1, x = 2, S = 4, E = 8, C = 16, T = 32, k = 64, A = 128, F = 256, D = 512, P = 30, K = "...", J = 800, Ee = 16, me = 1, q = 2, U = 3, B = 1 / 0, Y = 9007199254740991, oe = 17976931348623157e292, se = NaN, fe = 4294967295, Re = fe - 1, ye = fe >>> 1, rt = [
17283
17283
  ["ary", A],
17284
17284
  ["bind", w],
17285
17285
  ["bindKey", x],
@@ -18520,14 +18520,14 @@ _p.exports;
18520
18520
  }
18521
18521
  function im(c, p) {
18522
18522
  var y = "";
18523
- if (!c || p < 1 || p > J)
18523
+ if (!c || p < 1 || p > Y)
18524
18524
  return y;
18525
18525
  do
18526
18526
  p % 2 && (y += c), p = Hd(p / 2), p && (c += c);
18527
18527
  while (p);
18528
18528
  return y;
18529
18529
  }
18530
- function It(c, p) {
18530
+ function Rt(c, p) {
18531
18531
  return Cm($3(c, p, Po), c + "");
18532
18532
  }
18533
18533
  function cA(c) {
@@ -18692,7 +18692,7 @@ _p.exports;
18692
18692
  function ms(c, p) {
18693
18693
  return wt(c) ? c : ym(c, p) ? [c] : W3(Gt(c));
18694
18694
  }
18695
- var mA = It;
18695
+ var mA = Rt;
18696
18696
  function gs(c, p, y) {
18697
18697
  var _ = c.length;
18698
18698
  return y = y === n ? _ : y, !p && y >= _ ? c : br(c, p, y);
@@ -18793,7 +18793,7 @@ _p.exports;
18793
18793
  };
18794
18794
  }
18795
18795
  function ml(c) {
18796
- return It(function(p, y) {
18796
+ return Rt(function(p, y) {
18797
18797
  var _ = -1, M = y.length, R = M > 1 ? y[M - 1] : n, W = M > 2 ? y[2] : n;
18798
18798
  for (R = c.length > 3 && typeof R == "function" ? (M--, R) : n, W && xo(y[0], y[1], W) && (R = M < 3 ? n : R, M = 1), p = rn(p); ++_ < M; ) {
18799
18799
  var G = y[_];
@@ -18977,7 +18977,7 @@ _p.exports;
18977
18977
  }
18978
18978
  function fm(c) {
18979
18979
  return Ni(function(p) {
18980
- return p = bn(p, Go(lt())), It(function(y) {
18980
+ return p = bn(p, Go(lt())), Rt(function(y) {
18981
18981
  var _ = this;
18982
18982
  return c(p, function(M) {
18983
18983
  return Ko(M, _, y);
@@ -19352,7 +19352,7 @@ _p.exports;
19352
19352
  }
19353
19353
  function Ii(c, p) {
19354
19354
  var y = typeof c;
19355
- return p = p ?? J, !!p && (y == "number" || y != "symbol" && K7.test(c)) && c > -1 && c % 1 == 0 && c < p;
19355
+ return p = p ?? Y, !!p && (y == "number" || y != "symbol" && K7.test(c)) && c > -1 && c % 1 == 0 && c < p;
19356
19356
  }
19357
19357
  function xo(c, p, y) {
19358
19358
  if (!xn(y))
@@ -19459,7 +19459,7 @@ _p.exports;
19459
19459
  return function() {
19460
19460
  var _ = lk(), M = Ee - (_ - y);
19461
19461
  if (y = _, M > 0) {
19462
- if (++p >= Y)
19462
+ if (++p >= J)
19463
19463
  return arguments[0];
19464
19464
  } else
19465
19465
  p = 0;
@@ -19535,12 +19535,12 @@ _p.exports;
19535
19535
  p[_ - 1] = arguments[_];
19536
19536
  return cs(wt(y) ? Ro(y) : [y], eo(p, 1));
19537
19537
  }
19538
- var GA = It(function(c, p) {
19538
+ var GA = Rt(function(c, p) {
19539
19539
  return Nn(c) ? Pu(c, eo(p, 1, Nn, !0)) : [];
19540
- }), XA = It(function(c, p) {
19540
+ }), XA = Rt(function(c, p) {
19541
19541
  var y = vr(p);
19542
19542
  return Nn(y) && (y = n), Nn(c) ? Pu(c, eo(p, 1, Nn, !0), lt(y, 2)) : [];
19543
- }), JA = It(function(c, p) {
19543
+ }), JA = Rt(function(c, p) {
19544
19544
  var y = vr(p);
19545
19545
  return Nn(y) && (y = n), Nn(c) ? Pu(c, eo(p, 1, Nn, !0), n, y) : [];
19546
19546
  });
@@ -19609,13 +19609,13 @@ _p.exports;
19609
19609
  var p = c == null ? 0 : c.length;
19610
19610
  return p ? br(c, 0, -1) : [];
19611
19611
  }
19612
- var aO = It(function(c) {
19612
+ var aO = Rt(function(c) {
19613
19613
  var p = bn(c, um);
19614
19614
  return p.length && p[0] === c[0] ? Q0(p) : [];
19615
- }), lO = It(function(c) {
19615
+ }), lO = Rt(function(c) {
19616
19616
  var p = vr(c), y = bn(c, um);
19617
19617
  return p === vr(y) ? p = n : y.pop(), y.length && y[0] === c[0] ? Q0(y, lt(p, 2)) : [];
19618
- }), uO = It(function(c) {
19618
+ }), uO = Rt(function(c) {
19619
19619
  var p = vr(c), y = bn(c, um);
19620
19620
  return p = typeof p == "function" ? p : n, p && y.pop(), y.length && y[0] === c[0] ? Q0(y, n, p) : [];
19621
19621
  });
@@ -19636,7 +19636,7 @@ _p.exports;
19636
19636
  function fO(c, p) {
19637
19637
  return c && c.length ? s3(c, Tt(p)) : n;
19638
19638
  }
19639
- var pO = It(J3);
19639
+ var pO = Rt(J3);
19640
19640
  function J3(c, p) {
19641
19641
  return c && c.length && p && p.length ? om(c, p) : c;
19642
19642
  }
@@ -19723,12 +19723,12 @@ _p.exports;
19723
19723
  function NO(c, p) {
19724
19724
  return c && c.length ? Xd(c, lt(p, 3)) : [];
19725
19725
  }
19726
- var IO = It(function(c) {
19726
+ var IO = Rt(function(c) {
19727
19727
  return hs(eo(c, 1, Nn, !0));
19728
- }), RO = It(function(c) {
19728
+ }), RO = Rt(function(c) {
19729
19729
  var p = vr(c);
19730
19730
  return Nn(p) && (p = n), hs(eo(c, 1, Nn, !0), lt(p, 2));
19731
- }), LO = It(function(c) {
19731
+ }), LO = Rt(function(c) {
19732
19732
  var p = vr(c);
19733
19733
  return p = typeof p == "function" ? p : n, hs(eo(c, 1, Nn, !0), n, p);
19734
19734
  });
@@ -19760,24 +19760,24 @@ _p.exports;
19760
19760
  return Ko(p, n, _);
19761
19761
  });
19762
19762
  }
19763
- var FO = It(function(c, p) {
19763
+ var FO = Rt(function(c, p) {
19764
19764
  return Nn(c) ? Pu(c, p) : [];
19765
- }), $O = It(function(c) {
19765
+ }), $O = Rt(function(c) {
19766
19766
  return lm(us(c, Nn));
19767
- }), HO = It(function(c) {
19767
+ }), HO = Rt(function(c) {
19768
19768
  var p = vr(c);
19769
19769
  return Nn(p) && (p = n), lm(us(c, Nn), lt(p, 2));
19770
- }), zO = It(function(c) {
19770
+ }), zO = Rt(function(c) {
19771
19771
  var p = vr(c);
19772
19772
  return p = typeof p == "function" ? p : n, lm(us(c, Nn), n, p);
19773
- }), VO = It(Sm);
19773
+ }), VO = Rt(Sm);
19774
19774
  function UO(c, p) {
19775
19775
  return m3(c || [], p || [], Du);
19776
19776
  }
19777
19777
  function WO(c, p) {
19778
19778
  return m3(c || [], p || [], $u);
19779
19779
  }
19780
- var jO = It(function(c) {
19780
+ var jO = Rt(function(c) {
19781
19781
  var p = c.length, y = p > 1 ? c[p - 1] : n;
19782
19782
  return y = typeof y == "function" ? (c.pop(), y) : n, Y3(c, y);
19783
19783
  });
@@ -19878,7 +19878,7 @@ _p.exports;
19878
19878
  var M = c.length;
19879
19879
  return y < 0 && (y = Un(M + y, 0)), df(c) ? y <= M && c.indexOf(p, y) > -1 : !!M && al(c, p, y) > -1;
19880
19880
  }
19881
- var dM = It(function(c, p, y) {
19881
+ var dM = Rt(function(c, p, y) {
19882
19882
  var _ = -1, M = typeof p == "function", R = Lo(c) ? ae(c.length) : [];
19883
19883
  return ps(c, function(W) {
19884
19884
  R[++_] = M ? Ko(p, W, y) : Bu(W, p, y);
@@ -19935,7 +19935,7 @@ _p.exports;
19935
19935
  var _ = wt(c) ? B0 : hA;
19936
19936
  return y && xo(c, p, y) && (p = n), _(c, lt(p, 3));
19937
19937
  }
19938
- var EM = It(function(c, p) {
19938
+ var EM = Rt(function(c, p) {
19939
19939
  if (c == null)
19940
19940
  return [];
19941
19941
  var y = p.length;
@@ -19962,14 +19962,14 @@ _p.exports;
19962
19962
  return --c > 0 && (y = p.apply(this, arguments)), c <= 1 && (p = n), y;
19963
19963
  };
19964
19964
  }
19965
- var _m = It(function(c, p, y) {
19965
+ var _m = Rt(function(c, p, y) {
19966
19966
  var _ = w;
19967
19967
  if (y.length) {
19968
19968
  var M = ds(y, bl(_m));
19969
19969
  _ |= T;
19970
19970
  }
19971
19971
  return Mi(c, _, p, y, M);
19972
- }), o4 = It(function(c, p, y) {
19972
+ }), o4 = Rt(function(c, p, y) {
19973
19973
  var _ = w | x;
19974
19974
  if (y.length) {
19975
19975
  var M = ds(y, bl(o4));
@@ -20034,9 +20034,9 @@ _p.exports;
20034
20034
  }
20035
20035
  return Zo.cancel = Yo, Zo.flush = Co, Zo;
20036
20036
  }
20037
- var _M = It(function(c, p) {
20037
+ var _M = Rt(function(c, p) {
20038
20038
  return Xy(c, 1, p);
20039
- }), TM = It(function(c, p, y) {
20039
+ }), TM = Rt(function(c, p, y) {
20040
20040
  return Xy(c, yr(p) || 0, y);
20041
20041
  });
20042
20042
  function kM(c) {
@@ -20079,15 +20079,15 @@ _p.exports;
20079
20079
  var OM = mA(function(c, p) {
20080
20080
  p = p.length == 1 && wt(p[0]) ? bn(p[0], Go(lt())) : bn(eo(p, 1), Go(lt()));
20081
20081
  var y = p.length;
20082
- return It(function(_) {
20082
+ return Rt(function(_) {
20083
20083
  for (var M = -1, R = lo(_.length, y); ++M < R; )
20084
20084
  _[M] = p[M].call(this, _[M]);
20085
20085
  return Ko(c, this, _);
20086
20086
  });
20087
- }), Tm = It(function(c, p) {
20087
+ }), Tm = Rt(function(c, p) {
20088
20088
  var y = ds(p, bl(Tm));
20089
20089
  return Mi(c, T, n, p, y);
20090
- }), a4 = It(function(c, p) {
20090
+ }), a4 = Rt(function(c, p) {
20091
20091
  var y = ds(p, bl(a4));
20092
20092
  return Mi(c, k, n, p, y);
20093
20093
  }), MM = Ni(function(c, p) {
@@ -20096,12 +20096,12 @@ _p.exports;
20096
20096
  function NM(c, p) {
20097
20097
  if (typeof c != "function")
20098
20098
  throw new hr(s);
20099
- return p = p === n ? p : Tt(p), It(c, p);
20099
+ return p = p === n ? p : Tt(p), Rt(c, p);
20100
20100
  }
20101
20101
  function IM(c, p) {
20102
20102
  if (typeof c != "function")
20103
20103
  throw new hr(s);
20104
- return p = p == null ? 0 : Un(Tt(p), 0), It(function(y) {
20104
+ return p = p == null ? 0 : Un(Tt(p), 0), Rt(function(y) {
20105
20105
  var _ = y[p], M = gs(y, 0, p);
20106
20106
  return _ && cs(M, _), Ko(c, this, M);
20107
20107
  });
@@ -20208,7 +20208,7 @@ _p.exports;
20208
20208
  return typeof c == "number" && c == Tt(c);
20209
20209
  }
20210
20210
  function cf(c) {
20211
- return typeof c == "number" && c > -1 && c % 1 == 0 && c <= J;
20211
+ return typeof c == "number" && c > -1 && c % 1 == 0 && c <= Y;
20212
20212
  }
20213
20213
  function xn(c) {
20214
20214
  var p = typeof c;
@@ -20252,7 +20252,7 @@ _p.exports;
20252
20252
  }
20253
20253
  var Am = Sy ? Go(Sy) : nA;
20254
20254
  function rN(c) {
20255
- return l4(c) && c >= -9007199254740991 && c <= J;
20255
+ return l4(c) && c >= -9007199254740991 && c <= Y;
20256
20256
  }
20257
20257
  var d4 = _y ? Go(_y) : oA;
20258
20258
  function df(c) {
@@ -20319,7 +20319,7 @@ _p.exports;
20319
20319
  return ti(c, Do(c));
20320
20320
  }
20321
20321
  function cN(c) {
20322
- return c ? aa(Tt(c), -9007199254740991, J) : c === 0 ? c : 0;
20322
+ return c ? aa(Tt(c), -9007199254740991, Y) : c === 0 ? c : 0;
20323
20323
  }
20324
20324
  function Gt(c) {
20325
20325
  return c == null ? "" : Xo(c);
@@ -20342,7 +20342,7 @@ _p.exports;
20342
20342
  var y = hl(c);
20343
20343
  return p == null ? y : Ky(y, p);
20344
20344
  }
20345
- var mN = It(function(c, p) {
20345
+ var mN = Rt(function(c, p) {
20346
20346
  c = rn(c);
20347
20347
  var y = -1, _ = p.length, M = _ > 2 ? p[2] : n;
20348
20348
  for (M && xo(p[0], p[1], M) && (_ = 1); ++y < _; )
@@ -20351,7 +20351,7 @@ _p.exports;
20351
20351
  (_e === n || Pr(_e, dl[Se]) && !Xt.call(c, Se)) && (c[Se] = R[Se]);
20352
20352
  }
20353
20353
  return c;
20354
- }), gN = It(function(c) {
20354
+ }), gN = Rt(function(c) {
20355
20355
  return c.push(n, I3), Ko(g4, n, c);
20356
20356
  });
20357
20357
  function bN(c, p) {
@@ -20392,7 +20392,7 @@ _p.exports;
20392
20392
  p != null && typeof p.toString != "function" && (p = Rd.call(p)), c[p] = y;
20393
20393
  }, Im(Po)), kN = k3(function(c, p, y) {
20394
20394
  p != null && typeof p.toString != "function" && (p = Rd.call(p)), Xt.call(c, p) ? c[p].push(y) : c[p] = [y];
20395
- }, lt), AN = It(Bu);
20395
+ }, lt), AN = Rt(Bu);
20396
20396
  function Kn(c) {
20397
20397
  return Lo(c) ? jy(c) : tm(c);
20398
20398
  }
@@ -20680,7 +20680,7 @@ function print() { __p += __j.call(arguments, '') }
20680
20680
  function C4(c, p, y) {
20681
20681
  return c = Gt(c), p = y ? n : p, p === n ? HT(c) ? GT(c) : NT(c) : c.match(p) || [];
20682
20682
  }
20683
- var E4 = It(function(c, p) {
20683
+ var E4 = Rt(function(c, p) {
20684
20684
  try {
20685
20685
  return Ko(c, n, p);
20686
20686
  } catch (y) {
@@ -20697,7 +20697,7 @@ function print() { __p += __j.call(arguments, '') }
20697
20697
  if (typeof _[1] != "function")
20698
20698
  throw new hr(s);
20699
20699
  return [y(_[0]), _[1]];
20700
- }) : [], It(function(_) {
20700
+ }) : [], Rt(function(_) {
20701
20701
  for (var M = -1; ++M < p; ) {
20702
20702
  var R = c[M];
20703
20703
  if (Ko(R[0], this, _))
@@ -20729,11 +20729,11 @@ function print() { __p += __j.call(arguments, '') }
20729
20729
  function _I(c, p) {
20730
20730
  return i3(c, gr(p, f));
20731
20731
  }
20732
- var TI = It(function(c, p) {
20732
+ var TI = Rt(function(c, p) {
20733
20733
  return function(y) {
20734
20734
  return Bu(y, c, p);
20735
20735
  };
20736
- }), kI = It(function(c, p) {
20736
+ }), kI = Rt(function(c, p) {
20737
20737
  return function(y) {
20738
20738
  return Bu(c, y, p);
20739
20739
  };
@@ -20760,7 +20760,7 @@ function print() { __p += __j.call(arguments, '') }
20760
20760
  function Dm() {
20761
20761
  }
20762
20762
  function OI(c) {
20763
- return c = Tt(c), It(function(p) {
20763
+ return c = Tt(c), Rt(function(p) {
20764
20764
  return s3(p, c);
20765
20765
  });
20766
20766
  }
@@ -20790,7 +20790,7 @@ function print() { __p += __j.call(arguments, '') }
20790
20790
  return !0;
20791
20791
  }
20792
20792
  function $I(c, p) {
20793
- if (c = Tt(c), c < 1 || c > J)
20793
+ if (c = Tt(c), c < 1 || c > Y)
20794
20794
  return [];
20795
20795
  var y = fe, _ = lo(c, fe);
20796
20796
  p = lt(p), c -= fe;
@@ -20882,7 +20882,7 @@ function print() { __p += __j.call(arguments, '') }
20882
20882
  return this.filter(c).head();
20883
20883
  }, Bt.prototype.findLast = function(c) {
20884
20884
  return this.reverse().find(c);
20885
- }, Bt.prototype.invokeMap = It(function(c, p) {
20885
+ }, Bt.prototype.invokeMap = Rt(function(c, p) {
20886
20886
  return typeof c == "function" ? new Bt(this) : this.map(function(y) {
20887
20887
  return Bu(y, c, p);
20888
20888
  });
@@ -20997,7 +20997,7 @@ function Lh(t) {
20997
20997
  return typeof a == "string" ? a : g(a) ?? "";
20998
20998
  };
20999
20999
  function i() {
21000
- Rt(() => {
21000
+ It(() => {
21001
21001
  const a = e.value;
21002
21002
  if (!a || typeof window > "u" || !(a instanceof Element)) return;
21003
21003
  const l = VH();
@@ -21420,7 +21420,7 @@ const oz = (t) => ({
21420
21420
  }, m = m2(r), b = h2(m), v = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", S = w ? "bottom" : "right", E = w ? "clientHeight" : "clientWidth", C = i.reference[b] + i.reference[m] - h[m] - i.floating[b], T = h[m] - i.reference[m], k = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
21421
21421
  let A = k ? k[E] : 0;
21422
21422
  (!A || !await (s.isElement == null ? void 0 : s.isElement(k))) && (A = a.floating[E] || i.floating[b]);
21423
- const F = C / 2 - T / 2, D = A / 2 - v[b] / 2 - 1, P = Vs(f[x], D), K = Vs(f[S], D), Y = P, Ee = A - v[b] - K, me = A / 2 - v[b] / 2 + F, q = Tg(Y, me, Ee), U = !l.arrow && fu(r) != null && me !== q && i.reference[b] / 2 - (me < Y ? P : K) - v[b] / 2 < 0, B = U ? me < Y ? me - Y : me - Ee : 0;
21423
+ const F = C / 2 - T / 2, D = A / 2 - v[b] / 2 - 1, P = Vs(f[x], D), K = Vs(f[S], D), J = P, Ee = A - v[b] - K, me = A / 2 - v[b] / 2 + F, q = Tg(J, me, Ee), U = !l.arrow && fu(r) != null && me !== q && i.reference[b] / 2 - (me < J ? P : K) - v[b] / 2 < 0, B = U ? me < J ? me - J : me - Ee : 0;
21424
21424
  return {
21425
21425
  [m]: h[m] + B,
21426
21426
  data: {
@@ -21469,7 +21469,7 @@ const oz = (t) => ({
21469
21469
  placement: r,
21470
21470
  overflows: D
21471
21471
  }], !D.every((me) => me <= 0)) {
21472
- var K, Y;
21472
+ var K, J;
21473
21473
  const me = (((K = i.flip) == null ? void 0 : K.index) || 0) + 1, q = A[me];
21474
21474
  if (q)
21475
21475
  return {
@@ -21481,20 +21481,20 @@ const oz = (t) => ({
21481
21481
  placement: q
21482
21482
  }
21483
21483
  };
21484
- let U = (Y = P.filter((B) => B.overflows[0] <= 0).sort((B, J) => B.overflows[1] - J.overflows[1])[0]) == null ? void 0 : Y.placement;
21484
+ let U = (J = P.filter((B) => B.overflows[0] <= 0).sort((B, Y) => B.overflows[1] - Y.overflows[1])[0]) == null ? void 0 : J.placement;
21485
21485
  if (!U)
21486
21486
  switch (m) {
21487
21487
  case "bestFit": {
21488
21488
  var Ee;
21489
- const B = (Ee = P.filter((J) => {
21489
+ const B = (Ee = P.filter((Y) => {
21490
21490
  if (k) {
21491
- const oe = Us(J.placement);
21491
+ const oe = Us(Y.placement);
21492
21492
  return oe === S || // Create a bias to the `y` side axis due to horizontal
21493
21493
  // reading directions favoring greater width.
21494
21494
  oe === "y";
21495
21495
  }
21496
21496
  return !0;
21497
- }).map((J) => [J.placement, J.overflows.filter((oe) => oe > 0).reduce((oe, se) => oe + se, 0)]).sort((J, oe) => J[1] - oe[1])[0]) == null ? void 0 : Ee[0];
21497
+ }).map((Y) => [Y.placement, Y.overflows.filter((oe) => oe > 0).reduce((oe, se) => oe + se, 0)]).sort((Y, oe) => Y[1] - oe[1])[0]) == null ? void 0 : Ee[0];
21498
21498
  B && (U = B);
21499
21499
  break;
21500
21500
  }
@@ -21737,8 +21737,8 @@ const az = function(t) {
21737
21737
  const S = v - d.top - d.bottom, E = b - d.left - d.right, C = Vs(v - d[w], S), T = Vs(b - d[x], E), k = !e.middlewareData.shift;
21738
21738
  let A = C, F = T;
21739
21739
  if ((n = e.middlewareData.shift) != null && n.enabled.x && (F = E), (o = e.middlewareData.shift) != null && o.enabled.y && (A = S), k && !h) {
21740
- const P = Qo(d.left, 0), K = Qo(d.right, 0), Y = Qo(d.top, 0), Ee = Qo(d.bottom, 0);
21741
- m ? F = b - 2 * (P !== 0 || K !== 0 ? P + K : Qo(d.left, d.right)) : A = v - 2 * (Y !== 0 || Ee !== 0 ? Y + Ee : Qo(d.top, d.bottom));
21740
+ const P = Qo(d.left, 0), K = Qo(d.right, 0), J = Qo(d.top, 0), Ee = Qo(d.bottom, 0);
21741
+ m ? F = b - 2 * (P !== 0 || K !== 0 ? P + K : Qo(d.left, d.right)) : A = v - 2 * (J !== 0 || Ee !== 0 ? J + Ee : Qo(d.top, d.bottom));
21742
21742
  }
21743
21743
  await l({
21744
21744
  ...e,
@@ -22512,7 +22512,7 @@ function DE(t, e, n = {}) {
22512
22512
  };
22513
22513
  }
22514
22514
  function Yz(t, e, n) {
22515
- const o = De(t, (...r) => (Rt(() => o()), e(...r)), n);
22515
+ const o = De(t, (...r) => (It(() => o()), e(...r)), n);
22516
22516
  return o;
22517
22517
  }
22518
22518
  function Xr(t) {
@@ -22617,7 +22617,7 @@ function cr(t, e, n, o = {}) {
22617
22617
  return De(
22618
22618
  () => t[e],
22619
22619
  (k) => {
22620
- T || (T = !0, C.value = w(k), Rt(() => T = !1));
22620
+ T || (T = !0, C.value = w(k), It(() => T = !1));
22621
22621
  }
22622
22622
  ), De(
22623
22623
  C,
@@ -22759,7 +22759,7 @@ const lV = IE(() => {
22759
22759
  "touchmove",
22760
22760
  (h) => uV(h),
22761
22761
  { passive: !1 }
22762
- )), Rt(() => {
22762
+ )), It(() => {
22763
22763
  document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden";
22764
22764
  });
22765
22765
  }, { immediate: !0, flush: "sync" }), t;
@@ -23249,7 +23249,7 @@ function kV(t, e) {
23249
23249
  async (w, x) => {
23250
23250
  var S;
23251
23251
  const E = x !== w;
23252
- if (await Rt(), E) {
23252
+ if (await It(), E) {
23253
23253
  const C = r.value, T = kf(e.value);
23254
23254
  w ? (d("MOUNT"), f("enter"), T === "none" && f("after-enter")) : T === "none" || ((S = o.value) == null ? void 0 : S.display) === "none" ? (d("UNMOUNT"), f("leave"), f("after-leave")) : x && C !== T ? (d("ANIMATION_OUT"), f("leave")) : (d("UNMOUNT"), f("after-leave"));
23255
23255
  }
@@ -23483,7 +23483,7 @@ function RV(t, e) {
23483
23483
  if (!ss)
23484
23484
  return;
23485
23485
  const s = async (a) => {
23486
- e != null && e.value && (await Rt(), !(!e.value || VE(e.value, a.target)) && a.target && !r.value && NE(
23486
+ e != null && e.value && (await It(), !(!e.value || VE(e.value, a.target)) && a.target && !r.value && NE(
23487
23487
  NV,
23488
23488
  t,
23489
23489
  { originalEvent: a }
@@ -23520,7 +23520,7 @@ const Fi = lr({
23520
23520
  const v = [...Fi.branches].some(
23521
23521
  (w) => w == null ? void 0 : w.contains(b.target)
23522
23522
  );
23523
- !d.value || v || (o("pointerDownOutside", b), o("interactOutside", b), await Rt(), b.defaultPrevented || o("dismiss"));
23523
+ !d.value || v || (o("pointerDownOutside", b), o("interactOutside", b), await It(), b.defaultPrevented || o("dismiss"));
23524
23524
  }, i), h = RV((b) => {
23525
23525
  [...Fi.branches].some(
23526
23526
  (v) => v == null ? void 0 : v.contains(b.target)
@@ -23671,7 +23671,7 @@ const Uh = /* @__PURE__ */ j({
23671
23671
  });
23672
23672
  }), Tn(async (d) => {
23673
23673
  const f = i.value;
23674
- if (await Rt(), !f)
23674
+ if (await It(), !f)
23675
23675
  return;
23676
23676
  a.add(l);
23677
23677
  const h = go();
@@ -24257,11 +24257,11 @@ const JE = {
24257
24257
  }),
24258
24258
  Nz({
24259
24259
  ...b.value,
24260
- apply: ({ elements: P, rects: K, availableWidth: Y, availableHeight: Ee }) => {
24260
+ apply: ({ elements: P, rects: K, availableWidth: J, availableHeight: Ee }) => {
24261
24261
  const { width: me, height: q } = K.reference, U = P.floating.style;
24262
24262
  U.setProperty(
24263
24263
  "--radix-popper-available-width",
24264
- `${Y}px`
24264
+ `${J}px`
24265
24265
  ), U.setProperty(
24266
24266
  "--radix-popper-available-height",
24267
24267
  `${Ee}px`
@@ -24322,7 +24322,7 @@ const JE = {
24322
24322
  arrowY: D,
24323
24323
  shouldHideArrow: k
24324
24324
  }), (P, K) => {
24325
- var Y, Ee, me;
24325
+ var J, Ee, me;
24326
24326
  return O(), ue("div", {
24327
24327
  ref_key: "floatingRef",
24328
24328
  ref: a,
@@ -24334,7 +24334,7 @@ const JE = {
24334
24334
  minWidth: "max-content",
24335
24335
  zIndex: A.value,
24336
24336
  "--radix-popper-transform-origin": [
24337
- (Y = g(E).transformOrigin) == null ? void 0 : Y.x,
24337
+ (J = g(E).transformOrigin) == null ? void 0 : J.x,
24338
24338
  (Ee = g(E).transformOrigin) == null ? void 0 : Ee.y
24339
24339
  ].join(" "),
24340
24340
  // hide the content if using the hide middleware and should be hidden
@@ -24665,7 +24665,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24665
24665
  );
24666
24666
  u = n.loop.value ? SU(u, d + 1) : u.slice(d + 1);
24667
24667
  }
24668
- Rt(() => oS(u));
24668
+ It(() => oS(u));
24669
24669
  }
24670
24670
  }
24671
24671
  return (a, l) => (O(), $(g(ZE), null, {
@@ -24729,8 +24729,8 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24729
24729
  window.clearTimeout(d.value);
24730
24730
  });
24731
24731
  function T(P) {
24732
- var K, Y;
24733
- return m.value === ((K = h.value) == null ? void 0 : K.side) && jV(P, (Y = h.value) == null ? void 0 : Y.area);
24732
+ var K, J;
24733
+ return m.value === ((K = h.value) == null ? void 0 : K.side) && jV(P, (J = h.value) == null ? void 0 : J.area);
24734
24734
  }
24735
24735
  async function k(P) {
24736
24736
  var K;
@@ -24741,7 +24741,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24741
24741
  function A(P) {
24742
24742
  if (P.defaultPrevented)
24743
24743
  return;
24744
- const K = P.target.closest("[data-radix-menu-content]") === P.currentTarget, Y = P.ctrlKey || P.altKey || P.metaKey, Ee = P.key.length === 1, me = oV(
24744
+ const K = P.target.closest("[data-radix-menu-content]") === P.currentTarget, J = P.ctrlKey || P.altKey || P.metaKey, Ee = P.key.length === 1, me = oV(
24745
24745
  P,
24746
24746
  go(),
24747
24747
  S.value,
@@ -24755,22 +24755,22 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24755
24755
  );
24756
24756
  if (me)
24757
24757
  return me == null ? void 0 : me.focus();
24758
- if (P.code === "Space" || (K && (P.key === "Tab" && P.preventDefault(), !Y && Ee && C(P.key)), P.target !== S.value) || !UV.includes(P.key))
24758
+ if (P.code === "Space" || (K && (P.key === "Tab" && P.preventDefault(), !J && Ee && C(P.key)), P.target !== S.value) || !UV.includes(P.key))
24759
24759
  return;
24760
24760
  P.preventDefault();
24761
24761
  const q = E.value;
24762
24762
  WE.includes(P.key) && q.reverse(), Lg(q);
24763
24763
  }
24764
24764
  function F(P) {
24765
- var K, Y;
24766
- (Y = (K = P == null ? void 0 : P.currentTarget) == null ? void 0 : K.contains) != null && Y.call(K, P.target) || (window.clearTimeout(d.value), u.value = "");
24765
+ var K, J;
24766
+ (J = (K = P == null ? void 0 : P.currentTarget) == null ? void 0 : K.contains) != null && J.call(K, P.target) || (window.clearTimeout(d.value), u.value = "");
24767
24767
  }
24768
24768
  function D(P) {
24769
24769
  var K;
24770
24770
  if (!Dg(P))
24771
24771
  return;
24772
- const Y = P.target, Ee = b.value !== P.clientX;
24773
- if ((K = P == null ? void 0 : P.currentTarget) != null && K.contains(Y) && Ee) {
24772
+ const J = P.target, Ee = b.value !== P.clientX;
24773
+ if ((K = P == null ? void 0 : P.currentTarget) != null && K.contains(J) && Ee) {
24774
24774
  const me = P.clientX > b.value ? "right" : "left";
24775
24775
  m.value = me, b.value = P.clientX;
24776
24776
  }
@@ -24791,28 +24791,28 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24791
24791
  "as-child": "",
24792
24792
  trapped: g(s),
24793
24793
  onMountAutoFocus: k,
24794
- onUnmountAutoFocus: K[7] || (K[7] = (Y) => o("closeAutoFocus", Y))
24794
+ onUnmountAutoFocus: K[7] || (K[7] = (J) => o("closeAutoFocus", J))
24795
24795
  }, {
24796
24796
  default: N(() => [
24797
24797
  L(g(md), {
24798
24798
  "as-child": "",
24799
24799
  "disable-outside-pointer-events": g(a),
24800
- onEscapeKeyDown: K[2] || (K[2] = (Y) => o("escapeKeyDown", Y)),
24801
- onPointerDownOutside: K[3] || (K[3] = (Y) => o("pointerDownOutside", Y)),
24802
- onFocusOutside: K[4] || (K[4] = (Y) => o("focusOutside", Y)),
24803
- onInteractOutside: K[5] || (K[5] = (Y) => o("interactOutside", Y)),
24804
- onDismiss: K[6] || (K[6] = (Y) => o("dismiss"))
24800
+ onEscapeKeyDown: K[2] || (K[2] = (J) => o("escapeKeyDown", J)),
24801
+ onPointerDownOutside: K[3] || (K[3] = (J) => o("pointerDownOutside", J)),
24802
+ onFocusOutside: K[4] || (K[4] = (J) => o("focusOutside", J)),
24803
+ onInteractOutside: K[5] || (K[5] = (J) => o("interactOutside", J)),
24804
+ onDismiss: K[6] || (K[6] = (J) => o("dismiss"))
24805
24805
  }, {
24806
24806
  default: N(() => [
24807
24807
  L(g(rS), {
24808
24808
  "current-tab-stop-id": v.value,
24809
- "onUpdate:currentTabStopId": K[0] || (K[0] = (Y) => v.value = Y),
24809
+ "onUpdate:currentTabStopId": K[0] || (K[0] = (J) => v.value = J),
24810
24810
  "as-child": "",
24811
24811
  orientation: "vertical",
24812
24812
  dir: g(i).dir.value,
24813
24813
  loop: g(l),
24814
- onEntryFocus: K[1] || (K[1] = (Y) => {
24815
- o("entryFocus", Y), g(i).isUsingKeyboardRef.value || Y.preventDefault();
24814
+ onEntryFocus: K[1] || (K[1] = (J) => {
24815
+ o("entryFocus", J), g(i).isUsingKeyboardRef.value || J.preventDefault();
24816
24816
  })
24817
24817
  }, {
24818
24818
  default: N(() => [
@@ -24877,7 +24877,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24877
24877
  }
24878
24878
  }
24879
24879
  async function s(a) {
24880
- await Rt(), !a.defaultPrevented && Dg(a) && n.onItemLeave(a);
24880
+ await It(), !a.defaultPrevented && Dg(a) && n.onItemLeave(a);
24881
24881
  }
24882
24882
  return (a, l) => (O(), $(g(ZE), {
24883
24883
  value: { textValue: a.textValue }
@@ -24897,10 +24897,10 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24897
24897
  onPointermove: i,
24898
24898
  onPointerleave: s,
24899
24899
  onFocus: l[0] || (l[0] = async (u) => {
24900
- await Rt(), !(u.defaultPrevented || a.disabled) && (r.value = !0);
24900
+ await It(), !(u.defaultPrevented || a.disabled) && (r.value = !0);
24901
24901
  }),
24902
24902
  onBlur: l[1] || (l[1] = async (u) => {
24903
- await Rt(), !u.defaultPrevented && (r.value = !1);
24903
+ await It(), !u.defaultPrevented && (r.value = !1);
24904
24904
  })
24905
24905
  }), {
24906
24906
  default: N(() => [
@@ -24930,7 +24930,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24930
24930
  bubbles: !0,
24931
24931
  cancelable: !0
24932
24932
  });
24933
- o("select", f), await Rt(), f.defaultPrevented ? l.value = !1 : s.onClose();
24933
+ o("select", f), await It(), f.defaultPrevented ? l.value = !1 : s.onClose();
24934
24934
  }
24935
24935
  }
24936
24936
  return (d, f) => (O(), $(OU, Me(n, {
@@ -24941,7 +24941,7 @@ const [_U, TU] = cn("RovingFocusGroup"), rS = /* @__PURE__ */ j({
24941
24941
  }),
24942
24942
  onPointerup: f[1] || (f[1] = async (h) => {
24943
24943
  var m;
24944
- await Rt(), !h.defaultPrevented && (l.value || (m = h.currentTarget) == null || m.click());
24944
+ await It(), !h.defaultPrevented && (l.value || (m = h.currentTarget) == null || m.click());
24945
24945
  }),
24946
24946
  onKeydown: f[2] || (f[2] = async (h) => {
24947
24947
  const m = g(a).searchRef.value !== "";
@@ -25221,13 +25221,13 @@ const $U = /* @__PURE__ */ j({
25221
25221
  i.value = { x: m.clientX, y: m.clientY }, r.onOpenChange(!0);
25222
25222
  }
25223
25223
  async function d(m) {
25224
- n.value || (await Rt(), m.defaultPrevented || (l(), u(m), m.preventDefault()));
25224
+ n.value || (await It(), m.defaultPrevented || (l(), u(m), m.preventDefault()));
25225
25225
  }
25226
25226
  async function f(m) {
25227
- n.value || (await Rt(), E8(m) && !m.defaultPrevented && (l(), a.value = window.setTimeout(() => u(m), 700)));
25227
+ n.value || (await It(), E8(m) && !m.defaultPrevented && (l(), a.value = window.setTimeout(() => u(m), 700)));
25228
25228
  }
25229
25229
  async function h(m) {
25230
- n.value || (await Rt(), E8(m) && !m.defaultPrevented && l());
25230
+ n.value || (await It(), E8(m) && !m.defaultPrevented && l());
25231
25231
  }
25232
25232
  return (m, b) => (O(), ue(et, null, [
25233
25233
  L(g(tS), {
@@ -25403,7 +25403,7 @@ const $U = /* @__PURE__ */ j({
25403
25403
  "data-state": g(n).open.value ? "open" : "closed",
25404
25404
  onClick: s[0] || (s[0] = async (a) => {
25405
25405
  var l;
25406
- !i.disabled && a.button === 0 && a.ctrlKey === !1 && ((l = g(n)) == null || l.onOpenToggle(), await Rt(), g(n).open.value && a.preventDefault());
25406
+ !i.disabled && a.button === 0 && a.ctrlKey === !1 && ((l = g(n)) == null || l.onOpenToggle(), await It(), g(n).open.value && a.preventDefault());
25407
25407
  }),
25408
25408
  onKeydown: s[1] || (s[1] = Ul(
25409
25409
  (a) => {
@@ -26838,7 +26838,7 @@ const MW = /* @__PURE__ */ j({
26838
26838
  );
26839
26839
  d.value.style.minWidth = `${be}px`, d.value.style.right = `${ce}px`;
26840
26840
  }
26841
- const F = a.value, D = window.innerHeight - $r * 2, P = m.value.scrollHeight, K = window.getComputedStyle(h.value), Y = Number.parseInt(
26841
+ const F = a.value, D = window.innerHeight - $r * 2, P = m.value.scrollHeight, K = window.getComputedStyle(h.value), J = Number.parseInt(
26842
26842
  K.borderTopWidth,
26843
26843
  10
26844
26844
  ), Ee = Number.parseInt(K.paddingTop, 10), me = Number.parseInt(
@@ -26847,13 +26847,13 @@ const MW = /* @__PURE__ */ j({
26847
26847
  ), q = Number.parseInt(
26848
26848
  K.paddingBottom,
26849
26849
  10
26850
- ), U = Y + Ee + P + q + me, B = Math.min(
26850
+ ), U = J + Ee + P + q + me, B = Math.min(
26851
26851
  b.value.offsetHeight * 5,
26852
26852
  U
26853
- ), J = window.getComputedStyle(m.value), oe = Number.parseInt(J.paddingTop, 10), se = Number.parseInt(
26854
- J.paddingBottom,
26853
+ ), Y = window.getComputedStyle(m.value), oe = Number.parseInt(Y.paddingTop, 10), se = Number.parseInt(
26854
+ Y.paddingBottom,
26855
26855
  10
26856
- ), fe = C.top + C.height / 2 - $r, Re = D - fe, ye = b.value.offsetHeight / 2, rt = b.value.offsetTop + ye, Ke = Y + Ee + rt, it = U - Ke;
26856
+ ), fe = C.top + C.height / 2 - $r, Re = D - fe, ye = b.value.offsetHeight / 2, rt = b.value.offsetTop + ye, Ke = J + Ee + rt, it = U - Ke;
26857
26857
  if (Ke <= fe) {
26858
26858
  const te = b.value === F[F.length - 1];
26859
26859
  d.value.style.bottom = "0px";
@@ -26867,7 +26867,7 @@ const MW = /* @__PURE__ */ j({
26867
26867
  d.value.style.top = "0px";
26868
26868
  const de = Math.max(
26869
26869
  fe,
26870
- Y + m.value.offsetTop + (te ? oe : 0) + ye
26870
+ J + m.value.offsetTop + (te ? oe : 0) + ye
26871
26871
  ) + it;
26872
26872
  d.value.style.height = `${de}px`, m.value.scrollTop = Ke - fe + m.value.offsetTop;
26873
26873
  }
@@ -26876,7 +26876,7 @@ const MW = /* @__PURE__ */ j({
26876
26876
  }
26877
26877
  const S = V("");
26878
26878
  mt(async () => {
26879
- await Rt(), x(), h.value && (S.value = window.getComputedStyle(h.value).zIndex);
26879
+ await It(), x(), h.value && (S.value = window.getComputedStyle(h.value).zIndex);
26880
26880
  });
26881
26881
  function E(C) {
26882
26882
  C && u.value === !0 && (x(), w == null || w(), u.value = !1);
@@ -27204,19 +27204,19 @@ const MW = /* @__PURE__ */ j({
27204
27204
  return ((v = o.modelValue) == null ? void 0 : v.value) === e.value;
27205
27205
  }), l = V(!1), u = V(e.textValue ?? ""), d = Nr(void 0, "radix-vue-select-item-text");
27206
27206
  async function f(v) {
27207
- await Rt(), !(v != null && v.defaultPrevented) && (n.value || (o.onValueChange(e.value), o.onOpenChange(!1)));
27207
+ await It(), !(v != null && v.defaultPrevented) && (n.value || (o.onValueChange(e.value), o.onOpenChange(!1)));
27208
27208
  }
27209
27209
  async function h(v) {
27210
27210
  var w;
27211
- await Rt(), !v.defaultPrevented && (n.value ? (w = r.onItemLeave) == null || w.call(r) : v.currentTarget.focus({ preventScroll: !0 }));
27211
+ await It(), !v.defaultPrevented && (n.value ? (w = r.onItemLeave) == null || w.call(r) : v.currentTarget.focus({ preventScroll: !0 }));
27212
27212
  }
27213
27213
  async function m(v) {
27214
27214
  var w;
27215
- await Rt(), !v.defaultPrevented && v.currentTarget === go() && ((w = r.onItemLeave) == null || w.call(r));
27215
+ await It(), !v.defaultPrevented && v.currentTarget === go() && ((w = r.onItemLeave) == null || w.call(r));
27216
27216
  }
27217
27217
  async function b(v) {
27218
27218
  var w;
27219
- await Rt(), !(v.defaultPrevented || ((w = r.searchRef) == null ? void 0 : w.value) !== "" && v.key === " ") && (OW.includes(v.key) && f(), v.key === " " && v.preventDefault());
27219
+ await It(), !(v.defaultPrevented || ((w = r.searchRef) == null ? void 0 : w.value) !== "" && v.key === " ") && (OW.includes(v.key) && f(), v.key === " " && v.preventDefault());
27220
27220
  }
27221
27221
  if (e.value === "")
27222
27222
  throw new Error(
@@ -28595,7 +28595,7 @@ function zj(t, e = {}) {
28595
28595
  }, Te = ie();
28596
28596
  return z && H.resetPeek(), Te;
28597
28597
  }
28598
- function Y(H, z) {
28598
+ function J(H, z) {
28599
28599
  const ie = H.currentChar();
28600
28600
  return ie === ws ? ws : z(ie) ? (H.next(), ie) : null;
28601
28601
  }
@@ -28608,7 +28608,7 @@ function zj(t, e = {}) {
28608
28608
  z === 36;
28609
28609
  }
28610
28610
  function me(H) {
28611
- return Y(H, Ee);
28611
+ return J(H, Ee);
28612
28612
  }
28613
28613
  function q(H) {
28614
28614
  const z = H.charCodeAt(0);
@@ -28620,14 +28620,14 @@ function zj(t, e = {}) {
28620
28620
  z === 45;
28621
28621
  }
28622
28622
  function U(H) {
28623
- return Y(H, q);
28623
+ return J(H, q);
28624
28624
  }
28625
28625
  function B(H) {
28626
28626
  const z = H.charCodeAt(0);
28627
28627
  return z >= 48 && z <= 57;
28628
28628
  }
28629
- function J(H) {
28630
- return Y(H, B);
28629
+ function Y(H) {
28630
+ return J(H, B);
28631
28631
  }
28632
28632
  function oe(H) {
28633
28633
  const z = H.charCodeAt(0);
@@ -28636,11 +28636,11 @@ function zj(t, e = {}) {
28636
28636
  z >= 97 && z <= 102;
28637
28637
  }
28638
28638
  function se(H) {
28639
- return Y(H, oe);
28639
+ return J(H, oe);
28640
28640
  }
28641
28641
  function fe(H) {
28642
28642
  let z = "", ie = "";
28643
- for (; z = J(H); )
28643
+ for (; z = Y(H); )
28644
28644
  ie += z;
28645
28645
  return ie;
28646
28646
  }
@@ -28681,7 +28681,7 @@ function zj(t, e = {}) {
28681
28681
  function it(H) {
28682
28682
  w(H), b(H, "'");
28683
28683
  let z = "", ie = "";
28684
- for (; z = Y(H, Ke); )
28684
+ for (; z = J(H, Ke); )
28685
28685
  z === "\\" ? ie += te(H) : ie += z;
28686
28686
  const Te = H.currentChar();
28687
28687
  return Te === Eo || Te === ws ? (f(ht.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Te === Eo && (H.next(), b(H, "'")), ie) : (b(H, "'"), ie);
@@ -28719,7 +28719,7 @@ function zj(t, e = {}) {
28719
28719
  function be(H) {
28720
28720
  w(H);
28721
28721
  let z = "", ie = "";
28722
- for (; z = Y(H, xe); )
28722
+ for (; z = J(H, xe); )
28723
28723
  ie += z;
28724
28724
  return ie;
28725
28725
  }
@@ -29897,7 +29897,7 @@ function Zq(t = {}) {
29897
29897
  process.env.NODE_ENV !== "production" && an(t.messageCompiler) && _S($a(Bo.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
29898
29898
  const T = an(t.messageResolver) ? t.messageResolver : AS || Hq, k = an(t.localeFallbacker) ? t.localeFallbacker : OS || Nq, A = zt(t.fallbackContext) ? t.fallbackContext : void 0, F = t, D = zt(F.__datetimeFormatters) ? F.__datetimeFormatters : /* @__PURE__ */ new Map(), P = zt(F.__numberFormatters) ? F.__numberFormatters : /* @__PURE__ */ new Map(), K = zt(F.__meta) ? F.__meta : {};
29899
29899
  $8++;
29900
- const Y = {
29900
+ const J = {
29901
29901
  version: n,
29902
29902
  cid: $8,
29903
29903
  locale: o,
@@ -29921,7 +29921,7 @@ function Zq(t = {}) {
29921
29921
  onWarn: e,
29922
29922
  __meta: K
29923
29923
  };
29924
- return Y.datetimeFormats = a, Y.numberFormats = l, Y.__datetimeFormatters = D, Y.__numberFormatters = P, process.env.NODE_ENV !== "production" && (Y.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Tq(Y, n, K), Y;
29924
+ return J.datetimeFormats = a, J.numberFormats = l, J.__datetimeFormatters = D, J.__numberFormatters = P, process.env.NODE_ENV !== "production" && (J.__v_emitter = F.__v_emitter != null ? F.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && Tq(J, n, K), J;
29925
29925
  }
29926
29926
  const g1 = (t) => ({ [t]: en() });
29927
29927
  function e0(t, e) {
@@ -30199,18 +30199,18 @@ function K8(t, ...e) {
30199
30199
  }, F = Sr(C) ? C : FS(t, l, S, C, T, A);
30200
30200
  if (k)
30201
30201
  return C;
30202
- const D = fK(t, S, E, u), P = aK(D), K = uK(t, F, P), Y = o ? o(K, l) : K;
30202
+ const D = fK(t, S, E, u), P = aK(D), K = uK(t, F, P), J = o ? o(K, l) : K;
30203
30203
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
30204
30204
  const Ee = {
30205
30205
  timestamp: Date.now(),
30206
30206
  key: Ve(l) ? l : Sr(C) ? C.key : "",
30207
30207
  locale: S || (Sr(C) ? C.locale : ""),
30208
30208
  format: Ve(C) ? C : Sr(C) ? C.source : "",
30209
- message: Y
30209
+ message: J
30210
30210
  };
30211
30211
  Ee.meta = jn({}, t.__meta, /* @__PURE__ */ Jq() || {}), kq(Ee);
30212
30212
  }
30213
- return Y;
30213
+ return J;
30214
30214
  }
30215
30215
  function lK(t) {
30216
30216
  Sn(t.list) ? t.list = t.list.map((e) => Ve(e) ? k8(e) : e) : zt(t.named) && Object.keys(t.named).forEach((e) => {
@@ -30657,7 +30657,7 @@ function V2(t = {}) {
30657
30657
  set: (le) => {
30658
30658
  l.value = le, A.fallbackLocale = l.value, Gu(A, a.value, le);
30659
30659
  }
30660
- }), Y = X(() => u.value), Ee = /* @__PURE__ */ X(() => d.value), me = /* @__PURE__ */ X(() => f.value);
30660
+ }), J = X(() => u.value), Ee = /* @__PURE__ */ X(() => d.value), me = /* @__PURE__ */ X(() => f.value);
30661
30661
  function q() {
30662
30662
  return an(S) ? S : null;
30663
30663
  }
@@ -30667,7 +30667,7 @@ function V2(t = {}) {
30667
30667
  function B() {
30668
30668
  return w;
30669
30669
  }
30670
- function J(le) {
30670
+ function Y(le) {
30671
30671
  le !== null && (x = Z8(le)), w = le, A.missing = x;
30672
30672
  }
30673
30673
  function oe(le, Ae) {
@@ -30827,7 +30827,7 @@ function V2(t = {}) {
30827
30827
  get availableLocales() {
30828
30828
  return Object.keys(u.value).sort();
30829
30829
  },
30830
- messages: Y,
30830
+ messages: J,
30831
30831
  get modifiers() {
30832
30832
  return T;
30833
30833
  },
@@ -30880,7 +30880,7 @@ function V2(t = {}) {
30880
30880
  getPostTranslationHandler: q,
30881
30881
  setPostTranslationHandler: U,
30882
30882
  getMissingHandler: B,
30883
- setMissingHandler: J,
30883
+ setMissingHandler: Y,
30884
30884
  [HS]: ke
30885
30885
  };
30886
30886
  return st.datetimeFormats = Ee, st.numberFormats = me, st.rt = Re, st.te = $e, st.tm = Pe, st.d = ye, st.n = rt, st.getDateTimeFormat = H, st.setDateTimeFormat = z, st.mergeDateTimeFormat = ie, st.getNumberFormat = Te, st.setNumberFormat = Ue, st.mergeNumberFormat = bt, st[zS] = n, st[Ug] = de, st[Wg] = be, st[jg] = xe, process.env.NODE_ENV !== "production" && (st[Ha] = (le) => {
@@ -31804,7 +31804,7 @@ const aG = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden [
31804
31804
  customClassToolbar: {}
31805
31805
  },
31806
31806
  setup(t) {
31807
- const e = hR(() => import("./BulkSpellChecker-BSU-I-_J.mjs")), { t: n } = Zt(), o = t, r = Jt("isEditable", V(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = X(() => {
31807
+ const e = hR(() => import("./BulkSpellChecker-Cn3sOYpm.mjs")), { t: n } = Zt(), o = t, r = Jt("isEditable", V(!0)), i = ["fontSize", "fontFamily", "superText", "spellchecker", "fontSizeIncreaseDecrease"], s = X(() => {
31808
31808
  const f = [...o.editor.extensionManager.extensions].sort((m, b) => m.name === "superText" ? 1 : b.name === "superText" ? -1 : 0);
31809
31809
  let h = [];
31810
31810
  for (const m of f) {
@@ -34044,7 +34044,7 @@ const dX = { key: 0 }, fX = {
34044
34044
  ad(A, F);
34045
34045
  }
34046
34046
  return (A, F) => {
34047
- const D = dt, P = fi, K = bu, Y = Ip, Ee = iu, me = Vc, q = q2, U = j2, B = el, J = Qa;
34047
+ const D = dt, P = fi, K = bu, J = Ip, Ee = iu, me = Vc, q = q2, U = j2, B = el, Y = Qa;
34048
34048
  return O(), $(g(cd), {
34049
34049
  editor: A.editor,
34050
34050
  "plugin-key": "image-menus-123",
@@ -34079,7 +34079,7 @@ const dX = { key: 0 }, fX = {
34079
34079
  orientation: "vertical",
34080
34080
  class: "mx-1 me-2 h-[16px]"
34081
34081
  }),
34082
- L(J, {
34082
+ L(Y, {
34083
34083
  open: h.value,
34084
34084
  "onUpdate:open": F[4] || (F[4] = (oe) => h.value = oe)
34085
34085
  }, {
@@ -34096,7 +34096,7 @@ const dX = { key: 0 }, fX = {
34096
34096
  L(B, { class: "w-84" }, {
34097
34097
  default: N(() => [
34098
34098
  Q("div", vX, [
34099
- L(Y, {
34099
+ L(J, {
34100
34100
  for: "maxWidth",
34101
34101
  class: "whitespace-nowrap"
34102
34102
  }, {
@@ -34114,7 +34114,7 @@ const dX = { key: 0 }, fX = {
34114
34114
  onInput: S,
34115
34115
  onKeyup: Ul(d, ["enter"])
34116
34116
  }, null, 8, ["modelValue"]),
34117
- L(Y, {
34117
+ L(J, {
34118
34118
  for: "maxWidth",
34119
34119
  class: "whitespace-nowrap"
34120
34120
  }, {
@@ -34581,7 +34581,7 @@ const zX = () => {
34581
34581
  (ye = A.value) == null || ye.closeDialog();
34582
34582
  }
34583
34583
  const K = V([]);
34584
- function Y(ye) {
34584
+ function J(ye) {
34585
34585
  K.value = ye;
34586
34586
  }
34587
34587
  function Ee(ye, rt, Ke = !0) {
@@ -34595,9 +34595,9 @@ const zX = () => {
34595
34595
  function B(ye) {
34596
34596
  U.value = ye;
34597
34597
  }
34598
- const J = V();
34598
+ const Y = V();
34599
34599
  function oe(ye) {
34600
- J.value = ye;
34600
+ Y.value = ye;
34601
34601
  }
34602
34602
  const se = V(null), fe = V();
34603
34603
  function Re(ye) {
@@ -34630,14 +34630,14 @@ const zX = () => {
34630
34630
  openSuperInput: D,
34631
34631
  closeSuperInput: P,
34632
34632
  imageAttachments: K,
34633
- setImageAttachment: Y,
34633
+ setImageAttachment: J,
34634
34634
  getUpdatedContentBySuperText: Ee,
34635
34635
  textAlert: u,
34636
34636
  setTextAlert: me,
34637
34637
  focusFirstInvalidChar: q,
34638
34638
  editorSelectedMobile: U,
34639
34639
  setEditorSelectedMobile: B,
34640
- editorContentMobile: J,
34640
+ editorContentMobile: Y,
34641
34641
  setEditorContentMobile: oe,
34642
34642
  footerTargetRef: se,
34643
34643
  editorContentInstance: fe,
@@ -36181,19 +36181,19 @@ const _1 = C_, Aw = Ds, Ow = Symbol("nomatch"), pY = 7, I_ = function(t) {
36181
36181
  return a.noHighlightRe.test(B);
36182
36182
  }
36183
36183
  function u(B) {
36184
- let J = B.className + " ";
36185
- J += B.parentNode ? B.parentNode.className : "";
36186
- const oe = a.languageDetectRe.exec(J);
36184
+ let Y = B.className + " ";
36185
+ Y += B.parentNode ? B.parentNode.className : "";
36186
+ const oe = a.languageDetectRe.exec(Y);
36187
36187
  if (oe) {
36188
36188
  const se = D(oe[1]);
36189
36189
  return se || (kw(i.replace("{}", oe[1])), kw("Falling back to no-highlight mode for this block.", B)), se ? oe[1] : "no-highlight";
36190
36190
  }
36191
- return J.split(/\s+/).find((se) => l(se) || D(se));
36191
+ return Y.split(/\s+/).find((se) => l(se) || D(se));
36192
36192
  }
36193
- function d(B, J, oe) {
36193
+ function d(B, Y, oe) {
36194
36194
  let se = "", fe = "";
36195
- typeof J == "object" ? (se = B, oe = J.ignoreIllegals, fe = J.language) : (kl("10.7.0", "highlight(lang, code, ...args) has been deprecated."), kl("10.7.0", `Please use highlight(code, options) instead.
36196
- https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe === void 0 && (oe = !0);
36195
+ typeof Y == "object" ? (se = B, oe = Y.ignoreIllegals, fe = Y.language) : (kl("10.7.0", "highlight(lang, code, ...args) has been deprecated."), kl("10.7.0", `Please use highlight(code, options) instead.
36196
+ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = Y), oe === void 0 && (oe = !0);
36197
36197
  const Re = {
36198
36198
  code: se,
36199
36199
  language: fe
@@ -36202,7 +36202,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36202
36202
  const ye = Re.result ? Re.result : f(Re.language, Re.code, oe);
36203
36203
  return ye.code = Re.code, q("after:highlight", ye), ye;
36204
36204
  }
36205
- function f(B, J, oe, se) {
36205
+ function f(B, Y, oe, se) {
36206
36206
  const fe = /* @__PURE__ */ Object.create(null);
36207
36207
  function Re(we, Ne) {
36208
36208
  return we.keywords[Ne];
@@ -36294,7 +36294,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36294
36294
  return ot.skip ? Ue += Ne : (ot.excludeBegin && (Ue += Ne), Ke(), !ot.returnBegin && !ot.excludeBegin && (Ue = Ne)), de(ot, we), ot.returnBegin ? 0 : Ne.length;
36295
36295
  }
36296
36296
  function $e(we) {
36297
- const Ne = we[0], ot = J.substring(we.index), Ct = xe(z, we, ot);
36297
+ const Ne = we[0], ot = Y.substring(we.index), Ct = xe(z, we, ot);
36298
36298
  if (!Ct)
36299
36299
  return Ow;
36300
36300
  const Wt = z;
@@ -36316,7 +36316,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36316
36316
  if (Ue += we, ot == null)
36317
36317
  return Ke(), 0;
36318
36318
  if (Pe.type === "begin" && Ne.type === "end" && Pe.index === Ne.index && ot === "") {
36319
- if (Ue += J.slice(Ne.index, Ne.index + 1), !r) {
36319
+ if (Ue += Y.slice(Ne.index, Ne.index + 1), !r) {
36320
36320
  const Ct = new Error(`0 width match regex (${B})`);
36321
36321
  throw Ct.languageName = B, Ct.badRule = Pe.rule, Ct;
36322
36322
  }
@@ -36348,16 +36348,16 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36348
36348
  let Ue = "", bt = 0, st = 0, le = 0, Ae = !1;
36349
36349
  try {
36350
36350
  if (pt.__emitTokens)
36351
- pt.__emitTokens(J, Te);
36351
+ pt.__emitTokens(Y, Te);
36352
36352
  else {
36353
36353
  for (z.matcher.considerAll(); ; ) {
36354
36354
  le++, Ae ? Ae = !1 : z.matcher.considerAll(), z.matcher.lastIndex = st;
36355
- const we = z.matcher.exec(J);
36355
+ const we = z.matcher.exec(Y);
36356
36356
  if (!we) break;
36357
- const Ne = J.substring(st, we.index), ot = nt(Ne, we);
36357
+ const Ne = Y.substring(st, we.index), ot = nt(Ne, we);
36358
36358
  st = we.index + ot;
36359
36359
  }
36360
- nt(J.substring(st));
36360
+ nt(Y.substring(st));
36361
36361
  }
36362
36362
  return Te.finalize(), H = Te.toHTML(), {
36363
36363
  language: B,
@@ -36371,13 +36371,13 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36371
36371
  if (we.message && we.message.includes("Illegal"))
36372
36372
  return {
36373
36373
  language: B,
36374
- value: _1(J),
36374
+ value: _1(Y),
36375
36375
  illegal: !0,
36376
36376
  relevance: 0,
36377
36377
  _illegalBy: {
36378
36378
  message: we.message,
36379
36379
  index: st,
36380
- context: J.slice(st - 100, st + 100),
36380
+ context: Y.slice(st - 100, st + 100),
36381
36381
  mode: we.mode,
36382
36382
  resultSoFar: H
36383
36383
  },
@@ -36386,7 +36386,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36386
36386
  if (r)
36387
36387
  return {
36388
36388
  language: B,
36389
- value: _1(J),
36389
+ value: _1(Y),
36390
36390
  illegal: !1,
36391
36391
  relevance: 0,
36392
36392
  errorRaised: we,
@@ -36397,18 +36397,18 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36397
36397
  }
36398
36398
  }
36399
36399
  function h(B) {
36400
- const J = {
36400
+ const Y = {
36401
36401
  value: _1(B),
36402
36402
  illegal: !1,
36403
36403
  relevance: 0,
36404
36404
  _top: s,
36405
36405
  _emitter: new a.__emitter(a)
36406
36406
  };
36407
- return J._emitter.addText(B), J;
36407
+ return Y._emitter.addText(B), Y;
36408
36408
  }
36409
- function m(B, J) {
36410
- J = J || a.languages || Object.keys(e);
36411
- const oe = h(B), se = J.filter(D).filter(K).map(
36409
+ function m(B, Y) {
36410
+ Y = Y || a.languages || Object.keys(e);
36411
+ const oe = h(B), se = Y.filter(D).filter(K).map(
36412
36412
  (Ke) => f(Ke, B, !1)
36413
36413
  );
36414
36414
  se.unshift(oe);
@@ -36424,12 +36424,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36424
36424
  }), [Re, ye] = fe, rt = Re;
36425
36425
  return rt.secondBest = ye, rt;
36426
36426
  }
36427
- function b(B, J, oe) {
36428
- const se = J && n[J] || oe;
36427
+ function b(B, Y, oe) {
36428
+ const se = Y && n[Y] || oe;
36429
36429
  B.classList.add("hljs"), B.classList.add(`language-${se}`);
36430
36430
  }
36431
36431
  function v(B) {
36432
- let J = null;
36432
+ let Y = null;
36433
36433
  const oe = u(B);
36434
36434
  if (l(oe)) return;
36435
36435
  if (q(
@@ -36444,8 +36444,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36444
36444
  "One of your code blocks includes unescaped HTML.",
36445
36445
  B.innerHTML
36446
36446
  );
36447
- J = B;
36448
- const se = J.textContent, fe = oe ? d(se, { language: oe, ignoreIllegals: !0 }) : m(se);
36447
+ Y = B;
36448
+ const se = Y.textContent, fe = oe ? d(se, { language: oe, ignoreIllegals: !0 }) : m(se);
36449
36449
  B.innerHTML = fe.value, B.dataset.highlighted = "yes", b(B, oe, fe.language), B.result = {
36450
36450
  language: fe.language,
36451
36451
  // TODO: remove with version 11.0
@@ -36477,10 +36477,10 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36477
36477
  E && C();
36478
36478
  }
36479
36479
  typeof window < "u" && window.addEventListener && window.addEventListener("DOMContentLoaded", T, !1);
36480
- function k(B, J) {
36480
+ function k(B, Y) {
36481
36481
  let oe = null;
36482
36482
  try {
36483
- oe = J(t);
36483
+ oe = Y(t);
36484
36484
  } catch (se) {
36485
36485
  if (Oa("Language definition for '{}' could not be registered.".replace("{}", B)), r)
36486
36486
  Oa(se);
@@ -36488,12 +36488,12 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36488
36488
  throw se;
36489
36489
  oe = s;
36490
36490
  }
36491
- oe.name || (oe.name = B), e[B] = oe, oe.rawDefinition = J.bind(null, t), oe.aliases && P(oe.aliases, { languageName: B });
36491
+ oe.name || (oe.name = B), e[B] = oe, oe.rawDefinition = Y.bind(null, t), oe.aliases && P(oe.aliases, { languageName: B });
36492
36492
  }
36493
36493
  function A(B) {
36494
36494
  delete e[B];
36495
- for (const J of Object.keys(n))
36496
- n[J] === B && delete n[J];
36495
+ for (const Y of Object.keys(n))
36496
+ n[Y] === B && delete n[Y];
36497
36497
  }
36498
36498
  function F() {
36499
36499
  return Object.keys(e);
@@ -36501,37 +36501,37 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = B, se = J), oe =
36501
36501
  function D(B) {
36502
36502
  return B = (B || "").toLowerCase(), e[B] || e[n[B]];
36503
36503
  }
36504
- function P(B, { languageName: J }) {
36504
+ function P(B, { languageName: Y }) {
36505
36505
  typeof B == "string" && (B = [B]), B.forEach((oe) => {
36506
- n[oe.toLowerCase()] = J;
36506
+ n[oe.toLowerCase()] = Y;
36507
36507
  });
36508
36508
  }
36509
36509
  function K(B) {
36510
- const J = D(B);
36511
- return J && !J.disableAutodetect;
36510
+ const Y = D(B);
36511
+ return Y && !Y.disableAutodetect;
36512
36512
  }
36513
- function Y(B) {
36514
- B["before:highlightBlock"] && !B["before:highlightElement"] && (B["before:highlightElement"] = (J) => {
36513
+ function J(B) {
36514
+ B["before:highlightBlock"] && !B["before:highlightElement"] && (B["before:highlightElement"] = (Y) => {
36515
36515
  B["before:highlightBlock"](
36516
- Object.assign({ block: J.el }, J)
36516
+ Object.assign({ block: Y.el }, Y)
36517
36517
  );
36518
- }), B["after:highlightBlock"] && !B["after:highlightElement"] && (B["after:highlightElement"] = (J) => {
36518
+ }), B["after:highlightBlock"] && !B["after:highlightElement"] && (B["after:highlightElement"] = (Y) => {
36519
36519
  B["after:highlightBlock"](
36520
- Object.assign({ block: J.el }, J)
36520
+ Object.assign({ block: Y.el }, Y)
36521
36521
  );
36522
36522
  });
36523
36523
  }
36524
36524
  function Ee(B) {
36525
- Y(B), o.push(B);
36525
+ J(B), o.push(B);
36526
36526
  }
36527
36527
  function me(B) {
36528
- const J = o.indexOf(B);
36529
- J !== -1 && o.splice(J, 1);
36528
+ const Y = o.indexOf(B);
36529
+ Y !== -1 && o.splice(Y, 1);
36530
36530
  }
36531
- function q(B, J) {
36531
+ function q(B, Y) {
36532
36532
  const oe = B;
36533
36533
  o.forEach(function(se) {
36534
- se[oe] && se[oe](J);
36534
+ se[oe] && se[oe](Y);
36535
36535
  });
36536
36536
  }
36537
36537
  function U(B) {
@@ -39448,8 +39448,8 @@ function NZ({
39448
39448
  [Xp, Jp]
39449
39449
  // <>
39450
39450
  ];
39451
- for (let Y = 0; Y < K.length; Y++) {
39452
- const [Ee, me] = K[Y], q = Ie(T, Ee);
39451
+ for (let J = 0; J < K.length; J++) {
39452
+ const [Ee, me] = K[J], q = Ie(T, Ee);
39453
39453
  Ie(k, Ee, q), Ie(q, me, T);
39454
39454
  const U = wr(Bf);
39455
39455
  Ot(q, e, U);
@@ -42793,7 +42793,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
42793
42793
  () => n.open,
42794
42794
  async (b) => {
42795
42795
  if (b) {
42796
- await Rt();
42796
+ await It();
42797
42797
  const v = document.querySelector(".draggable-dialog");
42798
42798
  if (v) {
42799
42799
  const { width: w, height: x } = v.getBoundingClientRect(), S = window.innerWidth, E = window.innerHeight;
@@ -42987,12 +42987,12 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
42987
42987
  return (A = o.parentEditor) == null ? void 0 : A.extensionManager.extensions.find((F) => F.name === "spellchecker");
42988
42988
  }), d = X(
42989
42989
  () => {
42990
- var A, F, D, P, K, Y, Ee;
42990
+ var A, F, D, P, K, J, Ee;
42991
42991
  return Y9.configure({
42992
42992
  proofreader: new C7({
42993
42993
  api: (F = (A = u.value) == null ? void 0 : A.options.proofreader) == null ? void 0 : F.api,
42994
42994
  limit: (P = (D = u.value) == null ? void 0 : D.options.proofreader) == null ? void 0 : P.limit,
42995
- transfer: (Y = (K = u.value) == null ? void 0 : K.options.proofreader) == null ? void 0 : Y.transfer,
42995
+ transfer: (J = (K = u.value) == null ? void 0 : K.options.proofreader) == null ? void 0 : J.transfer,
42996
42996
  enabled: l.value
42997
42997
  }),
42998
42998
  uiStrings: (Ee = u.value) == null ? void 0 : Ee.options.uiStrings
@@ -43051,28 +43051,28 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
43051
43051
  E.font = F.font;
43052
43052
  const D = 20, P = () => Math.max(0, (v.value || 0) - D);
43053
43053
  function K(q, U) {
43054
- let B = 1, J = q.length, oe = 0;
43055
- for (; B <= J; ) {
43056
- const se = Math.floor((B + J) / 2);
43057
- E.measureText(q.slice(0, se)).width <= U ? (oe = se, B = se + 1) : J = se - 1;
43054
+ let B = 1, Y = q.length, oe = 0;
43055
+ for (; B <= Y; ) {
43056
+ const se = Math.floor((B + Y) / 2);
43057
+ E.measureText(q.slice(0, se)).width <= U ? (oe = se, B = se + 1) : Y = se - 1;
43058
43058
  }
43059
43059
  return oe;
43060
43060
  }
43061
- let Y = "";
43061
+ let J = "";
43062
43062
  const Ee = [];
43063
43063
  for (const q of A) {
43064
43064
  if (q === `
43065
43065
  `) {
43066
- Ee.push(Y), Y = "";
43066
+ Ee.push(J), J = "";
43067
43067
  continue;
43068
43068
  }
43069
- if (Y += q, E.measureText(Y).width > P())
43070
- for (; E.measureText(Y).width > P(); ) {
43071
- const U = K(Y, P());
43072
- U <= 0 ? (Ee.push(Y.charAt(0)), Y = Y.slice(1)) : (Ee.push(Y.slice(0, U)), Y = Y.slice(U));
43069
+ if (J += q, E.measureText(J).width > P())
43070
+ for (; E.measureText(J).width > P(); ) {
43071
+ const U = K(J, P());
43072
+ U <= 0 ? (Ee.push(J.charAt(0)), J = J.slice(1)) : (Ee.push(J.slice(0, U)), J = J.slice(U));
43073
43073
  }
43074
43074
  }
43075
- return Ee.push(Y), Ee.map((q) => `<p>${q}</p>`).join("");
43075
+ return Ee.push(J), Ee.map((q) => `<p>${q}</p>`).join("");
43076
43076
  }
43077
43077
  const { isScrolling: T, handleScroll: k } = uu();
43078
43078
  return e({ insertSpecialCharater: h, isChecked: l, toggleSpellCheck: m, wrapText: C, editor: f }), (A, F) => (O(), ue("div", {
@@ -43110,7 +43110,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
43110
43110
  },
43111
43111
  emits: ["close", "save"],
43112
43112
  setup(t, { emit: e }) {
43113
- var Y, Ee;
43113
+ var J, Ee;
43114
43114
  const n = e, o = t, { t: r } = Zt(), i = V(""), s = V(""), a = V(null), l = V(!1), u = lr({ x: 0, y: 0 }), d = V(!1), f = { x: 0, y: 0 }, h = V(!1), m = V(!1), b = V(!1), v = (me) => {
43115
43115
  d.value = !0, f.x = me.clientX - u.x, f.y = me.clientY - u.y, document.addEventListener("mousemove", w), document.addEventListener("mouseup", x);
43116
43116
  }, w = (me) => {
@@ -43122,11 +43122,11 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
43122
43122
  () => o.open,
43123
43123
  async (me) => {
43124
43124
  if (me) {
43125
- m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await Rt();
43125
+ m.value = !1, o.superTextInit && (i.value = o.superTextInit, o.superTextElementId && (s.value = o.superTextElementId)), await It();
43126
43126
  const q = document.querySelector(".draggable-dialog");
43127
43127
  if (q) {
43128
- const { width: U, height: B } = q.getBoundingClientRect(), J = window.innerHeight;
43129
- u.x = 0, u.y = (J - B) / 2;
43128
+ const { width: U, height: B } = q.getBoundingClientRect(), Y = window.innerHeight;
43129
+ u.x = 0, u.y = (Y - B) / 2;
43130
43130
  }
43131
43131
  }
43132
43132
  },
@@ -43143,7 +43143,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
43143
43143
  i.value = a.value.wrapText(), s.value = "", m.value ? h.value = !0 : n("close"), n("save", i.value), i.value = "";
43144
43144
  }, C = () => {
43145
43145
  h.value = !1, n("close");
43146
- }, T = (Ee = (Y = o.editor) == null ? void 0 : Y.extensionManager.extensions.find((me) => me.name === "superText")) == null ? void 0 : Ee.options.specialCharModal, k = e5("recentSpecialChars", []), A = (me) => {
43146
+ }, T = (Ee = (J = o.editor) == null ? void 0 : J.extensionManager.extensions.find((me) => me.name === "superText")) == null ? void 0 : Ee.options.specialCharModal, k = e5("recentSpecialChars", []), A = (me) => {
43147
43147
  if (!me) return;
43148
43148
  const q = (k.value ?? []).filter((U) => U !== me);
43149
43149
  q.unshift(me), k.value = q.slice(0, 5);
@@ -43165,7 +43165,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
43165
43165
  }), De(i, (me) => {
43166
43166
  !o.superTextElementId || o.superTextElementId === "" || (m.value = me !== (o.superTextInit ?? ""));
43167
43167
  }), (me, q) => {
43168
- const U = Hv, B = $v, J = Fv, oe = Bv, se = Pv, fe = Dv, Re = Lv, ye = Yee;
43168
+ const U = Hv, B = $v, Y = Fv, oe = Bv, se = Pv, fe = Dv, Re = Lv, ye = Yee;
43169
43169
  return O(), ue(et, null, [
43170
43170
  L(Re, { open: me.open }, {
43171
43171
  default: N(() => [
@@ -43189,7 +43189,7 @@ const c0 = "paragraph", Cr = "page", C9 = "Extend", Cu = "Node", hee = Cu + C9,
43189
43189
  right: "15px"
43190
43190
  })
43191
43191
  }, [
43192
- L(J, {
43192
+ L(Y, {
43193
43193
  class: "bg-blue-500 text-white p-2.5 rounded-t-[5px] cursor-move",
43194
43194
  onMousedown: En(v, ["prevent"])
43195
43195
  }, {
@@ -44375,9 +44375,9 @@ const rx = (t) => t.command(({ tr: e }) => {
44375
44375
  else
44376
44376
  return;
44377
44377
  const { width: F, height: D } = g(r), P = F / D;
44378
- let K = Number(e.node.attrs.width) || F, Y = Number(e.node.attrs.height) || Math.round(K / P);
44378
+ let K = Number(e.node.attrs.width) || F, J = Number(e.node.attrs.height) || Math.round(K / P);
44379
44379
  const Ee = g(o).width;
44380
- K = Math.min(K > Ee ? Ee : K, Ee), Y = Math.round(K / P), Object.assign(s.value, { x: T, y: k, w: K, h: Y, dir: C }), i.value = !0, v();
44380
+ K = Math.min(K > Ee ? Ee : K, Ee), J = Math.round(K / P), Object.assign(s.value, { x: T, y: k, w: K, h: J, dir: C }), i.value = !0, v();
44381
44381
  }
44382
44382
  const m = xt.throttle((E) => {
44383
44383
  if (!g(i)) return;
@@ -44849,8 +44849,8 @@ function $te(t, e) {
44849
44849
  D > A && (P = D - k);
44850
44850
  const K = C.state.doc.content.size;
44851
44851
  P < 0 && (P = 0), P > K && (P = K);
44852
- const Y = T.type.create(T.attrs), Ee = C.state.tr;
44853
- Ee.delete(A, F), Ee.insert(P, Y), C.dispatch(Ee), b();
44852
+ const J = T.type.create(T.attrs), Ee = C.state.tr;
44853
+ Ee.delete(A, F), Ee.insert(P, J), C.dispatch(Ee), b();
44854
44854
  return;
44855
44855
  }
44856
44856
  if (o) {
@@ -44872,74 +44872,78 @@ const zte = ["innerHTML"], Vte = ["book-mark-node-id", "book-mark-content", "nod
44872
44872
  props: qa,
44873
44873
  setup(t) {
44874
44874
  const e = t, n = V(!1), o = Jt("isMobile", !1), r = X(() => e.editor.storage.superText.enable), i = To(qo.RENDER_SUPER_TEXT), { onTouchStart: s, onTouchMove: a, onTouchEnd: l } = $te(e, r), u = X(() => {
44875
- const E = e.getPos(), C = e.editor.state.doc.resolve(E);
44876
- for (let T = C.depth; T > 0; T--) {
44877
- const k = C.node(T);
44878
- if (k.type.name === "paragraph")
44879
- return k;
44875
+ const C = e.getPos(), T = e.editor.state.doc.resolve(C);
44876
+ for (let k = T.depth; k > 0; k--) {
44877
+ const A = T.node(k);
44878
+ if (A.type.name === "paragraph")
44879
+ return A;
44880
44880
  }
44881
44881
  return null;
44882
44882
  }), d = X(() => {
44883
- var E;
44884
- return ((E = u.value) == null ? void 0 : E.attrs.id) || "";
44885
- }), f = Jt("canEditSuper", V(!0));
44886
- function h(E) {
44887
- var D, P;
44888
- if (p0(E)) {
44889
- v();
44883
+ var C;
44884
+ return ((C = u.value) == null ? void 0 : C.attrs.id) || "";
44885
+ }), f = Jt("canEditSuper", V(!0)), h = () => {
44886
+ i.emit({
44887
+ action: "render"
44888
+ });
44889
+ };
44890
+ function m(C) {
44891
+ var P, K;
44892
+ if (p0(C)) {
44893
+ w();
44890
44894
  return;
44891
44895
  }
44892
- const C = e.getPos(), T = (D = e.editor) == null ? void 0 : D.state.doc.nodeAt(C), k = E.trim(), { [yt.ELEMENT_ID]: A, ...F } = (T == null ? void 0 : T.attrs) || {};
44893
- (P = e.editor) == null || P.view.dispatch(
44894
- e.editor.state.tr.setNodeMarkup(C, void 0, {
44895
- ...F,
44896
- [yt.TEXT]: k
44896
+ const T = e.getPos(), k = (P = e.editor) == null ? void 0 : P.state.doc.nodeAt(T), A = C.trim(), { [yt.ELEMENT_ID]: F, ...D } = (k == null ? void 0 : k.attrs) || {};
44897
+ (K = e.editor) == null || K.view.dispatch(
44898
+ e.editor.state.tr.setNodeMarkup(T, void 0, {
44899
+ ...D,
44900
+ [yt.TEXT]: A
44897
44901
  })
44898
44902
  ), requestAnimationFrame(() => {
44899
- e.editor.commands.setTextSelection(C + 1), e.editor.view.focus();
44903
+ e.editor.commands.setTextSelection(T + 1), e.editor.view.focus();
44900
44904
  });
44901
44905
  }
44902
- function m(E) {
44903
- const C = e.node.attrs[yt.TEXT], T = e.node.attrs[yt.ID], A = {
44904
- lineId: E.target.querySelector(`[node-id="${T}"]`).getAttribute("line-id"),
44905
- dataId: T,
44906
- text: C
44906
+ function b(C) {
44907
+ const T = e.node.attrs[yt.TEXT], k = e.node.attrs[yt.ID], F = {
44908
+ lineId: C.target.querySelector(`[node-id="${k}"]`).getAttribute("line-id"),
44909
+ dataId: k,
44910
+ text: T
44907
44911
  };
44908
- i.emit({ action: "hover", payload: A });
44912
+ i.emit({ action: "hover", payload: F });
44909
44913
  }
44910
- function b(E) {
44911
- const C = e.node.attrs[yt.ID], k = {
44912
- lineId: E.target.querySelector(`[node-id="${C}"]`).getAttribute("line-id"),
44913
- dataId: C,
44914
+ function v(C) {
44915
+ const T = e.node.attrs[yt.ID], A = {
44916
+ lineId: C.target.querySelector(`[node-id="${T}"]`).getAttribute("line-id"),
44917
+ dataId: T,
44914
44918
  text: ""
44915
44919
  };
44916
- i.emit({ action: "hover", payload: k });
44917
- }
44918
- function v() {
44919
- const { getPos: E, node: C, editor: T } = e, k = E(), A = k + 1;
44920
- T.commands.deleteRange({ from: k, to: A });
44920
+ i.emit({ action: "hover", payload: A });
44921
44921
  }
44922
44922
  function w() {
44923
+ const { getPos: C, node: T, editor: k } = e, A = C(), F = A + 1;
44924
+ k.commands.deleteRange({ from: A, to: F });
44925
+ }
44926
+ function x() {
44923
44927
  if (!f.value) return;
44924
- const { attributes: E } = e.editor.options.editorProps;
44925
- if (E && E.id === Ho.COMMENT) {
44926
- const C = document.getElementById(Ho.COMMENT);
44927
- if ((C == null ? void 0 : C.getAttribute(Ho.DISABLE_SUPER_INPUT)) === "true") return;
44928
+ const { attributes: C } = e.editor.options.editorProps;
44929
+ if (C && C.id === Ho.COMMENT) {
44930
+ const T = document.getElementById(Ho.COMMENT);
44931
+ if ((T == null ? void 0 : T.getAttribute(Ho.DISABLE_SUPER_INPUT)) === "true") return;
44928
44932
  }
44929
44933
  e.editor.view.dom.blur(), n.value = !0;
44930
44934
  }
44931
- function x() {
44935
+ function S() {
44932
44936
  e.editor.commands.setSuperTextContent(
44933
44937
  e.node.attrs[yt.TEXT],
44934
44938
  e.node.attrs[yt.POSITION]
44935
44939
  ), e.editor.commands.toggleSuperInputMoblie();
44936
44940
  }
44937
- De(r, (E) => {
44938
- e.editor.setEditable(!E), E ? e.editor.view.dom.classList.add("super-text-view-mode") : e.editor.view.dom.classList.remove("super-text-view-mode");
44941
+ De(r, (C) => {
44942
+ e.editor.setEditable(!C), C ? e.editor.view.dom.classList.add("super-text-view-mode") : e.editor.view.dom.classList.remove("super-text-view-mode");
44939
44943
  });
44940
- const S = X(() => `{${e.node.attrs[yt.TEXT].replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p[^>]*>/g, "").trim()}}`);
44941
- return (E, C) => {
44942
- const T = io, k = Rv, A = Iv, F = Nv, D = Mv, P = wd;
44944
+ const E = X(() => `{${e.node.attrs[yt.TEXT].replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p[^>]*>/g, "").trim()}}`);
44945
+ return (C, T) => {
44946
+ const k = io, A = Rv, F = Iv, D = Nv, P = Mv, K = wd;
44943
44947
  return O(), $(g(ja), {
44944
44948
  as: "span",
44945
44949
  class: He(
@@ -44950,7 +44954,8 @@ const zte = ["innerHTML"], Vte = ["book-mark-node-id", "book-mark-content", "nod
44950
44954
  ),
44951
44955
  "data-drag-handle": "",
44952
44956
  draggable: g(f),
44953
- onPointerdown: C[2] || (C[2] = En(() => {
44957
+ onDragend: h,
44958
+ onPointerdown: T[2] || (T[2] = En(() => {
44954
44959
  }, ["stop"])),
44955
44960
  onTouchstartPassive: g(s),
44956
44961
  onTouchmovePassive: g(a),
@@ -44960,33 +44965,33 @@ const zte = ["innerHTML"], Vte = ["book-mark-node-id", "book-mark-content", "nod
44960
44965
  default: N(() => [
44961
44966
  g(o) && !r.value ? (O(), ue("button", {
44962
44967
  key: 0,
44963
- onClick: En(x, ["stop"]),
44968
+ onClick: En(S, ["stop"]),
44964
44969
  class: "w-5 inline-flex justify-center rounded text-ed-red-500 active:bg-ed-accent"
44965
44970
  }, [
44966
44971
  L(g(tn), { name: "fileEdit2" })
44967
44972
  ])) : ve("", !0),
44968
44973
  g(o) && r.value ? (O(), ue("div", {
44969
44974
  key: 1,
44970
- innerHTML: S.value,
44971
- onClick: En(x, ["stop"]),
44975
+ innerHTML: E.value,
44976
+ onClick: En(S, ["stop"]),
44972
44977
  class: "super-text-view-mode-item"
44973
44978
  }, null, 8, zte)) : ve("", !0),
44974
- g(o) ? ve("", !0) : (O(), $(D, { key: 2 }, {
44979
+ g(o) ? ve("", !0) : (O(), $(P, { key: 2 }, {
44975
44980
  default: N(() => [
44976
- L(k, {
44981
+ L(A, {
44977
44982
  as: "template",
44978
44983
  class: "relative",
44979
44984
  disabled: !g(f)
44980
44985
  }, {
44981
44986
  default: N(() => [
44982
- L(T, {
44987
+ L(k, {
44983
44988
  class: He([{
44984
44989
  "pointer-events-none": !g(f)
44985
44990
  }, "!p-0 !m-0 !h-fit"]),
44986
44991
  variant: "ghost",
44987
- onDblclick: En(w, ["stop"]),
44988
- onMouseenter: m,
44989
- onMouseleave: b
44992
+ onDblclick: En(x, ["stop"]),
44993
+ onMouseenter: b,
44994
+ onMouseleave: v
44990
44995
  }, {
44991
44996
  default: N(() => [
44992
44997
  L(g(tn), { name: "fileEdit" }),
@@ -45004,19 +45009,19 @@ const zte = ["innerHTML"], Vte = ["book-mark-node-id", "book-mark-content", "nod
45004
45009
  ]),
45005
45010
  _: 1
45006
45011
  }, 8, ["disabled"]),
45007
- L(F, null, {
45012
+ L(D, null, {
45008
45013
  default: N(() => [
45009
- L(A, {
45010
- onSelect: C[0] || (C[0] = (K) => n.value = !0)
45014
+ L(F, {
45015
+ onSelect: T[0] || (T[0] = (J) => n.value = !0)
45011
45016
  }, {
45012
45017
  default: N(() => [
45013
- at(Le(E.$t("editor.super.edit")), 1)
45018
+ at(Le(C.$t("editor.super.edit")), 1)
45014
45019
  ]),
45015
45020
  _: 1
45016
45021
  }),
45017
- L(A, { onSelect: v }, {
45022
+ L(F, { onSelect: w }, {
45018
45023
  default: N(() => [
45019
- at(Le(E.$t("editor.super.delete")), 1)
45024
+ at(Le(C.$t("editor.super.delete")), 1)
45020
45025
  ]),
45021
45026
  _: 1
45022
45027
  })
@@ -45026,14 +45031,14 @@ const zte = ["innerHTML"], Vte = ["book-mark-node-id", "book-mark-content", "nod
45026
45031
  ]),
45027
45032
  _: 1
45028
45033
  })),
45029
- g(o) ? ve("", !0) : (O(), $(P, {
45034
+ g(o) ? ve("", !0) : (O(), $(K, {
45030
45035
  key: 3,
45031
45036
  open: n.value,
45032
45037
  editor: e.editor,
45033
45038
  "super-text-init": e.node.attrs[g(yt).TEXT],
45034
45039
  "super-text-element-id": e.node.attrs[g(yt).ELEMENT_ID],
45035
- onClose: C[1] || (C[1] = (K) => n.value = !1),
45036
- onSave: h
45040
+ onClose: T[1] || (T[1] = (J) => n.value = !1),
45041
+ onSave: m
45037
45042
  }, null, 8, ["open", "editor", "super-text-init", "super-text-element-id"]))
45038
45043
  ]),
45039
45044
  _: 1
@@ -49314,10 +49319,10 @@ function gre({ pluginKey: t = mre, editor: e, char: n = "@", allowSpaces: o = !1
49314
49319
  return {
49315
49320
  update: async (x, S) => {
49316
49321
  var E, C, T, k, A, F, D;
49317
- const P = (E = this.key) === null || E === void 0 ? void 0 : E.getState(S), K = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state), Y = P.active && K.active && P.range.from !== K.range.from, Ee = !P.active && K.active, me = P.active && !K.active, q = !Ee && !me && P.query !== K.query, U = Ee || Y && q, B = q || Y, J = me || Y && q;
49318
- if (!U && !B && !J)
49322
+ const P = (E = this.key) === null || E === void 0 ? void 0 : E.getState(S), K = (C = this.key) === null || C === void 0 ? void 0 : C.getState(x.state), J = P.active && K.active && P.range.from !== K.range.from, Ee = !P.active && K.active, me = P.active && !K.active, q = !Ee && !me && P.query !== K.query, U = Ee || J && q, B = q || J, Y = me || J && q;
49323
+ if (!U && !B && !Y)
49319
49324
  return;
49320
- const oe = J && !U ? P : K, se = x.dom.querySelector(`[data-decoration-id="${oe.decorationId}"]`);
49325
+ const oe = Y && !U ? P : K, se = x.dom.querySelector(`[data-decoration-id="${oe.decorationId}"]`);
49321
49326
  b = {
49322
49327
  editor: e,
49323
49328
  range: oe.range,
@@ -49340,7 +49345,7 @@ function gre({ pluginKey: t = mre, editor: e, char: n = "@", allowSpaces: o = !1
49340
49345
  }, U && ((T = v == null ? void 0 : v.onBeforeStart) === null || T === void 0 || T.call(v, b)), B && ((k = v == null ? void 0 : v.onBeforeUpdate) === null || k === void 0 || k.call(v, b)), (B || U) && (b.items = await d({
49341
49346
  editor: e,
49342
49347
  query: oe.query
49343
- })), J && ((A = v == null ? void 0 : v.onExit) === null || A === void 0 || A.call(v, b)), B && ((F = v == null ? void 0 : v.onUpdate) === null || F === void 0 || F.call(v, b)), U && ((D = v == null ? void 0 : v.onStart) === null || D === void 0 || D.call(v, b));
49348
+ })), Y && ((A = v == null ? void 0 : v.onExit) === null || A === void 0 || A.call(v, b)), B && ((F = v == null ? void 0 : v.onUpdate) === null || F === void 0 || F.call(v, b)), U && ((D = v == null ? void 0 : v.onStart) === null || D === void 0 || D.call(v, b));
49344
49349
  },
49345
49350
  destroy: () => {
49346
49351
  var x;
@@ -49374,13 +49379,13 @@ function gre({ pluginKey: t = mre, editor: e, char: n = "@", allowSpaces: o = !1
49374
49379
  allowedPrefixes: i,
49375
49380
  startOfLine: s,
49376
49381
  $position: A.$from
49377
- }), Y = `id_${Math.floor(Math.random() * 4294967295)}`;
49382
+ }), J = `id_${Math.floor(Math.random() * 4294967295)}`;
49378
49383
  K && h({
49379
49384
  editor: e,
49380
49385
  state: C,
49381
49386
  range: K.range,
49382
49387
  isActive: S.active
49383
- }) ? (P.active = !0, P.decorationId = S.decorationId ? S.decorationId : Y, P.range = K.range, P.query = K.query, P.text = K.text) : P.active = !1;
49388
+ }) ? (P.active = !0, P.decorationId = S.decorationId ? S.decorationId : J, P.range = K.range, P.query = K.query, P.text = K.text) : P.active = !1;
49384
49389
  } else
49385
49390
  P.active = !1;
49386
49391
  return P.active || (P.decorationId = null, P.range = { from: 0, to: 0 }, P.query = null, P.text = null), P;
@@ -49650,7 +49655,7 @@ const _re = {
49650
49655
  const n = V(0), o = V(0), r = V(null), { t: i } = Zt(), s = V([]), a = t;
49651
49656
  e({ onKeyDown: l }), De([() => n.value, () => o.value], async () => {
49652
49657
  if (!r.value) return;
49653
- await Rt();
49658
+ await It();
49654
49659
  const v = o.value * 1e3 + n.value, w = s.value[v];
49655
49660
  w && w.scrollIntoView({
49656
49661
  behavior: "smooth",
@@ -53201,15 +53206,15 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53201
53206
  if (!e.value || !t) return;
53202
53207
  const k = e.value.index, A = e.value.id, { state: F } = t, { tr: D } = F;
53203
53208
  let P = !1;
53204
- F.doc.descendants((K, Y) => {
53209
+ F.doc.descendants((K, J) => {
53205
53210
  var Ee, me;
53206
53211
  if (((Ee = K.attrs) == null ? void 0 : Ee[yt.ID]) === A) {
53207
53212
  (me = K.attrs[yt.TEXT]) != null && me.trim();
53208
53213
  const q = T.trim();
53209
53214
  if (p0(q))
53210
- return D.delete(Y, Y + 1), P = !0, !1;
53215
+ return D.delete(J, J + 1), P = !0, !1;
53211
53216
  const { [yt.ELEMENT_ID]: U, ...B } = K.attrs;
53212
- return D.setNodeMarkup(Y, void 0, {
53217
+ return D.setNodeMarkup(J, void 0, {
53213
53218
  ...B,
53214
53219
  [yt.TEXT]: q
53215
53220
  }), P = !0, !1;
@@ -53250,8 +53255,8 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53250
53255
  T.forEach((D) => {
53251
53256
  const P = D.getAttribute("book-mark-id");
53252
53257
  if (!P) return;
53253
- const K = D.offsetTop + D.offsetHeight, Y = l.value.get(P) || 0;
53254
- l.value.set(P, Math.max(K, Y));
53258
+ const K = D.offsetTop + D.offsetHeight, J = l.value.get(P) || 0;
53259
+ l.value.set(P, Math.max(K, J));
53255
53260
  }), T.forEach((D, P) => {
53256
53261
  A[P].isHidden && D.classList.add("hidden"), A[P].isTruncated && D.classList.add("super-text-truncate");
53257
53262
  });
@@ -53260,11 +53265,11 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53260
53265
  D > F && (F = D);
53261
53266
  i.value = F;
53262
53267
  }, b = async () => {
53263
- await Rt();
53268
+ await It();
53264
53269
  const k = u().map((A) => {
53265
- const F = A.getAttribute("node-id"), D = A.getAttribute("book-mark-content"), P = A.getAttribute("page-id"), K = A.getAttribute("page-number"), Y = A.getBoundingClientRect(), Ee = A.getAttribute("line-id"), me = A.getAttribute("element-id");
53270
+ const F = A.getAttribute("node-id"), D = A.getAttribute("book-mark-content"), P = A.getAttribute("page-id"), K = A.getAttribute("page-number"), J = A.getBoundingClientRect(), Ee = A.getAttribute("line-id"), me = A.getAttribute("element-id");
53266
53271
  return {
53267
- position: Y,
53272
+ position: J,
53268
53273
  text: h(D),
53269
53274
  id: F,
53270
53275
  pageId: P,
@@ -53299,11 +53304,11 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53299
53304
  }), m();
53300
53305
  }
53301
53306
  const x = async (T) => {
53302
- await Rt();
53307
+ await It();
53303
53308
  const k = t == null ? void 0 : t.view.dom.querySelector(`[node-id='${T.dataId}']`), A = r.value.find((P) => {
53304
- const K = P.getBoundingClientRect().top, Y = k == null ? void 0 : k.getBoundingClientRect().top;
53305
- if (Y == null) return !1;
53306
- const Ee = Y - K;
53309
+ const K = P.getBoundingClientRect().top, J = k == null ? void 0 : k.getBoundingClientRect().top;
53310
+ if (J == null) return !1;
53311
+ const Ee = J - K;
53307
53312
  return Math.abs(Ee - 9) <= 2;
53308
53313
  });
53309
53314
  if (!A) return;
@@ -53316,8 +53321,8 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53316
53321
  const D = A.getBoundingClientRect();
53317
53322
  r.value.forEach((P, K) => {
53318
53323
  if (K !== F) {
53319
- const Y = P.getBoundingClientRect();
53320
- v(D, Y) && P.classList.add("hidden");
53324
+ const J = P.getBoundingClientRect();
53325
+ v(D, J) && P.classList.add("hidden");
53321
53326
  }
53322
53327
  }), m();
53323
53328
  }, S = (T) => {
@@ -53354,7 +53359,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53354
53359
  }), De(
53355
53360
  () => n,
53356
53361
  async () => {
53357
- await Rt(), w();
53362
+ await It(), w();
53358
53363
  },
53359
53364
  {
53360
53365
  deep: !0
@@ -53423,9 +53428,9 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53423
53428
  "line-id": A.lineId,
53424
53429
  class: He(g(Fe)("super-text-view", "absolute w-full px-2 translate-y-[-10px] group", {})),
53425
53430
  style: Ht({ top: `${A.visiblePosition || ((D = A.position) == null ? void 0 : D.top)}px` }),
53426
- onMouseover: (Y) => g(f)(Y, F),
53431
+ onMouseover: (J) => g(f)(J, F),
53427
53432
  onMouseleave: C[0] || (C[0] = //@ts-ignore
53428
- (...Y) => g(h) && g(h)(...Y))
53433
+ (...J) => g(h) && g(h)(...J))
53429
53434
  }, [
53430
53435
  L(g(S7), {
53431
53436
  role: "text",
@@ -53439,7 +53444,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53439
53444
  }
53440
53445
  )
53441
53446
  ),
53442
- onDblclick: (Y) => b(A, F)
53447
+ onDblclick: (J) => b(A, F)
53443
53448
  }, {
53444
53449
  default: N(() => [
53445
53450
  Q("div", {
@@ -53706,7 +53711,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53706
53711
  }
53707
53712
  });
53708
53713
  async function w() {
53709
- await Rt(), i.emit({
53714
+ await It(), i.emit({
53710
53715
  action: "render"
53711
53716
  });
53712
53717
  }
@@ -53814,7 +53819,7 @@ const Mse = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
53814
53819
  });
53815
53820
  function oae(t, e, n = !1, o = 200) {
53816
53821
  const { height: r } = ER(t), i = V(0), s = V(0), a = V(o), l = V(0), u = async () => {
53817
- await Rt();
53822
+ await It();
53818
53823
  const d = r.value - 8;
53819
53824
  e.value === Je.REPORT ? (i.value = d / 3, s.value = n ? "auto" : d - i.value, a.value = o / 3 * 2, l.value = o / 3) : (i.value = 0, s.value = n ? "auto" : r.value);
53820
53825
  };
@@ -53928,10 +53933,10 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
53928
53933
  De(
53929
53934
  () => [F.value, o.disabled],
53930
53935
  async () => {
53931
- J();
53936
+ Y();
53932
53937
  }
53933
53938
  ), mt(() => {
53934
- J();
53939
+ Y();
53935
53940
  });
53936
53941
  const D = (ce) => {
53937
53942
  const Pe = parseInt(k.value || "16px"), nt = ce ? Pe + 2 : Pe - 2;
@@ -53992,7 +53997,9 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
53992
53997
  onUpdate: xt.throttle(({ editor: ce }) => {
53993
53998
  f.value = !0;
53994
53999
  const Pe = oe(ce, o.output);
53995
- r("update:modelValue", Pe), r("change", { editor: ce, output: Pe }), m(ce), J(), me();
54000
+ r("update:modelValue", Pe), r("change", { editor: ce, output: Pe }), m(ce), It(() => {
54001
+ Y();
54002
+ }), me();
53996
54003
  }, bi),
53997
54004
  extensions: xt.uniqBy(xt.reverse(g(C)), "name"),
53998
54005
  editable: S.value,
@@ -54005,7 +54012,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54005
54012
  }
54006
54013
  });
54007
54014
  yn("minCharSuperInput", o.minChar.superPreview);
54008
- const { contentInner: Y, measuredMinWidth: Ee, measure: me } = Lh({
54015
+ const { contentInner: J, measuredMinWidth: Ee, measure: me } = Lh({
54009
54016
  minChars: o.minChar.content,
54010
54017
  fontSize: k,
54011
54018
  editor: K
@@ -54015,8 +54022,8 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54015
54022
  });
54016
54023
  yn("measuredMinWidthComment", U);
54017
54024
  const B = X(() => T.value ? 0 : fe.value ? Number(Ee == null ? void 0 : Ee.value) + Number(U == null ? void 0 : U.value) + 30 : Number(Ee == null ? void 0 : Ee.value));
54018
- async function J() {
54019
- await Rt(), i.emit({
54025
+ async function Y() {
54026
+ await It(), i.emit({
54020
54027
  action: "render"
54021
54028
  });
54022
54029
  }
@@ -54054,7 +54061,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54054
54061
  const { from: Pe, to: nt } = K.state.selection;
54055
54062
  K.commands.setTextSelection({ from: Pe, to: nt }), K.commands.setContent(Hn(ce, o.disabled, o.mode), !1, {
54056
54063
  preserveWhitespace: "full"
54057
- }), J();
54064
+ }), Y();
54058
54065
  },
54059
54066
  { deep: !0 }
54060
54067
  ), De(
@@ -54226,7 +54233,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54226
54233
  Q("div", {
54227
54234
  id: "editor-panel",
54228
54235
  ref_key: "contentInner",
54229
- ref: Y,
54236
+ ref: J,
54230
54237
  class: "flex-1 p-2.5 border border-ed-gray-400 rounded-[3px] focus-within:border-ed-input-focus"
54231
54238
  }, [
54232
54239
  L(Vv, {
@@ -54503,12 +54510,12 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54503
54510
  $e > be[0] && $e <= xe && (ke.size = ke.min, te.prevReachedMinPanes += ke.min);
54504
54511
  }), te.prevPanesSize = D(be[0]), be[0] === void 0) ? (te.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((ke, $e) => {
54505
54512
  $e > 0 && $e <= xe && (ke.size = ke.min, te.prevReachedMinPanes += ke.min);
54506
- }), i.value[be[1]].size = 100 - te.prevReachedMinPanes - i.value[0].min - te.prevPanesSize - te.nextPanesSize, null) : de > 100 - te.nextPanesSize - i.value[be[1]].min && (be[1] = Y(xe).index, te.nextReachedMinPanes = 0, be[1] > xe + 1 && i.value.forEach((ke, $e) => {
54513
+ }), i.value[be[1]].size = 100 - te.prevReachedMinPanes - i.value[0].min - te.prevPanesSize - te.nextPanesSize, null) : de > 100 - te.nextPanesSize - i.value[be[1]].min && (be[1] = J(xe).index, te.nextReachedMinPanes = 0, be[1] > xe + 1 && i.value.forEach((ke, $e) => {
54507
54514
  $e > xe && $e < be[1] && (ke.size = ke.min, te.nextReachedMinPanes += ke.min);
54508
54515
  }), te.nextPanesSize = P(be[1] - 1), be[1] === void 0) ? (te.nextReachedMinPanes = 0, i.value.forEach((ke, $e) => {
54509
54516
  $e < a.value - 1 && $e >= xe + 1 && (ke.size = ke.min, te.nextReachedMinPanes += ke.min);
54510
54517
  }), i.value[be[0]].size = 100 - te.prevPanesSize - P(be[0] - 1), null) : { sums: te, panesToResize: be };
54511
- }, D = (te) => i.value.reduce((de, xe, be) => de + (be < te ? xe.size : 0), 0), P = (te) => i.value.reduce((de, xe, be) => de + (be > te + 1 ? xe.size : 0), 0), K = (te) => [...i.value].reverse().find((de) => de.index < te && de.size > de.min) || {}, Y = (te) => i.value.find((de) => de.index > te + 1 && de.size > de.min) || {}, Ee = () => {
54518
+ }, D = (te) => i.value.reduce((de, xe, be) => de + (be < te ? xe.size : 0), 0), P = (te) => i.value.reduce((de, xe, be) => de + (be > te + 1 ? xe.size : 0), 0), K = (te) => [...i.value].reverse().find((de) => de.index < te && de.size > de.min) || {}, J = (te) => i.value.find((de) => de.index > te + 1 && de.size > de.min) || {}, Ee = () => {
54512
54519
  var te;
54513
54520
  const de = Array.from(((te = l.value) == null ? void 0 : te.children) || []);
54514
54521
  for (const xe of de) {
@@ -54531,17 +54538,17 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54531
54538
  }, B = ({ uid: te, ...de }) => {
54532
54539
  const xe = s.value[te];
54533
54540
  for (const [be, ke] of Object.entries(de)) xe[be] = ke;
54534
- }, J = (te) => {
54541
+ }, Y = (te) => {
54535
54542
  var de;
54536
54543
  let xe = -1;
54537
- Array.from(((de = l.value) == null ? void 0 : de.children) || []).some((be) => (be.className.includes("splitpanes__pane") && xe++, be.isSameNode(te.el))), i.value.splice(xe, 0, { ...te, index: xe }), i.value.forEach((be, ke) => be.index = ke), u.value && Rt(() => {
54544
+ Array.from(((de = l.value) == null ? void 0 : de.children) || []).some((be) => (be.className.includes("splitpanes__pane") && xe++, be.isSameNode(te.el))), i.value.splice(xe, 0, { ...te, index: xe }), i.value.forEach((be, ke) => be.index = ke), u.value && It(() => {
54538
54545
  U(), se({ addedPane: i.value[xe] }), Ke("pane-add", { pane: i.value[xe] });
54539
54546
  });
54540
54547
  }, oe = (te) => {
54541
54548
  const de = i.value.findIndex((be) => be.id === te);
54542
54549
  i.value[de].el = null;
54543
54550
  const xe = i.value.splice(de, 1)[0];
54544
- i.value.forEach((be, ke) => be.index = ke), Rt(() => {
54551
+ i.value.forEach((be, ke) => be.index = ke), It(() => {
54545
54552
  U(), Ke("pane-remove", { pane: xe }), se({ removedPane: { ...xe } });
54546
54553
  });
54547
54554
  }, se = (te = {}) => {
@@ -54586,7 +54593,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54586
54593
  const ce = Math.max(Math.min(ke.size + be, ke.max), ke.min), Pe = ce - ke.size;
54587
54594
  te -= Pe, ke.size = ce;
54588
54595
  }
54589
- }), Math.abs(te) > 0.1 && Rt(() => {
54596
+ }), Math.abs(te) > 0.1 && It(() => {
54590
54597
  u.value && console.warn("Splitpanes: Could not resize panes correctly due to their constraints.");
54591
54598
  });
54592
54599
  }, Ke = (te, de = void 0, xe = !1) => {
@@ -54612,7 +54619,7 @@ const rae = { class: "flex flex-1" }, Qv = /* @__PURE__ */ j({
54612
54619
  (te = r.default) == null ? void 0 : te.call(r)
54613
54620
  );
54614
54621
  };
54615
- return yn("panes", i), yn("indexedPanes", s), yn("horizontal", X(() => o.horizontal)), yn("requestUpdate", B), yn("onPaneAdd", J), yn("onPaneRemove", oe), yn("onPaneClick", C), (te, de) => (O(), $(Wn(it)));
54622
+ return yn("panes", i), yn("indexedPanes", s), yn("horizontal", X(() => o.horizontal)), yn("requestUpdate", B), yn("onPaneAdd", Y), yn("onPaneRemove", oe), yn("onPaneClick", C), (te, de) => (O(), $(Wn(it)));
54616
54623
  }
54617
54624
  }, pi = {
54618
54625
  __name: "pane",
@@ -55110,7 +55117,7 @@ const O7 = /* @__PURE__ */ j({
55110
55117
  };
55111
55118
  h.addEventListener("pointerdown", m);
55112
55119
  const b = ({ transaction: v }) => {
55113
- a.value && v.docChanged && (a.value = !1, Rt(() => {
55120
+ a.value && v.docChanged && (a.value = !1, It(() => {
55114
55121
  var w;
55115
55122
  try {
55116
55123
  const x = (w = s.value) == null ? void 0 : w.$el;
@@ -55627,7 +55634,7 @@ const Sae = { class: "flex justify-between items-center relative" }, xc = /* @__
55627
55634
  P.value = !1;
55628
55635
  }));
55629
55636
  }
55630
- function Y(re) {
55637
+ function J(re) {
55631
55638
  const H = document.querySelectorAll(
55632
55639
  '[contenteditable="true"]:not(.tiptap), .simple-editor, input, textarea'
55633
55640
  ), z = Array.from(H).some((ie) => ie.contains(re.target));
@@ -55637,7 +55644,7 @@ const Sae = { class: "flex justify-between items-center relative" }, xc = /* @__
55637
55644
  }
55638
55645
  D.value = !z;
55639
55646
  }
55640
- O4(document, "focusin", Y), O4(document, "focusout", Y), mt(() => {
55647
+ O4(document, "focusin", J), O4(document, "focusout", J), mt(() => {
55641
55648
  me(k), v(k), K();
55642
55649
  });
55643
55650
  const Ee = X(() => o.isShowFormatControlBar && o.mode === Je.EDITOR && E && !o.isEditorView);
@@ -55708,7 +55715,7 @@ const Sae = { class: "flex justify-between items-center relative" }, xc = /* @__
55708
55715
  }), vd(dd.SAVE, () => {
55709
55716
  localStorage.setItem("content", U(k, "html"));
55710
55717
  });
55711
- const J = (re, H) => {
55718
+ const Y = (re, H) => {
55712
55719
  const z = k;
55713
55720
  if (z) {
55714
55721
  if (H) {
@@ -56046,7 +56053,7 @@ const Sae = { class: "flex justify-between items-center relative" }, xc = /* @__
56046
56053
  editor: g(k),
56047
56054
  "bottom-sheet-component": g(Re),
56048
56055
  onClose: H[5] || (H[5] = (We) => g(k).commands.toggleSuperInputMoblie()),
56049
- onSave: J
56056
+ onSave: Y
56050
56057
  }, null, 8, ["open", "editor", "bottom-sheet-component"])) : ve("", !0),
56051
56058
  (dn = g(F)) != null && dn.storage.configPlan ? (O(), $(I9, {
56052
56059
  key: 2,
@@ -56239,19 +56246,19 @@ var I7 = { exports: {} };
56239
56246
  key: x(q)
56240
56247
  };
56241
56248
  }
56242
- function v(q, U, B, J) {
56243
- this.segment = J, this.length = B, this.startInBefore = q + J.beforeIndex, this.startInAfter = U + J.afterIndex, this.endInBefore = this.startInBefore + this.length - 1, this.endInAfter = this.startInAfter + this.length - 1, this.segmentStartInBefore = q, this.segmentStartInAfter = U, this.segmentEndInBefore = this.segmentStartInBefore + this.length - 1, this.segmentEndInAfter = this.segmentStartInAfter + this.length - 1;
56249
+ function v(q, U, B, Y) {
56250
+ this.segment = Y, this.length = B, this.startInBefore = q + Y.beforeIndex, this.startInAfter = U + Y.afterIndex, this.endInBefore = this.startInBefore + this.length - 1, this.endInAfter = this.startInAfter + this.length - 1, this.segmentStartInBefore = q, this.segmentStartInAfter = U, this.segmentEndInBefore = this.segmentStartInBefore + this.length - 1, this.segmentEndInAfter = this.segmentStartInAfter + this.length - 1;
56244
56251
  }
56245
56252
  function w(q) {
56246
- for (var U = "char", B = "", J = "", oe = [], se = 0; se < q.length; se++) {
56253
+ for (var U = "char", B = "", Y = "", oe = [], se = 0; se < q.length; se++) {
56247
56254
  var fe = q[se];
56248
56255
  switch (U) {
56249
56256
  case "tag":
56250
56257
  var Re = d(B);
56251
- Re ? (U = "atomic_tag", J = Re, B += fe) : s(B) ? (U = "html_comment", B += fe) : e(fe) ? (B += ">", oe.push(b(B)), B = "", o(fe) ? U = "whitespace" : U = "char") : B += fe;
56258
+ Re ? (U = "atomic_tag", Y = Re, B += fe) : s(B) ? (U = "html_comment", B += fe) : e(fe) ? (B += ">", oe.push(b(B)), B = "", o(fe) ? U = "whitespace" : U = "char") : B += fe;
56252
56259
  break;
56253
56260
  case "atomic_tag":
56254
- e(fe) && f(B, J) ? (B += ">", oe.push(b(B)), B = "", J = "", U = "char") : B += fe;
56261
+ e(fe) && f(B, Y) ? (B += ">", oe.push(b(B)), B = "", Y = "", U = "char") : B += fe;
56255
56262
  break;
56256
56263
  case "html_comment":
56257
56264
  B += fe, a(B) && (B = "", U = "char");
@@ -56275,9 +56282,9 @@ var I7 = { exports: {} };
56275
56282
  var B = /^<a.*href=['"]([^"']*)['"]/.exec(q);
56276
56283
  if (B)
56277
56284
  return '<a href="' + B[1] + '"></a>';
56278
- var J = /^<object.*data=['"]([^"']*)['"]/.exec(q);
56279
- if (J)
56280
- return '<object src="' + J[1] + '"></object>';
56285
+ var Y = /^<object.*data=['"]([^"']*)['"]/.exec(q);
56286
+ if (Y)
56287
+ return '<object src="' + Y[1] + '"></object>';
56281
56288
  if (/^<(svg|math|video)[\s>]/.test(q)) {
56282
56289
  var oe = q.indexOf('data-uuid="');
56283
56290
  if (oe !== -1) {
@@ -56293,8 +56300,8 @@ var I7 = { exports: {} };
56293
56300
  return ye ? "<" + ye[1].toLowerCase() + ">" : q && q.replace(/(\s+|&nbsp;|&#160;)/g, " ");
56294
56301
  }
56295
56302
  function S(q) {
56296
- return q.reduce(function(U, B, J) {
56297
- return U[B.key] ? U[B.key].push(J) : U[B.key] = [J], U;
56303
+ return q.reduce(function(U, B, Y) {
56304
+ return U[B.key] ? U[B.key].push(Y) : U[B.key] = [Y], U;
56298
56305
  }, /* @__PURE__ */ Object.create(null));
56299
56306
  }
56300
56307
  function E(q, U) {
@@ -56317,15 +56324,15 @@ var I7 = { exports: {} };
56317
56324
  }, B = this._root;
56318
56325
  if (B)
56319
56326
  for (; ; ) {
56320
- var J = E(B.value, q);
56321
- if (J === -1)
56327
+ var Y = E(B.value, q);
56328
+ if (Y === -1)
56322
56329
  if (B.left)
56323
56330
  B = B.left;
56324
56331
  else {
56325
56332
  B.left = U;
56326
56333
  break;
56327
56334
  }
56328
- else if (J === 1)
56335
+ else if (Y === 1)
56329
56336
  if (B.right)
56330
56337
  B = B.right;
56331
56338
  else {
@@ -56351,16 +56358,16 @@ var I7 = { exports: {} };
56351
56358
  }
56352
56359
  };
56353
56360
  function T(q) {
56354
- for (var U = q.beforeTokens, B = q.afterMap, J = null, oe = null, se = 0; se < U.length; se++) {
56361
+ for (var U = q.beforeTokens, B = q.afterMap, Y = null, oe = null, se = 0; se < U.length; se++) {
56355
56362
  var fe = !1, Re = U.length - se;
56356
56363
  if (oe && Re < oe.length)
56357
56364
  break;
56358
56365
  var ye = U[se];
56359
56366
  if (ye.key === " ") {
56360
- J = se;
56367
+ Y = se;
56361
56368
  continue;
56362
56369
  }
56363
- J === se - 1 && (fe = !0);
56370
+ Y === se - 1 && (fe = !0);
56364
56371
  var rt = B[ye.key];
56365
56372
  rt && rt.forEach(function(Ke) {
56366
56373
  var it = oe ? oe.length : 0, te = k(
@@ -56375,10 +56382,10 @@ var I7 = { exports: {} };
56375
56382
  }
56376
56383
  return oe;
56377
56384
  }
56378
- function k(q, U, B, J, oe) {
56379
- var se = q.beforeTokens, fe = q.afterTokens, Re = U + J, ye = B + J;
56385
+ function k(q, U, B, Y, oe) {
56386
+ var se = q.beforeTokens, fe = q.afterTokens, Re = U + Y, ye = B + Y;
56380
56387
  if (!(Re >= se.length || ye >= fe.length)) {
56381
- if (J) {
56388
+ if (Y) {
56382
56389
  var rt = se[Re].key, Ke = fe[ye].key;
56383
56390
  if (rt !== Ke)
56384
56391
  return;
@@ -56394,25 +56401,25 @@ var I7 = { exports: {} };
56394
56401
  return new v(U, B, te, q);
56395
56402
  }
56396
56403
  }
56397
- function A(q, U, B, J) {
56404
+ function A(q, U, B, Y) {
56398
56405
  return {
56399
56406
  beforeTokens: q,
56400
56407
  afterTokens: U,
56401
56408
  beforeMap: S(q),
56402
56409
  afterMap: S(U),
56403
56410
  beforeIndex: B,
56404
- afterIndex: J
56411
+ afterIndex: Y
56405
56412
  };
56406
56413
  }
56407
56414
  function F(q) {
56408
- for (var U = new C(), B, J = [q]; J.length; )
56409
- if (q = J.pop(), B = T(q), B && B.length) {
56415
+ for (var U = new C(), B, Y = [q]; Y.length; )
56416
+ if (q = Y.pop(), B = T(q), B && B.length) {
56410
56417
  if (B.segmentStartInBefore > 0 && B.segmentStartInAfter > 0) {
56411
56418
  var oe = q.beforeTokens.slice(
56412
56419
  0,
56413
56420
  B.segmentStartInBefore
56414
56421
  ), se = q.afterTokens.slice(0, B.segmentStartInAfter);
56415
- J.push(A(
56422
+ Y.push(A(
56416
56423
  oe,
56417
56424
  se,
56418
56425
  q.beforeIndex,
@@ -56420,7 +56427,7 @@ var I7 = { exports: {} };
56420
56427
  ));
56421
56428
  }
56422
56429
  var fe = q.beforeTokens.slice(B.segmentEndInBefore + 1), Re = q.afterTokens.slice(B.segmentEndInAfter + 1), ye = q.beforeIndex + B.segmentEndInBefore + 1, rt = q.afterIndex + B.segmentEndInAfter + 1;
56423
- fe.length && Re.length && J.push(A(
56430
+ fe.length && Re.length && Y.push(A(
56424
56431
  fe,
56425
56432
  Re,
56426
56433
  ye,
@@ -56432,15 +56439,15 @@ var I7 = { exports: {} };
56432
56439
  function D(q, U) {
56433
56440
  if (!q) throw new Error("Missing beforeTokens");
56434
56441
  if (!U) throw new Error("Missing afterTokens");
56435
- var B = 0, J = 0, oe = [], se = A(q, U, 0, 0), fe = F(se);
56442
+ var B = 0, Y = 0, oe = [], se = A(q, U, 0, 0), fe = F(se);
56436
56443
  fe.push(new v(q.length, U.length, 0, se));
56437
56444
  for (var Re = 0; Re < fe.length; Re++) {
56438
56445
  var ye = fe[Re], rt = "none";
56439
- B === ye.startInBefore ? J !== ye.startInAfter && (rt = "insert") : (rt = "delete", J !== ye.startInAfter && (rt = "replace")), rt !== "none" && oe.push({
56446
+ B === ye.startInBefore ? Y !== ye.startInAfter && (rt = "insert") : (rt = "delete", Y !== ye.startInAfter && (rt = "replace")), rt !== "none" && oe.push({
56440
56447
  action: rt,
56441
56448
  startInBefore: B,
56442
56449
  endInBefore: rt !== "insert" ? ye.startInBefore - 1 : null,
56443
- startInAfter: J,
56450
+ startInAfter: Y,
56444
56451
  endInAfter: rt !== "delete" ? ye.startInAfter - 1 : null
56445
56452
  }), ye.length !== 0 && oe.push({
56446
56453
  action: "equal",
@@ -56448,7 +56455,7 @@ var I7 = { exports: {} };
56448
56455
  endInBefore: ye.endInBefore,
56449
56456
  startInAfter: ye.startInAfter,
56450
56457
  endInAfter: ye.endInAfter
56451
- }), B = ye.endInBefore + 1, J = ye.endInAfter + 1;
56458
+ }), B = ye.endInBefore + 1, Y = ye.endInAfter + 1;
56452
56459
  }
56453
56460
  var Ke = [], it = { action: "none" };
56454
56461
  function te(be) {
@@ -56461,7 +56468,7 @@ var I7 = { exports: {} };
56461
56468
  return Ke;
56462
56469
  }
56463
56470
  function P(q) {
56464
- this.tokens = q, this.notes = q.reduce(function(U, B, J) {
56471
+ this.tokens = q, this.notes = q.reduce(function(U, B, Y) {
56465
56472
  U.notes.push({
56466
56473
  isWrappable: m(B),
56467
56474
  insertedTag: !1
@@ -56469,28 +56476,28 @@ var I7 = { exports: {} };
56469
56476
  var oe = !h(B) && r(B), se = U.tagStack[U.tagStack.length - 1];
56470
56477
  return oe && (se && "/" + se.tag === oe ? (U.notes[se.position].insertedTag = !0, U.tagStack.pop()) : U.tagStack.push({
56471
56478
  tag: oe,
56472
- position: J
56479
+ position: Y
56473
56480
  })), U;
56474
56481
  }, { notes: [], tagStack: [] }).notes;
56475
56482
  }
56476
56483
  P.prototype.combine = function(q, U) {
56477
- var B = this.notes, J = this.tokens.slice(), oe = J.reduce(function(se, fe, Re) {
56478
- B[Re].insertedTag && (J[Re] = U(J[Re])), se.status === null && (se.status = B[Re].isWrappable);
56484
+ var B = this.notes, Y = this.tokens.slice(), oe = Y.reduce(function(se, fe, Re) {
56485
+ B[Re].insertedTag && (Y[Re] = U(Y[Re])), se.status === null && (se.status = B[Re].isWrappable);
56479
56486
  var ye = B[Re].isWrappable;
56480
56487
  return ye !== se.status && (se.list.push({
56481
56488
  isWrappable: se.status,
56482
- tokens: J.slice(se.lastIndex, Re)
56483
- }), se.lastIndex = Re, se.status = ye), Re === J.length - 1 && se.list.push({
56489
+ tokens: Y.slice(se.lastIndex, Re)
56490
+ }), se.lastIndex = Re, se.status = ye), Re === Y.length - 1 && se.list.push({
56484
56491
  isWrappable: se.status,
56485
- tokens: J.slice(se.lastIndex, Re + 1)
56492
+ tokens: Y.slice(se.lastIndex, Re + 1)
56486
56493
  }), se;
56487
56494
  }, { list: [], status: null, lastIndex: 0 }).list;
56488
56495
  return oe.map(q).join("");
56489
56496
  };
56490
- function K(q, U, B, J, oe) {
56497
+ function K(q, U, B, Y, oe) {
56491
56498
  var se = new P(U);
56492
- J = J ? J + "-" : "";
56493
- var fe = " data-" + J + 'operation-index="' + B + '"';
56499
+ Y = Y ? Y + "-" : "";
56500
+ var fe = " data-" + Y + 'operation-index="' + B + '"';
56494
56501
  return oe && (fe += ' class="' + oe + '"'), se.combine(function(Re) {
56495
56502
  if (Re.isWrappable) {
56496
56503
  var ye = Re.tokens.join("");
@@ -56501,49 +56508,49 @@ var I7 = { exports: {} };
56501
56508
  return "";
56502
56509
  }, function(Re) {
56503
56510
  var ye = ' data-diff-node="' + q + '"';
56504
- return ye += " data-" + J + 'operation-index="' + B + '"', Re.replace(/>\s*$/, ye + "$&");
56511
+ return ye += " data-" + Y + 'operation-index="' + B + '"', Re.replace(/>\s*$/, ye + "$&");
56505
56512
  });
56506
56513
  }
56507
- var Y = {
56508
- equal: function(q, U, B, J, oe, se) {
56514
+ var J = {
56515
+ equal: function(q, U, B, Y, oe, se) {
56509
56516
  var fe = B.slice(q.startInAfter, q.endInAfter + 1);
56510
56517
  return fe.reduce(function(Re, ye) {
56511
56518
  return Re + ye.string;
56512
56519
  }, "");
56513
56520
  },
56514
- insert: function(q, U, B, J, oe, se) {
56521
+ insert: function(q, U, B, Y, oe, se) {
56515
56522
  var fe = B.slice(q.startInAfter, q.endInAfter + 1), Re = fe.map(function(ye) {
56516
56523
  return ye.string;
56517
56524
  });
56518
- return K("ins", Re, J, oe, se);
56525
+ return K("ins", Re, Y, oe, se);
56519
56526
  },
56520
- delete: function(q, U, B, J, oe, se) {
56527
+ delete: function(q, U, B, Y, oe, se) {
56521
56528
  var fe = U.slice(q.startInBefore, q.endInBefore + 1), Re = fe.map(function(ye) {
56522
56529
  return ye.string;
56523
56530
  });
56524
- return K("del", Re, J, oe, se);
56531
+ return K("del", Re, Y, oe, se);
56525
56532
  },
56526
56533
  replace: function() {
56527
- return Y.delete.apply(null, arguments) + Y.insert.apply(null, arguments);
56534
+ return J.delete.apply(null, arguments) + J.insert.apply(null, arguments);
56528
56535
  }
56529
56536
  };
56530
- function Ee(q, U, B, J, oe) {
56537
+ function Ee(q, U, B, Y, oe) {
56531
56538
  return B.reduce(function(se, fe, Re) {
56532
- return se + Y[fe.action](
56539
+ return se + J[fe.action](
56533
56540
  fe,
56534
56541
  q,
56535
56542
  U,
56536
56543
  Re,
56537
- J,
56544
+ Y,
56538
56545
  oe
56539
56546
  );
56540
56547
  }, "");
56541
56548
  }
56542
- function me(q, U, B, J, oe) {
56549
+ function me(q, U, B, Y, oe) {
56543
56550
  if (q === U) return q;
56544
56551
  oe ? l = new RegExp("^<(" + oe.replace(/\s*/g, "").replace(/,/g, "|") + ")") : l = u, q = w(q), U = w(U);
56545
56552
  var se = D(q, U);
56546
- return Ee(q, U, se, J, B);
56553
+ return Ee(q, U, se, Y, B);
56547
56554
  }
56548
56555
  me.htmlToTokens = w, me.findMatchingBlocks = F, F.findBestMatch = T, F.createMap = S, F.createToken = b, F.createSegment = A, F.getKeyForToken = x, me.calculateOperations = D, me.renderOperations = Ee, t !== null ? t.exports = me : this.htmldiff = me;
56549
56556
  }).call(Nl);
@@ -56596,7 +56603,7 @@ const Tae = /* @__PURE__ */ $H(_ae), Wx = (t, e, n) => {
56596
56603
  class: "flex flex-col"
56597
56604
  }, {
56598
56605
  default: N(() => {
56599
- var S, E, C, T, k, A, F, D, P, K, Y;
56606
+ var S, E, C, T, k, A, F, D, P, K, J;
56600
56607
  return [
56601
56608
  (E = (S = v.originalData) == null ? void 0 : S.titleBar) != null && E.title ? (O(), ue("div", kae, [
56602
56609
  Q("div", Aae, [
@@ -56633,7 +56640,7 @@ const Tae = /* @__PURE__ */ $H(_ae), Wx = (t, e, n) => {
56633
56640
  "field-name-content": (D = v.originalData) == null ? void 0 : D.fieldNameContent,
56634
56641
  comment: (P = v.originalData) == null ? void 0 : P.comment,
56635
56642
  "model-value": (K = v.originalData) == null ? void 0 : K.content,
56636
- "hide-comment": (Y = v.originalData) == null ? void 0 : Y.hideComment,
56643
+ "hide-comment": (J = v.originalData) == null ? void 0 : J.hideComment,
56637
56644
  "is-compare": v.isCompare,
56638
56645
  "content-text-style": v.contentTextStyle
56639
56646
  }, null, 8, ["mode", "extensions", "field-name-comment", "field-name-content", "comment", "model-value", "hide-comment", "is-compare", "content-text-style"])
@@ -56914,14 +56921,14 @@ async function qx({
56914
56921
  });
56915
56922
  return e.view.dispatch(u), !1;
56916
56923
  }
56917
- }), await Rt(), !t) return;
56924
+ }), await It(), !t) return;
56918
56925
  const n = Wae(e, t);
56919
56926
  if (!n) return;
56920
56927
  const { node: o, pos: r } = n, i = e.state.tr.setNodeMarkup(r, void 0, {
56921
56928
  ...o.attrs,
56922
56929
  class: jx
56923
56930
  });
56924
- e.view.dispatch(i), await Rt(), e.view.nodeDOM(r).scrollIntoView({ behavior: "smooth" });
56931
+ e.view.dispatch(i), await It(), e.view.nodeDOM(r).scrollIntoView({ behavior: "smooth" });
56925
56932
  }
56926
56933
  const Nle = /* @__PURE__ */ j({
56927
56934
  __name: "SuperViewMobileEditor",
@@ -56995,8 +57002,8 @@ const Nle = /* @__PURE__ */ j({
56995
57002
  fontFamily: S.value,
56996
57003
  fontSize: x.value
56997
57004
  })), C = V(), T = (U) => {
56998
- const B = parseInt(x.value || "12px"), J = U ? B + 2 : B - 2;
56999
- x.value = J + "px";
57005
+ const B = parseInt(x.value || "12px"), Y = U ? B + 2 : B - 2;
57006
+ x.value = Y + "px";
57000
57007
  };
57001
57008
  ed(() => {
57002
57009
  i.on(T);
@@ -57050,16 +57057,16 @@ const Nle = /* @__PURE__ */ j({
57050
57057
  mt(() => {
57051
57058
  K.value = D;
57052
57059
  });
57053
- const Y = ({ lineIndex: U }) => {
57054
- var J;
57060
+ const J = ({ lineIndex: U }) => {
57061
+ var Y;
57055
57062
  D && qx({ lineIndex: U, editor: D });
57056
- const B = (J = v.value) == null ? void 0 : J.editor;
57063
+ const B = (Y = v.value) == null ? void 0 : Y.editor;
57057
57064
  B && qx({ lineIndex: U, editor: B });
57058
57065
  };
57059
57066
  De(
57060
57067
  () => b.value,
57061
57068
  (U) => {
57062
- r("lineFocus", { lineIndex: U }), Y({ lineIndex: U });
57069
+ r("lineFocus", { lineIndex: U }), J({ lineIndex: U });
57063
57070
  },
57064
57071
  { immediate: !0 }
57065
57072
  );
@@ -57083,7 +57090,7 @@ const Nle = /* @__PURE__ */ j({
57083
57090
  }
57084
57091
  }
57085
57092
  function q(U) {
57086
- return U.every((B) => D == null ? void 0 : D.extensionManager.extensions.find((J) => J.name === B));
57093
+ return U.every((B) => D == null ? void 0 : D.extensionManager.extensions.find((Y) => Y.name === B));
57087
57094
  }
57088
57095
  return De(
57089
57096
  () => h.languages,
@@ -57094,8 +57101,8 @@ const Nle = /* @__PURE__ */ j({
57094
57101
  () => o.modelValue,
57095
57102
  (U) => {
57096
57103
  if (!D || xt.isEqual(me(D, o.output), U)) return;
57097
- const { from: B, to: J } = D.state.selection;
57098
- D.commands.setTextSelection({ from: B, to: J }), D.commands.setContent(Hn(U, o.disabled, o.mode), !1);
57104
+ const { from: B, to: Y } = D.state.selection;
57105
+ D.commands.setTextSelection({ from: B, to: Y }), D.commands.setContent(Hn(U, o.disabled, o.mode), !1);
57099
57106
  },
57100
57107
  { deep: !0 }
57101
57108
  ), De(
@@ -57114,7 +57121,7 @@ const Nle = /* @__PURE__ */ j({
57114
57121
  var U, B;
57115
57122
  (U = D == null ? void 0 : D.commands) != null && U.setIsEnableSuggestion && D.commands.setIsEnableSuggestion(!1), (B = D == null ? void 0 : D.commands) != null && B.setIsMobile && D.commands.setIsMobile(!0);
57116
57123
  }), S0(D), e({ editor: D }), (U, B) => {
57117
- const J = E0, oe = C0, se = x0, fe = i0, Re = k7, ye = Qc;
57124
+ const Y = E0, oe = C0, se = x0, fe = i0, Re = k7, ye = Qc;
57118
57125
  return K.value ? (O(), ue("div", {
57119
57126
  key: 0,
57120
57127
  id: "vdc-editor",
@@ -57130,7 +57137,7 @@ const Nle = /* @__PURE__ */ j({
57130
57137
  )
57131
57138
  }, [
57132
57139
  !U.hideBubble && !U.disabled && m.value ? (O(), ue(et, { key: 0 }, [
57133
- q([g(yd)]) ? (O(), $(J, {
57140
+ q([g(yd)]) ? (O(), $(Y, {
57134
57141
  key: 0,
57135
57142
  editor: g(D)
57136
57143
  }, null, 8, ["editor"])) : ve("", !0),
@@ -57218,7 +57225,7 @@ const Nle = /* @__PURE__ */ j({
57218
57225
  "model-value": U.modelValue,
57219
57226
  disabled: U.disabled,
57220
57227
  readonly: U.readonly,
57221
- onLineFocus: Y
57228
+ onLineFocus: J
57222
57229
  }, null, 8, ["mode", "field-name-super", "extensions", "model-value", "disabled", "readonly"])
57223
57230
  ], 2)
57224
57231
  ]),
@@ -57681,4 +57688,4 @@ export {
57681
57688
  sle as y,
57682
57689
  ele as z
57683
57690
  };
57684
- //# sourceMappingURL=index-D_YY89mO.mjs.map
57691
+ //# sourceMappingURL=index--iCf6MEY.mjs.map