@iclips/ui 1.0.19 → 1.0.21

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.
package/dist/index.js CHANGED
@@ -3,8 +3,8 @@ import * as va from "@radix-ui/react-accordion";
3
3
  import { ChevronDownIcon as $s, Home as k4, Folder as S4, Users as T4, Calendar as oi, BarChart3 as I4, Settings as j4, Pin as D4, Plus as kr, LayoutGrid as E4, FileText as y1, Star as M1, MessageSquare as Rc, Download as Bc, Sparkles as A4, ChevronRight as Jn, Zap as z4, PanelLeftClose as C1, PanelLeft as O4, Bell as P4, MoreHorizontal as x1, ChevronLeft as Zs, Printer as R4, Eye as B4, ArrowRight as L1, ArrowLeft as H4, Check as N1, Smile as k1, Trash2 as S1, AlertCircle as dr, Paperclip as wa, X as ya, Type as U4, Send as F4, Bold as T1, Italic as I1, Underline as j1, List as D1, ListOrdered as E1, Link as A1, CheckIcon as qs, ChevronUpIcon as J4, Clock as ei, CalendarIcon as Wo, CircleIcon as Hc, ChevronRightIcon as Ks, MoreVertical as Y4, CheckSquare as Q4, Activity as V4, TrendingUp as G4, TrendingDown as _4, XIcon as z1, SearchIcon as W4, Undo as $4, Redo as Z4, Heading1 as q4, Heading2 as K4, Heading3 as X4, Strikethrough as ev, AlignLeft as tv, AlignCenter as nv, AlignRight as rv, Quote as iv, Image as av, ChevronDown as O1, PanelLeftOpen as ov, Youtube as sv, Twitter as fv, Facebook as lv, Linkedin as cv, Instagram as dv, GripVertical as uv, CheckCircle2 as hv, Circle as P1, Edit as Hl, User as Uc, MinusIcon as pv, MoreHorizontalIcon as mv, ChevronLeftIcon as gv, GripVerticalIcon as bv, PanelLeftIcon as vv, ChevronsLeft as wv, ChevronsRight as yv, Filter as R1, Search as Mv, ArrowUpDown as Cv, Link2 as xv, Pencil as Lv, RefreshCw as Nv, PlusCircle as kv } from "lucide-react";
4
4
  import { clsx as Sv } from "clsx";
5
5
  import { twMerge as Tv } from "tailwind-merge";
6
- import * as j from "react";
7
- import gt, { useState as ee, useRef as De, useDebugValue as B1, useEffect as pe, forwardRef as H1, useLayoutEffect as Fc, version as Cu, createContext as Li, useContext as qe, useImperativeHandle as Iv, createElement as O, memo as Jc, createRef as nn, Fragment as Yc, useCallback as Ue, useMemo as ge, Suspense as jv, Component as Dv, isValidElement as Ev, cloneElement as xu } from "react";
6
+ import * as D from "react";
7
+ import gt, { useState as ee, useRef as De, useDebugValue as B1, useEffect as de, forwardRef as H1, useLayoutEffect as Fc, version as Cu, createContext as Li, useContext as qe, useImperativeHandle as Iv, createElement as O, memo as Jc, createRef as nn, Fragment as Yc, useCallback as Ue, useMemo as ge, Suspense as jv, Component as Dv, isValidElement as Ev, cloneElement as xu } from "react";
8
8
  import * as Xt from "@radix-ui/react-alert-dialog";
9
9
  import { Slot as Cn } from "@radix-ui/react-slot";
10
10
  import { cva as Ni } from "class-variance-authority";
@@ -128,7 +128,7 @@ const ur = Ni(
128
128
  size: "default"
129
129
  }
130
130
  }
