@iclips/ui 1.3.10 → 1.3.11

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
@@ -4,7 +4,7 @@ import { ChevronDownIcon as rl, Loader2 as Q1, CheckIcon as il, ChevronUpIcon as
4
4
  import { clsx as fy } from "clsx";
5
5
  import { twMerge as cy } from "tailwind-merge";
6
6
  import * as I from "react";
7
- import Ve, { useState as oe, useMemo as Me, useEffect as ye, useCallback as Se, useRef as Oe, useDebugValue as s0, forwardRef as l0, version as Wu, useLayoutEffect as od, createContext as Hr, useContext as nt, useImperativeHandle as dy, createElement as P, memo as sd, createRef as wn, Fragment as ld, Suspense as uy, Component as hy, isValidElement as py, cloneElement as Hu } from "react";
7
+ import Ve, { useState as oe, useMemo as Me, useEffect as ye, useCallback as ke, useRef as Oe, useDebugValue as s0, forwardRef as l0, version as Wu, useLayoutEffect as od, createContext as Hr, useContext as nt, useImperativeHandle as dy, createElement as P, memo as sd, createRef as wn, Fragment as ld, Suspense as uy, Component as hy, isValidElement as py, cloneElement as Hu } from "react";
8
8
  import { Slot as zn } from "@radix-ui/react-slot";
9
9
  import { cva as nn } from "class-variance-authority";
10
10
  import * as dt from "@radix-ui/react-select";
@@ -904,7 +904,7 @@ const Zy = nn(
904
904
  variant: "default"
905
905
  }
906
906
  }
907
- ), me = I.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ f(
907
+ ), he = I.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ f(
908
908
  n ? zn : "span",
909
909
  {
910
910
  ref: i,
@@ -913,10 +913,10 @@ const Zy = nn(
913
913
  ...r
914
914
  }
915
915
  ));
