vdc-editor 0.1.82 → 0.1.84

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 MR = Object.defineProperty;
2
2
  var NR = (t, e, n) => e in t ? MR(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var En = (t, e, n) => NR(t, typeof e != "symbol" ? e + "" : e, n);
4
4
  import * as Q3 from "vue";
5
- import { computed as Y, ref as U, shallowRef as Zp, watch as He, getCurrentScope as px, onScopeDispose as hx, shallowReadonly as al, unref as b, defineComponent as j, createBlock as $, openBlock as N, mergeProps as Se, withCtx as M, renderSlot as te, toRefs as In, createElementBlock as xe, Fragment as et, createVNode as D, createCommentVNode as $e, withKeys as pc, withModifiers as sr, h as Mn, normalizeProps as Ut, guardReactiveProps as Zt, onMounted as ht, toHandlers as RR, resolveDynamicComponent as Zr, getCurrentInstance as Br, toRef as LR, camelize as mx, toHandlerKey as IR, nextTick as Dt, inject as Xn, provide as nr, Comment as gx, cloneVNode as DR, readonly as bx, watchEffect as xn, Teleport as Qp, useSlots as eh, createTextVNode as lt, toDisplayString as Fe, onUnmounted as ur, reactive as vo, normalizeStyle as Jt, mergeDefaults as vx, watchPostEffect as PR, markRaw as pb, effectScope as hb, customRef as yx, onBeforeUnmount as Er, onBeforeUpdate as BR, onUpdated as FR, isRef as th, createElementVNode as ne, renderList as $t, onBeforeMount as jc, withDirectives as Io, vModelSelect as $R, Text as HR, normalizeClass as ut, createSlots as mb, vModelText as zR, render as e4, vShow as zi, useAttrs as nh } from "vue";
5
+ import { computed as Y, ref as U, shallowRef as Zp, watch as He, getCurrentScope as px, onScopeDispose as hx, shallowReadonly as al, unref as b, defineComponent as j, createBlock as $, openBlock as N, mergeProps as Se, withCtx as M, renderSlot as te, toRefs as In, createElementBlock as xe, Fragment as et, createVNode as P, createCommentVNode as $e, withKeys as pc, withModifiers as Qn, h as Mn, normalizeProps as Ut, guardReactiveProps as Zt, onMounted as ht, toHandlers as RR, resolveDynamicComponent as Zr, getCurrentInstance as Br, toRef as LR, camelize as mx, toHandlerKey as IR, nextTick as Dt, inject as Xn, provide as rr, Comment as gx, cloneVNode as DR, readonly as bx, watchEffect as xn, Teleport as Qp, useSlots as eh, createTextVNode as lt, toDisplayString as Fe, onUnmounted as ur, reactive as vo, normalizeStyle as Jt, mergeDefaults as vx, watchPostEffect as PR, markRaw as pb, effectScope as hb, customRef as yx, onBeforeUnmount as Er, onBeforeUpdate as BR, onUpdated as FR, isRef as th, createElementVNode as ne, renderList as $t, onBeforeMount as jc, withDirectives as Io, vModelSelect as $R, Text as HR, normalizeClass as ut, createSlots as mb, vModelText as zR, render as e4, vShow as zi, useAttrs as nh } from "vue";
6
6
  import { useVModel as VR, useLocalStorage as UR, createEventHook as t4, createGlobalState as WR, useFullscreen as jR, useEventBus as cr, useFocus as qR, onClickOutside as gb, useFileDialog as KR, useDark as rh, useToggle as oh, useElementSize as GR, useElementBounding as n4, useIntervalFn as JR } from "@vueuse/core";
7
7
  const XR = ["top", "right", "bottom", "left"], Ms = Math.min, Wr = Math.max, Jf = Math.round, Zd = Math.floor, ti = (t) => ({
8
8
  x: t,
@@ -287,7 +287,7 @@ const iL = (t) => ({
287
287
  }, m = yb(o), g = vb(m), y = await s.getDimensions(u), w = m === "y", x = w ? "top" : "left", C = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", _ = i.reference[g] + i.reference[m] - h[m] - i.floating[g], k = h[m] - i.reference[m], T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
288
288
  let A = T ? T[S] : 0;
289
289
  (!A || !await (s.isElement == null ? void 0 : s.isElement(T))) && (A = a.floating[S] || i.floating[g]);
290
- const P = _ / 2 - k / 2, I = A / 2 - y[g] / 2 - 1, B = Ms(p[x], I), V = Ms(p[C], I), ee = B, he = A - y[g] - V, Oe = A / 2 - y[g] / 2 + P, q = I1(ee, Oe, he), G = !l.arrow && Jl(o) != null && Oe !== q && i.reference[g] / 2 - (Oe < ee ? B : V) - y[g] / 2 < 0, F = G ? Oe < ee ? Oe - ee : Oe - he : 0;
290
+ const D = _ / 2 - k / 2, I = A / 2 - y[g] / 2 - 1, B = Ms(p[x], I), V = Ms(p[C], I), ee = B, he = A - y[g] - V, Oe = A / 2 - y[g] / 2 + D, q = I1(ee, Oe, he), G = !l.arrow && Jl(o) != null && Oe !== q && i.reference[g] / 2 - (Oe < ee ? B : V) - y[g] / 2 < 0, F = G ? Oe < ee ? Oe - ee : Oe - he : 0;
291
291
  return {
292
292
  [m]: h[m] + F,
293
293
  data: {
@@ -326,11 +326,11 @@ const iL = (t) => ({
326
326
  return {};
327
327
  const x = ji(o), C = Ns(a), S = ji(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = h || (S || !y ? [Xf(a)] : eL(a)), T = g !== "none";
328
328
  !h && T && k.push(...nL(a, y, g, _));
329
- const A = [a, ...k], P = await hc(e, w), I = [];
329
+ const A = [a, ...k], D = await hc(e, w), I = [];
330
330
  let B = ((r = i.flip) == null ? void 0 : r.overflows) || [];
331
- if (d && I.push(P[x]), p) {
331
+ if (d && I.push(D[x]), p) {
332
332
  const Oe = QR(o, s, _);
333
- I.push(P[Oe[0]], P[Oe[1]]);
333
+ I.push(D[Oe[0]], D[Oe[1]]);
334
334
  }
335
335
  if (B = [...B, {
336
336
  placement: o,
@@ -602,14 +602,14 @@ const uL = function(t) {
602
602
  let w, x;
603
603
  p === "top" || p === "bottom" ? (w = p, x = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = p, w = h === "end" ? "top" : "bottom");
604
604
  const C = y - d.top - d.bottom, S = g - d.left - d.right, _ = Ms(y - d[w], C), k = Ms(g - d[x], S), T = !e.middlewareData.shift;
605
- let A = _, P = k;
606
- if ((n = e.middlewareData.shift) != null && n.enabled.x && (P = S), (r = e.middlewareData.shift) != null && r.enabled.y && (A = C), T && !h) {
605
+ let A = _, D = k;
606
+ if ((n = e.middlewareData.shift) != null && n.enabled.x && (D = S), (r = e.middlewareData.shift) != null && r.enabled.y && (A = C), T && !h) {
607
607
  const B = Wr(d.left, 0), V = Wr(d.right, 0), ee = Wr(d.top, 0), he = Wr(d.bottom, 0);
608
- m ? P = g - 2 * (B !== 0 || V !== 0 ? B + V : Wr(d.left, d.right)) : A = y - 2 * (ee !== 0 || he !== 0 ? ee + he : Wr(d.top, d.bottom));
608
+ m ? D = g - 2 * (B !== 0 || V !== 0 ? B + V : Wr(d.left, d.right)) : A = y - 2 * (ee !== 0 || he !== 0 ? ee + he : Wr(d.top, d.bottom));
609
609
  }
610
610
  await l({
611
611
  ...e,
612
- availableWidth: P,
612
+ availableWidth: D,
613
613
  availableHeight: A
614
614
  });
615
615
  const I = await s.getDimensions(a.floating);
@@ -1164,16 +1164,16 @@ function HL(t, e, n) {
1164
1164
  };
1165
1165
  if (!d.value)
1166
1166
  return A;
1167
- const P = c4(d.value, p.value), I = c4(d.value, h.value);
1167
+ const D = c4(d.value, p.value), I = c4(d.value, h.value);
1168
1168
  return l.value ? {
1169
1169
  ...A,
1170
- transform: "translate(" + P + "px, " + I + "px)",
1170
+ transform: "translate(" + D + "px, " + I + "px)",
1171
1171
  ...Ax(d.value) >= 1.5 && {
1172
1172
  willChange: "transform"
1173
1173
  }
1174
1174
  } : {
1175
1175
  position: m.value,
1176
- left: P + "px",
1176
+ left: D + "px",
1177
1177
  top: I + "px"
1178
1178
  };
1179
1179
  });
@@ -1186,8 +1186,8 @@ function HL(t, e, n) {
1186
1186
  middleware: i.value,
1187
1187
  placement: s.value,
1188
1188
  strategy: a.value
1189
- }).then((P) => {
1190
- p.value = P.x, h.value = P.y, m.value = P.strategy, g.value = P.placement, y.value = P.middlewareData, w.value = A !== !1;
1189
+ }).then((D) => {
1190
+ p.value = D.x, h.value = D.y, m.value = D.strategy, g.value = D.placement, y.value = D.middlewareData, w.value = A !== !1;
1191
1191
  });
1192
1192
  }
1193
1193
  function _() {
@@ -1234,7 +1234,7 @@ function ln(t, e) {
1234
1234
  ", "
1235
1235
  )}` : `\`${t}\``}`
1236
1236
  );
1237
- }, (o) => (nr(r, o), o)];
1237
+ }, (o) => (rr(r, o), o)];
1238
1238
  }
1239
1239
  function Ox(t, e, n) {
1240
1240
  const r = n.originalEvent.target, o = new CustomEvent(t, {
@@ -1668,7 +1668,7 @@ function Kc(t, e = fI) {
1668
1668
  }
1669
1669
  return BR(() => {
1670
1670
  o.value = [];
1671
- }), ht(i), FR(i), He(() => r == null ? void 0 : r.value, i, { immediate: !0 }), nr(n, o), o;
1671
+ }), ht(i), FR(i), He(() => r == null ? void 0 : r.value, i, { immediate: !0 }), rr(n, o), o;
1672
1672
  }, injectCollection: () => Xn(n, U([])) };
1673
1673
  }
1674
1674
  function Da(t) {
@@ -2641,7 +2641,7 @@ const Kx = /* @__PURE__ */ j({
2641
2641
  onUnmountAutoFocus: l[6] || (l[6] = (u) => r("closeAutoFocus", u))
2642
2642
  }, {
2643
2643
  default: M(() => [
2644
- D(b(Jc), Se({
2644
+ P(b(Jc), Se({
2645
2645
  id: b(o).contentId,
2646
2646
  ref: b(i),
2647
2647
  as: a.as,
@@ -2808,7 +2808,7 @@ const Kx = /* @__PURE__ */ j({
2808
2808
  present: r.forceMount || b(e).open.value
2809
2809
  }, {
2810
2810
  default: M(() => [
2811
- D(eD, Se(r.$attrs, {
2811
+ P(eD, Se(r.$attrs, {
2812
2812
  ref: b(n),
2813
2813
  as: r.as,
2814
2814
  "as-child": r.asChild
@@ -2913,7 +2913,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
2913
2913
  disabled: o,
2914
2914
  state: i
2915
2915
  }), (d, p) => (N(), xe(et, null, [
2916
- D(b(ft), Se(d.$attrs, {
2916
+ P(b(ft), Se(d.$attrs, {
2917
2917
  id: d.id,
2918
2918
  ref: b(s),
2919
2919
  role: "checkbox",
@@ -2926,7 +2926,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
2926
2926
  "data-state": b(Jx)(b(i)),
2927
2927
  "data-disabled": b(o) ? "" : void 0,
2928
2928
  disabled: b(o),
2929
- onKeydown: pc(sr(() => {
2929
+ onKeydown: pc(Qn(() => {
2930
2930
  }, ["prevent"]), ["enter"]),
2931
2931
  onClick: p[0] || (p[0] = (h) => i.value = b(Qf)(b(i)) ? !0 : !b(i))
2932
2932
  }), {
@@ -2968,7 +2968,7 @@ const oD = ["value", "checked", "name", "disabled", "required"], [iD, sD] = ln("
2968
2968
  present: r.forceMount || b(Qf)(b(n).state.value) || b(n).state.value === !0
2969
2969
  }, {
2970
2970
  default: M(() => [
2971
- D(b(ft), Se({
2971
+ P(b(ft), Se({
2972
2972
  ref: b(e),
2973
2973
  "data-state": b(Jx)(b(n).state.value),
2974
2974
  "data-disabled": b(n).disabled.value ? "" : void 0,
@@ -3150,7 +3150,7 @@ const Yx = {
3150
3150
  xn(() => {
3151
3151
  s.value && (A.value = window.getComputedStyle(s.value).zIndex);
3152
3152
  });
3153
- const P = Y(() => {
3153
+ const D = Y(() => {
3154
3154
  var B;
3155
3155
  return ((B = S.value.arrow) == null ? void 0 : B.x) ?? 0;
3156
3156
  }), I = Y(() => {
@@ -3160,7 +3160,7 @@ const Yx = {
3160
3160
  return fD({
3161
3161
  placedSide: _,
3162
3162
  onArrowChange: (B) => l.value = B,
3163
- arrowX: P,
3163
+ arrowX: D,
3164
3164
  arrowY: I,
3165
3165
  shouldHideArrow: T
3166
3166
  }), (B, V) => {
@@ -3188,7 +3188,7 @@ const Yx = {
3188
3188
  }
3189
3189
  })
3190
3190
  }, [
3191
- D(b(ft), Se({ ref: b(i) }, B.$attrs, {
3191
+ P(b(ft), Se({ ref: b(i) }, B.$attrs, {
3192
3192
  "as-child": n.asChild,
3193
3193
  as: B.as,
3194
3194
  "data-side": _.value,
@@ -3441,7 +3441,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3441
3441
  }
3442
3442
  }), (w, x) => (N(), $(b(gD), null, {
3443
3443
  default: M(() => [
3444
- D(b(ft), {
3444
+ P(b(ft), {
3445
3445
  tabindex: d.value || h.value === 0 ? -1 : 0,
3446
3446
  "data-orientation": b(s),
3447
3447
  as: w.as,
@@ -3512,7 +3512,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3512
3512
  }
3513
3513
  return (a, l) => (N(), $(b(Qx), null, {
3514
3514
  default: M(() => [
3515
- D(b(ft), {
3515
+ P(b(ft), {
3516
3516
  tabindex: o.value ? 0 : -1,
3517
3517
  "data-orientation": b(n).orientation.value,
3518
3518
  "data-active": a.active,
@@ -3603,7 +3603,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3603
3603
  const q = S.value;
3604
3604
  Wx.includes(B.key) && q.reverse(), V1(q);
3605
3605
  }
3606
- function P(B) {
3606
+ function D(B) {
3607
3607
  var V, ee;
3608
3608
  (ee = (V = B == null ? void 0 : B.currentTarget) == null ? void 0 : V.contains) != null && ee.call(V, B.target) || (window.clearTimeout(d.value), u.value = "");
3609
3609
  }
@@ -3636,7 +3636,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3636
3636
  onUnmountAutoFocus: V[7] || (V[7] = (ee) => r("closeAutoFocus", ee))
3637
3637
  }, {
3638
3638
  default: M(() => [
3639
- D(b(Jc), {
3639
+ P(b(Jc), {
3640
3640
  "as-child": "",
3641
3641
  "disable-outside-pointer-events": b(a),
3642
3642
  onEscapeKeyDown: V[2] || (V[2] = (ee) => r("escapeKeyDown", ee)),
@@ -3646,7 +3646,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3646
3646
  onDismiss: V[6] || (V[6] = (ee) => r("dismiss"))
3647
3647
  }, {
3648
3648
  default: M(() => [
3649
- D(b(i5), {
3649
+ P(b(i5), {
3650
3650
  "current-tab-stop-id": y.value,
3651
3651
  "onUpdate:currentTabStopId": V[0] || (V[0] = (ee) => y.value = ee),
3652
3652
  "as-child": "",
@@ -3658,7 +3658,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3658
3658
  })
3659
3659
  }, {
3660
3660
  default: M(() => [
3661
- D(b(gh), {
3661
+ P(b(gh), {
3662
3662
  ref: b(x),
3663
3663
  role: "menu",
3664
3664
  as: B.as,
@@ -3679,7 +3679,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3679
3679
  sticky: B.sticky,
3680
3680
  "hide-when-detached": B.hideWhenDetached,
3681
3681
  onKeydown: A,
3682
- onBlur: P,
3682
+ onBlur: D,
3683
3683
  onPointermove: I
3684
3684
  }, {
3685
3685
  default: M(() => [
@@ -3725,7 +3725,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3725
3725
  value: { textValue: a.textValue }
3726
3726
  }, {
3727
3727
  default: M(() => [
3728
- D(b(ft), Se({
3728
+ P(b(ft), Se({
3729
3729
  ref: b(r),
3730
3730
  role: "menuitem",
3731
3731
  tabindex: "-1"
@@ -3814,7 +3814,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3814
3814
  present: n.forceMount || b(Zf)(b(e).checked.value) || b(e).checked.value === !0
3815
3815
  }, {
3816
3816
  default: M(() => [
3817
- D(b(ft), {
3817
+ P(b(ft), {
3818
3818
  as: n.as,
3819
3819
  "as-child": n.asChild,
3820
3820
  "data-state": b(qx)(b(e).checked.value)
@@ -3881,7 +3881,7 @@ const [kD, AD] = ln("RovingFocusGroup"), i5 = /* @__PURE__ */ j({
3881
3881
  "disable-outside-pointer-events": b(i).open.value,
3882
3882
  "disable-outside-scroll": !0,
3883
3883
  onDismiss: u[0] || (u[0] = (d) => b(i).onOpenChange(!1)),
3884
- onFocusOutside: u[1] || (u[1] = sr((d) => r("focusOutside", d), ["prevent"]))
3884
+ onFocusOutside: u[1] || (u[1] = Qn((d) => r("focusOutside", d), ["prevent"]))
3885
3885
  }), {
3886
3886
  default: M(() => [
3887
3887
  te(l.$slots, "default")
@@ -4072,11 +4072,11 @@ const zD = /* @__PURE__ */ j({
4072
4072
  n.value || (await Dt(), g4(m) && !m.defaultPrevented && l());
4073
4073
  }
4074
4074
  return (m, g) => (N(), xe(et, null, [
4075
- D(b(n5), {
4075
+ P(b(n5), {
4076
4076
  as: "template",
4077
4077
  element: s.value
4078
4078
  }, null, 8, ["element"]),
4079
- D(b(ft), Se({
4079
+ P(b(ft), Se({
4080
4080
  ref: b(r),
4081
4081
  as: m.as,
4082
4082
  "as-child": m.asChild,
@@ -4231,7 +4231,7 @@ const zD = /* @__PURE__ */ j({
4231
4231
  n.triggerElement = o;
4232
4232
  }), n.triggerId || (n.triggerId = $o(void 0, "radix-vue-dropdown-menu-trigger")), (i, s) => (N(), $(b(n5), { "as-child": "" }, {
4233
4233
  default: M(() => [
4234
- D(b(ft), {
4234
+ P(b(ft), {
4235
4235
  id: b(n).triggerId,
4236
4236
  ref: b(r),
4237
4237
  type: i.as === "button" ? "button" : void 0,
@@ -4469,7 +4469,7 @@ const zD = /* @__PURE__ */ j({
4469
4469
  n.triggerElement.value = o.value;
4470
4470
  }), (i, s) => (N(), $(Zr(b(n).hasCustomAnchor.value ? b(ft) : b(mh)), { "as-child": "" }, {
4471
4471
  default: M(() => [
4472
- D(b(ft), {
4472
+ P(b(ft), {
4473
4473
  ref: b(r),
4474
4474
  type: i.as === "button" ? "button" : void 0,
4475
4475
  "aria-haspopup": "dialog",
@@ -4536,7 +4536,7 @@ const zD = /* @__PURE__ */ j({
4536
4536
  onUnmountAutoFocus: l[6] || (l[6] = (u) => r("closeAutoFocus", u))
4537
4537
  }, {
4538
4538
  default: M(() => [
4539
- D(b(Jc), {
4539
+ P(b(Jc), {
4540
4540
  "as-child": "",
4541
4541
  "disable-outside-pointer-events": a.disableOutsidePointerEvents,
4542
4542
  onPointerDownOutside: l[0] || (l[0] = (u) => r("pointerDownOutside", u)),
@@ -4546,7 +4546,7 @@ const zD = /* @__PURE__ */ j({
4546
4546
  onDismiss: l[4] || (l[4] = (u) => b(s).onOpenChange(!1))
4547
4547
  }, {
4548
4548
  default: M(() => [
4549
- D(b(gh), Se(b(o), {
4549
+ P(b(gh), Se(b(o), {
4550
4550
  id: b(s).contentId,
4551
4551
  ref: b(i),
4552
4552
  "data-state": b(s).open.value ? "open" : "closed",
@@ -4600,7 +4600,7 @@ const zD = /* @__PURE__ */ j({
4600
4600
  ref: b(a),
4601
4601
  "trap-focus": b(o).open.value,
4602
4602
  "disable-outside-pointer-events": "",
4603
- onCloseAutoFocus: d[0] || (d[0] = sr(
4603
+ onCloseAutoFocus: d[0] || (d[0] = Qn(
4604
4604
  (p) => {
4605
4605
  var h;
4606
4606
  r("closeAutoFocus", p), i.value || (h = b(o).triggerElement.value) == null || h.focus();
@@ -4612,7 +4612,7 @@ const zD = /* @__PURE__ */ j({
4612
4612
  const h = p.detail.originalEvent, m = h.button === 0 && h.ctrlKey === !0, g = h.button === 2 || m;
4613
4613
  i.value = g;
4614
4614
  }),
4615
- onFocusOutside: d[2] || (d[2] = sr(() => {
4615
+ onFocusOutside: d[2] || (d[2] = Qn(() => {
4616
4616
  }, ["prevent"]))
4617
4617
  }), {
4618
4618
  default: M(() => [
@@ -4830,7 +4830,7 @@ const zD = /* @__PURE__ */ j({
4830
4830
  overflowY: b(i).scrollbarYEnabled.value ? "scroll" : "hidden"
4831
4831
  }
4832
4832
  }, u.$attrs, { tabindex: 0 }), [
4833
- D(b(ft), {
4833
+ P(b(ft), {
4834
4834
  ref: b(a),
4835
4835
  style: Jt({
4836
4836
  /**
@@ -4851,7 +4851,7 @@ const zD = /* @__PURE__ */ j({
4851
4851
  _: 3
4852
4852
  }, 8, ["style", "as-child", "as"])
4853
4853
  ], 16),
4854
- D(b(ft), {
4854
+ P(b(ft), {
4855
4855
  as: "style",
4856
4856
  nonce: b(o)
4857
4857
  }, {
@@ -5134,7 +5134,7 @@ const m5 = /* @__PURE__ */ j({
5134
5134
  present: s.forceMount || o.value
5135
5135
  }, {
5136
5136
  default: M(() => [
5137
- D(Nb, Se(s.$attrs, {
5137
+ P(Nb, Se(s.$attrs, {
5138
5138
  ref: b(r),
5139
5139
  "data-state": o.value ? "visible" : "hidden"
5140
5140
  }), {
@@ -5175,7 +5175,7 @@ const m5 = /* @__PURE__ */ j({
5175
5175
  present: a.forceMount || o.value
5176
5176
  }, {
5177
5177
  default: M(() => [
5178
- D(g5, Se(a.$attrs, {
5178
+ P(g5, Se(a.$attrs, {
5179
5179
  ref: b(n),
5180
5180
  "data-state": o.value ? "visible" : "hidden"
5181
5181
  }), {
@@ -5240,7 +5240,7 @@ const m5 = /* @__PURE__ */ j({
5240
5240
  present: a.forceMount || b(o) !== "hidden"
5241
5241
  }, {
5242
5242
  default: M(() => [
5243
- D(Nb, Se(a.$attrs, { ref: b(r) }), {
5243
+ P(Nb, Se(a.$attrs, { ref: b(r) }), {
5244
5244
  default: M(() => [
5245
5245
  te(a.$slots, "default")
5246
5246
  ]),
@@ -5572,7 +5572,7 @@ const NP = /* @__PURE__ */ j({
5572
5572
  default: M(() => {
5573
5573
  var y, w, x, C;
5574
5574
  return [
5575
- D(b(ft), {
5575
+ P(b(ft), {
5576
5576
  ref: b(o),
5577
5577
  role: "combobox",
5578
5578
  type: m.as === "button" ? "button" : void 0,
@@ -5597,7 +5597,7 @@ const NP = /* @__PURE__ */ j({
5597
5597
  const _ = S.target;
5598
5598
  _.hasPointerCapture(S.pointerId) && _.releasePointerCapture(S.pointerId), S.button === 0 && S.ctrlKey === !1 && (h(S), S.preventDefault());
5599
5599
  }),
5600
- onPointerup: g[2] || (g[2] = sr(
5600
+ onPointerup: g[2] || (g[2] = Qn(
5601
5601
  (S) => {
5602
5602
  S.pointerType === "touch" && h(S);
5603
5603
  },
@@ -5658,7 +5658,7 @@ const NP = /* @__PURE__ */ j({
5658
5658
  );
5659
5659
  d.value.style.minWidth = `${me}px`, d.value.style.right = `${qe}px`;
5660
5660
  }
5661
- const P = a.value, I = window.innerHeight - Oo * 2, B = m.value.scrollHeight, V = window.getComputedStyle(h.value), ee = Number.parseInt(
5661
+ const D = a.value, I = window.innerHeight - Oo * 2, B = m.value.scrollHeight, V = window.getComputedStyle(h.value), ee = Number.parseInt(
5662
5662
  V.borderTopWidth,
5663
5663
  10
5664
5664
  ), he = Number.parseInt(V.paddingTop, 10), Oe = Number.parseInt(
@@ -5675,7 +5675,7 @@ const NP = /* @__PURE__ */ j({
5675
5675
  10
5676
5676
  ), fe = _.top + _.height / 2 - Oo, Re = I - fe, Ie = g.value.offsetHeight / 2, ct = g.value.offsetTop + Ie, Ue = ee + he + ct, ke = G - Ue;
5677
5677
  if (Ue <= fe) {
5678
- const X = g.value === P[P.length - 1];
5678
+ const X = g.value === D[D.length - 1];
5679
5679
  d.value.style.bottom = "0px";
5680
5680
  const re = h.value.clientHeight - m.value.offsetTop - m.value.offsetHeight, pe = Math.max(
5681
5681
  Re,
@@ -5683,7 +5683,7 @@ const NP = /* @__PURE__ */ j({
5683
5683
  ), me = Ue + pe;
5684
5684
  d.value.style.height = `${me}px`;
5685
5685
  } else {
5686
- const X = g.value === P[0];
5686
+ const X = g.value === D[0];
5687
5687
  d.value.style.top = "0px";
5688
5688
  const re = Math.max(
5689
5689
  fe,
@@ -5715,7 +5715,7 @@ const NP = /* @__PURE__ */ j({
5715
5715
  zIndex: C.value
5716
5716
  })
5717
5717
  }, [
5718
- D(b(ft), Se({
5718
+ P(b(ft), Se({
5719
5719
  ref: b(p),
5720
5720
  style: {
5721
5721
  // When we get the height of the content, it includes borders. If we were to set
@@ -5822,15 +5822,15 @@ const NP = /* @__PURE__ */ j({
5822
5822
  Math.round(I.pageY) - (((V = x.value) == null ? void 0 : V.y) ?? 0)
5823
5823
  )
5824
5824
  };
5825
- }, P = (I) => {
5825
+ }, D = (I) => {
5826
5826
  var B;
5827
5827
  I.pointerType !== "touch" && (T.x <= 10 && T.y <= 10 ? I.preventDefault() : (B = s.value) != null && B.contains(I.target) || w(!1), document.removeEventListener("pointermove", A), x.value = null);
5828
5828
  };
5829
- x.value !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", P, {
5829
+ x.value !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", D, {
5830
5830
  capture: !0,
5831
5831
  once: !0
5832
5832
  })), k(() => {
5833
- document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", P, {
5833
+ document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", D, {
5834
5834
  capture: !0
5835
5835
  });
5836
5836
  });
@@ -5840,7 +5840,7 @@ const NP = /* @__PURE__ */ j({
5840
5840
  if (k.key === "Tab" && k.preventDefault(), !T && k.key.length === 1 && u(k.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(k.key)) {
5841
5841
  let A = a.value;
5842
5842
  if (["ArrowUp", "End"].includes(k.key) && (A = A.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(k.key)) {
5843
- const P = k.target, I = A.indexOf(P);
5843
+ const D = k.target, I = A.indexOf(D);
5844
5844
  A = A.slice(I + 1);
5845
5845
  }
5846
5846
  setTimeout(() => V1(A)), k.preventDefault();
@@ -5854,9 +5854,9 @@ const NP = /* @__PURE__ */ j({
5854
5854
  d.value = k;
5855
5855
  },
5856
5856
  itemRefCallback: (k, T, A) => {
5857
- var P, I;
5857
+ var D, I;
5858
5858
  const B = !g.value && !A;
5859
- (((P = o.modelValue) == null ? void 0 : P.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (p.value = k, B && (g.value = !0));
5859
+ (((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (p.value = k, B && (g.value = !0));
5860
5860
  },
5861
5861
  selectedItem: p,
5862
5862
  selectedItemText: h,
@@ -5865,9 +5865,9 @@ const NP = /* @__PURE__ */ j({
5865
5865
  (k = s.value) == null || k.focus();
5866
5866
  },
5867
5867
  itemTextRefCallback: (k, T, A) => {
5868
- var P, I;
5868
+ var D, I;
5869
5869
  const B = !g.value && !A;
5870
- (((P = o.modelValue) == null ? void 0 : P.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (h.value = k);
5870
+ (((D = o.modelValue) == null ? void 0 : D.value) !== void 0 && ((I = o.modelValue) == null ? void 0 : I.value) === T || B) && (h.value = k);
5871
5871
  },
5872
5872
  focusSelectedItem: y,
5873
5873
  position: n.position,
@@ -5875,18 +5875,18 @@ const NP = /* @__PURE__ */ j({
5875
5875
  searchRef: l
5876
5876
  }), (k, T) => (N(), $(b(ph), {
5877
5877
  "as-child": "",
5878
- onMountAutoFocus: T[6] || (T[6] = sr(() => {
5878
+ onMountAutoFocus: T[6] || (T[6] = Qn(() => {
5879
5879
  }, ["prevent"])),
5880
5880
  onUnmountAutoFocus: T[7] || (T[7] = (A) => {
5881
- var P;
5882
- r("closeAutoFocus", A), !A.defaultPrevented && ((P = b(o).triggerElement.value) == null || P.focus({ preventScroll: !0 }), A.preventDefault());
5881
+ var D;
5882
+ r("closeAutoFocus", A), !A.defaultPrevented && ((D = b(o).triggerElement.value) == null || D.focus({ preventScroll: !0 }), A.preventDefault());
5883
5883
  })
5884
5884
  }, {
5885
5885
  default: M(() => [
5886
- D(b(Jc), {
5886
+ P(b(Jc), {
5887
5887
  "as-child": "",
5888
5888
  "disable-outside-pointer-events": "",
5889
- onFocusOutside: T[2] || (T[2] = sr(() => {
5889
+ onFocusOutside: T[2] || (T[2] = Qn(() => {
5890
5890
  }, ["prevent"])),
5891
5891
  onDismiss: T[3] || (T[3] = (A) => b(o).onOpenChange(!1)),
5892
5892
  onEscapeKeyDown: T[4] || (T[4] = (A) => r("escapeKeyDown", A)),
@@ -5910,7 +5910,7 @@ const NP = /* @__PURE__ */ j({
5910
5910
  // reset the outline by default as the content MAY get focused
5911
5911
  outline: "none"
5912
5912
  },
5913
- onContextmenu: T[0] || (T[0] = sr(() => {
5913
+ onContextmenu: T[0] || (T[0] = Qn(() => {
5914
5914
  }, ["prevent"])),
5915
5915
  onPlaced: T[1] || (T[1] = (A) => m.value = !0),
5916
5916
  onKeydown: C
@@ -5974,7 +5974,7 @@ const NP = /* @__PURE__ */ j({
5974
5974
  present: !0
5975
5975
  }, {
5976
5976
  default: M(() => [
5977
- D(BP, Ut(Zt({ ...b(r), ...l.$attrs })), {
5977
+ P(BP, Ut(Zt({ ...b(r), ...l.$attrs })), {
5978
5978
  default: M(() => [
5979
5979
  te(l.$slots, "default")
5980
5980
  ]),
@@ -5984,7 +5984,7 @@ const NP = /* @__PURE__ */ j({
5984
5984
  _: 3
5985
5985
  }, 512)) : !((d = s.value) != null && d.present) && i.value ? (N(), xe("div", $P, [
5986
5986
  (N(), $(Qp, { to: i.value }, [
5987
- D(FP, { context: b(o) }, {
5987
+ P(FP, { context: b(o) }, {
5988
5988
  default: M(() => [
5989
5989
  te(l.$slots, "default")
5990
5990
  ]),
@@ -6075,7 +6075,7 @@ const NP = /* @__PURE__ */ j({
6075
6075
  onPointerdown: w[2] || (w[2] = (x) => {
6076
6076
  x.currentTarget.focus({ preventScroll: !0 });
6077
6077
  }),
6078
- onTouchend: w[3] || (w[3] = sr(() => {
6078
+ onTouchend: w[3] || (w[3] = Qn(() => {
6079
6079
  }, ["prevent", "stop"])),
6080
6080
  onPointermove: h,
6081
6081
  onPointerleave: m,
@@ -6146,7 +6146,7 @@ const NP = /* @__PURE__ */ j({
6146
6146
  }), Er(() => {
6147
6147
  o.onNativeOptionRemove(l.value);
6148
6148
  }), (u, d) => (N(), xe(et, null, [
6149
- D(b(ft), Se({
6149
+ P(b(ft), Se({
6150
6150
  id: b(i).textId,
6151
6151
  ref: b(s)
6152
6152
  }, { ...e, ...u.$attrs }, { "data-item-text": "" }), {
@@ -6193,7 +6193,7 @@ const NP = /* @__PURE__ */ j({
6193
6193
  l.value = p.scrollTop;
6194
6194
  }
6195
6195
  return (d, p) => (N(), xe(et, null, [
6196
- D(b(ft), Se({
6196
+ P(b(ft), Se({
6197
6197
  ref: b(s),
6198
6198
  "data-radix-select-viewport": "",
6199
6199
  role: "presentation"
@@ -6213,7 +6213,7 @@ const NP = /* @__PURE__ */ j({
6213
6213
  ]),
6214
6214
  _: 3
6215
6215
  }, 16),
6216
- D(b(ft), {
6216
+ P(b(ft), {
6217
6217
  as: "style",
6218
6218
  nonce: b(r)
6219
6219
  }, {
@@ -6500,7 +6500,7 @@ const [Lb, nB] = ln("TabsRoot"), rB = /* @__PURE__ */ j({
6500
6500
  loop: b(n)
6501
6501
  }, {
6502
6502
  default: M(() => [
6503
- D(b(ft), {
6503
+ P(b(ft), {
6504
6504
  ref: b(r),
6505
6505
  role: "tablist",
6506
6506
  "as-child": s.asChild,
@@ -6542,7 +6542,7 @@ const iB = /* @__PURE__ */ j({
6542
6542
  "force-mount": ""
6543
6543
  }, {
6544
6544
  default: M(({ present: d }) => [
6545
- D(b(ft), {
6545
+ P(b(ft), {
6546
6546
  id: i.value,
6547
6547
  ref: b(n),
6548
6548
  "as-child": l.asChild,
@@ -6582,7 +6582,7 @@ const iB = /* @__PURE__ */ j({
6582
6582
  active: s.value
6583
6583
  }, {
6584
6584
  default: M(() => [
6585
- D(b(ft), {
6585
+ P(b(ft), {
6586
6586
  id: o.value,
6587
6587
  ref: b(n),
6588
6588
  role: "tab",
@@ -6595,7 +6595,7 @@ const iB = /* @__PURE__ */ j({
6595
6595
  disabled: a.disabled,
6596
6596
  "data-disabled": a.disabled ? "" : void 0,
6597
6597
  "data-orientation": b(r).orientation.value,
6598
- onMousedown: l[0] || (l[0] = sr((u) => {
6598
+ onMousedown: l[0] || (l[0] = Qn((u) => {
6599
6599
  !a.disabled && u.ctrlKey === !1 ? b(r).changeModelValue(a.value) : u.preventDefault();
6600
6600
  }, ["left"])),
6601
6601
  onKeydown: l[1] || (l[1] = pc((u) => b(r).changeModelValue(a.value), ["enter", "space"])),
@@ -6790,7 +6790,7 @@ const iB = /* @__PURE__ */ j({
6790
6790
  }
6791
6791
  return (w, x) => (N(), $(b(mh), { "as-child": "" }, {
6792
6792
  default: M(() => [
6793
- D(b(ft), Se({
6793
+ P(b(ft), Se({
6794
6794
  ref: b(o),
6795
6795
  "aria-describedby": b(n).open.value ? b(n).contentId : void 0,
6796
6796
  "data-state": b(n).stateAttribute.value,
@@ -6855,12 +6855,12 @@ const iB = /* @__PURE__ */ j({
6855
6855
  var m;
6856
6856
  b(o).disableClosingTrigger.value && (m = b(o).trigger.value) != null && m.contains(h.target) && h.preventDefault(), r("pointerDownOutside", h);
6857
6857
  }),
6858
- onFocusOutside: p[2] || (p[2] = sr(() => {
6858
+ onFocusOutside: p[2] || (p[2] = Qn(() => {
6859
6859
  }, ["prevent"])),
6860
6860
  onDismiss: p[3] || (p[3] = (h) => b(o).onClose())
6861
6861
  }, {
6862
6862
  default: M(() => [
6863
- D(b(gh), Se({
6863
+ P(b(gh), Se({
6864
6864
  ref: b(i),
6865
6865
  "data-state": b(o).stateAttribute.value
6866
6866
  }, { ...d.$attrs, ...u.value }, { style: {
@@ -6872,7 +6872,7 @@ const iB = /* @__PURE__ */ j({
6872
6872
  } }), {
6873
6873
  default: M(() => [
6874
6874
  te(d.$slots, "default"),
6875
- D(b(Zx), {
6875
+ P(b(Zx), {
6876
6876
  id: b(o).contentId,
6877
6877
  role: "tooltip"
6878
6878
  }, {
@@ -7210,7 +7210,7 @@ const cn = (t) => {
7210
7210
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
7211
7211
  RB.test(t) && !LB.test(t)
7212
7212
  ), N5 = () => !1, WB = (t) => IB.test(t), jB = (t) => DB.test(t), qB = () => {
7213
- const t = cn("colors"), e = cn("spacing"), n = cn("blur"), r = cn("brightness"), o = cn("borderColor"), i = cn("borderRadius"), s = cn("borderSpacing"), a = cn("borderWidth"), l = cn("contrast"), u = cn("grayscale"), d = cn("hueRotate"), p = cn("invert"), h = cn("gap"), m = cn("gradientColorStops"), g = cn("gradientColorStopPositions"), y = cn("inset"), w = cn("margin"), x = cn("opacity"), C = cn("padding"), S = cn("saturate"), _ = cn("scale"), k = cn("sepia"), T = cn("skew"), A = cn("space"), P = cn("translate"), I = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", wt, e], ee = () => [wt, e], he = () => ["", Ti, ls], Oe = () => ["auto", Tl, wt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", wt], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Tl, wt];
7213
+ const t = cn("colors"), e = cn("spacing"), n = cn("blur"), r = cn("brightness"), o = cn("borderColor"), i = cn("borderRadius"), s = cn("borderSpacing"), a = cn("borderWidth"), l = cn("contrast"), u = cn("grayscale"), d = cn("hueRotate"), p = cn("invert"), h = cn("gap"), m = cn("gradientColorStops"), g = cn("gradientColorStopPositions"), y = cn("inset"), w = cn("margin"), x = cn("opacity"), C = cn("padding"), S = cn("saturate"), _ = cn("scale"), k = cn("sepia"), T = cn("skew"), A = cn("space"), D = cn("translate"), I = () => ["auto", "contain", "none"], B = () => ["auto", "hidden", "clip", "visible", "scroll"], V = () => ["auto", wt, e], ee = () => [wt, e], he = () => ["", Ti, ls], Oe = () => ["auto", Tl, wt], q = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], G = () => ["solid", "dashed", "dotted", "double", "none"], F = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], Q = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], ie = () => ["", "0", wt], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], fe = () => [Tl, wt];
7214
7214
  return {
7215
7215
  cacheSize: 500,
7216
7216
  separator: ":",
@@ -8876,14 +8876,14 @@ const cn = (t) => {
8876
8876
  * @see https://tailwindcss.com/docs/translate
8877
8877
  */
8878
8878
  "translate-x": [{
8879
- "translate-x": [P]
8879
+ "translate-x": [D]
8880
8880
  }],
8881
8881
  /**
8882
8882
  * Translate Y
8883
8883
  * @see https://tailwindcss.com/docs/translate
8884
8884
  */
8885
8885
  "translate-y": [{
8886
- "translate-y": [P]
8886
+ "translate-y": [D]
8887
8887
  }],
8888
8888
  /**
8889
8889
  * Skew X
@@ -9281,7 +9281,7 @@ var ep = { exports: {} };
9281
9281
  ep.exports;
9282
9282
  (function(t, e) {
9283
9283
  (function() {
9284
- var n, r = "4.17.21", o = 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__", p = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, C = 4, S = 8, _ = 16, k = 32, T = 64, A = 128, P = 256, I = 512, B = 30, V = "...", ee = 800, he = 16, Oe = 1, q = 2, G = 3, F = 1 / 0, Q = 9007199254740991, ie = 17976931348623157e292, ce = NaN, fe = 4294967295, Re = fe - 1, Ie = fe >>> 1, ct = [
9284
+ var n, r = "4.17.21", o = 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__", p = 1, h = 2, m = 4, g = 1, y = 2, w = 1, x = 2, C = 4, S = 8, _ = 16, k = 32, T = 64, A = 128, D = 256, I = 512, B = 30, V = "...", ee = 800, he = 16, Oe = 1, q = 2, G = 3, F = 1 / 0, Q = 9007199254740991, ie = 17976931348623157e292, ce = NaN, fe = 4294967295, Re = fe - 1, Ie = fe >>> 1, ct = [
9285
9285
  ["ary", A],
9286
9286
  ["bind", w],
9287
9287
  ["bindKey", x],
@@ -9290,7 +9290,7 @@ ep.exports;
9290
9290
  ["flip", I],
9291
9291
  ["partial", k],
9292
9292
  ["partialRight", T],
9293
- ["rearg", P]
9293
+ ["rearg", D]
9294
9294
  ], Ue = "[object Arguments]", ke = "[object Array]", X = "[object AsyncFunction]", re = "[object Boolean]", pe = "[object Date]", me = "[object DOMException]", _e = "[object Error]", De = "[object Function]", qe = "[object GeneratorFunction]", le = "[object Map]", Le = "[object Number]", ot = "[object Null]", Ht = "[object Object]", W = "[object Promise]", H = "[object Proxy]", ge = "[object RegExp]", Ae = "[object Set]", Ge = "[object String]", gt = "[object Symbol]", tt = "[object Undefined]", se = "[object WeakMap]", Ee = "[object WeakSet]", be = "[object ArrayBuffer]", Te = "[object DataView]", Xe = "[object Float32Array]", bt = "[object Float64Array]", Kt = "[object Int8Array]", mn = "[object Int16Array]", pi = "[object Int32Array]", ue = "[object Uint8Array]", We = "[object Uint8ClampedArray]", nt = "[object Uint16Array]", Bt = "[object Uint32Array]", Rt = /\b__p \+= '';/g, Wn = /\b(__p \+=) '' \+/g, Sr = /(__e\(.*?\)|\b__t\)) \+\n'';/g, hi = /&(?:amp|lt|gt|quot|#39);/g, gu = /[&<>"']/g, mi = RegExp(hi.source), bu = RegExp(gu.source), ja = /<%-([\s\S]+?)%>/g, Yi = /<%([\s\S]+?)%>/g, ud = /<%=([\s\S]+?)%>/g, vu = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, qa = /^\w*$/, sT = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, h0 = /[\\^$.*+?()[\]{}|]/g, aT = RegExp(h0.source), m0 = /^\s+/, lT = /\s/, uT = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, cT = /\{\n\/\* \[wrapped with (.+)\] \*/, dT = /,? & /, fT = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, pT = /[()=,{}\[\]\/\s]/, hT = /\\(\\)?/g, mT = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, kv = /\w*$/, gT = /^[-+]0x[0-9a-f]+$/i, bT = /^0b[01]+$/i, vT = /^\[object .+?Constructor\]$/, yT = /^0o[0-7]+$/i, wT = /^(?:0|[1-9]\d*)$/, xT = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, cd = /($^)/, _T = /['\n\r\u2028\u2029\\]/g, dd = "\\ud800-\\udfff", ET = "\\u0300-\\u036f", CT = "\\ufe20-\\ufe2f", ST = "\\u20d0-\\u20ff", Av = ET + CT + ST, Ov = "\\u2700-\\u27bf", Mv = "a-z\\xdf-\\xf6\\xf8-\\xff", TT = "\\xac\\xb1\\xd7\\xf7", kT = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", AT = "\\u2000-\\u206f", OT = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", Nv = "A-Z\\xc0-\\xd6\\xd8-\\xde", Rv = "\\ufe0e\\ufe0f", Lv = TT + kT + AT + OT, g0 = "['’]", MT = "[" + dd + "]", Iv = "[" + Lv + "]", fd = "[" + Av + "]", Dv = "\\d+", NT = "[" + Ov + "]", Pv = "[" + Mv + "]", Bv = "[^" + dd + Lv + Dv + Ov + Mv + Nv + "]", b0 = "\\ud83c[\\udffb-\\udfff]", RT = "(?:" + fd + "|" + b0 + ")", Fv = "[^" + dd + "]", v0 = "(?:\\ud83c[\\udde6-\\uddff]){2}", y0 = "[\\ud800-\\udbff][\\udc00-\\udfff]", Ka = "[" + Nv + "]", $v = "\\u200d", Hv = "(?:" + Pv + "|" + Bv + ")", LT = "(?:" + Ka + "|" + Bv + ")", zv = "(?:" + g0 + "(?:d|ll|m|re|s|t|ve))?", Vv = "(?:" + g0 + "(?:D|LL|M|RE|S|T|VE))?", Uv = RT + "?", Wv = "[" + Rv + "]?", IT = "(?:" + $v + "(?:" + [Fv, v0, y0].join("|") + ")" + Wv + Uv + ")*", DT = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", PT = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", jv = Wv + Uv + IT, BT = "(?:" + [NT, v0, y0].join("|") + ")" + jv, FT = "(?:" + [Fv + fd + "?", fd, v0, y0, MT].join("|") + ")", $T = RegExp(g0, "g"), HT = RegExp(fd, "g"), w0 = RegExp(b0 + "(?=" + b0 + ")|" + FT + jv, "g"), zT = RegExp([
9295
9295
  Ka + "?" + Pv + "+" + zv + "(?=" + [Iv, Ka, "$"].join("|") + ")",
9296
9296
  LT + "+" + Vv + "(?=" + [Iv, Ka + Hv, "$"].join("|") + ")",
@@ -9836,7 +9836,7 @@ ep.exports;
9836
9836
  return c({}, "", {}), c;
9837
9837
  } catch {
9838
9838
  }
9839
- }(), Ok = de.clearTimeout !== jn.clearTimeout && de.clearTimeout, Mk = ze && ze.now !== jn.Date.now && ze.now, Nk = de.setTimeout !== jn.setTimeout && de.setTimeout, Sd = Dn.ceil, Td = Dn.floor, L0 = en.getOwnPropertySymbols, Rk = wd ? wd.isBuffer : n, my = de.isFinite, Lk = gd.join, Ik = ly(en.keys, en), Pn = Dn.max, Qn = Dn.min, Dk = ze.now, Pk = de.parseInt, gy = Dn.random, Bk = gd.reverse, I0 = Qs(de, "DataView"), xu = Qs(de, "Map"), D0 = Qs(de, "Promise"), Qa = Qs(de, "Set"), _u = Qs(de, "WeakMap"), Eu = Qs(en, "create"), kd = _u && new _u(), el = {}, Fk = ea(I0), $k = ea(xu), Hk = ea(D0), zk = ea(Qa), Vk = ea(_u), Ad = ts ? ts.prototype : n, Cu = Ad ? Ad.valueOf : n, by = Ad ? Ad.toString : n;
9839
+ }(), Ok = de.clearTimeout !== jn.clearTimeout && de.clearTimeout, Mk = ze && ze.now !== jn.Date.now && ze.now, Nk = de.setTimeout !== jn.setTimeout && de.setTimeout, Sd = Dn.ceil, Td = Dn.floor, L0 = en.getOwnPropertySymbols, Rk = wd ? wd.isBuffer : n, my = de.isFinite, Lk = gd.join, Ik = ly(en.keys, en), Pn = Dn.max, er = Dn.min, Dk = ze.now, Pk = de.parseInt, gy = Dn.random, Bk = gd.reverse, I0 = Qs(de, "DataView"), xu = Qs(de, "Map"), D0 = Qs(de, "Promise"), Qa = Qs(de, "Set"), _u = Qs(de, "WeakMap"), Eu = Qs(en, "create"), kd = _u && new _u(), el = {}, Fk = ea(I0), $k = ea(xu), Hk = ea(D0), zk = ea(Qa), Vk = ea(_u), Ad = ts ? ts.prototype : n, Cu = Ad ? Ad.valueOf : n, by = Ad ? Ad.toString : n;
9840
9840
  function R(c) {
9841
9841
  if (_n(c) && !mt(c) && !(c instanceof Mt)) {
9842
9842
  if (c instanceof ro)
@@ -9925,7 +9925,7 @@ ep.exports;
9925
9925
  return c;
9926
9926
  }
9927
9927
  function jk() {
9928
- var c = this.__wrapped__.value(), f = this.__dir__, v = mt(c), E = f < 0, O = v ? c.length : 0, L = rA(0, O, this.__views__), z = L.start, K = L.end, Z = K - z, ve = E ? K : z - 1, we = this.__iteratees__, Ce = we.length, Pe = 0, Je = Qn(Z, this.__takeCount__);
9928
+ var c = this.__wrapped__.value(), f = this.__dir__, v = mt(c), E = f < 0, O = v ? c.length : 0, L = rA(0, O, this.__views__), z = L.start, K = L.end, Z = K - z, ve = E ? K : z - 1, we = this.__iteratees__, Ce = we.length, Pe = 0, Je = er(Z, this.__takeCount__);
9929
9929
  if (!v || !E && O == Z && Je == Z)
9930
9930
  return zy(c, this.__actions__);
9931
9931
  var it = [];
@@ -10147,7 +10147,7 @@ ep.exports;
10147
10147
  if (z = iA(c), !K)
10148
10148
  return Tr(c, z);
10149
10149
  } else {
10150
- var Ce = er(c), Pe = Ce == De || Ce == qe;
10150
+ var Ce = tr(c), Pe = Ce == De || Ce == qe;
10151
10151
  if (as(c))
10152
10152
  return Wy(c, K);
10153
10153
  if (Ce == Ht || Ce == Ue || Pe && !O) {
@@ -10284,12 +10284,12 @@ ep.exports;
10284
10284
  return c != null && f in en(c);
10285
10285
  }
10286
10286
  function E9(c, f, v) {
10287
- return c >= Qn(f, v) && c < Pn(f, v);
10287
+ return c >= er(f, v) && c < Pn(f, v);
10288
10288
  }
10289
10289
  function z0(c, f, v) {
10290
10290
  for (var E = v ? E0 : pd, O = c[0].length, L = c.length, z = L, K = oe(L), Z = 1 / 0, ve = []; z--; ) {
10291
10291
  var we = c[z];
10292
- z && f && (we = fn(we, $r(f))), Z = Qn(we.length, Z), K[z] = !v && (f || O >= 120 && we.length >= 120) ? new Xs(z && we) : n;
10292
+ z && f && (we = fn(we, $r(f))), Z = er(we.length, Z), K[z] = !v && (f || O >= 120 && we.length >= 120) ? new Xs(z && we) : n;
10293
10293
  }
10294
10294
  we = c[0];
10295
10295
  var Ce = -1, Pe = K[0];
@@ -10330,7 +10330,7 @@ ep.exports;
10330
10330
  return c === f ? !0 : c == null || f == null || !_n(c) && !_n(f) ? c !== c && f !== f : k9(c, f, v, E, Au, O);
10331
10331
  }
10332
10332
  function k9(c, f, v, E, O, L) {
10333
- var z = mt(c), K = mt(f), Z = z ? ke : er(c), ve = K ? ke : er(f);
10333
+ var z = mt(c), K = mt(f), Z = z ? ke : tr(c), ve = K ? ke : tr(f);
10334
10334
  Z = Z == Ue ? Ht : Z, ve = ve == Ue ? Ht : ve;
10335
10335
  var we = Z == Ht, Ce = ve == Ht, Pe = Z == ve;
10336
10336
  if (Pe && as(c)) {
@@ -10350,7 +10350,7 @@ ep.exports;
10350
10350
  return Pe ? (L || (L = new So()), tA(c, f, v, E, O, L)) : !1;
10351
10351
  }
10352
10352
  function A9(c) {
10353
- return _n(c) && er(c) == le;
10353
+ return _n(c) && tr(c) == le;
10354
10354
  }
10355
10355
  function V0(c, f, v, E) {
10356
10356
  var O = v.length, L = O, z = !E;
@@ -10387,7 +10387,7 @@ ep.exports;
10387
10387
  return _n(c) && pr(c) == ge;
10388
10388
  }
10389
10389
  function M9(c) {
10390
- return _n(c) && er(c) == Ae;
10390
+ return _n(c) && tr(c) == Ae;
10391
10391
  }
10392
10392
  function N9(c) {
10393
10393
  return _n(c) && Jd(c.length) && !!un[pr(c)];
@@ -10604,7 +10604,7 @@ ep.exports;
10604
10604
  else ve ? st = it && (E || Pe) : K ? st = it && Pe && (E || !Je) : Z ? st = it && Pe && !Je && (E || !xt) : Je || xt ? st = !1 : st = E ? Ce <= f : Ce < f;
10605
10605
  st ? O = we + 1 : L = we;
10606
10606
  }
10607
- return Qn(L, Re);
10607
+ return er(L, Re);
10608
10608
  }
10609
10609
  function Fy(c, f) {
10610
10610
  for (var v = -1, E = c.length, O = 0, L = []; ++v < E; ) {
@@ -10920,7 +10920,7 @@ ep.exports;
10920
10920
  for (E = z ? E : v; ++E < v; ) {
10921
10921
  L = f[E];
10922
10922
  var K = zd(L), Z = K == "wrapper" ? om(L) : n;
10923
- Z && lm(Z[0]) && Z[1] == (A | S | k | P) && !Z[4].length && Z[9] == 1 ? z = z[zd(Z[0])].apply(z, Z[3]) : z = L.length == 1 && lm(L) ? z[K]() : z.thru(L);
10923
+ Z && lm(Z[0]) && Z[1] == (A | S | k | D) && !Z[4].length && Z[9] == 1 ? z = z[zd(Z[0])].apply(z, Z[3]) : z = L.length == 1 && lm(L) ? z[K]() : z.thru(L);
10924
10924
  }
10925
10925
  return function() {
10926
10926
  var ve = arguments, we = ve[0];
@@ -11036,7 +11036,7 @@ ep.exports;
11036
11036
  function tm(c) {
11037
11037
  var f = Dn[c];
11038
11038
  return function(v, E) {
11039
- if (v = ao(v), E = E == null ? 0 : Qn(yt(E), 292), E && my(v)) {
11039
+ if (v = ao(v), E = E == null ? 0 : er(yt(E), 292), E && my(v)) {
11040
11040
  var O = (Wt(v) + "e").split("e"), L = f(O[0] + "e" + (+O[1] + E));
11041
11041
  return O = (Wt(L) + "e").split("e"), +(O[0] + "e" + (+O[1] - E));
11042
11042
  }
@@ -11048,7 +11048,7 @@ ep.exports;
11048
11048
  } : Em;
11049
11049
  function r3(c) {
11050
11050
  return function(f) {
11051
- var v = er(f);
11051
+ var v = tr(f);
11052
11052
  return v == le ? N0(f) : v == Ae ? mk(f) : ak(f, c(f));
11053
11053
  };
11054
11054
  }
@@ -11248,8 +11248,8 @@ ep.exports;
11248
11248
  for (var f = []; c; )
11249
11249
  Qi(f, sm(c)), c = _d(c);
11250
11250
  return f;
11251
- } : Cm, er = pr;
11252
- (I0 && er(new I0(new ArrayBuffer(1))) != Te || xu && er(new xu()) != le || D0 && er(D0.resolve()) != W || Qa && er(new Qa()) != Ae || _u && er(new _u()) != se) && (er = function(c) {
11251
+ } : Cm, tr = pr;
11252
+ (I0 && tr(new I0(new ArrayBuffer(1))) != Te || xu && tr(new xu()) != le || D0 && tr(D0.resolve()) != W || Qa && tr(new Qa()) != Ae || _u && tr(new _u()) != se) && (tr = function(c) {
11253
11253
  var f = pr(c), v = f == Ht ? c.constructor : n, E = v ? ea(v) : "";
11254
11254
  if (E)
11255
11255
  switch (E) {
@@ -11277,7 +11277,7 @@ ep.exports;
11277
11277
  f -= z;
11278
11278
  break;
11279
11279
  case "take":
11280
- f = Qn(f, c + z);
11280
+ f = er(f, c + z);
11281
11281
  break;
11282
11282
  case "takeRight":
11283
11283
  c = Pn(c, f - z);
@@ -11404,7 +11404,7 @@ ep.exports;
11404
11404
  return f;
11405
11405
  }
11406
11406
  function pA(c, f) {
11407
- var v = c[1], E = f[1], O = v | E, L = O < (w | x | A), z = E == A && v == S || E == A && v == P && c[7].length <= f[8] || E == (A | P) && f[7].length <= f[8] && v == S;
11407
+ var v = c[1], E = f[1], O = v | E, L = O < (w | x | A), z = E == A && v == S || E == A && v == D && c[7].length <= f[8] || E == (A | D) && f[7].length <= f[8] && v == S;
11408
11408
  if (!(L || z))
11409
11409
  return c;
11410
11410
  E & w && (c[2] = f[2], O |= v & w ? 0 : C);
@@ -11413,7 +11413,7 @@ ep.exports;
11413
11413
  var Z = c[3];
11414
11414
  c[3] = Z ? Ky(Z, K, f[4]) : K, c[4] = Z ? es(c[3], d) : f[4];
11415
11415
  }
11416
- return K = f[5], K && (Z = c[5], c[5] = Z ? Gy(Z, K, f[6]) : K, c[6] = Z ? es(c[5], d) : f[6]), K = f[7], K && (c[7] = K), E & A && (c[8] = c[8] == null ? f[8] : Qn(c[8], f[8])), c[9] == null && (c[9] = f[9]), c[0] = f[0], c[1] = O, c;
11416
+ return K = f[5], K && (Z = c[5], c[5] = Z ? Gy(Z, K, f[6]) : K, c[6] = Z ? es(c[5], d) : f[6]), K = f[7], K && (c[7] = K), E & A && (c[8] = c[8] == null ? f[8] : er(c[8], f[8])), c[9] == null && (c[9] = f[9]), c[0] = f[0], c[1] = O, c;
11417
11417
  }
11418
11418
  function hA(c) {
11419
11419
  var f = [];
@@ -11439,7 +11439,7 @@ ep.exports;
11439
11439
  return f.length < 2 ? c : Zs(c, io(f, 0, -1));
11440
11440
  }
11441
11441
  function gA(c, f) {
11442
- for (var v = c.length, E = Qn(f.length, v), O = Tr(c); E--; ) {
11442
+ for (var v = c.length, E = er(f.length, v), O = Tr(c); E--; ) {
11443
11443
  var L = f[E];
11444
11444
  c[E] = xi(L, v) ? O[L] : n;
11445
11445
  }
@@ -11576,7 +11576,7 @@ ep.exports;
11576
11576
  if (!E)
11577
11577
  return -1;
11578
11578
  var O = E - 1;
11579
- return v !== n && (O = yt(v), O = v < 0 ? Pn(E + O, 0) : Qn(O, E - 1)), hd(c, rt(f, 3), O, !0);
11579
+ return v !== n && (O = yt(v), O = v < 0 ? Pn(E + O, 0) : er(O, E - 1)), hd(c, rt(f, 3), O, !0);
11580
11580
  }
11581
11581
  function x3(c) {
11582
11582
  var f = c == null ? 0 : c.length;
@@ -11633,7 +11633,7 @@ ep.exports;
11633
11633
  if (!E)
11634
11634
  return -1;
11635
11635
  var O = E;
11636
- return v !== n && (O = yt(v), O = O < 0 ? Pn(E + O, 0) : Qn(O, E - 1)), f === f ? bk(c, f, O) : hd(c, ny, O, !0);
11636
+ return v !== n && (O = yt(v), O = O < 0 ? Pn(E + O, 0) : er(O, E - 1)), f === f ? bk(c, f, O) : hd(c, ny, O, !0);
11637
11637
  }
11638
11638
  function $A(c, f) {
11639
11639
  return c && c.length ? Ly(c, yt(f)) : n;
@@ -11930,7 +11930,7 @@ ep.exports;
11930
11930
  return 0;
11931
11931
  if (kr(c))
11932
11932
  return Xd(c) ? Xa(c) : c.length;
11933
- var f = er(c);
11933
+ var f = tr(c);
11934
11934
  return f == le || f == Ae ? c.size : U0(c).length;
11935
11935
  }
11936
11936
  function JO(c, f, v) {
@@ -12003,7 +12003,7 @@ ep.exports;
12003
12003
  }
12004
12004
  function xt(An) {
12005
12005
  var ko = An - Z, Ci = An - ve, Z3 = f - ko;
12006
- return Ce ? Qn(Z3, L - Ci) : Z3;
12006
+ return Ce ? er(Z3, L - Ci) : Z3;
12007
12007
  }
12008
12008
  function st(An) {
12009
12009
  var ko = An - Z, Ci = An - ve;
@@ -12082,7 +12082,7 @@ ep.exports;
12082
12082
  f = f.length == 1 && mt(f[0]) ? fn(f[0], $r(rt())) : fn(qn(f, 1), $r(rt()));
12083
12083
  var v = f.length;
12084
12084
  return kt(function(E) {
12085
- for (var O = -1, L = Qn(E.length, v); ++O < L; )
12085
+ for (var O = -1, L = er(E.length, v); ++O < L; )
12086
12086
  E[O] = f[O].call(this, E[O]);
12087
12087
  return Fr(c, this, E);
12088
12088
  });
@@ -12093,7 +12093,7 @@ ep.exports;
12093
12093
  var v = es(f, ol(I3));
12094
12094
  return yi(c, T, n, f, v);
12095
12095
  }), rM = wi(function(c, f) {
12096
- return yi(c, P, n, n, n, f);
12096
+ return yi(c, D, n, n, n, f);
12097
12097
  });
12098
12098
  function oM(c, f) {
12099
12099
  if (typeof c != "function")
@@ -12173,7 +12173,7 @@ ep.exports;
12173
12173
  return !0;
12174
12174
  if (kr(c) && (mt(c) || typeof c == "string" || typeof c.splice == "function" || as(c) || il(c) || ta(c)))
12175
12175
  return !c.length;
12176
- var f = er(c);
12176
+ var f = tr(c);
12177
12177
  if (f == le || f == Ae)
12178
12178
  return !c.size;
12179
12179
  if (Nu(c))
@@ -12268,7 +12268,7 @@ ep.exports;
12268
12268
  return c === n;
12269
12269
  }
12270
12270
  function LM(c) {
12271
- return _n(c) && er(c) == se;
12271
+ return _n(c) && tr(c) == se;
12272
12272
  }
12273
12273
  function IM(c) {
12274
12274
  return _n(c) && pr(c) == Ee;
@@ -12283,7 +12283,7 @@ ep.exports;
12283
12283
  return Xd(c) ? Co(c) : Tr(c);
12284
12284
  if (wu && c[wu])
12285
12285
  return hk(c[wu]());
12286
- var f = er(c), v = f == le ? N0 : f == Ae ? md : sl;
12286
+ var f = tr(c), v = f == le ? N0 : f == Ae ? md : sl;
12287
12287
  return v(c);
12288
12288
  }
12289
12289
  function Ei(c) {
@@ -12499,7 +12499,7 @@ ep.exports;
12499
12499
  }
12500
12500
  if (v || c % 1 || f % 1) {
12501
12501
  var O = gy();
12502
- return Qn(c + O * (f - c + XT("1e-" + ((O + "").length - 1))), f);
12502
+ return er(c + O * (f - c + XT("1e-" + ((O + "").length - 1))), f);
12503
12503
  }
12504
12504
  return q0(c, f);
12505
12505
  }
@@ -12794,7 +12794,7 @@ function print() { __p += __j.call(arguments, '') }
12794
12794
  function fR(c, f) {
12795
12795
  if (c = yt(c), c < 1 || c > Q)
12796
12796
  return [];
12797
- var v = fe, E = Qn(c, fe);
12797
+ var v = fe, E = er(c, fe);
12798
12798
  f = rt(f), c -= fe;
12799
12799
  for (var O = O0(E, f); ++v < c; )
12800
12800
  f(v);
@@ -12852,8 +12852,8 @@ function print() { __p += __j.call(arguments, '') }
12852
12852
  Mt.prototype[c] = function(v) {
12853
12853
  v = v === n ? 1 : Pn(yt(v), 0);
12854
12854
  var E = this.__filtered__ && !f ? new Mt(this) : this.clone();
12855
- return E.__filtered__ ? E.__takeCount__ = Qn(v, E.__takeCount__) : E.__views__.push({
12856
- size: Qn(v, fe),
12855
+ return E.__filtered__ ? E.__takeCount__ = er(v, E.__takeCount__) : E.__views__.push({
12856
+ size: er(v, fe),
12857
12857
  type: c + (E.__dir__ < 0 ? "Right" : "")
12858
12858
  }), E;
12859
12859
  }, Mt.prototype[c + "Right"] = function(v) {
@@ -13282,7 +13282,7 @@ function wF(t, e = {}) {
13282
13282
  const Ae = x(W.currentPeek());
13283
13283
  return W.resetPeek(), Ae;
13284
13284
  }
13285
- function P(W, H) {
13285
+ function D(W, H) {
13286
13286
  const { currentType: ge } = H;
13287
13287
  if (!(ge === 7 || ge === 11))
13288
13288
  return !1;
@@ -13527,7 +13527,7 @@ function wF(t, e = {}) {
13527
13527
  /* TokenChars.LinkedDelimiter */
13528
13528
  );
13529
13529
  default:
13530
- return B(W) ? (Ae = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, Ae) : T(W, H) || P(W, H) ? (w(W), Le(W, H)) : A(W, H) ? (w(W), h(H, 11, _e(W))) : I(W, H) ? (w(W), Ge === "{" ? le(W, H) || Ae : h(H, 10, De(W))) : (ge === 7 && p(dt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, ot(W, H));
13530
+ return B(W) ? (Ae = h(H, 1, qe(W)), H.braceNest = 0, H.inLinked = !1, Ae) : T(W, H) || D(W, H) ? (w(W), Le(W, H)) : A(W, H) ? (w(W), h(H, 11, _e(W))) : I(W, H) ? (w(W), Ge === "{" ? le(W, H) || Ae : h(H, 10, De(W))) : (ge === 7 && p(dt.INVALID_LINKED_FORMAT, i(), 0), H.braceNest = 0, H.inLinked = !1, ot(W, H));
13531
13531
  }
13532
13532
  }
13533
13533
  function ot(W, H) {
@@ -13594,11 +13594,11 @@ function CF(t = {}) {
13594
13594
  function r(x, C, S, _, ...k) {
13595
13595
  const T = x.currentPosition();
13596
13596
  if (T.offset += _, T.column += _, n) {
13597
- const A = e ? K1(S, T) : null, P = Ql(C, A, {
13597
+ const A = e ? K1(S, T) : null, D = Ql(C, A, {
13598
13598
  domain: xF,
13599
13599
  args: k
13600
13600
  });
13601
- n(P);
13601
+ n(D);
13602
13602
  }
13603
13603
  }
13604
13604
  function o(x, C, S) {
@@ -13696,8 +13696,8 @@ function CF(t = {}) {
13696
13696
  }
13697
13697
  }
13698
13698
  } while (C.currentType !== 13 && C.currentType !== 1);
13699
- const A = C.currentType === 1 ? C.lastOffset : x.currentOffset(), P = C.currentType === 1 ? C.lastEndLoc : x.currentPosition();
13700
- return i(k, A, P), k;
13699
+ const A = C.currentType === 1 ? C.lastOffset : x.currentOffset(), D = C.currentType === 1 ? C.lastEndLoc : x.currentPosition();
13700
+ return i(k, A, D), k;
13701
13701
  }
13702
13702
  function g(x, C, S, _) {
13703
13703
  const k = x.context();
@@ -13705,8 +13705,8 @@ function CF(t = {}) {
13705
13705
  const A = o(1, C, S);
13706
13706
  A.cases = [], A.cases.push(_);
13707
13707
  do {
13708
- const P = m(x);
13709
- T || (T = P.items.length === 0), A.cases.push(P);
13708
+ const D = m(x);
13709
+ T || (T = D.items.length === 0), A.cases.push(D);
13710
13710
  } while (k.currentType !== 13);
13711
13711
  return T && r(x, dt.MUST_HAVE_MESSAGES_IN_PLURAL, S, 0), i(A, x.currentOffset(), x.currentPosition()), A;
13712
13712
  }
@@ -14198,7 +14198,7 @@ const s$ = /* @__PURE__ */ a$("function:translate");
14198
14198
  function a$(t) {
14199
14199
  return (e) => vc && vc.emit(t, e);
14200
14200
  }
14201
- const rr = {
14201
+ const or = {
14202
14202
  INVALID_ARGUMENT: uF,
14203
14203
  // 17
14204
14204
  INVALID_DATE_ARGUMENT: 18,
@@ -14212,13 +14212,13 @@ function Bi(t) {
14212
14212
  return Ql(t, null, process.env.NODE_ENV !== "production" ? { messages: u$ } : void 0);
14213
14213
  }
14214
14214
  const u$ = {
14215
- [rr.INVALID_ARGUMENT]: "Invalid arguments",
14216
- [rr.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
14217
- [rr.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
14218
- [rr.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
14219
- [rr.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
14220
- [rr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
14221
- [rr.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
14215
+ [or.INVALID_ARGUMENT]: "Invalid arguments",
14216
+ [or.INVALID_DATE_ARGUMENT]: "The date provided is an invalid Date object.Make sure your Date represents a valid date.",
14217
+ [or.INVALID_ISO_DATE_ARGUMENT]: "The argument provided is not a valid ISO date string",
14218
+ [or.NOT_SUPPORT_NON_STRING_MESSAGE]: "Not support non-string message",
14219
+ [or.NOT_SUPPORT_LOCALE_PROMISE_VALUE]: "cannot support promise value",
14220
+ [or.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION]: "cannot support async function",
14221
+ [or.NOT_SUPPORT_LOCALE_TYPE]: "cannot support locale type"
14222
14222
  };
14223
14223
  function Ub(t, e) {
14224
14224
  return e.locale != null ? N4(e.locale) : N4(t.locale);
@@ -14233,12 +14233,12 @@ function N4(t) {
14233
14233
  if (t.constructor.name === "Function") {
14234
14234
  const e = t();
14235
14235
  if (iF(e))
14236
- throw Bi(rr.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
14236
+ throw Bi(or.NOT_SUPPORT_LOCALE_PROMISE_VALUE);
14237
14237
  return Im = e;
14238
14238
  } else
14239
- throw Bi(rr.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
14239
+ throw Bi(or.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION);
14240
14240
  } else
14241
- throw Bi(rr.NOT_SUPPORT_LOCALE_TYPE);
14241
+ throw Bi(or.NOT_SUPPORT_LOCALE_TYPE);
14242
14242
  }
14243
14243
  function c$(t, e, n) {
14244
14244
  return [.../* @__PURE__ */ new Set([
@@ -14612,7 +14612,7 @@ let P4 = 0;
14612
14612
  function N$(t = {}) {
14613
14613
  const e = nn(t.onWarn) ? t.onWarn : $s, n = Be(t.version) ? t.version : E$, r = Be(t.locale) || nn(t.locale) ? t.locale : yc, o = nn(r) ? yc : r, i = vn(t.fallbackLocale) || St(t.fallbackLocale) || Be(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : o, s = St(t.messages) ? t.messages : Dm(o), a = St(t.datetimeFormats) ? t.datetimeFormats : Dm(o), l = St(t.numberFormats) ? t.numberFormats : Dm(o), u = Bn(Yt(), t.modifiers, C$()), d = t.pluralRules || Yt(), p = nn(t.missing) ? t.missing : null, h = Ft(t.missingWarn) || Ll(t.missingWarn) ? t.missingWarn : !0, m = Ft(t.fallbackWarn) || Ll(t.fallbackWarn) ? t.fallbackWarn : !0, g = !!t.fallbackFormat, y = !!t.unresolving, w = nn(t.postTranslation) ? t.postTranslation : null, x = St(t.processor) ? t.processor : null, C = Ft(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, _ = nn(t.messageCompiler) ? t.messageCompiler : D5;
14614
14614
  process.env.NODE_ENV !== "production" && nn(t.messageCompiler) && L5(Ca(Mr.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
14615
- const k = nn(t.messageResolver) ? t.messageResolver : P5 || y$, T = nn(t.localeFallbacker) ? t.localeFallbacker : B5 || c$, A = Pt(t.fallbackContext) ? t.fallbackContext : void 0, P = t, I = Pt(P.__datetimeFormatters) ? P.__datetimeFormatters : /* @__PURE__ */ new Map(), B = Pt(P.__numberFormatters) ? P.__numberFormatters : /* @__PURE__ */ new Map(), V = Pt(P.__meta) ? P.__meta : {};
14615
+ const k = nn(t.messageResolver) ? t.messageResolver : P5 || y$, T = nn(t.localeFallbacker) ? t.localeFallbacker : B5 || c$, A = Pt(t.fallbackContext) ? t.fallbackContext : void 0, D = t, I = Pt(D.__datetimeFormatters) ? D.__datetimeFormatters : /* @__PURE__ */ new Map(), B = Pt(D.__numberFormatters) ? D.__numberFormatters : /* @__PURE__ */ new Map(), V = Pt(D.__meta) ? D.__meta : {};
14616
14616
  P4++;
14617
14617
  const ee = {
14618
14618
  version: n,
@@ -14638,7 +14638,7 @@ function N$(t = {}) {
14638
14638
  onWarn: e,
14639
14639
  __meta: V
14640
14640
  };
14641
- return ee.datetimeFormats = a, ee.numberFormats = l, ee.__datetimeFormatters = I, ee.__numberFormatters = B, process.env.NODE_ENV !== "production" && (ee.__v_emitter = P.__v_emitter != null ? P.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && i$(ee, n, V), ee;
14641
+ return ee.datetimeFormats = a, ee.numberFormats = l, ee.__datetimeFormatters = I, ee.__numberFormatters = B, process.env.NODE_ENV !== "production" && (ee.__v_emitter = D.__v_emitter != null ? D.__v_emitter : void 0), (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) && i$(ee, n, V), ee;
14642
14642
  }
14643
14643
  const Dm = (t) => ({ [t]: Yt() });
14644
14644
  function Sh(t, e) {
@@ -14720,8 +14720,8 @@ function F4(t, ...e) {
14720
14720
  return r ? Ch : l;
14721
14721
  let A = `${C}__${l}`;
14722
14722
  Eh(p) || (A = `${A}__${JSON.stringify(p)}`);
14723
- let P = a.get(A);
14724
- return P || (P = new Intl.DateTimeFormat(C, Bn({}, S, p)), a.set(A, P)), g ? P.formatToParts(u) : P.format(u);
14723
+ let D = a.get(A);
14724
+ return D || (D = new Intl.DateTimeFormat(C, Bn({}, S, p)), a.set(A, D)), g ? D.formatToParts(u) : D.format(u);
14725
14725
  }
14726
14726
  const U5 = [
14727
14727
  "localeMatcher",
@@ -14751,22 +14751,22 @@ function J1(...t) {
14751
14751
  if (Be(e)) {
14752
14752
  const l = e.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);
14753
14753
  if (!l)
14754
- throw Bi(rr.INVALID_ISO_DATE_ARGUMENT);
14754
+ throw Bi(or.INVALID_ISO_DATE_ARGUMENT);
14755
14755
  const u = l[3] ? l[3].trim().startsWith("T") ? `${l[1].trim()}${l[3].trim()}` : `${l[1].trim()}T${l[3].trim()}` : l[1].trim();
14756
14756
  a = new Date(u);
14757
14757
  try {
14758
14758
  a.toISOString();
14759
14759
  } catch {
14760
- throw Bi(rr.INVALID_ISO_DATE_ARGUMENT);
14760
+ throw Bi(or.INVALID_ISO_DATE_ARGUMENT);
14761
14761
  }
14762
14762
  } else if (nF(e)) {
14763
14763
  if (isNaN(e.getTime()))
14764
- throw Bi(rr.INVALID_DATE_ARGUMENT);
14764
+ throw Bi(or.INVALID_DATE_ARGUMENT);
14765
14765
  a = e;
14766
14766
  } else if (On(e))
14767
14767
  a = e;
14768
14768
  else
14769
- throw Bi(rr.INVALID_ARGUMENT);
14769
+ throw Bi(or.INVALID_ARGUMENT);
14770
14770
  return Be(n) ? i.key = n : St(n) && Object.keys(n).forEach((l) => {
14771
14771
  U5.includes(l) ? s[l] = n[l] : i[l] = n[l];
14772
14772
  }), Be(r) ? i.locale = r : St(r) && (s = r), St(o) && (s = o), [i.key || "", a, i, s];
@@ -14814,8 +14814,8 @@ function H4(t, ...e) {
14814
14814
  return r ? Ch : l;
14815
14815
  let A = `${C}__${l}`;
14816
14816
  Eh(p) || (A = `${A}__${JSON.stringify(p)}`);
14817
- let P = a.get(A);
14818
- return P || (P = new Intl.NumberFormat(C, Bn({}, S, p)), a.set(A, P)), g ? P.formatToParts(u) : P.format(u);
14817
+ let D = a.get(A);
14818
+ return D || (D = new Intl.NumberFormat(C, Bn({}, S, p)), a.set(A, D)), g ? D.formatToParts(u) : D.format(u);
14819
14819
  }
14820
14820
  const W5 = [
14821
14821
  "localeMatcher",
@@ -14843,7 +14843,7 @@ function X1(...t) {
14843
14843
  const [e, n, r, o] = t, i = Yt();
14844
14844
  let s = Yt();
14845
14845
  if (!On(e))
14846
- throw Bi(rr.INVALID_ARGUMENT);
14846
+ throw Bi(or.INVALID_ARGUMENT);
14847
14847
  const a = e;
14848
14848
  return Be(n) ? i.key = n : St(n) && Object.keys(n).forEach((l) => {
14849
14849
  W5.includes(l) ? s[l] = n[l] : i[l] = n[l];
@@ -14883,11 +14883,11 @@ function H$(t = {}) {
14883
14883
  const [S, _] = C;
14884
14884
  let k = "text", T = "";
14885
14885
  C.length === 1 ? Pt(S) ? (T = S.modifier || T, k = S.type || k) : Be(S) && (T = S || T) : C.length === 2 && (Be(S) && (T = S || T), Be(_) && (k = _ || k));
14886
- const A = d(x, !0)(w), P = (
14886
+ const A = d(x, !0)(w), D = (
14887
14887
  // The message in vnode resolved with linked are returned as an array by processor.nomalize
14888
14888
  k === "vnode" && vn(A) && T ? A[0] : A
14889
14889
  );
14890
- return T ? p(T)(P, k) : P;
14890
+ return T ? p(T)(D, k) : D;
14891
14891
  },
14892
14892
  message: d,
14893
14893
  type: g,
@@ -14913,10 +14913,10 @@ function W4(t, ...e) {
14913
14913
  let T = !1;
14914
14914
  const A = () => {
14915
14915
  T = !0;
14916
- }, P = po(_) ? _ : q5(t, l, C, _, k, A);
14916
+ }, D = po(_) ? _ : q5(t, l, C, _, k, A);
14917
14917
  if (T)
14918
14918
  return _;
14919
- const I = j$(t, C, S, u), B = H$(I), V = V$(t, P, B), ee = r ? r(V, l) : V;
14919
+ const I = j$(t, C, S, u), B = H$(I), V = V$(t, D, B), ee = r ? r(V, l) : V;
14920
14920
  if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
14921
14921
  const he = {
14922
14922
  timestamp: Date.now(),
@@ -15023,7 +15023,7 @@ function V$(t, e, n) {
15023
15023
  function Y1(...t) {
15024
15024
  const [e, n, r] = t, o = Yt();
15025
15025
  if (!Be(e) && !On(e) && !po(e) && !Ls(e))
15026
- throw Bi(rr.INVALID_ARGUMENT);
15026
+ throw Bi(or.INVALID_ARGUMENT);
15027
15027
  const i = On(e) ? String(e) : (po(e), e);
15028
15028
  return On(n) ? o.plural = n : Be(n) ? o.default = n : St(n) && !Eh(n) ? o.named = n : vn(n) && (o.list = n), On(r) ? o.plural = r : Be(r) ? o.default = r : St(r) && Bn(o, r), [i, o];
15029
15029
  }
@@ -15305,7 +15305,7 @@ function Y5(t, e, n) {
15305
15305
  }
15306
15306
  }
15307
15307
  function j4(t) {
15308
- return D(HR, null, t, 0);
15308
+ return P(HR, null, t, 0);
15309
15309
  }
15310
15310
  const q4 = "__INTLIFY_META__", K4 = () => [], oH = () => !1;
15311
15311
  let G4 = 0;
@@ -15871,9 +15871,9 @@ function yH(t) {
15871
15871
  let g = t.messages;
15872
15872
  if (St(t.sharedMessages)) {
15873
15873
  const k = t.sharedMessages;
15874
- g = Object.keys(k).reduce((A, P) => {
15875
- const I = A[P] || (A[P] = {});
15876
- return Bn(I, k[P]), A;
15874
+ g = Object.keys(k).reduce((A, D) => {
15875
+ const I = A[D] || (A[D] = {});
15876
+ return Bn(I, k[D]), A;
15877
15877
  }, g || {});
15878
15878
  }
15879
15879
  const { __i18n: y, __root: w, __injectWithOption: x } = t, C = t.datetimeFormats, S = t.numberFormats, _ = t.flatJson;
@@ -16632,7 +16632,7 @@ const HH = { class: "flex gap-2 items-center overflow-x-auto overflow-y-hidden"
16632
16632
  }), i = sn(o, r);
16633
16633
  return (s, a) => (N(), $(b(oP), null, {
16634
16634
  default: M(() => [
16635
- D(b(aP), Se({ ...b(i), ...s.$attrs }, {
16635
+ P(b(aP), Se({ ...b(i), ...s.$attrs }, {
16636
16636
  class: b(Qe)(
16637
16637
  "z-50 w-72 rounded-md border bg-ed-popover p-4 text-ed-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
16638
16638
  n.class
@@ -16916,7 +16916,7 @@ const o6 = (t) => typeof t == "boolean" ? `${t}` : t === 0 ? "0" : t, i6 = T5, Y
16916
16916
  }), i = sn(o, r);
16917
16917
  return (s, a) => (N(), $(b(mB), null, {
16918
16918
  default: M(() => [
16919
- D(b(hB), Se({ ...b(i), ...s.$attrs }, {
16919
+ P(b(hB), Se({ ...b(i), ...s.$attrs }, {
16920
16920
  class: b(Qe)(
16921
16921
  "z-50 overflow-hidden rounded-md bg-ed-primary px-3 py-1.5 text-xs text-ed-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
16922
16922
  n.class
@@ -17739,7 +17739,7 @@ function Sz(t, e, n, r) {
17739
17739
  T.status === "pending" && (T.status = "aborted");
17740
17740
  }), h = [];
17741
17741
  }
17742
- function _(T, A, P) {
17742
+ function _(T, A, D) {
17743
17743
  const I = A !== "success";
17744
17744
  switch (h = h.filter((B) => B !== T), l) {
17745
17745
  case "pending":
@@ -17752,11 +17752,11 @@ function Sz(t, e, n, r) {
17752
17752
  return;
17753
17753
  }
17754
17754
  if (A === "abort") {
17755
- d = P, C();
17755
+ d = D, C();
17756
17756
  return;
17757
17757
  }
17758
17758
  if (I) {
17759
- d = P, h.length || (s.length ? k() : C());
17759
+ d = D, h.length || (s.length ? k() : C());
17760
17760
  return;
17761
17761
  }
17762
17762
  if (g(), S(), !t.random) {
@@ -17764,7 +17764,7 @@ function Sz(t, e, n, r) {
17764
17764
  B !== -1 && B !== t.index && (t.index = B);
17765
17765
  }
17766
17766
  l = "completed", m.forEach((B) => {
17767
- B(P);
17767
+ B(D);
17768
17768
  });
17769
17769
  }
17770
17770
  function k() {
@@ -17785,8 +17785,8 @@ function Sz(t, e, n, r) {
17785
17785
  const A = {
17786
17786
  status: "pending",
17787
17787
  resource: T,
17788
- callback: (P, I) => {
17789
- _(A, P, I);
17788
+ callback: (D, I) => {
17789
+ _(A, D, I);
17790
17790
  }
17791
17791
  };
17792
17792
  h.push(A), u++, p = setTimeout(k, t.rotate), n(T, e, A.callback);
@@ -18432,15 +18432,15 @@ const Uz = { key: 0 }, Wz = {
18432
18432
  setup(t) {
18433
18433
  return (e, n) => (N(), $(b(iu), null, {
18434
18434
  default: M(() => [
18435
- D(b(ru), { "delay-duration": 0 }, {
18435
+ P(b(ru), { "delay-duration": 0 }, {
18436
18436
  default: M(() => [
18437
- D(b(ou), {
18437
+ P(b(ou), {
18438
18438
  class: ut(e.customClassTooltip)
18439
18439
  }, {
18440
18440
  default: M(() => {
18441
18441
  var r;
18442
18442
  return [
18443
- D(b(o_), {
18443
+ P(b(o_), {
18444
18444
  id: `action-btn-${e.id}`,
18445
18445
  size: "sm",
18446
18446
  class: ut(["h-[32px]", b(Qe)([e.customClass], { hidden: e.hidden })]),
@@ -18450,7 +18450,7 @@ const Uz = { key: 0 }, Wz = {
18450
18450
  }, {
18451
18451
  default: M(() => [
18452
18452
  e.loading ? (N(), xe("div", Uz, [
18453
- D(b(hn), {
18453
+ P(b(hn), {
18454
18454
  class: "animate-spin",
18455
18455
  name: "LoaderCircle"
18456
18456
  })
@@ -23715,7 +23715,7 @@ function GV(t, e, n) {
23715
23715
  }
23716
23716
  const ii = typeof navigator < "u" ? navigator : null, $6 = typeof document < "u" ? document : null, Ws = ii && ii.userAgent || "", bg = /Edge\/(\d+)/.exec(Ws), Q_ = /MSIE \d/.exec(Ws), vg = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ws), Rr = !!(Q_ || vg || bg), ks = Q_ ? document.documentMode : vg ? +vg[1] : bg ? +bg[1] : 0, zo = !Rr && /gecko\/(\d+)/i.test(Ws);
23717
23717
  zo && +(/Firefox\/(\d+)/.exec(Ws) || [0, 0])[1];
23718
- const yg = !Rr && /Chrome\/(\d+)/.exec(Ws), ir = !!yg, eE = yg ? +yg[1] : 0, vr = !Rr && !!ii && /Apple Computer/.test(ii.vendor), Hl = vr && (/Mobile\/\w+/.test(Ws) || !!ii && ii.maxTouchPoints > 2), fo = Hl || (ii ? /Mac/.test(ii.platform) : !1), JV = ii ? /Win/.test(ii.platform) : !1, Fi = /Android \d/.test(Ws), Zc = !!$6 && "webkitFontSmoothing" in $6.documentElement.style, XV = Zc ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23718
+ const yg = !Rr && /Chrome\/(\d+)/.exec(Ws), sr = !!yg, eE = yg ? +yg[1] : 0, vr = !Rr && !!ii && /Apple Computer/.test(ii.vendor), Hl = vr && (/Mobile\/\w+/.test(Ws) || !!ii && ii.maxTouchPoints > 2), fo = Hl || (ii ? /Mac/.test(ii.platform) : !1), JV = ii ? /Win/.test(ii.platform) : !1, Fi = /Android \d/.test(Ws), Zc = !!$6 && "webkitFontSmoothing" in $6.documentElement.style, XV = Zc ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23719
23719
  function YV(t) {
23720
23720
  let e = t.defaultView && t.defaultView.visualViewport;
23721
23721
  return e ? {
@@ -24931,7 +24931,7 @@ class mU {
24931
24931
  for (; e instanceof Oa; )
24932
24932
  n = e, e = n.children[n.children.length - 1];
24933
24933
  (!e || // Empty textblock
24934
- !(e instanceof Dh) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((vr || ir) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
24934
+ !(e instanceof Dh) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((vr || sr) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
24935
24935
  }
24936
24936
  addHackNode(e, n) {
24937
24937
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -25107,7 +25107,7 @@ function fE(t) {
25107
25107
  function Ui(t, e = !1) {
25108
25108
  let n = t.state.selection;
25109
25109
  if (pE(t, n), !!fE(t)) {
25110
- if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && ir) {
25110
+ if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && sr) {
25111
25111
  let r = t.domSelectionRange(), o = t.domObserver.currentSelection;
25112
25112
  if (r.anchorNode && o.anchorNode && Aa(r.anchorNode, r.anchorOffset, o.anchorNode, o.anchorOffset)) {
25113
25113
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
@@ -25123,7 +25123,7 @@ function Ui(t, e = !1) {
25123
25123
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
25124
25124
  }
25125
25125
  }
25126
- const G6 = vr || ir && eE < 63;
25126
+ const G6 = vr || sr && eE < 63;
25127
25127
  function J6(t, e) {
25128
25128
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), o = r < n.childNodes.length ? n.childNodes[r] : null, i = r ? n.childNodes[r - 1] : null;
25129
25129
  if (vr && o && o.contentEditable == "false")
@@ -25351,7 +25351,7 @@ function Eg(t, e, n) {
25351
25351
  }
25352
25352
  function e8(t, e) {
25353
25353
  let n = t.state.doc.resolve(e);
25354
- if (!(ir || JV) && n.parent.inlineContent) {
25354
+ if (!(sr || JV) && n.parent.inlineContent) {
25355
25355
  let o = t.coordsAtPos(e);
25356
25356
  if (e > n.start()) {
25357
25357
  let i = t.coordsAtPos(e - 1), s = (i.top + i.bottom) / 2;
@@ -25604,7 +25604,7 @@ function IU(t) {
25604
25604
  return n;
25605
25605
  }
25606
25606
  function DU(t) {
25607
- let e = t.querySelectorAll(ir ? "span:not([class]):not([style])" : "span.Apple-converted-space");
25607
+ let e = t.querySelectorAll(sr ? "span:not([class]):not([style])" : "span.Apple-converted-space");
25608
25608
  for (let n = 0; n < e.length; n++) {
25609
25609
  let r = e[n];
25610
25610
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
@@ -25679,7 +25679,7 @@ function VU(t, e) {
25679
25679
  }
25680
25680
  wr.keydown = (t, e) => {
25681
25681
  let n = e;
25682
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !EE(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Fi && ir && n.keyCode == 13)))
25682
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !EE(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Fi && sr && n.keyCode == 13)))
25683
25683
  if (n.keyCode != 229 && t.domObserver.forceFlush(), Hl && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
25684
25684
  let r = Date.now();
25685
25685
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -25823,7 +25823,7 @@ class XU {
25823
25823
  // (hidden) cursor is doesn't change the selection, and
25824
25824
  // thus doesn't get a reaction from ProseMirror. This
25825
25825
  // works around that.
25826
- ir && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Al(this.view, Ye.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Cs(this.view, "pointer");
25826
+ sr && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (Al(this.view, Ye.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Cs(this.view, "pointer");
25827
25827
  }
25828
25828
  move(e) {
25829
25829
  this.updateAllowDefault(e), Cs(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -25983,7 +25983,7 @@ yr.dragstart = (t, e) => {
25983
25983
  }
25984
25984
  }
25985
25985
  let a = (s || t.state.selection).content(), { dom: l, text: u, slice: d } = u2(t, a);
25986
- (!n.dataTransfer.files.length || !ir || eE > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Oc ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Oc || n.dataTransfer.setData("text/plain", u), t.dragging = new kE(d, !n[AE], s);
25986
+ (!n.dataTransfer.files.length || !sr || eE > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Oc ? "Text" : "text/html", l.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Oc || n.dataTransfer.setData("text/plain", u), t.dragging = new kE(d, !n[AE], s);
25987
25987
  };
25988
25988
  yr.dragend = (t) => {
25989
25989
  let e = t.dragging;
@@ -26040,7 +26040,7 @@ yr.blur = (t, e) => {
26040
26040
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
26041
26041
  };
26042
26042
  yr.beforeinput = (t, e) => {
26043
- if (ir && Fi && e.inputType == "deleteContentBackward") {
26043
+ if (sr && Fi && e.inputType == "deleteContentBackward") {
26044
26044
  t.domObserver.flushSoon();
26045
26045
  let { domChangeCount: r } = t.input;
26046
26046
  setTimeout(() => {
@@ -26208,7 +26208,7 @@ class It {
26208
26208
  you must make a copy if you want need to preserve that.
26209
26209
  */
26210
26210
  static create(e, n) {
26211
- return n.length ? fp(n, e, 0, ga) : tr;
26211
+ return n.length ? fp(n, e, 0, ga) : nr;
26212
26212
  }
26213
26213
  /**
26214
26214
  Find all decorations in this set which touch the given range
@@ -26238,7 +26238,7 @@ class It {
26238
26238
  document.
26239
26239
  */
26240
26240
  map(e, n, r) {
26241
- return this == tr || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || ga);
26241
+ return this == nr || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || ga);
26242
26242
  }
26243
26243
  /**
26244
26244
  @internal
@@ -26249,7 +26249,7 @@ class It {
26249
26249
  let l = this.local[a].map(e, r, o);
26250
26250
  l && l.type.valid(n, l) ? (s || (s = [])).push(l) : i.onRemove && i.onRemove(this.local[a].spec);
26251
26251
  }
26252
- return this.children.length ? rW(this.children, s || [], e, n, r, o, i) : s ? new It(s.sort(ba), yl) : tr;
26252
+ return this.children.length ? rW(this.children, s || [], e, n, r, o, i) : s ? new It(s.sort(ba), yl) : nr;
26253
26253
  }
26254
26254
  /**
26255
26255
  Add the given array of decorations to the ones in the set,
@@ -26258,7 +26258,7 @@ class It {
26258
26258
  structure.
26259
26259
  */
26260
26260
  add(e, n) {
26261
- return n.length ? this == tr ? It.create(e, n) : this.addInner(e, n, 0) : this;
26261
+ return n.length ? this == nr ? It.create(e, n) : this.addInner(e, n, 0) : this;
26262
26262
  }
26263
26263
  addInner(e, n, r) {
26264
26264
  let o, i = 0;
@@ -26280,7 +26280,7 @@ class It {
26280
26280
  the ones in the given array.
26281
26281
  */
26282
26282
  remove(e) {
26283
- return e.length == 0 || this == tr ? this : this.removeInner(e, 0);
26283
+ return e.length == 0 || this == nr ? this : this.removeInner(e, 0);
26284
26284
  }
26285
26285
  removeInner(e, n) {
26286
26286
  let r = this.children, o = this.local;
@@ -26292,7 +26292,7 @@ class It {
26292
26292
  continue;
26293
26293
  r == this.children && (r = this.children.slice());
26294
26294
  let u = r[i + 2].removeInner(s, a + 1);
26295
- u != tr ? r[i + 2] = u : (r.splice(i, 3), i -= 3);
26295
+ u != nr ? r[i + 2] = u : (r.splice(i, 3), i -= 3);
26296
26296
  }
26297
26297
  if (o.length) {
26298
26298
  for (let i = 0, s; i < e.length; i++)
@@ -26300,10 +26300,10 @@ class It {
26300
26300
  for (let a = 0; a < o.length; a++)
26301
26301
  o[a].eq(s, n) && (o == this.local && (o = this.local.slice()), o.splice(a--, 1));
26302
26302
  }
26303
- return r == this.children && o == this.local ? this : o.length || r.length ? new It(o, r) : tr;
26303
+ return r == this.children && o == this.local ? this : o.length || r.length ? new It(o, r) : nr;
26304
26304
  }
26305
26305
  forChild(e, n) {
26306
- if (this == tr)
26306
+ if (this == nr)
26307
26307
  return this;
26308
26308
  if (n.isLeaf)
26309
26309
  return It.empty;
@@ -26325,7 +26325,7 @@ class It {
26325
26325
  let a = new It(o.sort(ba), yl);
26326
26326
  return r ? new bs([a, r]) : a;
26327
26327
  }
26328
- return r || tr;
26328
+ return r || nr;
26329
26329
  }
26330
26330
  /**
26331
26331
  @internal
@@ -26353,7 +26353,7 @@ class It {
26353
26353
  @internal
26354
26354
  */
26355
26355
  localsInner(e) {
26356
- if (this == tr)
26356
+ if (this == nr)
26357
26357
  return yl;
26358
26358
  if (e.inlineContent || !this.local.some(Os.is))
26359
26359
  return this.local;
@@ -26368,7 +26368,7 @@ class It {
26368
26368
  }
26369
26369
  It.empty = new It([], []);
26370
26370
  It.removeOverlap = h2;
26371
- const tr = It.empty;
26371
+ const nr = It.empty;
26372
26372
  class bs {
26373
26373
  constructor(e) {
26374
26374
  this.members = e;
@@ -26383,7 +26383,7 @@ class bs {
26383
26383
  let r = [];
26384
26384
  for (let o = 0; o < this.members.length; o++) {
26385
26385
  let i = this.members[o].forChild(e, n);
26386
- i != tr && (i instanceof bs ? r = r.concat(i.members) : r.push(i));
26386
+ i != nr && (i instanceof bs ? r = r.concat(i.members) : r.push(i));
26387
26387
  }
26388
26388
  return bs.from(r);
26389
26389
  }
@@ -26415,7 +26415,7 @@ class bs {
26415
26415
  static from(e) {
26416
26416
  switch (e.length) {
26417
26417
  case 0:
26418
- return tr;
26418
+ return nr;
26419
26419
  case 1:
26420
26420
  return e[0];
26421
26421
  default:
@@ -26458,7 +26458,7 @@ function rW(t, e, n, r, o, i, s) {
26458
26458
  let h = n.map(t[u + 1] + i, -1), m = h - o, { index: g, offset: y } = r.content.findIndex(p), w = r.maybeChild(g);
26459
26459
  if (w && y == p && y + w.nodeSize == m) {
26460
26460
  let x = a[u + 2].mapInner(n, w, d + 1, t[u] + i + 1, s);
26461
- x != tr ? (a[u] = p, a[u + 1] = m, a[u + 2] = x) : (a[u + 1] = -2, l = !0);
26461
+ x != nr ? (a[u] = p, a[u + 1] = m, a[u + 2] = x) : (a[u + 1] = -2, l = !0);
26462
26462
  } else
26463
26463
  l = !0;
26464
26464
  }
@@ -26520,13 +26520,13 @@ function fp(t, e, n, r) {
26520
26520
  if (u) {
26521
26521
  i = !0;
26522
26522
  let d = fp(u, a, n + l + 1, r);
26523
- d != tr && o.push(l, l + a.nodeSize, d);
26523
+ d != nr && o.push(l, l + a.nodeSize, d);
26524
26524
  }
26525
26525
  });
26526
26526
  let s = OE(i ? NE(t) : t, -n).sort(ba);
26527
26527
  for (let a = 0; a < s.length; a++)
26528
26528
  s[a].type.valid(e, s[a]) || (r.onRemove && r.onRemove(s[a].spec), s.splice(a--, 1));
26529
- return s.length || o.length ? new It(s, o) : tr;
26529
+ return s.length || o.length ? new It(s, o) : nr;
26530
26530
  }
26531
26531
  function ba(t, e) {
26532
26532
  return t.from - e.from || t.to - e.to;
@@ -26558,7 +26558,7 @@ function Zm(t) {
26558
26558
  let e = [];
26559
26559
  return t.someProp("decorations", (n) => {
26560
26560
  let r = n(t.state);
26561
- r && r != tr && e.push(r);
26561
+ r && r != nr && e.push(r);
26562
26562
  }), t.cursorWrapper && e.push(It.create(t.state.doc, [t.cursorWrapper.deco])), bs.from(e);
26563
26563
  }
26564
26564
  const iW = {
@@ -26759,7 +26759,7 @@ function dW(t, e) {
26759
26759
  }
26760
26760
  function fW(t, e, n) {
26761
26761
  let { node: r, fromOffset: o, toOffset: i, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), u, d = l.anchorNode;
26762
- if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: l.anchorOffset }], Ih(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), ir && t.input.lastKeyCode === 8)
26762
+ if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (u = [{ node: d, offset: l.anchorOffset }], Ih(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), sr && t.input.lastKeyCode === 8)
26763
26763
  for (let w = i; w > o; w--) {
26764
26764
  let x = r.childNodes[w - 1], C = x.pmViewDesc;
26765
26765
  if (x.nodeName == "BR" && !C) {
@@ -26806,7 +26806,7 @@ function mW(t, e, n, r, o) {
26806
26806
  if (t.input.compositionPendingChanges = 0, e < 0) {
26807
26807
  let I = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, B = a2(t, I);
26808
26808
  if (B && !t.state.selection.eq(B)) {
26809
- if (ir && Fi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (ee) => ee(t, aa(13, "Enter"))))
26809
+ if (sr && Fi && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (ee) => ee(t, aa(13, "Enter"))))
26810
26810
  return;
26811
26811
  let V = t.state.tr.setSelection(B);
26812
26812
  I == "pointer" ? V.setMeta("pointer", !0) : I == "key" && V.scrollIntoView(), i && V.setMeta("composition", i), t.dispatch(V);
@@ -26842,23 +26842,23 @@ function mW(t, e, n, r, o) {
26842
26842
  return;
26843
26843
  }
26844
26844
  if (t.state.selection.anchor > g.start && bW(d, g.start, g.endA, y, w) && t.someProp("handleKeyDown", (I) => I(t, aa(8, "Backspace")))) {
26845
- Fi && ir && t.domObserver.suppressSelectionUpdates();
26845
+ Fi && sr && t.domObserver.suppressSelectionUpdates();
26846
26846
  return;
26847
26847
  }
26848
- ir && g.endB == g.start && (t.input.lastChromeDelete = Date.now()), Fi && !C && y.start() != w.start() && w.parentOffset == 0 && y.depth == w.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == g.endA && (g.endB -= 2, w = u.doc.resolveNoCache(g.endB - u.from), setTimeout(() => {
26848
+ sr && g.endB == g.start && (t.input.lastChromeDelete = Date.now()), Fi && !C && y.start() != w.start() && w.parentOffset == 0 && y.depth == w.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == g.endA && (g.endB -= 2, w = u.doc.resolveNoCache(g.endB - u.from), setTimeout(() => {
26849
26849
  t.someProp("handleKeyDown", function(I) {
26850
26850
  return I(t, aa(13, "Enter"));
26851
26851
  });
26852
26852
  }, 20));
26853
- let _ = g.start, k = g.endA, T, A, P;
26853
+ let _ = g.start, k = g.endA, T, A, D;
26854
26854
  if (C) {
26855
26855
  if (y.pos == w.pos)
26856
26856
  Rr && ks <= 11 && y.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => Ui(t), 20)), T = t.state.tr.delete(_, k), A = d.resolve(g.start).marksAcross(d.resolve(g.endA));
26857
26857
  else if (
26858
26858
  // Adding or removing a mark
26859
- g.endA == g.endB && (P = gW(y.parent.content.cut(y.parentOffset, w.parentOffset), x.parent.content.cut(x.parentOffset, g.endA - x.start())))
26859
+ g.endA == g.endB && (D = gW(y.parent.content.cut(y.parentOffset, w.parentOffset), x.parent.content.cut(x.parentOffset, g.endA - x.start())))
26860
26860
  )
26861
- T = t.state.tr, P.type == "add" ? T.addMark(_, k, P.mark) : T.removeMark(_, k, P.mark);
26861
+ T = t.state.tr, D.type == "add" ? T.addMark(_, k, D.mark) : T.removeMark(_, k, D.mark);
26862
26862
  else if (y.parent.child(y.index()).isText && y.index() == w.index() - (w.textOffset ? 0 : 1)) {
26863
26863
  let I = y.parent.textBetween(y.parentOffset, w.parentOffset);
26864
26864
  if (t.someProp("handleTextInput", (B) => B(t, _, k, I)))
@@ -26868,7 +26868,7 @@ function mW(t, e, n, r, o) {
26868
26868
  }
26869
26869
  if (T || (T = t.state.tr.replace(_, k, u.doc.slice(g.start - u.from, g.endB - u.from))), u.sel) {
26870
26870
  let I = c8(t, T.doc, u.sel);
26871
- I && !(ir && t.composing && I.empty && (g.start != g.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == _ || I.head == T.mapping.map(k) - 1) || Rr && I.empty && I.head == _) && T.setSelection(I);
26871
+ I && !(sr && t.composing && I.empty && (g.start != g.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == _ || I.head == T.mapping.map(k) - 1) || Rr && I.empty && I.head == _) && T.setSelection(I);
26872
26872
  }
26873
26873
  A && T.ensureMarks(A), i && T.setMeta("composition", i), t.dispatch(T.scrollIntoView());
26874
26874
  }
@@ -27022,9 +27022,9 @@ class yW {
27022
27022
  let h = d == "preserve" && s && this.dom.style.overflowAnchor == null && QV(this);
27023
27023
  if (s) {
27024
27024
  this.domObserver.stop();
27025
- let m = p && (Rr || ir) && !this.composing && !o.selection.empty && !e.selection.empty && wW(o.selection, e.selection);
27025
+ let m = p && (Rr || sr) && !this.composing && !o.selection.empty && !e.selection.empty && wW(o.selection, e.selection);
27026
27026
  if (p) {
27027
- let g = ir ? this.trackWrites = this.domSelectionRange().focusNode : null;
27027
+ let g = sr ? this.trackWrites = this.domSelectionRange().focusNode : null;
27028
27028
  this.composing && (this.input.compositionNode = ZU(this)), (i || !this.docView.update(e.doc, u, l, this)) && (this.docView.updateOuterDeco(u), this.docView.destroy(), this.docView = q6(e.doc, u, l, this.dom, this)), g && !this.trackWrites && (m = !0);
27029
27029
  }
27030
27030
  m || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && EU(this)) ? Ui(this, m) : (pE(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
@@ -28587,13 +28587,13 @@ function uj(t) {
28587
28587
  if (C) {
28588
28588
  let { text: k } = x;
28589
28589
  typeof k == "string" ? k = k : k = w2(ye.from(k), m.schema);
28590
- const { from: T } = x, A = T + k.length, P = lj(k);
28590
+ const { from: T } = x, A = T + k.length, D = lj(k);
28591
28591
  return l({
28592
28592
  rule: d,
28593
28593
  state: m,
28594
28594
  from: T,
28595
28595
  to: { b: A },
28596
- pasteEvt: P
28596
+ pasteEvt: D
28597
28597
  });
28598
28598
  }
28599
28599
  const S = h.doc.content.findDiffStart(m.doc.content), _ = h.doc.content.findDiffEnd(m.doc.content);
@@ -29594,8 +29594,8 @@ const pq = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29594
29594
  if (o) {
29595
29595
  let x = ye.empty;
29596
29596
  const C = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
29597
- for (let P = l.depth - C; P >= l.depth - 3; P -= 1)
29598
- x = ye.from(l.node(P).copy(x));
29597
+ for (let D = l.depth - C; D >= l.depth - 3; D -= 1)
29598
+ x = ye.from(l.node(D).copy(x));
29599
29599
  const S = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, _ = {
29600
29600
  ...Bf(h, l.node().type.name, l.node().attrs),
29601
29601
  ...e
@@ -29604,10 +29604,10 @@ const pq = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29604
29604
  const T = l.before(l.depth - (C - 1));
29605
29605
  n.replace(T, l.after(-S), new Ne(x, 4 - C, 0));
29606
29606
  let A = -1;
29607
- n.doc.nodesBetween(T, n.doc.content.size, (P, I) => {
29607
+ n.doc.nodesBetween(T, n.doc.content.size, (D, I) => {
29608
29608
  if (A > -1)
29609
29609
  return !1;
29610
- P.isTextblock && P.content.size === 0 && (A = I + 1);
29610
+ D.isTextblock && D.content.size === 0 && (A = I + 1);
29611
29611
  }), A > -1 && n.setSelection(Ke.near(n.doc.resolve(A))), n.scrollIntoView();
29612
29612
  }
29613
29613
  return !0;
@@ -29664,7 +29664,7 @@ const pq = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29664
29664
  return l().command(() => (i.setNodeMarkup(k.pos, m), !0)).command(() => r1(i, m)).command(() => o1(i, m)).run();
29665
29665
  }
29666
29666
  return !n || !_ || !a ? l().command(() => d().wrapInList(m, r) ? !0 : u.clearNodes()).wrapInList(m, r).command(() => r1(i, m)).command(() => o1(i, m)).run() : l().command(() => {
29667
- const T = d().wrapInList(m, r), A = _.filter((P) => h.includes(P.type.name));
29667
+ const T = d().wrapInList(m, r), A = _.filter((D) => h.includes(D.type.name));
29668
29668
  return i.ensureMarks(A), T ? !0 : u.clearNodes();
29669
29669
  }).wrapInList(m, r).command(() => r1(i, m)).command(() => o1(i, m)).run();
29670
29670
  }, gq = (t, e = {}, n = {}) => ({ state: r, commands: o }) => {
@@ -30969,8 +30969,8 @@ var eK = function(e, n) {
30969
30969
  function tK(t) {
30970
30970
  var e, n = t.state, r = t.name, o = t.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, a = ri(n.placement), l = M2(a), u = [Ir, xo].indexOf(a) >= 0, d = u ? "height" : "width";
30971
30971
  if (!(!i || !s)) {
30972
- var p = eK(o.padding, n), h = O2(i), m = l === "y" ? Lr : Ir, g = l === "y" ? wo : xo, y = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], w = s[l] - n.rects.reference[l], x = nd(i), C = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, S = y / 2 - w / 2, _ = p[m], k = C - h[d] - p[g], T = C / 2 - h[d] / 2 + S, A = ec(_, T, k), P = l;
30973
- n.modifiersData[r] = (e = {}, e[P] = A, e.centerOffset = A - T, e);
30972
+ var p = eK(o.padding, n), h = O2(i), m = l === "y" ? Lr : Ir, g = l === "y" ? wo : xo, y = n.rects.reference[d] + n.rects.reference[l] - s[l] - n.rects.popper[d], w = s[l] - n.rects.reference[l], x = nd(i), C = x ? l === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, S = y / 2 - w / 2, _ = p[m], k = C - h[d] - p[g], T = C / 2 - h[d] / 2 + S, A = ec(_, T, k), D = l;
30973
+ n.modifiersData[r] = (e = {}, e[D] = A, e.centerOffset = A - T, e);
30974
30974
  }
30975
30975
  }
30976
30976
  function nK(t) {
@@ -31013,8 +31013,8 @@ function T8(t) {
31013
31013
  m = w.x, y = w.y;
31014
31014
  var x = s.hasOwnProperty("x"), C = s.hasOwnProperty("y"), S = Ir, _ = Lr, k = window;
31015
31015
  if (u) {
31016
- var T = nd(n), A = "clientHeight", P = "clientWidth";
31017
- if (T === Qr(n) && (T = qs(n), qi(T).position !== "static" && a === "absolute" && (A = "scrollHeight", P = "scrollWidth")), T = T, o === Lr || (o === Ir || o === xo) && i === Lc) {
31016
+ var T = nd(n), A = "clientHeight", D = "clientWidth";
31017
+ if (T === Qr(n) && (T = qs(n), qi(T).position !== "static" && a === "absolute" && (A = "scrollHeight", D = "scrollWidth")), T = T, o === Lr || (o === Ir || o === xo) && i === Lc) {
31018
31018
  _ = wo;
31019
31019
  var I = p && T === k && k.visualViewport ? k.visualViewport.height : (
31020
31020
  // $FlowFixMe[prop-missing]
@@ -31026,7 +31026,7 @@ function T8(t) {
31026
31026
  S = xo;
31027
31027
  var B = p && T === k && k.visualViewport ? k.visualViewport.width : (
31028
31028
  // $FlowFixMe[prop-missing]
31029
- T[P]
31029
+ T[D]
31030
31030
  );
31031
31031
  m -= B - r.width, m *= l ? 1 : -1;
31032
31032
  }
@@ -31248,7 +31248,7 @@ function Ic(t, e) {
31248
31248
  reference: T,
31249
31249
  element: S,
31250
31250
  placement: o
31251
- }), P = Ig(Object.assign({}, S, A)), I = h === Hu ? P : T, B = {
31251
+ }), D = Ig(Object.assign({}, S, A)), I = h === Hu ? D : T, B = {
31252
31252
  top: k.top - I.top + x.top,
31253
31253
  bottom: I.bottom - k.bottom + x.bottom,
31254
31254
  left: k.left - I.left + x.left,
@@ -31301,7 +31301,7 @@ function yK(t) {
31301
31301
  flipVariations: g,
31302
31302
  allowedAutoPlacements: y
31303
31303
  }) : Ue);
31304
- }, []), k = e.rects.reference, T = e.rects.popper, A = /* @__PURE__ */ new Map(), P = !0, I = _[0], B = 0; B < _.length; B++) {
31304
+ }, []), k = e.rects.reference, T = e.rects.popper, A = /* @__PURE__ */ new Map(), D = !0, I = _[0], B = 0; B < _.length; B++) {
31305
31305
  var V = _[B], ee = ri(V), he = ql(V) === Ul, Oe = [Lr, wo].indexOf(ee) >= 0, q = Oe ? "width" : "height", G = Ic(e, {
31306
31306
  placement: V,
31307
31307
  boundary: d,
@@ -31314,12 +31314,12 @@ function yK(t) {
31314
31314
  if (i && ie.push(G[ee] <= 0), a && ie.push(G[F] <= 0, G[Q] <= 0), ie.every(function(ct) {
31315
31315
  return ct;
31316
31316
  })) {
31317
- I = V, P = !1;
31317
+ I = V, D = !1;
31318
31318
  break;
31319
31319
  }
31320
31320
  A.set(V, ie);
31321
31321
  }
31322
- if (P)
31322
+ if (D)
31323
31323
  for (var ce = g ? 3 : 1, fe = function(Ue) {
31324
31324
  var ke = _.find(function(X) {
31325
31325
  var re = A.get(X);
@@ -31435,7 +31435,7 @@ function OK(t) {
31435
31435
  rootBoundary: u,
31436
31436
  padding: p,
31437
31437
  altBoundary: d
31438
- }), x = ri(e.placement), C = ql(e.placement), S = !C, _ = M2(x), k = AK(_), T = e.modifiersData.popperOffsets, A = e.rects.reference, P = e.rects.popper, I = typeof y == "function" ? y(Object.assign({}, e.rects, {
31438
+ }), x = ri(e.placement), C = ql(e.placement), S = !C, _ = M2(x), k = AK(_), T = e.modifiersData.popperOffsets, A = e.rects.reference, D = e.rects.popper, I = typeof y == "function" ? y(Object.assign({}, e.rects, {
31439
31439
  placement: e.placement
31440
31440
  })) : y, B = typeof I == "number" ? {
31441
31441
  mainAxis: I,
@@ -31449,14 +31449,14 @@ function OK(t) {
31449
31449
  };
31450
31450
  if (T) {
31451
31451
  if (i) {
31452
- var he, Oe = _ === "y" ? Lr : Ir, q = _ === "y" ? wo : xo, G = _ === "y" ? "height" : "width", F = T[_], Q = F + w[Oe], ie = F - w[q], ce = m ? -P[G] / 2 : 0, fe = C === Ul ? A[G] : P[G], Re = C === Ul ? -P[G] : -A[G], Ie = e.elements.arrow, ct = m && Ie ? O2(Ie) : {
31452
+ var he, Oe = _ === "y" ? Lr : Ir, q = _ === "y" ? wo : xo, G = _ === "y" ? "height" : "width", F = T[_], Q = F + w[Oe], ie = F - w[q], ce = m ? -D[G] / 2 : 0, fe = C === Ul ? A[G] : D[G], Re = C === Ul ? -D[G] : -A[G], Ie = e.elements.arrow, ct = m && Ie ? O2(Ie) : {
31453
31453
  width: 0,
31454
31454
  height: 0
31455
31455
  }, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : dC(), ke = Ue[Oe], X = Ue[q], re = ec(0, A[G], ct[G]), pe = S ? A[G] / 2 - ce - re - ke - B.mainAxis : fe - re - ke - B.mainAxis, me = S ? -A[G] / 2 + ce + re + X + B.mainAxis : Re + re + X + B.mainAxis, _e = e.elements.arrow && nd(e.elements.arrow), De = _e ? _ === "y" ? _e.clientTop || 0 : _e.clientLeft || 0 : 0, qe = (he = V == null ? void 0 : V[_]) != null ? he : 0, le = F + pe - qe - De, Le = F + me - qe, ot = ec(m ? gp(Q, le) : Q, F, m ? va(ie, Le) : ie);
31456
31456
  T[_] = ot, ee[_] = ot - F;
31457
31457
  }
31458
31458
  if (a) {
31459
- var Ht, W = _ === "x" ? Lr : Ir, H = _ === "x" ? wo : xo, ge = T[k], Ae = k === "y" ? "height" : "width", Ge = ge + w[W], gt = ge - w[H], tt = [Lr, Ir].indexOf(x) !== -1, se = (Ht = V == null ? void 0 : V[k]) != null ? Ht : 0, Ee = tt ? Ge : ge - A[Ae] - P[Ae] - se + B.altAxis, be = tt ? ge + A[Ae] + P[Ae] - se - B.altAxis : gt, Te = m && tt ? Qq(Ee, ge, be) : ec(m ? Ee : Ge, ge, m ? be : gt);
31459
+ var Ht, W = _ === "x" ? Lr : Ir, H = _ === "x" ? wo : xo, ge = T[k], Ae = k === "y" ? "height" : "width", Ge = ge + w[W], gt = ge - w[H], tt = [Lr, Ir].indexOf(x) !== -1, se = (Ht = V == null ? void 0 : V[k]) != null ? Ht : 0, Ee = tt ? Ge : ge - A[Ae] - D[Ae] - se + B.altAxis, be = tt ? ge + A[Ae] + D[Ae] - se - B.altAxis : gt, Te = m && tt ? Qq(Ee, ge, be) : ec(m ? Ee : Ge, ge, m ? be : gt);
31460
31460
  T[k] = Te, ee[k] = Te - ge;
31461
31461
  }
31462
31462
  e.modifiersData[r] = ee;
@@ -31609,10 +31609,10 @@ function $K(t) {
31609
31609
  d.reset = !1, _ = -1;
31610
31610
  continue;
31611
31611
  }
31612
- var k = d.orderedModifiers[_], T = k.fn, A = k.options, P = A === void 0 ? {} : A, I = k.name;
31612
+ var k = d.orderedModifiers[_], T = k.fn, A = k.options, D = A === void 0 ? {} : A, I = k.name;
31613
31613
  typeof T == "function" && (d = T({
31614
31614
  state: d,
31615
- options: P,
31615
+ options: D,
31616
31616
  name: I,
31617
31617
  instance: m
31618
31618
  }) || d);
@@ -32060,7 +32060,7 @@ function mG(t, e) {
32060
32060
  return process.env.NODE_ENV !== "production" && Dg(!0, "render() function has not been supplied."), _;
32061
32061
  var k = n.render(_), T = k.popper, A = k.onUpdate;
32062
32062
  T.setAttribute("data-tippy-root", ""), T.id = "tippy-" + _.id, _.popper = T, t._tippy = _, T._tippy = _;
32063
- var P = C.map(function(ue) {
32063
+ var D = C.map(function(ue) {
32064
32064
  return ue.fn(_);
32065
32065
  }), I = t.hasAttribute("aria-expanded");
32066
32066
  return _e(), ce(), F(), Q("onCreate", [_]), n.showOnCreate && Ge(), T.addEventListener("mouseenter", function() {
@@ -32096,7 +32096,7 @@ function mG(t, e) {
32096
32096
  ue === void 0 && (ue = !1), T.style.pointerEvents = _.props.interactive && !ue ? "" : "none", T.style.zIndex = "" + _.props.zIndex;
32097
32097
  }
32098
32098
  function Q(ue, We, nt) {
32099
- if (nt === void 0 && (nt = !0), P.forEach(function(Rt) {
32099
+ if (nt === void 0 && (nt = !0), D.forEach(function(Rt) {
32100
32100
  Rt[ue] && Rt[ue].apply(Rt, We);
32101
32101
  }), nt) {
32102
32102
  var Bt;
@@ -33019,7 +33019,7 @@ class yG extends Dq {
33019
33019
  template: this.component.template,
33020
33020
  setup: (o) => {
33021
33021
  var i, s;
33022
- return nr("onDragStart", n), nr("decorationClasses", this.decorationClasses), (s = (i = this.component).setup) === null || s === void 0 ? void 0 : s.call(i, o, {
33022
+ return rr("onDragStart", n), rr("decorationClasses", this.decorationClasses), (s = (i = this.component).setup) === null || s === void 0 ? void 0 : s.call(i, o, {
33023
33023
  expose: () => {
33024
33024
  }
33025
33025
  });
@@ -33209,7 +33209,7 @@ const NC = (t, e) => {
33209
33209
  ed(_, k);
33210
33210
  }
33211
33211
  return (_, k) => {
33212
- const T = at, A = Vi, P = nu, I = Mf, B = Dl, V = Ec, ee = Xb, he = Jb, Oe = tu, q = eu;
33212
+ const T = at, A = Vi, D = nu, I = Mf, B = Dl, V = Ec, ee = Xb, he = Jb, Oe = tu, q = eu;
33213
33213
  return N(), $(b(Gh), {
33214
33214
  editor: _.editor,
33215
33215
  "plugin-key": "image-menus-123",
@@ -33230,35 +33230,35 @@ const NC = (t, e) => {
33230
33230
  default: M(() => [
33231
33231
  ne("div", wG, [
33232
33232
  ne("div", xG, [
33233
- D(T, {
33233
+ P(T, {
33234
33234
  tooltip: b(n)("editor.image.menu.flipX"),
33235
33235
  icon: "FlipVertical",
33236
33236
  action: x
33237
33237
  }, null, 8, ["tooltip"]),
33238
- D(T, {
33238
+ P(T, {
33239
33239
  tooltip: b(n)("editor.image.menu.flipY"),
33240
33240
  icon: "FlipHorizontal",
33241
33241
  action: C
33242
33242
  }, null, 8, ["tooltip"]),
33243
- D(A, {
33243
+ P(A, {
33244
33244
  orientation: "vertical",
33245
33245
  class: "mx-1 me-2 h-[16px]"
33246
33246
  }),
33247
- D(q, null, {
33247
+ P(q, null, {
33248
33248
  default: M(() => [
33249
- D(P, null, {
33249
+ P(D, null, {
33250
33250
  default: M(() => [
33251
- D(T, {
33251
+ P(T, {
33252
33252
  title: b(n)("editor.image.menu.size"),
33253
33253
  icon: "ImageSize"
33254
33254
  }, null, 8, ["title"])
33255
33255
  ]),
33256
33256
  _: 1
33257
33257
  }),
33258
- D(Oe, { class: "w-84" }, {
33258
+ P(Oe, { class: "w-84" }, {
33259
33259
  default: M(() => [
33260
33260
  ne("div", _G, [
33261
- D(I, {
33261
+ P(I, {
33262
33262
  for: "maxWidth",
33263
33263
  class: "whitespace-nowrap"
33264
33264
  }, {
@@ -33267,7 +33267,7 @@ const NC = (t, e) => {
33267
33267
  ]),
33268
33268
  _: 1
33269
33269
  }),
33270
- D(B, {
33270
+ P(B, {
33271
33271
  id: "maxWidth",
33272
33272
  modelValue: o.value,
33273
33273
  "onUpdate:modelValue": k[0] || (k[0] = (G) => o.value = G),
@@ -33276,7 +33276,7 @@ const NC = (t, e) => {
33276
33276
  onInput: y,
33277
33277
  onKeyup: pc(u, ["enter"])
33278
33278
  }, null, 8, ["modelValue"]),
33279
- D(I, {
33279
+ P(I, {
33280
33280
  for: "maxWidth",
33281
33281
  class: "whitespace-nowrap"
33282
33282
  }, {
@@ -33285,7 +33285,7 @@ const NC = (t, e) => {
33285
33285
  ]),
33286
33286
  _: 1
33287
33287
  }),
33288
- D(B, {
33288
+ P(B, {
33289
33289
  id: "maxWidth",
33290
33290
  modelValue: i.value,
33291
33291
  "onUpdate:modelValue": k[1] || (k[1] = (G) => i.value = G),
@@ -33296,7 +33296,7 @@ const NC = (t, e) => {
33296
33296
  }, null, 8, ["modelValue"])
33297
33297
  ]),
33298
33298
  ne("div", EG, [
33299
- D(he, {
33299
+ P(he, {
33300
33300
  "model-value": r.value,
33301
33301
  "onUpdate:modelValue": [
33302
33302
  k[2] || (k[2] = (G) => r.value = G),
@@ -33306,9 +33306,9 @@ const NC = (t, e) => {
33306
33306
  ]
33307
33307
  }, {
33308
33308
  default: M(() => [
33309
- D(ee, null, {
33309
+ P(ee, null, {
33310
33310
  default: M(() => [
33311
- (N(), xe(et, null, $t(["25", "50", "75", "100"], (G) => D(V, {
33311
+ (N(), xe(et, null, $t(["25", "50", "75", "100"], (G) => P(V, {
33312
33312
  key: G,
33313
33313
  value: G
33314
33314
  }, {
@@ -33330,11 +33330,11 @@ const NC = (t, e) => {
33330
33330
  ]),
33331
33331
  _: 1
33332
33332
  }),
33333
- D(A, {
33333
+ P(A, {
33334
33334
  orientation: "vertical",
33335
33335
  class: "mx-1 me-2 h-[16px]"
33336
33336
  }),
33337
- (N(), xe(et, null, $t(a, (G, F) => D(T, {
33337
+ (N(), xe(et, null, $t(a, (G, F) => P(T, {
33338
33338
  key: F,
33339
33339
  tooltip: b(n)(`editor.textalign.${G}.tooltip`),
33340
33340
  icon: l[G],
@@ -33342,11 +33342,11 @@ const NC = (t, e) => {
33342
33342
  disabled: !_.editor.can().setTextAlign(G),
33343
33343
  "is-active": () => _.editor.isActive({ textAlign: G }) || !1
33344
33344
  }, null, 8, ["tooltip", "icon", "action", "disabled", "is-active"])), 64)),
33345
- D(A, {
33345
+ P(A, {
33346
33346
  orientation: "vertical",
33347
33347
  class: "mx-1 me-2 h-[16px]"
33348
33348
  }),
33349
- D(T, {
33349
+ P(T, {
33350
33350
  tooltip: b(n)("editor.remove"),
33351
33351
  icon: "Trash2",
33352
33352
  action: S,
@@ -33579,13 +33579,13 @@ const MG = { class: "flex flex-col" }, NG = { class: "w-6 h-6 p-0.5 inline-block
33579
33579
  };
33580
33580
  return (h, m) => (N(), $(b(eu), null, {
33581
33581
  default: M(() => [
33582
- D(b(nu), { disabled: h.disabled }, {
33582
+ P(b(nu), { disabled: h.disabled }, {
33583
33583
  default: M(() => [
33584
33584
  te(h.$slots, "default")
33585
33585
  ]),
33586
33586
  _: 3
33587
33587
  }, 8, ["disabled"]),
33588
- D(b(tu), {
33588
+ P(b(tu), {
33589
33589
  "hide-when-detached": "",
33590
33590
  class: "w-full h-full p-2",
33591
33591
  align: "start",
@@ -33858,7 +33858,7 @@ const XG = () => {
33858
33858
  var V;
33859
33859
  (V = k.value) == null || V.openDialog();
33860
33860
  }
33861
- function P() {
33861
+ function D() {
33862
33862
  var V;
33863
33863
  (V = k.value) == null || V.closeDialog();
33864
33864
  }
@@ -33890,7 +33890,7 @@ const XG = () => {
33890
33890
  togglePrinter: _,
33891
33891
  setEditorContextMenuRef: T,
33892
33892
  openSuperInput: A,
33893
- closeSuperInput: P,
33893
+ closeSuperInput: D,
33894
33894
  imageAttachments: I,
33895
33895
  setImageAttachment: B
33896
33896
  };
@@ -35739,7 +35739,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
35739
35739
  for (const Q of Object.keys(n))
35740
35740
  n[Q] === F && delete n[Q];
35741
35741
  }
35742
- function P() {
35742
+ function D() {
35743
35743
  return Object.keys(e);
35744
35744
  }
35745
35745
  function I(F) {
@@ -35793,7 +35793,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`), fe = F, ce = Q), ie =
35793
35793
  initHighlightingOnLoad: C,
35794
35794
  registerLanguage: T,
35795
35795
  unregisterLanguage: A,
35796
- listLanguages: P,
35796
+ listLanguages: D,
35797
35797
  getLanguage: I,
35798
35798
  registerAliases: B,
35799
35799
  autoDetection: V,
@@ -36085,9 +36085,9 @@ const $g = Zh("XIcon", [
36085
36085
  }), {
36086
36086
  default: M(() => [
36087
36087
  te(o.$slots, "default"),
36088
- D(b(ZP), { "as-child": "" }, {
36088
+ P(b(ZP), { "as-child": "" }, {
36089
36089
  default: M(() => [
36090
- D(b(rS), { class: "w-4 h-4 opacity-50 shrink-0" })
36090
+ P(b(rS), { class: "w-4 h-4 opacity-50 shrink-0" })
36091
36091
  ]),
36092
36092
  _: 1
36093
36093
  })
@@ -36126,7 +36126,7 @@ const $g = Zh("XIcon", [
36126
36126
  }), i = sn(o, r);
36127
36127
  return (s, a) => (N(), $(b(RP), null, {
36128
36128
  default: M(() => [
36129
- D(b(HP), Se({ ...b(i), ...s.$attrs }, {
36129
+ P(b(HP), Se({ ...b(i), ...s.$attrs }, {
36130
36130
  class: b(Qe)(
36131
36131
  "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-ed-popover text-ed-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
36132
36132
  s.position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
@@ -36134,8 +36134,8 @@ const $g = Zh("XIcon", [
36134
36134
  )
36135
36135
  }), {
36136
36136
  default: M(() => [
36137
- D(b($X)),
36138
- D(b(GP), {
36137
+ P(b($X)),
36138
+ P(b(GP), {
36139
36139
  class: ut(
36140
36140
  b(Qe)(
36141
36141
  "p-1",
@@ -36148,7 +36148,7 @@ const $g = Zh("XIcon", [
36148
36148
  ]),
36149
36149
  _: 3
36150
36150
  }, 8, ["class"]),
36151
- D(b(HX))
36151
+ P(b(HX))
36152
36152
  ]),
36153
36153
  _: 3
36154
36154
  }, 16, ["class"])
@@ -36200,14 +36200,14 @@ const $g = Zh("XIcon", [
36200
36200
  }), {
36201
36201
  default: M(() => [
36202
36202
  ne("span", FX, [
36203
- D(b(WP), null, {
36203
+ P(b(WP), null, {
36204
36204
  default: M(() => [
36205
- D(b(H2), { class: "h-4 w-4" })
36205
+ P(b(H2), { class: "h-4 w-4" })
36206
36206
  ]),
36207
36207
  _: 1
36208
36208
  })
36209
36209
  ]),
36210
- D(b(KP), null, {
36210
+ P(b(KP), null, {
36211
36211
  default: M(() => [
36212
36212
  te(o.$slots, "default")
36213
36213
  ]),
@@ -36234,7 +36234,7 @@ const $g = Zh("XIcon", [
36234
36234
  }), {
36235
36235
  default: M(() => [
36236
36236
  te(o.$slots, "default", {}, () => [
36237
- D(b(IX), { class: "h-4 w-4" })
36237
+ P(b(IX), { class: "h-4 w-4" })
36238
36238
  ])
36239
36239
  ]),
36240
36240
  _: 3
@@ -36257,7 +36257,7 @@ const $g = Zh("XIcon", [
36257
36257
  }), {
36258
36258
  default: M(() => [
36259
36259
  te(o.$slots, "default", {}, () => [
36260
- D(b(rS), { class: "h-4 w-4" })
36260
+ P(b(rS), { class: "h-4 w-4" })
36261
36261
  ])
36262
36262
  ]),
36263
36263
  _: 3
@@ -36279,28 +36279,28 @@ const $g = Zh("XIcon", [
36279
36279
  const s = OX;
36280
36280
  return N(), $(b(Ha), { class: "code-block relative" }, {
36281
36281
  default: M(() => [
36282
- D(b(MX), {
36282
+ P(b(MX), {
36283
36283
  modelValue: r.value,
36284
36284
  "onUpdate:modelValue": i[0] || (i[0] = (a) => r.value = a)
36285
36285
  }, {
36286
36286
  default: M(() => [
36287
- D(b(DX), { class: "w-[160px] h-8 absolute right-2 top-2 bg-ed-background" }, {
36287
+ P(b(DX), { class: "w-[160px] h-8 absolute right-2 top-2 bg-ed-background" }, {
36288
36288
  default: M(() => [
36289
- D(b(NX), { placeholder: "Select Language" })
36289
+ P(b(NX), { placeholder: "Select Language" })
36290
36290
  ]),
36291
36291
  _: 1
36292
36292
  }),
36293
- D(b(PX), null, {
36293
+ P(b(PX), null, {
36294
36294
  default: M(() => [
36295
- D(b(BX), null, {
36295
+ P(b(BX), null, {
36296
36296
  default: M(() => [
36297
- D(b(ow), { value: "auto" }, {
36297
+ P(b(ow), { value: "auto" }, {
36298
36298
  default: M(() => i[1] || (i[1] = [
36299
36299
  lt(" Auto ")
36300
36300
  ])),
36301
36301
  _: 1
36302
36302
  }),
36303
- D(s),
36303
+ P(s),
36304
36304
  (N(!0), xe(et, null, $t(n.value, (a, l) => (N(), $(b(ow), {
36305
36305
  key: l,
36306
36306
  value: a
@@ -36321,7 +36321,7 @@ const $g = Zh("XIcon", [
36321
36321
  }, 8, ["modelValue"]),
36322
36322
  ne("pre", null, [
36323
36323
  ne("code", null, [
36324
- D(b(OC))
36324
+ P(b(OC))
36325
36325
  ])
36326
36326
  ])
36327
36327
  ]),
@@ -36462,7 +36462,7 @@ const $g = Zh("XIcon", [
36462
36462
  }), i = sn(o, r);
36463
36463
  return (s, a) => (N(), $(b(GD), null, {
36464
36464
  default: M(() => [
36465
- D(b(JD), Se(b(i), {
36465
+ P(b(JD), Se(b(i), {
36466
36466
  class: b(Qe)(
36467
36467
  "z-50 min-w-32 overflow-hidden rounded-md border bg-ed-popover p-1 text-ed-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
36468
36468
  n.class
@@ -36529,9 +36529,9 @@ const $g = Zh("XIcon", [
36529
36529
  }), {
36530
36530
  default: M(() => [
36531
36531
  ne("span", WX, [
36532
- D(b(QD), null, {
36532
+ P(b(QD), null, {
36533
36533
  default: M(() => [
36534
- D(b(H2), { class: "w-4 h-4" })
36534
+ P(b(H2), { class: "w-4 h-4" })
36535
36535
  ]),
36536
36536
  _: 1
36537
36537
  })
@@ -36594,11 +36594,11 @@ const $g = Zh("XIcon", [
36594
36594
  const e = t;
36595
36595
  return (n, r) => (N(), $(b(iu), null, {
36596
36596
  default: M(() => [
36597
- D(b(ru), { "delay-duration": 0 }, {
36597
+ P(b(ru), { "delay-duration": 0 }, {
36598
36598
  default: M(() => [
36599
- D(b(ou), { "as-child": "" }, {
36599
+ P(b(ou), { "as-child": "" }, {
36600
36600
  default: M(() => [
36601
- D(b(Dr), {
36601
+ P(b(Dr), {
36602
36602
  id: `action-menu-${n.id}`,
36603
36603
  class: ut(b(Qe)("h-[32px] px-1.5 py-0", e.class)),
36604
36604
  variant: "ghost",
@@ -36612,7 +36612,7 @@ const $g = Zh("XIcon", [
36612
36612
  class: "w-[16px] h-[16px]",
36613
36613
  name: n.icon
36614
36614
  }, null, 8, ["name"])) : $e("", !0),
36615
- D(b(hn), {
36615
+ P(b(hn), {
36616
36616
  class: "flex-shrink-0 w-3 h-3 ml-1 text-zinc-500",
36617
36617
  name: "ChevronDown"
36618
36618
  })
@@ -36658,9 +36658,9 @@ const $g = Zh("XIcon", [
36658
36658
  const e = t;
36659
36659
  return (n, r) => (N(), $(b(oS), null, {
36660
36660
  default: M(() => [
36661
- D(b(iS), { disabled: n.disabled }, {
36661
+ P(b(iS), { disabled: n.disabled }, {
36662
36662
  default: M(() => [
36663
- D(JX, {
36663
+ P(JX, {
36664
36664
  id: n.id,
36665
36665
  class: ut(n.btn_class),
36666
36666
  title: n.title,
@@ -36672,7 +36672,7 @@ const $g = Zh("XIcon", [
36672
36672
  ]),
36673
36673
  _: 1
36674
36674
  }, 8, ["disabled"]),
36675
- D(b(sS), Se({
36675
+ P(b(sS), Se({
36676
36676
  class: b(Qe)("min-w-24", e.class),
36677
36677
  align: "start",
36678
36678
  side: "bottom"
@@ -36719,7 +36719,7 @@ const $g = Zh("XIcon", [
36719
36719
  }, {
36720
36720
  default: M(() => [
36721
36721
  (N(!0), xe(et, null, $t(e.items, (s, a) => (N(), xe(et, { key: a }, [
36722
- D(b(lu), {
36722
+ P(b(lu), {
36723
36723
  checked: n.value.title === s.title,
36724
36724
  onClick: s.action
36725
36725
  }, {
@@ -36727,7 +36727,7 @@ const $g = Zh("XIcon", [
36727
36727
  ne("div", {
36728
36728
  class: ut(["h-full ml-1", "heading-" + s.level])
36729
36729
  }, Fe(s.title), 3),
36730
- D(b(aS), { class: "pl-4" }, {
36730
+ P(b(aS), { class: "pl-4" }, {
36731
36731
  default: M(() => {
36732
36732
  var l;
36733
36733
  return [
@@ -36852,18 +36852,18 @@ const $g = Zh("XIcon", [
36852
36852
  class: "min-w-4 w-full flex flex-row gap-1"
36853
36853
  }, {
36854
36854
  default: M(() => [
36855
- D(b(iu), null, {
36855
+ P(b(iu), null, {
36856
36856
  default: M(() => [
36857
36857
  (N(!0), xe(et, null, $t(e.items, (i, s) => (N(), $(b(ru), { key: s }, {
36858
36858
  default: M(() => [
36859
- D(b(ou), { "as-child": "" }, {
36859
+ P(b(ou), { "as-child": "" }, {
36860
36860
  default: M(() => [
36861
- D(b(z2), {
36861
+ P(b(z2), {
36862
36862
  class: "p-0",
36863
36863
  onClick: i.action
36864
36864
  }, {
36865
36865
  default: M(() => [
36866
- D(b(o_), {
36866
+ P(b(o_), {
36867
36867
  size: "sm",
36868
36868
  class: "w-7 h-7 p-1",
36869
36869
  pressed: n.value.title === i.title
@@ -36882,7 +36882,7 @@ const $g = Zh("XIcon", [
36882
36882
  ]),
36883
36883
  _: 2
36884
36884
  }, 1024),
36885
- D(b(Ta), { class: "flex flex-col items-center" }, {
36885
+ P(b(Ta), { class: "flex flex-col items-center" }, {
36886
36886
  default: M(() => {
36887
36887
  var a;
36888
36888
  return [
@@ -36963,7 +36963,7 @@ const $g = Zh("XIcon", [
36963
36963
  )
36964
36964
  }), {
36965
36965
  default: M(() => [
36966
- D(b(wP), { class: "relative flex-1 rounded-full bg-ed-border" })
36966
+ P(b(wP), { class: "relative flex-1 rounded-full bg-ed-border" })
36967
36967
  ]),
36968
36968
  _: 1
36969
36969
  }, 16, ["class"]));
@@ -36987,14 +36987,14 @@ const $g = Zh("XIcon", [
36987
36987
  class: b(Qe)("relative overflow-hidden", e.class)
36988
36988
  }), {
36989
36989
  default: M(() => [
36990
- D(b(cP), { class: "h-full w-full rounded-[inherit]" }, {
36990
+ P(b(cP), { class: "h-full w-full rounded-[inherit]" }, {
36991
36991
  default: M(() => [
36992
36992
  te(r.$slots, "default")
36993
36993
  ]),
36994
36994
  _: 3
36995
36995
  }),
36996
- D(QX),
36997
- D(b(_P))
36996
+ P(QX),
36997
+ P(b(_P))
36998
36998
  ]),
36999
36999
  _: 3
37000
37000
  }, 16, ["class"]));
@@ -37033,10 +37033,10 @@ const $g = Zh("XIcon", [
37033
37033
  btn_class: `min-w-24 ${l.customClass}`
37034
37034
  }, {
37035
37035
  default: M(() => [
37036
- D(b(eY), { class: "w-32 h-96" }, {
37036
+ P(b(eY), { class: "w-32 h-96" }, {
37037
37037
  default: M(() => [
37038
37038
  (N(!0), xe(et, null, $t(e.items, (p, h) => (N(), xe(et, { key: h }, [
37039
- D(b(lu), {
37039
+ P(b(lu), {
37040
37040
  checked: i.value.title === p.title,
37041
37041
  onClick: () => a(p.title, p.action)
37042
37042
  }, {
@@ -37260,7 +37260,7 @@ const $g = Zh("XIcon", [
37260
37260
  (s = e.action) == null || s.call(e, n.value);
37261
37261
  }
37262
37262
  return (i, s) => (N(), xe("div", sY, [
37263
- D(at, {
37263
+ P(at, {
37264
37264
  id: "color",
37265
37265
  tooltip: i.tooltip,
37266
37266
  disabled: i.disabled,
@@ -37298,21 +37298,21 @@ const $g = Zh("XIcon", [
37298
37298
  ]),
37299
37299
  _: 1
37300
37300
  }, 8, ["tooltip", "disabled"]),
37301
- D(IC, {
37301
+ P(IC, {
37302
37302
  modelValue: n.value,
37303
37303
  "onUpdate:modelValue": s[0] || (s[0] = (a) => n.value = a),
37304
37304
  disabled: i.disabled,
37305
37305
  onChange: r
37306
37306
  }, {
37307
37307
  default: M(() => [
37308
- D(b(Dr), {
37308
+ P(b(Dr), {
37309
37309
  variant: "ghost",
37310
37310
  size: "icon",
37311
37311
  class: "h-[32px] w-3 rounded-l-none hover:bg-ed-muted-foreground/20",
37312
37312
  disabled: i.disabled
37313
37313
  }, {
37314
37314
  default: M(() => [
37315
- D(b(hn), {
37315
+ P(b(hn), {
37316
37316
  class: "w-3 h-3 text-zinc-500",
37317
37317
  name: "MenuDown"
37318
37318
  })
@@ -37497,7 +37497,7 @@ const $g = Zh("XIcon", [
37497
37497
  id: `dropdown-btn-${n.id}`,
37498
37498
  class: ut(["flex items-center h-[32px] hover:bg-ed-muted rounded-md", [((o = n.isActive) == null ? void 0 : o.call(n)) && "bg-ed-muted"]])
37499
37499
  }, [
37500
- D(at, {
37500
+ P(at, {
37501
37501
  class: ut(n.btnClass),
37502
37502
  action: n.action,
37503
37503
  title: n.title,
@@ -37506,18 +37506,18 @@ const $g = Zh("XIcon", [
37506
37506
  disabled: n.disabled,
37507
37507
  "shortcut-keys": n.shortcutKeys
37508
37508
  }, null, 8, ["class", "action", "title", "icon", "tooltip", "disabled", "shortcut-keys"]),
37509
- D(b(oS), null, {
37509
+ P(b(oS), null, {
37510
37510
  default: M(() => [
37511
- D(b(iS), { disabled: n.disabled }, {
37511
+ P(b(iS), { disabled: n.disabled }, {
37512
37512
  default: M(() => [
37513
- D(Dr, {
37513
+ P(Dr, {
37514
37514
  variant: "ghost",
37515
37515
  size: "icon",
37516
37516
  class: "h-[32px] w-3 rounded-l-none hover:bg-ed-muted-foreground/20",
37517
37517
  disabled: n.disabled
37518
37518
  }, {
37519
37519
  default: M(() => [
37520
- D(b(hn), {
37520
+ P(b(hn), {
37521
37521
  class: "w-3 h-3 text-zinc-500",
37522
37522
  name: "MenuDown"
37523
37523
  })
@@ -37527,7 +37527,7 @@ const $g = Zh("XIcon", [
37527
37527
  ]),
37528
37528
  _: 1
37529
37529
  }, 8, ["disabled"]),
37530
- D(b(sS), Se({
37530
+ P(b(sS), Se({
37531
37531
  class: b(Qe)("min-w-24", e.class),
37532
37532
  align: "start",
37533
37533
  side: "bottom"
@@ -37570,16 +37570,16 @@ const $g = Zh("XIcon", [
37570
37570
  class: "grid w-full grid-cols-3 gap-1 min-w-4"
37571
37571
  }, {
37572
37572
  default: M(() => [
37573
- D(b(iu), null, {
37573
+ P(b(iu), null, {
37574
37574
  default: M(() => [
37575
- (N(), xe(et, null, $t(r, (l) => D(b(ru), {
37575
+ (N(), xe(et, null, $t(r, (l) => P(b(ru), {
37576
37576
  key: l.value,
37577
37577
  "delay-duration": 0
37578
37578
  }, {
37579
37579
  default: M(() => [
37580
- D(b(ou), null, {
37580
+ P(b(ou), null, {
37581
37581
  default: M(() => [
37582
- D(b(z2), {
37582
+ P(b(z2), {
37583
37583
  class: "p-0",
37584
37584
  onClick: (u) => i(l)
37585
37585
  }, {
@@ -37602,7 +37602,7 @@ const $g = Zh("XIcon", [
37602
37602
  ]),
37603
37603
  _: 2
37604
37604
  }, 1024),
37605
- D(b(Ta), { side: "bottom" }, {
37605
+ P(b(Ta), { side: "bottom" }, {
37606
37606
  default: M(() => [
37607
37607
  lt(Fe(b(n)(l.label)), 1)
37608
37608
  ]),
@@ -37777,16 +37777,16 @@ const $g = Zh("XIcon", [
37777
37777
  class: "min-w-4 w-full grid grid-cols-3 gap-1"
37778
37778
  }, {
37779
37779
  default: M(() => [
37780
- D(b(iu), null, {
37780
+ P(b(iu), null, {
37781
37781
  default: M(() => [
37782
- (N(), xe(et, null, $t(r, (l) => D(b(ru), {
37782
+ (N(), xe(et, null, $t(r, (l) => P(b(ru), {
37783
37783
  key: l.value,
37784
37784
  "delay-duration": 0
37785
37785
  }, {
37786
37786
  default: M(() => [
37787
- D(b(ou), { "as-child": "" }, {
37787
+ P(b(ou), { "as-child": "" }, {
37788
37788
  default: M(() => [
37789
- D(b(z2), {
37789
+ P(b(z2), {
37790
37790
  class: "p-0",
37791
37791
  onClick: (u) => i(l)
37792
37792
  }, {
@@ -37809,7 +37809,7 @@ const $g = Zh("XIcon", [
37809
37809
  ]),
37810
37810
  _: 2
37811
37811
  }, 1024),
37812
- D(b(Ta), { side: "bottom" }, {
37812
+ P(b(Ta), { side: "bottom" }, {
37813
37813
  default: M(() => [
37814
37814
  lt(Fe(b(n)(l.label)), 1)
37815
37815
  ]),
@@ -38679,7 +38679,7 @@ function WY({
38679
38679
  _t(S, t.numeric, _);
38680
38680
  const k = lo(Ef), T = lo();
38681
38681
  _t(k, e, k), _t(k, n, T), _t(T, e, k), _t(T, n, T), Me(C, Yo, k), Me(_, Yo, k);
38682
- const A = Me(a, vs), P = Me(l, vs), I = Me(P, Yo), B = Me(I, Yo);
38682
+ const A = Me(a, vs), D = Me(l, vs), I = Me(D, Yo), B = Me(I, Yo);
38683
38683
  _t(a, t.domain, s), Me(a, Xo, x), Me(a, uo, w), _t(l, t.domain, s), Me(l, Xo, x), Me(l, uo, w), _t(A, t.domain, k), Me(A, Yo, k), Me(A, lc, k), _t(B, t.domain, k), _t(B, e, k), Me(B, Yo, k);
38684
38684
  const V = [
38685
38685
  [ic, sc],
@@ -39084,10 +39084,10 @@ const ES = /* @__PURE__ */ j({
39084
39084
  )
39085
39085
  }), {
39086
39086
  default: M(() => [
39087
- D(b(lD), { class: "flex h-full w-full items-center justify-center text-current" }, {
39087
+ P(b(lD), { class: "flex h-full w-full items-center justify-center text-current" }, {
39088
39088
  default: M(() => [
39089
39089
  te(s.$slots, "default", {}, () => [
39090
- D(b(nZ), { class: "h-4 w-4" })
39090
+ P(b(nZ), { class: "h-4 w-4" })
39091
39091
  ])
39092
39092
  ]),
39093
39093
  _: 3
@@ -39130,9 +39130,9 @@ const ES = /* @__PURE__ */ j({
39130
39130
  }, [
39131
39131
  ne("form", {
39132
39132
  class: "flex flex-col gap-2",
39133
- onSubmit: sr(d, ["prevent"])
39133
+ onSubmit: Qn(d, ["prevent"])
39134
39134
  }, [
39135
- D(b(Mf), null, {
39135
+ P(b(Mf), null, {
39136
39136
  default: M(() => [
39137
39137
  lt(Fe(b(o)("editor.link.dialog.text")), 1)
39138
39138
  ]),
@@ -39140,7 +39140,7 @@ const ES = /* @__PURE__ */ j({
39140
39140
  }),
39141
39141
  ne("div", rZ, [
39142
39142
  ne("div", oZ, [
39143
- D(b(Dl), {
39143
+ P(b(Dl), {
39144
39144
  modelValue: b(i).text,
39145
39145
  "onUpdate:modelValue": h[0] || (h[0] = (g) => b(i).text = g),
39146
39146
  type: "text",
@@ -39150,7 +39150,7 @@ const ES = /* @__PURE__ */ j({
39150
39150
  }, null, 8, ["modelValue"])
39151
39151
  ])
39152
39152
  ]),
39153
- D(b(Mf), null, {
39153
+ P(b(Mf), null, {
39154
39154
  default: M(() => [
39155
39155
  lt(Fe(b(o)("editor.link.dialog.link")), 1)
39156
39156
  ]),
@@ -39158,7 +39158,7 @@ const ES = /* @__PURE__ */ j({
39158
39158
  }),
39159
39159
  ne("div", iZ, [
39160
39160
  ne("div", sZ, [
39161
- D(b(Dl), {
39161
+ P(b(Dl), {
39162
39162
  ref_key: "inputRef",
39163
39163
  ref: s,
39164
39164
  modelValue: b(i).link,
@@ -39168,7 +39168,7 @@ const ES = /* @__PURE__ */ j({
39168
39168
  class: "pl-10"
39169
39169
  }, null, 8, ["modelValue"]),
39170
39170
  ne("span", aZ, [
39171
- D(b(hn), {
39171
+ P(b(hn), {
39172
39172
  class: "size-5 text-ed-muted-foreground",
39173
39173
  name: "Link"
39174
39174
  })
@@ -39176,19 +39176,19 @@ const ES = /* @__PURE__ */ j({
39176
39176
  ])
39177
39177
  ]),
39178
39178
  ne("div", lZ, [
39179
- D(m, {
39179
+ P(m, {
39180
39180
  id: "openInNewTab",
39181
39181
  checked: l.value,
39182
39182
  "onUpdate:checked": h[2] || (h[2] = (g) => l.value = g)
39183
39183
  }, null, 8, ["checked"]),
39184
- D(b(Mf), { for: "openInNewTab" }, {
39184
+ P(b(Mf), { for: "openInNewTab" }, {
39185
39185
  default: M(() => [
39186
39186
  lt(Fe(b(o)("editor.link.dialog.openInNewTab")), 1)
39187
39187
  ]),
39188
39188
  _: 1
39189
39189
  })
39190
39190
  ]),
39191
- D(b(Dr), {
39191
+ P(b(Dr), {
39192
39192
  type: "submit",
39193
39193
  class: "mt-2 self-end"
39194
39194
  }, {
@@ -39220,9 +39220,9 @@ const ES = /* @__PURE__ */ j({
39220
39220
  }
39221
39221
  return (r, o) => (N(), $(b(eu), null, {
39222
39222
  default: M(() => [
39223
- D(b(nu), { disabled: r.disabled }, {
39223
+ P(b(nu), { disabled: r.disabled }, {
39224
39224
  default: M(() => [
39225
- D(at, {
39225
+ P(at, {
39226
39226
  icon: r.icon,
39227
39227
  tooltip: r.tooltip,
39228
39228
  "is-active": r.isActive,
@@ -39231,7 +39231,7 @@ const ES = /* @__PURE__ */ j({
39231
39231
  ]),
39232
39232
  _: 1
39233
39233
  }, 8, ["disabled"]),
39234
- D(b(tu), {
39234
+ P(b(tu), {
39235
39235
  "hide-when-detached": "",
39236
39236
  "as-child": "",
39237
39237
  class: "w-full",
@@ -39239,7 +39239,7 @@ const ES = /* @__PURE__ */ j({
39239
39239
  side: "bottom"
39240
39240
  }, {
39241
39241
  default: M(() => [
39242
- D(CS, {
39242
+ P(CS, {
39243
39243
  editor: r.editor,
39244
39244
  onOnSetLink: n
39245
39245
  }, null, 8, ["editor"])
@@ -41882,7 +41882,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
41882
41882
  }), i = sn(o, r);
41883
41883
  return (s, a) => (N(), $(b(VD), null, {
41884
41884
  default: M(() => [
41885
- D(b(UD), Se(b(i), {
41885
+ P(b(UD), Se(b(i), {
41886
41886
  class: b(Qe)(
41887
41887
  "z-50 min-w-32 overflow-hidden rounded-md border bg-ed-popover p-1 text-ed-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
41888
41888
  n.class
@@ -41978,7 +41978,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
41978
41978
  }), i = sn(o, r);
41979
41979
  return (s, a) => (N(), $(b(zx), null, {
41980
41980
  default: M(() => [
41981
- D(b(Gx), {
41981
+ P(b(Gx), {
41982
41982
  class: ut(
41983
41983
  b(Qe)(
41984
41984
  "fixed inset-0 z-[60] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
@@ -41986,7 +41986,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
41986
41986
  )
41987
41987
  )
41988
41988
  }, null, 8, ["class"]),
41989
- D(b(QI), Se(b(i), {
41989
+ P(b(QI), Se(b(i), {
41990
41990
  class: b(Qe)(
41991
41991
  "fixed left-1/2 top-1/2 z-[60] grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-ed-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",
41992
41992
  n.class
@@ -42096,6 +42096,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42096
42096
  content: r.modelValue,
42097
42097
  extensions: s.concat(l.value),
42098
42098
  editable: !r.isReadOnly,
42099
+ autofocus: !0,
42099
42100
  onUpdate: ({ editor: m }) => {
42100
42101
  o("update:modelValue", m.getHTML());
42101
42102
  }
@@ -42117,7 +42118,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42117
42118
  return e({ insertSpecialCharater: d, isChecked: p, toggleSpellCheck: h }), (m, g) => (N(), xe("div", {
42118
42119
  class: ut(b(Qe)("h-40 overflow-y-auto", b(i) && "h-20 rounded-[5px]"))
42119
42120
  }, [
42120
- D(b(rd), {
42121
+ P(b(rd), {
42121
42122
  editor: b(u),
42122
42123
  class: ut(
42123
42124
  b(Qe)(
@@ -42143,22 +42144,22 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42143
42144
  emits: ["close", "save"],
42144
42145
  setup(t, { emit: e }) {
42145
42146
  var T, A;
42146
- const n = e, r = t, { t: o } = jt(), i = U(""), s = U(""), a = U(null), l = U(!1), u = vo({ x: 0, y: 0 }), d = U(!1), p = { x: 0, y: 0 }, h = (P) => {
42147
- d.value = !0, p.x = P.clientX - u.x, p.y = P.clientY - u.y, document.addEventListener("mousemove", m), document.addEventListener("mouseup", g);
42148
- }, m = (P) => {
42149
- d.value && (u.x = P.clientX - p.x, u.y = P.clientY - p.y);
42147
+ const n = e, r = t, { t: o } = jt(), i = U(""), s = U(""), a = U(null), l = U(!1), u = vo({ x: 0, y: 0 }), d = U(!1), p = { x: 0, y: 0 }, h = (D) => {
42148
+ d.value = !0, p.x = D.clientX - u.x, p.y = D.clientY - u.y, document.addEventListener("mousemove", m), document.addEventListener("mouseup", g);
42149
+ }, m = (D) => {
42150
+ d.value && (u.x = D.clientX - p.x, u.y = D.clientY - p.y);
42150
42151
  }, g = () => {
42151
42152
  d.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", g);
42152
42153
  }, y = Y(() => {
42153
42154
  var I;
42154
42155
  if (!i.value) return !0;
42155
- const P = document.createElement("div");
42156
- return P.innerHTML = i.value, ((I = P == null ? void 0 : P.textContent) == null ? void 0 : I.trim()) === "";
42156
+ const D = document.createElement("div");
42157
+ return D.innerHTML = i.value, ((I = D == null ? void 0 : D.textContent) == null ? void 0 : I.trim()) === "";
42157
42158
  });
42158
42159
  He(
42159
42160
  () => r.open,
42160
- async (P) => {
42161
- if (P) {
42161
+ async (D) => {
42162
+ if (D) {
42162
42163
  r.superTextInit && (i.value = r.superTextInit, r.superTextId && (s.value = r.superTextId)), await Dt();
42163
42164
  const I = document.querySelector(".draggable-dialog");
42164
42165
  if (I) {
@@ -42173,26 +42174,26 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42173
42174
  n("close"), i.value = "", s.value = "", l.value = !1;
42174
42175
  }, x = () => {
42175
42176
  n("save", i.value), i.value = "";
42176
- }, C = (A = (T = r.editor) == null ? void 0 : T.extensionManager.extensions.find((P) => P.name === "superText")) == null ? void 0 : A.options.specialCharModal, S = (P, I) => {
42177
+ }, C = (A = (T = r.editor) == null ? void 0 : T.extensionManager.extensions.find((D) => D.name === "superText")) == null ? void 0 : A.options.specialCharModal, S = (D, I) => {
42177
42178
  var B;
42178
- I && ((B = a.value) == null || B.insertSpecialCharater(P));
42179
+ I && ((B = a.value) == null || B.insertSpecialCharater(D));
42179
42180
  }, _ = Y(() => {
42180
- var P;
42181
- return (P = a.value) == null ? void 0 : P.isChecked;
42181
+ var D;
42182
+ return (D = a.value) == null ? void 0 : D.isChecked;
42182
42183
  }), k = () => {
42183
- var P;
42184
- (P = a.value) == null || P.toggleSpellCheck();
42184
+ var D;
42185
+ (D = a.value) == null || D.toggleSpellCheck();
42185
42186
  };
42186
42187
  return ur(() => {
42187
42188
  document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", g);
42188
- }), (P, I) => {
42189
+ }), (D, I) => {
42189
42190
  const B = n7, V = t7, ee = e7, he = QS, Oe = ZS, q = YS;
42190
- return N(), $(q, { open: P.open }, {
42191
+ return N(), $(q, { open: D.open }, {
42191
42192
  default: M(() => [
42192
- D(b(zx), null, {
42193
+ P(b(zx), null, {
42193
42194
  default: M(() => [
42194
- D(b(Gx), { class: "!pointer-events-none bg-black/30" }),
42195
- D(Oe, {
42195
+ P(b(Gx), { class: "!pointer-events-none bg-black/30" }),
42196
+ P(Oe, {
42196
42197
  "is-overlay-transparent": "",
42197
42198
  class: "p-0 gap-0 !animate-none !transition-none",
42198
42199
  "as-child": ""
@@ -42208,23 +42209,23 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42208
42209
  left: "0px"
42209
42210
  })
42210
42211
  }, [
42211
- D(ee, {
42212
+ P(ee, {
42212
42213
  class: "bg-blue-500 text-white p-2.5 rounded-t-[5px] cursor-move",
42213
- onMousedown: sr(h, ["prevent"])
42214
+ onMousedown: Qn(h, ["prevent"])
42214
42215
  }, {
42215
42216
  default: M(() => [
42216
- D(B, null, {
42217
+ P(B, null, {
42217
42218
  default: M(() => [
42218
42219
  lt(Fe(b(o)("editor.superinput")), 1)
42219
42220
  ]),
42220
42221
  _: 1
42221
42222
  }),
42222
- D(V, {
42223
+ P(V, {
42223
42224
  class: "absolute right-3 top-3 text-white",
42224
42225
  onClick: w
42225
42226
  }, {
42226
42227
  default: M(() => [
42227
- D(b($g), { class: "w-5 h-5" }),
42228
+ P(b($g), { class: "w-5 h-5" }),
42228
42229
  I[3] || (I[3] = ne("span", { class: "sr-only" }, "Close", -1))
42229
42230
  ]),
42230
42231
  _: 1
@@ -42236,7 +42237,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42236
42237
  ne("div", pee, [
42237
42238
  I[4] || (I[4] = ne("label", { class: "w-1/6" }, " ", -1)),
42238
42239
  ne("div", hee, [
42239
- D(Dr, {
42240
+ P(Dr, {
42240
42241
  class: "text-[#65558F] bg-[#ECE6F0] hover:bg-[#ECE6F0]/90 shadow text-xs rounded font-normal h-[25px] px-3",
42241
42242
  onClick: I[0] || (I[0] = (ie) => l.value = !0)
42242
42243
  }, {
@@ -42246,7 +42247,7 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42246
42247
  _: 1
42247
42248
  }),
42248
42249
  ne("div", mee, [
42249
- D(ES, {
42250
+ P(ES, {
42250
42251
  id: "spellcheck",
42251
42252
  checked: b(_),
42252
42253
  class: "border-gray-300",
@@ -42265,27 +42266,27 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42265
42266
  ]),
42266
42267
  ne("div", bee, [
42267
42268
  ne("label", vee, Fe(b(o)("editor.detail")), 1),
42268
- D(r7, {
42269
+ P(r7, {
42269
42270
  ref_key: "simpleEditorRef",
42270
42271
  ref: a,
42271
42272
  modelValue: i.value,
42272
42273
  "onUpdate:modelValue": I[2] || (I[2] = (ie) => i.value = ie),
42273
- "parent-editor": P.editor,
42274
+ "parent-editor": D.editor,
42274
42275
  class: "flex-1"
42275
42276
  }, null, 8, ["modelValue", "parent-editor"])
42276
42277
  ]),
42277
42278
  ne("div", yee, [
42278
42279
  I[5] || (I[5] = ne("label", { class: "w-1/6 text-right text-sm p-2" }, "ID", -1)),
42279
- D(Dl, {
42280
+ P(Dl, {
42280
42281
  class: "flex-1 rounded-none",
42281
42282
  "default-value": s.value,
42282
42283
  disabled: ""
42283
42284
  }, null, 8, ["default-value"])
42284
42285
  ])
42285
42286
  ]),
42286
- D(he, { class: "sm:justify-center pb-3.5 pt-1" }, {
42287
+ P(he, { class: "sm:justify-center pb-3.5 pt-1" }, {
42287
42288
  default: M(() => [
42288
- D(Dr, {
42289
+ P(Dr, {
42289
42290
  as: "button",
42290
42291
  variant: "default",
42291
42292
  class: "bg-blue-500 hover:bg-blue-500/90",
@@ -42293,18 +42294,18 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42293
42294
  onClick: x
42294
42295
  }, {
42295
42296
  default: M(() => [
42296
- D(b(H2), { class: "w-5 h-5 mr-2" }),
42297
+ P(b(H2), { class: "w-5 h-5 mr-2" }),
42297
42298
  lt(" " + Fe(b(o)("editor.check")), 1)
42298
42299
  ]),
42299
42300
  _: 1
42300
42301
  }, 8, ["disabled"]),
42301
- D(Dr, {
42302
+ P(Dr, {
42302
42303
  as: "button",
42303
42304
  variant: "destructive",
42304
42305
  onClick: w
42305
42306
  }, {
42306
42307
  default: M(() => [
42307
- D(b($g), { class: "w-5 h-5 mr-2" }),
42308
+ P(b($g), { class: "w-5 h-5 mr-2" }),
42308
42309
  I[6] || (I[6] = lt(" Close "))
42309
42310
  ]),
42310
42311
  _: 1
@@ -42334,86 +42335,96 @@ const ov = "paragraph", co = "page", jS = "Extend", uu = "Node", NQ = uu + jS, R
42334
42335
  },
42335
42336
  setup(t, { expose: e }) {
42336
42337
  const n = t, { t: r } = jt(), o = U(!1), i = vo({ from: 0, to: 0, text: "" }), s = U(""), a = U(""), l = U(!0), u = Y(() => n.mode === Ct.EDITOR || n.mode === Ct.PLAIN_TEXT), d = () => {
42337
- const { view: C, state: S } = n.editor, { from: _, to: k } = C.state.selection, T = S.doc.textBetween(_, k, "");
42338
- i.text = T, i.from = _, i.to = k;
42338
+ const { view: S, state: _ } = n.editor, { from: k, to: T } = S.state.selection, A = _.doc.textBetween(k, T, "");
42339
+ i.text = A, i.from = k, i.to = T;
42339
42340
  }, p = () => o.value = !o.value, h = () => {
42340
42341
  if (u.value) return;
42341
42342
  o.value = !0, d();
42342
- const { from: C, to: S } = n.editor.state.selection;
42343
- let _ = "";
42344
- n.editor.state.doc.nodesBetween(C, S, (k) => {
42345
- var T;
42346
- (T = k.attrs) != null && T.id && (_ = k.attrs.id);
42347
- }), a.value = _, s.value = i.text;
42348
- }, m = () => o.value = !1, g = (C) => {
42349
- const S = n == null ? void 0 : n.superTextStore.addMoreSuperText(C);
42343
+ const { from: S, to: _ } = n.editor.state.selection;
42344
+ let k = "";
42345
+ n.editor.state.doc.nodesBetween(S, _, (T) => {
42346
+ var A;
42347
+ (A = T.attrs) != null && A.id && (k = T.attrs.id);
42348
+ }), a.value = k, s.value = i.text;
42349
+ }, m = () => o.value = !1, g = (S) => {
42350
+ const _ = n == null ? void 0 : n.superTextStore.addMoreSuperText(S);
42350
42351
  n.editor && n.editor.commands.insertContentAt(i.from, {
42351
42352
  type: "superText",
42352
- attrs: { "data-id": S, "data-text": C }
42353
+ attrs: { "data-id": _, "data-text": S }
42353
42354
  }), o.value = !1;
42354
42355
  }, y = async () => {
42355
- const { view: C, state: S } = n.editor, { from: _, to: k } = S.selection, T = S.doc.textBetween(_, k, `
42356
+ const { view: S, state: _ } = n.editor, { from: k, to: T } = _.selection, A = _.doc.textBetween(k, T, `
42356
42357
  `).trim();
42357
- if (T)
42358
+ if (A)
42358
42359
  try {
42359
- await navigator.clipboard.writeText(T);
42360
- } catch (A) {
42361
- console.error("Failed to copy:", A);
42360
+ await navigator.clipboard.writeText(A);
42361
+ } catch (D) {
42362
+ console.error("Failed to copy:", D);
42362
42363
  }
42363
42364
  }, w = async () => {
42364
42365
  try {
42365
- const C = await navigator.clipboard.readText();
42366
- C && n.editor && n.editor.commands.insertContent(C);
42367
- } catch (C) {
42368
- console.error("Failed to paste:", C);
42366
+ const S = await navigator.clipboard.readText();
42367
+ S && n.editor && n.editor.commands.insertContent(S);
42368
+ } catch (S) {
42369
+ console.error("Failed to paste:", S);
42369
42370
  }
42370
- }, x = async (C) => {
42371
- if (C)
42371
+ }, x = async (S) => {
42372
+ if (S)
42372
42373
  try {
42373
- const S = await navigator.clipboard.readText();
42374
- l.value = !S.trim();
42374
+ const _ = await navigator.clipboard.readText();
42375
+ l.value = !_.trim();
42375
42376
  } catch {
42376
42377
  l.value = !0;
42377
42378
  }
42379
+ }, C = () => {
42380
+ if (!n.editor) return;
42381
+ const { view: S, state: _ } = n.editor, { from: k, to: T } = _.selection, A = _.doc.textBetween(k, T, " ").trim();
42382
+ i.from = k, i.to = T, i.text = A, s.value = A;
42383
+ let D = "";
42384
+ _.doc.nodesBetween(k, T, (I) => {
42385
+ var B;
42386
+ (B = I.attrs) != null && B.id && (D = I.attrs.id);
42387
+ }), a.value = D, o.value = !0;
42378
42388
  };
42379
- return e({ toggleDialog: p, openDialog: h, closeDialog: m }), (C, S) => {
42380
- const _ = sd, k = s0, T = i0, A = o0, P = r0;
42389
+ return e({ toggleDialog: p, openDialog: h, closeDialog: m }), (S, _) => {
42390
+ const k = sd, T = s0, A = i0, D = o0, I = r0;
42381
42391
  return N(), xe(et, null, [
42382
- D(_, {
42392
+ P(k, {
42383
42393
  open: o.value,
42384
- editor: C.editor,
42394
+ editor: S.editor,
42385
42395
  "super-text-init": s.value,
42386
42396
  "super-text-id": a.value,
42387
42397
  onClose: p,
42388
42398
  onSave: g
42389
42399
  }, null, 8, ["open", "editor", "super-text-init", "super-text-id"]),
42390
- D(P, { "onUpdate:open": x }, {
42400
+ P(I, { "onUpdate:open": x }, {
42391
42401
  default: M(() => [
42392
- D(k, {
42402
+ P(T, {
42393
42403
  as: "template",
42394
42404
  class: "relative",
42395
- disabled: b(u)
42405
+ disabled: b(u),
42406
+ onDblclick: Qn(C, ["prevent", "stop"])
42396
42407
  }, {
42397
42408
  default: M(() => [
42398
- te(C.$slots, "default")
42409
+ te(S.$slots, "default")
42399
42410
  ]),
42400
42411
  _: 3
42401
42412
  }, 8, ["disabled"]),
42402
- D(A, null, {
42413
+ P(D, null, {
42403
42414
  default: M(() => [
42404
- D(T, { onSelect: h }, {
42415
+ P(A, { onSelect: h }, {
42405
42416
  default: M(() => [
42406
42417
  lt(Fe(b(r)("editor.inputSuper")), 1)
42407
42418
  ]),
42408
42419
  _: 1
42409
42420
  }),
42410
- D(T, { onSelect: y }, {
42421
+ P(A, { onSelect: y }, {
42411
42422
  default: M(() => [
42412
42423
  lt(Fe(b(r)("editor.copy")), 1)
42413
42424
  ]),
42414
42425
  _: 1
42415
42426
  }),
42416
- D(T, {
42427
+ P(A, {
42417
42428
  disabled: l.value,
42418
42429
  onSelect: w
42419
42430
  }, {
@@ -42475,13 +42486,13 @@ const wee = {
42475
42486
  }, {
42476
42487
  default: M(() => [
42477
42488
  ne("div", wee, [
42478
- D(x, {
42489
+ P(x, {
42479
42490
  mode: u.value ? b(Ct).REPORT : b(Ct).EDITOR,
42480
42491
  editor: y.editor,
42481
42492
  "super-text-store": b(r)
42482
42493
  }, {
42483
42494
  default: M(() => [
42484
- D(b(OC), {
42495
+ P(b(OC), {
42485
42496
  class: "umo-page-node-content",
42486
42497
  style: Jt({
42487
42498
  height: m.value
@@ -42568,10 +42579,10 @@ const Eee = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
42568
42579
  const k = s.before(s.depth - (x - 1));
42569
42580
  e.replace(k, s.after(-C), new Ne(w, 4 - x, 0));
42570
42581
  let T = -1;
42571
- e.doc.nodesBetween(k, e.doc.content.size, (A, P) => {
42582
+ e.doc.nodesBetween(k, e.doc.content.size, (A, D) => {
42572
42583
  if (T > -1)
42573
42584
  return !1;
42574
- A.isTextblock && A.content.size === 0 && (T = P + 1);
42585
+ A.isTextblock && A.content.size === 0 && (T = D + 1);
42575
42586
  }), T > -1 && e.setSelection(Ke.near(e.doc.resolve(T))), e.scrollIntoView();
42576
42587
  }
42577
42588
  return !0;
@@ -42883,7 +42894,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
42883
42894
  }, {
42884
42895
  default: M(() => [
42885
42896
  (N(!0), xe(et, null, $t(s.value, (m, g) => (N(), xe(et, { key: g }, [
42886
- D(b(lu), {
42897
+ P(b(lu), {
42887
42898
  checked: a.value === m.value,
42888
42899
  onClick: (y) => u(m)
42889
42900
  }, {
@@ -42998,17 +43009,17 @@ const Ow = (t) => t.command(({ tr: e }) => {
42998
43009
  return (i, s) => {
42999
43010
  const a = ou, l = ru, u = iu;
43000
43011
  return N(), xe("div", Mee, [
43001
- D(u, null, {
43012
+ P(u, null, {
43002
43013
  default: M(() => [
43003
- D(l, { "delay-duration": 0 }, {
43014
+ P(l, { "delay-duration": 0 }, {
43004
43015
  default: M(() => [
43005
- D(a, null, {
43016
+ P(a, null, {
43006
43017
  default: M(() => [
43007
43018
  ne("button", {
43008
43019
  class: "btn",
43009
43020
  onClick: s[0] || (s[0] = (d) => o(!0))
43010
43021
  }, [
43011
- D(b(hn), {
43022
+ P(b(hn), {
43012
43023
  name: "Plus",
43013
43024
  class: "w-6 h-6"
43014
43025
  })
@@ -43016,7 +43027,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
43016
43027
  ]),
43017
43028
  _: 1
43018
43029
  }),
43019
- D(b(Ta), null, {
43030
+ P(b(Ta), null, {
43020
43031
  default: M(() => s[2] || (s[2] = [
43021
43032
  lt(" 글꼴 크기 크게 ")
43022
43033
  ])),
@@ -43028,18 +43039,18 @@ const Ow = (t) => t.command(({ tr: e }) => {
43028
43039
  ]),
43029
43040
  _: 1
43030
43041
  }),
43031
- D(u, null, {
43042
+ P(u, null, {
43032
43043
  default: M(() => [
43033
- D(l, { "delay-duration": 0 }, {
43044
+ P(l, { "delay-duration": 0 }, {
43034
43045
  default: M(() => [
43035
- D(a, null, {
43046
+ P(a, null, {
43036
43047
  default: M(() => [
43037
43048
  ne("button", {
43038
43049
  class: "btn",
43039
43050
  onClick: s[1] || (s[1] = (d) => o(!1)),
43040
43051
  disabled: b(n)
43041
43052
  }, [
43042
- D(b(hn), {
43053
+ P(b(hn), {
43043
43054
  name: "Minus",
43044
43055
  class: "w-6 h-6"
43045
43056
  })
@@ -43047,7 +43058,7 @@ const Ow = (t) => t.command(({ tr: e }) => {
43047
43058
  ]),
43048
43059
  _: 1
43049
43060
  }),
43050
- D(b(Ta), null, {
43061
+ P(b(Ta), null, {
43051
43062
  default: M(() => s[3] || (s[3] = [
43052
43063
  lt(" 글꼴 크기 작게 ")
43053
43064
  ])),
@@ -43313,8 +43324,8 @@ const Ow = (t) => t.command(({ tr: e }) => {
43313
43324
  h: 0,
43314
43325
  dir: ""
43315
43326
  }), a = Y(() => {
43316
- const { src: _, alt: k, width: T, height: A, flipX: P, flipY: I } = e.node.attrs, B = [];
43317
- P && B.push("rotateX(180deg)"), I && B.push("rotateY(180deg)");
43327
+ const { src: _, alt: k, width: T, height: A, flipX: D, flipY: I } = e.node.attrs, B = [];
43328
+ D && B.push("rotateX(180deg)"), I && B.push("rotateY(180deg)");
43318
43329
  const V = B.join(" ");
43319
43330
  return {
43320
43331
  src: _ || void 0,
@@ -43343,14 +43354,14 @@ const Ow = (t) => t.command(({ tr: e }) => {
43343
43354
  }, q8);
43344
43355
  function m(_, k) {
43345
43356
  _.preventDefault(), _.stopPropagation();
43346
- const { width: T, height: A } = b(o), P = T / A;
43347
- let I = Number(e.node.attrs.width) || T, B = Number(e.node.attrs.height) || Math.round(I / P);
43357
+ const { width: T, height: A } = b(o), D = T / A;
43358
+ let I = Number(e.node.attrs.width) || T, B = Number(e.node.attrs.height) || Math.round(I / D);
43348
43359
  const V = b(r).width;
43349
- I = Math.min(I > V ? V : I, V), B = Math.round(I / P), Object.assign(s.value, { x: _.clientX, y: _.clientY, w: I, h: B, dir: k }), i.value = !0, w();
43360
+ I = Math.min(I > V ? V : I, V), B = Math.round(I / D), Object.assign(s.value, { x: _.clientX, y: _.clientY, w: I, h: B, dir: k }), i.value = !0, w();
43350
43361
  }
43351
43362
  const g = Vt.throttle((_) => {
43352
43363
  if (!b(i)) return;
43353
- const { x: k, y: T, w: A, dir: P } = b(s), I = (_.clientX - k) * (/l/.test(P) ? -1 : 1), B = ZB(A + I, TG, b(r).width);
43364
+ const { x: k, y: T, w: A, dir: D } = b(s), I = (_.clientX - k) * (/l/.test(D) ? -1 : 1), B = ZB(A + I, TG, b(r).width);
43354
43365
  e.updateAttributes({ width: B });
43355
43366
  }, q8);
43356
43367
  function y(_) {
@@ -43851,14 +43862,14 @@ const vv = Qt.create({
43851
43862
  const y = n7, w = t7, x = e7, C = Zee, S = QS, _ = ZS, k = YS;
43852
43863
  return N(), $(k, { open: m.open }, {
43853
43864
  default: M(() => [
43854
- D(_, {
43865
+ P(_, {
43855
43866
  isOverlayTransparent: "",
43856
43867
  class: "p-2.5 gap-0 gap-y-2.5 border-none w-[calc(100%-40px)] !shadow-ed rounded-[5px]"
43857
43868
  }, {
43858
43869
  default: M(() => [
43859
- D(x, { class: "text-left flex-row justify-between" }, {
43870
+ P(x, { class: "text-left flex-row justify-between" }, {
43860
43871
  default: M(() => [
43861
- D(y, { class: "text-base font-normal" }, {
43872
+ P(y, { class: "text-base font-normal" }, {
43862
43873
  default: M(() => [
43863
43874
  lt(Fe(m.title ? m.title : b(o)("editor.superinput")), 1)
43864
43875
  ]),
@@ -43866,16 +43877,16 @@ const vv = Qt.create({
43866
43877
  }),
43867
43878
  ne("div", Qee, [
43868
43879
  Io(ne("button", { onClick: h }, [
43869
- D(b(b_), { icon: "lucide:edit-2" })
43880
+ P(b(b_), { icon: "lucide:edit-2" })
43870
43881
  ], 512), [
43871
43882
  [zi, a.value]
43872
43883
  ]),
43873
- D(w, {
43884
+ P(w, {
43874
43885
  class: "outline-none",
43875
43886
  onClick: d
43876
43887
  }, {
43877
43888
  default: M(() => [
43878
- D(b($g), { class: "w-5 h-5" }),
43889
+ P(b($g), { class: "w-5 h-5" }),
43879
43890
  ne("span", ete, Fe(b(o)("editor.close")), 1)
43880
43891
  ]),
43881
43892
  _: 1
@@ -43884,13 +43895,13 @@ const vv = Qt.create({
43884
43895
  ]),
43885
43896
  _: 1
43886
43897
  }),
43887
- D(C, { class: "hidden" }),
43888
- D(r7, {
43898
+ P(C, { class: "hidden" }),
43899
+ P(r7, {
43889
43900
  isReadOnly: a.value,
43890
43901
  modelValue: i.value,
43891
43902
  "onUpdate:modelValue": g[0] || (g[0] = (T) => i.value = T)
43892
43903
  }, null, 8, ["isReadOnly", "modelValue"]),
43893
- D(S, { class: "flex-row justify-between" }, {
43904
+ P(S, { class: "flex-row justify-between" }, {
43894
43905
  default: M(() => [
43895
43906
  Io(ne("button", {
43896
43907
  onClick: g[1] || (g[1] = (T) => n("delete"))
@@ -43970,7 +43981,7 @@ const vv = Qt.create({
43970
43981
  n.value = !0, s && (a.value = !0);
43971
43982
  }
43972
43983
  return (x, C) => {
43973
- const S = Dr, _ = s0, k = i0, T = o0, A = r0, P = sd;
43984
+ const S = Dr, _ = s0, k = i0, T = o0, A = r0, D = sd;
43974
43985
  return N(), $(b(Ha), {
43975
43986
  as: "span",
43976
43987
  class: ut(["w-fit text-inherit super-text align-middle", {
@@ -43981,14 +43992,14 @@ const vv = Qt.create({
43981
43992
  contenteditable: "false"
43982
43993
  }, {
43983
43994
  default: M(() => [
43984
- D(A, null, {
43995
+ P(A, null, {
43985
43996
  default: M(() => [
43986
- D(_, {
43997
+ P(_, {
43987
43998
  as: "template",
43988
43999
  class: "relative"
43989
44000
  }, {
43990
44001
  default: M(() => [
43991
- D(S, {
44002
+ P(S, {
43992
44003
  variant: "ghost",
43993
44004
  class: "!p-0 !m-0 !h-fit",
43994
44005
  onDblclick: w,
@@ -43996,7 +44007,7 @@ const vv = Qt.create({
43996
44007
  onMouseleave: g
43997
44008
  }, {
43998
44009
  default: M(() => [
43999
- D(b(hn), {
44010
+ P(b(hn), {
44000
44011
  name: "fileEdit",
44001
44012
  class: ut({
44002
44013
  "w-[13px] h-auto": b(s)
@@ -44018,9 +44029,9 @@ const vv = Qt.create({
44018
44029
  ]),
44019
44030
  _: 1
44020
44031
  }),
44021
- D(T, null, {
44032
+ P(T, null, {
44022
44033
  default: M(() => [
44023
- D(k, {
44034
+ P(k, {
44024
44035
  onSelect: C[0] || (C[0] = (I) => n.value = !0)
44025
44036
  }, {
44026
44037
  default: M(() => [
@@ -44028,7 +44039,7 @@ const vv = Qt.create({
44028
44039
  ]),
44029
44040
  _: 1
44030
44041
  }),
44031
- D(k, { onSelect: y }, {
44042
+ P(k, { onSelect: y }, {
44032
44043
  default: M(() => [
44033
44044
  lt(Fe(x.$t("editor.super.delete")), 1)
44034
44045
  ]),
@@ -44050,7 +44061,7 @@ const vv = Qt.create({
44050
44061
  onClose: C[2] || (C[2] = (I) => n.value = !1),
44051
44062
  onSave: h,
44052
44063
  onDelete: y
44053
- }, null, 8, ["open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(P, {
44064
+ }, null, 8, ["open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(D, {
44054
44065
  key: 0,
44055
44066
  open: n.value,
44056
44067
  editor: e.editor,
@@ -44235,7 +44246,7 @@ const vv = Qt.create({
44235
44246
  n.value = !0, s && (a.value = !0);
44236
44247
  }
44237
44248
  return (x, C) => {
44238
- const S = Dr, _ = s0, k = i0, T = o0, A = r0, P = sd;
44249
+ const S = Dr, _ = s0, k = i0, T = o0, A = r0, D = sd;
44239
44250
  return N(), $(b(Ha), {
44240
44251
  as: "span",
44241
44252
  class: ut(["w-fit text-inherit super-text align-middle", {
@@ -44246,14 +44257,14 @@ const vv = Qt.create({
44246
44257
  contenteditable: "false"
44247
44258
  }, {
44248
44259
  default: M(() => [
44249
- D(A, null, {
44260
+ P(A, null, {
44250
44261
  default: M(() => [
44251
- D(_, {
44262
+ P(_, {
44252
44263
  as: "template",
44253
44264
  class: "relative"
44254
44265
  }, {
44255
44266
  default: M(() => [
44256
- D(S, {
44267
+ P(S, {
44257
44268
  variant: "ghost",
44258
44269
  class: "!p-0 !m-0 !h-fit font-normal !text-ed-blue",
44259
44270
  onClick: w,
@@ -44261,7 +44272,7 @@ const vv = Qt.create({
44261
44272
  onMouseleave: g
44262
44273
  }, {
44263
44274
  default: M(() => [
44264
- D(b(hn), {
44275
+ P(b(hn), {
44265
44276
  name: "plan",
44266
44277
  class: ut({
44267
44278
  "w-[18px] h-auto pr-1": b(s)
@@ -44289,9 +44300,9 @@ const vv = Qt.create({
44289
44300
  ]),
44290
44301
  _: 1
44291
44302
  }),
44292
- D(T, null, {
44303
+ P(T, null, {
44293
44304
  default: M(() => [
44294
- D(k, {
44305
+ P(k, {
44295
44306
  onSelect: C[0] || (C[0] = (I) => n.value = !0)
44296
44307
  }, {
44297
44308
  default: M(() => [
@@ -44299,7 +44310,7 @@ const vv = Qt.create({
44299
44310
  ]),
44300
44311
  _: 1
44301
44312
  }),
44302
- D(k, { onSelect: y }, {
44313
+ P(k, { onSelect: y }, {
44303
44314
  default: M(() => [
44304
44315
  lt(Fe(x.$t("editor.configPlan.delete")), 1)
44305
44316
  ]),
@@ -44322,7 +44333,7 @@ const vv = Qt.create({
44322
44333
  onClose: C[2] || (C[2] = (I) => n.value = !1),
44323
44334
  onSave: h,
44324
44335
  onDelete: y
44325
- }, null, 8, ["title", "open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(P, {
44336
+ }, null, 8, ["title", "open", "is-view-mode", "editor", "super-text-init", "super-text-id"])) : (N(), $(D, {
44326
44337
  key: 0,
44327
44338
  open: n.value,
44328
44339
  editor: e.editor,
@@ -44548,8 +44559,8 @@ function lte(t) {
44548
44559
  });
44549
44560
  const T = C && C[k];
44550
44561
  if (T) {
44551
- const A = (_ + k) % e * 2, P = s[A];
44552
- P == null || P != T && s[A + 1] == 1 ? (s[A] = T, s[A + 1] = 1) : P == T && s[A + 1]++;
44562
+ const A = (_ + k) % e * 2, D = s[A];
44563
+ D == null || D != T && s[A + 1] == 1 ? (s[A] = T, s[A + 1] = 1) : D == T && s[A + 1]++;
44553
44564
  }
44554
44565
  }
44555
44566
  }
@@ -46481,7 +46492,7 @@ const Af = ({ editor: t }) => {
46481
46492
  }
46482
46493
  return (d, p) => (N(), $(b(eu), null, {
46483
46494
  default: M(() => [
46484
- D(b(nu), { "as-child": "" }, {
46495
+ P(b(nu), { "as-child": "" }, {
46485
46496
  default: M(() => [
46486
46497
  ne("button", {
46487
46498
  disabled: t.disabled,
@@ -46492,7 +46503,7 @@ const Af = ({ editor: t }) => {
46492
46503
  ]),
46493
46504
  _: 3
46494
46505
  }),
46495
- D(b(tu), {
46506
+ P(b(tu), {
46496
46507
  class: "w-full",
46497
46508
  align: "start",
46498
46509
  side: "bottom"
@@ -46548,7 +46559,7 @@ const Af = ({ editor: t }) => {
46548
46559
  }, {
46549
46560
  trigger: M(() => [
46550
46561
  ne("div", Ene, [
46551
- D(at, {
46562
+ P(at, {
46552
46563
  icon: r.icon,
46553
46564
  tooltip: r.tooltip,
46554
46565
  disabled: r.disabled,
@@ -46682,7 +46693,7 @@ const Af = ({ editor: t }) => {
46682
46693
  }, {
46683
46694
  default: M(() => [
46684
46695
  ne("div", Sne, [
46685
- D(b(hn), {
46696
+ P(b(hn), {
46686
46697
  name: l.iconName,
46687
46698
  class: "h3 w-3"
46688
46699
  }, null, 8, ["name"]),
@@ -47034,7 +47045,7 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
47034
47045
  view() {
47035
47046
  return {
47036
47047
  update: async (x, C) => {
47037
- var S, _, k, T, A, P, I;
47048
+ var S, _, k, T, A, D, I;
47038
47049
  const B = (S = this.key) === null || S === void 0 ? void 0 : S.getState(C), V = (_ = this.key) === null || _ === void 0 ? void 0 : _.getState(x.state), ee = B.active && V.active && B.range.from !== V.range.from, he = !B.active && V.active, Oe = B.active && !V.active, q = !he && !Oe && B.query !== V.query, G = he || ee && q, F = q || ee, Q = Oe || ee && q;
47039
47050
  if (!G && !F && !Q)
47040
47051
  return;
@@ -47061,7 +47072,7 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
47061
47072
  }, G && ((k = y == null ? void 0 : y.onBeforeStart) === null || k === void 0 || k.call(y, g)), F && ((T = y == null ? void 0 : y.onBeforeUpdate) === null || T === void 0 || T.call(y, g)), (F || G) && (g.items = await d({
47062
47073
  editor: e,
47063
47074
  query: ie.query
47064
- })), Q && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), F && ((P = y == null ? void 0 : y.onUpdate) === null || P === void 0 || P.call(y, g)), G && ((I = y == null ? void 0 : y.onStart) === null || I === void 0 || I.call(y, g));
47075
+ })), Q && ((A = y == null ? void 0 : y.onExit) === null || A === void 0 || A.call(y, g)), F && ((D = y == null ? void 0 : y.onUpdate) === null || D === void 0 || D.call(y, g)), G && ((I = y == null ? void 0 : y.onStart) === null || I === void 0 || I.call(y, g));
47065
47076
  },
47066
47077
  destroy: () => {
47067
47078
  var x;
@@ -47085,8 +47096,8 @@ function Ine({ pluginKey: t = Lne, editor: e, char: n = "@", allowSpaces: r = !1
47085
47096
  },
47086
47097
  // Apply changes to the plugin state from a view transaction.
47087
47098
  apply(x, C, S, _) {
47088
- const { isEditable: k } = e, { composing: T } = e.view, { selection: A } = x, { empty: P, from: I } = A, B = { ...C };
47089
- if (B.composing = T, k && (P || e.view.composing)) {
47099
+ const { isEditable: k } = e, { composing: T } = e.view, { selection: A } = x, { empty: D, from: I } = A, B = { ...C };
47100
+ if (B.composing = T, k && (D || e.view.composing)) {
47090
47101
  (I < C.range.from || I > C.range.to) && !T && !C.composing && (B.active = !1);
47091
47102
  const V = m({
47092
47103
  char: n,
@@ -48080,53 +48091,53 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48080
48091
  "data-drag-handle": ""
48081
48092
  }, {
48082
48093
  default: M(() => [
48083
- D(b(eu), {
48094
+ P(b(eu), {
48084
48095
  "default-open": "",
48085
48096
  modal: ""
48086
48097
  }, {
48087
48098
  default: M(() => [
48088
- D(b(nu), { "as-child": "" }, {
48099
+ P(b(nu), { "as-child": "" }, {
48089
48100
  default: M(() => [
48090
48101
  ne("div", pre, [
48091
48102
  ne("div", hre, [
48092
48103
  ne("div", mre, [
48093
- D(b(hn), {
48104
+ P(b(hn), {
48094
48105
  name: "ImageUp",
48095
48106
  class: "w-6 h-6"
48096
48107
  }),
48097
48108
  ne("span", gre, Fe(b(o)("editor.image.dialog.title")), 1)
48098
48109
  ]),
48099
- D(b(hn), {
48110
+ P(b(hn), {
48100
48111
  name: "Trash2",
48101
48112
  class: "hover:text-ed-foreground",
48102
- onClick: sr(a, ["stop"])
48113
+ onClick: Qn(a, ["stop"])
48103
48114
  })
48104
48115
  ])
48105
48116
  ])
48106
48117
  ]),
48107
48118
  _: 1
48108
48119
  }),
48109
- D(b(tu), {
48120
+ P(b(tu), {
48110
48121
  "trap-focus": "",
48111
48122
  class: "w-full",
48112
48123
  "on-open-auto-focus": (p) => p.preventDefault()
48113
48124
  }, {
48114
48125
  default: M(() => [
48115
- D(b(Jb), {
48126
+ P(b(Jb), {
48116
48127
  "default-value": "upload",
48117
48128
  class: "w-[300px] sm:w-[400px]",
48118
48129
  "activation-mode": "manual"
48119
48130
  }, {
48120
48131
  default: M(() => [
48121
- D(b(Xb), { class: "grid w-full grid-cols-2" }, {
48132
+ P(b(Xb), { class: "grid w-full grid-cols-2" }, {
48122
48133
  default: M(() => [
48123
- D(b(Ec), { value: "upload" }, {
48134
+ P(b(Ec), { value: "upload" }, {
48124
48135
  default: M(() => [
48125
48136
  lt(Fe(b(o)("editor.image.dialog.tab.upload")), 1)
48126
48137
  ]),
48127
48138
  _: 1
48128
48139
  }),
48129
- D(b(Ec), { value: "link" }, {
48140
+ P(b(Ec), { value: "link" }, {
48130
48141
  default: M(() => [
48131
48142
  lt(Fe(b(o)("editor.image.dialog.tab.url")), 1)
48132
48143
  ]),
@@ -48135,9 +48146,9 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48135
48146
  ]),
48136
48147
  _: 1
48137
48148
  }),
48138
- D(b(Jp), { value: "upload" }, {
48149
+ P(b(Jp), { value: "upload" }, {
48139
48150
  default: M(() => [
48140
- D(b(Dr), {
48151
+ P(b(Dr), {
48141
48152
  class: "w-full mt-1",
48142
48153
  size: "sm",
48143
48154
  onClick: l
@@ -48159,10 +48170,10 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48159
48170
  ]),
48160
48171
  _: 1
48161
48172
  }),
48162
- D(b(Jp), { value: "link" }, {
48173
+ P(b(Jp), { value: "link" }, {
48163
48174
  default: M(() => [
48164
48175
  ne("div", bre, [
48165
- D(b(Dl), {
48176
+ P(b(Dl), {
48166
48177
  modelValue: n.value,
48167
48178
  "onUpdate:modelValue": d[0] || (d[0] = (p) => n.value = p),
48168
48179
  type: "url",
@@ -48170,7 +48181,7 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48170
48181
  required: "",
48171
48182
  placeholder: b(o)("editor.image.dialog.placeholder")
48172
48183
  }, null, 8, ["modelValue", "placeholder"]),
48173
- D(b(Dr), { onClick: s }, {
48184
+ P(b(Dr), { onClick: s }, {
48174
48185
  default: M(() => [
48175
48186
  lt(Fe(b(o)("editor.image.dialog.button.apply")), 1)
48176
48187
  ]),
@@ -48314,59 +48325,59 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48314
48325
  "data-drag-handle": ""
48315
48326
  }, {
48316
48327
  default: M(() => [
48317
- D(b(eu), {
48328
+ P(b(eu), {
48318
48329
  "default-open": "",
48319
48330
  modal: ""
48320
48331
  }, {
48321
48332
  default: M(() => [
48322
- D(b(nu), { "as-child": "" }, {
48333
+ P(b(nu), { "as-child": "" }, {
48323
48334
  default: M(() => [
48324
48335
  ne("div", _re, [
48325
48336
  r.value ? (N(), xe("div", Ere, [
48326
- D(b(hn), {
48337
+ P(b(hn), {
48327
48338
  class: "animate-spin w-6 h-6",
48328
48339
  name: "LoaderCircle"
48329
48340
  }),
48330
48341
  ne("span", null, Fe(b(i)("editor.video.dialog.uploading")) + "...", 1)
48331
48342
  ])) : (N(), xe("div", Cre, [
48332
48343
  ne("div", Sre, [
48333
- D(b(hn), {
48344
+ P(b(hn), {
48334
48345
  name: "Video",
48335
48346
  class: "w-6 h-6"
48336
48347
  }),
48337
48348
  ne("span", Tre, Fe(b(i)("editor.video.dialog.title")), 1)
48338
48349
  ]),
48339
- D(b(hn), {
48350
+ P(b(hn), {
48340
48351
  name: "Trash2",
48341
48352
  class: "hover:text-ed-foreground",
48342
- onClick: sr(l, ["stop"])
48353
+ onClick: Qn(l, ["stop"])
48343
48354
  })
48344
48355
  ]))
48345
48356
  ])
48346
48357
  ]),
48347
48358
  _: 1
48348
48359
  }),
48349
- D(b(tu), {
48360
+ P(b(tu), {
48350
48361
  "trap-focus": "",
48351
48362
  class: "w-full",
48352
48363
  "on-open-auto-focus": (h) => h.preventDefault()
48353
48364
  }, {
48354
48365
  default: M(() => [
48355
- D(b(Jb), {
48366
+ P(b(Jb), {
48356
48367
  "default-value": "upload",
48357
48368
  class: "w-[400px]",
48358
48369
  "activation-mode": "manual"
48359
48370
  }, {
48360
48371
  default: M(() => [
48361
- D(b(Xb), { class: "grid w-full grid-cols-2" }, {
48372
+ P(b(Xb), { class: "grid w-full grid-cols-2" }, {
48362
48373
  default: M(() => [
48363
- D(b(Ec), { value: "upload" }, {
48374
+ P(b(Ec), { value: "upload" }, {
48364
48375
  default: M(() => [
48365
48376
  lt(Fe(b(i)("editor.video.dialog.tab.upload")), 1)
48366
48377
  ]),
48367
48378
  _: 1
48368
48379
  }),
48369
- D(b(Ec), { value: "link" }, {
48380
+ P(b(Ec), { value: "link" }, {
48370
48381
  default: M(() => [
48371
48382
  lt(Fe(b(i)("editor.video.dialog.link")), 1)
48372
48383
  ]),
@@ -48375,9 +48386,9 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48375
48386
  ]),
48376
48387
  _: 1
48377
48388
  }),
48378
- D(b(Jp), { value: "upload" }, {
48389
+ P(b(Jp), { value: "upload" }, {
48379
48390
  default: M(() => [
48380
- D(b(Dr), {
48391
+ P(b(Dr), {
48381
48392
  class: "w-full mt-1",
48382
48393
  size: "sm",
48383
48394
  onClick: u
@@ -48399,13 +48410,13 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48399
48410
  ]),
48400
48411
  _: 1
48401
48412
  }),
48402
- D(b(Jp), { value: "link" }, {
48413
+ P(b(Jp), { value: "link" }, {
48403
48414
  default: M(() => [
48404
48415
  ne("form", {
48405
- onSubmit: sr(a, ["prevent"])
48416
+ onSubmit: Qn(a, ["prevent"])
48406
48417
  }, [
48407
48418
  ne("div", kre, [
48408
- D(b(Dl), {
48419
+ P(b(Dl), {
48409
48420
  modelValue: n.value,
48410
48421
  "onUpdate:modelValue": p[0] || (p[0] = (h) => n.value = h),
48411
48422
  type: "url",
@@ -48413,7 +48424,7 @@ const w7 = ({ validateFn: t, onUpload: e }) => (n, r, o, i) => {
48413
48424
  required: "",
48414
48425
  placeholder: b(i)("editor.video.dialog.placeholder")
48415
48426
  }, null, 8, ["modelValue", "placeholder"]),
48416
- D(b(Dr), { type: "submit" }, {
48427
+ P(b(Dr), { type: "submit" }, {
48417
48428
  default: M(() => [
48418
48429
  lt(Fe(b(i)("editor.video.dialog.button.apply")), 1)
48419
48430
  ]),
@@ -49477,14 +49488,14 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Bo
49477
49488
  hasStandardBrowserWebWorkerEnv: Poe,
49478
49489
  navigator: lb,
49479
49490
  origin: Boe
49480
- }, Symbol.toStringTag, { value: "Module" })), or = {
49491
+ }, Symbol.toStringTag, { value: "Module" })), ir = {
49481
49492
  ...Foe,
49482
49493
  ...Ioe
49483
49494
  };
49484
49495
  function $oe(t, e) {
49485
- return d0(t, new or.classes.URLSearchParams(), Object.assign({
49496
+ return d0(t, new ir.classes.URLSearchParams(), Object.assign({
49486
49497
  visitor: function(n, r, o, i) {
49487
- return or.isNode && ae.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
49498
+ return ir.isNode && ae.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
49488
49499
  }
49489
49500
  }, e));
49490
49501
  }
@@ -49578,8 +49589,8 @@ const ld = {
49578
49589
  maxContentLength: -1,
49579
49590
  maxBodyLength: -1,
49580
49591
  env: {
49581
- FormData: or.classes.FormData,
49582
- Blob: or.classes.Blob
49592
+ FormData: ir.classes.FormData,
49593
+ Blob: ir.classes.Blob
49583
49594
  },
49584
49595
  validateStatus: function(e) {
49585
49596
  return e >= 200 && e < 300;
@@ -49871,10 +49882,10 @@ const Xp = (t, e, n = 3) => {
49871
49882
  total: t,
49872
49883
  loaded: r
49873
49884
  }), e[1]];
49874
- }, ix = (t) => (...e) => ae.asap(() => t(...e)), Zoe = or.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, or.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
49875
- new URL(or.origin),
49876
- or.navigator && /(msie|trident)/i.test(or.navigator.userAgent)
49877
- ) : () => !0, Qoe = or.hasStandardBrowserEnv ? (
49885
+ }, ix = (t) => (...e) => ae.asap(() => t(...e)), Zoe = ir.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (n) => (n = new URL(n, ir.origin), t.protocol === n.protocol && t.host === n.host && (e || t.port === n.port)))(
49886
+ new URL(ir.origin),
49887
+ ir.navigator && /(msie|trident)/i.test(ir.navigator.userAgent)
49888
+ ) : () => !0, Qoe = ir.hasStandardBrowserEnv ? (
49878
49889
  // Standard browser envs support document.cookie
49879
49890
  {
49880
49891
  write(t, e, n, r, o, i) {
@@ -49985,14 +49996,14 @@ const H7 = (t) => {
49985
49996
  );
49986
49997
  let l;
49987
49998
  if (ae.isFormData(n)) {
49988
- if (or.hasStandardBrowserEnv || or.hasStandardBrowserWebWorkerEnv)
49999
+ if (ir.hasStandardBrowserEnv || ir.hasStandardBrowserWebWorkerEnv)
49989
50000
  s.setContentType(void 0);
49990
50001
  else if ((l = s.getContentType()) !== !1) {
49991
50002
  const [u, ...d] = l ? l.split(";").map((p) => p.trim()).filter(Boolean) : [];
49992
50003
  s.setContentType([u || "multipart/form-data", ...d].join("; "));
49993
50004
  }
49994
50005
  }
49995
- if (or.hasStandardBrowserEnv && (r && ae.isFunction(r) && (r = r(e)), r || r !== !1 && Zoe(e.url))) {
50006
+ if (ir.hasStandardBrowserEnv && (r && ae.isFunction(r) && (r = r(e)), r || r !== !1 && Zoe(e.url))) {
49996
50007
  const u = o && i && Qoe.read(i);
49997
50008
  u && s.set(o, u);
49998
50009
  }
@@ -50048,7 +50059,7 @@ const H7 = (t) => {
50048
50059
  w && (r(!S || S.type ? new mu(null, t, w) : S), w.abort(), w = null);
50049
50060
  }, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
50050
50061
  const C = Joe(o.url);
50051
- if (C && or.protocols.indexOf(C) === -1) {
50062
+ if (C && ir.protocols.indexOf(C) === -1) {
50052
50063
  r(new vt("Unsupported protocol " + C + ":", vt.ERR_BAD_REQUEST, t));
50053
50064
  return;
50054
50065
  }
@@ -50142,7 +50153,7 @@ const H7 = (t) => {
50142
50153
  }
50143
50154
  }, uie = z7 && V7(() => {
50144
50155
  let t = !1;
50145
- const e = new Request(or.origin, {
50156
+ const e = new Request(ir.origin, {
50146
50157
  body: new ReadableStream(),
50147
50158
  method: "POST",
50148
50159
  get duplex() {
@@ -50166,7 +50177,7 @@ const cie = async (t) => {
50166
50177
  if (ae.isBlob(t))
50167
50178
  return t.size;
50168
50179
  if (ae.isSpecCompliantForm(t))
50169
- return (await new Request(or.origin, {
50180
+ return (await new Request(ir.origin, {
50170
50181
  method: "POST",
50171
50182
  body: t
50172
50183
  }).arrayBuffer()).byteLength;
@@ -50206,11 +50217,11 @@ const cie = async (t) => {
50206
50217
  duplex: "half"
50207
50218
  }), T;
50208
50219
  if (ae.isFormData(r) && (T = k.headers.get("content-type")) && d.setContentType(T), k.body) {
50209
- const [A, P] = ox(
50220
+ const [A, D] = ox(
50210
50221
  w,
50211
50222
  Xp(ix(l))
50212
50223
  );
50213
- r = ax(k.body, lx, A, P);
50224
+ r = ax(k.body, lx, A, D);
50214
50225
  }
50215
50226
  }
50216
50227
  ae.isString(p) || (p = p ? "include" : "omit");
@@ -50231,13 +50242,13 @@ const cie = async (t) => {
50231
50242
  ["status", "statusText", "headers"].forEach((I) => {
50232
50243
  k[I] = C[I];
50233
50244
  });
50234
- const T = ae.toFiniteNumber(C.headers.get("content-length")), [A, P] = a && ox(
50245
+ const T = ae.toFiniteNumber(C.headers.get("content-length")), [A, D] = a && ox(
50235
50246
  T,
50236
50247
  Xp(ix(a), !0)
50237
50248
  ) || [];
50238
50249
  C = new Response(
50239
50250
  ax(C.body, lx, A, () => {
50240
- P && P(), y && y();
50251
+ D && D(), y && y();
50241
50252
  }),
50242
50253
  k
50243
50254
  );
@@ -50921,7 +50932,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
50921
50932
  const { color: s } = e.editor.getAttributes("highlight");
50922
50933
  r.highlight = s;
50923
50934
  }), (s, a) => (N(), xe("div", wie, [
50924
- D(at, {
50935
+ P(at, {
50925
50936
  id: "highlight",
50926
50937
  tooltip: s.tooltip,
50927
50938
  disabled: s.disabled,
@@ -50967,7 +50978,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
50967
50978
  ]),
50968
50979
  _: 1
50969
50980
  }, 8, ["tooltip", "disabled", "tooltip-options"]),
50970
- D(IC, {
50981
+ P(IC, {
50971
50982
  modelValue: n.value,
50972
50983
  "onUpdate:modelValue": a[0] || (a[0] = (l) => n.value = l),
50973
50984
  highlight: "",
@@ -50975,14 +50986,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
50975
50986
  onChange: o
50976
50987
  }, {
50977
50988
  default: M(() => [
50978
- D(b(Dr), {
50989
+ P(b(Dr), {
50979
50990
  variant: "ghost",
50980
50991
  size: "icon",
50981
50992
  class: "w-3 h-[32px] rounded-l-none hover:bg-ed-muted-foreground/20",
50982
50993
  disabled: s.disabled
50983
50994
  }, {
50984
50995
  default: M(() => [
50985
- D(b(hn), {
50996
+ P(b(hn), {
50986
50997
  class: "w-3 h-3 text-zinc-500",
50987
50998
  name: "MenuDown"
50988
50999
  })
@@ -51061,10 +51072,10 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51061
51072
  }
51062
51073
  }, {
51063
51074
  default: M(() => {
51064
- var x, C, S, _, k, T, A, P, I;
51075
+ var x, C, S, _, k, T, A, D, I;
51065
51076
  return [
51066
51077
  ne("div", Tie, [
51067
- D(at, {
51078
+ P(at, {
51068
51079
  icon: "TablerColumnInsertLeft",
51069
51080
  iconClass: "w-5 h-5",
51070
51081
  tooltip: b(r)("editor.table.menu.insertColumnBefore"),
@@ -51074,7 +51085,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51074
51085
  },
51075
51086
  disabled: !((x = y.editor) != null && x.can().addColumnBefore())
51076
51087
  }, null, 8, ["tooltip", "disabled"]),
51077
- D(at, {
51088
+ P(at, {
51078
51089
  icon: "TablerColumnInsertRight",
51079
51090
  tooltip: b(r)("editor.table.menu.insertColumnAfter"),
51080
51091
  iconClass: "w-5 h-5",
@@ -51084,7 +51095,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51084
51095
  },
51085
51096
  disabled: !((C = y.editor) != null && C.can().addColumnAfter())
51086
51097
  }, null, 8, ["tooltip", "disabled"]),
51087
- D(at, {
51098
+ P(at, {
51088
51099
  icon: "TablerColumnRemove",
51089
51100
  action: s,
51090
51101
  iconClass: "w-5 h-5",
@@ -51094,11 +51105,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51094
51105
  },
51095
51106
  disabled: !((S = y.editor) != null && S.can().deleteColumn())
51096
51107
  }, null, 8, ["tooltip", "disabled"]),
51097
- D(b(Vi), {
51108
+ P(b(Vi), {
51098
51109
  orientation: "vertical",
51099
51110
  class: "mx-1 me-2 h-[16px]"
51100
51111
  }),
51101
- D(at, {
51112
+ P(at, {
51102
51113
  icon: "TablerRowInsertTop",
51103
51114
  action: a,
51104
51115
  iconClass: "w-5 h-5",
@@ -51108,7 +51119,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51108
51119
  },
51109
51120
  disabled: !((_ = y.editor) != null && _.can().addRowBefore())
51110
51121
  }, null, 8, ["tooltip", "disabled"]),
51111
- D(at, {
51122
+ P(at, {
51112
51123
  icon: "TablerRowInsertBottom",
51113
51124
  action: l,
51114
51125
  iconClass: "w-5 h-5",
@@ -51118,7 +51129,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51118
51129
  },
51119
51130
  disabled: !((k = y.editor) != null && k.can().addRowAfter())
51120
51131
  }, null, 8, ["tooltip", "disabled"]),
51121
- D(at, {
51132
+ P(at, {
51122
51133
  icon: "TablerRowRemove",
51123
51134
  action: u,
51124
51135
  iconClass: "w-5 h-5",
@@ -51128,11 +51139,11 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51128
51139
  },
51129
51140
  disabled: !((T = y.editor) != null && T.can().deleteRow())
51130
51141
  }, null, 8, ["tooltip", "disabled"]),
51131
- D(b(Vi), {
51142
+ P(b(Vi), {
51132
51143
  orientation: "vertical",
51133
51144
  class: "mx-1 me-2 h-[16px]"
51134
51145
  }),
51135
- D(at, {
51146
+ P(at, {
51136
51147
  icon: "TableCellsMerge",
51137
51148
  action: d,
51138
51149
  iconClass: "w-5 h-5",
@@ -51142,7 +51153,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51142
51153
  },
51143
51154
  disabled: !((A = y.editor) != null && A.can().mergeCells())
51144
51155
  }, null, 8, ["tooltip", "disabled"]),
51145
- D(at, {
51156
+ P(at, {
51146
51157
  icon: "TableCellsSplit",
51147
51158
  action: p,
51148
51159
  iconClass: "w-5 h-5",
@@ -51150,13 +51161,13 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51150
51161
  "tooltip-options": {
51151
51162
  sideOffset: 15
51152
51163
  },
51153
- disabled: !((P = y.editor) != null && P.can().splitCell())
51164
+ disabled: !((D = y.editor) != null && D.can().splitCell())
51154
51165
  }, null, 8, ["tooltip", "disabled"]),
51155
- D(b(Vi), {
51166
+ P(b(Vi), {
51156
51167
  orientation: "vertical",
51157
51168
  class: "mx-1 me-2 h-[16px]"
51158
51169
  }),
51159
- D(G7, {
51170
+ P(G7, {
51160
51171
  editor: y.editor,
51161
51172
  tooltip: b(r)("editor.table.menu.setCellsBgColor"),
51162
51173
  action: m,
@@ -51164,7 +51175,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51164
51175
  sideOffset: 15
51165
51176
  }
51166
51177
  }, null, 8, ["editor", "tooltip"]),
51167
- D(at, {
51178
+ P(at, {
51168
51179
  icon: "Trash2",
51169
51180
  tooltip: b(r)("editor.table.menu.deleteTable"),
51170
51181
  iconClass: "w-5 h-5",
@@ -51215,7 +51226,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51215
51226
  default: M(() => [
51216
51227
  ne("div", kie, [
51217
51228
  ne("div", Aie, [
51218
- D(at, {
51229
+ P(at, {
51219
51230
  id: "panel-left",
51220
51231
  title: "ok",
51221
51232
  icon: "PanelLeft",
@@ -51224,7 +51235,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51224
51235
  "is-active": () => a.editor.isActive("columns", { layout: b(sa).SidebarLeft }),
51225
51236
  "tooltip-options": { sideOffset: 15 }
51226
51237
  }, null, 8, ["is-active"]),
51227
- D(at, {
51238
+ P(at, {
51228
51239
  id: "columns",
51229
51240
  title: "ok",
51230
51241
  icon: "Columns",
@@ -51233,7 +51244,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51233
51244
  "is-active": () => a.editor.isActive("columns", { layout: b(sa).TwoColumn }),
51234
51245
  "tooltip-options": { sideOffset: 15 }
51235
51246
  }, null, 8, ["is-active"]),
51236
- D(at, {
51247
+ P(at, {
51237
51248
  id: "panel-right",
51238
51249
  title: "ok",
51239
51250
  icon: "PanelRight",
@@ -51279,13 +51290,13 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51279
51290
  class: "h-4"
51280
51291
  })) : $e("", !0),
51281
51292
  ne("div", Nie, [
51282
- D(at, {
51293
+ P(at, {
51283
51294
  icon: "Pencil",
51284
51295
  tooltip: b(n)("editor.link.edit.tooltip"),
51285
51296
  action: i,
51286
51297
  "tooltip-options": { sideOffset: 15 }
51287
51298
  }, null, 8, ["tooltip"]),
51288
- D(at, {
51299
+ P(at, {
51289
51300
  icon: "Unlink",
51290
51301
  tooltip: b(n)("editor.link.unlink.tooltip"),
51291
51302
  action: o,
@@ -51413,30 +51424,30 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51413
51424
  },
51414
51425
  setup(t) {
51415
51426
  const e = t, n = cr(_r.RENDER_SUPER_TEXT), r = U([]), o = U([]), i = U(!1), s = U(!1), a = Xn("isMobile", !1), l = U(null), u = (T, A) => {
51416
- const P = o.value.findIndex((I) => I.id === T);
51417
- P > -1 && (o.value[P].status = A);
51427
+ const D = o.value.findIndex((I) => I.id === T);
51428
+ D > -1 && (o.value[D].status = A);
51418
51429
  }, d = () => {
51419
51430
  const T = [];
51420
- return document.querySelectorAll("#editor-container #editor-panel p[id]").forEach((P) => {
51421
- const I = P.querySelectorAll("[node-id]");
51431
+ return document.querySelectorAll("#editor-container #editor-panel p[id]").forEach((D) => {
51432
+ const I = D.querySelectorAll("[node-id]");
51422
51433
  I.length > 0 && T.push(I[I.length - 1]);
51423
51434
  }), T;
51424
51435
  }, p = (T) => {
51425
51436
  const A = T.closest("#editor-container");
51426
51437
  if (!A) return;
51427
- const P = A.getBoundingClientRect().top, I = A == null ? void 0 : A.scrollTop;
51428
- return T.getBoundingClientRect().top - (P - I);
51438
+ const D = A.getBoundingClientRect().top, I = A == null ? void 0 : A.scrollTop;
51439
+ return T.getBoundingClientRect().top - (D - I);
51429
51440
  }, h = (T) => T.replace(/<p><\/p>/g, "<p>&nbsp;</p>"), m = async () => {
51430
51441
  await Dt();
51431
- const A = d().map((P) => {
51432
- const I = P.getAttribute("node-id"), B = P.getAttribute("book-mark-content"), V = P.getAttribute("page-id"), ee = P.getAttribute("page-number"), he = P.getBoundingClientRect(), Oe = P.getAttribute("line-id");
51442
+ const A = d().map((D) => {
51443
+ const I = D.getAttribute("node-id"), B = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
51433
51444
  return {
51434
51445
  position: he,
51435
51446
  text: h(B),
51436
51447
  id: I,
51437
51448
  pageId: V,
51438
51449
  pageNumber: ee,
51439
- visiblePosition: p(P),
51450
+ visiblePosition: p(D),
51440
51451
  status: 0,
51441
51452
  lineId: Oe,
51442
51453
  textOriginal: h(B)
@@ -51446,15 +51457,15 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51446
51457
  }, g = (T) => {
51447
51458
  const A = r.value.find((B) => B.getAttribute("line-id") === T.lineId);
51448
51459
  if (!A) return;
51449
- const P = Number(A.getAttribute("index"));
51460
+ const D = Number(A.getAttribute("index"));
51450
51461
  if (!T.text) {
51451
- A.querySelector(".super-text-lines").innerHTML = o.value[P].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
51462
+ A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
51452
51463
  return;
51453
51464
  }
51454
51465
  A.querySelector(".super-text-lines").innerHTML = h(T.text), A.classList.remove("super-text-truncate");
51455
51466
  const I = A.getBoundingClientRect();
51456
51467
  r.value.forEach((B, V) => {
51457
- if (V !== P) {
51468
+ if (V !== D) {
51458
51469
  const ee = B.getBoundingClientRect();
51459
51470
  w(I, ee) && B.classList.add("hidden");
51460
51471
  }
@@ -51480,17 +51491,17 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51480
51491
  n.off(y);
51481
51492
  });
51482
51493
  const w = (T, A) => {
51483
- const P = T.bottom <= A.top, I = T.top >= A.bottom;
51484
- return !(P || I);
51494
+ const D = T.bottom <= A.top, I = T.top >= A.bottom;
51495
+ return !(D || I);
51485
51496
  };
51486
51497
  async function x() {
51487
51498
  const T = r.value;
51488
- !T || T.length === 0 || (T.sort((A, P) => {
51489
- const I = Number(A.getAttribute("index")), B = Number(P.getAttribute("index"));
51499
+ !T || T.length === 0 || (T.sort((A, D) => {
51500
+ const I = Number(A.getAttribute("index")), B = Number(D.getAttribute("index"));
51490
51501
  return I - B;
51491
- }), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, P) => {
51502
+ }), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, D) => {
51492
51503
  const I = A.getBoundingClientRect();
51493
- T.slice(P + 1).forEach((B) => {
51504
+ T.slice(D + 1).forEach((B) => {
51494
51505
  const V = B.getBoundingClientRect();
51495
51506
  w(I, V) && A.classList.add("super-text-truncate");
51496
51507
  });
@@ -51506,9 +51517,9 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51506
51517
  }
51507
51518
  );
51508
51519
  const C = (T, A) => {
51509
- const P = T.currentTarget;
51510
- P.classList.remove("super-text-truncate");
51511
- const I = P.getBoundingClientRect();
51520
+ const D = T.currentTarget;
51521
+ D.classList.remove("super-text-truncate");
51522
+ const I = D.getBoundingClientRect();
51512
51523
  r.value.forEach((B, V) => {
51513
51524
  if (V !== A) {
51514
51525
  const ee = B.getBoundingClientRect();
@@ -51525,18 +51536,18 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51525
51536
  }, i.value = !0, a && (s.value = !0);
51526
51537
  }, k = (T) => {
51527
51538
  if (!l.value) return;
51528
- const A = l.value.index, P = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
51539
+ const A = l.value.index, D = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
51529
51540
  let ee = !1;
51530
51541
  I.doc.descendants((he, Oe) => {
51531
51542
  var q;
51532
- return ((q = he.attrs) == null ? void 0 : q["data-id"]) === P ? (V.setNodeMarkup(Oe, void 0, {
51543
+ return ((q = he.attrs) == null ? void 0 : q["data-id"]) === D ? (V.setNodeMarkup(Oe, void 0, {
51533
51544
  ...he.attrs,
51534
51545
  "data-text": T
51535
51546
  }), ee = !0, !1) : !0;
51536
51547
  }), ee && e.editor && e.editor.view.dispatch(V), A !== -1 && (o.value[A].text = T, o.value[A].textOriginal = T), i.value = !1;
51537
51548
  };
51538
51549
  return (T, A) => {
51539
- const P = hn;
51550
+ const D = hn;
51540
51551
  return N(), xe("div", Iie, [
51541
51552
  (N(!0), xe(et, null, $t(o.value, (I, B) => {
51542
51553
  var V;
@@ -51553,7 +51564,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51553
51564
  onMouseover: (ee) => C(ee, B),
51554
51565
  onMouseleave: S
51555
51566
  }, [
51556
- D(b(Z7), {
51567
+ P(b(Z7), {
51557
51568
  role: "text",
51558
51569
  variant: "outline",
51559
51570
  class: ut(
@@ -51569,7 +51580,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51569
51580
  innerHTML: I.text,
51570
51581
  class: "super-text-lines"
51571
51582
  }, null, 8, Pie),
51572
- D(P, {
51583
+ P(D, {
51573
51584
  name: "triangle",
51574
51585
  class: "absolute top-1.5 rotate-90 w-3 h-3 right-0 text-red-500"
51575
51586
  })
@@ -51600,30 +51611,30 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51600
51611
  },
51601
51612
  setup(t) {
51602
51613
  const e = t, n = cr(_r.RENDER_SUPER_TEXT), r = U([]), o = U([]), i = U(!1), s = U(!1), a = Xn("isMobile", !1), l = U(null), u = (T, A) => {
51603
- const P = o.value.findIndex((I) => I.id === T);
51604
- P > -1 && (o.value[P].status = A);
51614
+ const D = o.value.findIndex((I) => I.id === T);
51615
+ D > -1 && (o.value[D].status = A);
51605
51616
  }, d = () => {
51606
51617
  const T = [];
51607
- return document.querySelectorAll("#editor-container-comment #editor-panel p[id]").forEach((P) => {
51608
- const I = P.querySelectorAll("[node-id]");
51618
+ return document.querySelectorAll("#editor-container-comment #editor-panel p[id]").forEach((D) => {
51619
+ const I = D.querySelectorAll("[node-id]");
51609
51620
  I.length > 0 && T.push(I[I.length - 1]);
51610
51621
  }), T;
51611
51622
  }, p = (T) => {
51612
51623
  const A = T.closest("#editor-container-comment");
51613
51624
  if (!A) return;
51614
- const P = A.getBoundingClientRect().top, I = A == null ? void 0 : A.scrollTop;
51615
- return T.getBoundingClientRect().top - (P - I);
51625
+ const D = A.getBoundingClientRect().top, I = A == null ? void 0 : A.scrollTop;
51626
+ return T.getBoundingClientRect().top - (D - I);
51616
51627
  }, h = (T) => T.replace(/<p><\/p>/g, "<p>&nbsp;</p>"), m = async () => {
51617
51628
  await Dt();
51618
- const A = d().map((P) => {
51619
- const I = P.getAttribute("node-id"), B = P.getAttribute("book-mark-content"), V = P.getAttribute("page-id"), ee = P.getAttribute("page-number"), he = P.getBoundingClientRect(), Oe = P.getAttribute("line-id");
51629
+ const A = d().map((D) => {
51630
+ const I = D.getAttribute("node-id"), B = D.getAttribute("book-mark-content"), V = D.getAttribute("page-id"), ee = D.getAttribute("page-number"), he = D.getBoundingClientRect(), Oe = D.getAttribute("line-id");
51620
51631
  return {
51621
51632
  position: he,
51622
51633
  text: h(B),
51623
51634
  id: I,
51624
51635
  pageId: V,
51625
51636
  pageNumber: ee,
51626
- visiblePosition: p(P),
51637
+ visiblePosition: p(D),
51627
51638
  status: 0,
51628
51639
  lineId: Oe,
51629
51640
  textOriginal: h(B)
@@ -51633,15 +51644,15 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51633
51644
  }, g = (T) => {
51634
51645
  const A = r.value.find((B) => B.getAttribute("line-id") === T.lineId);
51635
51646
  if (!A) return;
51636
- const P = Number(A.getAttribute("index"));
51647
+ const D = Number(A.getAttribute("index"));
51637
51648
  if (!T.text) {
51638
- A.querySelector(".super-text-lines").innerHTML = o.value[P].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
51649
+ A.querySelector(".super-text-lines").innerHTML = o.value[D].textOriginal, r.value.forEach((B) => B.classList.remove("hidden")), x();
51639
51650
  return;
51640
51651
  }
51641
51652
  A.querySelector(".super-text-lines").innerHTML = h(T.text), A.classList.remove("super-text-truncate");
51642
51653
  const I = A.getBoundingClientRect();
51643
51654
  r.value.forEach((B, V) => {
51644
- if (V !== P) {
51655
+ if (V !== D) {
51645
51656
  const ee = B.getBoundingClientRect();
51646
51657
  w(I, ee) && B.classList.add("hidden");
51647
51658
  }
@@ -51667,17 +51678,17 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51667
51678
  n.off(y);
51668
51679
  });
51669
51680
  const w = (T, A) => {
51670
- const P = T.bottom <= A.top, I = T.top >= A.bottom;
51671
- return !(P || I);
51681
+ const D = T.bottom <= A.top, I = T.top >= A.bottom;
51682
+ return !(D || I);
51672
51683
  };
51673
51684
  async function x() {
51674
51685
  const T = r.value;
51675
- !T || T.length === 0 || (T.sort((A, P) => {
51676
- const I = Number(A.getAttribute("index")), B = Number(P.getAttribute("index"));
51686
+ !T || T.length === 0 || (T.sort((A, D) => {
51687
+ const I = Number(A.getAttribute("index")), B = Number(D.getAttribute("index"));
51677
51688
  return I - B;
51678
- }), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, P) => {
51689
+ }), T.forEach((A) => A.classList.remove("super-text-truncate")), T.forEach((A, D) => {
51679
51690
  const I = A.getBoundingClientRect();
51680
- T.slice(P + 1).forEach((B) => {
51691
+ T.slice(D + 1).forEach((B) => {
51681
51692
  const V = B.getBoundingClientRect();
51682
51693
  w(I, V) && A.classList.add("super-text-truncate");
51683
51694
  });
@@ -51693,9 +51704,9 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51693
51704
  }
51694
51705
  );
51695
51706
  const C = (T, A) => {
51696
- const P = T.currentTarget;
51697
- P.classList.remove("super-text-truncate");
51698
- const I = P.getBoundingClientRect();
51707
+ const D = T.currentTarget;
51708
+ D.classList.remove("super-text-truncate");
51709
+ const I = D.getBoundingClientRect();
51699
51710
  r.value.forEach((B, V) => {
51700
51711
  if (V !== A) {
51701
51712
  const ee = B.getBoundingClientRect();
@@ -51712,18 +51723,18 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51712
51723
  }, i.value = !0, a && (s.value = !0);
51713
51724
  }, k = (T) => {
51714
51725
  if (!l.value) return;
51715
- const A = l.value.index, P = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
51726
+ const A = l.value.index, D = l.value.id, { state: I, view: B } = e.editor, { tr: V } = I;
51716
51727
  let ee = !1;
51717
51728
  I.doc.descendants((he, Oe) => {
51718
51729
  var q;
51719
- return ((q = he.attrs) == null ? void 0 : q["data-id"]) === P ? (V.setNodeMarkup(Oe, void 0, {
51730
+ return ((q = he.attrs) == null ? void 0 : q["data-id"]) === D ? (V.setNodeMarkup(Oe, void 0, {
51720
51731
  ...he.attrs,
51721
51732
  "data-text": T
51722
51733
  }), ee = !0, !1) : !0;
51723
51734
  }), ee && e.editor && e.editor.view.dispatch(V), A !== -1 && (o.value[A].text = T, o.value[A].textOriginal = T), i.value = !1;
51724
51735
  };
51725
51736
  return (T, A) => {
51726
- const P = hn;
51737
+ const D = hn;
51727
51738
  return N(), xe("div", $ie, [
51728
51739
  (N(!0), xe(et, null, $t(o.value, (I, B) => {
51729
51740
  var V;
@@ -51740,7 +51751,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51740
51751
  onMouseover: (ee) => C(ee, B),
51741
51752
  onMouseleave: S
51742
51753
  }, [
51743
- D(b(Z7), {
51754
+ P(b(Z7), {
51744
51755
  role: "text",
51745
51756
  variant: "outline",
51746
51757
  class: ut(
@@ -51756,7 +51767,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51756
51767
  innerHTML: I.text,
51757
51768
  class: "super-text-lines"
51758
51769
  }, null, 8, zie),
51759
- D(P, {
51770
+ P(D, {
51760
51771
  name: "triangle",
51761
51772
  class: "absolute top-1.5 rotate-90 w-3 h-3 right-0 text-red-500"
51762
51773
  })
@@ -51857,14 +51868,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51857
51868
  handleKeyDown: Vt.throttle((k, T) => T.key === "Enter" && s.enter && !T.shiftKey ? (o("enter"), !0) : !1, Ps),
51858
51869
  transformPastedHTML: (k) => Q7(k),
51859
51870
  clipboardTextParser: (k, T) => {
51860
- const A = k.split(/(?:\r\n?|\n)/), P = [];
51871
+ const A = k.split(/(?:\r\n?|\n)/), D = [];
51861
51872
  A.forEach((B) => {
51862
51873
  let V = { type: "paragraph" };
51863
51874
  B.length > 0 && (V.content = [{ type: "text", text: B }]);
51864
51875
  let ee = Do.fromJSON(T.doc.type.schema, V);
51865
- P.push(ee);
51876
+ D.push(ee);
51866
51877
  });
51867
- const I = ye.fromArray(P);
51878
+ const I = ye.fromArray(D);
51868
51879
  return Ne.maxOpen(I);
51869
51880
  }
51870
51881
  },
@@ -51944,14 +51955,14 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51944
51955
  }
51945
51956
  ), e({ editor: w }), (k, T) => (N(), xe("div", Wie, [
51946
51957
  ne("div", jie, [
51947
- Io(D(Uie, {
51958
+ Io(P(Uie, {
51948
51959
  editor: b(w),
51949
51960
  class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7]"
51950
51961
  }, null, 8, ["editor"]), [
51951
51962
  [zi, k.isOpenSuperView]
51952
51963
  ]),
51953
51964
  ne("div", qie, [
51954
- D(mv, {
51965
+ P(mv, {
51955
51966
  ref_key: "selectContextMenuRef",
51956
51967
  ref: S,
51957
51968
  editor: b(w),
@@ -51959,7 +51970,7 @@ const wie = { class: "flex items-center h-[32px] hover:bg-ed-muted rounded-md" }
51959
51970
  "super-text-store": b(h)
51960
51971
  }, {
51961
51972
  default: M(() => [
51962
- D(b(rd), {
51973
+ P(b(rd), {
51963
51974
  editor: b(w),
51964
51975
  spellcheck: "true",
51965
51976
  class: "h-full break-all"
@@ -52045,8 +52056,8 @@ const Jie = { class: "flex flex-1" }, Xie = {
52045
52056
  () => [...u.extensions, ...Vt.differenceBy(r.extensions, u.extensions, "name")].map(
52046
52057
  (ke, X) => ke.configure({ sort: X })
52047
52058
  )
52048
- ), A = Y(() => r.mode === Ct.EDITOR), P = U(r.fontSizeDefault), I = U(r.fontFamilyDefault);
52049
- nr("fontSize", P), nr("fontFamily", I);
52059
+ ), A = Y(() => r.mode === Ct.EDITOR), D = U(r.fontSizeDefault), I = U(r.fontFamilyDefault);
52060
+ rr("fontSize", D), rr("fontFamily", I);
52050
52061
  const B = Y(() => r.autoHeight ? {
52051
52062
  height: "auto",
52052
52063
  minHeight: r.minHeight ? Gn(r.minHeight) : void 0,
@@ -52054,7 +52065,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52054
52065
  overflowY: "auto"
52055
52066
  } : A.value ? {} : {
52056
52067
  fontFamily: I.value,
52057
- fontSize: P.value
52068
+ fontSize: D.value
52058
52069
  });
52059
52070
  He(
52060
52071
  () => B.value,
@@ -52065,8 +52076,8 @@ const Jie = { class: "flex flex-1" }, Xie = {
52065
52076
  Oe();
52066
52077
  });
52067
52078
  const V = (ke) => {
52068
- const X = parseInt(P.value || "16px"), re = ke ? X + 2 : X - 2;
52069
- P.value = re + "px";
52079
+ const X = parseInt(D.value || "16px"), re = ke ? X + 2 : X - 2;
52080
+ D.value = re + "px";
52070
52081
  };
52071
52082
  jc(() => {
52072
52083
  r.disabled || s.on(V);
@@ -52249,7 +52260,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52249
52260
  "space-y-2 flex-1 flex flex-col break-keep",
52250
52261
  !A.value && "[&_*]:!font-inherit [&_*]:!text-font-size-inherit",
52251
52262
  I.value && !A.value && "[&_*]:!font-inherit",
52252
- P.value && !A.value && "[&_*]:!text-font-size-inherit"
52263
+ D.value && !A.value && "[&_*]:!text-font-size-inherit"
52253
52264
  )
52254
52265
  ),
52255
52266
  style: Jt(B.value)
@@ -52280,14 +52291,14 @@ const Jie = { class: "flex flex-1" }, Xie = {
52280
52291
  )
52281
52292
  }, [
52282
52293
  ne("div", Jie, [
52283
- Io(D(Fie, {
52294
+ Io(P(Fie, {
52284
52295
  editor: b(he),
52285
52296
  class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7]"
52286
52297
  }, null, 8, ["editor"]), [
52287
52298
  [zi, F.value]
52288
52299
  ]),
52289
52300
  ne("div", Xie, [
52290
- D(mv, {
52301
+ P(mv, {
52291
52302
  ref_key: "selectContextMenuRef",
52292
52303
  ref: ct,
52293
52304
  editor: b(he),
@@ -52295,7 +52306,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52295
52306
  "super-text-store": b(C)
52296
52307
  }, {
52297
52308
  default: M(() => [
52298
- D(b(rd), {
52309
+ P(b(rd), {
52299
52310
  editor: b(he),
52300
52311
  spellcheck: "true",
52301
52312
  class: "h-full break-all"
@@ -52507,12 +52518,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
52507
52518
  }
52508
52519
  }, h = Y(() => !1), m = Y(() => [...e.editor.extensionManager.extensions].find((x) => x.name === "configPlan")), g = Y(() => [...e.editor.extensionManager.extensions].find((x) => x.name === "superText"));
52509
52520
  return (w, x) => {
52510
- var T, A, P;
52521
+ var T, A, D;
52511
52522
  const C = s0, S = i0, _ = o0, k = r0;
52512
52523
  return N(), xe(et, null, [
52513
- D(k, { "onUpdate:open": p }, {
52524
+ P(k, { "onUpdate:open": p }, {
52514
52525
  default: M(() => [
52515
- D(C, {
52526
+ P(C, {
52516
52527
  as: "template",
52517
52528
  disabled: b(h)
52518
52529
  }, {
@@ -52521,7 +52532,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52521
52532
  ]),
52522
52533
  _: 3
52523
52534
  }, 8, ["disabled"]),
52524
- D(_, { class: "flex bg-[#616161] text-white max-w-[310px] overflow-x-auto whitespace-nowrap" }, {
52535
+ P(_, { class: "flex bg-[#616161] text-white max-w-[310px] overflow-x-auto whitespace-nowrap" }, {
52525
52536
  default: M(() => [
52526
52537
  b(g) ? (N(), $(S, {
52527
52538
  key: 0,
@@ -52541,7 +52552,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52541
52552
  ]),
52542
52553
  _: 1
52543
52554
  })) : $e("", !0),
52544
- D(S, {
52555
+ P(S, {
52545
52556
  onClick: x[2] || (x[2] = (I) => r.value = !0)
52546
52557
  }, {
52547
52558
  default: M(() => [
@@ -52558,19 +52569,19 @@ const Jie = { class: "flex flex-1" }, Xie = {
52558
52569
  ]),
52559
52570
  _: 1
52560
52571
  })) : $e("", !0),
52561
- D(S, { onClick: s }, {
52572
+ P(S, { onClick: s }, {
52562
52573
  default: M(() => [
52563
52574
  lt(Fe(b(n)("editor.cut")), 1)
52564
52575
  ]),
52565
52576
  _: 1
52566
52577
  }),
52567
- D(S, { onClick: a }, {
52578
+ P(S, { onClick: a }, {
52568
52579
  default: M(() => [
52569
52580
  lt(Fe(b(n)("editor.copy")), 1)
52570
52581
  ]),
52571
52582
  _: 1
52572
52583
  }),
52573
- D(S, { onClick: u }, {
52584
+ P(S, { onClick: u }, {
52574
52585
  default: M(() => [
52575
52586
  lt(Fe(b(n)("editor.selectAll")), 1)
52576
52587
  ]),
@@ -52586,7 +52597,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52586
52597
  (N(), $(Zr((T = b(o)) == null ? void 0 : T.component), {
52587
52598
  "is-open": b(r),
52588
52599
  open: b(r),
52589
- class: ut((P = (A = b(o)) == null ? void 0 : A.componentProps) == null ? void 0 : P.class),
52600
+ class: ut((D = (A = b(o)) == null ? void 0 : A.componentProps) == null ? void 0 : D.class),
52590
52601
  onSelectedChar: i,
52591
52602
  onClose: x[3] || (x[3] = (I) => r.value = !1)
52592
52603
  }, null, 40, ["is-open", "open", "class"]))
@@ -52748,10 +52759,10 @@ const Jie = { class: "flex flex-1" }, Xie = {
52748
52759
  S();
52749
52760
  }
52750
52761
  ), e({ editor: g, isFocused: y }), (_, k) => {
52751
- var P;
52762
+ var D;
52752
52763
  const T = nT, A = eT;
52753
52764
  return N(), xe(et, null, [
52754
- (P = _.fieldNameComment) != null && P.label ? (N(), $(T, {
52765
+ (D = _.fieldNameComment) != null && D.label ? (N(), $(T, {
52755
52766
  key: 0,
52756
52767
  "field-name": _.fieldNameComment,
52757
52768
  mode: _.mode,
@@ -52765,12 +52776,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
52765
52776
  disabled: _.disabled,
52766
52777
  class: "mb-[3px]"
52767
52778
  }, null, 8, ["editor", "mode", "disabled"])) : $e("", !0),
52768
- D(tT, {
52779
+ P(tT, {
52769
52780
  editor: b(g),
52770
52781
  mode: _.mode
52771
52782
  }, {
52772
52783
  default: M(() => [
52773
- D(b(rd), {
52784
+ P(b(rd), {
52774
52785
  editor: b(g),
52775
52786
  spellcheck: "true",
52776
52787
  class: "flex-1 flex-col"
@@ -52875,12 +52886,12 @@ const Jie = { class: "flex flex-1" }, Xie = {
52875
52886
  return;
52876
52887
  }
52877
52888
  if (r.pushOtherPanes) {
52878
- const W = P(pe, De);
52889
+ const W = D(pe, De);
52879
52890
  if (!W) return;
52880
52891
  ({ sums: pe, panesToResize: qe } = W), le = i.value[qe[0]] || null, Le = i.value[qe[1]] || null;
52881
52892
  }
52882
52893
  le !== null && (le.size = Math.min(Math.max(De - pe.prevPanesSize - pe.prevReachedMinPanes, le.min), le.max)), Le !== null && (Le.size = Math.min(Math.max(100 - De - pe.nextPanesSize - pe.nextReachedMinPanes, Le.min), Le.max));
52883
- }, P = (X, re) => {
52894
+ }, D = (X, re) => {
52884
52895
  const pe = d.value.activeSplitter, me = [pe, pe + 1];
52885
52896
  return re < X.prevPanesSize + i.value[me[0]].min && (me[0] = V(pe).index, X.prevReachedMinPanes = 0, me[0] < pe && i.value.forEach((_e, De) => {
52886
52897
  De > me[0] && De <= pe && (_e.size = _e.min, X.prevReachedMinPanes += _e.min);
@@ -52995,7 +53006,7 @@ const Jie = { class: "flex flex-1" }, Xie = {
52995
53006
  (X = o.default) == null ? void 0 : X.call(o)
52996
53007
  );
52997
53008
  };
52998
- return nr("panes", i), nr("indexedPanes", s), nr("horizontal", Y(() => r.horizontal)), nr("requestUpdate", F), nr("onPaneAdd", Q), nr("onPaneRemove", ie), nr("onPaneClick", _), (X, re) => (N(), $(Zr(ke)));
53009
+ return rr("panes", i), rr("indexedPanes", s), rr("horizontal", Y(() => r.horizontal)), rr("requestUpdate", F), rr("onPaneAdd", Q), rr("onPaneRemove", ie), rr("onPaneClick", _), (X, re) => (N(), $(Zr(ke)));
52999
53010
  }
53000
53011
  }, dc = {
53001
53012
  __name: "pane",
@@ -53204,7 +53215,7 @@ const fc = /* @__PURE__ */ j({
53204
53215
  emits: ["enter", "change", "update:modelValue", "update:comment", "onFocusEditor", "changed:selection", "setEditorSelected"],
53205
53216
  setup(t, { expose: e, emit: n }) {
53206
53217
  const r = t, o = n;
53207
- nr("isMobile", !0);
53218
+ rr("isMobile", !0);
53208
53219
  const { t: i } = jt(), s = cr(_r.RENDER_SUPER_TEXT), a = cr(_r.INCREASE_DECREASE_FONTSIZE), l = nh(), u = Vo(), {
53209
53220
  state: d,
53210
53221
  isFullscreen: p,
@@ -53219,11 +53230,11 @@ const fc = /* @__PURE__ */ j({
53219
53230
  (le, Le) => le.configure({ sort: Le })
53220
53231
  )
53221
53232
  ), _ = U(r.fontSizeDefault), k = U(r.fontFamilyDefault);
53222
- nr("fontSize", _), nr("fontFamily", k);
53233
+ rr("fontSize", _), rr("fontFamily", k);
53223
53234
  const T = Y(() => ({
53224
53235
  fontFamily: k.value,
53225
53236
  fontSize: _.value
53226
- })), A = U(), { wrapHeight: P } = ase(A, r.hideToolbar, r.height, r.autoResize);
53237
+ })), A = U(), { wrapHeight: D } = ase(A, r.hideToolbar, r.height, r.autoResize);
53227
53238
  He(
53228
53239
  () => T.value,
53229
53240
  () => {
@@ -53469,7 +53480,7 @@ const fc = /* @__PURE__ */ j({
53469
53480
  disabled: le.disabled,
53470
53481
  class: "mb-[3px]"
53471
53482
  }, null, 8, ["editor", "mode", "disabled"])),
53472
- D(b(rT), {
53483
+ P(b(rT), {
53473
53484
  class: ut(
53474
53485
  b(Qe)(
53475
53486
  "flex flex-col [&_*]:!font-inherit [&_*]:!text-font-size-inherit",
@@ -53477,7 +53488,7 @@ const fc = /* @__PURE__ */ j({
53477
53488
  _.value && "[&_*]:!text-font-size-inherit"
53478
53489
  )
53479
53490
  ),
53480
- style: Jt({ ...T.value, height: b(Gn)(b(P)) }),
53491
+ style: Jt({ ...T.value, height: b(Gn)(b(D)) }),
53481
53492
  horizontal: "",
53482
53493
  onReady: b(pe),
53483
53494
  onResized: b(pe)
@@ -53505,7 +53516,7 @@ const fc = /* @__PURE__ */ j({
53505
53516
  )
53506
53517
  )
53507
53518
  }, [
53508
- D(sse, {
53519
+ P(sse, {
53509
53520
  ref_key: "editorCommentRef",
53510
53521
  ref: he,
53511
53522
  mode: le.mode,
@@ -53523,7 +53534,7 @@ const fc = /* @__PURE__ */ j({
53523
53534
  }),
53524
53535
  _: 1
53525
53536
  }, 8, ["size"])) : $e("", !0),
53526
- D(b(dc), {
53537
+ P(b(dc), {
53527
53538
  size: b(re),
53528
53539
  class: "border-none p-0 flex flex-col"
53529
53540
  }, {
@@ -53558,12 +53569,12 @@ const fc = /* @__PURE__ */ j({
53558
53569
  disabled: le.disabled,
53559
53570
  class: "mb-[3px]"
53560
53571
  }, null, 8, ["editor", "mode", "disabled"])) : $e("", !0),
53561
- D(tT, {
53572
+ P(tT, {
53562
53573
  editor: b(V),
53563
53574
  mode: le.mode
53564
53575
  }, {
53565
53576
  default: M(() => [
53566
- D(b(rd), {
53577
+ P(b(rd), {
53567
53578
  editor: b(V),
53568
53579
  spellcheck: "true",
53569
53580
  class: "flex-1 flex-col"
@@ -53915,7 +53926,7 @@ var iT = { exports: {} };
53915
53926
  afterIndex: Q
53916
53927
  };
53917
53928
  }
53918
- function P(q) {
53929
+ function D(q) {
53919
53930
  for (var G = new _(), F, Q = [q]; Q.length; )
53920
53931
  if (q = Q.pop(), F = k(q), F && F.length) {
53921
53932
  if (F.segmentStartInBefore > 0 && F.segmentStartInAfter > 0) {
@@ -53943,7 +53954,7 @@ var iT = { exports: {} };
53943
53954
  function I(q, G) {
53944
53955
  if (!q) throw new Error("Missing beforeTokens");
53945
53956
  if (!G) throw new Error("Missing afterTokens");
53946
- var F = 0, Q = 0, ie = [], ce = A(q, G, 0, 0), fe = P(ce);
53957
+ var F = 0, Q = 0, ie = [], ce = A(q, G, 0, 0), fe = D(ce);
53947
53958
  fe.push(new y(q.length, G.length, 0, ce));
53948
53959
  for (var Re = 0; Re < fe.length; Re++) {
53949
53960
  var Ie = fe[Re], ct = "none";
@@ -54056,7 +54067,7 @@ var iT = { exports: {} };
54056
54067
  var ce = I(q, G);
54057
54068
  return he(q, G, ce, Q, F);
54058
54069
  }
54059
- Oe.htmlToTokens = w, Oe.findMatchingBlocks = P, P.findBestMatch = k, P.createMap = C, P.createToken = g, P.createSegment = A, P.getKeyForToken = x, Oe.calculateOperations = I, Oe.renderOperations = he, t !== null ? t.exports = Oe : this.htmldiff = Oe;
54070
+ Oe.htmlToTokens = w, Oe.findMatchingBlocks = D, D.findBestMatch = k, D.createMap = C, D.createToken = g, D.createSegment = A, D.getKeyForToken = x, Oe.calculateOperations = I, Oe.renderOperations = he, t !== null ? t.exports = Oe : this.htmldiff = Oe;
54060
54071
  }).call(gl);
54061
54072
  })(iT);
54062
54073
  var lse = iT.exports;
@@ -54107,13 +54118,13 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54107
54118
  ne("div", {
54108
54119
  class: ut(b(Qe)("h-[600px]", g.editorClass))
54109
54120
  }, [
54110
- D(b(rT), {
54121
+ P(b(rT), {
54111
54122
  horizontal: "",
54112
54123
  onReady: b(u),
54113
54124
  onResized: b(u)
54114
54125
  }, {
54115
54126
  default: M(() => [
54116
- D(b(dc), {
54127
+ P(b(dc), {
54117
54128
  size: b(a),
54118
54129
  class: "flex flex-col"
54119
54130
  }, {
@@ -54126,7 +54137,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54126
54137
  class: "text-[12px] mb-[3px]"
54127
54138
  }, null, 8, ["title-bar"])) : $e("", !0),
54128
54139
  ne("div", cse, [
54129
- D(fc, {
54140
+ P(fc, {
54130
54141
  "editor-class": "h-full",
54131
54142
  mode: b(Ct).REPORT,
54132
54143
  disabled: "",
@@ -54147,7 +54158,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54147
54158
  var x, C, S, _;
54148
54159
  return [
54149
54160
  ne("div", dse, [
54150
- D(fc, {
54161
+ P(fc, {
54151
54162
  "editor-class": "h-full",
54152
54163
  mode: b(Ct).REPORT,
54153
54164
  disabled: "",
@@ -54163,7 +54174,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54163
54174
  }),
54164
54175
  _: 1
54165
54176
  })) : $e("", !0),
54166
- D(b(dc), {
54177
+ P(b(dc), {
54167
54178
  size: b(l),
54168
54179
  class: "flex flex-col"
54169
54180
  }, {
@@ -54177,7 +54188,7 @@ const use = /* @__PURE__ */ YB(lse), fx = (t, e, n) => {
54177
54188
  "custom-class": "bg-[#34c759]"
54178
54189
  }, null, 8, ["title-bar"])) : $e("", !0),
54179
54190
  ne("div", fse, [
54180
- D(fc, {
54191
+ P(fc, {
54181
54192
  "editor-class": "h-full",
54182
54193
  mode: b(Ct).REPORT,
54183
54194
  disabled: "",