131
- ), B = j.forwardRef(({ className: t, variant: e, size: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ c(
131
+ ), B = D.forwardRef(({ className: t, variant: e, size: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ c(
132
132
  r ? Cn : "button",
133
133
  {
134
134
  "data-slot": "button",
@@ -153,7 +153,7 @@ function tw({
153
153
  }) {
154
154
  return /* @__PURE__ */ c(Xt.Portal, { "data-slot": "alert-dialog-portal", ...t });
155
155
  }
156
- const _1 = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
156
+ const _1 = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
157
157
  Xt.Overlay,
158
158
  {
159
159
  ref: n,
@@ -390,7 +390,7 @@ const iw = Ni(
390
390
  variant: "default"
391
391
  }
392
392
  }
393
- ), we = j.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ c(
393
+ ), we = D.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ c(
394
394
  n ? Cn : "span",
395
395
  {
396
396
  ref: i,
@@ -518,7 +518,7 @@ function gA({
518
518
  defaultSecondaryNavOpen: p = !0
519
519
  }) {
520
520
  var k;
521
- const [h, m] = j.useState(u), [g, b] = j.useState(!1), [w, C] = j.useState(p), [x, y] = j.useState(s || ((k = i[0]) == null ? void 0 : k.id)), N = h || g, L = (S) => {
521
+ const [h, m] = D.useState(u), [g, b] = D.useState(!1), [w, C] = D.useState(p), [L, y] = D.useState(s || ((k = i[0]) == null ? void 0 : k.id)), N = h || g, x = (S) => {
522
522
  y(S), f && f(S);
523
523
  };
524
524
  return /* @__PURE__ */ v("div", { className: "flex h-screen w-full bg-background", children: [
@@ -544,17 +544,17 @@ function gA({
544
544
  )
545
545
  ] }) : /* @__PURE__ */ c("div", { className: "flex w-full justify-center", children: l || /* @__PURE__ */ c(Eu, { variant: "symbol", className: "h-8 w-8" }) }) }),
546
546
  /* @__PURE__ */ c("nav", { className: "flex-1 space-y-1 p-2", children: i.map((S) => {
547
- const I = S.icon, D = x === S.id;
547
+ const T = S.icon, j = L === S.id;
548
548
  return /* @__PURE__ */ v(
549
549
  "button",
550
550
  {
551
- onClick: () => L(S.id),
551
+ onClick: () => x(S.id),
552
552
  className: M(
553
553
  "flex w-full items-center gap-3 rounded px-3 py-2 text-sm transition-colors",
554
- D ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
554
+ j ? "bg-accent text-accent-foreground" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
555
555
  ),
556
556
  children: [
557
- /* @__PURE__ */ c(I, { className: "h-4 w-4 shrink-0" }),
557
+ /* @__PURE__ */ c(T, { className: "h-4 w-4 shrink-0" }),
558
558
  /* @__PURE__ */ c(
559
559
  "span",
560
560
  {
@@ -578,8 +578,8 @@ function gA({
578
578
  /* @__PURE__ */ c("h2", { className: "text-sm font-semibold", children: o }),
579
579
  /* @__PURE__ */ c(B, { variant: "ghost", size: "icon", className: "h-6 w-6 p-0", children: /* @__PURE__ */ c(kr, { className: "h-4 w-4" }) })
580
580
  ] }),
581
- /* @__PURE__ */ c("nav", { className: "flex-1 space-y-0.5 p-2", children: a.map((S, I) => {
582
- const D = S.icon;
581
+ /* @__PURE__ */ c("nav", { className: "flex-1 space-y-0.5 p-2", children: a.map((S, T) => {
582
+ const j = S.icon;
583
583
  return /* @__PURE__ */ v(
584
584
  "button",
585
585
  {
@@ -588,7 +588,7 @@ function gA({
588
588
  S.highlighted ? "bg-primary/5 text-primary hover:bg-accent" : "text-muted-foreground hover:bg-accent hover:text-accent-foreground"
589
589
  ),
590
590
  children: [
591
- /* @__PURE__ */ c(D, { className: "h-4 w-4 shrink-0" }),
591
+ /* @__PURE__ */ c(j, { className: "h-4 w-4 shrink-0" }),
592
592
  /* @__PURE__ */ c("span", { className: M("flex-1 text-left", S.highlighted && "font-medium"), children: S.label }),
593
593
  S.badge && /* @__PURE__ */ c(
594
594
  we,
@@ -601,7 +601,7 @@ function gA({
601
601
  S.chevron && /* @__PURE__ */ c(Jn, { className: "h-3 w-3" })
602
602
  ]
603
603
  },
604
- I
604
+ T
605
605
  );
606
606
  }) }),
607
607
  /* @__PURE__ */ c("div", { className: "border-t p-4", children: /* @__PURE__ */ v("div", { className: "flex items-center gap-3", children: [
@@ -2004,7 +2004,7 @@ function SA({
2004
2004
  onDownloadSuccess: u,
2005
2005
  onDownloadError: p
2006
2006
  }) {
2007
- const h = j.useRef(null), { printContract: m, downloadPDF: g } = Yw(
2007
+ const h = D.useRef(null), { printContract: m, downloadPDF: g } = Yw(
2008
2008
  h,
2009
2009
  t.numeroContrato,
2010
2010
  {
@@ -2111,7 +2111,7 @@ function SA({
2111
2111
  ] })
2112
2112
  ] });
2113
2113
  }
2114
- const Qw = j.forwardRef(({ data: t, logo: e, showServices: n = !0, className: r }, i) => /* @__PURE__ */ c("div", { className: M("bg-white rounded-lg shadow-sm p-8", r), ref: i, children: /* @__PURE__ */ c(
2114
+ const Qw = D.forwardRef(({ data: t, logo: e, showServices: n = !0, className: r }, i) => /* @__PURE__ */ c("div", { className: M("bg-white rounded-lg shadow-sm p-8", r), ref: i, children: /* @__PURE__ */ c(
2115
2115
  K1,
2116
2116
  {
2117
2117
  data: t,
@@ -2121,9 +2121,9 @@ const Qw = j.forwardRef(({ data: t, logo: e, showServices: n = !0, className: r
2121
2121
  }
2122
2122
  ) }));
2123
2123
  Qw.displayName = "ContractPrintPreview";
2124
- const X1 = j.createContext(null);
2124
+ const X1 = D.createContext(null);
2125
2125
  function nf() {
2126
- const t = j.useContext(X1);
2126
+ const t = D.useContext(X1);
2127
2127
  if (!t)
2128
2128
  throw new Error("useCarousel must be used within a <Carousel />");
2129
2129
  return t;
@@ -2143,21 +2143,21 @@ function TA({
2143
2143
  axis: t === "horizontal" ? "x" : "y"
2144
2144
  },
2145
2145
  r
2146
- ), [l, d] = j.useState(!1), [u, p] = j.useState(!1), h = j.useCallback((w) => {
2146
+ ), [l, d] = D.useState(!1), [u, p] = D.useState(!1), h = D.useCallback((w) => {
2147
2147
  w && (d(w.canScrollPrev()), p(w.canScrollNext()));
2148
- }, []), m = j.useCallback(() => {
2148
+ }, []), m = D.useCallback(() => {
2149
2149
  f == null || f.scrollPrev();
2150
- }, [f]), g = j.useCallback(() => {
2150
+ }, [f]), g = D.useCallback(() => {
2151
2151
  f == null || f.scrollNext();
2152
- }, [f]), b = j.useCallback(
2152
+ }, [f]), b = D.useCallback(
2153
2153
  (w) => {
2154
2154
  w.key === "ArrowLeft" ? (w.preventDefault(), m()) : w.key === "ArrowRight" && (w.preventDefault(), g());
2155
2155
  },
2156
2156
  [m, g]
2157
2157
  );
2158
- return j.useEffect(() => {
2158
+ return D.useEffect(() => {
2159
2159
  !f || !n || n(f);
2160
- }, [f, n]), j.useEffect(() => {
2160
+ }, [f, n]), D.useEffect(() => {
2161
2161
  if (f)
2162
2162
  return h(f), f.on("reInit", h), f.on("select", h), () => {
2163
2163
  f == null || f.off("select", h);
@@ -2285,9 +2285,9 @@ function EA({
2285
2285
  }
2286
2286
  );
2287
2287
  }
2288
- const Vw = { light: "", dark: ".dark" }, ep = j.createContext(null);
2288
+ const Vw = { light: "", dark: ".dark" }, ep = D.createContext(null);
2289
2289
  function tp() {
2290
- const t = j.useContext(ep);
2290
+ const t = D.useContext(ep);
2291
2291
  if (!t)
2292
2292
  throw new Error("useChart must be used within a <ChartContainer />");
2293
2293
  return t;
@@ -2299,7 +2299,7 @@ function AA({
2299
2299
  config: r,
2300
2300
  ...i
2301
2301
  }) {
2302
- const a = j.useId(), o = `chart-${t || a.replace(/:/g, "")}`;
2302
+ const a = D.useId(), o = `chart-${t || a.replace(/:/g, "")}`;
2303
2303
  return /* @__PURE__ */ c(ep.Provider, { value: { config: r }, children: /* @__PURE__ */ v(
2304
2304
  "div",
2305
2305
  {
@@ -2357,12 +2357,12 @@ function OA({
2357
2357
  nameKey: u,
2358
2358
  labelKey: p
2359
2359
  }) {
2360
- const { config: h } = tp(), m = j.useMemo(() => {
2360
+ const { config: h } = tp(), m = D.useMemo(() => {
2361
2361
  var y;
2362
2362
  if (i || !(e != null && e.length))
2363
2363
  return null;
2364
- const [b] = e, w = `${p || (b == null ? void 0 : b.dataKey) || (b == null ? void 0 : b.name) || "value"}`, C = Fl(h, b, w), x = !p && typeof o == "string" ? ((y = h[o]) == null ? void 0 : y.label) || o : C == null ? void 0 : C.label;
2365
- return s ? /* @__PURE__ */ c("div", { className: M("font-medium", f), children: s(x, e) }) : x ? /* @__PURE__ */ c("div", { className: M("font-medium", f), children: x }) : null;
2364
+ const [b] = e, w = `${p || (b == null ? void 0 : b.dataKey) || (b == null ? void 0 : b.name) || "value"}`, C = Fl(h, b, w), L = !p && typeof o == "string" ? ((y = h[o]) == null ? void 0 : y.label) || o : C == null ? void 0 : C.label;
2365
+ return s ? /* @__PURE__ */ c("div", { className: M("font-medium", f), children: s(L, e) }) : L ? /* @__PURE__ */ c("div", { className: M("font-medium", f), children: L }) : null;
2366
2366
  }, [
2367
2367
  o,
2368
2368
  s,
@@ -2385,7 +2385,7 @@ function OA({
2385
2385
  children: [
2386
2386
  g ? null : m,
2387
2387
  /* @__PURE__ */ c("div", { className: "grid gap-1.5", children: e.map((b, w) => {
2388
- const C = `${u || b.name || b.dataKey || "value"}`, x = Fl(h, b, C), y = d || b.payload.fill || b.color;
2388
+ const C = `${u || b.name || b.dataKey || "value"}`, L = Fl(h, b, C), y = d || b.payload.fill || b.color;
2389
2389
  return /* @__PURE__ */ c(
2390
2390
  "div",
2391
2391
  {
@@ -2394,7 +2394,7 @@ function OA({
2394
2394
  r === "dot" && "items-center"
2395
2395
  ),
2396
2396
  children: l && (b == null ? void 0 : b.value) !== void 0 && b.name ? l(b.value, b.name, b, w, b.payload) : /* @__PURE__ */ v(lt, { children: [
2397
- x != null && x.icon ? /* @__PURE__ */ c(x.icon, {}) : !a && /* @__PURE__ */ c(
2397
+ L != null && L.icon ? /* @__PURE__ */ c(L.icon, {}) : !a && /* @__PURE__ */ c(
2398
2398
  "div",
2399
2399
  {
2400
2400
  className: M(
@@ -2422,7 +2422,7 @@ function OA({
2422
2422
  children: [
2423
2423
  /* @__PURE__ */ v("div", { className: "grid gap-1.5", children: [
2424
2424
  g ? m : null,
2425
- /* @__PURE__ */ c("span", { className: "text-muted-foreground", children: (x == null ? void 0 : x.label) || b.name })
2425
+ /* @__PURE__ */ c("span", { className: "text-muted-foreground", children: (L == null ? void 0 : L.label) || b.name })
2426
2426
  ] }),
2427
2427
  b.value && /* @__PURE__ */ c("span", { className: "text-foreground font-mono font-medium tabular-nums", children: b.value.toLocaleString() })
2428
2428
  ]
@@ -2517,9 +2517,9 @@ function ft({
2517
2517
  }) {
2518
2518
  return /* @__PURE__ */ c(Yn.Root, { "data-slot": "popover", ...t });
2519
2519
  }
2520
- const tt = j.forwardRef((t, e) => /* @__PURE__ */ c(Yn.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
2520
+ const tt = D.forwardRef((t, e) => /* @__PURE__ */ c(Yn.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
2521
2521
  tt.displayName = Yn.Trigger.displayName;
2522
- const nt = j.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ c(Yn.Portal, { children: /* @__PURE__ */ c(
2522
+ const nt = D.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ c(Yn.Portal, { children: /* @__PURE__ */ c(
2523
2523
  Yn.Content,
2524
2524
  {
2525
2525
  ref: i,
@@ -2534,7 +2534,7 @@ const nt = j.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4,
2534
2534
  }
2535
2535
  ) }));
2536
2536
  nt.displayName = Yn.Content.displayName;
2537
- const Ww = j.forwardRef((t, e) => /* @__PURE__ */ c(Yn.Anchor, { ref: e, "data-slot": "popover-anchor", ...t }));
2537
+ const Ww = D.forwardRef((t, e) => /* @__PURE__ */ c(Yn.Anchor, { ref: e, "data-slot": "popover-anchor", ...t }));
2538
2538
  Ww.displayName = Yn.Anchor.displayName;
2539
2539
  function li({ className: t, type: e, ...n }) {
2540
2540
  return /* @__PURE__ */ c(
@@ -2576,7 +2576,7 @@ function BA({
2576
2576
  disabled: i = !1
2577
2577
  }) {
2578
2578
  const [a, o] = ee(t), [s, f] = ee(!1);
2579
- j.useEffect(() => {
2579
+ D.useEffect(() => {
2580
2580
  o(t);
2581
2581
  }, [t]);
2582
2582
  const l = (u) => {
@@ -6748,8 +6748,8 @@ function Uy(t, e, n, r) {
6748
6748
  for (let g = 0; g < o.length; g++) {
6749
6749
  let b = o[(g + f) % o.length], w = !0;
6750
6750
  b < 0 && (w = !1, b = -b);
6751
- let C = i.node(b - 1), x = i.index(b - 1);
6752
- if (C.canReplaceWith(x, x, m.type, m.marks))
6751
+ let C = i.node(b - 1), L = i.index(b - 1);
6752
+ if (C.canReplaceWith(L, L, m.type, m.marks))
6753
6753
  return t.replace(i.before(b), w ? a.after(b) : n, new H(Ep(r.content, 0, r.openStart, h), h, r.openEnd));
6754
6754
  }
6755
6755
  }
@@ -8207,8 +8207,8 @@ function _p(t, e, n, r) {
8207
8207
  if (h.canReplace(h.childCount, h.childCount, g.content)) {
8208
8208
  if (n) {
8209
8209
  let w = E.empty;
8210
- for (let x = m.length - 1; x >= 0; x--)
8211
- w = E.from(m[x].copy(w));
8210
+ for (let L = m.length - 1; L >= 0; L--)
8211
+ w = E.from(m[L].copy(w));
8212
8212
  let C = t.tr.step(new ze(e.pos - m.length, e.pos + a.nodeSize, e.pos + b, e.pos + a.nodeSize - b, new H(w, m.length, 0), 0, !0));
8213
8213
  n(C.scrollIntoView());
8214
8214
  }
@@ -11221,8 +11221,8 @@ function jM(t, e, n, r, i, a, o) {
11221
11221
  let C = s[w + 1];
11222
11222
  if (C < 0 || p > C + d - u)
11223
11223
  continue;
11224
- let x = s[w] + d - u;
11225
- h >= x ? s[w + 1] = p <= x ? -2 : -1 : p >= d && b && (s[w] += b, s[w + 1] += b);
11224
+ let L = s[w] + d - u;
11225
+ h >= L ? s[w + 1] = p <= L ? -2 : -1 : p >= d && b && (s[w] += b, s[w + 1] += b);
11226
11226
  }
11227
11227
  u += b;
11228
11228
  }), d = n.maps[l].map(d, -1);
@@ -11596,10 +11596,10 @@ function JM(t, e, n, r, i) {
11596
11596
  if (t.input.compositionPendingChanges = 0, e < 0) {
11597
11597
  let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, S = od(t, k);
11598
11598
  if (S && !t.state.selection.eq(S)) {
11599
- if (Ae && gn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (D) => D(t, ir(13, "Enter"))))
11599
+ if (Ae && gn && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (j) => j(t, ir(13, "Enter"))))
11600
11600
  return;
11601
- let I = t.state.tr.setSelection(S);
11602
- k == "pointer" ? I.setMeta("pointer", !0) : k == "key" && I.scrollIntoView(), a && I.setMeta("composition", a), t.dispatch(I);
11601
+ let T = t.state.tr.setSelection(S);
11602
+ k == "pointer" ? T.setMeta("pointer", !0) : k == "key" && T.scrollIntoView(), a && T.setMeta("composition", a), t.dispatch(T);
11603
11603
  }
11604
11604
  return;
11605
11605
  }
@@ -11640,28 +11640,28 @@ function JM(t, e, n, r, i) {
11640
11640
  return k(t, ir(13, "Enter"));
11641
11641
  });
11642
11642
  }, 20));
11643
- let x = m.start, y = m.endA, N = (k) => {
11644
- let S = k || t.state.tr.replace(x, y, l.doc.slice(m.start - l.from, m.endB - l.from));
11643
+ let L = m.start, y = m.endA, N = (k) => {
11644
+ let S = k || t.state.tr.replace(L, y, l.doc.slice(m.start - l.from, m.endB - l.from));
11645
11645
  if (l.sel) {
11646
- let I = N0(t, S.doc, l.sel);
11647
- I && !(Ae && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == x || I.head == S.mapping.map(y) - 1) || ct && I.empty && I.head == x) && S.setSelection(I);
11646
+ let T = N0(t, S.doc, l.sel);
11647
+ T && !(Ae && t.composing && T.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (T.head == L || T.head == S.mapping.map(y) - 1) || ct && T.empty && T.head == L) && S.setSelection(T);
11648
11648
  }
11649
11649
  return a && S.setMeta("composition", a), S.scrollIntoView();
11650
- }, L;
11650
+ }, x;
11651
11651
  if (C)
11652
11652
  if (g.pos == b.pos) {
11653
11653
  ct && Hn <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => vn(t), 20));
11654
- let k = N(t.state.tr.delete(x, y)), S = d.resolve(m.start).marksAcross(d.resolve(m.endA));
11654
+ let k = N(t.state.tr.delete(L, y)), S = d.resolve(m.start).marksAcross(d.resolve(m.endA));
11655
11655
  S && k.ensureMarks(S), t.dispatch(k);
11656
11656
  } else if (
11657
11657
  // Adding or removing a mark
11658
- m.endA == m.endB && (L = YM(g.parent.content.cut(g.parentOffset, b.parentOffset), w.parent.content.cut(w.parentOffset, m.endA - w.start())))
11658
+ m.endA == m.endB && (x = YM(g.parent.content.cut(g.parentOffset, b.parentOffset), w.parent.content.cut(w.parentOffset, m.endA - w.start())))
11659
11659
  ) {
11660
11660
  let k = N(t.state.tr);
11661
- L.type == "add" ? k.addMark(x, y, L.mark) : k.removeMark(x, y, L.mark), t.dispatch(k);
11661
+ x.type == "add" ? k.addMark(L, y, x.mark) : k.removeMark(L, y, x.mark), t.dispatch(k);
11662
11662
  } else if (g.parent.child(g.index()).isText && g.index() == b.index() - (b.textOffset ? 0 : 1)) {
11663
- let k = g.parent.textBetween(g.parentOffset, b.parentOffset), S = () => N(t.state.tr.insertText(k, x, y));
11664
- t.someProp("handleTextInput", (I) => I(t, x, y, k, S)) || t.dispatch(S());
11663
+ let k = g.parent.textBetween(g.parentOffset, b.parentOffset), S = () => N(t.state.tr.insertText(k, L, y));
11664
+ t.someProp("handleTextInput", (T) => T(t, L, y, k, S)) || t.dispatch(S());
11665
11665
  } else
11666
11666
  t.dispatch(N());
11667
11667
  else
@@ -12724,8 +12724,8 @@ var CC = (t) => !("type" in t), xC = (t, e, n) => ({ tr: r, dispatch: i, editor:
12724
12724
  r.insertText(g, d, u);
12725
12725
  } else {
12726
12726
  g = s;
12727
- const b = r.doc.resolve(d), w = b.node(), C = b.parentOffset === 0, x = w.isText || w.isTextblock, y = w.content.size > 0;
12728
- C && x && y && (d = Math.max(0, d - 1)), r.replaceWith(d, u, g);
12727
+ const b = r.doc.resolve(d), w = b.node(), C = b.parentOffset === 0, L = w.isText || w.isTextblock, y = w.content.size > 0;
12728
+ C && L && y && (d = Math.max(0, d - 1)), r.replaceWith(d, u, g);
12729
12729
  }
12730
12730
  n.updateSelection && MC(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: g }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: g });
12731
12731
  }
@@ -13008,7 +13008,7 @@ function Um(t) {
13008
13008
  });
13009
13009
  }), e;
13010
13010
  }
13011
- function ue(...t) {
13011
+ function he(...t) {
13012
13012
  return t.filter((e) => !!e).reduce((e, n) => {
13013
13013
  const r = { ...e };
13014
13014
  return Object.entries(n).forEach(([i, a]) => {
@@ -13036,7 +13036,7 @@ function ue(...t) {
13036
13036
  function ds(t, e) {
13037
13037
  return e.filter((n) => n.type === t.type.name).filter((n) => n.attribute.rendered).map((n) => n.attribute.renderHTML ? n.attribute.renderHTML(t.attrs) || {} : {
13038
13038
  [n.name]: t.attrs[n.name]
13039
- }).reduce((n, r) => ue(n, r), {});
13039
+ }).reduce((n, r) => he(n, r), {});
13040
13040
  }
13041
13041
  function qC(t) {
13042
13042
  return typeof t != "string" ? t : t.match(/^[+-]?(?:\d*\.)?\d+$/) ? Number(t) : t === "true" ? !0 : t === "false" ? !1 : t;
@@ -13080,10 +13080,10 @@ function KC(t, e) {
13080
13080
  storage: l.storage,
13081
13081
  editor: e
13082
13082
  }, p = t.reduce((w, C) => {
13083
- const x = Q(C, "extendNodeSchema", u);
13083
+ const L = Q(C, "extendNodeSchema", u);
13084
13084
  return {
13085
13085
  ...w,
13086
- ...x ? x(l) : {}
13086
+ ...L ? L(l) : {}
13087
13087
  };
13088
13088
  }, {}), h = O0({
13089
13089
  ...p,
@@ -13318,8 +13318,8 @@ function ic(t, e, n = {}) {
13318
13318
  t.doc.nodesBetween(h, m, (g, b) => {
13319
13319
  if (!g.isText && !g.marks.length)
13320
13320
  return;
13321
- const w = Math.max(h, b), C = Math.min(m, b + g.nodeSize), x = C - w;
13322
- o += x, s.push(
13321
+ const w = Math.max(h, b), C = Math.min(m, b + g.nodeSize), L = C - w;
13322
+ o += L, s.push(
13323
13323
  ...g.marks.map((y) => ({
13324
13324
  mark: y,
13325
13325
  from: w,
@@ -13553,7 +13553,7 @@ var w6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
13553
13553
  const C = f.index(-1) ? 1 : f.index(-2) ? 2 : 3;
13554
13554
  for (let S = f.depth - C; S >= f.depth - 3; S -= 1)
13555
13555
  w = E.from(f.node(S).copy(w));
13556
- const x = (
13556
+ const L = (
13557
13557
  // eslint-disable-next-line no-nested-ternary
13558
13558
  f.indexAfter(-1) < f.node(-2).childCount ? 1 : f.indexAfter(-2) < f.node(-3).childCount ? 2 : 3
13559
13559
  ), y = {
@@ -13561,13 +13561,13 @@ var w6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
13561
13561
  ...e
13562
13562
  }, N = ((o = s.contentMatch.defaultType) == null ? void 0 : o.createAndFill(y)) || void 0;
13563
13563
  w = w.append(E.from(s.createAndFill(null, N) || void 0));
13564
- const L = f.before(f.depth - (C - 1));
13565
- n.replace(L, f.after(-x), new H(w, 4 - C, 0));
13564
+ const x = f.before(f.depth - (C - 1));
13565
+ n.replace(x, f.after(-L), new H(w, 4 - C, 0));
13566
13566
  let k = -1;
13567
- n.doc.nodesBetween(L, n.doc.content.size, (S, I) => {
13567
+ n.doc.nodesBetween(x, n.doc.content.size, (S, T) => {
13568
13568
  if (k > -1)
13569
13569
  return !1;
13570
- S.isTextblock && S.content.size === 0 && (k = I + 1);
13570
+ S.isTextblock && S.content.size === 0 && (k = T + 1);
13571
13571
  }), k > -1 && n.setSelection(W.near(n.doc.resolve(k))), n.scrollIntoView();
13572
13572
  }
13573
13573
  return !0;
@@ -13587,10 +13587,10 @@ var w6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
13587
13587
  if (!bn(n.doc, f.pos, 2))
13588
13588
  return !1;
13589
13589
  if (i) {
13590
- const { selection: w, storedMarks: C } = r, { splittableMarks: x } = a.extensionManager, y = C || w.$to.parentOffset && w.$from.marks();
13590
+ const { selection: w, storedMarks: C } = r, { splittableMarks: L } = a.extensionManager, y = C || w.$to.parentOffset && w.$from.marks();
13591
13591
  if (n.split(f.pos, 2, b).scrollIntoView(), !y || !i)
13592
13592
  return !0;
13593
- const N = y.filter((L) => x.includes(L.type.name));
13593
+ const N = y.filter((x) => L.includes(x.type.name));
13594
13594
  n.ensureMarks(N);
13595
13595
  }
13596
13596
  return !0;
@@ -13613,19 +13613,19 @@ var w6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
13613
13613
  const i = t.doc.nodeAt(r);
13614
13614
  return n.node.type === (i == null ? void 0 : i.type) && Wn(t.doc, r) && t.join(r), !0;
13615
13615
  }, M6 = (t, e, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: f, commands: l, can: d }) => {
13616
- const { extensions: u, splittableMarks: p } = i.extensionManager, h = Ie(t, o.schema), m = Ie(e, o.schema), { selection: g, storedMarks: b } = o, { $from: w, $to: C } = g, x = w.blockRange(C), y = b || g.$to.parentOffset && g.$from.marks();
13617
- if (!x)
13616
+ const { extensions: u, splittableMarks: p } = i.extensionManager, h = Ie(t, o.schema), m = Ie(e, o.schema), { selection: g, storedMarks: b } = o, { $from: w, $to: C } = g, L = w.blockRange(C), y = b || g.$to.parentOffset && g.$from.marks();
13617
+ if (!L)
13618
13618
  return !1;
13619
- const N = pf((L) => B0(L.type.name, u))(g);
13620
- if (x.depth >= 1 && N && x.depth - N.depth <= 1) {
13619
+ const N = pf((x) => B0(x.type.name, u))(g);
13620
+ if (L.depth >= 1 && N && L.depth - N.depth <= 1) {
13621
13621
  if (N.node.type === h)
13622
13622
  return l.liftListItem(m);
13623
13623
  if (B0(N.node.type.name, u) && h.validContent(N.node.content) && s)
13624
13624
  return f().command(() => (a.setNodeMarkup(N.pos, h), !0)).command(() => ul(a, h)).command(() => hl(a, h)).run();
13625
13625
  }
13626
13626
  return !n || !y || !s ? f().command(() => d().wrapInList(h, r) ? !0 : l.clearNodes()).wrapInList(h, r).command(() => ul(a, h)).command(() => hl(a, h)).run() : f().command(() => {
13627
- const L = d().wrapInList(h, r), k = y.filter((S) => p.includes(S.type.name));
13628
- return a.ensureMarks(k), L ? !0 : l.clearNodes();
13627
+ const x = d().wrapInList(h, r), k = y.filter((S) => p.includes(S.type.name));
13628
+ return a.ensureMarks(k), x ? !0 : l.clearNodes();
13629
13629
  }).wrapInList(h, r).command(() => ul(a, h)).command(() => hl(a, h)).run();
13630
13630
  }, C6 = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
13631
13631
  const { extendEmptyMarkRange: a = !1 } = n, o = xn(t, r.schema);
@@ -13706,9 +13706,9 @@ var w6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
13706
13706
  ...e
13707
13707
  })), o && b.marks.length && b.marks.forEach((C) => {
13708
13708
  if (o === C.type && (f = !0, i)) {
13709
- const x = Math.max(w, d), y = Math.min(w + b.nodeSize, u);
13709
+ const L = Math.max(w, d), y = Math.min(w + b.nodeSize, u);
13710
13710
  n.addMark(
13711
- x,
13711
+ L,
13712
13712
  y,
13713
13713
  o.create({
13714
13714
  ...C.attrs,
@@ -13800,7 +13800,7 @@ function Mo(t) {
13800
13800
  }), b = {
13801
13801
  from: r - (h[0].length - a.length),
13802
13802
  to: i
13803
- }, { commands: w, chain: C, can: x } = new uf({
13803
+ }, { commands: w, chain: C, can: L } = new uf({
13804
13804
  editor: n,
13805
13805
  state: g
13806
13806
  });
@@ -13810,7 +13810,7 @@ function Mo(t) {
13810
13810
  match: h,
13811
13811
  commands: w,
13812
13812
  chain: C,
13813
- can: x
13813
+ can: L
13814
13814
  }) === null || !m.steps.length || (p.undoable && m.setMeta(s, {
13815
13815
  transform: m,
13816
13816
  from: r,
@@ -13995,23 +13995,23 @@ function H6(t) {
13995
13995
  state: n
13996
13996
  }), u = [];
13997
13997
  return n.doc.nodesBetween(r, i, (h, m) => {
13998
- var g, b, w, C, x;
13998
+ var g, b, w, C, L;
13999
13999
  if ((b = (g = h.type) == null ? void 0 : g.spec) != null && b.code || !(h.isText || h.isTextblock || h.isInline))
14000
14000
  return;
14001
- const y = (x = (C = (w = h.content) == null ? void 0 : w.size) != null ? C : h.nodeSize) != null ? x : 0, N = Math.max(r, m), L = Math.min(i, m + y);
14002
- if (N >= L)
14001
+ const y = (L = (C = (w = h.content) == null ? void 0 : w.size) != null ? C : h.nodeSize) != null ? L : 0, N = Math.max(r, m), x = Math.min(i, m + y);
14002
+ if (N >= x)
14003
14003
  return;
14004
- const k = h.isText ? h.text || "" : h.textBetween(N - m, L - m, void 0, "");
14005
- B6(k, a.find, o).forEach((I) => {
14006
- if (I.index === void 0)
14004
+ const k = h.isText ? h.text || "" : h.textBetween(N - m, x - m, void 0, "");
14005
+ B6(k, a.find, o).forEach((T) => {
14006
+ if (T.index === void 0)
14007
14007
  return;
14008
- const D = N + I.index + 1, U = D + I[0].length, Y = {
14009
- from: n.tr.mapping.map(D),
14008
+ const j = N + T.index + 1, U = j + T[0].length, Y = {
14009
+ from: n.tr.mapping.map(j),
14010
14010
  to: n.tr.mapping.map(U)
14011
14011
  }, P = a.handler({
14012
14012
  state: n,
14013
14013
  range: Y,
14014
- match: I,
14014
+ match: T,
14015
14015
  commands: f,
14016
14016
  chain: l,
14017
14017
  can: d,
@@ -14106,21 +14106,21 @@ function F6(t) {
14106
14106
  if (C) {
14107
14107
  let { text: N } = w;
14108
14108
  typeof N == "string" ? N = N : N = wd(E.from(N), h.schema);
14109
- const { from: L } = w, k = L + N.length, S = U6(N);
14109
+ const { from: x } = w, k = x + N.length, S = U6(N);
14110
14110
  return f({
14111
14111
  rule: d,
14112
14112
  state: h,
14113
- from: L,
14113
+ from: x,
14114
14114
  to: { b: k },
14115
14115
  pasteEvt: S
14116
14116
  });
14117
14117
  }
14118
- const x = p.doc.content.findDiffStart(h.doc.content), y = p.doc.content.findDiffEnd(h.doc.content);
14119
- if (!(!P6(x) || !y || x === y.b))
14118
+ const L = p.doc.content.findDiffStart(h.doc.content), y = p.doc.content.findDiffEnd(h.doc.content);
14119
+ if (!(!P6(L) || !y || L === y.b))
14120
14120
  return f({
14121
14121
  rule: d,
14122
14122
  state: h,
14123
- from: x,
14123
+ from: L,
14124
14124
  to: y,
14125
14125
  pasteEvt: o
14126
14126
  });
@@ -14412,21 +14412,21 @@ var xe = class qm extends Cd {
14412
14412
  d.steps.forEach((h, m) => {
14413
14413
  var g, b;
14414
14414
  if (h instanceof Yt) {
14415
- const w = p.slice(m).map(h.from, -1), C = p.slice(m).map(h.to), x = p.invert().map(w, -1), y = p.invert().map(C), N = (g = d.doc.nodeAt(w - 1)) == null ? void 0 : g.marks.some((k) => k.eq(h.mark)), L = (b = d.doc.nodeAt(C)) == null ? void 0 : b.marks.some((k) => k.eq(h.mark));
14415
+ const w = p.slice(m).map(h.from, -1), C = p.slice(m).map(h.to), L = p.invert().map(w, -1), y = p.invert().map(C), N = (g = d.doc.nodeAt(w - 1)) == null ? void 0 : g.marks.some((k) => k.eq(h.mark)), x = (b = d.doc.nodeAt(C)) == null ? void 0 : b.marks.some((k) => k.eq(h.mark));
14416
14416
  this.editor.emit("delete", {
14417
14417
  type: "mark",
14418
14418
  mark: h.mark,
14419
14419
  from: h.from,
14420
14420
  to: h.to,
14421
14421
  deletedRange: {
14422
- from: x,
14422
+ from: L,
14423
14423
  to: y
14424
14424
  },
14425
14425
  newRange: {
14426
14426
  from: w,
14427
14427
  to: C
14428
14428
  },
14429
- partial: !!(L || N),
14429
+ partial: !!(x || N),
14430
14430
  editor: this.editor,
14431
14431
  transaction: t,
14432
14432
  combinedTransform: d
@@ -15765,25 +15765,25 @@ function X6(t) {
15765
15765
  const g = new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*\\n`), b = u.match(g);
15766
15766
  if (!b)
15767
15767
  return;
15768
- const [w, C = ""] = b, x = i(C);
15768
+ const [w, C = ""] = b, L = i(C);
15769
15769
  let y = 1;
15770
15770
  const N = w.length;
15771
- let L = "";
15771
+ let x = "";
15772
15772
  const k = /^:::([\w-]*)(\s.*)?/gm, S = u.slice(N);
15773
15773
  for (k.lastIndex = 0; ; ) {
15774
- const I = k.exec(S);
15775
- if (I === null)
15774
+ const T = k.exec(S);
15775
+ if (T === null)
15776
15776
  break;
15777
- const D = I.index, U = I[1];
15778
- if (!((m = I[2]) != null && m.endsWith(":::"))) {
15777
+ const j = T.index, U = T[1];
15778
+ if (!((m = T[2]) != null && m.endsWith(":::"))) {
15779
15779
  if (U)
15780
15780
  y += 1;
15781
15781
  else if (y -= 1, y === 0) {
15782
- const Y = S.slice(0, D);
15783
- L = Y.trim();
15784
- const P = u.slice(0, N + D + I[0].length);
15782
+ const Y = S.slice(0, j);
15783
+ x = Y.trim();
15784
+ const P = u.slice(0, N + j + T[0].length);
15785
15785
  let F = [];
15786
- if (L)
15786
+ if (x)
15787
15787
  if (s === "block")
15788
15788
  for (F = h.blockTokens(Y), F.forEach((A) => {
15789
15789
  A.text && (!A.tokens || A.tokens.length === 0) && (A.tokens = h.inlineTokens(A.text));
@@ -15795,12 +15795,12 @@ function X6(t) {
15795
15795
  break;
15796
15796
  }
15797
15797
  else
15798
- F = h.inlineTokens(L);
15798
+ F = h.inlineTokens(x);
15799
15799
  return {
15800
15800
  type: e,
15801
15801
  raw: P,
15802
- attributes: x,
15803
- content: L,
15802
+ attributes: L,
15803
+ content: x,
15804
15804
  tokens: F
15805
15805
  };
15806
15806
  }
@@ -15885,12 +15885,12 @@ function cg(t) {
15885
15885
  const [, y, N] = b;
15886
15886
  C = y, w = N || "";
15887
15887
  }
15888
- const x = i(C.trim());
15888
+ const L = i(C.trim());
15889
15889
  return {
15890
15890
  type: e,
15891
15891
  raw: b[0],
15892
15892
  content: w.trim(),
15893
- attributes: x
15893
+ attributes: L
15894
15894
  };
15895
15895
  }
15896
15896
  },
@@ -15927,7 +15927,7 @@ function oc(t, e, n) {
15927
15927
  for (d += 1; d < s.length; ) {
15928
15928
  const N = s[d];
15929
15929
  if (N.trim() === "") {
15930
- const k = s.slice(d + 1).findIndex((D) => D.trim() !== "");
15930
+ const k = s.slice(d + 1).findIndex((j) => j.trim() !== "");
15931
15931
  if (k === -1)
15932
15932
  break;
15933
15933
  if ((((i = (r = s[d + 1 + k].match(/^(\s*)/)) == null ? void 0 : r[1]) == null ? void 0 : i.length) || 0) > g) {
@@ -15944,9 +15944,9 @@ function oc(t, e, n) {
15944
15944
  break;
15945
15945
  }
15946
15946
  let C;
15947
- const x = w.slice(1);
15948
- if (x.length > 0) {
15949
- const N = x.map((L) => L.slice(g + u)).join(`
15947
+ const L = w.slice(1);
15948
+ if (L.length > 0) {
15949
+ const N = L.map((x) => x.slice(g + u)).join(`
15950
15950
  `);
15951
15951
  N.trim() && (e.customNestedParser ? C = e.customNestedParser(N) : C = n.blockTokens(N));
15952
15952
  }
@@ -16184,22 +16184,22 @@ function zx(t) {
16184
16184
  return !1;
16185
16185
  if (C !== "object")
16186
16186
  return C === "number" ? o(g, b, w) : C === "function" ? i(g, b, w) : !1;
16187
- var x = g.constructor;
16188
- if (x !== b.constructor)
16187
+ var L = g.constructor;
16188
+ if (L !== b.constructor)
16189
16189
  return !1;
16190
- if (x === Object)
16190
+ if (L === Object)
16191
16191
  return s(g, b, w);
16192
16192
  if (Ex(g))
16193
16193
  return e(g, b, w);
16194
16194
  if (G0 != null && G0(g))
16195
16195
  return u(g, b, w);
16196
- if (x === Date)
16196
+ if (L === Date)
16197
16197
  return n(g, b, w);
16198
- if (x === RegExp)
16198
+ if (L === RegExp)
16199
16199
  return l(g, b, w);
16200
- if (x === Map)
16200
+ if (L === Map)
16201
16201
  return a(g, b, w);
16202
- if (x === Set)
16202
+ if (L === Set)
16203
16203
  return d(g, b, w);
16204
16204
  var y = Ax(g);
16205
16205
  if (y === xx)
@@ -16223,8 +16223,8 @@ function zx(t) {
16223
16223
  if (h) {
16224
16224
  var N = h[y];
16225
16225
  if (!N) {
16226
- var L = ox(g);
16227
- L && (N = h[L]);
16226
+ var x = ox(g);
16227
+ x && (N = h[x]);
16228
16228
  }
16229
16229
  if (N)
16230
16230
  return N(g, b, w);
@@ -16441,7 +16441,7 @@ var Jx = class extends gt.Component {
16441
16441
  ...t
16442
16442
  });
16443
16443
  }
16444
- ), hg = gt.memo(Yx), Qx = typeof window < "u" ? Fc : pe, Vx = class {
16444
+ ), hg = gt.memo(Yx), Qx = typeof window < "u" ? Fc : de, Vx = class {
16445
16445
  constructor(t) {
16446
16446
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
16447
16447
  }
@@ -16661,7 +16661,7 @@ function mg(t = {}, e = []) {
16661
16661
  r.getEditor,
16662
16662
  r.getServerSnapshot
16663
16663
  );
16664
- return B1(i), pe(r.onRender(e)), Gx({
16664
+ return B1(i), de(r.onRender(e)), Gx({
16665
16665
  editor: i,
16666
16666
  selector: ({ transactionNumber: a }) => t.shouldRerenderOnTransaction === !1 || t.shouldRerenderOnTransaction === void 0 ? null : t.immediatelyRender && a === 0 ? 0 : a + 1
16667
16667
  }), i;
@@ -16801,7 +16801,7 @@ var us = (t, e) => {
16801
16801
  return [{ tag: "blockquote" }];
16802
16802
  },
16803
16803
  renderHTML({ HTMLAttributes: t }) {
16804
- return /* @__PURE__ */ us("blockquote", { ...ue(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16804
+ return /* @__PURE__ */ us("blockquote", { ...he(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16805
16805
  },
16806
16806
  parseMarkdown: (t, e) => e.createNode("blockquote", void 0, e.parseChildren(t.tokens || [])),
16807
16807
  renderMarkdown: (t, e) => {
@@ -16864,7 +16864,7 @@ ${n}
16864
16864
  ];
16865
16865
  },
16866
16866
  renderHTML({ HTMLAttributes: t }) {
16867
- return /* @__PURE__ */ us("strong", { ...ue(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16867
+ return /* @__PURE__ */ us("strong", { ...he(this.options.HTMLAttributes, t), children: /* @__PURE__ */ us("slot", {}) });
16868
16868
  },
16869
16869
  markdownTokenName: "strong",
16870
16870
  parseMarkdown: (t, e) => e.applyMark("bold", e.parseInline(t.tokens || [])),
@@ -16920,7 +16920,7 @@ ${n}
16920
16920
  return [{ tag: "code" }];
16921
16921
  },
16922
16922
  renderHTML({ HTMLAttributes: t }) {
16923
- return ["code", ue(this.options.HTMLAttributes, t), 0];
16923
+ return ["code", he(this.options.HTMLAttributes, t), 0];
16924
16924
  },
16925
16925
  markdownTokenName: "codespan",
16926
16926
  parseMarkdown: (t, e) => e.applyMark("code", [{ type: "text", text: t.text || "" }]),
@@ -16998,7 +16998,7 @@ ${n}
16998
16998
  renderHTML({ node: t, HTMLAttributes: e }) {
16999
16999
  return [
17000
17000
  "pre",
17001
- ue(this.options.HTMLAttributes, e),
17001
+ he(this.options.HTMLAttributes, e),
17002
17002
  [
17003
17003
  "code",
17004
17004
  {
@@ -17072,20 +17072,20 @@ ${n}
17072
17072
  `);
17073
17073
  let m = 0, g = 0;
17074
17074
  const b = l - d;
17075
- for (let L = 0; L < h.length; L += 1) {
17076
- if (g + h[L].length >= b) {
17077
- m = L;
17075
+ for (let x = 0; x < h.length; x += 1) {
17076
+ if (g + h[x].length >= b) {
17077
+ m = x;
17078
17078
  break;
17079
17079
  }
17080
- g += h[L].length + 1;
17080
+ g += h[x].length + 1;
17081
17081
  }
17082
- const C = ((f = h[m].match(/^ */)) == null ? void 0 : f[0]) || "", x = Math.min(C.length, n);
17083
- if (x === 0)
17082
+ const C = ((f = h[m].match(/^ */)) == null ? void 0 : f[0]) || "", L = Math.min(C.length, n);
17083
+ if (L === 0)
17084
17084
  return !0;
17085
17085
  let y = d;
17086
- for (let L = 0; L < m; L += 1)
17087
- y += h[L].length + 1;
17088
- return s.delete(y, y + x), l - y <= x && s.setSelection(W.create(s.doc, y)), !0;
17086
+ for (let x = 0; x < m; x += 1)
17087
+ y += h[x].length + 1;
17088
+ return s.delete(y, y + L), l - y <= L && s.setSelection(W.create(s.doc, y)), !0;
17089
17089
  }) : t.commands.command(({ tr: s }) => {
17090
17090
  const { from: f, to: l } = i, p = r.doc.textBetween(f, l, `
17091
17091
  `, `
@@ -17186,7 +17186,7 @@ ${n}
17186
17186
  return [{ tag: "br" }];
17187
17187
  },
17188
17188
  renderHTML({ HTMLAttributes: t }) {
17189
- return ["br", ue(this.options.HTMLAttributes, t)];
17189
+ return ["br", he(this.options.HTMLAttributes, t)];
17190
17190
  },
17191
17191
  renderText() {
17192
17192
  return `
@@ -17249,7 +17249,7 @@ ${n}
17249
17249
  }));
17250
17250
  },
17251
17251
  renderHTML({ node: t, HTMLAttributes: e }) {
17252
- return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, ue(this.options.HTMLAttributes, e), 0];
17252
+ return [`h${this.options.levels.includes(t.attrs.level) ? t.attrs.level : this.options.levels[0]}`, he(this.options.HTMLAttributes, e), 0];
17253
17253
  },
17254
17254
  parseMarkdown: (t, e) => e.createNode("heading", { level: t.depth || 1 }, e.parseInline(t.tokens || [])),
17255
17255
  renderMarkdown: (t, e) => {
@@ -17294,7 +17294,7 @@ ${n}
17294
17294
  return [{ tag: "hr" }];
17295
17295
  },
17296
17296
  renderHTML({ HTMLAttributes: t }) {
17297
- return ["hr", ue(this.options.HTMLAttributes, t)];
17297
+ return ["hr", he(this.options.HTMLAttributes, t)];
17298
17298
  },
17299
17299
  markdownTokenName: "hr",
17300
17300
  parseMarkdown: (t, e) => e.createNode("horizontalRule"),
@@ -17357,7 +17357,7 @@ ${n}
17357
17357
  ];
17358
17358
  },
17359
17359
  renderHTML({ HTMLAttributes: t }) {
17360
- return ["em", ue(this.options.HTMLAttributes, t), 0];
17360
+ return ["em", he(this.options.HTMLAttributes, t), 0];
17361
17361
  },
17362
17362
  addCommands() {
17363
17363
  return {
@@ -17985,12 +17985,12 @@ function OL({
17985
17985
  z(b, St, b), q(b, t.domain, o), q(w, r, a), q(w, t.domain, o);
17986
17986
  const C = Lt(So);
17987
17987
  q(w, t.tld, C), q(w, t.utld, C), q(C, t.domain, o), q(C, r, a), z(C, Vt, w), z(C, St, b), z(C, Dn, l);
17988
- const x = z(C, zn), y = Lt(So);
17989
- q(x, t.numeric, y);
17990
- const N = Lt(So), L = Lt();
17991
- q(N, e, N), q(N, n, L), q(L, e, N), q(L, n, L), z(C, Gt, N), z(y, Gt, N);
17992
- const k = z(s, zn), S = z(f, zn), I = z(S, Gt), D = z(I, Gt);
17993
- q(s, t.domain, o), z(s, Vt, w), z(s, St, b), q(f, t.domain, o), z(f, Vt, w), z(f, St, b), q(k, t.domain, N), z(k, Gt, N), z(k, ca, N), q(D, t.domain, N), q(D, e, N), z(D, Gt, N);
17988
+ const L = z(C, zn), y = Lt(So);
17989
+ q(L, t.numeric, y);
17990
+ const N = Lt(So), x = Lt();
17991
+ q(N, e, N), q(N, n, x), q(x, e, N), q(x, n, x), z(C, Gt, N), z(y, Gt, N);
17992
+ const k = z(s, zn), S = z(f, zn), T = z(S, Gt), j = z(T, Gt);
17993
+ q(s, t.domain, o), z(s, Vt, w), z(s, St, b), q(f, t.domain, o), z(f, Vt, w), z(f, St, b), q(k, t.domain, N), z(k, Gt, N), z(k, ca, N), q(j, t.domain, N), q(j, e, N), z(j, Gt, N);
17994
17994
  const U = [
17995
17995
  [sa, fa],
17996
17996
  // {}
@@ -18011,7 +18011,7 @@ function OL({
18011
18011
  ];
18012
18012
  for (let Y = 0; Y < U.length; Y++) {
18013
18013
  const [P, F] = U[Y], A = z(N, P);
18014
- z(L, P, A), z(A, F, N);
18014
+ z(x, P, A), z(A, F, N);
18015
18015
  const G = Lt(So);
18016
18016
  q(A, e, G);
18017
18017
  const $ = Lt();
@@ -18045,7 +18045,7 @@ function yl(t, e, n) {
18045
18045
  return new t(a, n);
18046
18046
  }
18047
18047
  const RL = typeof console < "u" && console && console.warn || (() => {
18048
- }), BL = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", de = {
18048
+ }), BL = "until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.", ue = {
18049
18049
  scanner: null,
18050
18050
  parser: null,
18051
18051
  tokenQueue: [],
@@ -18054,32 +18054,32 @@ const RL = typeof console < "u" && console && console.warn || (() => {
18054
18054
  initialized: !1
18055
18055
  };
18056
18056
  function HL() {
18057
- return st.groups = {}, de.scanner = null, de.parser = null, de.tokenQueue = [], de.pluginQueue = [], de.customSchemes = [], de.initialized = !1, de;
18057
+ return st.groups = {}, ue.scanner = null, ue.parser = null, ue.tokenQueue = [], ue.pluginQueue = [], ue.customSchemes = [], ue.initialized = !1, ue;
18058
18058
  }
18059
18059
  function rh(t, e = !1) {
18060
- if (de.initialized && RL(`linkifyjs: already initialized - will not register custom scheme "${t}" ${BL}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
18060
+ if (ue.initialized && RL(`linkifyjs: already initialized - will not register custom scheme "${t}" ${BL}`), !/^[0-9a-z]+(-[0-9a-z]+)*$/.test(t))
18061
18061
  throw new Error(`linkifyjs: incorrect scheme format.
18062
18062
  1. Must only contain digits, lowercase ASCII letters or "-"
18063
18063
  2. Cannot start or end with "-"
18064
18064
  3. "-" cannot repeat`);
18065
- de.customSchemes.push([t, e]);
18065
+ ue.customSchemes.push([t, e]);
18066
18066
  }
18067
18067
  function UL() {
18068
- de.scanner = EL(de.customSchemes);
18069
- for (let t = 0; t < de.tokenQueue.length; t++)
18070
- de.tokenQueue[t][1]({
18071
- scanner: de.scanner
18068
+ ue.scanner = EL(ue.customSchemes);
18069
+ for (let t = 0; t < ue.tokenQueue.length; t++)
18070
+ ue.tokenQueue[t][1]({
18071
+ scanner: ue.scanner
18072
18072
  });
18073
- de.parser = OL(de.scanner.tokens);
18074
- for (let t = 0; t < de.pluginQueue.length; t++)
18075
- de.pluginQueue[t][1]({
18076
- scanner: de.scanner,
18077
- parser: de.parser
18073
+ ue.parser = OL(ue.scanner.tokens);
18074
+ for (let t = 0; t < ue.pluginQueue.length; t++)
18075
+ ue.pluginQueue[t][1]({
18076
+ scanner: ue.scanner,
18077
+ parser: ue.parser
18078
18078
  });
18079
- return de.initialized = !0, de;
18079
+ return ue.initialized = !0, ue;
18080
18080
  }
18081
18081
  function Ad(t) {
18082
- return de.initialized || UL(), PL(de.parser.start, t, Cg(de.scanner.start, t));
18082
+ return ue.initialized || UL(), PL(ue.parser.start, t, Cg(ue.scanner.start, t));
18083
18083
  }
18084
18084
  Ad.scan = Cg;
18085
18085
  function Lg(t, e = null, n = null) {
@@ -18294,7 +18294,7 @@ var Ng = jr.create({
18294
18294
  defaultValidate: (e) => !!nr(e, this.options.protocols),
18295
18295
  protocols: this.options.protocols,
18296
18296
  defaultProtocol: this.options.defaultProtocol
18297
- }) ? ["a", ue(this.options.HTMLAttributes, t), 0] : ["a", ue(this.options.HTMLAttributes, { ...t, href: "" }), 0];
18297
+ }) ? ["a", he(this.options.HTMLAttributes, t), 0] : ["a", he(this.options.HTMLAttributes, { ...t, href: "" }), 0];
18298
18298
  },
18299
18299
  markdownTokenName: "link",
18300
18300
  parseMarkdown: (t, e) => e.applyMark("link", e.parseInline(t.tokens || []), {
@@ -18412,7 +18412,7 @@ var Ng = jr.create({
18412
18412
  return [{ tag: "ul" }];
18413
18413
  },
18414
18414
  renderHTML({ HTMLAttributes: t }) {
18415
- return ["ul", ue(this.options.HTMLAttributes, t), 0];
18415
+ return ["ul", he(this.options.HTMLAttributes, t), 0];
18416
18416
  },
18417
18417
  markdownTokenName: "list",
18418
18418
  parseMarkdown: (t, e) => t.type !== "list" || t.ordered ? [] : {
@@ -18467,7 +18467,7 @@ var Ng = jr.create({
18467
18467
  ];
18468
18468
  },
18469
18469
  renderHTML({ HTMLAttributes: t }) {
18470
- return ["li", ue(this.options.HTMLAttributes, t), 0];
18470
+ return ["li", he(this.options.HTMLAttributes, t), 0];
18471
18471
  },
18472
18472
  markdownTokenName: "list_item",
18473
18473
  parseMarkdown: (t, e) => {
@@ -18775,7 +18775,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
18775
18775
  },
18776
18776
  renderHTML({ HTMLAttributes: t }) {
18777
18777
  const { start: e, ...n } = t;
18778
- return e === 1 ? ["ol", ue(this.options.HTMLAttributes, n), 0] : ["ol", ue(this.options.HTMLAttributes, t), 0];
18778
+ return e === 1 ? ["ol", he(this.options.HTMLAttributes, n), 0] : ["ol", he(this.options.HTMLAttributes, t), 0];
18779
18779
  },
18780
18780
  markdownTokenName: "list",
18781
18781
  parseMarkdown: (t, e) => {
@@ -18887,7 +18887,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
18887
18887
  renderHTML({ node: t, HTMLAttributes: e }) {
18888
18888
  return [
18889
18889
  "li",
18890
- ue(this.options.HTMLAttributes, e, {
18890
+ he(this.options.HTMLAttributes, e, {
18891
18891
  "data-type": this.name
18892
18892
  }),
18893
18893
  [
@@ -18992,7 +18992,7 @@ var rN = "listItem", sh = "textStyle", fh = /^(\d+)\.\s$/, Og = ot.create({
18992
18992
  ];
18993
18993
  },
18994
18994
  renderHTML({ HTMLAttributes: t }) {
18995
- return ["ul", ue(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
18995
+ return ["ul", he(this.options.HTMLAttributes, t, { "data-type": this.name }), 0];
18996
18996
  },
18997
18997
  parseMarkdown: (t, e) => e.createNode("taskList", {}, e.parseChildren(t.items || [])),
18998
18998
  renderMarkdown: (t, e) => t.content ? e.renderChildren(t.content, `
@@ -19105,7 +19105,7 @@ var sN = ot.create({
19105
19105
  return [{ tag: "p" }];
19106
19106
  },
19107
19107
  renderHTML({ HTMLAttributes: t }) {
19108
- return ["p", ue(this.options.HTMLAttributes, t), 0];
19108
+ return ["p", he(this.options.HTMLAttributes, t), 0];
19109
19109
  },
19110
19110
  parseMarkdown: (t, e) => {
19111
19111
  const n = t.tokens || [];
@@ -19153,7 +19153,7 @@ var sN = ot.create({
19153
19153
  ];
19154
19154
  },
19155
19155
  renderHTML({ HTMLAttributes: t }) {
19156
- return ["s", ue(this.options.HTMLAttributes, t), 0];
19156
+ return ["s", he(this.options.HTMLAttributes, t), 0];
19157
19157
  },
19158
19158
  markdownTokenName: "del",
19159
19159
  parseMarkdown: (t, e) => e.applyMark("strike", e.parseInline(t.tokens || [])),
@@ -19214,7 +19214,7 @@ var sN = ot.create({
19214
19214
  ];
19215
19215
  },
19216
19216
  renderHTML({ HTMLAttributes: t }) {
19217
- return ["u", ue(this.options.HTMLAttributes, t), 0];
19217
+ return ["u", he(this.options.HTMLAttributes, t), 0];
19218
19218
  },
19219
19219
  parseMarkdown(t, e) {
19220
19220
  return e.applyMark(this.name || "underline", e.parseInline(t.tokens || []));
@@ -20196,7 +20196,7 @@ var zN = xe.create({
20196
20196
  ];
20197
20197
  },
20198
20198
  renderHTML({ HTMLAttributes: t }) {
20199
- return ["img", ue(this.options.HTMLAttributes, t)];
20199
+ return ["img", he(this.options.HTMLAttributes, t)];
20200
20200
  },
20201
20201
  parseMarkdown: (t, e) => e.createNode("image", {
20202
20202
  src: t.href,
@@ -20287,11 +20287,11 @@ function HN(t) {
20287
20287
  const w = b.input.slice(Math.max(0, b.index - 1), b.index), C = new RegExp(`^[${a == null ? void 0 : a.join("")}\0]?$`).test(w);
20288
20288
  if (a !== null && !C)
20289
20289
  return null;
20290
- const x = g + b.index;
20291
- let y = x + b[0].length;
20292
- return f && d.test(m.slice(y - 1, y + 1)) && (b[0] += " ", y += 1), x < s.pos && y >= s.pos ? {
20290
+ const L = g + b.index;
20291
+ let y = L + b[0].length;
20292
+ return f && d.test(m.slice(y - 1, y + 1)) && (b[0] += " ", y += 1), L < s.pos && y >= s.pos ? {
20293
20293
  range: {
20294
- from: x,
20294
+ from: L,
20295
20295
  to: y
20296
20296
  },
20297
20297
  query: b[0].slice(n.length),
@@ -20319,46 +20319,46 @@ function FN({
20319
20319
  }) {
20320
20320
  let b;
20321
20321
  const w = h == null ? void 0 : h(), C = () => {
20322
- const L = e.state.selection.$anchor.pos, k = e.view.coordsAtPos(L), { top: S, right: I, bottom: D, left: U } = k;
20322
+ const x = e.state.selection.$anchor.pos, k = e.view.coordsAtPos(x), { top: S, right: T, bottom: j, left: U } = k;
20323
20323
  try {
20324
- return new DOMRect(U, S, I - U, D - S);
20324
+ return new DOMRect(U, S, T - U, j - S);
20325
20325
  } catch {
20326
20326
  return null;
20327
20327
  }
20328
- }, x = (L, k) => k ? () => {
20329
- const S = t.getState(e.state), I = S == null ? void 0 : S.decorationId, D = L.dom.querySelector(`[data-decoration-id="${I}"]`);
20330
- return (D == null ? void 0 : D.getBoundingClientRect()) || null;
20328
+ }, L = (x, k) => k ? () => {
20329
+ const S = t.getState(e.state), T = S == null ? void 0 : S.decorationId, j = x.dom.querySelector(`[data-decoration-id="${T}"]`);
20330
+ return (j == null ? void 0 : j.getBoundingClientRect()) || null;
20331
20331
  } : C;
20332
- function y(L, k) {
20332
+ function y(x, k) {
20333
20333
  var S;
20334
20334
  try {
20335
- const D = t.getState(L.state), U = D != null && D.decorationId ? L.dom.querySelector(`[data-decoration-id="${D.decorationId}"]`) : null, Y = {
20335
+ const j = t.getState(x.state), U = j != null && j.decorationId ? x.dom.querySelector(`[data-decoration-id="${j.decorationId}"]`) : null, Y = {
20336
20336
  // @ts-ignore editor is available in closure
20337
20337
  editor: e,
20338
- range: (D == null ? void 0 : D.range) || { from: 0, to: 0 },
20339
- query: (D == null ? void 0 : D.query) || null,
20340
- text: (D == null ? void 0 : D.text) || null,
20338
+ range: (j == null ? void 0 : j.range) || { from: 0, to: 0 },
20339
+ query: (j == null ? void 0 : j.query) || null,
20340
+ text: (j == null ? void 0 : j.text) || null,
20341
20341
  items: [],
20342
- command: (P) => u({ editor: e, range: (D == null ? void 0 : D.range) || { from: 0, to: 0 }, props: P }),
20342
+ command: (P) => u({ editor: e, range: (j == null ? void 0 : j.range) || { from: 0, to: 0 }, props: P }),
20343
20343
  decorationNode: U,
20344
- clientRect: x(L, U)
20344
+ clientRect: L(x, U)
20345
20345
  };
20346
20346
  (S = w == null ? void 0 : w.onExit) == null || S.call(w, Y);
20347
20347
  } catch {
20348
20348
  }
20349
- const I = L.state.tr.setMeta(k, { exit: !0 });
20350
- L.dispatch(I);
20349
+ const T = x.state.tr.setMeta(k, { exit: !0 });
20350
+ x.dispatch(T);
20351
20351
  }
20352
20352
  const N = new be({
20353
20353
  key: t,
20354
20354
  view() {
20355
20355
  return {
20356
- update: async (L, k) => {
20357
- var S, I, D, U, Y, P, F;
20358
- const A = (S = this.key) == null ? void 0 : S.getState(k), G = (I = this.key) == null ? void 0 : I.getState(L.state), $ = A.active && G.active && A.range.from !== G.range.from, le = !A.active && G.active, Pe = A.active && !G.active, je = !le && !Pe && A.query !== G.query, Ve = le || $ && je, R = je || $, oe = Pe || $ && je;
20356
+ update: async (x, k) => {
20357
+ var S, T, j, U, Y, P, F;
20358
+ const A = (S = this.key) == null ? void 0 : S.getState(k), G = (T = this.key) == null ? void 0 : T.getState(x.state), $ = A.active && G.active && A.range.from !== G.range.from, le = !A.active && G.active, Pe = A.active && !G.active, je = !le && !Pe && A.query !== G.query, Ve = le || $ && je, R = je || $, oe = Pe || $ && je;
20359
20359
  if (!Ve && !R && !oe)
20360
20360
  return;
20361
- const ne = oe && !Ve ? A : G, Ne = L.dom.querySelector(`[data-decoration-id="${ne.decorationId}"]`);
20361
+ const ne = oe && !Ve ? A : G, Ne = x.dom.querySelector(`[data-decoration-id="${ne.decorationId}"]`);
20362
20362
  b = {
20363
20363
  editor: e,
20364
20364
  range: ne.range,
@@ -20371,15 +20371,15 @@ function FN({
20371
20371
  props: Ge
20372
20372
  }),
20373
20373
  decorationNode: Ne,
20374
- clientRect: x(L, Ne)
20375
- }, Ve && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, b)), R && ((U = w == null ? void 0 : w.onBeforeUpdate) == null || U.call(w, b)), (R || Ve) && (b.items = await p({
20374
+ clientRect: L(x, Ne)
20375
+ }, Ve && ((j = w == null ? void 0 : w.onBeforeStart) == null || j.call(w, b)), R && ((U = w == null ? void 0 : w.onBeforeUpdate) == null || U.call(w, b)), (R || Ve) && (b.items = await p({
20376
20376
  editor: e,
20377
20377
  query: ne.query
20378
20378
  })), oe && ((Y = w == null ? void 0 : w.onExit) == null || Y.call(w, b)), R && ((P = w == null ? void 0 : w.onUpdate) == null || P.call(w, b)), Ve && ((F = w == null ? void 0 : w.onStart) == null || F.call(w, b));
20379
20379
  },
20380
20380
  destroy: () => {
20381
- var L;
20382
- b && ((L = w == null ? void 0 : w.onExit) == null || L.call(w, b));
20381
+ var x;
20382
+ b && ((x = w == null ? void 0 : w.onExit) == null || x.call(w, b));
20383
20383
  }
20384
20384
  };
20385
20385
  },
@@ -20398,11 +20398,11 @@ function FN({
20398
20398
  };
20399
20399
  },
20400
20400
  // Apply changes to the plugin state from a view transaction.
20401
- apply(L, k, S, I) {
20402
- const { isEditable: D } = e, { composing: U } = e.view, { selection: Y } = L, { empty: P, from: F } = Y, A = { ...k }, G = L.getMeta(t);
20401
+ apply(x, k, S, T) {
20402
+ const { isEditable: j } = e, { composing: U } = e.view, { selection: Y } = x, { empty: P, from: F } = Y, A = { ...k }, G = x.getMeta(t);
20403
20403
  if (G && G.exit)
20404
20404
  return A.active = !1, A.decorationId = null, A.range = { from: 0, to: 0 }, A.query = null, A.text = null, A;
20405
- if (A.composing = U, D && (P || e.view.composing)) {
20405
+ if (A.composing = U, j && (P || e.view.composing)) {
20406
20406
  (F < k.range.from || F > k.range.to) && !U && !k.composing && (A.active = !1);
20407
20407
  const $ = g({
20408
20408
  char: n,
@@ -20414,7 +20414,7 @@ function FN({
20414
20414
  }), le = `id_${Math.floor(Math.random() * 4294967295)}`;
20415
20415
  $ && m({
20416
20416
  editor: e,
20417
- state: I,
20417
+ state: T,
20418
20418
  range: $.range,
20419
20419
  isActive: k.active
20420
20420
  }) ? (A.active = !0, A.decorationId = k.decorationId ? k.decorationId : le, A.range = $.range, A.query = $.query, A.text = $.text) : A.active = !1;
@@ -20425,14 +20425,14 @@ function FN({
20425
20425
  },
20426
20426
  props: {
20427
20427
  // Call the keydown hook if suggestion is active.
20428
- handleKeyDown(L, k) {
20429
- var S, I, D, U;
20430
- const { active: Y, range: P } = N.getState(L.state);
20428
+ handleKeyDown(x, k) {
20429
+ var S, T, j, U;
20430
+ const { active: Y, range: P } = N.getState(x.state);
20431
20431
  if (!Y)
20432
20432
  return !1;
20433
20433
  if (k.key === "Escape" || k.key === "Esc") {
20434
- const A = N.getState(L.state), G = (S = b == null ? void 0 : b.decorationNode) != null ? S : null, $ = G ?? (A != null && A.decorationId ? L.dom.querySelector(`[data-decoration-id="${A.decorationId}"]`) : null);
20435
- if (((I = w == null ? void 0 : w.onKeyDown) == null ? void 0 : I.call(w, { view: L, event: k, range: A.range })) || !1)
20434
+ const A = N.getState(x.state), G = (S = b == null ? void 0 : b.decorationNode) != null ? S : null, $ = G ?? (A != null && A.decorationId ? x.dom.querySelector(`[data-decoration-id="${A.decorationId}"]`) : null);
20435
+ if (((T = w == null ? void 0 : w.onKeyDown) == null ? void 0 : T.call(w, { view: x, event: k, range: A.range })) || !1)
20436
20436
  return !0;
20437
20437
  const Pe = {
20438
20438
  editor: e,
@@ -20447,21 +20447,21 @@ function FN({
20447
20447
  // let consumer decide if they want to query.
20448
20448
  clientRect: $ ? () => $.getBoundingClientRect() || null : null
20449
20449
  };
20450
- return (D = w == null ? void 0 : w.onExit) == null || D.call(w, Pe), y(L, t), !0;
20450
+ return (j = w == null ? void 0 : w.onExit) == null || j.call(w, Pe), y(x, t), !0;
20451
20451
  }
20452
- return ((U = w == null ? void 0 : w.onKeyDown) == null ? void 0 : U.call(w, { view: L, event: k, range: P })) || !1;
20452
+ return ((U = w == null ? void 0 : w.onKeyDown) == null ? void 0 : U.call(w, { view: x, event: k, range: P })) || !1;
20453
20453
  },
20454
20454
  // Setup decorator on the currently active suggestion.
20455
- decorations(L) {
20456
- const { active: k, range: S, decorationId: I, query: D } = N.getState(L);
20455
+ decorations(x) {
20456
+ const { active: k, range: S, decorationId: T, query: j } = N.getState(x);
20457
20457
  if (!k)
20458
20458
  return null;
20459
- const U = !(D != null && D.length), Y = [f];
20460
- return U && Y.push(d), me.create(L.doc, [
20459
+ const U = !(j != null && j.length), Y = [f];
20460
+ return U && Y.push(d), me.create(x.doc, [
20461
20461
  $e.inline(S.from, S.to, {
20462
20462
  nodeName: s,
20463
20463
  class: Y.join(" "),
20464
- "data-decoration-id": I,
20464
+ "data-decoration-id": T,
20465
20465
  "data-decoration-content": l
20466
20466
  })
20467
20467
  ]);
@@ -20532,7 +20532,7 @@ var YN = ot.create({
20532
20532
  var r, i;
20533
20533
  return [
20534
20534
  "span",
20535
- ue(this.HTMLAttributes, t.HTMLAttributes),
20535
+ he(this.HTMLAttributes, t.HTMLAttributes),
20536
20536
  `${(r = n == null ? void 0 : n.char) != null ? r : "@"}${(i = e.attrs.label) != null ? i : e.attrs.id}`
20537
20537
  ];
20538
20538
  },
@@ -20582,7 +20582,7 @@ var YN = ot.create({
20582
20582
  if (this.options.renderLabel !== void 0)
20583
20583
  return console.warn("renderLabel is deprecated use renderText and renderHTML instead"), [
20584
20584
  "span",
20585
- ue({ "data-type": this.name }, this.options.HTMLAttributes, e),
20585
+ he({ "data-type": this.name }, this.options.HTMLAttributes, e),
20586
20586
  this.options.renderLabel({
20587
20587
  options: this.options,
20588
20588
  node: t,
@@ -20590,7 +20590,7 @@ var YN = ot.create({
20590
20590
  })
20591
20591
  ];
20592
20592
  const r = { ...this.options };
20593
- r.HTMLAttributes = ue(
20593
+ r.HTMLAttributes = he(
20594
20594
  { "data-type": this.name },
20595
20595
  this.options.HTMLAttributes,
20596
20596
  e
@@ -20600,7 +20600,7 @@ var YN = ot.create({
20600
20600
  node: t,
20601
20601
  suggestion: n
20602
20602
  });
20603
- return typeof i == "string" ? ["span", ue({ "data-type": this.name }, this.options.HTMLAttributes, e), i] : i;
20603
+ return typeof i == "string" ? ["span", he({ "data-type": this.name }, this.options.HTMLAttributes, e), i] : i;
20604
20604
  },
20605
20605
  ...cg({
20606
20606
  nodeName: "mention",
@@ -20856,8 +20856,8 @@ var fk = function(e, n) {
20856
20856
  function lk(t) {
20857
20857
  var e, n = t.state, r = t.name, i = t.options, a = n.elements.arrow, o = n.modifiersData.popperOffsets, s = $t(n.placement), f = Ud(s), l = [ut, Bt].indexOf(s) >= 0, d = l ? "height" : "width";
20858
20858
  if (!(!a || !o)) {
20859
- var u = fk(i.padding, n), p = Hd(a), h = f === "y" ? dt : ut, m = f === "y" ? Rt : Bt, g = n.rects.reference[d] + n.rects.reference[f] - o[f] - n.rects.popper[d], b = o[f] - n.rects.reference[f], w = qa(a), C = w ? f === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, x = g / 2 - b / 2, y = u[h], N = C - p[d] - u[m], L = C / 2 - p[d] / 2 + x, k = ua(y, L, N), S = f;
20860
- n.modifiersData[r] = (e = {}, e[S] = k, e.centerOffset = k - L, e);
20859
+ var u = fk(i.padding, n), p = Hd(a), h = f === "y" ? dt : ut, m = f === "y" ? Rt : Bt, g = n.rects.reference[d] + n.rects.reference[f] - o[f] - n.rects.popper[d], b = o[f] - n.rects.reference[f], w = qa(a), C = w ? f === "y" ? w.clientHeight || 0 : w.clientWidth || 0 : 0, L = g / 2 - b / 2, y = u[h], N = C - p[d] - u[m], x = C / 2 - p[d] / 2 + L, k = ua(y, x, N), S = f;
20860
+ n.modifiersData[r] = (e = {}, e[S] = k, e.centerOffset = k - x, e);
20861
20861
  }
20862
20862
  }
20863
20863
  function ck(t) {
@@ -20898,24 +20898,24 @@ function mh(t) {
20898
20898
  y: g
20899
20899
  };
20900
20900
  h = b.x, g = b.y;
20901
- var w = o.hasOwnProperty("x"), C = o.hasOwnProperty("y"), x = ut, y = dt, N = window;
20901
+ var w = o.hasOwnProperty("x"), C = o.hasOwnProperty("y"), L = ut, y = dt, N = window;
20902
20902
  if (l) {
20903
- var L = qa(n), k = "clientHeight", S = "clientWidth";
20904
- if (L === wt(n) && (L = qn(n), Mn(L).position !== "static" && s === "absolute" && (k = "scrollHeight", S = "scrollWidth")), L = L, i === dt || (i === ut || i === Bt) && a === za) {
20903
+ var x = qa(n), k = "clientHeight", S = "clientWidth";
20904
+ if (x === wt(n) && (x = qn(n), Mn(x).position !== "static" && s === "absolute" && (k = "scrollHeight", S = "scrollWidth")), x = x, i === dt || (i === ut || i === Bt) && a === za) {
20905
20905
  y = Rt;
20906
- var I = u && L === N && N.visualViewport ? N.visualViewport.height : (
20906
+ var T = u && x === N && N.visualViewport ? N.visualViewport.height : (
20907
20907
  // $FlowFixMe[prop-missing]
20908
- L[k]
20908
+ x[k]
20909
20909
  );
20910
- g -= I - r.height, g *= f ? 1 : -1;
20910
+ g -= T - r.height, g *= f ? 1 : -1;
20911
20911
  }
20912
20912
  if (i === ut || (i === dt || i === Rt) && a === za) {
20913
- x = Bt;
20914
- var D = u && L === N && N.visualViewport ? N.visualViewport.width : (
20913
+ L = Bt;
20914
+ var j = u && x === N && N.visualViewport ? N.visualViewport.width : (
20915
20915
  // $FlowFixMe[prop-missing]
20916
- L[S]
20916
+ x[S]
20917
20917
  );
20918
- h -= D - r.width, h *= f ? 1 : -1;
20918
+ h -= j - r.width, h *= f ? 1 : -1;
20919
20919
  }
20920
20920
  }
20921
20921
  var U = Object.assign({
@@ -20929,9 +20929,9 @@ function mh(t) {
20929
20929
  };
20930
20930
  if (h = Y.x, g = Y.y, f) {
20931
20931
  var P;
20932
- return Object.assign({}, U, (P = {}, P[y] = C ? "0" : "", P[x] = w ? "0" : "", P.transform = (N.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", P));
20932
+ return Object.assign({}, U, (P = {}, P[y] = C ? "0" : "", P[L] = w ? "0" : "", P.transform = (N.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", P));
20933
20933
  }
20934
- return Object.assign({}, U, (e = {}, e[y] = C ? g + "px" : "", e[x] = w ? h + "px" : "", e.transform = "", e));
20934
+ return Object.assign({}, U, (e = {}, e[y] = C ? g + "px" : "", e[L] = w ? h + "px" : "", e.transform = "", e));
20935
20935
  }
20936
20936
  function pk(t) {
20937
20937
  var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, a = n.adaptive, o = a === void 0 ? !0 : a, s = n.roundOffsets, f = s === void 0 ? !0 : s, l = {
@@ -21131,24 +21131,24 @@ function e2(t) {
21131
21131
  }
21132
21132
  function Oa(t, e) {
21133
21133
  e === void 0 && (e = {});
21134
- var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, o = a === void 0 ? t.strategy : a, s = n.boundary, f = s === void 0 ? VN : s, l = n.rootBoundary, d = l === void 0 ? Vg : l, u = n.elementContext, p = u === void 0 ? Ji : u, h = n.altBoundary, m = h === void 0 ? !1 : h, g = n.padding, b = g === void 0 ? 0 : g, w = qg(typeof b != "number" ? b : Kg(b, Za)), C = p === Ji ? GN : Ji, x = t.rects.popper, y = t.elements[m ? C : p], N = Lk(Lr(y) ? y : y.contextElement || qn(t.elements.popper), f, d, o), L = wi(t.elements.reference), k = e2({
21135
- reference: L,
21136
- element: x,
21134
+ var n = e, r = n.placement, i = r === void 0 ? t.placement : r, a = n.strategy, o = a === void 0 ? t.strategy : a, s = n.boundary, f = s === void 0 ? VN : s, l = n.rootBoundary, d = l === void 0 ? Vg : l, u = n.elementContext, p = u === void 0 ? Ji : u, h = n.altBoundary, m = h === void 0 ? !1 : h, g = n.padding, b = g === void 0 ? 0 : g, w = qg(typeof b != "number" ? b : Kg(b, Za)), C = p === Ji ? GN : Ji, L = t.rects.popper, y = t.elements[m ? C : p], N = Lk(Lr(y) ? y : y.contextElement || qn(t.elements.popper), f, d, o), x = wi(t.elements.reference), k = e2({
21135
+ reference: x,
21136
+ element: L,
21137
21137
  placement: i
21138
- }), S = wc(Object.assign({}, x, k)), I = p === Ji ? S : L, D = {
21139
- top: N.top - I.top + w.top,
21140
- bottom: I.bottom - N.bottom + w.bottom,
21141
- left: N.left - I.left + w.left,
21142
- right: I.right - N.right + w.right
21138
+ }), S = wc(Object.assign({}, L, k)), T = p === Ji ? S : x, j = {
21139
+ top: N.top - T.top + w.top,
21140
+ bottom: T.bottom - N.bottom + w.bottom,
21141
+ left: N.left - T.left + w.left,
21142
+ right: T.right - N.right + w.right
21143
21143
  }, U = t.modifiersData.offset;
21144
21144
  if (p === Ji && U) {
21145
21145
  var Y = U[i];
21146
- Object.keys(D).forEach(function(P) {
21146
+ Object.keys(j).forEach(function(P) {
21147
21147
  var F = [Bt, Rt].indexOf(P) >= 0 ? 1 : -1, A = [dt, Rt].indexOf(P) >= 0 ? "y" : "x";
21148
- D[P] += Y[A] * F;
21148
+ j[P] += Y[A] * F;
21149
21149
  });
21150
21150
  }
21151
- return D;
21151
+ return j;
21152
21152
  }
21153
21153
  function Nk(t, e) {
21154
21154
  e === void 0 && (e = {});
@@ -21179,7 +21179,7 @@ function kk(t) {
21179
21179
  function Sk(t) {
21180
21180
  var e = t.state, n = t.options, r = t.name;
21181
21181
  if (!e.modifiersData[r]._skip) {
21182
- for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, f = n.fallbackPlacements, l = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, b = e.options.placement, w = $t(b), C = w === b, x = f || (C || !m ? [Fo(b)] : kk(b)), y = [b].concat(x).reduce(function(ne, Ne) {
21182
+ for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, f = n.fallbackPlacements, l = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, b = e.options.placement, w = $t(b), C = w === b, L = f || (C || !m ? [Fo(b)] : kk(b)), y = [b].concat(L).reduce(function(ne, Ne) {
21183
21183
  return ne.concat($t(Ne) === Rd ? Nk(e, {
21184
21184
  placement: Ne,
21185
21185
  boundary: d,
@@ -21188,20 +21188,20 @@ function Sk(t) {
21188
21188
  flipVariations: m,
21189
21189
  allowedAutoPlacements: g
21190
21190
  }) : Ne);
21191
- }, []), N = e.rects.reference, L = e.rects.popper, k = /* @__PURE__ */ new Map(), S = !0, I = y[0], D = 0; D < y.length; D++) {
21192
- var U = y[D], Y = $t(U), P = yi(U) === bi, F = [dt, Rt].indexOf(Y) >= 0, A = F ? "width" : "height", G = Oa(e, {
21191
+ }, []), N = e.rects.reference, x = e.rects.popper, k = /* @__PURE__ */ new Map(), S = !0, T = y[0], j = 0; j < y.length; j++) {
21192
+ var U = y[j], Y = $t(U), P = yi(U) === bi, F = [dt, Rt].indexOf(Y) >= 0, A = F ? "width" : "height", G = Oa(e, {
21193
21193
  placement: U,
21194
21194
  boundary: d,
21195
21195
  rootBoundary: u,
21196
21196
  altBoundary: p,
21197
21197
  padding: l
21198
21198
  }), $ = F ? P ? Bt : ut : P ? Rt : dt;
21199
- N[A] > L[A] && ($ = Fo($));
21199
+ N[A] > x[A] && ($ = Fo($));
21200
21200
  var le = Fo($), Pe = [];
21201
21201
  if (a && Pe.push(G[Y] <= 0), s && Pe.push(G[$] <= 0, G[le] <= 0), Pe.every(function(ne) {
21202
21202
  return ne;
21203
21203
  })) {
21204
- I = U, S = !1;
21204
+ T = U, S = !1;
21205
21205
  break;
21206
21206
  }
21207
21207
  k.set(U, Pe);
@@ -21216,12 +21216,12 @@ function Sk(t) {
21216
21216
  });
21217
21217
  });
21218
21218
  if (Ge)
21219
- return I = Ge, "break";
21219
+ return T = Ge, "break";
21220
21220
  }, R = je; R > 0; R--) {
21221
21221
  var oe = Ve(R);
21222
21222
  if (oe === "break") break;
21223
21223
  }
21224
- e.placement !== I && (e.modifiersData[r]._skip = !0, e.placement = I, e.reset = !0);
21224
+ e.placement !== T && (e.modifiersData[r]._skip = !0, e.placement = T, e.reset = !0);
21225
21225
  }
21226
21226
  }
21227
21227
  const Tk = {
@@ -21322,29 +21322,29 @@ function Rk(t) {
21322
21322
  rootBoundary: l,
21323
21323
  padding: u,
21324
21324
  altBoundary: d
21325
- }), w = $t(e.placement), C = yi(e.placement), x = !C, y = Ud(w), N = Pk(y), L = e.modifiersData.popperOffsets, k = e.rects.reference, S = e.rects.popper, I = typeof g == "function" ? g(Object.assign({}, e.rects, {
21325
+ }), w = $t(e.placement), C = yi(e.placement), L = !C, y = Ud(w), N = Pk(y), x = e.modifiersData.popperOffsets, k = e.rects.reference, S = e.rects.popper, T = typeof g == "function" ? g(Object.assign({}, e.rects, {
21326
21326
  placement: e.placement
21327
- })) : g, D = typeof I == "number" ? {
21328
- mainAxis: I,
21329
- altAxis: I
21327
+ })) : g, j = typeof T == "number" ? {
21328
+ mainAxis: T,
21329
+ altAxis: T
21330
21330
  } : Object.assign({
21331
21331
  mainAxis: 0,
21332
21332
  altAxis: 0
21333
- }, I), U = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Y = {
21333
+ }, T), U = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, Y = {
21334
21334
  x: 0,
21335
21335
  y: 0
21336
21336
  };
21337
- if (L) {
21337
+ if (x) {
21338
21338
  if (a) {
21339
- var P, F = y === "y" ? dt : ut, A = y === "y" ? Rt : Bt, G = y === "y" ? "height" : "width", $ = L[y], le = $ + b[F], Pe = $ - b[A], je = h ? -S[G] / 2 : 0, Ve = C === bi ? k[G] : S[G], R = C === bi ? -S[G] : -k[G], oe = e.elements.arrow, ne = h && oe ? Hd(oe) : {
21339
+ var P, F = y === "y" ? dt : ut, A = y === "y" ? Rt : Bt, G = y === "y" ? "height" : "width", $ = x[y], le = $ + b[F], Pe = $ - b[A], je = h ? -S[G] / 2 : 0, Ve = C === bi ? k[G] : S[G], R = C === bi ? -S[G] : -k[G], oe = e.elements.arrow, ne = h && oe ? Hd(oe) : {
21340
21340
  width: 0,
21341
21341
  height: 0
21342
- }, Ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Zg(), Ge = Ne[F], Nn = Ne[A], en = ua(0, k[G], ne[G]), Br = x ? k[G] / 2 - je - en - Ge - D.mainAxis : Ve - en - Ge - D.mainAxis, kn = x ? -k[G] / 2 + je + en + Nn + D.mainAxis : R + en + Nn + D.mainAxis, Hr = e.elements.arrow && qa(e.elements.arrow), ro = Hr ? y === "y" ? Hr.clientTop || 0 : Hr.clientLeft || 0 : 0, Ei = (P = U == null ? void 0 : U[y]) != null ? P : 0, io = $ + Br - Ei - ro, ao = $ + kn - Ei, Ai = ua(h ? Fs(le, io) : le, $, h ? vr(Pe, ao) : Pe);
21343
- L[y] = Ai, Y[y] = Ai - $;
21342
+ }, Ne = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Zg(), Ge = Ne[F], Nn = Ne[A], en = ua(0, k[G], ne[G]), Br = L ? k[G] / 2 - je - en - Ge - j.mainAxis : Ve - en - Ge - j.mainAxis, kn = L ? -k[G] / 2 + je + en + Nn + j.mainAxis : R + en + Nn + j.mainAxis, Hr = e.elements.arrow && qa(e.elements.arrow), ro = Hr ? y === "y" ? Hr.clientTop || 0 : Hr.clientLeft || 0 : 0, Ei = (P = U == null ? void 0 : U[y]) != null ? P : 0, io = $ + Br - Ei - ro, ao = $ + kn - Ei, Ai = ua(h ? Fs(le, io) : le, $, h ? vr(Pe, ao) : Pe);
21343
+ x[y] = Ai, Y[y] = Ai - $;
21344
21344
  }
21345
21345
  if (s) {
21346
- var zi, oo = y === "x" ? dt : ut, so = y === "x" ? Rt : Bt, tn = L[N], Sn = N === "y" ? "height" : "width", Oi = tn + b[oo], er = tn - b[so], Pi = [dt, ut].indexOf(w) !== -1, fo = (zi = U == null ? void 0 : U[N]) != null ? zi : 0, lo = Pi ? Oi : tn - k[Sn] - S[Sn] - fo + D.altAxis, co = Pi ? tn + k[Sn] + S[Sn] - fo - D.altAxis : er, uo = h && Pi ? sk(lo, tn, co) : ua(h ? lo : Oi, tn, h ? co : er);
21347
- L[N] = uo, Y[N] = uo - tn;
21346
+ var zi, oo = y === "x" ? dt : ut, so = y === "x" ? Rt : Bt, tn = x[N], Sn = N === "y" ? "height" : "width", Oi = tn + b[oo], er = tn - b[so], Pi = [dt, ut].indexOf(w) !== -1, fo = (zi = U == null ? void 0 : U[N]) != null ? zi : 0, lo = Pi ? Oi : tn - k[Sn] - S[Sn] - fo + j.altAxis, co = Pi ? tn + k[Sn] + S[Sn] - fo - j.altAxis : er, uo = h && Pi ? sk(lo, tn, co) : ua(h ? lo : Oi, tn, h ? co : er);
21347
+ x[N] = uo, Y[N] = uo - tn;
21348
21348
  }
21349
21349
  e.modifiersData[r] = Y;
21350
21350
  }
@@ -21471,8 +21471,8 @@ function _k(t) {
21471
21471
  reference: Lr(s) ? ha(s) : s.contextElement ? ha(s.contextElement) : [],
21472
21472
  popper: ha(f)
21473
21473
  };
21474
- var x = Qk(Gk([].concat(r, d.options.modifiers)));
21475
- return d.orderedModifiers = x.filter(function(y) {
21474
+ var L = Qk(Gk([].concat(r, d.options.modifiers)));
21475
+ return d.orderedModifiers = L.filter(function(y) {
21476
21476
  return y.enabled;
21477
21477
  }), m(), h.update();
21478
21478
  },
@@ -21483,24 +21483,24 @@ function _k(t) {
21483
21483
  // prefer the async Popper#update method
21484
21484
  forceUpdate: function() {
21485
21485
  if (!p) {
21486
- var w = d.elements, C = w.reference, x = w.popper;
21487
- if (Mh(C, x)) {
21486
+ var w = d.elements, C = w.reference, L = w.popper;
21487
+ if (Mh(C, L)) {
21488
21488
  d.rects = {
21489
- reference: Jk(C, qa(x), d.options.strategy === "fixed"),
21490
- popper: Hd(x)
21491
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(D) {
21492
- return d.modifiersData[D.name] = Object.assign({}, D.data);
21489
+ reference: Jk(C, qa(L), d.options.strategy === "fixed"),
21490
+ popper: Hd(L)
21491
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(j) {
21492
+ return d.modifiersData[j.name] = Object.assign({}, j.data);
21493
21493
  });
21494
21494
  for (var y = 0; y < d.orderedModifiers.length; y++) {
21495
21495
  if (d.reset === !0) {
21496
21496
  d.reset = !1, y = -1;
21497
21497
  continue;
21498
21498
  }
21499
- var N = d.orderedModifiers[y], L = N.fn, k = N.options, S = k === void 0 ? {} : k, I = N.name;
21500
- typeof L == "function" && (d = L({
21499
+ var N = d.orderedModifiers[y], x = N.fn, k = N.options, S = k === void 0 ? {} : k, T = N.name;
21500
+ typeof x == "function" && (d = x({
21501
21501
  state: d,
21502
21502
  options: S,
21503
- name: I,
21503
+ name: T,
21504
21504
  instance: h
21505
21505
  }) || d);
21506
21506
  }
@@ -21525,16 +21525,16 @@ function _k(t) {
21525
21525
  });
21526
21526
  function m() {
21527
21527
  d.orderedModifiers.forEach(function(b) {
21528
- var w = b.name, C = b.options, x = C === void 0 ? {} : C, y = b.effect;
21528
+ var w = b.name, C = b.options, L = C === void 0 ? {} : C, y = b.effect;
21529
21529
  if (typeof y == "function") {
21530
21530
  var N = y({
21531
21531
  state: d,
21532
21532
  name: w,
21533
21533
  instance: h,
21534
- options: x
21535
- }), L = function() {
21534
+ options: L
21535
+ }), x = function() {
21536
21536
  };
21537
- u.push(N || L);
21537
+ u.push(N || x);
21538
21538
  }
21539
21539
  });
21540
21540
  }
@@ -21911,7 +21911,7 @@ function d2(t) {
21911
21911
  d2.$$tippy = !0;
21912
21912
  var C9 = 1, jo = [], kl = [];
21913
21913
  function x9(t, e) {
21914
- var n = Ih(t, Object.assign({}, pt, l2(Lh(e)))), r, i, a, o = !1, s = !1, f = !1, l = !1, d, u, p, h = [], m = Ch(io, n.interactiveDebounce), g, b = C9++, w = null, C = t9(n.plugins), x = {
21914
+ var n = Ih(t, Object.assign({}, pt, l2(Lh(e)))), r, i, a, o = !1, s = !1, f = !1, l = !1, d, u, p, h = [], m = Ch(io, n.interactiveDebounce), g, b = C9++, w = null, C = t9(n.plugins), L = {
21915
21915
  // Is the instance currently enabled?
21916
21916
  isEnabled: !0,
21917
21917
  // Is the tippy currently showing and not transitioning out?
@@ -21929,7 +21929,7 @@ function x9(t, e) {
21929
21929
  popper: pa(),
21930
21930
  popperInstance: w,
21931
21931
  props: n,
21932
- state: x,
21932
+ state: L,
21933
21933
  plugins: C,
21934
21934
  // methods
21935
21935
  clearDelayTimeouts: lo,
@@ -21945,55 +21945,55 @@ function x9(t, e) {
21945
21945
  };
21946
21946
  if (!n.render)
21947
21947
  return process.env.NODE_ENV !== "production" && yc(!0, "render() function has not been supplied."), y;
21948
- var N = n.render(y), L = N.popper, k = N.onUpdate;
21949
- L.setAttribute("data-tippy-root", ""), L.id = "tippy-" + y.id, y.popper = L, t._tippy = y, L._tippy = y;
21950
- var S = C.map(function(T) {
21951
- return T.fn(y);
21952
- }), I = t.hasAttribute("aria-expanded");
21953
- return Hr(), je(), $(), le("onCreate", [y]), n.showOnCreate && Oi(), L.addEventListener("mouseenter", function() {
21948
+ var N = n.render(y), x = N.popper, k = N.onUpdate;
21949
+ x.setAttribute("data-tippy-root", ""), x.id = "tippy-" + y.id, y.popper = x, t._tippy = y, x._tippy = y;
21950
+ var S = C.map(function(I) {
21951
+ return I.fn(y);
21952
+ }), T = t.hasAttribute("aria-expanded");
21953
+ return Hr(), je(), $(), le("onCreate", [y]), n.showOnCreate && Oi(), x.addEventListener("mouseenter", function() {
21954
21954
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
21955
- }), L.addEventListener("mouseleave", function() {
21955
+ }), x.addEventListener("mouseleave", function() {
21956
21956
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", m);
21957
21957
  }), y;
21958
- function D() {
21959
- var T = y.props.touch;
21960
- return Array.isArray(T) ? T : [T, 0];
21958
+ function j() {
21959
+ var I = y.props.touch;
21960
+ return Array.isArray(I) ? I : [I, 0];
21961
21961
  }
21962
21962
  function U() {
21963
- return D()[0] === "hold";
21963
+ return j()[0] === "hold";
21964
21964
  }
21965
21965
  function Y() {
21966
- var T;
21967
- return !!((T = y.props.render) != null && T.$$tippy);
21966
+ var I;
21967
+ return !!((I = y.props.render) != null && I.$$tippy);
21968
21968
  }
21969
21969
  function P() {
21970
21970
  return g || t;
21971
21971
  }
21972
21972
  function F() {
21973
- var T = P().parentNode;
21974
- return T ? s9(T) : document;
21973
+ var I = P().parentNode;
21974
+ return I ? s9(I) : document;
21975
21975
  }
21976
21976
  function A() {
21977
- return Cc(L);
21977
+ return Cc(x);
21978
21978
  }
21979
- function G(T) {
21980
- return y.state.isMounted && !y.state.isVisible || Wt.isTouch || d && d.type === "focus" ? 0 : xl(y.props.delay, T ? 0 : 1, pt.delay);
21979
+ function G(I) {
21980
+ return y.state.isMounted && !y.state.isVisible || Wt.isTouch || d && d.type === "focus" ? 0 : xl(y.props.delay, I ? 0 : 1, pt.delay);
21981
21981
  }
21982
- function $(T) {
21983
- T === void 0 && (T = !1), L.style.pointerEvents = y.props.interactive && !T ? "" : "none", L.style.zIndex = "" + y.props.zIndex;
21982
+ function $(I) {
21983
+ I === void 0 && (I = !1), x.style.pointerEvents = y.props.interactive && !I ? "" : "none", x.style.zIndex = "" + y.props.zIndex;
21984
21984
  }
21985
- function le(T, J, _) {
21985
+ function le(I, J, _) {
21986
21986
  if (_ === void 0 && (_ = !0), S.forEach(function(ie) {
21987
- ie[T] && ie[T].apply(ie, J);
21987
+ ie[I] && ie[I].apply(ie, J);
21988
21988
  }), _) {
21989
21989
  var se;
21990
- (se = y.props)[T].apply(se, J);
21990
+ (se = y.props)[I].apply(se, J);
21991
21991
  }
21992
21992
  }
21993
21993
  function Pe() {
21994
- var T = y.props.aria;
21995
- if (T.content) {
21996
- var J = "aria-" + T.content, _ = L.id, se = qr(y.props.triggerTarget || t);
21994
+ var I = y.props.aria;
21995
+ if (I.content) {
21996
+ var J = "aria-" + I.content, _ = x.id, se = qr(y.props.triggerTarget || t);
21997
21997
  se.forEach(function(ie) {
21998
21998
  var Xe = ie.getAttribute(J);
21999
21999
  if (y.state.isVisible)
@@ -22006,29 +22006,29 @@ function x9(t, e) {
22006
22006
  }
22007
22007
  }
22008
22008
  function je() {
22009
- if (!(I || !y.props.aria.expanded)) {
22010
- var T = qr(y.props.triggerTarget || t);
22011
- T.forEach(function(J) {
22009
+ if (!(T || !y.props.aria.expanded)) {
22010
+ var I = qr(y.props.triggerTarget || t);
22011
+ I.forEach(function(J) {
22012
22012
  y.props.interactive ? J.setAttribute("aria-expanded", y.state.isVisible && J === P() ? "true" : "false") : J.removeAttribute("aria-expanded");
22013
22013
  });
22014
22014
  }
22015
22015
  }
22016
22016
  function Ve() {
22017
- F().removeEventListener("mousemove", m), jo = jo.filter(function(T) {
22018
- return T !== m;
22017
+ F().removeEventListener("mousemove", m), jo = jo.filter(function(I) {
22018
+ return I !== m;
22019
22019
  });
22020
22020
  }
22021
- function R(T) {
22022
- if (!(Wt.isTouch && (f || T.type === "mousedown"))) {
22023
- var J = T.composedPath && T.composedPath()[0] || T.target;
22024
- if (!(y.props.interactive && kh(L, J))) {
22021
+ function R(I) {
22022
+ if (!(Wt.isTouch && (f || I.type === "mousedown"))) {
22023
+ var J = I.composedPath && I.composedPath()[0] || I.target;
22024
+ if (!(y.props.interactive && kh(x, J))) {
22025
22025
  if (qr(y.props.triggerTarget || t).some(function(_) {
22026
22026
  return kh(_, J);
22027
22027
  })) {
22028
22028
  if (Wt.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
22029
22029
  return;
22030
22030
  } else
22031
- le("onClickOutside", [y, T]);
22031
+ le("onClickOutside", [y, I]);
22032
22032
  y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), s = !0, setTimeout(function() {
22033
22033
  s = !1;
22034
22034
  }), y.state.isMounted || Ge());
@@ -22042,37 +22042,37 @@ function x9(t, e) {
22042
22042
  f = !1;
22043
22043
  }
22044
22044
  function Ne() {
22045
- var T = F();
22046
- T.addEventListener("mousedown", R, !0), T.addEventListener("touchend", R, rr), T.addEventListener("touchstart", ne, rr), T.addEventListener("touchmove", oe, rr);
22045
+ var I = F();
22046
+ I.addEventListener("mousedown", R, !0), I.addEventListener("touchend", R, rr), I.addEventListener("touchstart", ne, rr), I.addEventListener("touchmove", oe, rr);
22047
22047
  }
22048
22048
  function Ge() {
22049
- var T = F();
22050
- T.removeEventListener("mousedown", R, !0), T.removeEventListener("touchend", R, rr), T.removeEventListener("touchstart", ne, rr), T.removeEventListener("touchmove", oe, rr);
22049
+ var I = F();
22050
+ I.removeEventListener("mousedown", R, !0), I.removeEventListener("touchend", R, rr), I.removeEventListener("touchstart", ne, rr), I.removeEventListener("touchmove", oe, rr);
22051
22051
  }
22052
- function Nn(T, J) {
22053
- Br(T, function() {
22054
- !y.state.isVisible && L.parentNode && L.parentNode.contains(L) && J();
22052
+ function Nn(I, J) {
22053
+ Br(I, function() {
22054
+ !y.state.isVisible && x.parentNode && x.parentNode.contains(x) && J();
22055
22055
  });
22056
22056
  }
22057
- function en(T, J) {
22058
- Br(T, J);
22057
+ function en(I, J) {
22058
+ Br(I, J);
22059
22059
  }
22060
- function Br(T, J) {
22060
+ function Br(I, J) {
22061
22061
  var _ = A().box;
22062
22062
  function se(ie) {
22063
22063
  ie.target === _ && (Nl(_, "remove", se), J());
22064
22064
  }
22065
- if (T === 0)
22065
+ if (I === 0)
22066
22066
  return J();
22067
22067
  Nl(_, "remove", u), Nl(_, "add", se), u = se;
22068
22068
  }
22069
- function kn(T, J, _) {
22069
+ function kn(I, J, _) {
22070
22070
  _ === void 0 && (_ = !1);
22071
22071
  var se = qr(y.props.triggerTarget || t);
22072
22072
  se.forEach(function(ie) {
22073
- ie.addEventListener(T, J, _), h.push({
22073
+ ie.addEventListener(I, J, _), h.push({
22074
22074
  node: ie,
22075
- eventType: T,
22075
+ eventType: I,
22076
22076
  handler: J,
22077
22077
  options: _
22078
22078
  });
@@ -22083,9 +22083,9 @@ function x9(t, e) {
22083
22083
  passive: !0
22084
22084
  }), kn("touchend", ao, {
22085
22085
  passive: !0
22086
- })), e9(y.props.trigger).forEach(function(T) {
22087
- if (T !== "manual")
22088
- switch (kn(T, Ei), T) {
22086
+ })), e9(y.props.trigger).forEach(function(I) {
22087
+ if (I !== "manual")
22088
+ switch (kn(I, Ei), I) {
22089
22089
  case "mouseenter":
22090
22090
  kn("mouseleave", ao);
22091
22091
  break;
@@ -22099,24 +22099,24 @@ function x9(t, e) {
22099
22099
  });
22100
22100
  }
22101
22101
  function ro() {
22102
- h.forEach(function(T) {
22103
- var J = T.node, _ = T.eventType, se = T.handler, ie = T.options;
22102
+ h.forEach(function(I) {
22103
+ var J = I.node, _ = I.eventType, se = I.handler, ie = I.options;
22104
22104
  J.removeEventListener(_, se, ie);
22105
22105
  }), h = [];
22106
22106
  }
22107
- function Ei(T) {
22107
+ function Ei(I) {
22108
22108
  var J, _ = !1;
22109
- if (!(!y.state.isEnabled || zi(T) || s)) {
22109
+ if (!(!y.state.isEnabled || zi(I) || s)) {
22110
22110
  var se = ((J = d) == null ? void 0 : J.type) === "focus";
22111
- d = T, g = T.currentTarget, je(), !y.state.isVisible && i9(T) && jo.forEach(function(ie) {
22112
- return ie(T);
22113
- }), T.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? _ = !0 : Oi(T), T.type === "click" && (o = !_), _ && !se && er(T);
22111
+ d = I, g = I.currentTarget, je(), !y.state.isVisible && i9(I) && jo.forEach(function(ie) {
22112
+ return ie(I);
22113
+ }), I.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? _ = !0 : Oi(I), I.type === "click" && (o = !_), _ && !se && er(I);
22114
22114
  }
22115
22115
  }
22116
- function io(T) {
22117
- var J = T.target, _ = P().contains(J) || L.contains(J);
22118
- if (!(T.type === "mousemove" && _)) {
22119
- var se = Sn().concat(L).map(function(ie) {
22116
+ function io(I) {
22117
+ var J = I.target, _ = P().contains(J) || x.contains(J);
22118
+ if (!(I.type === "mousemove" && _)) {
22119
+ var se = Sn().concat(x).map(function(ie) {
22120
22120
  var Xe, xt = ie._tippy, Ur = (Xe = xt.popperInstance) == null ? void 0 : Xe.state;
22121
22121
  return Ur ? {
22122
22122
  popperRect: ie.getBoundingClientRect(),
@@ -22124,28 +22124,28 @@ function x9(t, e) {
22124
22124
  props: n
22125
22125
  } : null;
22126
22126
  }).filter(Boolean);
22127
- f9(se, T) && (Ve(), er(T));
22127
+ f9(se, I) && (Ve(), er(I));
22128
22128
  }
22129
22129
  }
22130
- function ao(T) {
22131
- var J = zi(T) || y.props.trigger.indexOf("click") >= 0 && o;
22130
+ function ao(I) {
22131
+ var J = zi(I) || y.props.trigger.indexOf("click") >= 0 && o;
22132
22132
  if (!J) {
22133
22133
  if (y.props.interactive) {
22134
- y.hideWithInteractivity(T);
22134
+ y.hideWithInteractivity(I);
22135
22135
  return;
22136
22136
  }
22137
- er(T);
22137
+ er(I);
22138
22138
  }
22139
22139
  }
22140
- function Ai(T) {
22141
- y.props.trigger.indexOf("focusin") < 0 && T.target !== P() || y.props.interactive && T.relatedTarget && L.contains(T.relatedTarget) || er(T);
22140
+ function Ai(I) {
22141
+ y.props.trigger.indexOf("focusin") < 0 && I.target !== P() || y.props.interactive && I.relatedTarget && x.contains(I.relatedTarget) || er(I);
22142
22142
  }
22143
- function zi(T) {
22144
- return Wt.isTouch ? U() !== T.type.indexOf("touch") >= 0 : !1;
22143
+ function zi(I) {
22144
+ return Wt.isTouch ? U() !== I.type.indexOf("touch") >= 0 : !1;
22145
22145
  }
22146
22146
  function oo() {
22147
22147
  so();
22148
- var T = y.props, J = T.popperOptions, _ = T.placement, se = T.offset, ie = T.getReferenceClientRect, Xe = T.moveTransition, xt = Y() ? Cc(L).arrow : null, Ur = ie ? {
22148
+ var I = y.props, J = I.popperOptions, _ = I.placement, se = I.offset, ie = I.getReferenceClientRect, Xe = I.moveTransition, xt = Y() ? Cc(x).arrow : null, Ur = ie ? {
22149
22149
  getBoundingClientRect: ie,
22150
22150
  contextElement: ie.contextElement || P()
22151
22151
  } : t, Mu = {
@@ -22194,7 +22194,7 @@ function x9(t, e) {
22194
22194
  element: xt,
22195
22195
  padding: 3
22196
22196
  }
22197
- }), tr.push.apply(tr, (J == null ? void 0 : J.modifiers) || []), y.popperInstance = $k(Ur, L, Object.assign({}, J, {
22197
+ }), tr.push.apply(tr, (J == null ? void 0 : J.modifiers) || []), y.popperInstance = $k(Ur, x, Object.assign({}, J, {
22198
22198
  placement: _,
22199
22199
  onFirstUpdate: p,
22200
22200
  modifiers: tr
@@ -22204,8 +22204,8 @@ function x9(t, e) {
22204
22204
  y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
22205
22205
  }
22206
22206
  function tn() {
22207
- var T = y.props.appendTo, J, _ = P();
22208
- y.props.interactive && T === i2 || T === "parent" ? J = _.parentNode : J = a2(T, [_]), J.contains(L) || J.appendChild(L), y.state.isMounted = !0, oo(), process.env.NODE_ENV !== "production" && dn(y.props.interactive && T === pt.appendTo && _.nextElementSibling !== L, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
22207
+ var I = y.props.appendTo, J, _ = P();
22208
+ y.props.interactive && I === i2 || I === "parent" ? J = _.parentNode : J = a2(I, [_]), J.contains(x) || J.appendChild(x), y.state.isMounted = !0, oo(), process.env.NODE_ENV !== "production" && dn(y.props.interactive && I === pt.appendTo && _.nextElementSibling !== x, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
22209
22209
 
22210
22210
  `, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
22211
22211
 
@@ -22214,21 +22214,21 @@ function x9(t, e) {
22214
22214
  `, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
22215
22215
  }
22216
22216
  function Sn() {
22217
- return Js(L.querySelectorAll("[data-tippy-root]"));
22217
+ return Js(x.querySelectorAll("[data-tippy-root]"));
22218
22218
  }
22219
- function Oi(T) {
22220
- y.clearDelayTimeouts(), T && le("onTrigger", [y, T]), Ne();
22221
- var J = G(!0), _ = D(), se = _[0], ie = _[1];
22219
+ function Oi(I) {
22220
+ y.clearDelayTimeouts(), I && le("onTrigger", [y, I]), Ne();
22221
+ var J = G(!0), _ = j(), se = _[0], ie = _[1];
22222
22222
  Wt.isTouch && se === "hold" && ie && (J = ie), J ? r = setTimeout(function() {
22223
22223
  y.show();
22224
22224
  }, J) : y.show();
22225
22225
  }
22226
- function er(T) {
22227
- if (y.clearDelayTimeouts(), le("onUntrigger", [y, T]), !y.state.isVisible) {
22226
+ function er(I) {
22227
+ if (y.clearDelayTimeouts(), le("onUntrigger", [y, I]), !y.state.isVisible) {
22228
22228
  Ge();
22229
22229
  return;
22230
22230
  }
22231
- if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(T.type) >= 0 && o)) {
22231
+ if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(I.type) >= 0 && o)) {
22232
22232
  var J = G(!1);
22233
22233
  J ? i = setTimeout(function() {
22234
22234
  y.state.isVisible && y.hide();
@@ -22246,36 +22246,36 @@ function x9(t, e) {
22246
22246
  function lo() {
22247
22247
  clearTimeout(r), clearTimeout(i), cancelAnimationFrame(a);
22248
22248
  }
22249
- function co(T) {
22249
+ function co(I) {
22250
22250
  if (process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("setProps")), !y.state.isDestroyed) {
22251
- le("onBeforeUpdate", [y, T]), ro();
22252
- var J = y.props, _ = Ih(t, Object.assign({}, J, Lh(T), {
22251
+ le("onBeforeUpdate", [y, I]), ro();
22252
+ var J = y.props, _ = Ih(t, Object.assign({}, J, Lh(I), {
22253
22253
  ignoreAttributes: !0
22254
22254
  }));
22255
22255
  y.props = _, Hr(), J.interactiveDebounce !== _.interactiveDebounce && (Ve(), m = Ch(io, _.interactiveDebounce)), J.triggerTarget && !_.triggerTarget ? qr(J.triggerTarget).forEach(function(se) {
22256
22256
  se.removeAttribute("aria-expanded");
22257
22257
  }) : _.triggerTarget && t.removeAttribute("aria-expanded"), je(), $(), k && k(J, _), y.popperInstance && (oo(), Sn().forEach(function(se) {
22258
22258
  requestAnimationFrame(se._tippy.popperInstance.forceUpdate);
22259
- })), le("onAfterUpdate", [y, T]);
22259
+ })), le("onAfterUpdate", [y, I]);
22260
22260
  }
22261
22261
  }
22262
- function uo(T) {
22262
+ function uo(I) {
22263
22263
  y.setProps({
22264
- content: T
22264
+ content: I
22265
22265
  });
22266
22266
  }
22267
22267
  function y4() {
22268
22268
  process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("show"));
22269
- var T = y.state.isVisible, J = y.state.isDestroyed, _ = !y.state.isEnabled, se = Wt.isTouch && !y.props.touch, ie = xl(y.props.duration, 0, pt.duration);
22270
- if (!(T || J || _ || se) && !P().hasAttribute("disabled") && (le("onShow", [y], !1), y.props.onShow(y) !== !1)) {
22271
- if (y.state.isVisible = !0, Y() && (L.style.visibility = "visible"), $(), Ne(), y.state.isMounted || (L.style.transition = "none"), Y()) {
22269
+ var I = y.state.isVisible, J = y.state.isDestroyed, _ = !y.state.isEnabled, se = Wt.isTouch && !y.props.touch, ie = xl(y.props.duration, 0, pt.duration);
22270
+ if (!(I || J || _ || se) && !P().hasAttribute("disabled") && (le("onShow", [y], !1), y.props.onShow(y) !== !1)) {
22271
+ if (y.state.isVisible = !0, Y() && (x.style.visibility = "visible"), $(), Ne(), y.state.isMounted || (x.style.transition = "none"), Y()) {
22272
22272
  var Xe = A(), xt = Xe.box, Ur = Xe.content;
22273
22273
  Ll([xt, Ur], 0);
22274
22274
  }
22275
22275
  p = function() {
22276
22276
  var tr;
22277
22277
  if (!(!y.state.isVisible || l)) {
22278
- if (l = !0, L.offsetHeight, L.style.transition = y.props.moveTransition, Y() && y.props.animation) {
22278
+ if (l = !0, x.offsetHeight, x.style.transition = y.props.moveTransition, Y() && y.props.animation) {
22279
22279
  var _f = A(), ho = _f.box, Fr = _f.content;
22280
22280
  Ll([ho, Fr], ie), Nh([ho, Fr], "visible");
22281
22281
  }
@@ -22288,23 +22288,23 @@ function x9(t, e) {
22288
22288
  }
22289
22289
  function M4() {
22290
22290
  process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("hide"));
22291
- var T = !y.state.isVisible, J = y.state.isDestroyed, _ = !y.state.isEnabled, se = xl(y.props.duration, 1, pt.duration);
22292
- if (!(T || J || _) && (le("onHide", [y], !1), y.props.onHide(y) !== !1)) {
22293
- if (y.state.isVisible = !1, y.state.isShown = !1, l = !1, o = !1, Y() && (L.style.visibility = "hidden"), Ve(), Ge(), $(!0), Y()) {
22291
+ var I = !y.state.isVisible, J = y.state.isDestroyed, _ = !y.state.isEnabled, se = xl(y.props.duration, 1, pt.duration);
22292
+ if (!(I || J || _) && (le("onHide", [y], !1), y.props.onHide(y) !== !1)) {
22293
+ if (y.state.isVisible = !1, y.state.isShown = !1, l = !1, o = !1, Y() && (x.style.visibility = "hidden"), Ve(), Ge(), $(!0), Y()) {
22294
22294
  var ie = A(), Xe = ie.box, xt = ie.content;
22295
22295
  y.props.animation && (Ll([Xe, xt], se), Nh([Xe, xt], "hidden"));
22296
22296
  }
22297
22297
  Pe(), je(), y.props.animation ? Y() && Nn(se, y.unmount) : y.unmount();
22298
22298
  }
22299
22299
  }
22300
- function C4(T) {
22301
- process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("hideWithInteractivity")), F().addEventListener("mousemove", m), xh(jo, m), m(T);
22300
+ function C4(I) {
22301
+ process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("hideWithInteractivity")), F().addEventListener("mousemove", m), xh(jo, m), m(I);
22302
22302
  }
22303
22303
  function x4() {
22304
- process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (so(), Sn().forEach(function(T) {
22305
- T._tippy.unmount();
22306
- }), L.parentNode && L.parentNode.removeChild(L), kl = kl.filter(function(T) {
22307
- return T !== y;
22304
+ process.env.NODE_ENV !== "production" && dn(y.state.isDestroyed, Qr("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (so(), Sn().forEach(function(I) {
22305
+ I._tippy.unmount();
22306
+ }), x.parentNode && x.parentNode.removeChild(x), kl = kl.filter(function(I) {
22307
+ return I !== y;
22308
22308
  }), y.state.isMounted = !1, le("onHidden", [y]));
22309
22309
  }
22310
22310
  function L4() {
@@ -22367,7 +22367,7 @@ const u2 = H1((t, e) => {
22367
22367
  }, s = () => {
22368
22368
  i(n);
22369
22369
  };
22370
- return pe(() => {
22370
+ return de(() => {
22371
22371
  r(0);
22372
22372
  }, [t.items]), Iv(e, () => ({
22373
22373
  onKeyDown: ({ event: f }) => f.key === "ArrowUp" ? (a(), !0) : f.key === "ArrowDown" ? (o(), !0) : f.key === "Enter" ? (s(), !0) : !1
@@ -22641,15 +22641,15 @@ function A9(t, e, n, r) {
22641
22641
  const i = Mf(t, e, r);
22642
22642
  return t.append("}"), i;
22643
22643
  }
22644
- function he() {
22645
- return he = Object.assign ? Object.assign.bind() : function(t) {
22644
+ function pe() {
22645
+ return pe = Object.assign ? Object.assign.bind() : function(t) {
22646
22646
  for (var e = 1; e < arguments.length; e++) {
22647
22647
  var n = arguments[e];
22648
22648
  for (var r in n)
22649
22649
  Object.prototype.hasOwnProperty.call(n, r) && (t[r] = n[r]);
22650
22650
  }
22651
22651
  return t;
22652
- }, he.apply(this, arguments);
22652
+ }, pe.apply(this, arguments);
22653
22653
  }
22654
22654
  function z9(t, e) {
22655
22655
  t.prototype = Object.create(e.prototype), t.prototype.constructor = t, Nc(t, e);
@@ -22715,7 +22715,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
22715
22715
  visibility: "hidden",
22716
22716
  overflow: "hidden"
22717
22717
  }, _d = /* @__PURE__ */ ve.create({
22718
- hidden: /* @__PURE__ */ he({
22718
+ hidden: /* @__PURE__ */ pe({
22719
22719
  ".": re.hidden
22720
22720
  }, Yo)
22721
22721
  }), R9 = /* @__PURE__ */ Jc(function() {
@@ -22734,7 +22734,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
22734
22734
  backgroundPositionY: "var(--epr-category-navigation-button-size)"
22735
22735
  }
22736
22736
  },
22737
- hiddenOnSearch: /* @__PURE__ */ he({
22737
+ hiddenOnSearch: /* @__PURE__ */ pe({
22738
22738
  ".": re.hiddenOnSearch
22739
22739
  }, Yo)
22740
22740
  },
@@ -22765,7 +22765,7 @@ var ve = /* @__PURE__ */ D9("epr", null), Yo = {
22765
22765
  backgroundPositionY: "var(--epr-category-navigation-button-size)"
22766
22766
  }
22767
22767
  },
22768
- visibleOnSearchOnly: /* @__PURE__ */ he({
22768
+ visibleOnSearchOnly: /* @__PURE__ */ pe({
22769
22769
  ".": "epr-visible-on-search-only"
22770
22770
  }, Yo)
22771
22771
  }
@@ -22844,7 +22844,7 @@ function F9(t, e) {
22844
22844
  return dS(t) > e;
22845
22845
  }
22846
22846
  function J9(t) {
22847
- pe(function() {
22847
+ de(function() {
22848
22848
  t(!0);
22849
22849
  }, [t]);
22850
22850
  }
@@ -22873,8 +22873,8 @@ var Mi;
22873
22873
  t.SEARCH = "SEARCH", t.PREVIEW = "PREVIEW";
22874
22874
  })(Mi || (Mi = {}));
22875
22875
  function Y9(t) {
22876
- var e = t.children, n = k2(), r = SS(), i = RS(), a = De(ma), o = De(!1), s = De(!1), f = De(n), l = zh(Date.now(), 200), d = zh("", 100), u = ee(!1), p = ee(r), h = ee(null), m = ee(/* @__PURE__ */ new Set()), g = ee(null), b = ee(i), w = ee(!1), C = w[0], x = w[1], y = ee([]), N = ee(null);
22877
- return J9(x), O(yt.Provider, {
22876
+ var e = t.children, n = k2(), r = SS(), i = RS(), a = De(ma), o = De(!1), s = De(!1), f = De(n), l = zh(Date.now(), 200), d = zh("", 100), u = ee(!1), p = ee(r), h = ee(null), m = ee(/* @__PURE__ */ new Set()), g = ee(null), b = ee(i), w = ee(!1), C = w[0], L = w[1], y = ee([]), N = ee(null);
22877
+ return J9(L), O(yt.Provider, {
22878
22878
  value: {
22879
22879
  activeCategoryState: h,
22880
22880
  activeSkinTone: p,
@@ -23018,7 +23018,7 @@ var Nt, V9 = [X.SUGGESTED, X.CUSTOM, X.SMILEYS_PEOPLE, X.ANIMALS_NATURE, X.FOOD_
23018
23018
  }, Nt);
23019
23019
  function D2(t) {
23020
23020
  return V9.map(function(e) {
23021
- return he({}, j2[e], t && t[e] && t[e]);
23021
+ return pe({}, j2[e], t && t[e] && t[e]);
23022
23022
  });
23023
23023
  }
23024
23024
  function Lf(t) {
@@ -23034,7 +23034,7 @@ function _9(t, e) {
23034
23034
  e.suggestionMode === Ba.RECENT && (r[X.SUGGESTED] = G9);
23035
23035
  var i = D2(r);
23036
23036
  return (n = t) != null && n.length ? t.map(function(a) {
23037
- return typeof a == "string" ? Oh(a, r[a]) : he({}, Oh(a.category, r[a.category]), a);
23037
+ return typeof a == "string" ? Oh(a, r[a]) : pe({}, Oh(a.category, r[a.category]), a);
23038
23038
  }) : i;
23039
23039
  }
23040
23040
  function Oh(t, e) {
@@ -39987,7 +39987,7 @@ function Ph(t) {
39987
39987
  a.unicodeToHide.add(f);
39988
39988
  }), hS((n = a.customEmojis) != null ? n : []);
39989
39989
  var s = a.searchDisabled ? Mi.PREVIEW : a.skinTonePickerLocation;
39990
- return he({}, a, {
39990
+ return pe({}, a, {
39991
39991
  categories: o,
39992
39992
  previewConfig: i,
39993
39993
  skinTonePickerLocation: s
@@ -40005,7 +40005,7 @@ function H2() {
40005
40005
  getEmojiUrl: P2,
40006
40006
  height: 450,
40007
40007
  lazyLoadEmojis: !1,
40008
- previewConfig: he({}, yS),
40008
+ previewConfig: pe({}, yS),
40009
40009
  searchDisabled: !1,
40010
40010
  searchPlaceHolder: Gs,
40011
40011
  searchPlaceholder: Gs,
@@ -40039,7 +40039,7 @@ function xS(t) {
40039
40039
  var e, n = ee(function() {
40040
40040
  return Ph(t);
40041
40041
  }), r = n[0], i = n[1];
40042
- return pe(function() {
40042
+ return de(function() {
40043
40043
  L2(r, t) || i(Ph(t));
40044
40044
  }, [(e = t.customEmojis) == null ? void 0 : e.length, t.open, t.emojiVersion, t.reactionsDefaultOpen, t.searchPlaceHolder, t.searchPlaceholder, t.searchClearButtonLabel, t.defaultSkinTone, t.skinTonesDisabled, t.autoFocusSearch, t.emojiStyle, t.theme, t.suggestedEmojisMode, t.lazyLoadEmojis, t.className, t.height, t.width, t.searchDisabled, t.skinTonePickerLocation, t.allowExpandReactions]), r;
40045
40045
  }
@@ -40161,7 +40161,7 @@ function OS() {
40161
40161
  }
40162
40162
  function PS() {
40163
40163
  var t = ye(), e = t.height, n = t.width, r = t.style;
40164
- return he({
40164
+ return pe({
40165
40165
  height: Rh(e),
40166
40166
  width: Rh(n)
40167
40167
  }, r);
@@ -40429,7 +40429,7 @@ function ib() {
40429
40429
  }
40430
40430
  function nT() {
40431
40431
  var t = Ct(), e = rb(), n = ib();
40432
- pe(function() {
40432
+ de(function() {
40433
40433
  var r = t.current;
40434
40434
  r == null || r.addEventListener("mousemove", i, {
40435
40435
  passive: !0
@@ -40593,7 +40593,7 @@ function pT() {
40593
40593
  }
40594
40594
  };
40595
40595
  }, [n, e, s, i, a, o]);
40596
- pe(function() {
40596
+ de(function() {
40597
40597
  var l = t.current;
40598
40598
  if (l)
40599
40599
  return l.addEventListener("keydown", f), function() {
@@ -40620,7 +40620,7 @@ function mT() {
40620
40620
  }
40621
40621
  };
40622
40622
  }, [t, o, a, n, s]);
40623
- pe(function() {
40623
+ de(function() {
40624
40624
  var l = r.current;
40625
40625
  if (l)
40626
40626
  return l.addEventListener("keydown", f), function() {
@@ -40672,7 +40672,7 @@ function gT() {
40672
40672
  })
40673
40673
  );
40674
40674
  }, [a, e, o, r, l, s, f]);
40675
- pe(function() {
40675
+ de(function() {
40676
40676
  var u = t.current;
40677
40677
  if (u)
40678
40678
  return u.addEventListener("keydown", d), function() {
@@ -40703,7 +40703,7 @@ function bT() {
40703
40703
  }
40704
40704
  };
40705
40705
  }, [n, t, r]);
40706
- pe(function() {
40706
+ de(function() {
40707
40707
  var a = e.current;
40708
40708
  if (a)
40709
40709
  return a.addEventListener("keydown", i), function() {
@@ -40748,7 +40748,7 @@ function vT() {
40748
40748
  })
40749
40749
  );
40750
40750
  }, [e, a, n, r, i]);
40751
- pe(function() {
40751
+ de(function() {
40752
40752
  var s = t.current;
40753
40753
  if (s)
40754
40754
  return s.addEventListener("keydown", o), function() {
@@ -40812,7 +40812,7 @@ function CT(t) {
40812
40812
  }
40813
40813
  function xT() {
40814
40814
  var t = Ct(), e = zr(), n = Or();
40815
- pe(function() {
40815
+ de(function() {
40816
40816
  if (e === mt.NATIVE)
40817
40817
  return;
40818
40818
  var r = t.current;
@@ -40840,7 +40840,7 @@ function kT(t) {
40840
40840
  return O("aside", {
40841
40841
  className: te(Yi.main, Yi.baseVariables, a === Ha.DARK && Yi.darkTheme, a === Ha.AUTO && Yi.autoThemeDark, (e = {}, e[re.searchActive] = o, e), i && Yi.reactionsMenu, f),
40842
40842
  ref: s,
40843
- style: he({}, h, !i && {
40843
+ style: pe({}, h, !i && {
40844
40844
  height: p,
40845
40845
  width: u
40846
40846
  })
@@ -41161,28 +41161,28 @@ function Lb(t) {
41161
41161
  return t.imgUrl !== void 0;
41162
41162
  }
41163
41163
  function Nb(t, e) {
41164
- var n = De(), r = sb(), i = Q9(), a = Si(), o = a[1], s = Pr(), f = xf(), l = f[0], d = DS(e), u = I2(), p = u[1], h = Or(), m = zr(), g = Ue(function(x) {
41164
+ var n = De(), r = sb(), i = Q9(), a = Si(), o = a[1], s = Pr(), f = xf(), l = f[0], d = DS(e), u = I2(), p = u[1], h = Or(), m = zr(), g = Ue(function(L) {
41165
41165
  if (!i.current) {
41166
41166
  s();
41167
- var y = Vh(x), N = y[0], L = y[1];
41168
- if (!(!N || !L)) {
41169
- var k = mS(L) || l;
41170
- p(), cS(N, k), d(PT(N, k, m, h), x);
41167
+ var y = Vh(L), N = y[0], x = y[1];
41168
+ if (!(!N || !x)) {
41169
+ var k = mS(x) || l;
41170
+ p(), cS(N, k), d(PT(N, k, m, h), L);
41171
41171
  }
41172
41172
  }
41173
- }, [l, s, i, d, p, h, m]), b = Ue(function(x) {
41173
+ }, [l, s, i, d, p, h, m]), b = Ue(function(L) {
41174
41174
  var y;
41175
41175
  n.current && clearTimeout(n.current);
41176
- var N = Vh(x), L = N[0];
41177
- !L || !Ti(L) || (n.current = (y = window) == null ? void 0 : y.setTimeout(function() {
41178
- i.current = !0, n.current = void 0, s(), r(x.target), o(L);
41176
+ var N = Vh(L), x = N[0];
41177
+ !x || !Ti(x) || (n.current = (y = window) == null ? void 0 : y.setTimeout(function() {
41178
+ i.current = !0, n.current = void 0, s(), r(L.target), o(x);
41179
41179
  }, 500));
41180
41180
  }, [i, s, r, o]), w = Ue(function() {
41181
41181
  n.current ? (clearTimeout(n.current), n.current = void 0) : i.current && requestAnimationFrame(function() {
41182
41182
  i.current = !1;
41183
41183
  });
41184
41184
  }, [i]);
41185
- pe(function() {
41185
+ de(function() {
41186
41186
  if (t.current) {
41187
41187
  var C = t.current;
41188
41188
  return C.addEventListener("click", g, {
@@ -41438,7 +41438,7 @@ function QT() {
41438
41438
  }
41439
41439
  });
41440
41440
  }
41441
- var VT = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
41441
+ var VT = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
41442
41442
  plusSign: {
41443
41443
  fontSize: "20px",
41444
41444
  padding: "17px",
@@ -41531,7 +41531,7 @@ var _h = /* @__PURE__ */ ve.create({
41531
41531
  });
41532
41532
  function _T(t) {
41533
41533
  var e = Pr(), n = ee(0), r = n[0], i = n[1];
41534
- return pe(function() {
41534
+ return de(function() {
41535
41535
  var a = t.current;
41536
41536
  if (!a)
41537
41537
  return;
@@ -41569,23 +41569,23 @@ function qT(t) {
41569
41569
  b && (a.current = b);
41570
41570
  var w = l || b || a.current || ZT, C = m.clientWidth;
41571
41571
  if (!(C === 0 || w === 0)) {
41572
- var x = Math.max(1, Math.floor(C / w)), y = Math.ceil(t / x), N = y * w;
41572
+ var L = Math.max(1, Math.floor(C / w)), y = Math.ceil(t / L), N = y * w;
41573
41573
  p({
41574
41574
  categoryHeight: N,
41575
- emojisPerRow: x,
41575
+ emojisPerRow: L,
41576
41576
  emojiSize: w
41577
41577
  });
41578
41578
  }
41579
41579
  }
41580
41580
  }, [e, t, l]);
41581
- return pe(function() {
41581
+ return de(function() {
41582
41582
  h();
41583
- }, [t, r, h, s.length]), pe(function() {
41583
+ }, [t, r, h, s.length]), de(function() {
41584
41584
  var m = i.current;
41585
41585
  if (m) {
41586
41586
  var g = function(w) {
41587
- var C = w, x = C.propertyName;
41588
- (x === "width" || x === "max-width" || x === "min-width" || x === "height" || x === "max-height" || x === "min-height") && (typeof queueMicrotask == "function" ? queueMicrotask(function() {
41587
+ var C = w, L = C.propertyName;
41588
+ (L === "width" || L === "max-width" || L === "min-width" || L === "height" || L === "max-height" || L === "min-height") && (typeof queueMicrotask == "function" ? queueMicrotask(function() {
41589
41589
  return h();
41590
41590
  }) : requestAnimationFrame(function() {
41591
41591
  return h();
@@ -41612,26 +41612,26 @@ function KT() {
41612
41612
  }
41613
41613
  function XT(t) {
41614
41614
  var e = t.categoryEmojis, n = t.topOffset, r = t.onHeightReady, i = t.scrollTop, a = t.isCategoryVisible, o = KT(), s = G2(), f = zr(), l = xf(), d = l[0], u = U9(), p = Or(), h = !Q2(), m = Ct(), g = 0, b = e.filter(function(y) {
41615
- var N = u(y), L = o(y), k = L.failedToLoad, S = L.filteredOut, I = L.hidden;
41616
- return !k && !S && !I && !N;
41615
+ var N = u(y), x = o(y), k = x.failedToLoad, S = x.filteredOut, T = x.hidden;
41616
+ return !k && !S && !T && !N;
41617
41617
  }), w = qT(b.length);
41618
- pe(function() {
41618
+ de(function() {
41619
41619
  w && r(w.categoryHeight);
41620
41620
  }, [w, r, b.length]);
41621
41621
  var C = function(N) {
41622
- var L, k;
41622
+ var x, k;
41623
41623
  return w && m.current && WT({
41624
41624
  scrollTop: i,
41625
- clientHeight: (L = (k = m.current) == null ? void 0 : k.clientHeight) != null ? L : 0,
41625
+ clientHeight: (x = (k = m.current) == null ? void 0 : k.clientHeight) != null ? x : 0,
41626
41626
  topOffset: n,
41627
41627
  style: N,
41628
41628
  dimensions: w
41629
41629
  });
41630
- }, x = b.reduce(function(y, N, L) {
41631
- var k = Fe(N, d), S = $T(w, L);
41630
+ }, L = b.reduce(function(y, N, x) {
41631
+ var k = Fe(N, d), S = $T(w, x);
41632
41632
  if (C(S)) {
41633
- var I, D;
41634
- return g++, MT(N, f, i, (I = (D = m.current) == null ? void 0 : D.clientHeight) != null ? I : 0, n, S, w, p), y;
41633
+ var T, j;
41634
+ return g++, MT(N, f, i, (T = (j = m.current) == null ? void 0 : j.clientHeight) != null ? T : 0, n, S, w, p), y;
41635
41635
  }
41636
41636
  return a ? (y.push(O(Ef, {
41637
41637
  showVariations: h,
@@ -41641,14 +41641,14 @@ function XT(t) {
41641
41641
  emojiStyle: f,
41642
41642
  lazyLoad: s,
41643
41643
  getEmojiUrl: p,
41644
- style: he({}, S, {
41644
+ style: pe({}, S, {
41645
41645
  position: "absolute"
41646
41646
  })
41647
41647
  })), y) : (g++, y);
41648
41648
  }, []);
41649
41649
  return {
41650
41650
  virtualizedCounter: g,
41651
- emojis: x,
41651
+ emojis: L,
41652
41652
  dimensions: w
41653
41653
  };
41654
41654
  }
@@ -41747,7 +41747,7 @@ function nI(t) {
41747
41747
  onHeightReady: function(g) {
41748
41748
  i[u] !== g && a(function(b) {
41749
41749
  var w;
41750
- return he({}, b, (w = {}, w[u] = g, w));
41750
+ return pe({}, b, (w = {}, w[u] = g, w));
41751
41751
  });
41752
41752
  },
41753
41753
  scrollTop: e
@@ -41783,7 +41783,7 @@ var iI = /* @__PURE__ */ ve.create({
41783
41783
  })(ai || (ai = {}));
41784
41784
  function oI() {
41785
41785
  var t = Sf(), e = QS(), n = Si(), r = n[0], i = zr(), a = fI(e), o = a.getTop, s = a.getMenuDirection, f = eb(), l = sI(e), d = Or(), u = Qt(t.current), p = !!(r && u && Ti(r) && u.classList.contains(re.emojiHasVariations));
41786
- pe(function() {
41786
+ de(function() {
41787
41787
  p && If(e.current);
41788
41788
  }, [e, p, t]);
41789
41789
  var h, m;
@@ -41846,7 +41846,7 @@ function fI(t) {
41846
41846
  return o - s;
41847
41847
  }
41848
41848
  }
41849
- var Eo = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
41849
+ var Eo = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
41850
41850
  variationPicker: {
41851
41851
  ".": re.variationPicker,
41852
41852
  position: "absolute",
@@ -41928,7 +41928,7 @@ function dI(t, e) {
41928
41928
  }
41929
41929
  function uI(t, e) {
41930
41930
  var n = Ct(), r = ib(), i = rb();
41931
- pe(function() {
41931
+ de(function() {
41932
41932
  if (!t)
41933
41933
  return;
41934
41934
  var a = n.current;
@@ -41990,7 +41990,7 @@ var Ao, Ya;
41990
41990
  function kb(t) {
41991
41991
  var e = t.children, n = t.className, r = t.style, i = r === void 0 ? {} : r, a = t.direction, o = a === void 0 ? Ya.ROW : a;
41992
41992
  return O("div", {
41993
- style: he({}, i),
41993
+ style: pe({}, i),
41994
41994
  className: te(Wh.flex, n, Wh[o])
41995
41995
  }, e);
41996
41996
  }
@@ -42006,7 +42006,7 @@ var Wh = /* @__PURE__ */ ve.create((Ao = {
42006
42006
  function pI(t) {
42007
42007
  var e = t.className, n = t.style, r = n === void 0 ? {} : n;
42008
42008
  return O("div", {
42009
- style: he({
42009
+ style: pe({
42010
42010
  flex: 1
42011
42011
  }, r),
42012
42012
  className: te(e)
@@ -42015,7 +42015,7 @@ function pI(t) {
42015
42015
  function mI(t) {
42016
42016
  var e = t.children, n = t.className, r = t.style;
42017
42017
  return O("div", {
42018
- style: he({}, r, {
42018
+ style: pe({}, r, {
42019
42019
  position: "absolute"
42020
42020
  }),
42021
42021
  className: n
@@ -42024,7 +42024,7 @@ function mI(t) {
42024
42024
  function Af(t) {
42025
42025
  var e = t.children, n = t.className, r = t.style;
42026
42026
  return O("div", {
42027
- style: he({}, r, {
42027
+ style: pe({}, r, {
42028
42028
  position: "relative"
42029
42029
  }),
42030
42030
  className: n
@@ -42120,15 +42120,15 @@ function Sb(t) {
42120
42120
  className: te(Qi.select),
42121
42121
  ref: r
42122
42122
  }, Vs.map(function(w, C) {
42123
- var x = w === l;
42123
+ var L = w === l;
42124
42124
  return O(gI, {
42125
42125
  key: w,
42126
42126
  skinToneVariation: w,
42127
42127
  isOpen: o,
42128
42128
  style: {
42129
- transform: te(b ? "translateY(-" + C * (o ? $i : 0) + "px)" : "translateX(-" + C * (o ? $i : 0) + "px)", o && x && "scale(1.3)")
42129
+ transform: te(b ? "translateY(-" + C * (o ? $i : 0) + "px)" : "translateX(-" + C * (o ? $i : 0) + "px)", o && L && "scale(1.3)")
42130
42130
  },
42131
- isActive: x,
42131
+ isActive: L,
42132
42132
  onClick: function() {
42133
42133
  o ? (d(w), u(w), h()) : s(!0), p();
42134
42134
  }
@@ -42240,7 +42240,7 @@ function yI(t) {
42240
42240
  }
42241
42241
  function MI(t) {
42242
42242
  var e = t.setActiveCategory, n = t.setVisibleCategories, r = Ct();
42243
- pe(function() {
42243
+ de(function() {
42244
42244
  var i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = r.current, s = new IntersectionObserver(function(f) {
42245
42245
  if (o) {
42246
42246
  for (var l = P9(f), d; !(d = l()).done; ) {
@@ -42248,20 +42248,20 @@ function MI(t) {
42248
42248
  p && (i.set(p, u.intersectionRatio), a.set(p, u.isIntersecting));
42249
42249
  }
42250
42250
  var h = Array.from(i), m = h.filter(function(N) {
42251
- var L = N[0], k = N[1];
42252
- return k > 0 || a.get(L);
42251
+ var x = N[0], k = N[1];
42252
+ return k > 0 || a.get(x);
42253
42253
  }).map(function(N) {
42254
- var L = N[0];
42255
- return L;
42254
+ var x = N[0];
42255
+ return x;
42256
42256
  });
42257
42257
  n(m);
42258
42258
  var g = h[h.length - 1];
42259
42259
  if ((g == null ? void 0 : g[1]) == 1)
42260
42260
  return e(g[0]);
42261
42261
  for (var b = 0, w = h; b < w.length; b++) {
42262
- var C = w[b], x = C[0], y = C[1];
42262
+ var C = w[b], L = C[0], y = C[1];
42263
42263
  if (y) {
42264
- e(x);
42264
+ e(L);
42265
42265
  break;
42266
42266
  }
42267
42267
  }
@@ -42318,7 +42318,7 @@ var $h = {
42318
42318
  "&.epr-active": $h
42319
42319
  }
42320
42320
  }
42321
- }, SI = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42321
+ }, SI = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42322
42322
  catBtn: {
42323
42323
  ".": "epr-cat-btn",
42324
42324
  display: "inline-block",
@@ -42372,8 +42372,8 @@ var $h = {
42372
42372
  }
42373
42373
  }
42374
42374
  }, /* @__PURE__ */ Gn("catBtn", kI), {
42375
- ".epr-dark-theme": /* @__PURE__ */ he({}, Zh),
42376
- ".epr-auto-theme": /* @__PURE__ */ he({}, Zh)
42375
+ ".epr-dark-theme": /* @__PURE__ */ pe({}, Zh),
42376
+ ".epr-auto-theme": /* @__PURE__ */ pe({}, Zh)
42377
42377
  }));
42378
42378
  function TI() {
42379
42379
  var t = ee(null), e = t[0], n = t[1], r = Zd(), i = r[1], a = CI();
@@ -42447,7 +42447,7 @@ var DI = {
42447
42447
  backgroundPositionY: "-60px"
42448
42448
  }
42449
42449
  }
42450
- }, qh = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42450
+ }, qh = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42451
42451
  btnClearSearch: {
42452
42452
  ".": "epr-btn-clear-search",
42453
42453
  position: "absolute",
@@ -42491,7 +42491,7 @@ function AI() {
42491
42491
  className: te(zI.icnSearch)
42492
42492
  });
42493
42493
  }
42494
- var zI = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42494
+ var zI = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42495
42495
  icnSearch: {
42496
42496
  ".": "epr-icn-search",
42497
42497
  content: "",
@@ -42541,7 +42541,7 @@ function PI() {
42541
42541
  "aria-atomic": "true"
42542
42542
  }, a) : null, O(AI, null), O(jI, null));
42543
42543
  }
42544
- var Qo = /* @__PURE__ */ ve.create(/* @__PURE__ */ he({
42544
+ var Qo = /* @__PURE__ */ ve.create(/* @__PURE__ */ pe({
42545
42545
  overlay: {
42546
42546
  padding: "var(--epr-header-padding)",
42547
42547
  zIndex: "var(--epr-header-overlay-z-index)"
@@ -42631,7 +42631,7 @@ function BI(t) {
42631
42631
  }
42632
42632
  function HI() {
42633
42633
  var t = Ar(), e = t[0], n = Y2(), r = ee(!e), i = r[0], a = r[1], o = jS();
42634
- return pe(function() {
42634
+ return de(function() {
42635
42635
  e && !n || i || a(!0);
42636
42636
  }, [i, n, e]), o ? O(NT, null, O(GT, null), O(UI, {
42637
42637
  renderAll: i
@@ -42758,7 +42758,7 @@ const YI = ({ role: t }) => {
42758
42758
  onSubmit: e,
42759
42759
  users: n = []
42760
42760
  }) => {
42761
- const [r, i] = j.useState(!1), [a, o] = j.useState(!1), [s, f] = j.useState([]), [l, d] = j.useState(!0), u = j.useRef(null), p = j.useMemo(() => [
42761
+ const [r, i] = D.useState(!1), [a, o] = D.useState(!1), [s, f] = D.useState([]), [l, d] = D.useState(!0), u = D.useRef(null), p = D.useMemo(() => [
42762
42762
  Jg.configure({
42763
42763
  // @ts-ignore
42764
42764
  link: !1,
@@ -42779,12 +42779,12 @@ const YI = ({ role: t }) => {
42779
42779
  render: () => {
42780
42780
  let w, C;
42781
42781
  return {
42782
- onStart: (x) => {
42782
+ onStart: (L) => {
42783
42783
  w = new tL(u2, {
42784
- props: x,
42785
- editor: x.editor
42786
- }), x.clientRect && (C = Ka("body", {
42787
- getReferenceClientRect: x.clientRect,
42784
+ props: L,
42785
+ editor: L.editor
42786
+ }), L.clientRect && (C = Ka("body", {
42787
+ getReferenceClientRect: L.clientRect,
42788
42788
  appendTo: () => document.body,
42789
42789
  content: w.element,
42790
42790
  showOnCreate: !0,
@@ -42793,14 +42793,14 @@ const YI = ({ role: t }) => {
42793
42793
  placement: "bottom-start"
42794
42794
  }));
42795
42795
  },
42796
- onUpdate(x) {
42797
- w.updateProps(x), x.clientRect && C[0].setProps({
42798
- getReferenceClientRect: x.clientRect
42796
+ onUpdate(L) {
42797
+ w.updateProps(L), L.clientRect && C[0].setProps({
42798
+ getReferenceClientRect: L.clientRect
42799
42799
  });
42800
42800
  },
42801
- onKeyDown(x) {
42801
+ onKeyDown(L) {
42802
42802
  var y;
42803
- return x.event.key === "Escape" ? (C[0].hide(), !0) : (y = w.ref) == null ? void 0 : y.onKeyDown(x);
42803
+ return L.event.key === "Escape" ? (C[0].hide(), !0) : (y = w.ref) == null ? void 0 : y.onKeyDown(L);
42804
42804
  },
42805
42805
  onExit() {
42806
42806
  C[0].destroy(), w.destroy();
@@ -42822,10 +42822,10 @@ const YI = ({ role: t }) => {
42822
42822
  }
42823
42823
  }), m = (w) => {
42824
42824
  if (w.target.files && w.target.files[0]) {
42825
- const C = w.target.files[0], x = URL.createObjectURL(C), y = {
42825
+ const C = w.target.files[0], L = URL.createObjectURL(C), y = {
42826
42826
  id: Math.random().toString(36).substr(2, 9),
42827
42827
  name: C.name,
42828
- url: x,
42828
+ url: L,
42829
42829
  type: C.type.startsWith("image/") ? "image" : "file"
42830
42830
  };
42831
42831
  f([...s, y]), w.target.value = "";
@@ -43318,29 +43318,29 @@ function Ws({
43318
43318
  showIcon: l = !0,
43319
43319
  variant: d = "input"
43320
43320
  }) {
43321
- const [u, p] = j.useMemo(() => {
43321
+ const [u, p] = D.useMemo(() => {
43322
43322
  if (!t) return ["", ""];
43323
43323
  const [w, C] = t.split(":");
43324
43324
  return [w || "", C || ""];
43325
- }, [t]), [h, m] = j.useState(() => u && parseInt(u) >= 12 ? "PM" : "AM"), g = (w, C, x) => {
43325
+ }, [t]), [h, m] = D.useState(() => u && parseInt(u) >= 12 ? "PM" : "AM"), g = (w, C, L) => {
43326
43326
  if (!w || !C) return;
43327
43327
  let y = parseInt(w);
43328
43328
  const N = parseInt(C);
43329
- n === "12h" && x && (y = ZI(y, x));
43330
- const L = `${y.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
43331
- e1(L, i, a) && (e == null || e(L));
43329
+ n === "12h" && L && (y = ZI(y, L));
43330
+ const x = `${y.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
43331
+ e1(x, i, a) && (e == null || e(x));
43332
43332
  }, b = (w) => {
43333
- const x = w.target.value.replace(/[^\d:]/g, "");
43334
- if (x.length === 2 && !x.includes(":")) {
43335
- const y = x + ":";
43333
+ const L = w.target.value.replace(/[^\d:]/g, "");
43334
+ if (L.length === 2 && !L.includes(":")) {
43335
+ const y = L + ":";
43336
43336
  e == null || e(y);
43337
43337
  return;
43338
43338
  }
43339
- if (x.match(/^\d{2}:\d{2}$/)) {
43340
- const [y, N] = x.split(":").map(Number);
43341
- y >= 0 && y <= 23 && N >= 0 && N <= 59 && e1(x, i, a) && (e == null || e(x));
43339
+ if (L.match(/^\d{2}:\d{2}$/)) {
43340
+ const [y, N] = L.split(":").map(Number);
43341
+ y >= 0 && y <= 23 && N >= 0 && N <= 59 && e1(L, i, a) && (e == null || e(L));
43342
43342
  } else
43343
- e == null || e(x);
43343
+ e == null || e(L);
43344
43344
  };
43345
43345
  if (d === "input")
43346
43346
  return /* @__PURE__ */ v("div", { className: M("relative", f), children: [
@@ -43359,13 +43359,13 @@ function Ws({
43359
43359
  )
43360
43360
  ] });
43361
43361
  if (d === "select") {
43362
- const w = Kh(n), C = Xh(r), x = n === "12h" && u ? $I(parseInt(u)).hour.toString().padStart(2, "0") : u;
43362
+ const w = Kh(n), C = Xh(r), L = n === "12h" && u ? $I(parseInt(u)).hour.toString().padStart(2, "0") : u;
43363
43363
  return /* @__PURE__ */ v("div", { className: M("flex items-center gap-2", f), children: [
43364
43364
  l && /* @__PURE__ */ c(ei, { className: "size-4 text-muted-foreground" }),
43365
43365
  /* @__PURE__ */ v(
43366
43366
  un,
43367
43367
  {
43368
- value: x,
43368
+ value: L,
43369
43369
  onValueChange: (y) => {
43370
43370
  g(y, p || "00", n === "12h" ? h : void 0);
43371
43371
  },
@@ -43419,11 +43419,11 @@ function Ws({
43419
43419
  un,
43420
43420
  {
43421
43421
  value: u,
43422
- onValueChange: (x) => g(x, p || "00", n === "12h" ? h : void 0),
43422
+ onValueChange: (L) => g(L, p || "00", n === "12h" ? h : void 0),
43423
43423
  disabled: o,
43424
43424
  children: [
43425
43425
  /* @__PURE__ */ c(pn, { className: "w-[65px] h-8 text-sm", children: /* @__PURE__ */ c(hn, { placeholder: "HH" }) }),
43426
- /* @__PURE__ */ c(mn, { children: w.map((x) => /* @__PURE__ */ c(Ut, { value: x, children: x }, x)) })
43426
+ /* @__PURE__ */ c(mn, { children: w.map((L) => /* @__PURE__ */ c(Ut, { value: L, children: L }, L)) })
43427
43427
  ]
43428
43428
  }
43429
43429
  ),
@@ -43432,11 +43432,11 @@ function Ws({
43432
43432
  un,
43433
43433
  {
43434
43434
  value: p,
43435
- onValueChange: (x) => g(u || "00", x, n === "12h" ? h : void 0),
43435
+ onValueChange: (L) => g(u || "00", L, n === "12h" ? h : void 0),
43436
43436
  disabled: o,
43437
43437
  children: [
43438
43438
  /* @__PURE__ */ c(pn, { className: "w-[65px] h-8 text-sm", children: /* @__PURE__ */ c(hn, { placeholder: "MM" }) }),
43439
- /* @__PURE__ */ c(mn, { children: C.map((x) => /* @__PURE__ */ c(Ut, { value: x, children: x }, x)) })
43439
+ /* @__PURE__ */ c(mn, { children: C.map((L) => /* @__PURE__ */ c(Ut, { value: L, children: L }, L)) })
43440
43440
  ]
43441
43441
  }
43442
43442
  ),
@@ -43444,8 +43444,8 @@ function Ws({
43444
43444
  un,
43445
43445
  {
43446
43446
  value: h,
43447
- onValueChange: (x) => {
43448
- m(x), u && p && g(u, p, x);
43447
+ onValueChange: (L) => {
43448
+ m(L), u && p && g(u, p, L);
43449
43449
  },
43450
43450
  disabled: o,
43451
43451
  children: [
@@ -43480,7 +43480,7 @@ function qI({
43480
43480
  id: m,
43481
43481
  name: g
43482
43482
  }) {
43483
- const [b, w] = j.useState(!1), C = o || (d ? "dd/MM/yyyy HH:mm" : "dd/MM/yyyy"), x = j.useMemo(() => {
43483
+ const [b, w] = D.useState(!1), C = o || (d ? "dd/MM/yyyy HH:mm" : "dd/MM/yyyy"), L = D.useMemo(() => {
43484
43484
  if (!t) return h;
43485
43485
  const k = t.getHours().toString().padStart(2, "0"), S = t.getMinutes().toString().padStart(2, "0");
43486
43486
  return `${k}:${S}`;
@@ -43490,20 +43490,20 @@ function qI({
43490
43490
  return;
43491
43491
  }
43492
43492
  if (d) {
43493
- const [S, I] = x.split(":").map(Number);
43494
- k.setHours(S, I, 0, 0);
43493
+ const [S, T] = L.split(":").map(Number);
43494
+ k.setHours(S, T, 0, 0);
43495
43495
  } else
43496
43496
  k.setHours(0, 0, 0, 0);
43497
43497
  e == null || e(k), d || w(!1);
43498
43498
  }, N = (k) => {
43499
43499
  if (t) {
43500
- const S = new Date(t), [I, D] = k.split(":").map(Number);
43501
- S.setHours(I, D, 0, 0), e == null || e(S);
43500
+ const S = new Date(t), [T, j] = k.split(":").map(Number);
43501
+ S.setHours(T, j, 0, 0), e == null || e(S);
43502
43502
  } else {
43503
- const S = /* @__PURE__ */ new Date(), [I, D] = k.split(":").map(Number);
43504
- S.setHours(I, D, 0, 0), e == null || e(S);
43503
+ const S = /* @__PURE__ */ new Date(), [T, j] = k.split(":").map(Number);
43504
+ S.setHours(T, j, 0, 0), e == null || e(S);
43505
43505
  }
43506
- }, L = j.useMemo(() => t ? ae(t, C, { locale: s }) : "", [t, C, s]);
43506
+ }, x = D.useMemo(() => t ? ae(t, C, { locale: s }) : "", [t, C, s]);
43507
43507
  return /* @__PURE__ */ v(ft, { open: b, onOpenChange: w, children: [
43508
43508
  /* @__PURE__ */ c(tt, { asChild: !0, children: /* @__PURE__ */ v(
43509
43509
  B,
@@ -43520,7 +43520,7 @@ function qI({
43520
43520
  ),
43521
43521
  children: [
43522
43522
  /* @__PURE__ */ c(Wo, { className: "mr-2 size-4" }),
43523
- L || n
43523
+ x || n
43524
43524
  ]
43525
43525
  }
43526
43526
  ) }),
@@ -43539,7 +43539,7 @@ function qI({
43539
43539
  d && /* @__PURE__ */ c("div", { className: "border-t p-3", children: /* @__PURE__ */ c(
43540
43540
  Ws,
43541
43541
  {
43542
- value: x,
43542
+ value: L,
43543
43543
  onChange: N,
43544
43544
  format: u,
43545
43545
  minuteStep: p,
@@ -43607,11 +43607,11 @@ function XI({
43607
43607
  id: b,
43608
43608
  name: w
43609
43609
  }) {
43610
- const [C, x] = j.useState(!1), y = u ? `${o} HH:mm` : o, N = j.useMemo(() => [...g ? KI() : [], ...m || []], [m, g]), L = j.useMemo(() => {
43610
+ const [C, L] = D.useState(!1), y = u ? `${o} HH:mm` : o, N = D.useMemo(() => [...g ? KI() : [], ...m || []], [m, g]), x = D.useMemo(() => {
43611
43611
  if (!(t != null && t.from)) return "00:00";
43612
43612
  const P = t.from.getHours().toString().padStart(2, "0"), F = t.from.getMinutes().toString().padStart(2, "0");
43613
43613
  return `${P}:${F}`;
43614
- }, [t == null ? void 0 : t.from]), k = j.useMemo(() => {
43614
+ }, [t == null ? void 0 : t.from]), k = D.useMemo(() => {
43615
43615
  if (!(t != null && t.to)) return "23:59";
43616
43616
  const P = t.to.getHours().toString().padStart(2, "0"), F = t.to.getMinutes().toString().padStart(2, "0");
43617
43617
  return `${P}:${F}`;
@@ -43622,7 +43622,7 @@ function XI({
43622
43622
  }
43623
43623
  if (u) {
43624
43624
  if (P.from) {
43625
- const [F, A] = L.split(":").map(Number);
43625
+ const [F, A] = x.split(":").map(Number);
43626
43626
  P.from.setHours(F, A, 0, 0);
43627
43627
  }
43628
43628
  if (P.to) {
@@ -43632,11 +43632,11 @@ function XI({
43632
43632
  } else
43633
43633
  P.from && P.from.setHours(0, 0, 0, 0), P.to && P.to.setHours(23, 59, 59, 999);
43634
43634
  e == null || e(P);
43635
- }, I = (P) => {
43635
+ }, T = (P) => {
43636
43636
  if (!(t != null && t.from)) return;
43637
43637
  const F = new Date(t.from), [A, G] = P.split(":").map(Number);
43638
43638
  F.setHours(A, G, 0, 0), e == null || e({ ...t, from: F });
43639
- }, D = (P) => {
43639
+ }, j = (P) => {
43640
43640
  if (!(t != null && t.to)) return;
43641
43641
  const F = new Date(t.to), [A, G] = P.split(":").map(Number);
43642
43642
  F.setHours(A, G, 0, 0), e == null || e({ ...t, to: F });
@@ -43646,18 +43646,18 @@ function XI({
43646
43646
  to: new Date(P.value.to)
43647
43647
  };
43648
43648
  if (u) {
43649
- const [A, G] = L.split(":").map(Number), [$, le] = k.split(":").map(Number);
43649
+ const [A, G] = x.split(":").map(Number), [$, le] = k.split(":").map(Number);
43650
43650
  F.from.setHours(A, G, 0, 0), F.to.setHours($, le, 0, 0);
43651
43651
  }
43652
43652
  e == null || e(F);
43653
- }, Y = j.useMemo(() => {
43653
+ }, Y = D.useMemo(() => {
43654
43654
  if (!(t != null && t.from)) return "";
43655
43655
  const P = ae(t.from, y, { locale: s });
43656
43656
  if (!t.to) return P;
43657
43657
  const F = ae(t.to, y, { locale: s });
43658
43658
  return `${P} → ${F}`;
43659
43659
  }, [t, y, s]);
43660
- return /* @__PURE__ */ v(ft, { open: C, onOpenChange: x, children: [
43660
+ return /* @__PURE__ */ v(ft, { open: C, onOpenChange: L, children: [
43661
43661
  /* @__PURE__ */ c(tt, { asChild: !0, children: /* @__PURE__ */ v(
43662
43662
  B,
43663
43663
  {
@@ -43711,8 +43711,8 @@ function XI({
43711
43711
  /* @__PURE__ */ c(
43712
43712
  Ws,
43713
43713
  {
43714
- value: L,
43715
- onChange: I,
43714
+ value: x,
43715
+ onChange: T,
43716
43716
  format: p,
43717
43717
  minuteStep: h,
43718
43718
  variant: "select",
@@ -43726,7 +43726,7 @@ function XI({
43726
43726
  Ws,
43727
43727
  {
43728
43728
  value: k,
43729
- onChange: D,
43729
+ onChange: j,
43730
43730
  format: p,
43731
43731
  minuteStep: h,
43732
43732
  variant: "select",
@@ -43747,7 +43747,7 @@ function XI({
43747
43747
  children: "Limpar"
43748
43748
  }
43749
43749
  ),
43750
- /* @__PURE__ */ c(B, { size: "sm", onClick: () => x(!1), children: "Confirmar" })
43750
+ /* @__PURE__ */ c(B, { size: "sm", onClick: () => L(!1), children: "Confirmar" })
43751
43751
  ] })
43752
43752
  ] })
43753
43753
  ] }) })
@@ -44014,7 +44014,7 @@ const nj = {
44014
44014
  textColor: "text-red-700",
44015
44015
  bgColor: "bg-red-50 dark:bg-red-950/20"
44016
44016
  }
44017
- }, rj = j.forwardRef(
44017
+ }, rj = D.forwardRef(
44018
44018
  ({
44019
44019
  title: t,
44020
44020
  description: e,
@@ -44035,13 +44035,13 @@ const nj = {
44035
44035
  onEdit: b,
44036
44036
  onDelete: w,
44037
44037
  onDuplicate: C,
44038
- className: x
44038
+ className: L
44039
44039
  }, y) => {
44040
- const N = s && new Date(s) < /* @__PURE__ */ new Date(), L = o ? nj[o] : null, k = (I) => {
44041
- const D = I.getDate().toString().padStart(2, "0"), U = (I.getMonth() + 1).toString().padStart(2, "0");
44042
- return `${D}/${U}`;
44043
- }, S = (I) => {
44044
- I.target.closest("button") || I.target.closest("[role='menuitem']") || g == null || g();
44040
+ const N = s && new Date(s) < /* @__PURE__ */ new Date(), x = o ? nj[o] : null, k = (T) => {
44041
+ const j = T.getDate().toString().padStart(2, "0"), U = (T.getMonth() + 1).toString().padStart(2, "0");
44042
+ return `${j}/${U}`;
44043
+ }, S = (T) => {
44044
+ T.target.closest("button") || T.target.closest("[role='menuitem']") || g == null || g();
44045
44045
  };
44046
44046
  return /* @__PURE__ */ v(
44047
44047
  fi,
@@ -44057,7 +44057,7 @@ const nj = {
44057
44057
  o === "high" && "border-l-orange-500",
44058
44058
  o === "urgent" && "border-l-red-500",
44059
44059
  h === "compact" && "hover:scale-[1.01]",
44060
- x
44060
+ L
44061
44061
  ),
44062
44062
  onClick: S,
44063
44063
  children: [
@@ -44074,15 +44074,15 @@ const nj = {
44074
44074
  we,
44075
44075
  {
44076
44076
  variant: "secondary",
44077
- className: M("shadow-sm", L == null ? void 0 : L.bgColor),
44077
+ className: M("shadow-sm", x == null ? void 0 : x.bgColor),
44078
44078
  children: [
44079
44079
  /* @__PURE__ */ c(
44080
44080
  "div",
44081
44081
  {
44082
- className: M("w-2 h-2 rounded-full mr-1", L == null ? void 0 : L.color)
44082
+ className: M("w-2 h-2 rounded-full mr-1", x == null ? void 0 : x.color)
44083
44083
  }
44084
44084
  ),
44085
- L == null ? void 0 : L.label
44085
+ x == null ? void 0 : x.label
44086
44086
  ]
44087
44087
  }
44088
44088
  ) })
@@ -44140,19 +44140,19 @@ const nj = {
44140
44140
  ] })
44141
44141
  ] }),
44142
44142
  i.length > 0 && /* @__PURE__ */ v("div", { className: "flex flex-wrap gap-1 mt-2", children: [
44143
- i.slice(0, h === "compact" ? 2 : 3).map((I) => /* @__PURE__ */ c(
44143
+ i.slice(0, h === "compact" ? 2 : 3).map((T) => /* @__PURE__ */ c(
44144
44144
  we,
44145
44145
  {
44146
44146
  variant: "secondary",
44147
44147
  className: "text-xs",
44148
- style: I.color ? {
44149
- backgroundColor: I.color + "20",
44150
- color: I.color,
44151
- borderColor: I.color + "40"
44148
+ style: T.color ? {
44149
+ backgroundColor: T.color + "20",
44150
+ color: T.color,
44151
+ borderColor: T.color + "40"
44152
44152
  } : void 0,
44153
- children: I.label
44153
+ children: T.label
44154
44154
  },
44155
- I.id
44155
+ T.id
44156
44156
  )),
44157
44157
  i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ v(we, { variant: "secondary", className: "text-xs", children: [
44158
44158
  "+",
@@ -44163,15 +44163,15 @@ const nj = {
44163
44163
  we,
44164
44164
  {
44165
44165
  variant: "secondary",
44166
- className: M("mt-2 w-fit text-xs", L == null ? void 0 : L.bgColor),
44166
+ className: M("mt-2 w-fit text-xs", x == null ? void 0 : x.bgColor),
44167
44167
  children: [
44168
44168
  /* @__PURE__ */ c(
44169
44169
  "div",
44170
44170
  {
44171
- className: M("w-2 h-2 rounded-full mr-1", L == null ? void 0 : L.color)
44171
+ className: M("w-2 h-2 rounded-full mr-1", x == null ? void 0 : x.color)
44172
44172
  }
44173
44173
  ),
44174
- L == null ? void 0 : L.label
44174
+ x == null ? void 0 : x.label
44175
44175
  ]
44176
44176
  }
44177
44177
  )
@@ -44227,10 +44227,10 @@ const nj = {
44227
44227
  ] })
44228
44228
  ] }),
44229
44229
  a.length > 0 && /* @__PURE__ */ v("div", { className: "flex -space-x-2", children: [
44230
- a.slice(0, 3).map((I) => /* @__PURE__ */ v(wn, { className: "h-6 w-6 border-2 border-background", children: [
44231
- I.avatar && /* @__PURE__ */ c(si, { src: I.avatar, alt: I.name }),
44232
- /* @__PURE__ */ c(yn, { className: "text-xs", children: I.initials || I.name.slice(0, 2).toUpperCase() })
44233
- ] }, I.id)),
44230
+ a.slice(0, 3).map((T) => /* @__PURE__ */ v(wn, { className: "h-6 w-6 border-2 border-background", children: [
44231
+ T.avatar && /* @__PURE__ */ c(si, { src: T.avatar, alt: T.name }),
44232
+ /* @__PURE__ */ c(yn, { className: "text-xs", children: T.initials || T.name.slice(0, 2).toUpperCase() })
44233
+ ] }, T.id)),
44234
44234
  a.length > 3 && /* @__PURE__ */ v("div", { className: "h-6 w-6 rounded-full border-2 border-background bg-muted flex items-center justify-center text-xs", children: [
44235
44235
  "+",
44236
44236
  a.length - 3
@@ -44259,7 +44259,7 @@ function cr({ className: t, variant: e = "pulse", ...n }) {
44259
44259
  }
44260
44260
  );
44261
44261
  }
44262
- const ij = j.forwardRef(
44262
+ const ij = D.forwardRef(
44263
44263
  ({
44264
44264
  title: t,
44265
44265
  primaryContent: e,
@@ -44338,7 +44338,7 @@ function t8({
44338
44338
  }) {
44339
44339
  return /* @__PURE__ */ c(Te.Close, { "data-slot": "dialog-close", ...t });
44340
44340
  }
44341
- const Ib = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
44341
+ const Ib = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
44342
44342
  Te.Overlay,
44343
44343
  {
44344
44344
  ref: n,
@@ -44926,7 +44926,7 @@ function N8({
44926
44926
  label: o
44927
44927
  }) {
44928
44928
  var l, d;
44929
- const s = j.useMemo(() => [
44929
+ const s = D.useMemo(() => [
44930
44930
  Jg.configure({
44931
44931
  heading: {
44932
44932
  levels: [1, 2, 3]
@@ -44997,16 +44997,16 @@ function k8({
44997
44997
  }) {
44998
44998
  return /* @__PURE__ */ c(_n.Root, { "data-slot": "drawer", ...t });
44999
44999
  }
45000
- const uj = j.forwardRef(({ ...t }, e) => /* @__PURE__ */ c(_n.Trigger, { ref: e, "data-slot": "drawer-trigger", ...t }));
45000
+ const uj = D.forwardRef(({ ...t }, e) => /* @__PURE__ */ c(_n.Trigger, { ref: e, "data-slot": "drawer-trigger", ...t }));
45001
45001
  uj.displayName = "DrawerTrigger";
45002
45002
  function hj({
45003
45003
  ...t
45004
45004
  }) {
45005
45005
  return /* @__PURE__ */ c(_n.Portal, { "data-slot": "drawer-portal", ...t });
45006
45006
  }
45007
- const pj = j.forwardRef(({ ...t }, e) => /* @__PURE__ */ c(_n.Close, { ref: e, "data-slot": "drawer-close", ...t }));
45007
+ const pj = D.forwardRef(({ ...t }, e) => /* @__PURE__ */ c(_n.Close, { ref: e, "data-slot": "drawer-close", ...t }));
45008
45008
  pj.displayName = "DrawerClose";
45009
- const Db = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45009
+ const Db = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45010
45010
  _n.Overlay,
45011
45011
  {
45012
45012
  ref: n,
@@ -45019,7 +45019,7 @@ const Db = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45019
45019
  }
45020
45020
  ));
45021
45021
  Db.displayName = "DrawerOverlay";
45022
- const mj = j.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ v(hj, { "data-slot": "drawer-portal", children: [
45022
+ const mj = D.forwardRef(({ className: t, children: e, ...n }, r) => /* @__PURE__ */ v(hj, { "data-slot": "drawer-portal", children: [
45023
45023
  /* @__PURE__ */ c(Db, {}),
45024
45024
  /* @__PURE__ */ v(
45025
45025
  _n.Content,
@@ -45063,7 +45063,7 @@ function T8({ className: t, ...e }) {
45063
45063
  }
45064
45064
  );
45065
45065
  }
45066
- const gj = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45066
+ const gj = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45067
45067
  _n.Title,
45068
45068
  {
45069
45069
  ref: n,
@@ -45073,7 +45073,7 @@ const gj = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45073
45073
  }
45074
45074
  ));
45075
45075
  gj.displayName = "DrawerTitle";
45076
- const bj = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45076
+ const bj = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
45077
45077
  _n.Description,
45078
45078
  {
45079
45079
  ref: n,
@@ -45100,28 +45100,28 @@ function vj({
45100
45100
  className: h,
45101
45101
  ...m
45102
45102
  }, g) {
45103
- const [b, w] = j.useState(null), [C, x] = j.useState(!1), [y, N] = j.useState(!1), [L, k] = j.useState(!1), S = j.useMemo(
45103
+ const [b, w] = D.useState(null), [C, L] = D.useState(!1), [y, N] = D.useState(!1), [x, k] = D.useState(!1), S = D.useMemo(
45104
45104
  () => e.find((A) => A.value === t),
45105
45105
  [e, t]
45106
- ), I = j.useMemo(
45106
+ ), T = D.useMemo(
45107
45107
  () => b ? e.find((A) => A.value === b) : null,
45108
45108
  [e, b]
45109
- ), D = j.useCallback(
45109
+ ), j = D.useCallback(
45110
45110
  (A) => {
45111
45111
  if (A === t) {
45112
45112
  N(!1);
45113
45113
  return;
45114
45114
  }
45115
- w(A), N(!1), d ? U(A) : x(!0);
45115
+ w(A), N(!1), d ? U(A) : L(!0);
45116
45116
  },
45117
45117
  [t, d]
45118
- ), U = j.useCallback(
45118
+ ), U = D.useCallback(
45119
45119
  async (A) => {
45120
45120
  const G = A ?? b;
45121
45121
  if (G) {
45122
45122
  k(!0);
45123
45123
  try {
45124
- await n(G), x(!1), w(null);
45124
+ await n(G), L(!1), w(null);
45125
45125
  } catch ($) {
45126
45126
  console.error("Error confirming value change:", $);
45127
45127
  } finally {
@@ -45130,9 +45130,9 @@ function vj({
45130
45130
  }
45131
45131
  },
45132
45132
  [b, n]
45133
- ), Y = j.useCallback(() => {
45134
- x(!1), w(null), r == null || r();
45135
- }, [r]), P = j.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ v(lt, { children: [
45133
+ ), Y = D.useCallback(() => {
45134
+ L(!1), w(null), r == null || r();
45135
+ }, [r]), P = D.useCallback(() => p && S ? p(t, S) : S ? /* @__PURE__ */ v(lt, { children: [
45136
45136
  S.icon,
45137
45137
  S.label
45138
45138
  ] }) : t, [p, t, S]), F = (S == null ? void 0 : S.variant) || a;
@@ -45155,7 +45155,7 @@ function vj({
45155
45155
  /* @__PURE__ */ c(uu, { align: "start", className: "w-48", children: e.map((A) => /* @__PURE__ */ v(
45156
45156
  Vo,
45157
45157
  {
45158
- onClick: () => D(A.value),
45158
+ onClick: () => j(A.value),
45159
45159
  className: "gap-2",
45160
45160
  children: [
45161
45161
  A.icon && /* @__PURE__ */ c("span", { className: "w-4 h-4", children: A.icon }),
@@ -45166,12 +45166,12 @@ function vj({
45166
45166
  String(A.value)
45167
45167
  )) })
45168
45168
  ] }) }),
45169
- /* @__PURE__ */ c(zf, { open: C, onOpenChange: x, children: /* @__PURE__ */ v(Of, { children: [
45169
+ /* @__PURE__ */ c(zf, { open: C, onOpenChange: L, children: /* @__PURE__ */ v(Of, { children: [
45170
45170
  /* @__PURE__ */ v(Pf, { children: [
45171
45171
  /* @__PURE__ */ c(Rf, { children: o }),
45172
45172
  /* @__PURE__ */ c(Bf, { children: s })
45173
45173
  ] }),
45174
- I && /* @__PURE__ */ v("div", { className: "flex items-center gap-3 py-4", children: [
45174
+ T && /* @__PURE__ */ v("div", { className: "flex items-center gap-3 py-4", children: [
45175
45175
  /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
45176
45176
  /* @__PURE__ */ c("span", { className: "text-sm text-muted-foreground", children: "De:" }),
45177
45177
  /* @__PURE__ */ v(we, { variant: (S == null ? void 0 : S.variant) || a, children: [
@@ -45182,9 +45182,9 @@ function vj({
45182
45182
  /* @__PURE__ */ c("span", { className: "text-muted-foreground", children: "→" }),
45183
45183
  /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
45184
45184
  /* @__PURE__ */ c("span", { className: "text-sm text-muted-foreground", children: "Para:" }),
45185
- /* @__PURE__ */ v(we, { variant: I.variant || a, children: [
45186
- I.icon,
45187
- I.label
45185
+ /* @__PURE__ */ v(we, { variant: T.variant || a, children: [
45186
+ T.icon,
45187
+ T.label
45188
45188
  ] })
45189
45189
  ] })
45190
45190
  ] }),
@@ -45194,16 +45194,16 @@ function vj({
45194
45194
  {
45195
45195
  variant: "outline",
45196
45196
  onClick: Y,
45197
- disabled: L,
45197
+ disabled: x,
45198
45198
  children: l
45199
45199
  }
45200
45200
  ),
45201
- /* @__PURE__ */ c(B, { onClick: () => U(), disabled: L, children: L ? "Confirmando..." : f })
45201
+ /* @__PURE__ */ c(B, { onClick: () => U(), disabled: x, children: x ? "Confirmando..." : f })
45202
45202
  ] })
45203
45203
  ] }) })
45204
45204
  ] });
45205
45205
  }
45206
- const wj = j.forwardRef(vj);
45206
+ const wj = D.forwardRef(vj);
45207
45207
  wj.displayName = "EditableBadge";
45208
45208
  function yj({
45209
45209
  className: t,
@@ -45398,11 +45398,11 @@ function Ab(t, e, n) {
45398
45398
  subscribe: function(C) {
45399
45399
  if (typeof C != "object" || C === null)
45400
45400
  throw new Error(process.env.NODE_ENV === "production" ? kt(11) : "Expected the observer to be an object. Instead, received: '" + Vr(C) + "'");
45401
- function x() {
45401
+ function L() {
45402
45402
  C.next && C.next(d());
45403
45403
  }
45404
- x();
45405
- var y = b(x);
45404
+ L();
45405
+ var y = b(L);
45406
45406
  return {
45407
45407
  unsubscribe: y
45408
45408
  };
@@ -46330,7 +46330,7 @@ var Hb = /* @__PURE__ */ Jc(function(e) {
46330
46330
  "children"
46331
46331
  ]);
46332
46332
  const [i, a] = JD(r);
46333
- return pe(() => {
46333
+ return de(() => {
46334
46334
  if (a) {
46335
46335
  const o = Ub();
46336
46336
  return ++l1, () => {
@@ -46397,7 +46397,7 @@ function VD() {
46397
46397
  }), Dl;
46398
46398
  }
46399
46399
  var GD = VD();
46400
- const _D = /* @__PURE__ */ QD(GD), Nr = typeof window < "u" ? Fc : pe;
46400
+ const _D = /* @__PURE__ */ QD(GD), Nr = typeof window < "u" ? Fc : de;
46401
46401
  function WD(t, e, n) {
46402
46402
  const [r, i] = ee(
46403
46403
  () => e(t)
@@ -46870,7 +46870,7 @@ function cE(t, e, n) {
46870
46870
  n
46871
46871
  ]
46872
46872
  );
46873
- return pe(() => {
46873
+ return de(() => {
46874
46874
  r.spec = t;
46875
46875
  }, [
46876
46876
  t
@@ -46970,7 +46970,7 @@ function wE(t, e) {
46970
46970
  e
46971
46971
  ]
46972
46972
  );
46973
- return pe(() => {
46973
+ return de(() => {
46974
46974
  n.spec = t;
46975
46975
  }, [
46976
46976
  t
@@ -47242,7 +47242,7 @@ function jE(t, e, n, r, i) {
47242
47242
  x: n.x - s.x,
47243
47243
  y: n.y - s.y
47244
47244
  }, { offsetWidth: l, offsetHeight: d } = t, { anchorX: u, anchorY: p } = r, { dragPreviewWidth: h, dragPreviewHeight: m } = IE(a, e, l, d), g = () => {
47245
- let L = new h1([
47245
+ let x = new h1([
47246
47246
  0,
47247
47247
  0.5,
47248
47248
  1
@@ -47254,7 +47254,7 @@ function jE(t, e, n, r, i) {
47254
47254
  // Dock to the bottom
47255
47255
  f.y + m - d
47256
47256
  ]).interpolate(p);
47257
- return $b() && a && (L += (window.devicePixelRatio - 1) * m), L;
47257
+ return $b() && a && (x += (window.devicePixelRatio - 1) * m), x;
47258
47258
  }, b = () => new h1([
47259
47259
  0,
47260
47260
  0.5,
@@ -47266,9 +47266,9 @@ function jE(t, e, n, r, i) {
47266
47266
  f.x / l * h,
47267
47267
  // Dock to the right
47268
47268
  f.x + h - l
47269
- ]).interpolate(u), { offsetX: w, offsetY: C } = i, x = w === 0 || w, y = C === 0 || C;
47269
+ ]).interpolate(u), { offsetX: w, offsetY: C } = i, L = w === 0 || w, y = C === 0 || C;
47270
47270
  return {
47271
- x: x ? w : b(),
47271
+ x: L ? w : b(),
47272
47272
  y: y ? C : g()
47273
47273
  };
47274
47274
  }
@@ -47472,14 +47472,14 @@ class AE {
47472
47472
  if (s && typeof s.setDragImage == "function") {
47473
47473
  const d = this.monitor.getSourceId(), u = this.sourceNodes.get(d), p = this.sourcePreviewNodes.get(d) || u;
47474
47474
  if (p) {
47475
- const { anchorX: h, anchorY: m, offsetX: g, offsetY: b } = this.getCurrentSourcePreviewNodeOptions(), x = jE(u, p, o, {
47475
+ const { anchorX: h, anchorY: m, offsetX: g, offsetY: b } = this.getCurrentSourcePreviewNodeOptions(), L = jE(u, p, o, {
47476
47476
  anchorX: h,
47477
47477
  anchorY: m
47478
47478
  }, {
47479
47479
  offsetX: g,
47480
47480
  offsetY: b
47481
47481
  });
47482
- s.setDragImage(p, x.x, x.y);
47482
+ s.setDragImage(p, L.x, L.y);
47483
47483
  }
47484
47484
  }
47485
47485
  try {
@@ -48122,13 +48122,13 @@ function t4({
48122
48122
  defaultView: r = "month"
48123
48123
  }) {
48124
48124
  const [i, a] = ee(/* @__PURE__ */ new Date()), [o, s] = ee(r), [f, l] = ee(!0), [d, u] = ee(!1), [p, h] = ee(null), [m, g] = ee(!1), b = ge(() => {
48125
- let D, U;
48125
+ let j, U;
48126
48126
  if (o === "month") {
48127
48127
  const Y = $o(i), P = _c(Y);
48128
- D = ku(Y), U = Su(P);
48129
- } else o === "week" ? (D = ku(i), U = Su(i)) : (D = i, U = i);
48130
- return U1({ start: D, end: U });
48131
- }, [i, o]), w = t.filter((D) => !D.date), C = t.filter((D) => D.date);
48128
+ j = ku(Y), U = Su(P);
48129
+ } else o === "week" ? (j = ku(i), U = Su(i)) : (j = i, U = i);
48130
+ return U1({ start: j, end: U });
48131
+ }, [i, o]), w = t.filter((j) => !j.date), C = t.filter((j) => j.date);
48132
48132
  return {
48133
48133
  currentDate: i,
48134
48134
  view: o,
@@ -48149,8 +48149,8 @@ function t4({
48149
48149
  a(o === "month" ? Y1(i, 1) : o === "week" ? mo(i, 7) : mo(i, 1));
48150
48150
  },
48151
48151
  handleToday: () => a(/* @__PURE__ */ new Date()),
48152
- handleDropTask: (D, U, Y) => {
48153
- const P = t.find((F) => F.id === D);
48152
+ handleDropTask: (j, U, Y) => {
48153
+ const P = t.find((F) => F.id === j);
48154
48154
  if (P) {
48155
48155
  let F = new Date(U);
48156
48156
  if (o === "month" || Y === "editorial")
@@ -48163,19 +48163,19 @@ function t4({
48163
48163
  e(A);
48164
48164
  }
48165
48165
  },
48166
- handleTaskClick: (D) => {
48167
- h(D), g(!1), u(!0);
48166
+ handleTaskClick: (j) => {
48167
+ h(j), g(!1), u(!0);
48168
48168
  },
48169
- handleAddClick: (D) => {
48170
- const U = D || /* @__PURE__ */ new Date();
48169
+ handleAddClick: (j) => {
48170
+ const U = j || /* @__PURE__ */ new Date();
48171
48171
  F1(U) === 0 && J1(U) === 0 && U.setHours(9, 0), h({
48172
48172
  date: U,
48173
48173
  status: "idea",
48174
48174
  channel: "instagram"
48175
48175
  }), g(!0), u(!0);
48176
48176
  },
48177
- handleModalSave: (D) => {
48178
- m ? n && n(D) : D.id && e(D), u(!1);
48177
+ handleModalSave: (j) => {
48178
+ m ? n && n(j) : j.id && e(j), u(!1);
48179
48179
  }
48180
48180
  };
48181
48181
  }
@@ -48378,12 +48378,12 @@ function D8(t) {
48378
48378
  )
48379
48379
  ] }) });
48380
48380
  }
48381
- const E8 = _v, a4 = j.createContext(
48381
+ const E8 = _v, a4 = D.createContext(
48382
48382
  {}
48383
48383
  ), A8 = ({
48384
48384
  ...t
48385
48385
  }) => /* @__PURE__ */ c(a4.Provider, { value: { name: t.name }, children: /* @__PURE__ */ c(Wv, { ...t }) }), Vf = () => {
48386
- const t = j.useContext(a4), e = j.useContext(o4), { getFieldState: n } = $v(), r = Zv({ name: t.name }), i = n(t.name, r);
48386
+ const t = D.useContext(a4), e = D.useContext(o4), { getFieldState: n } = $v(), r = Zv({ name: t.name }), i = n(t.name, r);
48387
48387
  if (!t)
48388
48388
  throw new Error("useFormField should be used within <FormField>");
48389
48389
  const { id: a } = e;
@@ -48395,11 +48395,11 @@ const E8 = _v, a4 = j.createContext(
48395
48395
  formMessageId: `${a}-form-item-message`,
48396
48396
  ...i
48397
48397
  };
48398
- }, o4 = j.createContext(
48398
+ }, o4 = D.createContext(
48399
48399
  {}
48400
48400
  );
48401
48401
  function z8({ className: t, ...e }) {
48402
- const n = j.useId();
48402
+ const n = D.useId();
48403
48403
  return /* @__PURE__ */ c(o4.Provider, { value: { id: n }, children: /* @__PURE__ */ c(
48404
48404
  "div",
48405
48405
  {
@@ -48522,7 +48522,7 @@ function HE(t, e, n, r, i) {
48522
48522
  const a = Ki(r, n), o = Ki(t, n), s = Ki(e, t) + 1, f = o / a * 100, l = s / a * 100;
48523
48523
  return { left: f, width: l };
48524
48524
  }
48525
- const f4 = j.memo(({
48525
+ const f4 = D.memo(({
48526
48526
  task: t,
48527
48527
  timelineStart: e,
48528
48528
  timelineEnd: n,
@@ -48679,7 +48679,7 @@ const f4 = j.memo(({
48679
48679
  ] });
48680
48680
  });
48681
48681
  f4.displayName = "TaskRow";
48682
- const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48682
+ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = D.forwardRef(
48683
48683
  ({
48684
48684
  tasks: t,
48685
48685
  projects: e = [],
@@ -48689,42 +48689,42 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48689
48689
  columnWidth: a = 40,
48690
48690
  groupBy: o = "projects"
48691
48691
  }, s) => {
48692
- const [f, l] = j.useState(/* @__PURE__ */ new Date()), [d, u] = j.useState(/* @__PURE__ */ new Set()), p = $o(f), h = _c(f), m = U1({ start: p, end: h }), g = () => l(Zo(f, 1)), b = () => l(Y1(f, 1)), w = () => l(/* @__PURE__ */ new Date()), C = j.useMemo(() => {
48692
+ const [f, l] = D.useState(/* @__PURE__ */ new Date()), [d, u] = D.useState(/* @__PURE__ */ new Set()), p = $o(f), h = _c(f), m = U1({ start: p, end: h }), g = () => l(Zo(f, 1)), b = () => l(Y1(f, 1)), w = () => l(/* @__PURE__ */ new Date()), C = D.useMemo(() => {
48693
48693
  if (o === "assignees") {
48694
48694
  const y = /* @__PURE__ */ new Map();
48695
- return t.forEach((L) => {
48695
+ return t.forEach((x) => {
48696
48696
  var S;
48697
- const k = ((S = L.assignee) == null ? void 0 : S.name) || "Sem responsável";
48698
- y.has(k) || y.set(k, []), y.get(k).push(L);
48699
- }), Array.from(y.entries()).map(([L, k], S) => {
48700
- var I, D, U;
48697
+ const k = ((S = x.assignee) == null ? void 0 : S.name) || "Sem responsável";
48698
+ y.has(k) || y.set(k, []), y.get(k).push(x);
48699
+ }), Array.from(y.entries()).map(([x, k], S) => {
48700
+ var T, j, U;
48701
48701
  return {
48702
- id: L,
48703
- name: L,
48704
- color: (I = k[0]) != null && I.assignee ? b1[S % b1.length] : "#999",
48705
- initials: ((U = (D = k[0]) == null ? void 0 : D.assignee) == null ? void 0 : U.initials) || "??",
48702
+ id: x,
48703
+ name: x,
48704
+ color: (T = k[0]) != null && T.assignee ? b1[S % b1.length] : "#999",
48705
+ initials: ((U = (j = k[0]) == null ? void 0 : j.assignee) == null ? void 0 : U.initials) || "??",
48706
48706
  tasks: k
48707
48707
  };
48708
48708
  });
48709
48709
  } else {
48710
48710
  const y = /* @__PURE__ */ new Map();
48711
48711
  return t.forEach((N) => {
48712
- const L = N.projectId;
48713
- y.has(L) || y.set(L, []), y.get(L).push(N);
48714
- }), e.length > 0 ? e.map((L) => ({
48715
- ...L,
48716
- tasks: y.get(L.id) || []
48717
- })).filter((L) => L.tasks.length > 0) : [{
48712
+ const x = N.projectId;
48713
+ y.has(x) || y.set(x, []), y.get(x).push(N);
48714
+ }), e.length > 0 ? e.map((x) => ({
48715
+ ...x,
48716
+ tasks: y.get(x.id) || []
48717
+ })).filter((x) => x.tasks.length > 0) : [{
48718
48718
  id: "default",
48719
48719
  name: "Tarefas",
48720
48720
  color: "#7F26BF",
48721
48721
  tasks: t
48722
48722
  }];
48723
48723
  }
48724
- }, [t, e, o]), x = (y) => {
48724
+ }, [t, e, o]), L = (y) => {
48725
48725
  u((N) => {
48726
- const L = new Set(N);
48727
- return L.has(y) ? L.delete(y) : L.add(y), L;
48726
+ const x = new Set(N);
48727
+ return x.has(y) ? x.delete(y) : x.add(y), x;
48728
48728
  });
48729
48729
  };
48730
48730
  return /* @__PURE__ */ v("div", { className: "flex flex-col gap-4", children: [
@@ -48780,14 +48780,14 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48780
48780
  ] }),
48781
48781
  /* @__PURE__ */ v("div", { className: "relative", children: [
48782
48782
  /* @__PURE__ */ c("div", { className: "absolute inset-0 flex pointer-events-none pl-[280px]", children: m.map((y) => {
48783
- const N = Tu(y), L = ef(y, /* @__PURE__ */ new Date());
48783
+ const N = Tu(y), x = ef(y, /* @__PURE__ */ new Date());
48784
48784
  return /* @__PURE__ */ c(
48785
48785
  "div",
48786
48786
  {
48787
48787
  className: M(
48788
48788
  "flex-shrink-0 h-full",
48789
48789
  N && "bg-muted/10",
48790
- L && "bg-primary/5"
48790
+ x && "bg-primary/5"
48791
48791
  ),
48792
48792
  style: { width: `${a}px` }
48793
48793
  },
@@ -48803,7 +48803,7 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48803
48803
  {
48804
48804
  className: "sticky left-0 z-30 w-[280px] border-r bg-background flex items-center gap-2 px-3 py-2 border-b hover:bg-muted/50 transition-colors cursor-pointer",
48805
48805
  style: { height: `${i}px` },
48806
- onClick: () => x(y.id),
48806
+ onClick: () => L(y.id),
48807
48807
  children: [
48808
48808
  N ? /* @__PURE__ */ c(Jn, { className: "size-4 text-muted-foreground" }) : /* @__PURE__ */ c(O1, { className: "size-4 text-muted-foreground" }),
48809
48809
  o === "assignees" && y.initials ? /* @__PURE__ */ c(wn, { className: "size-6", children: /* @__PURE__ */ c(yn, { style: { backgroundColor: y.color }, className: "text-white text-[10px]", children: y.initials }) }) : /* @__PURE__ */ c(
@@ -48820,7 +48820,7 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48820
48820
  ),
48821
48821
  /* @__PURE__ */ c("div", { className: "flex-1 border-b", style: { height: `${i}px` } })
48822
48822
  ] }),
48823
- !N && y.tasks.map((L) => /* @__PURE__ */ v("div", { className: "flex sticky-container group", children: [
48823
+ !N && y.tasks.map((x) => /* @__PURE__ */ v("div", { className: "flex sticky-container group", children: [
48824
48824
  /* @__PURE__ */ v(
48825
48825
  "div",
48826
48826
  {
@@ -48832,18 +48832,18 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48832
48832
  {
48833
48833
  className: M(
48834
48834
  "size-2 rounded-full flex-shrink-0",
48835
- L.milestone && "rotate-45"
48835
+ x.milestone && "rotate-45"
48836
48836
  ),
48837
48837
  style: { backgroundColor: y.color }
48838
48838
  }
48839
48839
  ),
48840
- /* @__PURE__ */ c("span", { className: "text-sm truncate flex-1", children: L.name }),
48841
- o === "projects" && L.assignee && /* @__PURE__ */ c(wn, { className: "size-6 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ c(yn, { className: "text-[10px]", children: L.assignee.initials || L.assignee.name.substring(0, 2).toUpperCase() }) }),
48840
+ /* @__PURE__ */ c("span", { className: "text-sm truncate flex-1", children: x.name }),
48841
+ o === "projects" && x.assignee && /* @__PURE__ */ c(wn, { className: "size-6 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ c(yn, { className: "text-[10px]", children: x.assignee.initials || x.assignee.name.substring(0, 2).toUpperCase() }) }),
48842
48842
  r && /* @__PURE__ */ c(
48843
48843
  Hl,
48844
48844
  {
48845
48845
  className: "size-4 text-muted-foreground cursor-pointer hover:text-primary ml-2 opacity-0 group-hover:opacity-100",
48846
- onClick: () => r(L)
48846
+ onClick: () => r(x)
48847
48847
  }
48848
48848
  )
48849
48849
  ]
@@ -48852,7 +48852,7 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48852
48852
  /* @__PURE__ */ c("div", { className: "relative flex-1 border-b", style: { height: `${i}px` }, children: /* @__PURE__ */ c(
48853
48853
  f4,
48854
48854
  {
48855
- task: L,
48855
+ task: x,
48856
48856
  timelineStart: p,
48857
48857
  timelineEnd: h,
48858
48858
  columnWidth: a,
@@ -48861,18 +48861,18 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48861
48861
  onTaskEdit: r
48862
48862
  }
48863
48863
  ) })
48864
- ] }, L.id))
48864
+ ] }, x.id))
48865
48865
  ] }, y.id);
48866
48866
  }),
48867
48867
  (() => {
48868
48868
  const y = /* @__PURE__ */ new Date();
48869
48869
  if (y >= p && y <= h) {
48870
- const L = 280 + Ki(y, p) * a + a / 2;
48870
+ const x = 280 + Ki(y, p) * a + a / 2;
48871
48871
  return /* @__PURE__ */ c(
48872
48872
  "div",
48873
48873
  {
48874
48874
  className: "absolute top-0 bottom-0 w-0.5 bg-primary pointer-events-none z-20",
48875
- style: { left: `${L}px` },
48875
+ style: { left: `${x}px` },
48876
48876
  children: /* @__PURE__ */ c("div", { className: "absolute -top-1 -left-1.5 size-3 rounded-full bg-primary shadow-sm" })
48877
48877
  }
48878
48878
  );
@@ -48887,7 +48887,7 @@ const UE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], FE = j.forwardRef(
48887
48887
  }
48888
48888
  );
48889
48889
  FE.displayName = "GanttChart";
48890
- const JE = j.forwardRef(
48890
+ const JE = D.forwardRef(
48891
48891
  ({ className: t }, e) => /* @__PURE__ */ v("div", { ref: e, className: M("flex flex-wrap gap-4", t), children: [
48892
48892
  Object.entries(s4).map(([n, r]) => /* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
48893
48893
  /* @__PURE__ */ c("div", { className: M("size-3 rounded", r.barColor) }),
@@ -48963,7 +48963,7 @@ function Q8({
48963
48963
  className: e,
48964
48964
  ...n
48965
48965
  }) {
48966
- const r = j.useContext(Kv), { char: i, hasFakeCaret: a, isActive: o } = (r == null ? void 0 : r.slots[t]) ?? {};
48966
+ const r = D.useContext(Kv), { char: i, hasFakeCaret: a, isActive: o } = (r == null ? void 0 : r.slots[t]) ?? {};
48967
48967
  return /* @__PURE__ */ v(
48968
48968
  "div",
48969
48969
  {
@@ -49549,7 +49549,7 @@ function _E({
49549
49549
  }) {
49550
49550
  return /* @__PURE__ */ c(Te.Portal, { "data-slot": "sheet-portal", ...t });
49551
49551
  }
49552
- const c4 = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
49552
+ const c4 = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
49553
49553
  Te.Overlay,
49554
49554
  {
49555
49555
  ref: n,
@@ -49642,19 +49642,19 @@ function qE({
49642
49642
  }
49643
49643
  const Bl = 768;
49644
49644
  function KE() {
49645
- const [t, e] = j.useState(
49645
+ const [t, e] = D.useState(
49646
49646
  void 0
49647
49647
  );
49648
- return j.useEffect(() => {
49648
+ return D.useEffect(() => {
49649
49649
  const n = window.matchMedia(`(max-width: ${Bl - 1}px)`), r = () => {
49650
49650
  e(window.innerWidth < Bl);
49651
49651
  };
49652
49652
  return n.addEventListener("change", r), e(window.innerWidth < Bl), () => n.removeEventListener("change", r);
49653
49653
  }, []), !!t;
49654
49654
  }
49655
- const XE = "sidebar_state", e5 = 3600 * 24 * 7, t5 = "16rem", n5 = "18rem", r5 = "3rem", i5 = "b", d4 = j.createContext(null);
49655
+ const XE = "sidebar_state", e5 = 3600 * 24 * 7, t5 = "16rem", n5 = "18rem", r5 = "3rem", i5 = "b", d4 = D.createContext(null);
49656
49656
  function Gf() {
49657
- const t = j.useContext(d4);
49657
+ const t = D.useContext(d4);
49658
49658
  if (!t)
49659
49659
  throw new Error("useSidebar must be used within a SidebarProvider.");
49660
49660
  return t;
@@ -49668,20 +49668,20 @@ function S7({
49668
49668
  children: a,
49669
49669
  ...o
49670
49670
  }) {
49671
- const s = KE(), [f, l] = j.useState(!1), [d, u] = j.useState(t), p = e ?? d, h = j.useCallback(
49671
+ const s = KE(), [f, l] = D.useState(!1), [d, u] = D.useState(t), p = e ?? d, h = D.useCallback(
49672
49672
  (w) => {
49673
49673
  const C = typeof w == "function" ? w(p) : w;
49674
49674
  n ? n(C) : u(C), document.cookie = `${XE}=${C}; path=/; max-age=${e5}`;
49675
49675
  },
49676
49676
  [n, p]
49677
- ), m = j.useCallback(() => s ? l((w) => !w) : h((w) => !w), [s, h, l]);
49678
- j.useEffect(() => {
49677
+ ), m = D.useCallback(() => s ? l((w) => !w) : h((w) => !w), [s, h, l]);
49678
+ D.useEffect(() => {
49679
49679
  const w = (C) => {
49680
49680
  C.key === i5 && (C.metaKey || C.ctrlKey) && (C.preventDefault(), m());
49681
49681
  };
49682
49682
  return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
49683
49683
  }, [m]);
49684
- const g = p ? "expanded" : "collapsed", b = j.useMemo(
49684
+ const g = p ? "expanded" : "collapsed", b = D.useMemo(
49685
49685
  () => ({
49686
49686
  state: g,
49687
49687
  open: p,
@@ -50107,7 +50107,7 @@ function V7({
50107
50107
  showIcon: e = !1,
50108
50108
  ...n
50109
50109
  }) {
50110
- const r = j.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
50110
+ const r = D.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
50111
50111
  return /* @__PURE__ */ v(
50112
50112
  "div",
50113
50113
  {
@@ -50200,7 +50200,7 @@ function o5({
50200
50200
  max: i = 100,
50201
50201
  ...a
50202
50202
  }) {
50203
- const o = j.useMemo(
50203
+ const o = D.useMemo(
50204
50204
  () => Array.isArray(n) ? n : Array.isArray(e) ? e : [r, i],
50205
50205
  [n, e, r, i]
50206
50206
  );
@@ -50289,7 +50289,7 @@ function s5({
50289
50289
  }
50290
50290
  );
50291
50291
  }
50292
- const u4 = j.forwardRef(
50292
+ const u4 = D.forwardRef(
50293
50293
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50294
50294
  "div",
50295
50295
  {
@@ -50308,7 +50308,7 @@ const u4 = j.forwardRef(
50308
50308
  )
50309
50309
  );
50310
50310
  u4.displayName = "Table";
50311
- const h4 = j.forwardRef(
50311
+ const h4 = D.forwardRef(
50312
50312
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50313
50313
  "thead",
50314
50314
  {
@@ -50320,7 +50320,7 @@ const h4 = j.forwardRef(
50320
50320
  )
50321
50321
  );
50322
50322
  h4.displayName = "TableHeader";
50323
- const p4 = j.forwardRef(
50323
+ const p4 = D.forwardRef(
50324
50324
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50325
50325
  "tbody",
50326
50326
  {
@@ -50332,7 +50332,7 @@ const p4 = j.forwardRef(
50332
50332
  )
50333
50333
  );
50334
50334
  p4.displayName = "TableBody";
50335
- const f5 = j.forwardRef(
50335
+ const f5 = D.forwardRef(
50336
50336
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50337
50337
  "tfoot",
50338
50338
  {
@@ -50347,7 +50347,7 @@ const f5 = j.forwardRef(
50347
50347
  )
50348
50348
  );
50349
50349
  f5.displayName = "TableFooter";
50350
- const Zi = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
50350
+ const Zi = D.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
50351
50351
  "tr",
50352
50352
  {
50353
50353
  ref: n,
@@ -50360,7 +50360,7 @@ const Zi = j.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ c(
50360
50360
  }
50361
50361
  ));
50362
50362
  Zi.displayName = "TableRow";
50363
- const m4 = j.forwardRef(
50363
+ const m4 = D.forwardRef(
50364
50364
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50365
50365
  "th",
50366
50366
  {
@@ -50376,7 +50376,7 @@ const m4 = j.forwardRef(
50376
50376
  )
50377
50377
  );
50378
50378
  m4.displayName = "TableHead";
50379
- const _o = j.forwardRef(
50379
+ const _o = D.forwardRef(
50380
50380
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50381
50381
  "td",
50382
50382
  {
@@ -50392,7 +50392,7 @@ const _o = j.forwardRef(
50392
50392
  )
50393
50393
  );
50394
50394
  _o.displayName = "TableCell";
50395
- const l5 = j.forwardRef(
50395
+ const l5 = D.forwardRef(
50396
50396
  ({ className: t, ...e }, n) => /* @__PURE__ */ c(
50397
50397
  "caption",
50398
50398
  {
@@ -50442,7 +50442,7 @@ function g4({
50442
50442
  labels: p,
50443
50443
  className: h
50444
50444
  }) {
50445
- const m = { ...c5, ...p }, g = u5(t, e, s), b = (t - 1) * n + 1, w = Math.min(t * n, r), C = t > 1, x = t < e;
50445
+ const m = { ...c5, ...p }, g = u5(t, e, s), b = (t - 1) * n + 1, w = Math.min(t * n, r), C = t > 1, L = t < e;
50446
50446
  return e === 0 ? null : /* @__PURE__ */ v(
50447
50447
  "div",
50448
50448
  {
@@ -50545,7 +50545,7 @@ function g4({
50545
50545
  size: "icon",
50546
50546
  className: "h-8 w-8",
50547
50547
  onClick: () => i(t + 1),
50548
- disabled: !x,
50548
+ disabled: !L,
50549
50549
  "aria-label": m.next,
50550
50550
  children: /* @__PURE__ */ c(Jn, { className: "h-4 w-4" })
50551
50551
  }
@@ -50557,7 +50557,7 @@ function g4({
50557
50557
  size: "icon",
50558
50558
  className: "h-8 w-8",
50559
50559
  onClick: () => i(e),
50560
- disabled: !x,
50560
+ disabled: !L,
50561
50561
  "aria-label": m.last,
50562
50562
  children: /* @__PURE__ */ c(yv, { className: "h-4 w-4" })
50563
50563
  }
@@ -50590,21 +50590,21 @@ function p5({
50590
50590
  n && a(1);
50591
50591
  }, [t.length, n]);
50592
50592
  const d = Math.ceil(l / o), u = Math.min(Math.max(1, i), Math.max(1, d)), p = (u - 1) * o, h = Math.min(p + o, l), m = ge(() => f ? t : t.slice(p, h), [t, p, h, f]), g = (N) => {
50593
- const L = Math.max(1, Math.min(N, d));
50594
- a(L);
50593
+ const x = Math.max(1, Math.min(N, d));
50594
+ a(x);
50595
50595
  }, b = () => {
50596
50596
  i < d && a((N) => N + 1);
50597
50597
  }, w = () => {
50598
50598
  i > 1 && a((N) => N - 1);
50599
50599
  }, C = (N) => {
50600
50600
  s(N), a(1);
50601
- }, x = {
50601
+ }, L = {
50602
50602
  currentPage: u,
50603
50603
  pageSize: o,
50604
50604
  totalItems: l,
50605
50605
  onPageChange: g,
50606
50606
  onPageSizeChange: C
50607
- }, y = h5(x);
50607
+ }, y = h5(L);
50608
50608
  return {
50609
50609
  currentPage: u,
50610
50610
  pageSize: o,
@@ -50615,7 +50615,7 @@ function p5({
50615
50615
  nextPage: b,
50616
50616
  prevPage: w,
50617
50617
  setPageSize: C,
50618
- paginationConfig: x,
50618
+ paginationConfig: L,
50619
50619
  metadata: y
50620
50620
  };
50621
50621
  }
@@ -50625,62 +50625,72 @@ function m5({
50625
50625
  initialPageSize: n = 10,
50626
50626
  enablePagination: r = !0,
50627
50627
  serverMode: i = !1,
50628
- totalItems: a
50628
+ totalItems: a,
50629
+ serverCurrentPage: o,
50630
+ serverCurrentPageSize: s
50629
50631
  }) {
50630
- const [o, s] = ee(e), [f, l] = ee([]), d = ge(() => i || f.length === 0 ? t : t.filter((x) => f.every((y) => {
50631
- const N = x[y.column];
50632
- switch (y.operator) {
50632
+ const [f, l] = ee(e), [d, u] = ee([]), p = ge(() => i || d.length === 0 ? t : t.filter((x) => d.every((k) => {
50633
+ const S = x[k.column];
50634
+ switch (k.operator) {
50633
50635
  case "equals":
50634
- return N == y.value;
50636
+ return S == k.value;
50635
50637
  case "contains":
50636
- return String(N).toLowerCase().includes(String(y.value).toLowerCase());
50638
+ return String(S).toLowerCase().includes(String(k.value).toLowerCase());
50637
50639
  case "startsWith":
50638
- return String(N).toLowerCase().startsWith(String(y.value).toLowerCase());
50640
+ return String(S).toLowerCase().startsWith(String(k.value).toLowerCase());
50639
50641
  case "greaterThan":
50640
- return N > y.value;
50642
+ return S > k.value;
50641
50643
  case "lessThan":
50642
- return N < y.value;
50644
+ return S < k.value;
50643
50645
  default:
50644
50646
  return !0;
50645
50647
  }
50646
- })), [t, f, i]), u = ge(() => i || !o.column || !o.direction ? d : [...d].sort((x, y) => {
50647
- const N = x[o.column], L = y[o.column];
50648
- return N < L ? o.direction === "asc" ? -1 : 1 : N > L ? o.direction === "asc" ? 1 : -1 : 0;
50649
- }), [d, o, i]), p = i ? a ?? t.length : u.length, h = p5({
50650
- data: i ? t : u,
50648
+ })), [t, d, i]), h = ge(() => i || !f.column || !f.direction ? p : [...p].sort((x, k) => {
50649
+ const S = x[f.column], T = k[f.column];
50650
+ return S < T ? f.direction === "asc" ? -1 : 1 : S > T ? f.direction === "asc" ? 1 : -1 : 0;
50651
+ }), [p, f, i]), m = i ? a ?? t.length : h.length, g = p5({
50652
+ data: i ? t : h,
50651
50653
  initialPageSize: n,
50652
50654
  resetOnDataChange: !0,
50653
- serverSideTotalItems: i ? p : void 0
50654
- }), m = (x) => {
50655
- s((y) => {
50656
- if (y.column === x) {
50657
- if (y.direction === "asc") return { column: x, direction: "desc" };
50658
- if (y.direction === "desc") return { column: null, direction: null };
50655
+ serverSideTotalItems: i ? m : void 0
50656
+ });
50657
+ de(() => {
50658
+ i && (o !== void 0 && o !== g.currentPage && g.goToPage(o), s !== void 0 && s !== g.pageSize && g.setPageSize(s));
50659
+ }, [i, o, s, g]);
50660
+ const b = (x) => {
50661
+ l((k) => {
50662
+ if (k.column === x) {
50663
+ if (k.direction === "asc") return { column: x, direction: "desc" };
50664
+ if (k.direction === "desc") return { column: null, direction: null };
50659
50665
  }
50660
50666
  return { column: x, direction: "asc" };
50661
50667
  });
50662
- }, g = (x, y, N = "contains") => {
50663
- l((L) => {
50664
- const k = L.filter((S) => S.column !== x);
50665
- return y === "" || y === null || y === void 0 ? k : [...k, { column: x, operator: N, value: y }];
50668
+ }, w = (x, k, S = "contains") => {
50669
+ u((T) => {
50670
+ const j = T.filter((U) => U.column !== x);
50671
+ return k === "" || k === null || k === void 0 ? j : [...j, { column: x, operator: S, value: k }];
50666
50672
  });
50667
- }, b = (x) => {
50668
- l((y) => y.filter((N) => N.column !== x));
50669
- }, w = (x) => o.column === x ? o.direction : null;
50673
+ }, C = (x) => {
50674
+ u((k) => k.filter((S) => S.column !== x));
50675
+ }, L = (x) => f.column === x ? f.direction : null, y = i ? t : r ? g.paginatedData : h, N = i && (o !== void 0 || s !== void 0) ? {
50676
+ ...g.paginationConfig,
50677
+ currentPage: o ?? g.paginationConfig.currentPage,
50678
+ pageSize: s ?? g.paginationConfig.pageSize
50679
+ } : g.paginationConfig;
50670
50680
  return {
50671
- data: i ? t : r ? h.paginatedData : u,
50681
+ data: y,
50672
50682
  state: {
50673
- sort: o,
50674
- filters: f,
50675
- pagination: h.paginationConfig
50683
+ sort: f,
50684
+ filters: d,
50685
+ pagination: N
50676
50686
  },
50677
50687
  handlers: {
50678
- onSort: m,
50679
- setFilter: g,
50680
- removeFilter: b,
50681
- clearFilters: () => l([])
50688
+ onSort: b,
50689
+ setFilter: w,
50690
+ removeFilter: C,
50691
+ clearFilters: () => u([])
50682
50692
  },
50683
- getSortDirection: w
50693
+ getSortDirection: L
50684
50694
  };
50685
50695
  }
50686
50696
  function g5({ label: t, value: e, onRemove: n, className: r }) {
@@ -51065,10 +51075,12 @@ function y5({
51065
51075
  initialPageSize: f,
51066
51076
  initialSort: { column: null, direction: null },
51067
51077
  serverMode: m,
51068
- totalItems: d == null ? void 0 : d.totalItems
51069
- }), [x, y] = ee(""), [N, L] = ee(!1), [k, S] = ee([]), I = r ? r[0] : ((je = e.find((R) => R.key === "nome" || R.key === "name" || R.key === "title" || R.key === "titulo")) == null ? void 0 : je.key) || ((Ve = e[0]) == null ? void 0 : Ve.key), D = Ue(async (R) => {
51070
- y(R), m && (d != null && d.onFilterChange) ? await d.onFilterChange(k, R) : w.setFilter(I, R, "contains");
51071
- }, [m, d, k, w, I]), U = k.map((R) => {
51078
+ totalItems: d == null ? void 0 : d.totalItems,
51079
+ serverCurrentPage: d == null ? void 0 : d.currentPage,
51080
+ serverCurrentPageSize: d == null ? void 0 : d.currentPageSize
51081
+ }), [L, y] = ee(""), [N, x] = ee(!1), [k, S] = ee([]), T = r ? r[0] : ((je = e.find((R) => R.key === "nome" || R.key === "name" || R.key === "title" || R.key === "titulo")) == null ? void 0 : je.key) || ((Ve = e[0]) == null ? void 0 : Ve.key), j = Ue(async (R) => {
51082
+ y(R), m && (d != null && d.onFilterChange) ? await d.onFilterChange(k, R) : w.setFilter(T, R, "contains");
51083
+ }, [m, d, k, w, T]), U = k.map((R) => {
51072
51084
  const oe = a.find((Ge) => Ge.value === R.field), ne = R.operator === "is" ? "" : ` ${R.operator}`, Ne = Array.isArray(R.value) ? R.value.join(", ") : R.value;
51073
51085
  return {
51074
51086
  id: R.id,
@@ -51080,11 +51092,11 @@ function y5({
51080
51092
  }
51081
51093
  };
51082
51094
  }), Y = Ue(async (R) => {
51083
- m && (d != null && d.onFilterChange) ? await d.onFilterChange(R, x) : (w.clearFilters(), x && w.setFilter(I, x, "contains"), R.forEach((oe) => {
51095
+ m && (d != null && d.onFilterChange) ? await d.onFilterChange(R, L) : (w.clearFilters(), L && w.setFilter(T, L, "contains"), R.forEach((oe) => {
51084
51096
  const ne = P(oe.operator);
51085
51097
  w.setFilter(oe.field, oe.value, ne);
51086
51098
  }));
51087
- }, [m, d, x, w, I]), P = (R) => {
51099
+ }, [m, d, L, w, T]), P = (R) => {
51088
51100
  switch (R) {
51089
51101
  case "is":
51090
51102
  return "equals";
@@ -51100,9 +51112,9 @@ function y5({
51100
51112
  return "contains";
51101
51113
  }
51102
51114
  }, F = () => {
51103
- Y(k), L(!1);
51115
+ Y(k), x(!1);
51104
51116
  }, A = () => {
51105
- S([]), w.clearFilters(), x && w.setFilter(I, x, "contains");
51117
+ S([]), w.clearFilters(), L && w.setFilter(T, L, "contains");
51106
51118
  }, G = Ue(async (R) => {
51107
51119
  if (m && (d != null && d.onSortChange)) {
51108
51120
  const oe = b.sort;
@@ -51120,7 +51132,7 @@ function y5({
51120
51132
  }, [m, d, b.pagination]), le = Ue(async (R) => {
51121
51133
  m && (d != null && d.onPageChange) ? await d.onPageChange(1, R) : b.pagination.onPageSizeChange && b.pagination.onPageSizeChange(R);
51122
51134
  }, [m, d, b.pagination]), Pe = () => {
51123
- const R = k.length > 0, oe = x.trim().length > 0;
51135
+ const R = k.length > 0, oe = L.trim().length > 0;
51124
51136
  return R || oe ? "Nenhum resultado encontrado para os filtros aplicados." : p || "Nenhum dado disponível.";
51125
51137
  };
51126
51138
  return /* @__PURE__ */ v("div", { className: M("space-y-4", h), children: [
@@ -51132,8 +51144,8 @@ function y5({
51132
51144
  li,
51133
51145
  {
51134
51146
  placeholder: n,
51135
- value: x,
51136
- onChange: (R) => D(R.target.value),
51147
+ value: L,
51148
+ onChange: (R) => j(R.target.value),
51137
51149
  onKeyDown: (R) => {
51138
51150
  R.key === "Enter" && R.preventDefault();
51139
51151
  },
@@ -51141,7 +51153,7 @@ function y5({
51141
51153
  }
51142
51154
  )
51143
51155
  ] }),
51144
- o && a.length > 0 && /* @__PURE__ */ v(ft, { open: N, onOpenChange: L, children: [
51156
+ o && a.length > 0 && /* @__PURE__ */ v(ft, { open: N, onOpenChange: x, children: [
51145
51157
  /* @__PURE__ */ c(tt, { asChild: !0, children: /* @__PURE__ */ v(B, { variant: "outline", size: "sm", className: "gap-2", children: [
51146
51158
  /* @__PURE__ */ c(R1, { className: "h-4 w-4" }),
51147
51159
  "Filtros",
@@ -51166,7 +51178,7 @@ function y5({
51166
51178
  {
51167
51179
  variant: "outline",
51168
51180
  size: "sm",
51169
- onClick: () => L(!1),
51181
+ onClick: () => x(!1),
51170
51182
  children: "Cancelar"
51171
51183
  }
51172
51184
  ),
@@ -51269,7 +51281,7 @@ function M5({
51269
51281
  className: b,
51270
51282
  serverConfig: w
51271
51283
  }, C) {
51272
- const x = /* @__PURE__ */ c(
51284
+ const L = /* @__PURE__ */ c(
51273
51285
  y5,
51274
51286
  {
51275
51287
  data: t,
@@ -51292,16 +51304,16 @@ function M5({
51292
51304
  n && /* @__PURE__ */ c("h2", { className: "text-lg font-semibold", children: n }),
51293
51305
  r && /* @__PURE__ */ c("p", { className: "text-sm text-muted-foreground mt-1", children: r })
51294
51306
  ] }),
51295
- x
51307
+ L
51296
51308
  ] }) : /* @__PURE__ */ v("div", { ref: C, className: b, children: [
51297
51309
  (n || r) && /* @__PURE__ */ v("div", { className: "mb-6", children: [
51298
51310
  n && /* @__PURE__ */ c("h2", { className: "text-lg font-semibold", children: n }),
51299
51311
  r && /* @__PURE__ */ c("p", { className: "text-sm text-muted-foreground mt-1", children: r })
51300
51312
  ] }),
51301
- x
51313
+ L
51302
51314
  ] });
51303
51315
  }
51304
- const C5 = j.forwardRef(M5);
51316
+ const C5 = D.forwardRef(M5);
51305
51317
  C5.displayName = "AdvancedDataTable";
51306
51318
  function Z7({
51307
51319
  filters: t = [],
@@ -51435,19 +51447,19 @@ function q7({
51435
51447
  availableAssignees: a = []
51436
51448
  }) {
51437
51449
  var w;
51438
- const [o, s] = j.useState(null), [f, l] = j.useState(!1), [d, u] = j.useState(!1);
51439
- if (j.useEffect(() => {
51450
+ const [o, s] = D.useState(null), [f, l] = D.useState(!1), [d, u] = D.useState(!1);
51451
+ if (D.useEffect(() => {
51440
51452
  t && s({ ...t });
51441
51453
  }, [t]), !o) return null;
51442
51454
  const p = () => {
51443
51455
  r(o), n(!1);
51444
- }, h = (C, x) => {
51445
- s((y) => y ? { ...y, [C]: x } : null);
51456
+ }, h = (C, L) => {
51457
+ s((y) => y ? { ...y, [C]: L } : null);
51446
51458
  }, m = (C) => {
51447
- s((x) => {
51448
- if (!x) return null;
51449
- const y = x.dependencies || [], N = y.includes(C) ? y.filter((L) => L !== C) : [...y, C];
51450
- return { ...x, dependencies: N };
51459
+ s((L) => {
51460
+ if (!L) return null;
51461
+ const y = L.dependencies || [], N = y.includes(C) ? y.filter((x) => x !== C) : [...y, C];
51462
+ return { ...L, dependencies: N };
51451
51463
  });
51452
51464
  }, g = i.filter((C) => C.id !== o.id), b = o.name.trim() !== "" && o.startDate <= o.endDate;
51453
51465
  return /* @__PURE__ */ c(zf, { open: e, onOpenChange: n, children: /* @__PURE__ */ v(Of, { className: "max-w-2xl max-h-[90vh] overflow-y-auto", children: [
@@ -51573,8 +51585,8 @@ function q7({
51573
51585
  {
51574
51586
  value: ((w = o.assignee) == null ? void 0 : w.name) || "",
51575
51587
  onValueChange: (C) => {
51576
- const x = a.find((y) => y.name === C);
51577
- h("assignee", x || void 0);
51588
+ const L = a.find((y) => y.name === C);
51589
+ h("assignee", L || void 0);
51578
51590
  },
51579
51591
  children: [
51580
51592
  /* @__PURE__ */ c(pn, { id: "task-assignee", children: /* @__PURE__ */ c(hn, { placeholder: "Selecionar responsável" }) }),
@@ -51633,13 +51645,13 @@ function q7({
51633
51645
  /* @__PURE__ */ c("p", { className: "text-sm text-muted-foreground", children: "Selecione as tarefas que precisam ser concluídas antes desta" }),
51634
51646
  /* @__PURE__ */ c("div", { className: "space-y-2 max-h-48 overflow-y-auto border rounded-lg p-3", children: g.map((C) => {
51635
51647
  var y;
51636
- const x = ((y = o.dependencies) == null ? void 0 : y.includes(C.id)) || !1;
51648
+ const L = ((y = o.dependencies) == null ? void 0 : y.includes(C.id)) || !1;
51637
51649
  return /* @__PURE__ */ v(
51638
51650
  "div",
51639
51651
  {
51640
51652
  className: M(
51641
51653
  "flex items-center gap-3 p-2 rounded-md cursor-pointer transition-colors",
51642
- x ? "bg-primary/10 border border-primary/20" : "hover:bg-muted/50"
51654
+ L ? "bg-primary/10 border border-primary/20" : "hover:bg-muted/50"
51643
51655
  ),
51644
51656
  onClick: () => m(C.id),
51645
51657
  children: [
@@ -51648,9 +51660,9 @@ function q7({
51648
51660
  {
51649
51661
  className: M(
51650
51662
  "size-4 rounded border-2 flex items-center justify-center transition-all",
51651
- x ? "bg-primary border-primary" : "border-muted-foreground"
51663
+ L ? "bg-primary border-primary" : "border-muted-foreground"
51652
51664
  ),
51653
- children: x && /* @__PURE__ */ c("div", { className: "size-2 rounded-sm bg-white" })
51665
+ children: L && /* @__PURE__ */ c("div", { className: "size-2 rounded-sm bg-white" })
51654
51666
  }
51655
51667
  ),
51656
51668
  /* @__PURE__ */ c("span", { className: "text-sm flex-1", children: C.name }),
@@ -51708,7 +51720,7 @@ const N5 = (t) => {
51708
51720
  }
51709
51721
  }, S5 = ({ event: t, isLast: e }) => {
51710
51722
  var a, o, s, f, l, d, u;
51711
- const [n, r] = j.useState(!1), i = !!((a = t.metadata) != null && a.before || (o = t.metadata) != null && o.after || (s = t.metadata) != null && s.details);
51723
+ const [n, r] = D.useState(!1), i = !!((a = t.metadata) != null && a.before || (o = t.metadata) != null && o.after || (s = t.metadata) != null && s.details);
51712
51724
  return /* @__PURE__ */ v("div", { className: "flex gap-4 group", children: [
51713
51725
  /* @__PURE__ */ v("div", { className: "flex flex-col items-center", children: [
51714
51726
  /* @__PURE__ */ c("div", { className: M(
@@ -51763,9 +51775,9 @@ const N5 = (t) => {
51763
51775
  isLast: r === t.length - 1
51764
51776
  },
51765
51777
  n.id
51766
- )) }), b4 = j.createContext(void 0);
51778
+ )) }), b4 = D.createContext(void 0);
51767
51779
  function v4() {
51768
- const t = j.useContext(b4);
51780
+ const t = D.useContext(b4);
51769
51781
  if (!t)
51770
51782
  throw new Error("UnderlineTabs components must be used within UnderlineTabs");
51771
51783
  return t;
@@ -51777,7 +51789,7 @@ function X7({
51777
51789
  children: r,
51778
51790
  className: i
51779
51791
  }) {
51780
- const [a, o] = j.useState(t || ""), s = e !== void 0 ? e : a, f = (l) => {
51792
+ const [a, o] = D.useState(t || ""), s = e !== void 0 ? e : a, f = (l) => {
51781
51793
  e === void 0 && o(l), n == null || n(l);
51782
51794
  };
51783
51795
  return /* @__PURE__ */ c(b4.Provider, { value: { value: s, onValueChange: f }, children: /* @__PURE__ */ c("div", { className: M("w-full", i), role: "tablist", children: r }) });
@@ -51828,7 +51840,7 @@ function nz({
51828
51840
  }
51829
51841
  );
51830
51842
  }
51831
- const w4 = j.createContext({
51843
+ const w4 = D.createContext({
51832
51844
  size: "default",
51833
51845
  variant: "default"
51834
51846
  });
@@ -51861,7 +51873,7 @@ function iz({
51861
51873
  size: r,
51862
51874
  ...i
51863
51875
  }) {
51864
- const a = j.useContext(w4);
51876
+ const a = D.useContext(w4);
51865
51877
  return /* @__PURE__ */ c(
51866
51878
  G1.Item,
51867
51879
  {