916
- me.displayName = "Badge";
916
+ he.displayName = "Badge";
917
917
  function Xy({ label: t, value: e, onRemove: n, className: r }) {
918
918
  return /* @__PURE__ */ b(
919
- me,
919
+ he,
920
920
  {
921
921
  variant: "secondary",
922
922
  className: C(
@@ -1782,21 +1782,21 @@ function x0({
1782
1782
  e == null || e(E), d || v(!1);
1783
1783
  }, S = (E) => {
1784
1784
  if (t) {
1785
- const U = new Date(t), [_, W] = E.split(":").map(Number);
1786
- U.setHours(_, W, 0, 0), e == null || e(U);
1785
+ const U = new Date(t), [_, Q] = E.split(":").map(Number);
1786
+ U.setHours(_, Q, 0, 0), e == null || e(U);
1787
1787
  } else {
1788
- const U = /* @__PURE__ */ new Date(), [_, W] = E.split(":").map(Number);
1789
- U.setHours(_, W, 0, 0), e == null || e(U);
1788
+ const U = /* @__PURE__ */ new Date(), [_, Q] = E.split(":").map(Number);
1789
+ U.setHours(_, Q, 0, 0), e == null || e(U);
1790
1790
  }
1791
1791
  }, R = (E) => {
1792
1792
  const U = E.trim();
1793
1793
  if (!U) return null;
1794
1794
  for (const _ of k)
1795
1795
  try {
1796
- const W = f0(U, _, /* @__PURE__ */ new Date());
1797
- if (c0(W)) {
1798
- if (i && W < i || a && W > a) continue;
1799
- return W;
1796
+ const Q = f0(U, _, /* @__PURE__ */ new Date());
1797
+ if (c0(Q)) {
1798
+ if (i && Q < i || a && Q > a) continue;
1799
+ return Q;
1800
1800
  }
1801
1801
  } catch {
1802
1802
  continue;
@@ -1814,7 +1814,7 @@ function x0({
1814
1814
  E ? (e == null || e(E), L(!1)) : L(!0);
1815
1815
  }, B = (E) => {
1816
1816
  E.key === "Enter" ? (E.preventDefault(), V(), y || v(!0)) : E.key === "Escape" && (E.preventDefault(), x(t ? ce(t, N, { locale: s }) : ""), L(!1));
1817
- }, Q = (E) => {
1817
+ }, H = (E) => {
1818
1818
  E.stopPropagation(), e == null || e(void 0), x(""), L(!1);
1819
1819
  };
1820
1820
  return /* @__PURE__ */ b(it, { open: w, onOpenChange: v, children: [
@@ -1846,7 +1846,7 @@ function x0({
1846
1846
  variant: "ghost",
1847
1847
  size: "sm",
1848
1848
  className: "h-7 w-7 p-0 hover:bg-transparent",
1849
- onClick: Q,
1849
+ onClick: H,
1850
1850
  tabIndex: -1,
1851
1851
  children: [
1852
1852
  /* @__PURE__ */ f(er, { className: "h-4 w-4 text-muted-foreground hover:text-foreground" }),
@@ -2181,7 +2181,7 @@ function zv({
2181
2181
  var v, M;
2182
2182
  const w = ((M = (v = a == null ? void 0 : a.options) == null ? void 0 : v.find((x) => x.value === g)) == null ? void 0 : M.label) || g;
2183
2183
  return /* @__PURE__ */ b(
2184
- me,
2184
+ he,
2185
2185
  {
2186
2186
  variant: "secondary",
2187
2187
  className: "gap-1 h-6 text-xs",
@@ -2277,7 +2277,7 @@ function Pv({
2277
2277
  default:
2278
2278
  return "contains";
2279
2279
  }
2280
- }, V = Se(async (T) => {
2280
+ }, V = ke(async (T) => {
2281
2281
  w && (u != null && u.onFilterChange) ? await u.onFilterChange(T, L) : (x.clearFilters(), L && x.setFilter(R, L, "contains"), T.forEach((G) => {
2282
2282
  const te = Y(G.operator);
2283
2283
  x.setFilter(G.field, G.value, te);
@@ -2289,9 +2289,9 @@ function Pv({
2289
2289
  x.setFilter(T.field, T.value, G);
2290
2290
  }))));
2291
2291
  }, [JSON.stringify(s)]);
2292
- const B = Se(async (T) => {
2292
+ const B = ke(async (T) => {
2293
2293
  N(T), w && (u != null && u.onFilterChange) ? await u.onFilterChange(j, T) : x.setFilter(R, T, "contains");
2294
- }, [w, u, j, x, R]), Q = (T) => {
2294
+ }, [w, u, j, x, R]), H = (T) => {
2295
2295
  if (/^\d{4}-\d{2}-\d{2}/.test(T)) {
2296
2296
  const G = /* @__PURE__ */ new Date(T + "T00:00:00");
2297
2297
  if (!isNaN(G.getTime()))
@@ -2324,7 +2324,7 @@ function Pv({
2324
2324
  return Array.isArray(T.value) ? ve = T.value.map((lt) => {
2325
2325
  var gn, mr;
2326
2326
  return ((mr = (gn = G == null ? void 0 : G.options) == null ? void 0 : gn.find((gr) => gr.value === lt)) == null ? void 0 : mr.label) || lt;
2327
- }).join(", ") : (G == null ? void 0 : G.type) === "date" ? ve = Q(T.value) : ve = ((pr = (mn = G == null ? void 0 : G.options) == null ? void 0 : mn.find((lt) => lt.value === T.value)) == null ? void 0 : pr.label) || T.value, {
2327
+ }).join(", ") : (G == null ? void 0 : G.type) === "date" ? ve = H(T.value) : ve = ((pr = (mn = G == null ? void 0 : G.options) == null ? void 0 : mn.find((lt) => lt.value === T.value)) == null ? void 0 : pr.label) || T.value, {
2328
2328
  id: T.id,
2329
2329
  label: (G == null ? void 0 : G.label) || T.field,
2330
2330
  value: te ? `${te} ${ve}` : ve,
@@ -2335,9 +2335,9 @@ function Pv({
2335
2335
  };
2336
2336
  }), _ = () => {
2337
2337
  V(j), A(!1);
2338
- }, W = () => {
2338
+ }, Q = () => {
2339
2339
  S([]), w && (u != null && u.onFilterChange) ? u.onFilterChange([], L) : (x.clearFilters(), L && x.setFilter(R, L, "contains"));
2340
- }, he = Se(async (T) => {
2340
+ }, pe = ke(async (T) => {
2341
2341
  if (w && (u != null && u.onSortChange)) {
2342
2342
  const G = M.sort;
2343
2343
  let te = "asc";
@@ -2349,9 +2349,9 @@ function Pv({
2349
2349
  x.onSort(T), await u.onSortChange(ve);
2350
2350
  } else
2351
2351
  x.onSort(T);
2352
- }, [w, u, M.sort, x]), pe = Se(async (T) => {
2352
+ }, [w, u, M.sort, x]), me = ke(async (T) => {
2353
2353
  w && (u != null && u.onPageChange) ? await u.onPageChange(T, M.pagination.pageSize) : M.pagination.onPageChange && M.pagination.onPageChange(T);
2354
- }, [w, u, M.pagination]), ke = Se(async (T) => {
2354
+ }, [w, u, M.pagination]), Ee = ke(async (T) => {
2355
2355
  w && (u != null && u.onPageChange) ? await u.onPageChange(1, T) : M.pagination.onPageSizeChange && M.pagination.onPageSizeChange(T);
2356
2356
  }, [w, u, M.pagination]), J = () => {
2357
2357
  const T = j.length > 0, G = L.trim().length > 0;
@@ -2365,7 +2365,7 @@ function Pv({
2365
2365
  primaryAction: {
2366
2366
  label: "Limpar Filtros",
2367
2367
  onClick: () => {
2368
- N(""), W();
2368
+ N(""), Q();
2369
2369
  },
2370
2370
  variant: "outline"
2371
2371
  }
@@ -2448,7 +2448,7 @@ function Pv({
2448
2448
  _y,
2449
2449
  {
2450
2450
  activeFilters: U,
2451
- onClearAll: W
2451
+ onClearAll: Q
2452
2452
  }
2453
2453
  ),
2454
2454
  /* @__PURE__ */ f("div", { className: "rounded-md border", children: /* @__PURE__ */ b(w0, { children: [
@@ -2461,7 +2461,7 @@ function Pv({
2461
2461
  T.sortable && y(T.key) && "text-primary"
2462
2462
  ),
2463
2463
  style: { width: T.width },
2464
- onClick: () => T.sortable && he(T.key),
2464
+ onClick: () => T.sortable && pe(T.key),
2465
2465
  "aria-sort": T.sortable ? y(T.key) === "asc" ? "ascending" : y(T.key) === "desc" ? "descending" : "none" : void 0,
2466
2466
  children: [
2467
2467
  T.header,
@@ -2507,8 +2507,8 @@ function Pv({
2507
2507
  totalPages: Math.ceil(M.pagination.totalItems / M.pagination.pageSize),
2508
2508
  pageSize: M.pagination.pageSize,
2509
2509
  totalItems: M.pagination.totalItems,
2510
- onPageChange: pe,
2511
- onPageSizeChange: ke,
2510
+ onPageChange: me,
2511
+ onPageSizeChange: Ee,
2512
2512
  pageSizeOptions: l
2513
2513
  }
2514
2514
  )
@@ -3400,7 +3400,7 @@ function o7({
3400
3400
  ) }),
3401
3401
  /* @__PURE__ */ f("span", { className: C("flex-1 text-left"), children: y.label }),
3402
3402
  y.badge && /* @__PURE__ */ f(
3403
- me,
3403
+ he,
3404
3404
  {
3405
3405
  variant: "secondary",
3406
3406
  className: C(
@@ -5135,7 +5135,7 @@ let Ce = class sc {
5135
5135
  Ce.none = [];
5136
5136
  class fs extends Error {
5137
5137
  }
5138
- class H {
5138
+ class W {
5139
5139
  /**
5140
5140
  Create a slice. When specifying a non-zero open depth, you must
5141
5141
  make sure that there are nodes of at least that depth at the
@@ -5162,13 +5162,13 @@ class H {
5162
5162
  */
5163
5163
  insertAt(e, n) {
5164
5164
  let r = j0(this.content, e + this.openStart, n);
5165
- return r && new H(r, this.openStart, this.openEnd);
5165
+ return r && new W(r, this.openStart, this.openEnd);
5166
5166
  }
5167
5167
  /**
5168
5168
  @internal
5169
5169
  */
5170
5170
  removeBetween(e, n) {
5171
- return new H(T0(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
5171
+ return new W(T0(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
5172
5172
  }
5173
5173
  /**
5174
5174
  Tests whether this slice is equal to another slice.
@@ -5196,11 +5196,11 @@ class H {
5196
5196
  */
5197
5197
  static fromJSON(e, n) {
5198
5198
  if (!n)
5199
- return H.empty;
5199
+ return W.empty;
5200
5200
  let r = n.openStart || 0, i = n.openEnd || 0;
5201
5201
  if (typeof r != "number" || typeof i != "number")
5202
5202
  throw new RangeError("Invalid input for Slice.fromJSON");
5203
- return new H(O.fromJSON(e, n.content), r, i);
5203
+ return new W(O.fromJSON(e, n.content), r, i);
5204
5204
  }
5205
5205
  /**
5206
5206
  Create a slice from a fragment by taking the maximum possible
@@ -5212,10 +5212,10 @@ class H {
5212
5212
  r++;
5213
5213
  for (let a = e.lastChild; a && !a.isLeaf && (n || !a.type.spec.isolating); a = a.lastChild)
5214
5214
  i++;
5215
- return new H(e, r, i);
5215
+ return new W(e, r, i);
5216
5216
  }
5217
5217
  }
5218
- H.empty = new H(O.empty, 0, 0);
5218
+ W.empty = new W(O.empty, 0, 0);
5219
5219
  function T0(t, e, n) {
5220
5220
  let { index: r, offset: i } = t.findIndex(e), a = t.maybeChild(r), { index: o, offset: s } = t.findIndex(n);
5221
5221
  if (i == e || a.isText) {
@@ -5741,9 +5741,9 @@ class Yt {
5741
5741
  */
5742
5742
  slice(e, n = this.content.size, r = !1) {
5743
5743
  if (e == n)
5744
- return H.empty;
5744
+ return W.empty;
5745
5745
  let i = this.resolve(e), a = this.resolve(n), o = r ? 0 : i.sharedDepth(n), s = i.start(o), c = i.node(o).content.cut(i.pos - s, a.pos - s);
5746
- return new H(c, i.depth - o, a.depth - o);
5746
+ return new W(c, i.depth - o, a.depth - o);
5747
5747
  }
5748
5748
  /**
5749
5749
  Replace the part of the document between the given positions with
@@ -6770,7 +6770,7 @@ class Zn {
6770
6770
  */
6771
6771
  parseSlice(e, n = {}) {
6772
6772
  let r = new uh(this, n, !0);
6773
- return r.addAll(e, Ce.none, n.from, n.to), H.maxOpen(r.finish());
6773
+ return r.addAll(e, Ce.none, n.from, n.to), W.maxOpen(r.finish());
6774
6774
  }
6775
6775
  /**
6776
6776
  @internal
@@ -7757,7 +7757,7 @@ class Jn extends st {
7757
7757
  super(), this.from = e, this.to = n, this.mark = r;
7758
7758
  }
7759
7759
  apply(e) {
7760
- let n = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), a = new H(md(n.content, (o, s) => !o.isAtom || !s.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), n.openStart, n.openEnd);
7760
+ let n = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), a = new W(md(n.content, (o, s) => !o.isAtom || !s.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), n.openStart, n.openEnd);
7761
7761
  return Be.fromReplace(e, this.from, this.to, a);
7762
7762
  }
7763
7763
  invert() {
@@ -7796,7 +7796,7 @@ class _t extends st {
7796
7796
  super(), this.from = e, this.to = n, this.mark = r;
7797
7797
  }
7798
7798
  apply(e) {
7799
- let n = e.slice(this.from, this.to), r = new H(md(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), n.openStart, n.openEnd);
7799
+ let n = e.slice(this.from, this.to), r = new W(md(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), n.openStart, n.openEnd);
7800
7800
  return Be.fromReplace(e, this.from, this.to, r);
7801
7801
  }
7802
7802
  invert() {
@@ -7839,7 +7839,7 @@ class Kn extends st {
7839
7839
  if (!n)
7840
7840
  return Be.fail("No node at mark step's position");
7841
7841
  let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
7842
- return Be.fromReplace(e, this.pos, this.pos + 1, new H(O.from(r), 0, n.isLeaf ? 0 : 1));
7842
+ return Be.fromReplace(e, this.pos, this.pos + 1, new W(O.from(r), 0, n.isLeaf ? 0 : 1));
7843
7843
  }
7844
7844
  invert(e) {
7845
7845
  let n = e.nodeAt(this.pos);
@@ -7883,7 +7883,7 @@ class Br extends st {
7883
7883
  if (!n)
7884
7884
  return Be.fail("No node at mark step's position");
7885
7885
  let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
7886
- return Be.fromReplace(e, this.pos, this.pos + 1, new H(O.from(r), 0, n.isLeaf ? 0 : 1));
7886
+ return Be.fromReplace(e, this.pos, this.pos + 1, new W(O.from(r), 0, n.isLeaf ? 0 : 1));
7887
7887
  }
7888
7888
  invert(e) {
7889
7889
  let n = e.nodeAt(this.pos);
@@ -7936,10 +7936,10 @@ class ze extends st {
7936
7936
  if (!(e instanceof ze) || e.structure || this.structure)
7937
7937
  return null;
7938
7938
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
7939
- let n = this.slice.size + e.slice.size == 0 ? H.empty : new H(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
7939
+ let n = this.slice.size + e.slice.size == 0 ? W.empty : new W(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
7940
7940
  return new ze(this.from, this.to + (e.to - e.from), n, this.structure);
7941
7941
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
7942
- let n = this.slice.size + e.slice.size == 0 ? H.empty : new H(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
7942
+ let n = this.slice.size + e.slice.size == 0 ? W.empty : new W(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
7943
7943
  return new ze(e.from, this.to, n, this.structure);
7944
7944
  } else
7945
7945
  return null;
@@ -7954,7 +7954,7 @@ class ze extends st {
7954
7954
  static fromJSON(e, n) {
7955
7955
  if (typeof n.from != "number" || typeof n.to != "number")
7956
7956
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
7957
- return new ze(n.from, n.to, H.fromJSON(e, n.slice), !!n.structure);
7957
+ return new ze(n.from, n.to, W.fromJSON(e, n.slice), !!n.structure);
7958
7958
  }
7959
7959
  }
7960
7960
  ze.MAP_BIAS = 1;
@@ -8013,7 +8013,7 @@ class He extends st {
8013
8013
  static fromJSON(e, n) {
8014
8014
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
8015
8015
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
8016
- return new He(n.from, n.to, n.gapFrom, n.gapTo, H.fromJSON(e, n.slice), n.insert, !!n.structure);
8016
+ return new He(n.from, n.to, n.gapFrom, n.gapTo, W.fromJSON(e, n.slice), n.insert, !!n.structure);
8017
8017
  }
8018
8018
  }
8019
8019
  st.jsonID("replaceAround", He);
@@ -8075,7 +8075,7 @@ function gd(t, e, n, r = n.contentMatch, i = !0) {
8075
8075
  for (let l = 0; l < a.childCount; l++) {
8076
8076
  let c = a.child(l), d = s + c.nodeSize, u = r.matchType(c.type);
8077
8077
  if (!u)
8078
- o.push(new ze(s, d, H.empty));
8078
+ o.push(new ze(s, d, W.empty));
8079
8079
  else {
8080
8080
  r = u;
8081
8081
  for (let p = 0; p < c.marks.length; p++)
@@ -8083,14 +8083,14 @@ function gd(t, e, n, r = n.contentMatch, i = !0) {
8083
8083
  if (i && c.isText && n.whitespace != "pre") {
8084
8084
  let p, h = /\r?\n|\r/g, m;
8085
8085
  for (; p = h.exec(c.text); )
8086
- m || (m = new H(O.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new ze(s + p.index, s + p.index + p[0].length, m));
8086
+ m || (m = new W(O.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new ze(s + p.index, s + p.index + p[0].length, m));
8087
8087
  }
8088
8088
  }
8089
8089
  s = d;
8090
8090
  }
8091
8091
  if (!r.validEnd) {
8092
8092
  let l = r.fillBefore(O.empty, !0);
8093
- t.replace(s, s, new H(l, 0, 0));
8093
+ t.replace(s, s, new W(l, 0, 0));
8094
8094
  }
8095
8095
  for (let l = o.length - 1; l >= 0; l--)
8096
8096
  t.step(o[l]);
@@ -8117,7 +8117,7 @@ function z3(t, e, n) {
8117
8117
  let p = O.empty, h = 0;
8118
8118
  for (let m = a, g = !1; m > n; m--)
8119
8119
  g || i.after(m + 1) < i.end(m) ? (g = !0, p = O.from(i.node(m).copy(p)), h++) : c++;
8120
- t.step(new He(l, c, o, s, new H(d.append(p), u, h), d.size - u, !0));
8120
+ t.step(new He(l, c, o, s, new W(d.append(p), u, h), d.size - u, !0));
8121
8121
  }
8122
8122
  function bd(t, e, n = null, r = t) {
8123
8123
  let i = P3(t, e), a = i && B3(r, e);
@@ -8153,7 +8153,7 @@ function F3(t, e, n) {
8153
8153
  r = O.from(n[o].type.create(n[o].attrs, r));
8154
8154
  }
8155
8155
  let i = e.start, a = e.end;
8156
- t.step(new He(i, a, i, a, new H(r, 0, 0), n.length, !0));
8156
+ t.step(new He(i, a, i, a, new W(r, 0, 0), n.length, !0));
8157
8157
  }
8158
8158
  function V3(t, e, n, r, i) {
8159
8159
  if (!r.isTextblock)
@@ -8169,7 +8169,7 @@ function V3(t, e, n, r, i) {
8169
8169
  }
8170
8170
  c === !1 && $0(t, o, s, a), gd(t, t.mapping.slice(a).map(s, 1), r, void 0, c === null);
8171
8171
  let d = t.mapping.slice(a), u = d.map(s, 1), p = d.map(s + o.nodeSize, 1);
8172
- return t.step(new He(u, p, u + 1, p - 1, new H(O.from(r.create(l, null, o.marks)), 0, 0), 1, !0)), c === !0 && _0(t, o, s, a), !1;
8172
+ return t.step(new He(u, p, u + 1, p - 1, new W(O.from(r.create(l, null, o.marks)), 0, 0), 1, !0)), c === !0 && _0(t, o, s, a), !1;
8173
8173
  }
8174
8174
  });
8175
8175
  }
@@ -8207,7 +8207,7 @@ function U3(t, e, n, r, i) {
8207
8207
  return t.replaceWith(e, e + a.nodeSize, o);
8208
8208
  if (!n.validContent(a.content))
8209
8209
  throw new RangeError("Invalid content for node type " + n.name);
8210
- t.step(new He(e, e + a.nodeSize, e + 1, e + a.nodeSize - 1, new H(O.from(o), 0, 0), 1, !0));
8210
+ t.step(new He(e, e + a.nodeSize, e + 1, e + a.nodeSize - 1, new W(O.from(o), 0, 0), 1, !0));
8211
8211
  }
8212
8212
  function jn(t, e, n = 1, r) {
8213
8213
  let i = t.resolve(e), a = i.depth - n, o = r && r[r.length - 1] || i.parent;
@@ -8233,7 +8233,7 @@ function W3(t, e, n = 1, r) {
8233
8233
  let d = r && r[c];
8234
8234
  o = O.from(d ? d.type.create(d.attrs, o) : i.node(s).copy(o));
8235
8235
  }
8236
- t.step(new ze(e, e, new H(a.append(o), n, n), !0));
8236
+ t.step(new ze(e, e, new W(a.append(o), n, n), !0));
8237
8237
  }
8238
8238
  function lr(t, e) {
8239
8239
  let n = t.resolve(e), r = n.index();
@@ -8276,7 +8276,7 @@ function Q3(t, e, n) {
8276
8276
  }
8277
8277
  o.inlineContent && gd(t, e + n - 1, o, a.node().contentMatchAt(a.index()), r == null);
8278
8278
  let l = t.mapping.slice(s), c = l.map(e - n);
8279
- if (t.step(new ze(c, l.map(e + n, -1), H.empty, !0)), r === !0) {
8279
+ if (t.step(new ze(c, l.map(e + n, -1), W.empty, !0)), r === !0) {
8280
8280
  let d = t.doc.resolve(c);
8281
8281
  _0(t, d.node(), d.before(), t.steps.length);
8282
8282
  }
@@ -8325,7 +8325,7 @@ function tm(t, e, n) {
8325
8325
  }
8326
8326
  return null;
8327
8327
  }
8328
- function Ll(t, e, n = e, r = H.empty) {
8328
+ function Ll(t, e, n = e, r = W.empty) {
8329
8329
  if (e == n && !r.size)
8330
8330
  return null;
8331
8331
  let i = t.resolve(e), a = t.resolve(n);
@@ -8361,7 +8361,7 @@ class J3 {
8361
8361
  let a = this.placed, o = r.depth, s = i.depth;
8362
8362
  for (; o && s && a.childCount == 1; )
8363
8363
  a = a.firstChild.content, o--, s--;
8364
- let l = new H(a, o, s);
8364
+ let l = new W(a, o, s);
8365
8365
  return e > -1 ? new He(r.pos, e, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new ze(r.pos, i.pos, l) : null;
8366
8366
  }
8367
8367
  // Find a position on the start spine of `this.unplaced` that has
@@ -8395,15 +8395,15 @@ class J3 {
8395
8395
  }
8396
8396
  openMore() {
8397
8397
  let { content: e, openStart: n, openEnd: r } = this.unplaced, i = pf(e, n);
8398
- return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new H(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
8398
+ return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new W(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
8399
8399
  }
8400
8400
  dropNode() {
8401
8401
  let { content: e, openStart: n, openEnd: r } = this.unplaced, i = pf(e, n);
8402
8402
  if (i.childCount <= 1 && n > 0) {
8403
8403
  let a = e.size - n <= n + i.size;
8404
- this.unplaced = new H(ra(e, n - 1, 1), n - 1, a ? n - 1 : r);
8404
+ this.unplaced = new W(ra(e, n - 1, 1), n - 1, a ? n - 1 : r);
8405
8405
  } else
8406
- this.unplaced = new H(ra(e, n, 1), n, r);
8406
+ this.unplaced = new W(ra(e, n, 1), n, r);
8407
8407
  }
8408
8408
  // Move content from the unplaced slice at `sliceDepth` to the
8409
8409
  // frontier node at `frontierDepth`. Close that frontier node when
@@ -8433,7 +8433,7 @@ class J3 {
8433
8433
  let v = w.lastChild;
8434
8434
  this.frontier.push({ type: v.type, match: v.contentMatchAt(v.childCount) }), w = v.content;
8435
8435
  }
8436
- this.unplaced = m ? e == 0 ? H.empty : new H(ra(o.content, e - 1, 1), e - 1, h < 0 ? o.openEnd : e - 1) : new H(ra(o.content, e, c), o.openStart, o.openEnd);
8436
+ this.unplaced = m ? e == 0 ? W.empty : new W(ra(o.content, e - 1, 1), e - 1, h < 0 ? o.openEnd : e - 1) : new W(ra(o.content, e, c), o.openStart, o.openEnd);
8437
8437
  }
8438
8438
  mustMoveInline() {
8439
8439
  if (!this.$to.parent.isTextblock)
@@ -8552,7 +8552,7 @@ function Z3(t, e, n, r) {
8552
8552
  w < 0 && (v = !1, w = -w);
8553
8553
  let M = i.node(w - 1), x = i.index(w - 1);
8554
8554
  if (M.canReplaceWith(x, x, m.type, m.marks))
8555
- return t.replace(i.before(w), v ? a.after(w) : n, new H(im(r.content, 0, r.openStart, h), h, r.openEnd));
8555
+ return t.replace(i.before(w), v ? a.after(w) : n, new W(im(r.content, 0, r.openStart, h), h, r.openEnd));
8556
8556
  }
8557
8557
  }
8558
8558
  let u = t.steps.length;
@@ -8577,7 +8577,7 @@ function X3(t, e, n, r) {
8577
8577
  let i = G3(t.doc, e, r.type);
8578
8578
  i != null && (e = n = i);
8579
8579
  }
8580
- t.replaceRange(e, n, new H(O.from(r), 0, 0));
8580
+ t.replaceRange(e, n, new W(O.from(r), 0, 0));
8581
8581
  }
8582
8582
  function _3(t, e, n) {
8583
8583
  let r = t.doc.resolve(e), i = t.doc.resolve(n);
@@ -8634,7 +8634,7 @@ class vi extends st {
8634
8634
  r[a] = n.attrs[a];
8635
8635
  r[this.attr] = this.value;
8636
8636
  let i = n.type.create(r, null, n.marks);
8637
- return Be.fromReplace(e, this.pos, this.pos + 1, new H(O.from(i), 0, n.isLeaf ? 0 : 1));
8637
+ return Be.fromReplace(e, this.pos, this.pos + 1, new W(O.from(i), 0, n.isLeaf ? 0 : 1));
8638
8638
  }
8639
8639
  getMap() {
8640
8640
  return Nt.empty;
@@ -8763,7 +8763,7 @@ class om {
8763
8763
  Replace the part of the document between `from` and `to` with the
8764
8764
  given `slice`.
8765
8765
  */
8766
- replace(e, n = e, r = H.empty) {
8766
+ replace(e, n = e, r = W.empty) {
8767
8767
  let i = Ll(this.doc, e, n, r);
8768
8768
  return i && this.step(i), this;
8769
8769
  }
@@ -8772,13 +8772,13 @@ class om {
8772
8772
  fragment, node, or array of nodes.
8773
8773
  */
8774
8774
  replaceWith(e, n, r) {
8775
- return this.replace(e, n, new H(O.from(r), 0, 0));
8775
+ return this.replace(e, n, new W(O.from(r), 0, 0));
8776
8776
  }
8777
8777
  /**
8778
8778
  Delete the content between the given positions.
8779
8779
  */
8780
8780
  delete(e, n) {
8781
- return this.replace(e, n, H.empty);
8781
+ return this.replace(e, n, W.empty);
8782
8782
  }
8783
8783
  /**
8784
8784
  Insert the given content at the given position.
@@ -9006,14 +9006,14 @@ class se {
9006
9006
  Replace the selection with a slice or, if no slice is given,
9007
9007
  delete the selection. Will append to the given transaction.
9008
9008
  */
9009
- replace(e, n = H.empty) {
9009
+ replace(e, n = W.empty) {
9010
9010
  let r = n.content.lastChild, i = null;
9011
9011
  for (let s = 0; s < n.openEnd; s++)
9012
9012
  i = r, r = r.lastChild;
9013
9013
  let a = e.steps.length, o = this.ranges;
9014
9014
  for (let s = 0; s < o.length; s++) {
9015
9015
  let { $from: l, $to: c } = o[s], d = e.mapping.slice(a);
9016
- e.replaceRange(d.map(l.pos), d.map(c.pos), s ? H.empty : n), s == 0 && Ch(e, a, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
9016
+ e.replaceRange(d.map(l.pos), d.map(c.pos), s ? W.empty : n), s == 0 && Ch(e, a, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
9017
9017
  }
9018
9018
  }
9019
9019
  /**
@@ -9139,8 +9139,8 @@ class ee extends se {
9139
9139
  let i = e.resolve(n.map(this.anchor));
9140
9140
  return new ee(i.parent.inlineContent ? i : r, r);
9141
9141
  }
9142
- replace(e, n = H.empty) {
9143
- if (super.replace(e, n), n == H.empty) {
9142
+ replace(e, n = W.empty) {
9143
+ if (super.replace(e, n), n == W.empty) {
9144
9144
  let r = this.$from.marksAcross(this.$to);
9145
9145
  r && e.ensureMarks(r);
9146
9146
  }
@@ -9215,7 +9215,7 @@ class Z extends se {
9215
9215
  return r ? se.near(a) : new Z(a);
9216
9216
  }
9217
9217
  content() {
9218
- return new H(O.from(this.node), 0, 0);
9218
+ return new W(O.from(this.node), 0, 0);
9219
9219
  }
9220
9220
  eq(e) {
9221
9221
  return e instanceof Z && e.anchor == this.anchor;
@@ -9270,8 +9270,8 @@ class It extends se {
9270
9270
  constructor(e) {
9271
9271
  super(e.resolve(0), e.resolve(e.content.size));
9272
9272
  }
9273
- replace(e, n = H.empty) {
9274
- if (n == H.empty) {
9273
+ replace(e, n = W.empty) {
9274
+ if (n == W.empty) {
9275
9275
  e.delete(0, e.doc.content.size);
9276
9276
  let r = se.atStart(e.doc);
9277
9277
  r.eq(e.selection) || e.setSelection(r);
@@ -9710,7 +9710,7 @@ function sm(t, e, n) {
9710
9710
  }
9711
9711
  return n;
9712
9712
  }
9713
- class Ae {
9713
+ class Ie {
9714
9714
  /**
9715
9715
  Create a plugin.
9716
9716
  */
@@ -9768,7 +9768,7 @@ const cm = (t, e, n) => {
9768
9768
  return !0;
9769
9769
  if (r.parent.content.size == 0 && (Ni(a, "end") || Z.isSelectable(a)))
9770
9770
  for (let o = r.depth; ; o--) {
9771
- let s = Ll(t.doc, r.before(o), r.after(o), H.empty);
9771
+ let s = Ll(t.doc, r.before(o), r.after(o), W.empty);
9772
9772
  if (s && s.slice.size < s.to - s.from) {
9773
9773
  if (e) {
9774
9774
  let l = t.tr.step(s);
@@ -9812,7 +9812,7 @@ function dm(t, e, n) {
9812
9812
  return !1;
9813
9813
  s = d;
9814
9814
  }
9815
- let c = Ll(t.doc, a, l, H.empty);
9815
+ let c = Ll(t.doc, a, l, W.empty);
9816
9816
  if (!c || c.from != a || c instanceof ze && c.slice.size >= l - a)
9817
9817
  return !1;
9818
9818
  if (n) {
@@ -9867,7 +9867,7 @@ const pm = (t, e, n) => {
9867
9867
  if (ym(t, i, e, 1))
9868
9868
  return !0;
9869
9869
  if (r.parent.content.size == 0 && (Ni(a, "start") || Z.isSelectable(a))) {
9870
- let o = Ll(t.doc, r.before(), r.after(), H.empty);
9870
+ let o = Ll(t.doc, r.before(), r.after(), W.empty);
9871
9871
  if (o && o.slice.size < o.to - o.from) {
9872
9872
  if (e) {
9873
9873
  let s = t.tr.step(o);
@@ -10022,7 +10022,7 @@ function ym(t, e, n, r) {
10022
10022
  for (let v = o.length - 1; v >= 0; v--)
10023
10023
  m = O.from(o[v].create(null, m));
10024
10024
  m = O.from(i.copy(m));
10025
- let g = t.tr.step(new He(e.pos - 1, h, e.pos, h, new H(m, 1, 0), o.length, !0)), w = g.doc.resolve(h + 2 * o.length);
10025
+ let g = t.tr.step(new He(e.pos - 1, h, e.pos, h, new W(m, 1, 0), o.length, !0)), w = g.doc.resolve(h + 2 * o.length);
10026
10026
  w.nodeAfter && w.nodeAfter.type == i.type && lr(g.doc, w.pos) && g.join(w.pos), n(g.scrollIntoView());
10027
10027
  }
10028
10028
  return !0;
@@ -10042,7 +10042,7 @@ function ym(t, e, n, r) {
10042
10042
  let v = O.empty;
10043
10043
  for (let x = m.length - 1; x >= 0; x--)
10044
10044
  v = O.from(m[x].copy(v));
10045
- let M = t.tr.step(new He(e.pos - m.length, e.pos + a.nodeSize, e.pos + w, e.pos + a.nodeSize - w, new H(v, m.length, 0), 0, !0));
10045
+ let M = t.tr.step(new He(e.pos - m.length, e.pos + a.nodeSize, e.pos + w, e.pos + a.nodeSize - w, new W(v, m.length, 0), 0, !0));
10046
10046
  n(M.scrollIntoView());
10047
10047
  }
10048
10048
  return !0;
@@ -10134,7 +10134,7 @@ function wC(t, e, n, r, i) {
10134
10134
  let a = O.empty;
10135
10135
  for (let d = n.length - 1; d >= 0; d--)
10136
10136
  a = O.from(n[d].type.create(n[d].attrs, a));
10137
- t.step(new He(e.start - (r ? 2 : 0), e.end, e.start, e.end, new H(a, 0, 0), n.length, !0));
10137
+ t.step(new He(e.start - (r ? 2 : 0), e.end, e.start, e.end, new W(a, 0, 0), n.length, !0));
10138
10138
  let o = 0;
10139
10139
  for (let d = 0; d < n.length; d++)
10140
10140
  n[d].type == i && (o = d + 1);
@@ -10151,7 +10151,7 @@ function yC(t) {
10151
10151
  }
10152
10152
  function vC(t, e, n, r) {
10153
10153
  let i = t.tr, a = r.end, o = r.$to.end(r.depth);
10154
- a < o && (i.step(new He(a - 1, o, a, o, new H(O.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new ds(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
10154
+ a < o && (i.step(new He(a - 1, o, a, o, new W(O.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new ds(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
10155
10155
  const s = Bi(r);
10156
10156
  if (s == null)
10157
10157
  return !1;
@@ -10170,7 +10170,7 @@ function CC(t, e, n) {
10170
10170
  if (!c.canReplace(d + (s ? 0 : 1), d + 1, o.content.append(l ? O.empty : O.from(i))))
10171
10171
  return !1;
10172
10172
  let u = a.pos, p = u + o.nodeSize;
10173
- return r.step(new He(u - (s ? 1 : 0), p + (l ? 1 : 0), u + 1, p - 1, new H((s ? O.empty : O.from(i.copy(O.empty))).append(l ? O.empty : O.from(i.copy(O.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0;
10173
+ return r.step(new He(u - (s ? 1 : 0), p + (l ? 1 : 0), u + 1, p - 1, new W((s ? O.empty : O.from(i.copy(O.empty))).append(l ? O.empty : O.from(i.copy(O.empty))), s ? 0 : 1, l ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0;
10174
10174
  }
10175
10175
  function MC(t) {
10176
10176
  return function(e, n) {
@@ -10184,7 +10184,7 @@ function MC(t) {
10184
10184
  if (l.type != t)
10185
10185
  return !1;
10186
10186
  if (n) {
10187
- let c = l.lastChild && l.lastChild.type == s.type, d = O.from(c ? t.create() : null), u = new H(O.from(t.create(null, O.from(s.type.create(null, d)))), c ? 3 : 1, 0), p = a.start, h = a.end;
10187
+ let c = l.lastChild && l.lastChild.type == s.type, d = O.from(c ? t.create() : null), u = new W(O.from(t.create(null, O.from(s.type.create(null, d)))), c ? 3 : 1, 0), p = a.start, h = a.end;
10188
10188
  n(e.tr.step(new He(p - (c ? 3 : 1), h, p, h, u, 1, !0)).scrollIntoView());
10189
10189
  }
10190
10190
  return !0;
@@ -12076,7 +12076,7 @@ function Fm(t, e, n, r, i) {
12076
12076
  if (t.someProp("transformPastedText", (p) => {
12077
12077
  e = p(e, a || r, t);
12078
12078
  }), a)
12079
- return s = new H(O.from(t.state.schema.text(e.replace(/\r\n?/g, `
12079
+ return s = new W(O.from(t.state.schema.text(e.replace(/\r\n?/g, `
12080
12080
  `))), 0, 0), t.someProp("transformPasted", (p) => {
12081
12081
  s = p(s, t, !0);
12082
12082
  }), s;
@@ -12112,7 +12112,7 @@ function Fm(t, e, n, r, i) {
12112
12112
  }
12113
12113
  })), d)
12114
12114
  s = gM(Gh(s, +d[1], +d[2]), d[4]);
12115
- else if (s = H.maxOpen(uM(s.content, i), !0), s.openStart || s.openEnd) {
12115
+ else if (s = W.maxOpen(uM(s.content, i), !0), s.openStart || s.openEnd) {
12116
12116
  let u = 0, p = 0;
12117
12117
  for (let h = s.content.firstChild; u < s.openStart && !h.type.spec.isolating; u++, h = h.firstChild)
12118
12118
  ;
@@ -12173,7 +12173,7 @@ function vc(t, e, n, r, i, a) {
12173
12173
  return t.childCount > 1 && (a = 0), i < r - 1 && (s = vc(s, e, n, r, i + 1, a)), i >= n && (s = e < 0 ? o.contentMatchAt(0).fillBefore(s, a <= i).append(s) : s.append(o.contentMatchAt(o.childCount).fillBefore(O.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, o.copy(s));
12174
12174
  }
12175
12175
  function Gh(t, e, n) {
12176
- return e < t.openStart && (t = new H(vc(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new H(vc(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
12176
+ return e < t.openStart && (t = new W(vc(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new W(vc(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
12177
12177
  }
12178
12178
  const Wm = {
12179
12179
  thead: ["table"],
@@ -12227,7 +12227,7 @@ function gM(t, e) {
12227
12227
  break;
12228
12228
  i = O.from(l.create(r[s + 1], i)), a++, o++;
12229
12229
  }
12230
- return new H(i, a, o);
12230
+ return new W(i, a, o);
12231
12231
  }
12232
12232
  const ut = {}, ht = {}, bM = { touchstart: !0, touchmove: !0 };
12233
12233
  class wM {
@@ -12550,7 +12550,7 @@ function PM(t, e) {
12550
12550
  }
12551
12551
  function Pa(t, e, n, r, i) {
12552
12552
  let a = Fm(t, e, n, r, t.state.selection.$from);
12553
- if (t.someProp("handlePaste", (l) => l(t, i, a || H.empty)))
12553
+ if (t.someProp("handlePaste", (l) => l(t, i, a || W.empty)))
12554
12554
  return !0;
12555
12555
  if (!a)
12556
12556
  return !1;
@@ -12624,7 +12624,7 @@ function FM(t, e, n) {
12624
12624
  a = h(a, t, !1);
12625
12625
  }) : a = Fm(t, qm(e.dataTransfer), za ? null : e.dataTransfer.getData("text/html"), !1, i);
12626
12626
  let o = !!(n && Xm(t, e));
12627
- if (t.someProp("handleDrop", (h) => h(t, e, a || H.empty, o))) {
12627
+ if (t.someProp("handleDrop", (h) => h(t, e, a || W.empty, o))) {
12628
12628
  e.preventDefault();
12629
12629
  return;
12630
12630
  }
@@ -12815,7 +12815,7 @@ class at {
12815
12815
  }
12816
12816
  }
12817
12817
  const ui = [], Tr = {};
12818
- class Ie {
12818
+ class Se {
12819
12819
  /**
12820
12820
  @internal
12821
12821
  */
@@ -12869,7 +12869,7 @@ class Ie {
12869
12869
  let l = this.local[s].map(e, r, i);
12870
12870
  l && l.type.valid(n, l) ? (o || (o = [])).push(l) : a.onRemove && a.onRemove(this.local[s].spec);
12871
12871
  }
12872
- return this.children.length ? VM(this.children, o || [], e, n, r, i, a) : o ? new Ie(o.sort(jr), ui) : rt;
12872
+ return this.children.length ? VM(this.children, o || [], e, n, r, i, a) : o ? new Se(o.sort(jr), ui) : rt;
12873
12873
  }
12874
12874
  /**
12875
12875
  Add the given array of decorations to the ones in the set,
@@ -12878,7 +12878,7 @@ class Ie {
12878
12878
  structure.
12879
12879
  */
12880
12880
  add(e, n) {
12881
- return n.length ? this == rt ? Ie.create(e, n) : this.addInner(e, n, 0) : this;
12881
+ return n.length ? this == rt ? Se.create(e, n) : this.addInner(e, n, 0) : this;
12882
12882
  }
12883
12883
  addInner(e, n, r) {
12884
12884
  let i, a = 0;
@@ -12893,7 +12893,7 @@ class Ie {
12893
12893
  let o = _m(a ? eg(n) : n, -r);
12894
12894
  for (let s = 0; s < o.length; s++)
12895
12895
  o[s].type.valid(e, o[s]) || o.splice(s--, 1);
12896
- return new Ie(o.length ? this.local.concat(o).sort(jr) : this.local, i || this.children);
12896
+ return new Se(o.length ? this.local.concat(o).sort(jr) : this.local, i || this.children);
12897
12897
  }
12898
12898
  /**
12899
12899
  Create a new set that contains the decorations in this set, minus
@@ -12920,13 +12920,13 @@ class Ie {
12920
12920
  for (let s = 0; s < i.length; s++)
12921
12921
  i[s].eq(o, n) && (i == this.local && (i = this.local.slice()), i.splice(s--, 1));
12922
12922
  }
12923
- return r == this.children && i == this.local ? this : i.length || r.length ? new Ie(i, r) : rt;
12923
+ return r == this.children && i == this.local ? this : i.length || r.length ? new Se(i, r) : rt;
12924
12924
  }
12925
12925
  forChild(e, n) {
12926
12926
  if (this == rt)
12927
12927
  return this;
12928
12928
  if (n.isLeaf)
12929
- return Ie.empty;
12929
+ return Se.empty;
12930
12930
  let r, i;
12931
12931
  for (let s = 0; s < this.children.length; s += 3)
12932
12932
  if (this.children[s] >= e) {
@@ -12942,7 +12942,7 @@ class Ie {
12942
12942
  }
12943
12943
  }
12944
12944
  if (i) {
12945
- let s = new Ie(i.sort(jr), ui);
12945
+ let s = new Se(i.sort(jr), ui);
12946
12946
  return r ? new Qn([s, r]) : s;
12947
12947
  }
12948
12948
  return r || rt;
@@ -12953,7 +12953,7 @@ class Ie {
12953
12953
  eq(e) {
12954
12954
  if (this == e)
12955
12955
  return !0;
12956
- if (!(e instanceof Ie) || this.local.length != e.local.length || this.children.length != e.children.length)
12956
+ if (!(e instanceof Se) || this.local.length != e.local.length || this.children.length != e.children.length)
12957
12957
  return !1;
12958
12958
  for (let n = 0; n < this.local.length; n++)
12959
12959
  if (!this.local[n].eq(e.local[n]))
@@ -12986,9 +12986,9 @@ class Ie {
12986
12986
  e(this);
12987
12987
  }
12988
12988
  }
12989
- Ie.empty = new Ie([], []);
12990
- Ie.removeOverlap = jd;
12991
- const rt = Ie.empty;
12989
+ Se.empty = new Se([], []);
12990
+ Se.removeOverlap = jd;
12991
+ const rt = Se.empty;
12992
12992
  class Qn {
12993
12993
  constructor(e) {
12994
12994
  this.members = e;
@@ -12999,7 +12999,7 @@ class Qn {
12999
12999
  }
13000
13000
  forChild(e, n) {
13001
13001
  if (n.isLeaf)
13002
- return Ie.empty;
13002
+ return Se.empty;
13003
13003
  let r = [];
13004
13004
  for (let i = 0; i < this.members.length; i++) {
13005
13005
  let a = this.members[i].forChild(e, n);
@@ -13039,7 +13039,7 @@ class Qn {
13039
13039
  case 1:
13040
13040
  return e[0];
13041
13041
  default:
13042
- return new Qn(e.every((n) => n instanceof Ie) ? e : e.reduce((n, r) => n.concat(r instanceof Ie ? r : r.members), []));
13042
+ return new Qn(e.every((n) => n instanceof Se) ? e : e.reduce((n, r) => n.concat(r instanceof Se ? r : r.members), []));
13043
13043
  }
13044
13044
  }
13045
13045
  forEachSet(e) {
@@ -13094,7 +13094,7 @@ function VM(t, e, n, r, i, a, o) {
13094
13094
  s.splice(p, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
13095
13095
  }
13096
13096
  }
13097
- return new Ie(e.sort(jr), s);
13097
+ return new Se(e.sort(jr), s);
13098
13098
  }
13099
13099
  function _m(t, e) {
13100
13100
  if (!e || !t.length)
@@ -13146,7 +13146,7 @@ function bs(t, e, n, r) {
13146
13146
  let o = _m(a ? eg(t) : t, -n).sort(jr);
13147
13147
  for (let s = 0; s < o.length; s++)
13148
13148
  o[s].type.valid(e, o[s]) || (r.onRemove && r.onRemove(o[s].spec), o.splice(s--, 1));
13149
- return o.length || i.length ? new Ie(o, i) : rt;
13149
+ return o.length || i.length ? new Se(o, i) : rt;
13150
13150
  }
13151
13151
  function jr(t, e) {
13152
13152
  return t.from - e.from || t.to - e.to;
@@ -13179,7 +13179,7 @@ function Mf(t) {
13179
13179
  return t.someProp("decorations", (n) => {
13180
13180
  let r = n(t.state);
13181
13181
  r && r != rt && e.push(r);
13182
- }), t.cursorWrapper && e.push(Ie.create(t.state.doc, [t.cursorWrapper.deco])), Qn.from(e);
13182
+ }), t.cursorWrapper && e.push(Se.create(t.state.doc, [t.cursorWrapper.deco])), Qn.from(e);
13183
13183
  }
13184
13184
  const UM = {
13185
13185
  childList: !0,
@@ -14104,7 +14104,7 @@ function Nf(t, e, n = !0) {
14104
14104
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
14105
14105
  }
14106
14106
  function ux(t) {
14107
- return new Ae({ props: { handleKeyDown: ng(t) } });
14107
+ return new Ie({ props: { handleKeyDown: ng(t) } });
14108
14108
  }
14109
14109
  function ng(t) {
14110
14110
  let e = dx(t);
@@ -15477,7 +15477,7 @@ var T6 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
15477
15477
  }, L = ((o = s.contentMatch.defaultType) == null ? void 0 : o.createAndFill(y)) || void 0;
15478
15478
  v = v.append(O.from(s.createAndFill(null, L) || void 0));
15479
15479
  const N = l.before(l.depth - (M - 1));
15480
- n.replace(N, l.after(-x), new H(v, 4 - M, 0));
15480
+ n.replace(N, l.after(-x), new W(v, 4 - M, 0));
15481
15481
  let k = -1;
15482
15482
  n.doc.nodesBetween(N, n.doc.content.size, (A, j) => {
15483
15483
  if (k > -1)
@@ -15546,14 +15546,14 @@ var R6 = (t, e, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain:
15546
15546
  if ((R || Y) && S) {
15547
15547
  if (S.node.type === h)
15548
15548
  return N && Y ? l().command(({ tr: V, dispatch: B }) => {
15549
- const Q = D6(V);
15550
- return Q ? (V.setSelection(Q), B && B(V), !0) : !1;
15549
+ const H = D6(V);
15550
+ return H ? (V.setSelection(H), B && B(V), !0) : !1;
15551
15551
  }).liftListItem(m).run() : c.liftListItem(m);
15552
15552
  if (kf(S.node.type.name, u) && h.validContent(S.node.content))
15553
15553
  return l().command(() => (a.setNodeMarkup(S.pos, h), !0)).command(() => Sf(a, h)).command(() => If(a, h)).run();
15554
15554
  }
15555
15555
  return !n || !y || !s ? l().command(() => d().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => Sf(a, h)).command(() => If(a, h)).run() : l().command(() => {
15556
- const V = d().wrapInList(h, r), B = y.filter((Q) => p.includes(Q.type.name));
15556
+ const V = d().wrapInList(h, r), B = y.filter((H) => p.includes(H.type.name));
15557
15557
  return a.ensureMarks(B), V ? !0 : c.clearNodes();
15558
15558
  }).wrapInList(h, r).command(() => Sf(a, h)).command(() => If(a, h)).run();
15559
15559
  }, O6 = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
@@ -15749,7 +15749,7 @@ function ko(t) {
15749
15749
  }), d;
15750
15750
  }
15751
15751
  function J6(t) {
15752
- const { editor: e, rules: n } = t, r = new Ae({
15752
+ const { editor: e, rules: n } = t, r = new Ie({
15753
15753
  state: {
15754
15754
  init() {
15755
15755
  return null;
@@ -15994,7 +15994,7 @@ function eL(t) {
15994
15994
  return o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
15995
15995
  }
15996
15996
  };
15997
- return n.map((d) => new Ae({
15997
+ return n.map((d) => new Ie({
15998
15998
  // we register a global drag handler to track the current drag source element
15999
15999
  view(u) {
16000
16000
  const p = (m) => {
@@ -16340,7 +16340,7 @@ var De = class xg extends Fd {
16340
16340
  },
16341
16341
  addProseMirrorPlugins() {
16342
16342
  return [
16343
- new Ae({
16343
+ new Ie({
16344
16344
  key: new Re("clipboardTextSerializer"),
16345
16345
  props: {
16346
16346
  clipboardTextSerializer: () => {
@@ -16421,7 +16421,7 @@ var De = class xg extends Fd {
16421
16421
  name: "drop",
16422
16422
  addProseMirrorPlugins() {
16423
16423
  return [
16424
- new Ae({
16424
+ new Ie({
16425
16425
  key: new Re("tiptapDrop"),
16426
16426
  props: {
16427
16427
  handleDrop: (t, e, n, r) => {
@@ -16440,7 +16440,7 @@ var De = class xg extends Fd {
16440
16440
  name: "editable",
16441
16441
  addProseMirrorPlugins() {
16442
16442
  return [
16443
- new Ae({
16443
+ new Ie({
16444
16444
  key: new Re("editable"),
16445
16445
  props: {
16446
16446
  editable: () => this.editor.options.editable
@@ -16453,7 +16453,7 @@ var De = class xg extends Fd {
16453
16453
  addProseMirrorPlugins() {
16454
16454
  const { editor: t } = this;
16455
16455
  return [
16456
- new Ae({
16456
+ new Ie({
16457
16457
  key: Ag,
16458
16458
  props: {
16459
16459
  handleDOMEvents: {
@@ -16526,7 +16526,7 @@ var De = class xg extends Fd {
16526
16526
  // to a paragraph if necessary.
16527
16527
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
16528
16528
  // with many other commands.
16529
- new Ae({
16529
+ new Ie({
16530
16530
  key: new Re("clearDocument"),
16531
16531
  appendTransaction: (t, e, n) => {
16532
16532
  if (t.some((g) => g.getMeta("composition")))
@@ -16554,7 +16554,7 @@ var De = class xg extends Fd {
16554
16554
  name: "paste",
16555
16555
  addProseMirrorPlugins() {
16556
16556
  return [
16557
- new Ae({
16557
+ new Ie({
16558
16558
  key: new Re("tiptapPaste"),
16559
16559
  props: {
16560
16560
  handlePaste: (t, e, n) => {
@@ -16572,7 +16572,7 @@ var De = class xg extends Fd {
16572
16572
  name: "tabindex",
16573
16573
  addProseMirrorPlugins() {
16574
16574
  return [
16575
- new Ae({
16575
+ new Ie({
16576
16576
  key: new Re("tabindex"),
16577
16577
  props: {
16578
16578
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
@@ -16611,7 +16611,7 @@ var De = class xg extends Fd {
16611
16611
  },
16612
16612
  addProseMirrorPlugins() {
16613
16613
  return [
16614
- new Ae({
16614
+ new Ie({
16615
16615
  key: new Re("textDirection"),
16616
16616
  props: {
16617
16617
  attributes: () => {
@@ -17769,11 +17769,11 @@ function uL(t) {
17769
17769
  let B = [];
17770
17770
  if (N)
17771
17771
  if (s === "block")
17772
- for (B = h.blockTokens(Y), B.forEach((Q) => {
17773
- Q.text && (!Q.tokens || Q.tokens.length === 0) && (Q.tokens = h.inlineTokens(Q.text));
17772
+ for (B = h.blockTokens(Y), B.forEach((H) => {
17773
+ H.text && (!H.tokens || H.tokens.length === 0) && (H.tokens = h.inlineTokens(H.text));
17774
17774
  }); B.length > 0; ) {
17775
- const Q = B[B.length - 1];
17776
- if (Q.type === "paragraph" && (!Q.text || Q.text.trim() === ""))
17775
+ const H = B[B.length - 1];
17776
+ if (H.type === "paragraph" && (!H.text || H.text.trim() === ""))
17777
17777
  B.pop();
17778
17778
  else
17779
17779
  break;
@@ -19191,7 +19191,7 @@ ${n}
19191
19191
  return [
19192
19192
  // this plugin creates a code block for pasted content from VS Code
19193
19193
  // we can also detect the copied code language
19194
- new Ae({
19194
+ new Ie({
19195
19195
  key: new Re("codeBlockVSCodeHandler"),
19196
19196
  props: {
19197
19197
  handlePaste: (t, e) => {
@@ -20062,12 +20062,12 @@ function XN({
20062
20062
  // <>
20063
20063
  ];
20064
20064
  for (let Y = 0; Y < R.length; Y++) {
20065
- const [V, B] = R[Y], Q = z(L, V);
20066
- z(N, V, Q), z(Q, B, L);
20065
+ const [V, B] = R[Y], H = z(L, V);
20066
+ z(N, V, H), z(H, B, L);
20067
20067
  const E = Rt(jo);
20068
- ae(Q, e, E);
20068
+ ae(H, e, E);
20069
20069
  const U = Rt();
20070
- ae(Q, n), ae(E, e, E), ae(E, n, U), ae(U, e, E), ae(U, n, U), z(E, B, L), z(U, B, L);
20070
+ ae(H, n), ae(E, e, E), ae(E, n, U), ae(U, e, E), ae(U, n, U), z(E, B, L), z(U, B, L);
20071
20071
  }
20072
20072
  return z(i, Ya, M), z(i, Gd, ZN), {
20073
20073
  start: i,
@@ -20152,7 +20152,7 @@ function ok(t) {
20152
20152
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
20153
20153
  }
20154
20154
  function sk(t) {
20155
- return new Ae({
20155
+ return new Ie({
20156
20156
  key: new Re("autolink"),
20157
20157
  appendTransaction: (e, n, r) => {
20158
20158
  const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), a = e.some((c) => c.getMeta("preventAutolink"));
@@ -20205,7 +20205,7 @@ function sk(t) {
20205
20205
  });
20206
20206
  }
20207
20207
  function lk(t) {
20208
- return new Ae({
20208
+ return new Ie({
20209
20209
  key: new Re("handleClickLink"),
20210
20210
  props: {
20211
20211
  handleClick: (e, n, r) => {
@@ -20235,7 +20235,7 @@ function lk(t) {
20235
20235
  });
20236
20236
  }
20237
20237
  function fk(t) {
20238
- return new Ae({
20238
+ return new Ie({
20239
20239
  key: new Re("handlePasteLink"),
20240
20240
  props: {
20241
20241
  handlePaste: (e, n, r) => {
@@ -21371,7 +21371,7 @@ var Do = "&nbsp;", Pf = " ", Nk = pt.create({
21371
21371
  }
21372
21372
  }), Ek = cb;
21373
21373
  function Tk(t = {}) {
21374
- return new Ae({
21374
+ return new Ie({
21375
21375
  view(e) {
21376
21376
  return new jk(e, t);
21377
21377
  }
@@ -21463,7 +21463,7 @@ class je extends se {
21463
21463
  return je.valid(r) ? new je(r) : se.near(r);
21464
21464
  }
21465
21465
  content() {
21466
- return H.empty;
21466
+ return W.empty;
21467
21467
  }
21468
21468
  eq(e) {
21469
21469
  return e instanceof je && e.head == this.head;
@@ -21589,7 +21589,7 @@ function Rk(t) {
21589
21589
  return !0;
21590
21590
  }
21591
21591
  function Ok() {
21592
- return new Ae({
21592
+ return new Ie({
21593
21593
  props: {
21594
21594
  decorations: Fk,
21595
21595
  createSelectionBetween(t, e, n) {
@@ -21638,14 +21638,14 @@ function Bk(t, e) {
21638
21638
  let i = O.empty;
21639
21639
  for (let o = r.length - 1; o >= 0; o--)
21640
21640
  i = O.from(r[o].createAndFill(null, i));
21641
- let a = t.state.tr.replace(n.pos, n.pos, new H(i, 0, 0));
21641
+ let a = t.state.tr.replace(n.pos, n.pos, new W(i, 0, 0));
21642
21642
  return a.setSelection(ee.near(a.doc.resolve(n.pos + 1))), t.dispatch(a), !1;
21643
21643
  }
21644
21644
  function Fk(t) {
21645
21645
  if (!(t.selection instanceof je))
21646
21646
  return null;
21647
21647
  let e = document.createElement("div");
21648
- return e.className = "ProseMirror-gapcursor", Ie.create(t.doc, [at.widget(t.selection.head, e, { key: "gapcursor" })]);
21648
+ return e.className = "ProseMirror-gapcursor", Se.create(t.doc, [at.widget(t.selection.head, e, { key: "gapcursor" })]);
21649
21649
  }
21650
21650
  var Zs = 200, Qe = function() {
21651
21651
  };
@@ -21950,7 +21950,7 @@ function Kk(t = {}) {
21950
21950
  return t = {
21951
21951
  depth: t.depth || 100,
21952
21952
  newGroupDelay: t.newGroupDelay || 500
21953
- }, new Ae({
21953
+ }, new Ie({
21954
21954
  key: Dr,
21955
21955
  state: {
21956
21956
  init() {
@@ -22016,7 +22016,7 @@ De.create({
22016
22016
  addProseMirrorPlugins() {
22017
22017
  let t = !1;
22018
22018
  return [
22019
- new Ae({
22019
+ new Ie({
22020
22020
  key: new Re("characterCount"),
22021
22021
  appendTransaction: (e, n, r) => {
22022
22022
  if (t)
@@ -22076,13 +22076,13 @@ De.create({
22076
22076
  },
22077
22077
  addProseMirrorPlugins() {
22078
22078
  return [
22079
- new Ae({
22079
+ new Ie({
22080
22080
  key: new Re("focus"),
22081
22081
  props: {
22082
22082
  decorations: ({ doc: t, selection: e }) => {
22083
22083
  const { isEditable: n, isFocused: r } = this.editor, { anchor: i } = e, a = [];
22084
22084
  if (!n || !r)
22085
- return Ie.create(t, []);
22085
+ return Se.create(t, []);
22086
22086
  let o = 0;
22087
22087
  this.options.mode === "deepest" && t.descendants((l, c) => {
22088
22088
  if (l.isText)
@@ -22102,7 +22102,7 @@ De.create({
22102
22102
  class: this.options.className
22103
22103
  })
22104
22104
  );
22105
- }), Ie.create(t, a);
22105
+ }), Se.create(t, a);
22106
22106
  }
22107
22107
  }
22108
22108
  })
@@ -22145,7 +22145,7 @@ var _k = De.create({
22145
22145
  addProseMirrorPlugins() {
22146
22146
  const t = this.options.dataAttribute ? `data-${Xk(this.options.dataAttribute)}` : `data-${zp}`;
22147
22147
  return [
22148
- new Ae({
22148
+ new Ie({
22149
22149
  key: new Re("placeholder"),
22150
22150
  props: {
22151
22151
  decorations: ({ doc: e, selection: n }) => {
@@ -22172,7 +22172,7 @@ var _k = De.create({
22172
22172
  a.push(p);
22173
22173
  }
22174
22174
  return this.options.includeChildren;
22175
- }), Ie.create(e, a);
22175
+ }), Se.create(e, a);
22176
22176
  }
22177
22177
  }
22178
22178
  })
@@ -22189,11 +22189,11 @@ De.create({
22189
22189
  addProseMirrorPlugins() {
22190
22190
  const { editor: t, options: e } = this;
22191
22191
  return [
22192
- new Ae({
22192
+ new Ie({
22193
22193
  key: new Re("selection"),
22194
22194
  props: {
22195
22195
  decorations(n) {
22196
- return n.selection.empty || t.isFocused || !t.isEditable || wg(n.selection) || t.view.dragging ? null : Ie.create(n.doc, [
22196
+ return n.selection.empty || t.isFocused || !t.isEditable || wg(n.selection) || t.view.dragging ? null : Se.create(n.doc, [
22197
22197
  at.inline(n.selection.from, n.selection.to, {
22198
22198
  class: e.className
22199
22199
  })
@@ -22220,7 +22220,7 @@ var eS = De.create({
22220
22220
  var t;
22221
22221
  const e = new Re(this.name), n = this.options.node || ((t = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : t.name) || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, i]) => i).filter((i) => (this.options.notAfter || []).concat(n).includes(i.name));
22222
22222
  return [
22223
- new Ae({
22223
+ new Ie({
22224
22224
  key: e,
22225
22225
  appendTransaction: (i, a, o) => {
22226
22226
  const { doc: s, tr: l, schema: c } = o, d = e.getState(o), u = s.content.size, p = c.nodes[n];
@@ -22455,9 +22455,9 @@ function lS({
22455
22455
  }) {
22456
22456
  let M;
22457
22457
  const x = h == null ? void 0 : h(), y = r && !i, L = () => {
22458
- const S = e.state.selection.$anchor.pos, R = e.view.coordsAtPos(S), { top: Y, right: V, bottom: B, left: Q } = R;
22458
+ const S = e.state.selection.$anchor.pos, R = e.view.coordsAtPos(S), { top: Y, right: V, bottom: B, left: H } = R;
22459
22459
  try {
22460
- return new DOMRect(Q, Y, V - Q, B - Y);
22460
+ return new DOMRect(H, Y, V - H, B - Y);
22461
22461
  } catch {
22462
22462
  return null;
22463
22463
  }
@@ -22480,7 +22480,7 @@ function lS({
22480
22480
  function A(S, R) {
22481
22481
  var Y;
22482
22482
  try {
22483
- const B = t.getState(S.state), Q = B != null && B.decorationId ? S.dom.querySelector(`[data-decoration-id="${B.decorationId}"]`) : null, E = {
22483
+ const B = t.getState(S.state), H = B != null && B.decorationId ? S.dom.querySelector(`[data-decoration-id="${B.decorationId}"]`) : null, E = {
22484
22484
  // @ts-ignore editor is available in closure
22485
22485
  editor: e,
22486
22486
  range: (B == null ? void 0 : B.range) || { from: 0, to: 0 },
@@ -22488,8 +22488,8 @@ function lS({
22488
22488
  text: (B == null ? void 0 : B.text) || null,
22489
22489
  items: [],
22490
22490
  command: (U) => u({ editor: e, range: (B == null ? void 0 : B.range) || { from: 0, to: 0 }, props: U }),
22491
- decorationNode: Q,
22492
- clientRect: N(S, Q)
22491
+ decorationNode: H,
22492
+ clientRect: N(S, H)
22493
22493
  };
22494
22494
  (Y = x == null ? void 0 : x.onExit) == null || Y.call(x, E);
22495
22495
  } catch {
@@ -22497,16 +22497,16 @@ function lS({
22497
22497
  const V = S.state.tr.setMeta(R, { exit: !0 });
22498
22498
  S.dispatch(V);
22499
22499
  }
22500
- const j = new Ae({
22500
+ const j = new Ie({
22501
22501
  key: t,
22502
22502
  view() {
22503
22503
  return {
22504
22504
  update: async (S, R) => {
22505
- var Y, V, B, Q, E, U, _;
22506
- const W = (Y = this.key) == null ? void 0 : Y.getState(R), he = (V = this.key) == null ? void 0 : V.getState(S.state), pe = W.active && he.active && W.range.from !== he.range.from, ke = !W.active && he.active, J = W.active && !he.active, X = !ke && !J && W.query !== he.query, ie = ke || pe && X, ne = X || pe, T = J || pe && X;
22505
+ var Y, V, B, H, E, U, _;
22506
+ const Q = (Y = this.key) == null ? void 0 : Y.getState(R), pe = (V = this.key) == null ? void 0 : V.getState(S.state), me = Q.active && pe.active && Q.range.from !== pe.range.from, Ee = !Q.active && pe.active, J = Q.active && !pe.active, X = !Ee && !J && Q.query !== pe.query, ie = Ee || me && X, ne = X || me, T = J || me && X;
22507
22507
  if (!ie && !ne && !T)
22508
22508
  return;
22509
- const G = T && !ie ? W : he, te = S.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
22509
+ const G = T && !ie ? Q : pe, te = S.dom.querySelector(`[data-decoration-id="${G.decorationId}"]`);
22510
22510
  M = {
22511
22511
  editor: e,
22512
22512
  range: G.range,
@@ -22520,7 +22520,7 @@ function lS({
22520
22520
  }),
22521
22521
  decorationNode: te,
22522
22522
  clientRect: N(S, te)
22523
- }, ie && ((B = x == null ? void 0 : x.onBeforeStart) == null || B.call(x, M)), ne && ((Q = x == null ? void 0 : x.onBeforeUpdate) == null || Q.call(x, M)), (ne || ie) && (M.items = await p({
22523
+ }, ie && ((B = x == null ? void 0 : x.onBeforeStart) == null || B.call(x, M)), ne && ((H = x == null ? void 0 : x.onBeforeUpdate) == null || H.call(x, M)), (ne || ie) && (M.items = await p({
22524
22524
  editor: e,
22525
22525
  query: G.query
22526
22526
  })), T && ((E = x == null ? void 0 : x.onExit) == null || E.call(x, M)), ne && ((U = x == null ? void 0 : x.onUpdate) == null || U.call(x, M)), ie && ((_ = x == null ? void 0 : x.onStart) == null || _.call(x, M));
@@ -22548,64 +22548,64 @@ function lS({
22548
22548
  },
22549
22549
  // Apply changes to the plugin state from a view transaction.
22550
22550
  apply(S, R, Y, V) {
22551
- const { isEditable: B } = e, { composing: Q } = e.view, { selection: E } = S, { empty: U, from: _ } = E, W = { ...R }, he = S.getMeta(t);
22552
- if (he && he.exit)
22553
- return W.active = !1, W.decorationId = null, W.range = { from: 0, to: 0 }, W.query = null, W.text = null, W.dismissedRange = R.active ? { ...R.range } : R.dismissedRange, W;
22554
- if (W.composing = Q, S.docChanged && W.dismissedRange !== null && (W.dismissedRange = {
22555
- from: S.mapping.map(W.dismissedRange.from),
22556
- to: S.mapping.map(W.dismissedRange.to)
22551
+ const { isEditable: B } = e, { composing: H } = e.view, { selection: E } = S, { empty: U, from: _ } = E, Q = { ...R }, pe = S.getMeta(t);
22552
+ if (pe && pe.exit)
22553
+ return Q.active = !1, Q.decorationId = null, Q.range = { from: 0, to: 0 }, Q.query = null, Q.text = null, Q.dismissedRange = R.active ? { ...R.range } : R.dismissedRange, Q;
22554
+ if (Q.composing = H, S.docChanged && Q.dismissedRange !== null && (Q.dismissedRange = {
22555
+ from: S.mapping.map(Q.dismissedRange.from),
22556
+ to: S.mapping.map(Q.dismissedRange.to)
22557
22557
  }), B && (U || e.view.composing)) {
22558
- (_ < R.range.from || _ > R.range.to) && !Q && !R.composing && (W.active = !1);
22559
- const pe = g({
22558
+ (_ < R.range.from || _ > R.range.to) && !H && !R.composing && (Q.active = !1);
22559
+ const me = g({
22560
22560
  char: n,
22561
22561
  allowSpaces: r,
22562
22562
  allowToIncludeChar: i,
22563
22563
  allowedPrefixes: a,
22564
22564
  startOfLine: o,
22565
22565
  $position: E.$from
22566
- }), ke = `id_${Math.floor(Math.random() * 4294967295)}`;
22567
- pe && m({
22566
+ }), Ee = `id_${Math.floor(Math.random() * 4294967295)}`;
22567
+ me && m({
22568
22568
  editor: e,
22569
22569
  state: V,
22570
- range: pe.range,
22570
+ range: me.range,
22571
22571
  isActive: R.active
22572
22572
  }) && (!w || w({
22573
22573
  editor: e,
22574
- range: pe.range,
22575
- query: pe.query,
22576
- text: pe.text,
22574
+ range: me.range,
22575
+ query: me.query,
22576
+ text: me.text,
22577
22577
  transaction: S
22578
- })) ? (W.dismissedRange !== null && !k({
22579
- match: pe,
22580
- dismissedRange: W.dismissedRange,
22578
+ })) ? (Q.dismissedRange !== null && !k({
22579
+ match: me,
22580
+ dismissedRange: Q.dismissedRange,
22581
22581
  state: V,
22582
22582
  transaction: S
22583
- }) && (W.dismissedRange = null), W.dismissedRange === null ? (W.active = !0, W.decorationId = R.decorationId ? R.decorationId : ke, W.range = pe.range, W.query = pe.query, W.text = pe.text) : W.active = !1) : (pe || (W.dismissedRange = null), W.active = !1);
22583
+ }) && (Q.dismissedRange = null), Q.dismissedRange === null ? (Q.active = !0, Q.decorationId = R.decorationId ? R.decorationId : Ee, Q.range = me.range, Q.query = me.query, Q.text = me.text) : Q.active = !1) : (me || (Q.dismissedRange = null), Q.active = !1);
22584
22584
  } else
22585
- W.active = !1;
22586
- return W.active || (W.decorationId = null, W.range = { from: 0, to: 0 }, W.query = null, W.text = null), W;
22585
+ Q.active = !1;
22586
+ return Q.active || (Q.decorationId = null, Q.range = { from: 0, to: 0 }, Q.query = null, Q.text = null), Q;
22587
22587
  }
22588
22588
  },
22589
22589
  props: {
22590
22590
  // Call the keydown hook if suggestion is active.
22591
22591
  handleKeyDown(S, R) {
22592
22592
  var Y, V;
22593
- const { active: B, range: Q } = j.getState(S.state);
22593
+ const { active: B, range: H } = j.getState(S.state);
22594
22594
  if (!B)
22595
22595
  return !1;
22596
22596
  if (R.key === "Escape" || R.key === "Esc") {
22597
22597
  const U = j.getState(S.state);
22598
22598
  return (Y = x == null ? void 0 : x.onKeyDown) == null || Y.call(x, { view: S, event: R, range: U.range }), A(S, t), !0;
22599
22599
  }
22600
- return ((V = x == null ? void 0 : x.onKeyDown) == null ? void 0 : V.call(x, { view: S, event: R, range: Q })) || !1;
22600
+ return ((V = x == null ? void 0 : x.onKeyDown) == null ? void 0 : V.call(x, { view: S, event: R, range: H })) || !1;
22601
22601
  },
22602
22602
  // Setup decorator on the currently active suggestion.
22603
22603
  decorations(S) {
22604
22604
  const { active: R, range: Y, decorationId: V, query: B } = j.getState(S);
22605
22605
  if (!R)
22606
22606
  return null;
22607
- const Q = !(B != null && B.length), E = [l];
22608
- return Q && E.push(d), Ie.create(S.doc, [
22607
+ const H = !(B != null && B.length), E = [l];
22608
+ return H && E.push(d), Se.create(S.doc, [
22609
22609
  at.inline(Y.from, Y.to, {
22610
22610
  nodeName: s,
22611
22611
  class: E.join(" "),
@@ -23292,8 +23292,8 @@ function Ha(t, e) {
23292
23292
  if (p === $i && R) {
23293
23293
  var Y = R[i];
23294
23294
  Object.keys(S).forEach(function(V) {
23295
- var B = [Gt, Qt].indexOf(V) >= 0 ? 1 : -1, Q = [Mt, Qt].indexOf(V) >= 0 ? "y" : "x";
23296
- S[V] += Y[Q] * B;
23295
+ var B = [Gt, Qt].indexOf(V) >= 0 ? 1 : -1, H = [Mt, Qt].indexOf(V) >= 0 ? "y" : "x";
23296
+ S[V] += Y[H] * B;
23297
23297
  });
23298
23298
  }
23299
23299
  return S;
@@ -23337,25 +23337,25 @@ function KS(t) {
23337
23337
  allowedAutoPlacements: g
23338
23338
  }) : ie);
23339
23339
  }, []), L = e.rects.reference, N = e.rects.popper, k = /* @__PURE__ */ new Map(), A = !0, j = y[0], S = 0; S < y.length; S++) {
23340
- var R = y[S], Y = fn(R), V = Ri(R) === Ti, B = [Mt, Qt].indexOf(Y) >= 0, Q = B ? "width" : "height", E = Ha(e, {
23340
+ var R = y[S], Y = fn(R), V = Ri(R) === Ti, B = [Mt, Qt].indexOf(Y) >= 0, H = B ? "width" : "height", E = Ha(e, {
23341
23341
  placement: R,
23342
23342
  boundary: d,
23343
23343
  rootBoundary: u,
23344
23344
  altBoundary: p,
23345
23345
  padding: c
23346
23346
  }), U = B ? V ? Gt : xt : V ? Qt : Mt;
23347
- L[Q] > N[Q] && (U = Jo(U));
23348
- var _ = Jo(U), W = [];
23349
- if (a && W.push(E[Y] <= 0), s && W.push(E[U] <= 0, E[_] <= 0), W.every(function(X) {
23347
+ L[H] > N[H] && (U = Jo(U));
23348
+ var _ = Jo(U), Q = [];
23349
+ if (a && Q.push(E[Y] <= 0), s && Q.push(E[U] <= 0, E[_] <= 0), Q.every(function(X) {
23350
23350
  return X;
23351
23351
  })) {
23352
23352
  j = R, A = !1;
23353
23353
  break;
23354
23354
  }
23355
- k.set(R, W);
23355
+ k.set(R, Q);
23356
23356
  }
23357
23357
  if (A)
23358
- for (var he = m ? 3 : 1, pe = function(ie) {
23358
+ for (var pe = m ? 3 : 1, me = function(ie) {
23359
23359
  var ne = y.find(function(T) {
23360
23360
  var G = k.get(T);
23361
23361
  if (G)
@@ -23365,8 +23365,8 @@ function KS(t) {
23365
23365
  });
23366
23366
  if (ne)
23367
23367
  return j = ne, "break";
23368
- }, ke = he; ke > 0; ke--) {
23369
- var J = pe(ke);
23368
+ }, Ee = pe; Ee > 0; Ee--) {
23369
+ var J = me(Ee);
23370
23370
  if (J === "break") break;
23371
23371
  }
23372
23372
  e.placement !== j && (e.modifiersData[r]._skip = !0, e.placement = j, e.reset = !0);
@@ -23484,10 +23484,10 @@ function iI(t) {
23484
23484
  };
23485
23485
  if (N) {
23486
23486
  if (a) {
23487
- var V, B = y === "y" ? Mt : xt, Q = y === "y" ? Qt : Gt, E = y === "y" ? "height" : "width", U = N[y], _ = U + w[B], W = U - w[Q], he = h ? -A[E] / 2 : 0, pe = M === Ti ? k[E] : A[E], ke = M === Ti ? -A[E] : -k[E], J = e.elements.arrow, X = h && J ? iu(J) : {
23487
+ var V, B = y === "y" ? Mt : xt, H = y === "y" ? Qt : Gt, E = y === "y" ? "height" : "width", U = N[y], _ = U + w[B], Q = U - w[H], pe = h ? -A[E] / 2 : 0, me = M === Ti ? k[E] : A[E], Ee = M === Ti ? -A[E] : -k[E], J = e.elements.arrow, X = h && J ? iu(J) : {
23488
23488
  width: 0,
23489
23489
  height: 0
23490
- }, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Lb(), ne = ie[B], T = ie[Q], G = Ma(0, k[E], X[E]), te = x ? k[E] / 2 - he - G - ne - S.mainAxis : pe - G - ne - S.mainAxis, ve = x ? -k[E] / 2 + he + G + T + S.mainAxis : ke + G + T + S.mainAxis, mn = e.elements.arrow && so(e.elements.arrow), pr = mn ? y === "y" ? mn.clientTop || 0 : mn.clientLeft || 0 : 0, lt = (V = R == null ? void 0 : R[y]) != null ? V : 0, gn = U + te - lt - pr, mr = U + ve - lt, gr = Ma(h ? Xs(_, gn) : _, U, h ? Rr(W, mr) : W);
23490
+ }, ie = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Lb(), ne = ie[B], T = ie[H], G = Ma(0, k[E], X[E]), te = x ? k[E] / 2 - pe - G - ne - S.mainAxis : me - G - ne - S.mainAxis, ve = x ? -k[E] / 2 + pe + G + T + S.mainAxis : Ee + G + T + S.mainAxis, mn = e.elements.arrow && so(e.elements.arrow), pr = mn ? y === "y" ? mn.clientTop || 0 : mn.clientLeft || 0 : 0, lt = (V = R == null ? void 0 : R[y]) != null ? V : 0, gn = U + te - lt - pr, mr = U + ve - lt, gr = Ma(h ? Xs(_, gn) : _, U, h ? Rr(Q, mr) : Q);
23491
23491
  N[y] = gr, Y[y] = gr - U;
23492
23492
  }
23493
23493
  if (s) {
@@ -24098,7 +24098,7 @@ function HI(t, e) {
24098
24098
  var A = M.map(function(D) {
24099
24099
  return D.fn(y);
24100
24100
  }), j = t.hasAttribute("aria-expanded");
24101
- return mn(), he(), U(), _("onCreate", [y]), n.showOnCreate && Qi(), N.addEventListener("mouseenter", function() {
24101
+ return mn(), pe(), U(), _("onCreate", [y]), n.showOnCreate && Qi(), N.addEventListener("mouseenter", function() {
24102
24102
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
24103
24103
  }), N.addEventListener("mouseleave", function() {
24104
24104
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && B().addEventListener("mousemove", m);
@@ -24121,7 +24121,7 @@ function HI(t, e) {
24121
24121
  var D = V().parentNode;
24122
24122
  return D ? II(D) : document;
24123
24123
  }
24124
- function Q() {
24124
+ function H() {
24125
24125
  return Yc(N);
24126
24126
  }
24127
24127
  function E(D) {
@@ -24138,7 +24138,7 @@ function HI(t, e) {
24138
24138
  (ge = y.props)[D].apply(ge, K);
24139
24139
  }
24140
24140
  }
24141
- function W() {
24141
+ function Q() {
24142
24142
  var D = y.props.aria;
24143
24143
  if (D.content) {
24144
24144
  var K = "aria-" + D.content, $ = N.id, ge = pi(y.props.triggerTarget || t);
@@ -24153,7 +24153,7 @@ function HI(t, e) {
24153
24153
  });
24154
24154
  }
24155
24155
  }
24156
- function he() {
24156
+ function pe() {
24157
24157
  if (!(j || !y.props.aria.expanded)) {
24158
24158
  var D = pi(y.props.triggerTarget || t);
24159
24159
  D.forEach(function(K) {
@@ -24161,12 +24161,12 @@ function HI(t, e) {
24161
24161
  });
24162
24162
  }
24163
24163
  }
24164
- function pe() {
24164
+ function me() {
24165
24165
  B().removeEventListener("mousemove", m), zo = zo.filter(function(D) {
24166
24166
  return D !== m;
24167
24167
  });
24168
24168
  }
24169
- function ke(D) {
24169
+ function Ee(D) {
24170
24170
  if (!(sn.isTouch && (l || D.type === "mousedown"))) {
24171
24171
  var K = D.composedPath && D.composedPath()[0] || D.target;
24172
24172
  if (!(y.props.interactive && _p(N, K))) {
@@ -24191,11 +24191,11 @@ function HI(t, e) {
24191
24191
  }
24192
24192
  function ie() {
24193
24193
  var D = B();
24194
- D.addEventListener("mousedown", ke, !0), D.addEventListener("touchend", ke, vr), D.addEventListener("touchstart", X, vr), D.addEventListener("touchmove", J, vr);
24194
+ D.addEventListener("mousedown", Ee, !0), D.addEventListener("touchend", Ee, vr), D.addEventListener("touchstart", X, vr), D.addEventListener("touchmove", J, vr);
24195
24195
  }
24196
24196
  function ne() {
24197
24197
  var D = B();
24198
- D.removeEventListener("mousedown", ke, !0), D.removeEventListener("touchend", ke, vr), D.removeEventListener("touchstart", X, vr), D.removeEventListener("touchmove", J, vr);
24198
+ D.removeEventListener("mousedown", Ee, !0), D.removeEventListener("touchend", Ee, vr), D.removeEventListener("touchstart", X, vr), D.removeEventListener("touchmove", J, vr);
24199
24199
  }
24200
24200
  function T(D, K) {
24201
24201
  te(D, function() {
@@ -24206,7 +24206,7 @@ function HI(t, e) {
24206
24206
  te(D, K);
24207
24207
  }
24208
24208
  function te(D, K) {
24209
- var $ = Q().box;
24209
+ var $ = H().box;
24210
24210
  function ge(ue) {
24211
24211
  ue.target === $ && (Uf($, "remove", ge), K());
24212
24212
  }
@@ -24256,7 +24256,7 @@ function HI(t, e) {
24256
24256
  var K, $ = !1;
24257
24257
  if (!(!y.state.isEnabled || Hi(D) || s)) {
24258
24258
  var ge = ((K = d) == null ? void 0 : K.type) === "focus";
24259
- d = D, g = D.currentTarget, he(), !y.state.isVisible && NI(D) && zo.forEach(function(ue) {
24259
+ d = D, g = D.currentTarget, pe(), !y.state.isVisible && NI(D) && zo.forEach(function(ue) {
24260
24260
  return ue(D);
24261
24261
  }), D.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? $ = !0 : Qi(D), D.type === "click" && (o = !$), $ && !ge && br(D);
24262
24262
  }
@@ -24272,7 +24272,7 @@ function HI(t, e) {
24272
24272
  props: n
24273
24273
  } : null;
24274
24274
  }).filter(Boolean);
24275
- AI(ge, D) && (pe(), br(D));
24275
+ AI(ge, D) && (me(), br(D));
24276
24276
  }
24277
24277
  }
24278
24278
  function mr(D) {
@@ -24304,7 +24304,7 @@ function HI(t, e) {
24304
24304
  fn: function(wo) {
24305
24305
  var ai = wo.state;
24306
24306
  if (Y()) {
24307
- var ow = Q(), ff = ow.box;
24307
+ var ow = H(), ff = ow.box;
24308
24308
  ["placement", "reference-hidden", "escaped"].forEach(function(yo) {
24309
24309
  yo === "placement" ? ff.setAttribute("data-placement", ai.placement) : ai.attributes.popper["data-popper-" + yo] ? ff.setAttribute("data-" + yo, "") : ff.removeAttribute("data-" + yo);
24310
24310
  }), ai.attributes.popper = {};
@@ -24400,9 +24400,9 @@ function HI(t, e) {
24400
24400
  var K = y.props, $ = t1(t, Object.assign({}, K, Zp(D), {
24401
24401
  ignoreAttributes: !0
24402
24402
  }));
24403
- y.props = $, mn(), K.interactiveDebounce !== $.interactiveDebounce && (pe(), m = Kp(gn, $.interactiveDebounce)), K.triggerTarget && !$.triggerTarget ? pi(K.triggerTarget).forEach(function(ge) {
24403
+ y.props = $, mn(), K.interactiveDebounce !== $.interactiveDebounce && (me(), m = Kp(gn, $.interactiveDebounce)), K.triggerTarget && !$.triggerTarget ? pi(K.triggerTarget).forEach(function(ge) {
24404
24404
  ge.removeAttribute("aria-expanded");
24405
- }) : $.triggerTarget && t.removeAttribute("aria-expanded"), he(), U(), k && k(K, $), y.popperInstance && (uo(), Fn().forEach(function(ge) {
24405
+ }) : $.triggerTarget && t.removeAttribute("aria-expanded"), pe(), U(), k && k(K, $), y.popperInstance && (uo(), Fn().forEach(function(ge) {
24406
24406
  requestAnimationFrame(ge._tippy.popperInstance.forceUpdate);
24407
24407
  })), _("onAfterUpdate", [y, D]);
24408
24408
  }
@@ -24417,17 +24417,17 @@ function HI(t, e) {
24417
24417
  var D = y.state.isVisible, K = y.state.isDestroyed, $ = !y.state.isEnabled, ge = sn.isTouch && !y.props.touch, ue = Vf(y.props.duration, 0, kt.duration);
24418
24418
  if (!(D || K || $ || ge) && !V().hasAttribute("disabled") && (_("onShow", [y], !1), y.props.onShow(y) !== !1)) {
24419
24419
  if (y.state.isVisible = !0, Y() && (N.style.visibility = "visible"), U(), ie(), y.state.isMounted || (N.style.transition = "none"), Y()) {
24420
- var ft = Q(), Dt = ft.box, ii = ft.content;
24420
+ var ft = H(), Dt = ft.box, ii = ft.content;
24421
24421
  Yf([Dt, ii], 0);
24422
24422
  }
24423
24423
  p = function() {
24424
24424
  var wr;
24425
24425
  if (!(!y.state.isVisible || c)) {
24426
24426
  if (c = !0, N.offsetHeight, N.style.transition = y.props.moveTransition, Y() && y.props.animation) {
24427
- var lf = Q(), wo = lf.box, ai = lf.content;
24427
+ var lf = H(), wo = lf.box, ai = lf.content;
24428
24428
  Yf([wo, ai], ue), Xp([wo, ai], "visible");
24429
24429
  }
24430
- W(), he(), qp(Wf, y), (wr = y.popperInstance) == null || wr.forceUpdate(), _("onMount", [y]), y.props.animation && Y() && G(ue, function() {
24430
+ Q(), pe(), qp(Wf, y), (wr = y.popperInstance) == null || wr.forceUpdate(), _("onMount", [y]), y.props.animation && Y() && G(ue, function() {
24431
24431
  y.state.isShown = !0, _("onShown", [y]);
24432
24432
  });
24433
24433
  }
@@ -24438,11 +24438,11 @@ function HI(t, e) {
24438
24438
  process.env.NODE_ENV !== "production" && kn(y.state.isDestroyed, li("hide"));
24439
24439
  var D = !y.state.isVisible, K = y.state.isDestroyed, $ = !y.state.isEnabled, ge = Vf(y.props.duration, 1, kt.duration);
24440
24440
  if (!(D || K || $) && (_("onHide", [y], !1), y.props.onHide(y) !== !1)) {
24441
- if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, Y() && (N.style.visibility = "hidden"), pe(), ne(), U(!0), Y()) {
24442
- var ue = Q(), ft = ue.box, Dt = ue.content;
24441
+ if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, Y() && (N.style.visibility = "hidden"), me(), ne(), U(!0), Y()) {
24442
+ var ue = H(), ft = ue.box, Dt = ue.content;
24443
24443
  y.props.animation && (Yf([ft, Dt], ge), Xp([ft, Dt], "hidden"));
24444
24444
  }
24445
- W(), he(), y.props.animation ? Y() && T(ge, y.unmount) : y.unmount();
24445
+ Q(), pe(), y.props.animation ? Y() && T(ge, y.unmount) : y.unmount();
24446
24446
  }
24447
24447
  }
24448
24448
  function rw(D) {
@@ -24856,13 +24856,13 @@ function Jt() {
24856
24856
  return "." + r;
24857
24857
  }).join("");
24858
24858
  }
24859
- var Ee = /* @__PURE__ */ _I("epr", null), qo = {
24859
+ var Ae = /* @__PURE__ */ _I("epr", null), qo = {
24860
24860
  display: "none",
24861
24861
  opacity: "0",
24862
24862
  pointerEvents: "none",
24863
24863
  visibility: "hidden",
24864
24864
  overflow: "hidden"
24865
- }, uu = /* @__PURE__ */ Ee.create({
24865
+ }, uu = /* @__PURE__ */ Ae.create({
24866
24866
  hidden: /* @__PURE__ */ we({
24867
24867
  ".": de.hidden
24868
24868
  }, qo)
@@ -24872,10 +24872,10 @@ var Ee = /* @__PURE__ */ _I("epr", null), qo = {
24872
24872
  nonce: n,
24873
24873
  suppressHydrationWarning: !0,
24874
24874
  dangerouslySetInnerHTML: {
24875
- __html: Ee.getStyle()
24875
+ __html: Ae.getStyle()
24876
24876
  }
24877
24877
  });
24878
- }), Zr = /* @__PURE__ */ Ee.create({
24878
+ }), Zr = /* @__PURE__ */ Ae.create({
24879
24879
  ".epr-main": {
24880
24880
  ":has(input:not(:placeholder-shown))": {
24881
24881
  categoryBtn: {
@@ -47202,7 +47202,7 @@ function dA(t, e) {
47202
47202
  }
47203
47203
  function uA() {
47204
47204
  var t = jt();
47205
- return Se(function(e) {
47205
+ return ke(function(e) {
47206
47206
  requestAnimationFrame(function() {
47207
47207
  t.current && (t.current.scrollTop = e);
47208
47208
  });
@@ -47291,7 +47291,7 @@ function vA(t) {
47291
47291
  return p[d] ? p[d] : (e = p.at(0)) != null ? e : null;
47292
47292
  }
47293
47293
  function ti() {
47294
- var t = Yi(), e = t[0], n = t[1], r = fo(), i = r[0], a = r[1], o = Se(function() {
47294
+ var t = Yi(), e = t[0], n = t[1], r = fo(), i = r[0], a = r[1], o = ke(function() {
47295
47295
  e && n(null), i && a(!1);
47296
47296
  }, [e, i, n, a]);
47297
47297
  return o;
@@ -47337,19 +47337,19 @@ function MA() {
47337
47337
  }
47338
47338
  function ni() {
47339
47339
  var t = ur();
47340
- return Se(function() {
47340
+ return ke(function() {
47341
47341
  Tt(t.current);
47342
47342
  }, [t]);
47343
47343
  }
47344
47344
  function xA() {
47345
47345
  var t = xu();
47346
- return Se(function() {
47346
+ return ke(function() {
47347
47347
  t.current && k2(t.current);
47348
47348
  }, [t]);
47349
47349
  }
47350
47350
  function R2() {
47351
47351
  var t = Lu();
47352
- return Se(function() {
47352
+ return ke(function() {
47353
47353
  t.current && k2(t.current);
47354
47354
  }, [t]);
47355
47355
  }
@@ -47651,13 +47651,13 @@ function BA() {
47651
47651
  }
47652
47652
  function B2() {
47653
47653
  var t = R2(), e = Ql(), n = jt();
47654
- return Se(function() {
47654
+ return ke(function() {
47655
47655
  return e ? Kl(n.current) : t();
47656
47656
  }, [n, t, e]);
47657
47657
  }
47658
47658
  function FA() {
47659
47659
  var t = ni(), e = R2(), n = Ql();
47660
- return Se(function() {
47660
+ return ke(function() {
47661
47661
  return n ? t() : e();
47662
47662
  }, [t, n, e]);
47663
47663
  }
@@ -47757,7 +47757,7 @@ var p1 = {
47757
47757
  "--epr-skin-tone-picker-menu-color": "var(--epr-dark-skin-tone-picker-menu-color)",
47758
47758
  "--epr-skin-tone-outer-border-color": "var(--epr-dark-skin-tone-outer-border-color)",
47759
47759
  "--epr-skin-tone-inner-border-color": "var(--epr-dark-skin-tone-inner-border-color)"
47760
- }, ea = /* @__PURE__ */ Ee.create({
47760
+ }, ea = /* @__PURE__ */ Ae.create({
47761
47761
  main: {
47762
47762
  ".": ["epr-main", de.emojiPicker],
47763
47763
  position: "relative",
@@ -48054,7 +48054,7 @@ function $2(t) {
48054
48054
  return t.imgUrl !== void 0;
48055
48055
  }
48056
48056
  function e4(t, e) {
48057
- var n = Oe(), r = z2(), i = W9(), a = Yi(), o = a[1], s = ti(), l = Hl(), c = l[0], d = _9(e), u = Cu(), p = u[1], h = ei(), m = $r(), g = Vi(), w = g.emojiByUnified, v = Se(function(L) {
48057
+ var n = Oe(), r = z2(), i = W9(), a = Yi(), o = a[1], s = ti(), l = Hl(), c = l[0], d = _9(e), u = Cu(), p = u[1], h = ei(), m = $r(), g = Vi(), w = g.emojiByUnified, v = ke(function(L) {
48058
48058
  if (!i.current) {
48059
48059
  s();
48060
48060
  var N = w1(L, w), k = N[0], A = N[1];
@@ -48063,14 +48063,14 @@ function e4(t, e) {
48063
48063
  p(), E9(k, j), d(nE(k, j, m, h), L);
48064
48064
  }
48065
48065
  }
48066
- }, [c, s, i, w, d, p, h, m]), M = Se(function(L) {
48066
+ }, [c, s, i, w, d, p, h, m]), M = ke(function(L) {
48067
48067
  var N;
48068
48068
  n.current && clearTimeout(n.current);
48069
48069
  var k = w1(L, w), A = k[0];
48070
48070
  !A || !Fi(A) || (n.current = (N = window) == null ? void 0 : N.setTimeout(function() {
48071
48071
  i.current = !0, n.current = void 0, s(), r(L.target), o(A);
48072
48072
  }, 500));
48073
- }, [i, w, s, r, o]), x = Se(function() {
48073
+ }, [i, w, s, r, o]), x = ke(function() {
48074
48074
  n.current ? (clearTimeout(n.current), n.current = void 0) : i.current && requestAnimationFrame(function() {
48075
48075
  i.current = !1;
48076
48076
  });
@@ -48138,7 +48138,7 @@ function co(t) {
48138
48138
  className: fe(rE.button, t.className)
48139
48139
  }), t.children);
48140
48140
  }
48141
- var rE = /* @__PURE__ */ Ee.create({
48141
+ var rE = /* @__PURE__ */ Ae.create({
48142
48142
  button: {
48143
48143
  ".": "epr-btn",
48144
48144
  cursor: "pointer",
@@ -48160,7 +48160,7 @@ function iE(t) {
48160
48160
  function aE(t) {
48161
48161
  return t[t.length - 1];
48162
48162
  }
48163
- var Hf = /* @__PURE__ */ Ee.create({
48163
+ var Hf = /* @__PURE__ */ Ae.create({
48164
48164
  emoji: {
48165
48165
  ".": de.emoji,
48166
48166
  position: "relative",
@@ -48213,7 +48213,7 @@ var Hf = /* @__PURE__ */ Ee.create({
48213
48213
  borderBottom: "4px solid var(--epr-emoji-variation-indicator-color-hover)"
48214
48214
  }
48215
48215
  }
48216
- }), nl = /* @__PURE__ */ Ee.create({
48216
+ }), nl = /* @__PURE__ */ Ae.create({
48217
48217
  external: {
48218
48218
  ".": de.external,
48219
48219
  fontSize: "0"
@@ -48235,7 +48235,7 @@ function y1(t) {
48235
48235
  style: n
48236
48236
  });
48237
48237
  }
48238
- var oE = /* @__PURE__ */ Ee.create({
48238
+ var oE = /* @__PURE__ */ Ae.create({
48239
48239
  emojiImag: {
48240
48240
  ".": "epr-emoji-img",
48241
48241
  maxWidth: "var(--epr-emoji-fullsize)",
@@ -48253,7 +48253,7 @@ function sE(t) {
48253
48253
  style: n
48254
48254
  }, _2(e));
48255
48255
  }
48256
- var lE = /* @__PURE__ */ Ee.create({
48256
+ var lE = /* @__PURE__ */ Ae.create({
48257
48257
  nativeEmoji: {
48258
48258
  ".": "epr-emoji-native",
48259
48259
  fontFamily: '"Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji"!important',
@@ -48336,7 +48336,7 @@ function cE() {
48336
48336
  }
48337
48337
  });
48338
48338
  }
48339
- var dE = /* @__PURE__ */ Ee.create(/* @__PURE__ */ we({
48339
+ var dE = /* @__PURE__ */ Ae.create(/* @__PURE__ */ we({
48340
48340
  plusSign: {
48341
48341
  fontSize: "20px",
48342
48342
  padding: "17px",
@@ -48406,7 +48406,7 @@ function uE() {
48406
48406
  })) : null;
48407
48407
  }), a ? P("li", null, P(cE, null)) : null) : null;
48408
48408
  }
48409
- var v1 = /* @__PURE__ */ Ee.create({
48409
+ var v1 = /* @__PURE__ */ Ae.create({
48410
48410
  list: {
48411
48411
  listStyle: "none",
48412
48412
  margin: "0",
@@ -48462,7 +48462,7 @@ function mE(t, e) {
48462
48462
  }
48463
48463
  var gE = 40;
48464
48464
  function bE(t) {
48465
- var e = I2(), n = _r(), r = n[0], i = Ui(), a = Oe(), o = vu(), s = o[0], l = p2(), c = l[0], d = oe(), u = d[0], p = d[1], h = Se(function() {
48465
+ var e = I2(), n = _r(), r = n[0], i = Ui(), a = Oe(), o = vu(), s = o[0], l = p2(), c = l[0], d = oe(), u = d[0], p = d[1], h = ke(function() {
48466
48466
  var m = e.current;
48467
48467
  if (m) {
48468
48468
  var g = m.querySelector(Xa), w = g == null ? void 0 : g.clientHeight;
@@ -48567,7 +48567,7 @@ function vE(t) {
48567
48567
  }
48568
48568
  }, n));
48569
48569
  }
48570
- var Qf = /* @__PURE__ */ Ee.create({
48570
+ var Qf = /* @__PURE__ */ Ae.create({
48571
48571
  category: {
48572
48572
  ".": de.category,
48573
48573
  minHeight: "calc(var(--epr-emoji-fullsize) + var(--epr-category-label-height))",
@@ -48670,7 +48670,7 @@ function xE(t) {
48670
48670
  hidden: !d.length && c === 0
48671
48671
  }, d);
48672
48672
  }
48673
- var LE = /* @__PURE__ */ Ee.create({
48673
+ var LE = /* @__PURE__ */ Ae.create({
48674
48674
  emojiList: {
48675
48675
  ".": de.emojiList,
48676
48676
  listStyle: "none",
@@ -48746,7 +48746,7 @@ function IE(t) {
48746
48746
  return o - s;
48747
48747
  }
48748
48748
  }
48749
- var Bo = /* @__PURE__ */ Ee.create(/* @__PURE__ */ we({
48749
+ var Bo = /* @__PURE__ */ Ae.create(/* @__PURE__ */ we({
48750
48750
  variationPicker: {
48751
48751
  ".": de.variationPicker,
48752
48752
  position: "absolute",
@@ -48811,7 +48811,7 @@ function AE() {
48811
48811
  scrollTop: e
48812
48812
  }));
48813
48813
  }
48814
- var EE = /* @__PURE__ */ Ee.create({
48814
+ var EE = /* @__PURE__ */ Ae.create({
48815
48815
  body: {
48816
48816
  ".": de.scrollBody,
48817
48817
  flex: "1",
@@ -48894,7 +48894,7 @@ function t4(t) {
48894
48894
  className: fe(C1.flex, n, C1[o])
48895
48895
  }, e);
48896
48896
  }
48897
- var C1 = /* @__PURE__ */ Ee.create((Fo = {
48897
+ var C1 = /* @__PURE__ */ Ae.create((Fo = {
48898
48898
  flex: {
48899
48899
  display: "flex"
48900
48900
  }
@@ -48940,7 +48940,7 @@ function zE(t) {
48940
48940
  "aria-label": "Skin tone " + d9[i]
48941
48941
  });
48942
48942
  }
48943
- var Gf = /* @__PURE__ */ Ee.create({
48943
+ var Gf = /* @__PURE__ */ Ae.create({
48944
48944
  closedTone: {
48945
48945
  opacity: "0",
48946
48946
  zIndex: "0"
@@ -49039,7 +49039,7 @@ var $a;
49039
49039
  (function(t) {
49040
49040
  t.VERTICAL = "epr-vertical", t.HORIZONTAL = "epr-horizontal";
49041
49041
  })($a || ($a = {}));
49042
- var ta = /* @__PURE__ */ Ee.create({
49042
+ var ta = /* @__PURE__ */ Ae.create({
49043
49043
  skinTones: {
49044
49044
  ".": "epr-skin-tones",
49045
49045
  "--": {
@@ -49111,7 +49111,7 @@ function FE() {
49111
49111
  }, p ? f1(u) : g));
49112
49112
  }
49113
49113
  }
49114
- var Na = /* @__PURE__ */ Ee.create({
49114
+ var Na = /* @__PURE__ */ Ae.create({
49115
49115
  preview: {
49116
49116
  alignItems: "center",
49117
49117
  borderTop: "1px solid var(--epr-preview-border-color)",
@@ -49218,7 +49218,7 @@ var M1 = {
49218
49218
  "&.epr-active": M1
49219
49219
  }
49220
49220
  }
49221
- }, L1 = /* @__PURE__ */ Ee.create(/* @__PURE__ */ we({
49221
+ }, L1 = /* @__PURE__ */ Ae.create(/* @__PURE__ */ we({
49222
49222
  catBtn: {
49223
49223
  ".": "epr-cat-btn",
49224
49224
  display: "inline-block",
@@ -49315,7 +49315,7 @@ function JE() {
49315
49315
  });
49316
49316
  }));
49317
49317
  }
49318
- var KE = /* @__PURE__ */ Ee.create({
49318
+ var KE = /* @__PURE__ */ Ae.create({
49319
49319
  nav: {
49320
49320
  ".": "epr-category-nav",
49321
49321
  display: "flex",
@@ -49355,7 +49355,7 @@ var ZE = {
49355
49355
  backgroundPositionY: "-60px"
49356
49356
  }
49357
49357
  }
49358
- }, N1 = /* @__PURE__ */ Ee.create(/* @__PURE__ */ we({
49358
+ }, N1 = /* @__PURE__ */ Ae.create(/* @__PURE__ */ we({
49359
49359
  btnClearSearch: {
49360
49360
  ".": "epr-btn-clear-search",
49361
49361
  position: "absolute",
@@ -49399,7 +49399,7 @@ function _E() {
49399
49399
  className: fe($E.icnSearch)
49400
49400
  });
49401
49401
  }
49402
- var $E = /* @__PURE__ */ Ee.create(/* @__PURE__ */ we({
49402
+ var $E = /* @__PURE__ */ Ae.create(/* @__PURE__ */ we({
49403
49403
  icnSearch: {
49404
49404
  ".": "epr-icn-search",
49405
49405
  content: "",
@@ -49449,7 +49449,7 @@ function tT() {
49449
49449
  "aria-atomic": "true"
49450
49450
  }, a) : null, P(_E, null), P(qE, null));
49451
49451
  }
49452
- var Xo = /* @__PURE__ */ Ee.create(/* @__PURE__ */ we({
49452
+ var Xo = /* @__PURE__ */ Ae.create(/* @__PURE__ */ we({
49453
49453
  overlay: {
49454
49454
  padding: "var(--epr-header-padding)",
49455
49455
  zIndex: "var(--epr-header-overlay-z-index)"
@@ -49587,7 +49587,7 @@ const lT = ({ role: t }) => {
49587
49587
  client: { label: "Cliente", className: "bg-blue-500/10 text-blue-600 hover:bg-blue-500/20 border-blue-500/20" },
49588
49588
  freelancer: { label: "Freelancer", className: "bg-orange-500/10 text-orange-600 hover:bg-orange-500/20 border-orange-500/20" }
49589
49589
  }, { label: n, className: r } = e[t];
49590
- return /* @__PURE__ */ f(me, { variant: "outline", className: C("text-[10px] h-5 px-1.5 font-medium border-0", r), children: n });
49590
+ return /* @__PURE__ */ f(he, { variant: "outline", className: C("text-[10px] h-5 px-1.5 font-medium border-0", r), children: n });
49591
49591
  }, fT = ({ editor: t, visible: e }) => !t || !e ? null : /* @__PURE__ */ b("div", { className: "flex items-center gap-1 border-b p-1 bg-muted/20 animate-in slide-in-from-bottom-2 duration-200", children: [
49592
49592
  /* @__PURE__ */ f(
49593
49593
  F,
@@ -50010,7 +50010,7 @@ const lT = ({ role: t }) => {
50010
50010
  return /* @__PURE__ */ b("div", { className: C("flex flex-col h-full", o), children: [
50011
50011
  /* @__PURE__ */ b("div", { className: "px-4 py-3 border-b flex items-center justify-between bg-card", children: [
50012
50012
  /* @__PURE__ */ f("h3", { className: "font-semibold text-base", children: "Comentários da Atividade" }),
50013
- /* @__PURE__ */ f(me, { variant: "secondary", className: "bg-muted text-muted-foreground hover:bg-muted", children: t.length })
50013
+ /* @__PURE__ */ f(he, { variant: "secondary", className: "bg-muted text-muted-foreground hover:bg-muted", children: t.length })
50014
50014
  ] }),
50015
50015
  /* @__PURE__ */ f("div", { className: "flex-1 overflow-y-auto p-4 space-y-2 bg-muted/5", children: t.length === 0 ? /* @__PURE__ */ b("div", { className: "h-full flex flex-col items-center justify-center text-muted-foreground opacity-50 min-h-[200px]", children: [
50016
50016
  /* @__PURE__ */ f("div", { className: "bg-muted rounded-full p-3 mb-3", children: /* @__PURE__ */ f(J1, { className: "h-6 w-6" }) }),
@@ -51206,7 +51206,7 @@ const Zc = I.forwardRef(
51206
51206
  readOnly: y,
51207
51207
  ...L
51208
51208
  }, N) => {
51209
- const [k, A] = I.useState(a), [j, S] = I.useState(""), [R, Y] = I.useState(!1), V = I.useRef(null), B = i !== void 0 ? i : k, Q = I.useCallback((T) => u ? new Intl.NumberFormat(p, u).format(T) : T.toFixed(d), [u, p, d]), E = (T) => {
51209
+ const [k, A] = I.useState(a), [j, S] = I.useState(""), [R, Y] = I.useState(!1), V = I.useRef(null), B = i !== void 0 ? i : k, H = I.useCallback((T) => u ? new Intl.NumberFormat(p, u).format(T) : T.toFixed(d), [u, p, d]), E = (T) => {
51210
51210
  const te = T.replace(/[^\d,.-]/g, "").replace(",", "."), ve = parseFloat(te);
51211
51211
  return isNaN(ve) ? 0 : ve;
51212
51212
  }, U = (T) => g ? Math.min(Math.max(T, s), l) : T, _ = I.useCallback((T, G = !1) => {
@@ -51214,34 +51214,34 @@ const Zc = I.forwardRef(
51214
51214
  i === void 0 && A(te), o && o(te);
51215
51215
  }, [i, o, s, l, g]);
51216
51216
  I.useEffect(() => {
51217
- R || S(Q(B));
51218
- }, [B, Q, R]);
51219
- const W = () => {
51217
+ R || S(H(B));
51218
+ }, [B, H, R]);
51219
+ const Q = () => {
51220
51220
  if (x || y) return;
51221
51221
  const T = B + c;
51222
51222
  T <= l && _(T);
51223
- }, he = () => {
51223
+ }, pe = () => {
51224
51224
  if (x || y) return;
51225
51225
  const T = B - c;
51226
51226
  T >= s && _(T);
51227
- }, pe = (T) => {
51227
+ }, me = (T) => {
51228
51228
  const te = T.target.value.replace(/[^\d,.-]/g, "");
51229
51229
  S(te);
51230
51230
  const ve = E(te);
51231
51231
  _(ve, !1);
51232
- }, ke = (T) => {
51232
+ }, Ee = (T) => {
51233
51233
  if (Y(!1), m) {
51234
51234
  const G = U(B);
51235
- _(G, !1), S(Q(G));
51235
+ _(G, !1), S(H(G));
51236
51236
  } else
51237
- S(Q(B));
51237
+ S(H(B));
51238
51238
  L.onBlur && L.onBlur(T);
51239
51239
  }, J = (T) => {
51240
51240
  Y(!0), S(B.toString()), T.target.select(), L.onFocus && L.onFocus(T);
51241
51241
  }, X = (T) => {
51242
- x || y || (T.key === "ArrowUp" ? (T.preventDefault(), W()) : T.key === "ArrowDown" && (T.preventDefault(), he()), L.onKeyDown && L.onKeyDown(T));
51242
+ x || y || (T.key === "ArrowUp" ? (T.preventDefault(), Q()) : T.key === "ArrowDown" && (T.preventDefault(), pe()), L.onKeyDown && L.onKeyDown(T));
51243
51243
  }, ie = (T) => {
51244
- !h || x || y || !R || (T.preventDefault(), T.deltaY < 0 ? W() : T.deltaY > 0 && he());
51244
+ !h || x || y || !R || (T.preventDefault(), T.deltaY < 0 ? Q() : T.deltaY > 0 && pe());
51245
51245
  };
51246
51246
  I.useImperativeHandle(N, () => V.current);
51247
51247
  const ne = () => {
@@ -51250,7 +51250,7 @@ const Zc = I.forwardRef(
51250
51250
  "button",
51251
51251
  {
51252
51252
  type: "button",
51253
- onClick: W,
51253
+ onClick: Q,
51254
51254
  disabled: x || y || B >= l,
51255
51255
  tabIndex: -1,
51256
51256
  "aria-label": "Increment",
@@ -51269,7 +51269,7 @@ const Zc = I.forwardRef(
51269
51269
  "button",
51270
51270
  {
51271
51271
  type: "button",
51272
- onClick: he,
51272
+ onClick: pe,
51273
51273
  disabled: x || y || B <= s,
51274
51274
  tabIndex: -1,
51275
51275
  "aria-label": "Decrement",
@@ -51319,8 +51319,8 @@ const Zc = I.forwardRef(
51319
51319
  t
51320
51320
  ),
51321
51321
  value: j,
51322
- onChange: pe,
51323
- onBlur: ke,
51322
+ onChange: me,
51323
+ onBlur: Ee,
51324
51324
  onFocus: J,
51325
51325
  onKeyDown: X,
51326
51326
  onWheel: ie,
@@ -51361,8 +51361,8 @@ const Zc = I.forwardRef(
51361
51361
  t
51362
51362
  ),
51363
51363
  value: j,
51364
- onChange: pe,
51365
- onBlur: ke,
51364
+ onChange: me,
51365
+ onBlur: Ee,
51366
51366
  onFocus: J,
51367
51367
  onKeyDown: X,
51368
51368
  onWheel: ie,
@@ -51682,7 +51682,7 @@ function MT({
51682
51682
  if (!(t != null && t.from)) return;
51683
51683
  const X = new Date(t.from), [ie, ne] = J.split(":").map(Number);
51684
51684
  X.setHours(ie, ne, 0, 0), e == null || e({ ...t, from: X });
51685
- }, Q = (J) => {
51685
+ }, H = (J) => {
51686
51686
  if (!(t != null && t.to)) return;
51687
51687
  const X = new Date(t.to), [ie, ne] = J.split(":").map(Number);
51688
51688
  X.setHours(ie, ne, 0, 0), e == null || e({ ...t, to: X });
@@ -51722,19 +51722,19 @@ function MT({
51722
51722
  break;
51723
51723
  }
51724
51724
  return ne || (ne = U(X), ne && (T = new Date(ne))), !ne || !T ? null : (ne > T && ([ne, T] = [T, ne]), { from: ne, to: T });
51725
- }, W = (J) => {
51725
+ }, Q = (J) => {
51726
51726
  const X = J.target.value;
51727
51727
  L(X), k(!1);
51728
- }, he = () => {
51728
+ }, pe = () => {
51729
51729
  if (!y.trim()) {
51730
51730
  e == null || e(void 0), k(!1);
51731
51731
  return;
51732
51732
  }
51733
51733
  const J = _(y);
51734
51734
  J ? (e == null || e(J), k(!1)) : k(!0);
51735
- }, pe = (J) => {
51735
+ }, me = (J) => {
51736
51736
  if (J.key === "Enter")
51737
- J.preventDefault(), he(), N || x(!0);
51737
+ J.preventDefault(), pe(), N || x(!0);
51738
51738
  else if (J.key === "Escape") {
51739
51739
  if (J.preventDefault(), t != null && t.from) {
51740
51740
  const X = ce(t.from, A, { locale: s }), ie = t.to ? ce(t.to, A, { locale: s }) : "";
@@ -51743,7 +51743,7 @@ function MT({
51743
51743
  L("");
51744
51744
  k(!1);
51745
51745
  }
51746
- }, ke = (J) => {
51746
+ }, Ee = (J) => {
51747
51747
  J.stopPropagation(), e == null || e(void 0), L(""), k(!1);
51748
51748
  };
51749
51749
  return /* @__PURE__ */ b(it, { open: M, onOpenChange: x, children: [
@@ -51754,9 +51754,9 @@ function MT({
51754
51754
  id: w,
51755
51755
  name: v,
51756
51756
  value: y,
51757
- onChange: W,
51758
- onBlur: he,
51759
- onKeyDown: pe,
51757
+ onChange: Q,
51758
+ onBlur: pe,
51759
+ onKeyDown: me,
51760
51760
  placeholder: n,
51761
51761
  disabled: r,
51762
51762
  "aria-invalid": c || N,
@@ -51775,7 +51775,7 @@ function MT({
51775
51775
  variant: "ghost",
51776
51776
  size: "sm",
51777
51777
  className: "h-7 w-7 p-0 hover:bg-transparent",
51778
- onClick: ke,
51778
+ onClick: Ee,
51779
51779
  tabIndex: -1,
51780
51780
  children: [
51781
51781
  /* @__PURE__ */ f(er, { className: "h-4 w-4 text-muted-foreground hover:text-foreground" }),
@@ -51850,7 +51850,7 @@ function MT({
51850
51850
  ss,
51851
51851
  {
51852
51852
  value: Y,
51853
- onChange: Q,
51853
+ onChange: H,
51854
51854
  format: p,
51855
51855
  minuteStep: h,
51856
51856
  variant: "select",
@@ -52239,17 +52239,17 @@ function RT({
52239
52239
  }, [r]), V = I.useCallback(() => p && A ? p(t, A) : A ? /* @__PURE__ */ b(Fe, { children: [
52240
52240
  A.icon,
52241
52241
  A.label
52242
- ] }) : t, [p, t, A]), B = (A == null ? void 0 : A.variant) || a, Q = A == null ? void 0 : A.className;
52243
- return i ? /* @__PURE__ */ f("div", { ref: g, className: C("inline-flex", h), ...m, children: /* @__PURE__ */ f(me, { variant: B, className: Q, children: V() }) }) : /* @__PURE__ */ b(Fe, { children: [
52242
+ ] }) : t, [p, t, A]), B = (A == null ? void 0 : A.variant) || a, H = A == null ? void 0 : A.className;
52243
+ return i ? /* @__PURE__ */ f("div", { ref: g, className: C("inline-flex", h), ...m, children: /* @__PURE__ */ f(he, { variant: B, className: H, children: V() }) }) : /* @__PURE__ */ b(Fe, { children: [
52244
52244
  /* @__PURE__ */ f("div", { ref: g, className: C("inline-flex", h), ...m, children: /* @__PURE__ */ b(hl, { open: y, onOpenChange: L, children: [
52245
52245
  /* @__PURE__ */ f(pl, { asChild: !0, disabled: u, children: /* @__PURE__ */ b(
52246
- me,
52246
+ he,
52247
52247
  {
52248
52248
  variant: B,
52249
52249
  className: C(
52250
52250
  "cursor-pointer hover:opacity-80 transition-opacity gap-1.5",
52251
52251
  u && "opacity-50 cursor-not-allowed",
52252
- Q
52252
+ H
52253
52253
  ),
52254
52254
  children: [
52255
52255
  V(),
@@ -52279,7 +52279,7 @@ function RT({
52279
52279
  j && /* @__PURE__ */ b("div", { className: "flex items-center gap-3 py-4", children: [
52280
52280
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
52281
52281
  /* @__PURE__ */ f("span", { className: "text-sm text-muted-foreground", children: "De:" }),
52282
- /* @__PURE__ */ b(me, { variant: (A == null ? void 0 : A.variant) || a, className: A == null ? void 0 : A.className, children: [
52282
+ /* @__PURE__ */ b(he, { variant: (A == null ? void 0 : A.variant) || a, className: A == null ? void 0 : A.className, children: [
52283
52283
  A == null ? void 0 : A.icon,
52284
52284
  (A == null ? void 0 : A.label) || t
52285
52285
  ] })
@@ -52287,7 +52287,7 @@ function RT({
52287
52287
  /* @__PURE__ */ f("span", { className: "text-muted-foreground", children: "→" }),
52288
52288
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
52289
52289
  /* @__PURE__ */ f("span", { className: "text-sm text-muted-foreground", children: "Para:" }),
52290
- /* @__PURE__ */ b(me, { variant: j.variant || a, className: j.className, children: [
52290
+ /* @__PURE__ */ b(he, { variant: j.variant || a, className: j.className, children: [
52291
52291
  j.icon,
52292
52292
  j.label
52293
52293
  ] })
@@ -53506,7 +53506,7 @@ const fD = /* @__PURE__ */ oD(lD), Wr = typeof window < "u" ? od : ye;
53506
53506
  function cD(t, e, n) {
53507
53507
  const [r, i] = oe(
53508
53508
  () => e(t)
53509
- ), a = Se(() => {
53509
+ ), a = ke(() => {
53510
53510
  const o = e(t);
53511
53511
  fD(r, o) || (i(o), n && n());
53512
53512
  }, [
@@ -54737,7 +54737,7 @@ function af({
54737
54737
  /* @__PURE__ */ b("div", { className: "p-3", children: [
54738
54738
  /* @__PURE__ */ f("h4", { className: "text-sm font-medium text-gray-900 line-clamp-2 mb-2 leading-snug", children: t.title }),
54739
54739
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
54740
- /* @__PURE__ */ f(me, { variant: "outline", className: C("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", nd[t.status]), children: t.status }),
54740
+ /* @__PURE__ */ f(he, { variant: "outline", className: C("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", nd[t.status]), children: t.status }),
54741
54741
  t.assignees && t.assignees.length > 0 && /* @__PURE__ */ f("div", { className: "flex -space-x-2", children: t.assignees.slice(0, 2).map((h, m) => /* @__PURE__ */ b(en, { className: "w-5 h-5 border border-white", children: [
54742
54742
  /* @__PURE__ */ f(nr, { src: h.avatar }),
54743
54743
  /* @__PURE__ */ f(tn, { className: "text-[8px]", children: h.name[0] })
@@ -54824,7 +54824,7 @@ function af({
54824
54824
  n === "editorial" && /* @__PURE__ */ f(s, { size: 12, className: C(t.channel ? ec[t.channel] : "text-gray-400") }),
54825
54825
  /* @__PURE__ */ f("span", { className: "truncate font-medium text-sm", children: t.title })
54826
54826
  ] }),
54827
- /* @__PURE__ */ f(me, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: t.status })
54827
+ /* @__PURE__ */ f(he, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: t.status })
54828
54828
  ] })
54829
54829
  ]
54830
54830
  }
@@ -55264,8 +55264,8 @@ function D4({
55264
55264
  B.setHours(E.getHours(), E.getMinutes());
55265
55265
  } else
55266
55266
  B.setHours(9, 0);
55267
- const Q = { ...V, date: B };
55268
- e(Q);
55267
+ const H = { ...V, date: B };
55268
+ e(H);
55269
55269
  }
55270
55270
  },
55271
55271
  handleTaskClick: (S) => {
@@ -55289,7 +55289,7 @@ function R4({ isOpen: t, setIsOpen: e, tasks: n, onAddClick: r, onTaskClick: i,
55289
55289
  /* @__PURE__ */ b("div", { className: "p-4 border-b bg-white flex items-center justify-between", children: [
55290
55290
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
55291
55291
  /* @__PURE__ */ f("h3", { className: "font-semibold text-sm text-gray-900", children: "Backlog" }),
55292
- /* @__PURE__ */ f(me, { variant: "secondary", className: "bg-gray-100 text-xs", children: n.length })
55292
+ /* @__PURE__ */ f(he, { variant: "secondary", className: "bg-gray-100 text-xs", children: n.length })
55293
55293
  ] }),
55294
55294
  /* @__PURE__ */ f(F, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => e(!1), children: /* @__PURE__ */ f(ad, { size: 16 }) })
55295
55295
  ] }),
@@ -55319,7 +55319,7 @@ function R4({ isOpen: t, setIsOpen: e, tasks: n, onAddClick: r, onTaskClick: i,
55319
55319
  ] }) : /* @__PURE__ */ b("div", { className: "border-r bg-white flex flex-col items-center py-4 w-12 flex-shrink-0 cursor-pointer hover:bg-gray-50 transition-colors", onClick: () => e(!0), children: [
55320
55320
  /* @__PURE__ */ f(id, { className: "text-gray-500 mb-4", size: 20 }),
55321
55321
  /* @__PURE__ */ f("div", { className: "flex-1 flex items-center justify-center min-h-0", children: /* @__PURE__ */ f("div", { className: "whitespace-nowrap text-xs font-medium text-gray-400 -rotate-90 transform", children: "BACKLOG" }) }),
55322
- /* @__PURE__ */ f(me, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-[#7F26BF] text-[10px]", children: n.length })
55322
+ /* @__PURE__ */ f(he, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-[#7F26BF] text-[10px]", children: n.length })
55323
55323
  ] });
55324
55324
  }
55325
55325
  function O4({ title: t, onPrev: e, onNext: n, onToday: r, onAdd: i, view: a, setView: o }) {
@@ -55771,7 +55771,7 @@ const V4 = I.memo(({
55771
55771
  ] })
55772
55772
  ] }),
55773
55773
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between pt-2 border-t", children: [
55774
- /* @__PURE__ */ b(me, { variant: c.variant, className: "gap-1", children: [
55774
+ /* @__PURE__ */ b(he, { variant: c.variant, className: "gap-1", children: [
55775
55775
  /* @__PURE__ */ f(d, { className: "size-3" }),
55776
55776
  c.label
55777
55777
  ] }),
@@ -56199,7 +56199,7 @@ const o5 = I.forwardRef(
56199
56199
  ),
56200
56200
  /* @__PURE__ */ b("div", { className: "flex items-center gap-1 shrink-0", children: [
56201
56201
  h === "overdue" && /* @__PURE__ */ f(
56202
- me,
56202
+ he,
56203
56203
  {
56204
56204
  variant: "destructive",
56205
56205
  className: "text-xs px-1.5 py-0 h-4 font-medium",
@@ -56333,7 +56333,7 @@ const s5 = {
56333
56333
  }
56334
56334
  ),
56335
56335
  o && /* @__PURE__ */ f("div", { className: "absolute top-2 right-2", children: /* @__PURE__ */ b(
56336
- me,
56336
+ he,
56337
56337
  {
56338
56338
  variant: "secondary",
56339
56339
  className: C("shadow-sm", N == null ? void 0 : N.bgColor),
@@ -56372,7 +56372,7 @@ const s5 = {
56372
56372
  children: t
56373
56373
  }
56374
56374
  ),
56375
- p && h === "detailed" && /* @__PURE__ */ f(me, { variant: "outline", className: "mt-1 text-xs", children: p })
56375
+ p && h === "detailed" && /* @__PURE__ */ f(he, { variant: "outline", className: "mt-1 text-xs", children: p })
56376
56376
  ] })
56377
56377
  ] }),
56378
56378
  e && h !== "compact" && /* @__PURE__ */ f(Py, { className: "mt-2 line-clamp-2 text-xs", children: e })
@@ -56403,7 +56403,7 @@ const s5 = {
56403
56403
  ] }),
56404
56404
  i.length > 0 && /* @__PURE__ */ b("div", { className: "flex flex-wrap gap-1 mt-2", children: [
56405
56405
  i.slice(0, h === "compact" ? 2 : 3).map((j) => /* @__PURE__ */ f(
56406
- me,
56406
+ he,
56407
56407
  {
56408
56408
  variant: "secondary",
56409
56409
  className: "text-xs",
@@ -56416,13 +56416,13 @@ const s5 = {
56416
56416
  },
56417
56417
  j.id
56418
56418
  )),
56419
- i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ b(me, { variant: "secondary", className: "text-xs", children: [
56419
+ i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ b(he, { variant: "secondary", className: "text-xs", children: [
56420
56420
  "+",
56421
56421
  i.length - (h === "compact" ? 2 : 3)
56422
56422
  ] })
56423
56423
  ] }),
56424
56424
  o && !n && h === "detailed" && /* @__PURE__ */ b(
56425
- me,
56425
+ he,
56426
56426
  {
56427
56427
  variant: "secondary",
56428
56428
  className: C("mt-2 w-fit text-xs", N == null ? void 0 : N.bgColor),
@@ -56521,20 +56521,10 @@ function MR({
56521
56521
  onSearch: d,
56522
56522
  className: u
56523
56523
  }) {
56524
- var Q;
56525
- const [p, h] = I.useState(!1), [m, g] = I.useState(""), w = I.useRef(null), v = I.useRef(null);
56526
- I.useEffect(() => {
56527
- const E = v.current;
56528
- if (!E) return;
56529
- const U = (_) => {
56530
- const { scrollTop: W, scrollHeight: he, clientHeight: pe } = E;
56531
- if (he <= pe) return;
56532
- const ke = W <= 0 && _.deltaY < 0, J = Math.ceil(W + pe) >= he && _.deltaY > 0;
56533
- !ke && !J && _.stopPropagation();
56534
- };
56535
- return E.addEventListener("wheel", U, { passive: !0 }), () => E.removeEventListener("wheel", U);
56536
- }, [p]);
56537
- const M = I.useMemo(() => n || (r ? r.flatMap((E) => E.options) : []), [n, r]), x = !!d, y = I.useMemo(() => {
56524
+ var H;
56525
+ const [p, h] = I.useState(!1), [m, g] = I.useState(""), w = I.useRef(null), v = I.useCallback((E) => {
56526
+ E && E.addEventListener("wheel", (U) => U.stopPropagation(), { passive: !0 });
56527
+ }, []), M = I.useMemo(() => n || (r ? r.flatMap((E) => E.options) : []), [n, r]), x = !!d, y = I.useMemo(() => {
56538
56528
  if (!n) return [];
56539
56529
  if (x) return n;
56540
56530
  const E = m.toLowerCase().trim();
@@ -56618,7 +56608,7 @@ function MR({
56618
56608
  children: [
56619
56609
  /* @__PURE__ */ f("div", { className: "flex flex-wrap items-center gap-1 flex-1 min-w-0", children: t.length === 0 ? /* @__PURE__ */ f("span", { className: "truncate text-sm", children: l ? "Carregando..." : i }) : /* @__PURE__ */ b(Fe, { children: [
56620
56610
  Y.map((E) => /* @__PURE__ */ b(
56621
- me,
56611
+ he,
56622
56612
  {
56623
56613
  variant: "secondary",
56624
56614
  className: "rounded-sm h-5 gap-0.5 pr-1 font-normal max-w-[160px]",
@@ -56640,7 +56630,7 @@ function MR({
56640
56630
  E.value
56641
56631
  )),
56642
56632
  V > 0 && /* @__PURE__ */ b(
56643
- me,
56633
+ he,
56644
56634
  {
56645
56635
  variant: "secondary",
56646
56636
  className: "rounded-sm h-5 px-1.5 font-normal text-xs shrink-0",
@@ -56660,10 +56650,11 @@ function MR({
56660
56650
  {
56661
56651
  className: "p-0 overflow-hidden",
56662
56652
  style: {
56663
- width: (Q = w.current) != null && Q.offsetWidth ? `${w.current.offsetWidth}px` : "auto"
56653
+ width: (H = w.current) != null && H.offsetWidth ? `${w.current.offsetWidth}px` : "auto"
56664
56654
  },
56665
56655
  align: "start",
56666
56656
  onOpenAutoFocus: (E) => E.preventDefault(),
56657
+ onWheel: (E) => E.stopPropagation(),
56667
56658
  children: [
56668
56659
  /* @__PURE__ */ b("div", { className: "flex items-center border-b px-3", children: [
56669
56660
  /* @__PURE__ */ f(Ia, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
@@ -56678,7 +56669,7 @@ function MR({
56678
56669
  }
56679
56670
  )
56680
56671
  ] }),
56681
- /* @__PURE__ */ f("div", { ref: v, className: "max-h-[280px] overflow-y-auto [&::-webkit-scrollbar]:w-2.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-primary/30 [&::-webkit-scrollbar-thumb:hover]:bg-primary/50", children: /* @__PURE__ */ f("div", { className: "p-1", role: "listbox", "aria-multiselectable": !0, children: l ? /* @__PURE__ */ b("div", { className: "flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground", children: [
56672
+ /* @__PURE__ */ f("div", { ref: v, className: "max-h-70 overflow-y-auto [&::-webkit-scrollbar]:w-2.5 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-primary/30 [&::-webkit-scrollbar-thumb:hover]:bg-primary/50", children: /* @__PURE__ */ f("div", { className: "p-1", role: "listbox", "aria-multiselectable": !0, children: l ? /* @__PURE__ */ b("div", { className: "flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground", children: [
56682
56673
  /* @__PURE__ */ f(Q1, { className: "h-4 w-4 animate-spin" }),
56683
56674
  "Carregando..."
56684
56675
  ] }) : k ? r ? L == null ? void 0 : L.map((E) => /* @__PURE__ */ b("div", { children: [
@@ -56728,7 +56719,7 @@ const f5 = I.forwardRef(
56728
56719
  /* @__PURE__ */ b("div", { className: "flex items-baseline flex-wrap gap-2", children: [
56729
56720
  /* @__PURE__ */ f("span", { className: "text-2xl font-bold", children: e }),
56730
56721
  r !== void 0 && /* @__PURE__ */ b(
56731
- me,
56722
+ he,
56732
56723
  {
56733
56724
  variant: "secondary",
56734
56725
  className: C(
@@ -56805,13 +56796,13 @@ function xR({
56805
56796
  const v = g.chave || g.id || `${g.nomeOriginal}-${w}`, M = p[g.chave || g.nomeOriginal], x = M === "download", y = M === "view", L = (() => {
56806
56797
  switch (g.status) {
56807
56798
  case "completed":
56808
- return /* @__PURE__ */ f(me, { variant: "outline", className: "bg-green-50 text-green-600 border-green-200 hover:bg-green-50", children: "✓ Enviado" });
56799
+ return /* @__PURE__ */ f(he, { variant: "outline", className: "bg-green-50 text-green-600 border-green-200 hover:bg-green-50", children: "✓ Enviado" });
56809
56800
  case "uploading":
56810
- return /* @__PURE__ */ f(me, { variant: "outline", className: "bg-blue-50 text-blue-600 border-blue-200 hover:bg-blue-50", children: "Enviando..." });
56801
+ return /* @__PURE__ */ f(he, { variant: "outline", className: "bg-blue-50 text-blue-600 border-blue-200 hover:bg-blue-50", children: "Enviando..." });
56811
56802
  case "failed":
56812
- return /* @__PURE__ */ f(me, { variant: "outline", className: "bg-red-50 text-red-600 border-red-200 hover:bg-red-50", children: "✗ Erro" });
56803
+ return /* @__PURE__ */ f(he, { variant: "outline", className: "bg-red-50 text-red-600 border-red-200 hover:bg-red-50", children: "✗ Erro" });
56813
56804
  case "retrying":
56814
- return /* @__PURE__ */ f(me, { variant: "outline", className: "bg-yellow-50 text-yellow-600 border-yellow-200 hover:bg-yellow-50", children: "Tentando..." });
56805
+ return /* @__PURE__ */ f(he, { variant: "outline", className: "bg-yellow-50 text-yellow-600 border-yellow-200 hover:bg-yellow-50", children: "Tentando..." });
56815
56806
  default:
56816
56807
  return null;
56817
56808
  }
@@ -58769,7 +58760,7 @@ function TO({
58769
58760
  }
58770
58761
  ),
58771
58762
  /* @__PURE__ */ f("span", { className: "text-sm flex-1", children: M.name }),
58772
- M.assignee && /* @__PURE__ */ f(me, { variant: "outline", className: "text-xs", children: M.assignee.name })
58763
+ M.assignee && /* @__PURE__ */ f(he, { variant: "outline", className: "text-xs", children: M.assignee.name })
58773
58764
  ]
58774
58765
  },
58775
58766
  M.id
@@ -58845,7 +58836,7 @@ const V5 = (t) => {
58845
58836
  ] }),
58846
58837
  a && /* @__PURE__ */ b(r3, { open: r, onOpenChange: o, className: "mt-1", children: [
58847
58838
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
58848
- t.action === "upload" && ((d = t.metadata) == null ? void 0 : d.fileName) && /* @__PURE__ */ b(me, { variant: "outline", className: "gap-1 font-normal bg-muted/30 text-muted-foreground hover:bg-muted/50", children: [
58839
+ t.action === "upload" && ((d = t.metadata) == null ? void 0 : d.fileName) && /* @__PURE__ */ b(he, { variant: "outline", className: "gap-1 font-normal bg-muted/30 text-muted-foreground hover:bg-muted/50", children: [
58849
58840
  /* @__PURE__ */ f(iy, { className: "h-3 w-3" }),
58850
58841
  t.metadata.fileName
58851
58842
  ] }),
@@ -59100,9 +59091,9 @@ function YO({
59100
59091
  className: d,
59101
59092
  onError: u
59102
59093
  }) {
59103
- const [p, h] = oe(!1), m = Oe(null), g = Se((k) => {
59094
+ const [p, h] = oe(!1), m = Oe(null), g = ke((k) => {
59104
59095
  u == null || u(k);
59105
- }, [u]), w = Se((k) => {
59096
+ }, [u]), w = ke((k) => {
59106
59097
  if (!k || k.length === 0) return;
59107
59098
  const A = Array.from(k);
59108
59099
  if (A.length > r) {
@@ -59125,16 +59116,16 @@ function YO({
59125
59116
  }
59126
59117
  S.length > 0 && g(S.join(`
59127
59118
  `)), j.length > 0 && t(j), m.current && (m.current.value = "");
59128
- }, [r, i, e, t, g]), v = Se(() => {
59119
+ }, [r, i, e, t, g]), v = ke(() => {
59129
59120
  var k;
59130
59121
  a || o || (k = m.current) == null || k.click();
59131
- }, [a, o]), M = Se((k) => {
59122
+ }, [a, o]), M = ke((k) => {
59132
59123
  w(k.target.files);
59133
- }, [w]), x = Se((k) => {
59124
+ }, [w]), x = ke((k) => {
59134
59125
  k.preventDefault(), k.stopPropagation(), !a && !o && h(!0);
59135
- }, [a, o]), y = Se((k) => {
59126
+ }, [a, o]), y = ke((k) => {
59136
59127
  k.preventDefault(), k.stopPropagation(), h(!1);
59137
- }, []), L = Se((k) => {
59128
+ }, []), L = ke((k) => {
59138
59129
  k.preventDefault(), k.stopPropagation(), h(!1), !(a || o) && w(k.dataTransfer.files);
59139
59130
  }, [a, o, w]), N = l || (() => {
59140
59131
  const k = [];
@@ -59518,7 +59509,7 @@ export {
59518
59509
  en as Avatar,
59519
59510
  tn as AvatarFallback,
59520
59511
  nr as AvatarImage,
59521
- me as Badge,
59512
+ he as Badge,
59522
59513
  ic as BrandLogo,
59523
59514
  qv as Breadcrumb,
59524
59515
  l7 as BreadcrumbEllipsis,