@iclips/ui 1.0.48 → 1.0.49

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 qs, Home as B4, Folder as H4, Users as U4, Calendar
4
4
  import { clsx as Jv } from "clsx";
5
5
  import { twMerge as Yv } from "tailwind-merge";
6
6
  import * as T from "react";
7
- import ut, { useState as ne, useRef as Ae, useDebugValue as W1, useEffect as ue, forwardRef as $1, useLayoutEffect as Zc, version as Iu, createContext as Ti, useContext as Xe, useImperativeHandle as Qv, createElement as O, memo as qc, createRef as dn, Fragment as Kc, useCallback as Ye, useMemo as ye, Suspense as Vv, Component as _v, isValidElement as Gv, cloneElement as Tu } from "react";
7
+ import ut, { useState as ne, useRef as ze, useDebugValue as W1, useEffect as ue, forwardRef as $1, useLayoutEffect as Zc, version as Iu, createContext as Ti, useContext as Xe, useImperativeHandle as Qv, createElement as O, memo as qc, createRef as dn, Fragment as Kc, useCallback as Ye, useMemo as we, Suspense as Vv, Component as _v, isValidElement as Gv, cloneElement as Tu } from "react";
8
8
  import * as sn from "@radix-ui/react-alert-dialog";
9
9
  import { Slot as In } from "@radix-ui/react-slot";
10
10
  import { cva as fn } from "class-variance-authority";
@@ -393,7 +393,7 @@ const ww = fn(
393
393
  variant: "default"
394
394
  }
395
395
  }
396
- ), we = T.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ l(
396
+ ), ve = T.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ l(
397
397
  n ? In : "span",
398
398
  {
399
399
  ref: i,
@@ -402,7 +402,7 @@ const ww = fn(
402
402
  ...r
403
403
  }
404
404
  ));
405
- we.displayName = "Badge";
405
+ ve.displayName = "Badge";
406
406
  const Ru = {
407
407
  p395de780: "M0 1.88343C0 0.870644 0.847464 0 1.86025 0C2.89622 0 3.74369 0.871417 3.74369 1.88343C3.74369 2.89622 2.89622 3.74446 1.86025 3.74446C0.847464 3.74446 0 2.89622 0 1.88343Z",
408
408
  p9466600: "M14.366 0.0315111C9.86678 -0.373296 6.07442 3.17572 6.07442 7.59306V25.1303C6.07442 27.4664 7.74695 29.567 10.0661 29.8474C12.8287 30.1811 15.1857 28.0234 15.1857 25.3258V15.2102V14.0661C15.1857 13.1908 14.4757 12.4809 13.6004 12.4809H12.1488V15.2102V25.2161C12.1488 25.9847 11.5355 26.7689 10.7699 26.8384C9.86987 26.9195 9.11125 26.2095 9.11125 25.3258V7.78928C9.11125 5.45314 10.783 3.35263 13.1021 3.07142C15.8647 2.73692 18.2225 4.8946 18.2225 7.59306V21.0459C18.2225 21.0459 18.2225 21.0931 18.2225 21.1595C18.2225 21.9483 18.2225 25.3428 18.2225 25.3605C18.2024 29.7655 14.4124 33.2967 9.91931 32.8858C5.96936 32.525 3.03682 29.0355 3.03682 25.0693V15.1291V12.4816H1.58524C0.709959 12.4816 0 13.1916 0 14.0669V25.0152C0 30.6014 4.18017 35.4676 9.74781 35.9195C15.6461 36.3977 20.6529 32.029 21.2083 26.3725C21.2145 26.3053 21.2408 23.8325 21.2531 21.8216L21.2593 21.8231V7.85031C21.2601 3.87872 18.3206 0.386876 14.366 0.0315111Z"
@@ -594,7 +594,7 @@ function qA({
594
594
  /* @__PURE__ */ l(D, { className: "h-4 w-4 shrink-0" }),
595
595
  /* @__PURE__ */ l("span", { className: M("flex-1 text-left", S.highlighted && "font-medium"), children: S.label }),
596
596
  S.badge && /* @__PURE__ */ l(
597
- we,
597
+ ve,
598
598
  {
599
599
  variant: S.highlighted ? "default" : "secondary",
600
600
  className: "min-w-5 px-1.5 text-xs",
@@ -1133,7 +1133,7 @@ function s8({
1133
1133
  ) }),
1134
1134
  /* @__PURE__ */ l("span", { className: M("flex-1 text-left"), children: y.label }),
1135
1135
  y.badge && /* @__PURE__ */ l(
1136
- we,
1136
+ ve,
1137
1137
  {
1138
1138
  variant: "secondary",
1139
1139
  className: M(
@@ -6722,7 +6722,7 @@ class Ir extends et {
6722
6722
  }
6723
6723
  }
6724
6724
  et.jsonID("removeNodeMark", Ir);
6725
- class Oe extends et {
6725
+ class Pe extends et {
6726
6726
  /**
6727
6727
  The given `slice` should fit the 'gap' between `from` and
6728
6728
  `to`—the depths must line up, and the surrounding nodes must be
@@ -6742,21 +6742,21 @@ class Oe extends et {
6742
6742
  return new gt([this.from, this.to - this.from, this.slice.size]);
6743
6743
  }
6744
6744
  invert(e) {
6745
- return new Oe(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
6745
+ return new Pe(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
6746
6746
  }
6747
6747
  map(e) {
6748
6748
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
6749
- return n.deletedAcross && r.deletedAcross ? null : new Oe(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
6749
+ return n.deletedAcross && r.deletedAcross ? null : new Pe(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
6750
6750
  }
6751
6751
  merge(e) {
6752
- if (!(e instanceof Oe) || e.structure || this.structure)
6752
+ if (!(e instanceof Pe) || e.structure || this.structure)
6753
6753
  return null;
6754
6754
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
6755
6755
  let n = this.slice.size + e.slice.size == 0 ? U.empty : new U(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
6756
- return new Oe(this.from, this.to + (e.to - e.from), n, this.structure);
6756
+ return new Pe(this.from, this.to + (e.to - e.from), n, this.structure);
6757
6757
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
6758
6758
  let n = this.slice.size + e.slice.size == 0 ? U.empty : new U(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
6759
- return new Oe(e.from, this.to, n, this.structure);
6759
+ return new Pe(e.from, this.to, n, this.structure);
6760
6760
  } else
6761
6761
  return null;
6762
6762
  }
@@ -6770,11 +6770,11 @@ class Oe extends et {
6770
6770
  static fromJSON(e, n) {
6771
6771
  if (typeof n.from != "number" || typeof n.to != "number")
6772
6772
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
6773
- return new Oe(n.from, n.to, U.fromJSON(e, n.slice), !!n.structure);
6773
+ return new Pe(n.from, n.to, U.fromJSON(e, n.slice), !!n.structure);
6774
6774
  }
6775
6775
  }
6776
- et.jsonID("replace", Oe);
6777
- class Re extends et {
6776
+ et.jsonID("replace", Pe);
6777
+ class Be extends et {
6778
6778
  /**
6779
6779
  Create a replace-around step with the given range and gap.
6780
6780
  `insert` should be the point in the slice into which the content
@@ -6805,11 +6805,11 @@ class Re extends et {
6805
6805
  }
6806
6806
  invert(e) {
6807
6807
  let n = this.gapTo - this.gapFrom;
6808
- return new Re(this.from, this.from + this.slice.size + n, this.from + this.insert, this.from + this.insert + n, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
6808
+ return new Be(this.from, this.from + this.slice.size + n, this.from + this.insert, this.from + this.insert + n, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
6809
6809
  }
6810
6810
  map(e) {
6811
6811
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = this.from == this.gapFrom ? n.pos : e.map(this.gapFrom, -1), a = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
6812
- return n.deletedAcross && r.deletedAcross || i < n.pos || a > r.pos ? null : new Re(n.pos, r.pos, i, a, this.slice, this.insert, this.structure);
6812
+ return n.deletedAcross && r.deletedAcross || i < n.pos || a > r.pos ? null : new Be(n.pos, r.pos, i, a, this.slice, this.insert, this.structure);
6813
6813
  }
6814
6814
  toJSON() {
6815
6815
  let e = {
@@ -6828,10 +6828,10 @@ class Re extends et {
6828
6828
  static fromJSON(e, n) {
6829
6829
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
6830
6830
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
6831
- return new Re(n.from, n.to, n.gapFrom, n.gapTo, U.fromJSON(e, n.slice), n.insert, !!n.structure);
6831
+ return new Be(n.from, n.to, n.gapFrom, n.gapTo, U.fromJSON(e, n.slice), n.insert, !!n.structure);
6832
6832
  }
6833
6833
  }
6834
- et.jsonID("replaceAround", Re);
6834
+ et.jsonID("replaceAround", Be);
6835
6835
  function ec(t, e, n) {
6836
6836
  let r = t.resolve(e), i = n - e, a = r.depth;
6837
6837
  for (; i > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
@@ -6890,7 +6890,7 @@ function od(t, e, n, r = n.contentMatch, i = !0) {
6890
6890
  for (let f = 0; f < a.childCount; f++) {
6891
6891
  let c = a.child(f), d = s + c.nodeSize, u = r.matchType(c.type);
6892
6892
  if (!u)
6893
- o.push(new Oe(s, d, U.empty));
6893
+ o.push(new Pe(s, d, U.empty));
6894
6894
  else {
6895
6895
  r = u;
6896
6896
  for (let p = 0; p < c.marks.length; p++)
@@ -6898,7 +6898,7 @@ function od(t, e, n, r = n.contentMatch, i = !0) {
6898
6898
  if (i && c.isText && n.whitespace != "pre") {
6899
6899
  let p, h = /\r?\n|\r/g, m;
6900
6900
  for (; p = h.exec(c.text); )
6901
- m || (m = new U(E.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new Oe(s + p.index, s + p.index + p[0].length, m));
6901
+ m || (m = new U(E.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new Pe(s + p.index, s + p.index + p[0].length, m));
6902
6902
  }
6903
6903
  }
6904
6904
  s = d;
@@ -6932,7 +6932,7 @@ function Ky(t, e, n) {
6932
6932
  let p = E.empty, h = 0;
6933
6933
  for (let m = a, g = !1; m > n; m--)
6934
6934
  g || i.after(m + 1) < i.end(m) ? (g = !0, p = E.from(i.node(m).copy(p)), h++) : c++;
6935
- t.step(new Re(f, c, o, s, new U(d.append(p), u, h), d.size - u, !0));
6935
+ t.step(new Be(f, c, o, s, new U(d.append(p), u, h), d.size - u, !0));
6936
6936
  }
6937
6937
  function sd(t, e, n = null, r = t) {
6938
6938
  let i = Xy(t, e), a = i && e3(r, e);
@@ -6968,7 +6968,7 @@ function t3(t, e, n) {
6968
6968
  r = E.from(n[o].type.create(n[o].attrs, r));
6969
6969
  }
6970
6970
  let i = e.start, a = e.end;
6971
- t.step(new Re(i, a, i, a, new U(r, 0, 0), n.length, !0));
6971
+ t.step(new Be(i, a, i, a, new U(r, 0, 0), n.length, !0));
6972
6972
  }
6973
6973
  function n3(t, e, n, r, i) {
6974
6974
  if (!r.isTextblock)
@@ -6984,7 +6984,7 @@ function n3(t, e, n, r, i) {
6984
6984
  }
6985
6985
  c === !1 && Rp(t, o, s, a), od(t, t.mapping.slice(a).map(s, 1), r, void 0, c === null);
6986
6986
  let d = t.mapping.slice(a), u = d.map(s, 1), p = d.map(s + o.nodeSize, 1);
6987
- return t.step(new Re(u, p, u + 1, p - 1, new U(E.from(r.create(f, null, o.marks)), 0, 0), 1, !0)), c === !0 && Pp(t, o, s, a), !1;
6987
+ return t.step(new Be(u, p, u + 1, p - 1, new U(E.from(r.create(f, null, o.marks)), 0, 0), 1, !0)), c === !0 && Pp(t, o, s, a), !1;
6988
6988
  }
6989
6989
  });
6990
6990
  }
@@ -7022,7 +7022,7 @@ function i3(t, e, n, r, i) {
7022
7022
  return t.replaceWith(e, e + a.nodeSize, o);
7023
7023
  if (!n.validContent(a.content))
7024
7024
  throw new RangeError("Invalid content for node type " + n.name);
7025
- t.step(new Re(e, e + a.nodeSize, e + 1, e + a.nodeSize - 1, new U(E.from(o), 0, 0), 1, !0));
7025
+ t.step(new Be(e, e + a.nodeSize, e + 1, e + a.nodeSize - 1, new U(E.from(o), 0, 0), 1, !0));
7026
7026
  }
7027
7027
  function Nn(t, e, n = 1, r) {
7028
7028
  let i = t.resolve(e), a = i.depth - n, o = r && r[r.length - 1] || i.parent;
@@ -7048,7 +7048,7 @@ function a3(t, e, n = 1, r) {
7048
7048
  let d = r && r[c];
7049
7049
  o = E.from(d ? d.type.create(d.attrs, o) : i.node(s).copy(o));
7050
7050
  }
7051
- t.step(new Oe(e, e, new U(a.append(o), n, n), !0));
7051
+ t.step(new Pe(e, e, new U(a.append(o), n, n), !0));
7052
7052
  }
7053
7053
  function Xn(t, e) {
7054
7054
  let n = t.resolve(e), r = n.index();
@@ -7091,7 +7091,7 @@ function s3(t, e, n) {
7091
7091
  }
7092
7092
  o.inlineContent && od(t, e + n - 1, o, a.node().contentMatchAt(a.index()), r == null);
7093
7093
  let f = t.mapping.slice(s), c = f.map(e - n);
7094
- if (t.step(new Oe(c, f.map(e + n, -1), U.empty, !0)), r === !0) {
7094
+ if (t.step(new Pe(c, f.map(e + n, -1), U.empty, !0)), r === !0) {
7095
7095
  let d = t.doc.resolve(c);
7096
7096
  Pp(t, d.node(), d.before(), t.steps.length);
7097
7097
  }
@@ -7144,7 +7144,7 @@ function hf(t, e, n = e, r = U.empty) {
7144
7144
  if (e == n && !r.size)
7145
7145
  return null;
7146
7146
  let i = t.resolve(e), a = t.resolve(n);
7147
- return Up(i, a, r) ? new Oe(e, n, r) : new l3(i, a, r).fit();
7147
+ return Up(i, a, r) ? new Pe(e, n, r) : new l3(i, a, r).fit();
7148
7148
  }
7149
7149
  function Up(t, e, n) {
7150
7150
  return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
@@ -7177,7 +7177,7 @@ class l3 {
7177
7177
  for (; o && s && a.childCount == 1; )
7178
7178
  a = a.firstChild.content, o--, s--;
7179
7179
  let f = new U(a, o, s);
7180
- return e > -1 ? new Re(r.pos, e, this.$to.pos, this.$to.end(), f, n) : f.size || r.pos != this.$to.pos ? new Oe(r.pos, i.pos, f) : null;
7180
+ return e > -1 ? new Be(r.pos, e, this.$to.pos, this.$to.end(), f, n) : f.size || r.pos != this.$to.pos ? new Pe(r.pos, i.pos, f) : null;
7181
7181
  }
7182
7182
  // Find a position on the start spine of `this.unplaced` that has
7183
7183
  // content that can be moved somewhere on the frontier. Returns two
@@ -7334,7 +7334,7 @@ function u3(t, e, n, r) {
7334
7334
  return t.deleteRange(e, n);
7335
7335
  let i = t.doc.resolve(e), a = t.doc.resolve(n);
7336
7336
  if (Up(i, a, r))
7337
- return t.step(new Oe(e, n, r));
7337
+ return t.step(new Pe(e, n, r));
7338
7338
  let o = Yp(i, a);
7339
7339
  o[o.length - 1] == 0 && o.pop();
7340
7340
  let s = -(i.depth + 1);
@@ -8112,7 +8112,7 @@ function t0(t, e, n) {
8112
8112
  if (r < e)
8113
8113
  return;
8114
8114
  let i = t.steps[r];
8115
- if (!(i instanceof Oe || i instanceof Re))
8115
+ if (!(i instanceof Pe || i instanceof Be))
8116
8116
  return;
8117
8117
  let a = t.mapping.maps[r], o;
8118
8118
  a.forEach((s, f, c, d) => {
@@ -8494,7 +8494,7 @@ function Vp(t, e, n) {
8494
8494
  }
8495
8495
  return n;
8496
8496
  }
8497
- class Me {
8497
+ class ye {
8498
8498
  /**
8499
8499
  Create a plugin.
8500
8500
  */
@@ -8597,7 +8597,7 @@ function $p(t, e, n) {
8597
8597
  s = d;
8598
8598
  }
8599
8599
  let c = hf(t.doc, a, f, U.empty);
8600
- if (!c || c.from != a || c instanceof Oe && c.slice.size >= f - a)
8600
+ if (!c || c.from != a || c instanceof Pe && c.slice.size >= f - a)
8601
8601
  return !1;
8602
8602
  if (n) {
8603
8603
  let d = t.tr.step(c);
@@ -8806,7 +8806,7 @@ function rm(t, e, n, r) {
8806
8806
  for (let w = o.length - 1; w >= 0; w--)
8807
8807
  m = E.from(o[w].create(null, m));
8808
8808
  m = E.from(i.copy(m));
8809
- let g = t.tr.step(new Re(e.pos - 1, h, e.pos, h, new U(m, 1, 0), o.length, !0)), v = g.doc.resolve(h + 2 * o.length);
8809
+ let g = t.tr.step(new Be(e.pos - 1, h, e.pos, h, new U(m, 1, 0), o.length, !0)), v = g.doc.resolve(h + 2 * o.length);
8810
8810
  v.nodeAfter && v.nodeAfter.type == i.type && Xn(g.doc, v.pos) && g.join(v.pos), n(g.scrollIntoView());
8811
8811
  }
8812
8812
  return !0;
@@ -8826,7 +8826,7 @@ function rm(t, e, n, r) {
8826
8826
  let w = E.empty;
8827
8827
  for (let L = m.length - 1; L >= 0; L--)
8828
8828
  w = E.from(m[L].copy(w));
8829
- let x = t.tr.step(new Re(e.pos - m.length, e.pos + a.nodeSize, e.pos + v, e.pos + a.nodeSize - v, new U(w, m.length, 0), 0, !0));
8829
+ let x = t.tr.step(new Be(e.pos - m.length, e.pos + a.nodeSize, e.pos + v, e.pos + a.nodeSize - v, new U(w, m.length, 0), 0, !0));
8830
8830
  n(x.scrollIntoView());
8831
8831
  }
8832
8832
  return !0;
@@ -8918,7 +8918,7 @@ function z3(t, e, n, r, i) {
8918
8918
  let a = E.empty;
8919
8919
  for (let d = n.length - 1; d >= 0; d--)
8920
8920
  a = E.from(n[d].type.create(n[d].attrs, a));
8921
- t.step(new Re(e.start - (r ? 2 : 0), e.end, e.start, e.end, new U(a, 0, 0), n.length, !0));
8921
+ t.step(new Be(e.start - (r ? 2 : 0), e.end, e.start, e.end, new U(a, 0, 0), n.length, !0));
8922
8922
  let o = 0;
8923
8923
  for (let d = 0; d < n.length; d++)
8924
8924
  n[d].type == i && (o = d + 1);
@@ -8935,7 +8935,7 @@ function O3(t) {
8935
8935
  }
8936
8936
  function P3(t, e, n, r) {
8937
8937
  let i = t.tr, a = r.end, o = r.$to.end(r.depth);
8938
- a < o && (i.step(new Re(a - 1, o, a, o, new U(E.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new rs(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
8938
+ a < o && (i.step(new Be(a - 1, o, a, o, new U(E.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new rs(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
8939
8939
  const s = ji(r);
8940
8940
  if (s == null)
8941
8941
  return !1;
@@ -8954,7 +8954,7 @@ function R3(t, e, n) {
8954
8954
  if (!c.canReplace(d + (s ? 0 : 1), d + 1, o.content.append(f ? E.empty : E.from(i))))
8955
8955
  return !1;
8956
8956
  let u = a.pos, p = u + o.nodeSize;
8957
- return r.step(new Re(u - (s ? 1 : 0), p + (f ? 1 : 0), u + 1, p - 1, new U((s ? E.empty : E.from(i.copy(E.empty))).append(f ? E.empty : E.from(i.copy(E.empty))), s ? 0 : 1, f ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0;
8957
+ return r.step(new Be(u - (s ? 1 : 0), p + (f ? 1 : 0), u + 1, p - 1, new U((s ? E.empty : E.from(i.copy(E.empty))).append(f ? E.empty : E.from(i.copy(E.empty))), s ? 0 : 1, f ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0;
8958
8958
  }
8959
8959
  function B3(t) {
8960
8960
  return function(e, n) {
@@ -8969,7 +8969,7 @@ function B3(t) {
8969
8969
  return !1;
8970
8970
  if (n) {
8971
8971
  let c = f.lastChild && f.lastChild.type == s.type, d = E.from(c ? t.create() : null), u = new U(E.from(t.create(null, E.from(s.type.create(null, d)))), c ? 3 : 1, 0), p = a.start, h = a.end;
8972
- n(e.tr.step(new Re(p - (c ? 3 : 1), h, p, h, u, 1, !0)).scrollIntoView());
8972
+ n(e.tr.step(new Be(p - (c ? 3 : 1), h, p, h, u, 1, !0)).scrollIntoView());
8973
8973
  }
8974
8974
  return !0;
8975
8975
  };
@@ -9089,7 +9089,7 @@ function V3(t, e, n) {
9089
9089
  }
9090
9090
  const rn = typeof navigator < "u" ? navigator : null, s0 = typeof document < "u" ? document : null, er = rn && rn.userAgent || "", nc = /Edge\/(\d+)/.exec(er), am = /MSIE \d/.exec(er), rc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(er), ht = !!(am || rc || nc), Yn = am ? document.documentMode : rc ? +rc[1] : nc ? +nc[1] : 0, Rt = !ht && /gecko\/(\d+)/i.test(er);
9091
9091
  Rt && +(/Firefox\/(\d+)/.exec(er) || [0, 0])[1];
9092
- const ic = !ht && /Chrome\/(\d+)/.exec(er), Pe = !!ic, om = ic ? +ic[1] : 0, Ke = !ht && !!rn && /Apple Computer/.test(rn.vendor), vi = Ke && (/Mobile\/\w+/.test(er) || !!rn && rn.maxTouchPoints > 2), Dt = vi || (rn ? /Mac/.test(rn.platform) : !1), sm = rn ? /Win/.test(rn.platform) : !1, Ln = /Android \d/.test(er), Ka = !!s0 && "webkitFontSmoothing" in s0.documentElement.style, _3 = Ka ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
9092
+ const ic = !ht && /Chrome\/(\d+)/.exec(er), Re = !!ic, om = ic ? +ic[1] : 0, Ke = !ht && !!rn && /Apple Computer/.test(rn.vendor), vi = Ke && (/Mobile\/\w+/.test(er) || !!rn && rn.maxTouchPoints > 2), Dt = vi || (rn ? /Mac/.test(rn.platform) : !1), sm = rn ? /Win/.test(rn.platform) : !1, Ln = /Android \d/.test(er), Ka = !!s0 && "webkitFontSmoothing" in s0.documentElement.style, _3 = Ka ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
9093
9093
  function G3(t) {
9094
9094
  let e = t.defaultView && t.defaultView.visualViewport;
9095
9095
  return e ? {
@@ -10313,7 +10313,7 @@ class dM {
10313
10313
  for (; e instanceof jr; )
10314
10314
  n = e, e = n.children[n.children.length - 1];
10315
10315
  (!e || // Empty textblock
10316
- !(e instanceof gf) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || Pe) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
10316
+ !(e instanceof gf) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || Re) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
10317
10317
  }
10318
10318
  addHackNode(e, n) {
10319
10319
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -10489,7 +10489,7 @@ function wm(t) {
10489
10489
  function kn(t, e = !1) {
10490
10490
  let n = t.state.selection;
10491
10491
  if (ym(t, n), !!wm(t)) {
10492
- if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Pe) {
10492
+ if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Re) {
10493
10493
  let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
10494
10494
  if (r.anchorNode && i.anchorNode && Tr(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
10495
10495
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
@@ -10505,7 +10505,7 @@ function kn(t, e = !1) {
10505
10505
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
10506
10506
  }
10507
10507
  }
10508
- const g0 = Ke || Pe && om < 63;
10508
+ const g0 = Ke || Re && om < 63;
10509
10509
  function b0(t, e) {
10510
10510
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, a = r ? n.childNodes[r - 1] : null;
10511
10511
  if (Ke && i && i.contentEditable == "false")
@@ -10733,7 +10733,7 @@ function fc(t, e, n) {
10733
10733
  }
10734
10734
  function x0(t, e) {
10735
10735
  let n = t.state.doc.resolve(e);
10736
- if (!(Pe || sm) && n.parent.inlineContent) {
10736
+ if (!(Re || sm) && n.parent.inlineContent) {
10737
10737
  let i = t.coordsAtPos(e);
10738
10738
  if (e > n.start()) {
10739
10739
  let a = t.coordsAtPos(e - 1), o = (a.top + a.bottom) / 2;
@@ -10988,7 +10988,7 @@ function jM(t) {
10988
10988
  return n;
10989
10989
  }
10990
10990
  function DM(t) {
10991
- let e = t.querySelectorAll(Pe ? "span:not([class]):not([style])" : "span.Apple-converted-space");
10991
+ let e = t.querySelectorAll(Re ? "span:not([class]):not([style])" : "span.Apple-converted-space");
10992
10992
  for (let n = 0; n < e.length; n++) {
10993
10993
  let r = e[n];
10994
10994
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
@@ -11063,7 +11063,7 @@ function BM(t, e) {
11063
11063
  }
11064
11064
  ft.keydown = (t, e) => {
11065
11065
  let n = e;
11066
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !jm(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ln && Pe && n.keyCode == 13)))
11066
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !jm(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ln && Re && n.keyCode == 13)))
11067
11067
  if (n.keyCode != 229 && t.domObserver.forceFlush(), vi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
11068
11068
  let r = Date.now();
11069
11069
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -11207,7 +11207,7 @@ class _M {
11207
11207
  // (hidden) cursor is doesn't change the selection, and
11208
11208
  // thus doesn't get a reaction from ProseMirror. This
11209
11209
  // works around that.
11210
- Pe && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ci(this.view, ee.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Fn(this.view, "pointer");
11210
+ Re && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ci(this.view, ee.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Fn(this.view, "pointer");
11211
11211
  }
11212
11212
  move(e) {
11213
11213
  this.updateAllowDefault(e), Fn(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -11231,7 +11231,7 @@ ft.compositionstart = ft.compositionupdate = (t) => {
11231
11231
  if (!t.composing) {
11232
11232
  t.domObserver.flush();
11233
11233
  let { state: e } = t, n = e.selection.$to;
11234
- if (e.selection instanceof Z && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || Pe && sm && WM(t)))
11234
+ if (e.selection instanceof Z && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || Re && sm && WM(t)))
11235
11235
  t.markCursor = t.state.storedMarks || n.marks(), fs(t, !0), t.markCursor = null;
11236
11236
  else if (fs(t, !e.selection.empty), Rt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
11237
11237
  let r = t.domSelectionRange();
@@ -11378,7 +11378,7 @@ st.dragstart = (t, e) => {
11378
11378
  }
11379
11379
  }
11380
11380
  let s = (o || t.state.selection).content(), { dom: f, text: c, slice: d } = bd(t, s);
11381
- (!n.dataTransfer.files.length || !Pe || om > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Ea ? "Text" : "text/html", f.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Ea || n.dataTransfer.setData("text/plain", c), t.dragging = new zm(d, Om(t, n), o);
11381
+ (!n.dataTransfer.files.length || !Re || om > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Ea ? "Text" : "text/html", f.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Ea || n.dataTransfer.setData("text/plain", c), t.dragging = new zm(d, Om(t, n), o);
11382
11382
  };
11383
11383
  st.dragend = (t) => {
11384
11384
  let e = t.dragging;
@@ -11441,7 +11441,7 @@ st.blur = (t, e) => {
11441
11441
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
11442
11442
  };
11443
11443
  st.beforeinput = (t, e) => {
11444
- if (Pe && Ln && e.inputType == "deleteContentBackward") {
11444
+ if (Re && Ln && e.inputType == "deleteContentBackward") {
11445
11445
  t.domObserver.flushSoon();
11446
11446
  let { domChangeCount: r } = t.input;
11447
11447
  setTimeout(() => {
@@ -11596,7 +11596,7 @@ class Ze {
11596
11596
  }
11597
11597
  }
11598
11598
  const Xr = [], xr = {};
11599
- class ve {
11599
+ class be {
11600
11600
  /**
11601
11601
  @internal
11602
11602
  */
@@ -11650,7 +11650,7 @@ class ve {
11650
11650
  let f = this.local[s].map(e, r, i);
11651
11651
  f && f.type.valid(n, f) ? (o || (o = [])).push(f) : a.onRemove && a.onRemove(this.local[s].spec);
11652
11652
  }
11653
- return this.children.length ? nx(this.children, o || [], e, n, r, i, a) : o ? new ve(o.sort(Cr), Xr) : We;
11653
+ return this.children.length ? nx(this.children, o || [], e, n, r, i, a) : o ? new be(o.sort(Cr), Xr) : We;
11654
11654
  }
11655
11655
  /**
11656
11656
  Add the given array of decorations to the ones in the set,
@@ -11659,7 +11659,7 @@ class ve {
11659
11659
  structure.
11660
11660
  */
11661
11661
  add(e, n) {
11662
- return n.length ? this == We ? ve.create(e, n) : this.addInner(e, n, 0) : this;
11662
+ return n.length ? this == We ? be.create(e, n) : this.addInner(e, n, 0) : this;
11663
11663
  }
11664
11664
  addInner(e, n, r) {
11665
11665
  let i, a = 0;
@@ -11674,7 +11674,7 @@ class ve {
11674
11674
  let o = Pm(a ? Bm(n) : n, -r);
11675
11675
  for (let s = 0; s < o.length; s++)
11676
11676
  o[s].type.valid(e, o[s]) || o.splice(s--, 1);
11677
- return new ve(o.length ? this.local.concat(o).sort(Cr) : this.local, i || this.children);
11677
+ return new be(o.length ? this.local.concat(o).sort(Cr) : this.local, i || this.children);
11678
11678
  }
11679
11679
  /**
11680
11680
  Create a new set that contains the decorations in this set, minus
@@ -11701,13 +11701,13 @@ class ve {
11701
11701
  for (let s = 0; s < i.length; s++)
11702
11702
  i[s].eq(o, n) && (i == this.local && (i = this.local.slice()), i.splice(s--, 1));
11703
11703
  }
11704
- return r == this.children && i == this.local ? this : i.length || r.length ? new ve(i, r) : We;
11704
+ return r == this.children && i == this.local ? this : i.length || r.length ? new be(i, r) : We;
11705
11705
  }
11706
11706
  forChild(e, n) {
11707
11707
  if (this == We)
11708
11708
  return this;
11709
11709
  if (n.isLeaf)
11710
- return ve.empty;
11710
+ return be.empty;
11711
11711
  let r, i;
11712
11712
  for (let s = 0; s < this.children.length; s += 3)
11713
11713
  if (this.children[s] >= e) {
@@ -11723,7 +11723,7 @@ class ve {
11723
11723
  }
11724
11724
  }
11725
11725
  if (i) {
11726
- let s = new ve(i.sort(Cr), Xr);
11726
+ let s = new be(i.sort(Cr), Xr);
11727
11727
  return r ? new Rn([s, r]) : s;
11728
11728
  }
11729
11729
  return r || We;
@@ -11734,7 +11734,7 @@ class ve {
11734
11734
  eq(e) {
11735
11735
  if (this == e)
11736
11736
  return !0;
11737
- if (!(e instanceof ve) || this.local.length != e.local.length || this.children.length != e.children.length)
11737
+ if (!(e instanceof be) || this.local.length != e.local.length || this.children.length != e.children.length)
11738
11738
  return !1;
11739
11739
  for (let n = 0; n < this.local.length; n++)
11740
11740
  if (!this.local[n].eq(e.local[n]))
@@ -11767,9 +11767,9 @@ class ve {
11767
11767
  e(this);
11768
11768
  }
11769
11769
  }
11770
- ve.empty = new ve([], []);
11771
- ve.removeOverlap = xd;
11772
- const We = ve.empty;
11770
+ be.empty = new be([], []);
11771
+ be.removeOverlap = xd;
11772
+ const We = be.empty;
11773
11773
  class Rn {
11774
11774
  constructor(e) {
11775
11775
  this.members = e;
@@ -11780,7 +11780,7 @@ class Rn {
11780
11780
  }
11781
11781
  forChild(e, n) {
11782
11782
  if (n.isLeaf)
11783
- return ve.empty;
11783
+ return be.empty;
11784
11784
  let r = [];
11785
11785
  for (let i = 0; i < this.members.length; i++) {
11786
11786
  let a = this.members[i].forChild(e, n);
@@ -11820,7 +11820,7 @@ class Rn {
11820
11820
  case 1:
11821
11821
  return e[0];
11822
11822
  default:
11823
- return new Rn(e.every((n) => n instanceof ve) ? e : e.reduce((n, r) => n.concat(r instanceof ve ? r : r.members), []));
11823
+ return new Rn(e.every((n) => n instanceof be) ? e : e.reduce((n, r) => n.concat(r instanceof be ? r : r.members), []));
11824
11824
  }
11825
11825
  }
11826
11826
  forEachSet(e) {
@@ -11875,7 +11875,7 @@ function nx(t, e, n, r, i, a, o) {
11875
11875
  s.splice(p, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
11876
11876
  }
11877
11877
  }
11878
- return new ve(e.sort(Cr), s);
11878
+ return new be(e.sort(Cr), s);
11879
11879
  }
11880
11880
  function Pm(t, e) {
11881
11881
  if (!e || !t.length)
@@ -11927,7 +11927,7 @@ function cs(t, e, n, r) {
11927
11927
  let o = Pm(a ? Bm(t) : t, -n).sort(Cr);
11928
11928
  for (let s = 0; s < o.length; s++)
11929
11929
  o[s].type.valid(e, o[s]) || (r.onRemove && r.onRemove(o[s].spec), o.splice(s--, 1));
11930
- return o.length || i.length ? new ve(o, i) : We;
11930
+ return o.length || i.length ? new be(o, i) : We;
11931
11931
  }
11932
11932
  function Cr(t, e) {
11933
11933
  return t.from - e.from || t.to - e.to;
@@ -11960,7 +11960,7 @@ function pl(t) {
11960
11960
  return t.someProp("decorations", (n) => {
11961
11961
  let r = n(t.state);
11962
11962
  r && r != We && e.push(r);
11963
- }), t.cursorWrapper && e.push(ve.create(t.state.doc, [t.cursorWrapper.deco])), Rn.from(e);
11963
+ }), t.cursorWrapper && e.push(be.create(t.state.doc, [t.cursorWrapper.deco])), Rn.from(e);
11964
11964
  }
11965
11965
  const ix = {
11966
11966
  childList: !0,
@@ -12089,7 +12089,7 @@ class sx {
12089
12089
  h && h.nodeName == "LI" && (!u || cx(e, u) != h) && p.remove();
12090
12090
  }
12091
12091
  }
12092
- } else if ((Pe || Ke) && f.some((d) => d.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
12092
+ } else if ((Re || Ke) && f.some((d) => d.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
12093
12093
  for (let d of f)
12094
12094
  if (d.nodeName == "BR" && d.parentNode) {
12095
12095
  let u = d.nextSibling;
@@ -12166,7 +12166,7 @@ function cx(t, e) {
12166
12166
  }
12167
12167
  function dx(t, e, n) {
12168
12168
  let { node: r, fromOffset: i, toOffset: a, from: o, to: s } = t.docView.parseRange(e, n), f = t.domSelectionRange(), c, d = f.anchorNode;
12169
- if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: f.anchorOffset }], mf(f) || c.push({ node: f.focusNode, offset: f.focusOffset })), Pe && t.input.lastKeyCode === 8)
12169
+ if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: f.anchorOffset }], mf(f) || c.push({ node: f.focusNode, offset: f.focusOffset })), Re && t.input.lastKeyCode === 8)
12170
12170
  for (let v = a; v > i; v--) {
12171
12171
  let w = r.childNodes[v - 1], x = w.pmViewDesc;
12172
12172
  if (w.nodeName == "BR" && !x) {
@@ -12213,7 +12213,7 @@ function px(t, e, n, r, i) {
12213
12213
  if (t.input.compositionPendingChanges = 0, e < 0) {
12214
12214
  let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, S = md(t, k);
12215
12215
  if (S && !t.state.selection.eq(S)) {
12216
- if (Pe && Ln && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (D) => D(t, dr(13, "Enter"))))
12216
+ if (Re && Ln && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (D) => D(t, dr(13, "Enter"))))
12217
12217
  return;
12218
12218
  let I = t.state.tr.setSelection(S);
12219
12219
  k == "pointer" ? I.setMeta("pointer", !0) : k == "key" && I.scrollIntoView(), a && I.setMeta("composition", a), t.dispatch(I);
@@ -12249,10 +12249,10 @@ function px(t, e, n, r, i) {
12249
12249
  return;
12250
12250
  }
12251
12251
  if (t.state.selection.anchor > m.start && gx(d, m.start, m.endA, g, v) && t.someProp("handleKeyDown", (k) => k(t, dr(8, "Backspace")))) {
12252
- Ln && Pe && t.domObserver.suppressSelectionUpdates();
12252
+ Ln && Re && t.domObserver.suppressSelectionUpdates();
12253
12253
  return;
12254
12254
  }
12255
- Pe && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), Ln && !x && g.start() != v.start() && v.parentOffset == 0 && g.depth == v.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, v = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
12255
+ Re && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), Ln && !x && g.start() != v.start() && v.parentOffset == 0 && g.depth == v.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, v = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
12256
12256
  t.someProp("handleKeyDown", function(k) {
12257
12257
  return k(t, dr(13, "Enter"));
12258
12258
  });
@@ -12261,7 +12261,7 @@ function px(t, e, n, r, i) {
12261
12261
  let S = k || t.state.tr.replace(L, y, c.doc.slice(m.start - c.from, m.endB - c.from));
12262
12262
  if (c.sel) {
12263
12263
  let I = E0(t, S.doc, c.sel);
12264
- I && !(Pe && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == L || I.head == S.mapping.map(y) - 1) || ht && I.empty && I.head == L) && S.setSelection(I);
12264
+ I && !(Re && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == L || I.head == S.mapping.map(y) - 1) || ht && I.empty && I.head == L) && S.setSelection(I);
12265
12265
  }
12266
12266
  return a && S.setMeta("composition", a), S.scrollIntoView();
12267
12267
  }, C;
@@ -12434,9 +12434,9 @@ class Hm {
12434
12434
  let p = d == "preserve" && o && this.dom.style.overflowAnchor == null && $3(this);
12435
12435
  if (o) {
12436
12436
  this.domObserver.stop();
12437
- let h = u && (ht || Pe) && !this.composing && !i.selection.empty && !e.selection.empty && vx(i.selection, e.selection);
12437
+ let h = u && (ht || Re) && !this.composing && !i.selection.empty && !e.selection.empty && vx(i.selection, e.selection);
12438
12438
  if (u) {
12439
- let m = Pe ? this.trackWrites = this.domSelectionRange().focusNode : null;
12439
+ let m = Re ? this.trackWrites = this.domSelectionRange().focusNode : null;
12440
12440
  this.composing && (this.input.compositionNode = $M(this)), (a || !this.docView.update(e.doc, c, f, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = p0(e.doc, c, f, this.dom, this)), m && !this.trackWrites && (h = !0);
12441
12441
  }
12442
12442
  h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && wM(this)) ? kn(this, h) : (ym(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
@@ -12858,7 +12858,7 @@ function bl(t, e, n = !0) {
12858
12858
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
12859
12859
  }
12860
12860
  function Sx(t) {
12861
- return new Me({ props: { handleKeyDown: Um(t) } });
12861
+ return new ye({ props: { handleKeyDown: Um(t) } });
12862
12862
  }
12863
12863
  function Um(t) {
12864
12864
  let e = kx(t);
@@ -13273,7 +13273,7 @@ function Gx(t, e, n) {
13273
13273
  if (r < e)
13274
13274
  return;
13275
13275
  const i = t.steps[r];
13276
- if (!(i instanceof Oe || i instanceof Re))
13276
+ if (!(i instanceof Pe || i instanceof Be))
13277
13277
  return;
13278
13278
  const a = t.mapping.maps[r];
13279
13279
  let o = 0;
@@ -14437,7 +14437,7 @@ function No(t) {
14437
14437
  }), d;
14438
14438
  }
14439
14439
  function o6(t) {
14440
- const { editor: e, rules: n } = t, r = new Me({
14440
+ const { editor: e, rules: n } = t, r = new ye({
14441
14441
  state: {
14442
14442
  init() {
14443
14443
  return null;
@@ -14682,7 +14682,7 @@ function h6(t) {
14682
14682
  return o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
14683
14683
  }
14684
14684
  };
14685
- return n.map((d) => new Me({
14685
+ return n.map((d) => new ye({
14686
14686
  // we register a global drag handler to track the current drag source element
14687
14687
  view(u) {
14688
14688
  const p = (m) => {
@@ -14976,7 +14976,7 @@ var ke = class sg extends Dd {
14976
14976
  },
14977
14977
  addProseMirrorPlugins() {
14978
14978
  return [
14979
- new Me({
14979
+ new ye({
14980
14980
  key: new Se("clipboardTextSerializer"),
14981
14981
  props: {
14982
14982
  clipboardTextSerializer: () => {
@@ -15057,7 +15057,7 @@ var ke = class sg extends Dd {
15057
15057
  name: "drop",
15058
15058
  addProseMirrorPlugins() {
15059
15059
  return [
15060
- new Me({
15060
+ new ye({
15061
15061
  key: new Se("tiptapDrop"),
15062
15062
  props: {
15063
15063
  handleDrop: (t, e, n, r) => {
@@ -15076,7 +15076,7 @@ var ke = class sg extends Dd {
15076
15076
  name: "editable",
15077
15077
  addProseMirrorPlugins() {
15078
15078
  return [
15079
- new Me({
15079
+ new ye({
15080
15080
  key: new Se("editable"),
15081
15081
  props: {
15082
15082
  editable: () => this.editor.options.editable
@@ -15089,7 +15089,7 @@ var ke = class sg extends Dd {
15089
15089
  addProseMirrorPlugins() {
15090
15090
  const { editor: t } = this;
15091
15091
  return [
15092
- new Me({
15092
+ new ye({
15093
15093
  key: hg,
15094
15094
  props: {
15095
15095
  handleDOMEvents: {
@@ -15162,7 +15162,7 @@ var ke = class sg extends Dd {
15162
15162
  // to a paragraph if necessary.
15163
15163
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
15164
15164
  // with many other commands.
15165
- new Me({
15165
+ new ye({
15166
15166
  key: new Se("clearDocument"),
15167
15167
  appendTransaction: (t, e, n) => {
15168
15168
  if (t.some((g) => g.getMeta("composition")))
@@ -15190,7 +15190,7 @@ var ke = class sg extends Dd {
15190
15190
  name: "paste",
15191
15191
  addProseMirrorPlugins() {
15192
15192
  return [
15193
- new Me({
15193
+ new ye({
15194
15194
  key: new Se("tiptapPaste"),
15195
15195
  props: {
15196
15196
  handlePaste: (t, e, n) => {
@@ -15208,7 +15208,7 @@ var ke = class sg extends Dd {
15208
15208
  name: "tabindex",
15209
15209
  addProseMirrorPlugins() {
15210
15210
  return [
15211
- new Me({
15211
+ new ye({
15212
15212
  key: new Se("tabindex"),
15213
15213
  props: {
15214
15214
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
@@ -15247,7 +15247,7 @@ var ke = class sg extends Dd {
15247
15247
  },
15248
15248
  addProseMirrorPlugins() {
15249
15249
  return [
15250
- new Me({
15250
+ new ye({
15251
15251
  key: new Se("textDirection"),
15252
15252
  props: {
15253
15253
  attributes: () => {
@@ -17271,7 +17271,7 @@ var th = process.env.NODE_ENV !== "production", mc = typeof window > "u", wL = m
17271
17271
  }
17272
17272
  };
17273
17273
  function Ng(t = {}, e = []) {
17274
- const n = Ae(t);
17274
+ const n = ze(t);
17275
17275
  n.current = t;
17276
17276
  const [r] = ne(() => new yL(n)), i = tp(
17277
17277
  r.subscribe,
@@ -17762,7 +17762,7 @@ ${n}
17762
17762
  return [
17763
17763
  // this plugin creates a code block for pasted content from VS Code
17764
17764
  // we can also detect the copied code language
17765
- new Me({
17765
+ new ye({
17766
17766
  key: new Se("codeBlockVSCodeHandler"),
17767
17767
  props: {
17768
17768
  handlePaste: (t, e) => {
@@ -18717,7 +18717,7 @@ function gN(t) {
18717
18717
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
18718
18718
  }
18719
18719
  function bN(t) {
18720
- return new Me({
18720
+ return new ye({
18721
18721
  key: new Se("autolink"),
18722
18722
  appendTransaction: (e, n, r) => {
18723
18723
  const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), a = e.some((c) => c.getMeta("preventAutolink"));
@@ -18770,7 +18770,7 @@ function bN(t) {
18770
18770
  });
18771
18771
  }
18772
18772
  function vN(t) {
18773
- return new Me({
18773
+ return new ye({
18774
18774
  key: new Se("handleClickLink"),
18775
18775
  props: {
18776
18776
  handleClick: (e, n, r) => {
@@ -18800,7 +18800,7 @@ function vN(t) {
18800
18800
  });
18801
18801
  }
18802
18802
  function wN(t) {
18803
- return new Me({
18803
+ return new ye({
18804
18804
  key: new Se("handlePasteLink"),
18805
18805
  props: {
18806
18806
  handlePaste: (e, n, r) => {
@@ -19873,7 +19873,7 @@ var AN = lt.create({
19873
19873
  }
19874
19874
  }), BN = _g;
19875
19875
  function HN(t = {}) {
19876
- return new Me({
19876
+ return new ye({
19877
19877
  view(e) {
19878
19878
  return new UN(e, t);
19879
19879
  }
@@ -20091,7 +20091,7 @@ function JN(t) {
20091
20091
  return !0;
20092
20092
  }
20093
20093
  function YN() {
20094
- return new Me({
20094
+ return new ye({
20095
20095
  props: {
20096
20096
  decorations: GN,
20097
20097
  createSelectionBetween(t, e, n) {
@@ -20147,38 +20147,38 @@ function GN(t) {
20147
20147
  if (!(t.selection instanceof Ne))
20148
20148
  return null;
20149
20149
  let e = document.createElement("div");
20150
- return e.className = "ProseMirror-gapcursor", ve.create(t.doc, [Ze.widget(t.selection.head, e, { key: "gapcursor" })]);
20150
+ return e.className = "ProseMirror-gapcursor", be.create(t.doc, [Ze.widget(t.selection.head, e, { key: "gapcursor" })]);
20151
20151
  }
20152
- var Js = 200, Be = function() {
20152
+ var Js = 200, He = function() {
20153
20153
  };
20154
- Be.prototype.append = function(e) {
20155
- return e.length ? (e = Be.from(e), !this.length && e || e.length < Js && this.leafAppend(e) || this.length < Js && e.leafPrepend(this) || this.appendInner(e)) : this;
20154
+ He.prototype.append = function(e) {
20155
+ return e.length ? (e = He.from(e), !this.length && e || e.length < Js && this.leafAppend(e) || this.length < Js && e.leafPrepend(this) || this.appendInner(e)) : this;
20156
20156
  };
20157
- Be.prototype.prepend = function(e) {
20158
- return e.length ? Be.from(e).append(this) : this;
20157
+ He.prototype.prepend = function(e) {
20158
+ return e.length ? He.from(e).append(this) : this;
20159
20159
  };
20160
- Be.prototype.appendInner = function(e) {
20160
+ He.prototype.appendInner = function(e) {
20161
20161
  return new WN(this, e);
20162
20162
  };
20163
- Be.prototype.slice = function(e, n) {
20164
- return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? Be.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
20163
+ He.prototype.slice = function(e, n) {
20164
+ return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? He.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
20165
20165
  };
20166
- Be.prototype.get = function(e) {
20166
+ He.prototype.get = function(e) {
20167
20167
  if (!(e < 0 || e >= this.length))
20168
20168
  return this.getInner(e);
20169
20169
  };
20170
- Be.prototype.forEach = function(e, n, r) {
20170
+ He.prototype.forEach = function(e, n, r) {
20171
20171
  n === void 0 && (n = 0), r === void 0 && (r = this.length), n <= r ? this.forEachInner(e, n, r, 0) : this.forEachInvertedInner(e, n, r, 0);
20172
20172
  };
20173
- Be.prototype.map = function(e, n, r) {
20173
+ He.prototype.map = function(e, n, r) {
20174
20174
  n === void 0 && (n = 0), r === void 0 && (r = this.length);
20175
20175
  var i = [];
20176
20176
  return this.forEach(function(a, o) {
20177
20177
  return i.push(e(a, o));
20178
20178
  }, n, r), i;
20179
20179
  };
20180
- Be.from = function(e) {
20181
- return e instanceof Be ? e : e && e.length ? new Wg(e) : Be.empty;
20180
+ He.from = function(e) {
20181
+ return e instanceof He ? e : e && e.length ? new Wg(e) : He.empty;
20182
20182
  };
20183
20183
  var Wg = /* @__PURE__ */ (function(t) {
20184
20184
  function e(r) {
@@ -20211,8 +20211,8 @@ var Wg = /* @__PURE__ */ (function(t) {
20211
20211
  }, n.depth.get = function() {
20212
20212
  return 0;
20213
20213
  }, Object.defineProperties(e.prototype, n), e;
20214
- })(Be);
20215
- Be.empty = new Wg([]);
20214
+ })(He);
20215
+ He.empty = new Wg([]);
20216
20216
  var WN = /* @__PURE__ */ (function(t) {
20217
20217
  function e(n, r) {
20218
20218
  t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
@@ -20245,7 +20245,7 @@ var WN = /* @__PURE__ */ (function(t) {
20245
20245
  }, e.prototype.appendInner = function(r) {
20246
20246
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
20247
20247
  }, e;
20248
- })(Be);
20248
+ })(He);
20249
20249
  const $N = 500;
20250
20250
  class _t {
20251
20251
  constructor(e, n) {
@@ -20356,10 +20356,10 @@ class _t {
20356
20356
  (p = i.length && i[h].merge(u)) ? i[h] = p : i.push(u);
20357
20357
  }
20358
20358
  } else o.map && r--;
20359
- }, this.items.length, 0), new _t(Be.from(i.reverse()), a);
20359
+ }, this.items.length, 0), new _t(He.from(i.reverse()), a);
20360
20360
  }
20361
20361
  }
20362
- _t.empty = new _t(Be.empty, 0);
20362
+ _t.empty = new _t(He.empty, 0);
20363
20363
  function ZN(t, e) {
20364
20364
  let n;
20365
20365
  return t.forEach((r, i) => {
@@ -20452,7 +20452,7 @@ function nk(t = {}) {
20452
20452
  return t = {
20453
20453
  depth: t.depth || 100,
20454
20454
  newGroupDelay: t.newGroupDelay || 500
20455
- }, new Me({
20455
+ }, new ye({
20456
20456
  key: Lr,
20457
20457
  state: {
20458
20458
  init() {
@@ -20518,7 +20518,7 @@ ke.create({
20518
20518
  addProseMirrorPlugins() {
20519
20519
  let t = !1;
20520
20520
  return [
20521
- new Me({
20521
+ new ye({
20522
20522
  key: new Se("characterCount"),
20523
20523
  appendTransaction: (e, n, r) => {
20524
20524
  if (t)
@@ -20578,13 +20578,13 @@ ke.create({
20578
20578
  },
20579
20579
  addProseMirrorPlugins() {
20580
20580
  return [
20581
- new Me({
20581
+ new ye({
20582
20582
  key: new Se("focus"),
20583
20583
  props: {
20584
20584
  decorations: ({ doc: t, selection: e }) => {
20585
20585
  const { isEditable: n, isFocused: r } = this.editor, { anchor: i } = e, a = [];
20586
20586
  if (!n || !r)
20587
- return ve.create(t, []);
20587
+ return be.create(t, []);
20588
20588
  let o = 0;
20589
20589
  this.options.mode === "deepest" && t.descendants((f, c) => {
20590
20590
  if (f.isText)
@@ -20604,7 +20604,7 @@ ke.create({
20604
20604
  class: this.options.className
20605
20605
  })
20606
20606
  );
20607
- }), ve.create(t, a);
20607
+ }), be.create(t, a);
20608
20608
  }
20609
20609
  }
20610
20610
  })
@@ -20641,7 +20641,7 @@ var ik = ke.create({
20641
20641
  },
20642
20642
  addProseMirrorPlugins() {
20643
20643
  return [
20644
- new Me({
20644
+ new ye({
20645
20645
  key: new Se("placeholder"),
20646
20646
  props: {
20647
20647
  decorations: ({ doc: t, selection: e }) => {
@@ -20666,7 +20666,7 @@ var ik = ke.create({
20666
20666
  i.push(u);
20667
20667
  }
20668
20668
  return this.options.includeChildren;
20669
- }), ve.create(t, i);
20669
+ }), be.create(t, i);
20670
20670
  }
20671
20671
  }
20672
20672
  })
@@ -20683,11 +20683,11 @@ ke.create({
20683
20683
  addProseMirrorPlugins() {
20684
20684
  const { editor: t, options: e } = this;
20685
20685
  return [
20686
- new Me({
20686
+ new ye({
20687
20687
  key: new Se("selection"),
20688
20688
  props: {
20689
20689
  decorations(n) {
20690
- return n.selection.empty || t.isFocused || !t.isEditable || ng(n.selection) || t.view.dragging ? null : ve.create(n.doc, [
20690
+ return n.selection.empty || t.isFocused || !t.isEditable || ng(n.selection) || t.view.dragging ? null : be.create(n.doc, [
20691
20691
  Ze.inline(n.selection.from, n.selection.to, {
20692
20692
  class: e.className
20693
20693
  })
@@ -20713,7 +20713,7 @@ var ok = ke.create({
20713
20713
  var t;
20714
20714
  const e = new Se(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));
20715
20715
  return [
20716
- new Me({
20716
+ new ye({
20717
20717
  key: e,
20718
20718
  appendTransaction: (i, a, o) => {
20719
20719
  const { doc: s, tr: f, schema: c } = o, d = e.getState(o), u = s.content.size, p = c.nodes[n];
@@ -20966,16 +20966,16 @@ function hk({
20966
20966
  const I = C.state.tr.setMeta(k, { exit: !0 });
20967
20967
  C.dispatch(I);
20968
20968
  }
20969
- const N = new Me({
20969
+ const N = new ye({
20970
20970
  key: t,
20971
20971
  view() {
20972
20972
  return {
20973
20973
  update: async (C, k) => {
20974
20974
  var S, I, D, H, J, P, F;
20975
- const A = (S = this.key) == null ? void 0 : S.getState(k), _ = (I = this.key) == null ? void 0 : I.getState(C.state), q = A.active && _.active && A.range.from !== _.range.from, fe = !A.active && _.active, Ee = A.active && !_.active, G = !fe && !Ee && A.query !== _.query, be = fe || q && G, he = G || q, He = Ee || q && G;
20976
- if (!be && !he && !He)
20975
+ const A = (S = this.key) == null ? void 0 : S.getState(k), _ = (I = this.key) == null ? void 0 : I.getState(C.state), q = A.active && _.active && A.range.from !== _.range.from, fe = !A.active && _.active, Ee = A.active && !_.active, G = !fe && !Ee && A.query !== _.query, Ce = fe || q && G, he = G || q, Ae = Ee || q && G;
20976
+ if (!Ce && !he && !Ae)
20977
20977
  return;
20978
- const R = He && !be ? A : _, W = C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`);
20978
+ const R = Ae && !Ce ? A : _, W = C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`);
20979
20979
  v = {
20980
20980
  editor: e,
20981
20981
  range: R.range,
@@ -20989,10 +20989,10 @@ function hk({
20989
20989
  }),
20990
20990
  decorationNode: W,
20991
20991
  clientRect: L(C, W)
20992
- }, be && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, v)), he && ((H = w == null ? void 0 : w.onBeforeUpdate) == null || H.call(w, v)), (he || be) && (v.items = await p({
20992
+ }, Ce && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, v)), he && ((H = w == null ? void 0 : w.onBeforeUpdate) == null || H.call(w, v)), (he || Ce) && (v.items = await p({
20993
20993
  editor: e,
20994
20994
  query: R.query
20995
- })), He && ((J = w == null ? void 0 : w.onExit) == null || J.call(w, v)), he && ((P = w == null ? void 0 : w.onUpdate) == null || P.call(w, v)), be && ((F = w == null ? void 0 : w.onStart) == null || F.call(w, v));
20995
+ })), Ae && ((J = w == null ? void 0 : w.onExit) == null || J.call(w, v)), he && ((P = w == null ? void 0 : w.onUpdate) == null || P.call(w, v)), Ce && ((F = w == null ? void 0 : w.onStart) == null || F.call(w, v));
20996
20996
  },
20997
20997
  destroy: () => {
20998
20998
  var C;
@@ -21074,7 +21074,7 @@ function hk({
21074
21074
  if (!k)
21075
21075
  return null;
21076
21076
  const H = !(D != null && D.length), J = [f];
21077
- return H && J.push(d), ve.create(C.doc, [
21077
+ return H && J.push(d), be.create(C.doc, [
21078
21078
  Ze.inline(S.from, S.to, {
21079
21079
  nodeName: s,
21080
21080
  class: J.join(" "),
@@ -21824,7 +21824,7 @@ function Xk(t) {
21824
21824
  k.set(H, Ee);
21825
21825
  }
21826
21826
  if (S)
21827
- for (var G = m ? 3 : 1, be = function(W) {
21827
+ for (var G = m ? 3 : 1, Ce = function(W) {
21828
21828
  var se = y.find(function(tt) {
21829
21829
  var Nt = k.get(tt);
21830
21830
  if (Nt)
@@ -21835,8 +21835,8 @@ function Xk(t) {
21835
21835
  if (se)
21836
21836
  return I = se, "break";
21837
21837
  }, he = G; he > 0; he--) {
21838
- var He = be(he);
21839
- if (He === "break") break;
21838
+ var Ae = Ce(he);
21839
+ if (Ae === "break") break;
21840
21840
  }
21841
21841
  e.placement !== I && (e.modifiersData[r]._skip = !0, e.placement = I, e.reset = !0);
21842
21842
  }
@@ -21953,10 +21953,10 @@ function l9(t) {
21953
21953
  };
21954
21954
  if (C) {
21955
21955
  if (a) {
21956
- var P, F = y === "y" ? pt : mt, A = y === "y" ? Ut : Ft, _ = y === "y" ? "height" : "width", q = C[y], fe = q + v[F], Ee = q - v[A], G = h ? -S[_] / 2 : 0, be = x === xi ? k[_] : S[_], he = x === xi ? -S[_] : -k[_], He = e.elements.arrow, R = h && He ? Wd(He) : {
21956
+ var P, F = y === "y" ? pt : mt, A = y === "y" ? Ut : Ft, _ = y === "y" ? "height" : "width", q = C[y], fe = q + v[F], Ee = q - v[A], G = h ? -S[_] / 2 : 0, Ce = x === xi ? k[_] : S[_], he = x === xi ? -S[_] : -k[_], Ae = e.elements.arrow, R = h && Ae ? Wd(Ae) : {
21957
21957
  width: 0,
21958
21958
  height: 0
21959
- }, W = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o2(), se = W[F], tt = W[A], Nt = ma(0, k[_], R[_]), ln = L ? k[_] / 2 - G - Nt - se - D.mainAxis : be - Nt - se - D.mainAxis, ze = L ? -k[_] / 2 + G + Nt + tt + D.mainAxis : he + Nt + tt + D.mainAxis, Yt = e.elements.arrow && no(e.elements.arrow), ar = Yt ? y === "y" ? Yt.clientTop || 0 : Yt.clientLeft || 0 : 0, or = (P = H == null ? void 0 : H[y]) != null ? P : 0, fo = q + ln - or - ar, lo = q + ze - or, Pi = ma(h ? Ys(fe, fo) : fe, q, h ? Nr(Ee, lo) : Ee);
21959
+ }, W = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o2(), se = W[F], tt = W[A], Nt = ma(0, k[_], R[_]), ln = L ? k[_] / 2 - G - Nt - se - D.mainAxis : Ce - Nt - se - D.mainAxis, Oe = L ? -k[_] / 2 + G + Nt + tt + D.mainAxis : he + Nt + tt + D.mainAxis, Yt = e.elements.arrow && no(e.elements.arrow), ar = Yt ? y === "y" ? Yt.clientTop || 0 : Yt.clientLeft || 0 : 0, or = (P = H == null ? void 0 : H[y]) != null ? P : 0, fo = q + ln - or - ar, lo = q + Oe - or, Pi = ma(h ? Ys(fe, fo) : fe, q, h ? Nr(Ee, lo) : Ee);
21960
21960
  C[y] = Pi, J[y] = Pi - q;
21961
21961
  }
21962
21962
  if (s) {
@@ -22630,7 +22630,7 @@ function $9(t, e) {
22630
22630
  });
22631
22631
  }
22632
22632
  }
22633
- function be() {
22633
+ function Ce() {
22634
22634
  F().removeEventListener("mousemove", m), zo = zo.filter(function(j) {
22635
22635
  return j !== m;
22636
22636
  });
@@ -22652,7 +22652,7 @@ function $9(t, e) {
22652
22652
  }
22653
22653
  }
22654
22654
  }
22655
- function He() {
22655
+ function Ae() {
22656
22656
  f = !0;
22657
22657
  }
22658
22658
  function R() {
@@ -22660,11 +22660,11 @@ function $9(t, e) {
22660
22660
  }
22661
22661
  function W() {
22662
22662
  var j = F();
22663
- j.addEventListener("mousedown", he, !0), j.addEventListener("touchend", he, cr), j.addEventListener("touchstart", R, cr), j.addEventListener("touchmove", He, cr);
22663
+ j.addEventListener("mousedown", he, !0), j.addEventListener("touchend", he, cr), j.addEventListener("touchstart", R, cr), j.addEventListener("touchmove", Ae, cr);
22664
22664
  }
22665
22665
  function se() {
22666
22666
  var j = F();
22667
- j.removeEventListener("mousedown", he, !0), j.removeEventListener("touchend", he, cr), j.removeEventListener("touchstart", R, cr), j.removeEventListener("touchmove", He, cr);
22667
+ j.removeEventListener("mousedown", he, !0), j.removeEventListener("touchend", he, cr), j.removeEventListener("touchstart", R, cr), j.removeEventListener("touchmove", Ae, cr);
22668
22668
  }
22669
22669
  function tt(j, Y) {
22670
22670
  ln(j, function() {
@@ -22683,7 +22683,7 @@ function $9(t, e) {
22683
22683
  return Y();
22684
22684
  El($, "remove", u), El($, "add", le), u = le;
22685
22685
  }
22686
- function ze(j, Y, $) {
22686
+ function Oe(j, Y, $) {
22687
22687
  $ === void 0 && ($ = !1);
22688
22688
  var le = ni(y.props.triggerTarget || t);
22689
22689
  le.forEach(function(ae) {
@@ -22696,21 +22696,21 @@ function $9(t, e) {
22696
22696
  });
22697
22697
  }
22698
22698
  function Yt() {
22699
- H() && (ze("touchstart", or, {
22699
+ H() && (Oe("touchstart", or, {
22700
22700
  passive: !0
22701
- }), ze("touchend", lo, {
22701
+ }), Oe("touchend", lo, {
22702
22702
  passive: !0
22703
22703
  })), k9(y.props.trigger).forEach(function(j) {
22704
22704
  if (j !== "manual")
22705
- switch (ze(j, or), j) {
22705
+ switch (Oe(j, or), j) {
22706
22706
  case "mouseenter":
22707
- ze("mouseleave", lo);
22707
+ Oe("mouseleave", lo);
22708
22708
  break;
22709
22709
  case "focus":
22710
- ze(H9 ? "focusout" : "blur", Pi);
22710
+ Oe(H9 ? "focusout" : "blur", Pi);
22711
22711
  break;
22712
22712
  case "focusin":
22713
- ze("focusout", Pi);
22713
+ Oe("focusout", Pi);
22714
22714
  break;
22715
22715
  }
22716
22716
  });
@@ -22741,7 +22741,7 @@ function $9(t, e) {
22741
22741
  props: n
22742
22742
  } : null;
22743
22743
  }).filter(Boolean);
22744
- z9(le, j) && (be(), sr(j));
22744
+ z9(le, j) && (Ce(), sr(j));
22745
22745
  }
22746
22746
  }
22747
22747
  function lo(j) {
@@ -22869,7 +22869,7 @@ function $9(t, e) {
22869
22869
  var Y = y.props, $ = Ph(t, Object.assign({}, Y, Dh(j), {
22870
22870
  ignoreAttributes: !0
22871
22871
  }));
22872
- y.props = $, Yt(), Y.interactiveDebounce !== $.interactiveDebounce && (be(), m = Th(fo, $.interactiveDebounce)), Y.triggerTarget && !$.triggerTarget ? ni(Y.triggerTarget).forEach(function(le) {
22872
+ y.props = $, Yt(), Y.interactiveDebounce !== $.interactiveDebounce && (Ce(), m = Th(fo, $.interactiveDebounce)), Y.triggerTarget && !$.triggerTarget ? ni(Y.triggerTarget).forEach(function(le) {
22873
22873
  le.removeAttribute("aria-expanded");
22874
22874
  }) : $.triggerTarget && t.removeAttribute("aria-expanded"), G(), q(), k && k(Y, $), y.popperInstance && (co(), Dn().forEach(function(le) {
22875
22875
  requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
@@ -22907,7 +22907,7 @@ function $9(t, e) {
22907
22907
  process.env.NODE_ENV !== "production" && wn(y.state.isDestroyed, $r("hide"));
22908
22908
  var j = !y.state.isVisible, Y = y.state.isDestroyed, $ = !y.state.isEnabled, le = jl(y.props.duration, 1, bt.duration);
22909
22909
  if (!(j || Y || $) && (fe("onHide", [y], !1), y.props.onHide(y) !== !1)) {
22910
- if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, J() && (C.style.visibility = "hidden"), be(), se(), q(!0), J()) {
22910
+ if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, J() && (C.style.visibility = "hidden"), Ce(), se(), q(!0), J()) {
22911
22911
  var ae = A(), nt = ae.box, kt = ae.content;
22912
22912
  y.props.animation && (Dl([nt, kt], le), Eh([nt, kt], "hidden"));
22913
22913
  }
@@ -23325,13 +23325,13 @@ function Jt() {
23325
23325
  return "." + r;
23326
23326
  }).join("");
23327
23327
  }
23328
- var xe = /* @__PURE__ */ rS("epr", null), _o = {
23328
+ var Me = /* @__PURE__ */ rS("epr", null), _o = {
23329
23329
  display: "none",
23330
23330
  opacity: "0",
23331
23331
  pointerEvents: "none",
23332
23332
  visibility: "hidden",
23333
23333
  overflow: "hidden"
23334
- }, nu = /* @__PURE__ */ xe.create({
23334
+ }, nu = /* @__PURE__ */ Me.create({
23335
23335
  hidden: /* @__PURE__ */ ge({
23336
23336
  ".": ie.hidden
23337
23337
  }, _o)
@@ -23339,10 +23339,10 @@ var xe = /* @__PURE__ */ rS("epr", null), _o = {
23339
23339
  return O("style", {
23340
23340
  suppressHydrationWarning: !0,
23341
23341
  dangerouslySetInnerHTML: {
23342
- __html: xe.getStyle()
23342
+ __html: Me.getStyle()
23343
23343
  }
23344
23344
  });
23345
- }), Hr = /* @__PURE__ */ xe.create({
23345
+ }), Hr = /* @__PURE__ */ Me.create({
23346
23346
  ".epr-main": {
23347
23347
  ":has(input:not(:placeholder-shown))": {
23348
23348
  categoryBtn: {
@@ -23424,7 +23424,7 @@ function O2(t) {
23424
23424
  }
23425
23425
  function Fh(t, e) {
23426
23426
  e === void 0 && (e = 0);
23427
- var n = ne(t), r = n[0], i = n[1], a = Ae(null);
23427
+ var n = ne(t), r = n[0], i = n[1], a = ze(null);
23428
23428
  function o(s) {
23429
23429
  return new Promise(function(f) {
23430
23430
  var c;
@@ -23442,8 +23442,8 @@ function dS() {
23442
23442
  };
23443
23443
  }
23444
23444
  function P2() {
23445
- var t = Ae({}), e = cI();
23446
- return ye(function() {
23445
+ var t = ze({}), e = cI();
23446
+ return we(function() {
23447
23447
  var n = parseFloat("" + e);
23448
23448
  return !e || Number.isNaN(n) ? t.current : Ef.reduce(function(r, i) {
23449
23449
  return hS(i, n) && (r[Qe(i)] = !0), r;
@@ -23490,7 +23490,7 @@ var ki;
23490
23490
  t.SEARCH = "SEARCH", t.PREVIEW = "PREVIEW";
23491
23491
  })(ki || (ki = {}));
23492
23492
  function mS(t) {
23493
- var e = t.children, n = P2(), r = XS(), i = lI(), a = Ae(va), o = Ae(!1), s = Ae(!1), f = Ae(n), c = Fh(Date.now(), 200), d = Fh("", 100), u = ne(!1), p = ne(r), h = ne(null), m = ne(/* @__PURE__ */ new Set()), g = ne(null), v = ne(i), w = ne(!1), x = w[0], L = w[1], y = ne([]), N = ne(null);
23493
+ var e = t.children, n = P2(), r = XS(), i = lI(), a = ze(va), o = ze(!1), s = ze(!1), f = ze(n), c = Fh(Date.now(), 200), d = Fh("", 100), u = ne(!1), p = ne(r), h = ne(null), m = ne(/* @__PURE__ */ new Set()), g = ne(null), v = ne(i), w = ne(!1), x = w[0], L = w[1], y = ne([]), N = ne(null);
23494
23494
  return pS(L), O(xt.Provider, {
23495
23495
  value: {
23496
23496
  activeCategoryState: h,
@@ -40660,7 +40660,7 @@ function $S(t) {
40660
40660
  z2(r, t) || i(Yh(t));
40661
40661
  }, [(e = t.customEmojis) == null ? void 0 : e.length, t.open, t.emojiVersion, t.reactionsDefaultOpen, t.searchPlaceHolder, t.searchPlaceholder, t.searchClearButtonLabel, t.defaultSkinTone, t.skinTonesDisabled, t.autoFocusSearch, t.emojiStyle, t.theme, t.suggestedEmojisMode, t.lazyLoadEmojis, t.className, t.height, t.width, t.searchDisabled, t.skinTonePickerLocation, t.allowExpandReactions]), r;
40662
40662
  }
40663
- function Ce() {
40663
+ function xe() {
40664
40664
  return Xe(Z2);
40665
40665
  }
40666
40666
  var q2 = /* @__PURE__ */ ut.createContext({});
@@ -40687,45 +40687,45 @@ var Qa;
40687
40687
  t.REACTIONS = "reactions", t.PICKER = "picker";
40688
40688
  })(Qa || (Qa = {}));
40689
40689
  function qS() {
40690
- var t, e = Ce(), n = e.searchPlaceHolder, r = e.searchPlaceholder;
40690
+ var t, e = xe(), n = e.searchPlaceHolder, r = e.searchPlaceholder;
40691
40691
  return (t = [n, r].find(function(i) {
40692
40692
  return i !== Ws;
40693
40693
  })) != null ? t : Ws;
40694
40694
  }
40695
40695
  function KS() {
40696
- var t = Ce(), e = t.searchClearButtonLabel;
40696
+ var t = xe(), e = t.searchClearButtonLabel;
40697
40697
  return e ?? G2;
40698
40698
  }
40699
40699
  function XS() {
40700
- var t = Ce(), e = t.defaultSkinTone;
40700
+ var t = xe(), e = t.defaultSkinTone;
40701
40701
  return e;
40702
40702
  }
40703
40703
  function X2() {
40704
- var t = Ce(), e = t.allowExpandReactions;
40704
+ var t = xe(), e = t.allowExpandReactions;
40705
40705
  return e;
40706
40706
  }
40707
40707
  function eb() {
40708
- var t = Ce(), e = t.skinTonesDisabled;
40708
+ var t = xe(), e = t.skinTonesDisabled;
40709
40709
  return e;
40710
40710
  }
40711
40711
  function Fr() {
40712
- var t = Ce(), e = t.emojiStyle;
40712
+ var t = xe(), e = t.emojiStyle;
40713
40713
  return e;
40714
40714
  }
40715
40715
  function eI() {
40716
- var t = Ce(), e = t.autoFocusSearch;
40716
+ var t = xe(), e = t.autoFocusSearch;
40717
40717
  return e;
40718
40718
  }
40719
40719
  function su() {
40720
- var t = Ce(), e = t.categories;
40720
+ var t = xe(), e = t.categories;
40721
40721
  return e;
40722
40722
  }
40723
40723
  function tI() {
40724
- var t = Ce(), e = t.customEmojis;
40724
+ var t = xe(), e = t.customEmojis;
40725
40725
  return e;
40726
40726
  }
40727
40727
  function nI() {
40728
- var t = Ce(), e = t.open;
40728
+ var t = xe(), e = t.open;
40729
40729
  return e;
40730
40730
  }
40731
40731
  function rI(t) {
@@ -40757,58 +40757,58 @@ function iI() {
40757
40757
  };
40758
40758
  }
40759
40759
  function tb() {
40760
- var t = Ce(), e = t.previewConfig;
40760
+ var t = xe(), e = t.previewConfig;
40761
40761
  return e;
40762
40762
  }
40763
40763
  function aI() {
40764
- var t = Ce(), e = t.theme;
40764
+ var t = xe(), e = t.theme;
40765
40765
  return e;
40766
40766
  }
40767
40767
  function oI() {
40768
- var t = Ce(), e = t.suggestedEmojisMode;
40768
+ var t = xe(), e = t.suggestedEmojisMode;
40769
40769
  return e;
40770
40770
  }
40771
40771
  function nb() {
40772
- var t = Ce(), e = t.lazyLoadEmojis;
40772
+ var t = xe(), e = t.lazyLoadEmojis;
40773
40773
  return e;
40774
40774
  }
40775
40775
  function sI() {
40776
- var t = Ce(), e = t.className;
40776
+ var t = xe(), e = t.className;
40777
40777
  return e;
40778
40778
  }
40779
40779
  function fI() {
40780
- var t = Ce(), e = t.height, n = t.width, r = t.style;
40780
+ var t = xe(), e = t.height, n = t.width, r = t.style;
40781
40781
  return ge({
40782
40782
  height: Qh(e),
40783
40783
  width: Qh(n)
40784
40784
  }, r);
40785
40785
  }
40786
40786
  function lI() {
40787
- var t = Ce(), e = t.reactionsDefaultOpen;
40787
+ var t = xe(), e = t.reactionsDefaultOpen;
40788
40788
  return e;
40789
40789
  }
40790
40790
  function cI() {
40791
- var t = Ce(), e = t.emojiVersion;
40791
+ var t = xe(), e = t.emojiVersion;
40792
40792
  return e;
40793
40793
  }
40794
40794
  function rb() {
40795
- var t = Ce(), e = t.searchDisabled;
40795
+ var t = xe(), e = t.searchDisabled;
40796
40796
  return e;
40797
40797
  }
40798
40798
  function ib() {
40799
- var t = Ce(), e = t.skinTonePickerLocation;
40799
+ var t = xe(), e = t.skinTonePickerLocation;
40800
40800
  return e;
40801
40801
  }
40802
40802
  function dI() {
40803
- var t = Ce(), e = t.unicodeToHide;
40803
+ var t = xe(), e = t.unicodeToHide;
40804
40804
  return e;
40805
40805
  }
40806
40806
  function uI() {
40807
- var t = Ce(), e = t.reactions;
40807
+ var t = xe(), e = t.reactions;
40808
40808
  return e;
40809
40809
  }
40810
40810
  function Jr() {
40811
- var t = Ce(), e = t.getEmojiUrl;
40811
+ var t = xe(), e = t.getEmojiUrl;
40812
40812
  return e;
40813
40813
  }
40814
40814
  function Qh(t) {
@@ -40849,7 +40849,7 @@ function Va() {
40849
40849
  return document.activeElement;
40850
40850
  }
40851
40851
  function pI(t) {
40852
- var e = t.children, n = Ae(null), r = Ae(null), i = Ae(null), a = Ae(null), o = Ae(null), s = Ae(null), f = Ae(null), c = Ae(null), d = Ae(null);
40852
+ var e = t.children, n = ze(null), r = ze(null), i = ze(null), a = ze(null), o = ze(null), s = ze(null), f = ze(null), c = ze(null), d = ze(null);
40853
40853
  return O(fb.Provider, {
40854
40854
  value: {
40855
40855
  AnchoredEmojiRef: r,
@@ -41195,7 +41195,7 @@ function HI() {
41195
41195
  UI(), FI(), JI(), YI(), QI();
41196
41196
  }
41197
41197
  function UI() {
41198
- var t = Ai(), e = gb(), n = vI(), r = rr(), i = Qr(), a = ub(), o = SI(), s = Yr(), f = ye(function() {
41198
+ var t = Ai(), e = gb(), n = vI(), r = rr(), i = Qr(), a = ub(), o = SI(), s = Yr(), f = we(function() {
41199
41199
  return function(d) {
41200
41200
  var u = d.key;
41201
41201
  switch (o(), u) {
@@ -41219,7 +41219,7 @@ function UI() {
41219
41219
  }, [t, r, n, f]);
41220
41220
  }
41221
41221
  function FI() {
41222
- var t = TI(), e = Ai(), n = Lt(), r = rr(), i = io(), a = i[1], o = wb(), s = du(), f = ye(function() {
41222
+ var t = TI(), e = Ai(), n = Lt(), r = rr(), i = io(), a = i[1], o = wb(), s = du(), f = we(function() {
41223
41223
  return function(d) {
41224
41224
  var u = d.key;
41225
41225
  switch (u) {
@@ -41246,7 +41246,7 @@ function FI() {
41246
41246
  }, [e, r, f]);
41247
41247
  }
41248
41248
  function JI() {
41249
- var t = fu(), e = Qr(), n = rr(), r = wb(), i = io(), a = i[0], o = i[1], s = vb(), f = du(), c = uu(), d = ye(function() {
41249
+ var t = fu(), e = Qr(), n = rr(), r = wb(), i = io(), a = i[0], o = i[1], s = vb(), f = du(), c = uu(), d = we(function() {
41250
41250
  return (
41251
41251
  // eslint-disable-next-line complexity
41252
41252
  (function(p) {
@@ -41298,7 +41298,7 @@ function JI() {
41298
41298
  }, [t, n, a, d]);
41299
41299
  }
41300
41300
  function YI() {
41301
- var t = Qr(), e = lu(), n = Lt(), r = uu(), i = ye(function() {
41301
+ var t = Qr(), e = lu(), n = Lt(), r = uu(), i = we(function() {
41302
41302
  return function(o) {
41303
41303
  var s = o.key;
41304
41304
  switch (s) {
@@ -41329,7 +41329,7 @@ function YI() {
41329
41329
  }, [e, n, i]);
41330
41330
  }
41331
41331
  function QI() {
41332
- var t = Lt(), e = VI(), n = bb(), r = ub(), i = Yr(), a = uu(), o = ye(function() {
41332
+ var t = Lt(), e = VI(), n = bb(), r = ub(), i = Yr(), a = uu(), o = we(function() {
41333
41333
  return (
41334
41334
  // eslint-disable-next-line complexity
41335
41335
  (function(f) {
@@ -41481,7 +41481,7 @@ var Wh = {
41481
41481
  "--epr-skin-tone-picker-menu-color": "var(--epr-dark-skin-tone-picker-menu-color)",
41482
41482
  "--epr-skin-tone-outer-border-color": "var(--epr-dark-skin-tone-outer-border-color)",
41483
41483
  "--epr-skin-tone-inner-border-color": "var(--epr-dark-skin-tone-inner-border-color)"
41484
- }, _i = /* @__PURE__ */ xe.create({
41484
+ }, _i = /* @__PURE__ */ Me.create({
41485
41485
  main: {
41486
41486
  ".": ["epr-main", ie.emojiPicker],
41487
41487
  position: "relative",
@@ -41778,7 +41778,7 @@ function zb(t) {
41778
41778
  return t.imgUrl !== void 0;
41779
41779
  }
41780
41780
  function Ob(t, e) {
41781
- var n = Ae(), r = bb(), i = gS(), a = Di(), o = a[1], s = Yr(), f = jf(), c = f[0], d = rI(e), u = H2(), p = u[1], h = Jr(), m = Fr(), g = Ye(function(L) {
41781
+ var n = ze(), r = bb(), i = gS(), a = Di(), o = a[1], s = Yr(), f = jf(), c = f[0], d = rI(e), u = H2(), p = u[1], h = Jr(), m = Fr(), g = Ye(function(L) {
41782
41782
  if (!i.current) {
41783
41783
  s();
41784
41784
  var y = Kh(L), N = y[0], C = y[1];
@@ -41856,7 +41856,7 @@ function so(t) {
41856
41856
  className: re(lT.button, t.className)
41857
41857
  }), t.children);
41858
41858
  }
41859
- var lT = /* @__PURE__ */ xe.create({
41859
+ var lT = /* @__PURE__ */ Me.create({
41860
41860
  button: {
41861
41861
  ".": "epr-btn",
41862
41862
  cursor: "pointer",
@@ -41879,7 +41879,7 @@ function dT(t) {
41879
41879
  var e;
41880
41880
  return t[0].match("flag-") && (e = t[1]) != null ? e : t[0];
41881
41881
  }
41882
- var zl = /* @__PURE__ */ xe.create({
41882
+ var zl = /* @__PURE__ */ Me.create({
41883
41883
  emoji: {
41884
41884
  ".": ie.emoji,
41885
41885
  position: "relative",
@@ -41932,7 +41932,7 @@ var zl = /* @__PURE__ */ xe.create({
41932
41932
  borderBottom: "4px solid var(--epr-emoji-variation-indicator-color-hover)"
41933
41933
  }
41934
41934
  }
41935
- }), $s = /* @__PURE__ */ xe.create({
41935
+ }), $s = /* @__PURE__ */ Me.create({
41936
41936
  external: {
41937
41937
  ".": ie.external,
41938
41938
  fontSize: "0"
@@ -41954,7 +41954,7 @@ function Xh(t) {
41954
41954
  style: n
41955
41955
  });
41956
41956
  }
41957
- var uT = /* @__PURE__ */ xe.create({
41957
+ var uT = /* @__PURE__ */ Me.create({
41958
41958
  emojiImag: {
41959
41959
  ".": "epr-emoji-img",
41960
41960
  maxWidth: "var(--epr-emoji-fullsize)",
@@ -41972,7 +41972,7 @@ function hT(t) {
41972
41972
  style: n
41973
41973
  }, Ab(e));
41974
41974
  }
41975
- var pT = /* @__PURE__ */ xe.create({
41975
+ var pT = /* @__PURE__ */ Me.create({
41976
41976
  nativeEmoji: {
41977
41977
  ".": "epr-emoji-native",
41978
41978
  fontFamily: '"Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji"!important',
@@ -42055,7 +42055,7 @@ function gT() {
42055
42055
  }
42056
42056
  });
42057
42057
  }
42058
- var bT = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
42058
+ var bT = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
42059
42059
  plusSign: {
42060
42060
  fontSize: "20px",
42061
42061
  padding: "17px",
@@ -42123,7 +42123,7 @@ function vT() {
42123
42123
  }));
42124
42124
  }), a ? O("li", null, O(gT, null)) : null) : null;
42125
42125
  }
42126
- var e1 = /* @__PURE__ */ xe.create({
42126
+ var e1 = /* @__PURE__ */ Me.create({
42127
42127
  list: {
42128
42128
  listStyle: "none",
42129
42129
  margin: "0",
@@ -42179,7 +42179,7 @@ function MT(t, e) {
42179
42179
  }
42180
42180
  var xT = 40;
42181
42181
  function CT(t) {
42182
- var e = lb(), n = Ur(), r = n[0], i = Ai(), a = Ae(), o = au(), s = o[0], f = B2(), c = f[0], d = ne(), u = d[0], p = d[1], h = Ye(function() {
42182
+ var e = lb(), n = Ur(), r = n[0], i = Ai(), a = ze(), o = au(), s = o[0], f = B2(), c = f[0], d = ne(), u = d[0], p = d[1], h = Ye(function() {
42183
42183
  var m = e.current;
42184
42184
  if (m) {
42185
42185
  var g = m.querySelector(_a), v = g == null ? void 0 : g.clientHeight;
@@ -42284,7 +42284,7 @@ function kT(t) {
42284
42284
  }
42285
42285
  }, n));
42286
42286
  }
42287
- var Ol = /* @__PURE__ */ xe.create({
42287
+ var Ol = /* @__PURE__ */ Me.create({
42288
42288
  category: {
42289
42289
  ".": ie.category,
42290
42290
  minHeight: "calc(var(--epr-emoji-fullsize) + var(--epr-category-label-height))",
@@ -42320,7 +42320,7 @@ var Ol = /* @__PURE__ */ xe.create({
42320
42320
  }
42321
42321
  });
42322
42322
  function ST() {
42323
- var t = su(), e = V2(), n = Fr(), r = Jr(), i = nb(), a = jf(), o = a[0], s = B2(), f = s[0], c = s[1], d = Ae(null);
42323
+ var t = su(), e = V2(), n = Fr(), r = Jr(), i = nb(), a = jf(), o = a[0], s = B2(), f = s[0], c = s[1], d = ze(null);
42324
42324
  if (Zc(function() {
42325
42325
  d.current && c(d.current.clientHeight);
42326
42326
  }), f)
@@ -42387,7 +42387,7 @@ function TT(t) {
42387
42387
  hidden: !d.length && c === 0
42388
42388
  }, d);
42389
42389
  }
42390
- var jT = /* @__PURE__ */ xe.create({
42390
+ var jT = /* @__PURE__ */ Me.create({
42391
42391
  emojiList: {
42392
42392
  ".": ie.emojiList,
42393
42393
  listStyle: "none",
@@ -42463,7 +42463,7 @@ function zT(t) {
42463
42463
  return o - s;
42464
42464
  }
42465
42465
  }
42466
- var Po = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
42466
+ var Po = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
42467
42467
  variationPicker: {
42468
42468
  ".": ie.variationPicker,
42469
42469
  position: "absolute",
@@ -42528,7 +42528,7 @@ function OT() {
42528
42528
  scrollTop: e
42529
42529
  }));
42530
42530
  }
42531
- var PT = /* @__PURE__ */ xe.create({
42531
+ var PT = /* @__PURE__ */ Me.create({
42532
42532
  body: {
42533
42533
  ".": ie.scrollBody,
42534
42534
  flex: "1",
@@ -42611,7 +42611,7 @@ function Pb(t) {
42611
42611
  className: re(t1.flex, n, t1[o])
42612
42612
  }, e);
42613
42613
  }
42614
- var t1 = /* @__PURE__ */ xe.create((Ro = {
42614
+ var t1 = /* @__PURE__ */ Me.create((Ro = {
42615
42615
  flex: {
42616
42616
  display: "flex"
42617
42617
  }
@@ -42657,7 +42657,7 @@ function JT(t) {
42657
42657
  "aria-label": "Skin tone " + zS[i]
42658
42658
  });
42659
42659
  }
42660
- var Pl = /* @__PURE__ */ xe.create({
42660
+ var Pl = /* @__PURE__ */ Me.create({
42661
42661
  closedTone: {
42662
42662
  opacity: "0",
42663
42663
  zIndex: "0"
@@ -42756,7 +42756,7 @@ var Wa;
42756
42756
  (function(t) {
42757
42757
  t.VERTICAL = "epr-vertical", t.HORIZONTAL = "epr-horizontal";
42758
42758
  })(Wa || (Wa = {}));
42759
- var Gi = /* @__PURE__ */ xe.create({
42759
+ var Gi = /* @__PURE__ */ Me.create({
42760
42760
  skinTones: {
42761
42761
  ".": "epr-skin-tones",
42762
42762
  "--": {
@@ -42828,7 +42828,7 @@ function VT() {
42828
42828
  }, d ? zc(c) : h));
42829
42829
  }
42830
42830
  }
42831
- var wa = /* @__PURE__ */ xe.create({
42831
+ var wa = /* @__PURE__ */ Me.create({
42832
42832
  preview: {
42833
42833
  alignItems: "center",
42834
42834
  borderTop: "1px solid var(--epr-preview-border-color)",
@@ -42935,7 +42935,7 @@ var n1 = {
42935
42935
  "&.epr-active": n1
42936
42936
  }
42937
42937
  }
42938
- }, XT = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
42938
+ }, XT = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
42939
42939
  catBtn: {
42940
42940
  ".": "epr-cat-btn",
42941
42941
  display: "inline-block",
@@ -43024,7 +43024,7 @@ function ej() {
43024
43024
  });
43025
43025
  }));
43026
43026
  }
43027
- var tj = /* @__PURE__ */ xe.create({
43027
+ var tj = /* @__PURE__ */ Me.create({
43028
43028
  nav: {
43029
43029
  ".": "epr-category-nav",
43030
43030
  display: "flex",
@@ -43064,7 +43064,7 @@ var rj = {
43064
43064
  backgroundPositionY: "-60px"
43065
43065
  }
43066
43066
  }
43067
- }, i1 = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43067
+ }, i1 = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
43068
43068
  btnClearSearch: {
43069
43069
  ".": "epr-btn-clear-search",
43070
43070
  position: "absolute",
@@ -43108,7 +43108,7 @@ function aj() {
43108
43108
  className: re(oj.icnSearch)
43109
43109
  });
43110
43110
  }
43111
- var oj = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43111
+ var oj = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
43112
43112
  icnSearch: {
43113
43113
  ".": "epr-icn-search",
43114
43114
  content: "",
@@ -43158,7 +43158,7 @@ function fj() {
43158
43158
  "aria-atomic": "true"
43159
43159
  }, a) : null, O(aj, null), O(nj, null));
43160
43160
  }
43161
- var Go = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43161
+ var Go = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
43162
43162
  overlay: {
43163
43163
  padding: "var(--epr-header-padding)",
43164
43164
  zIndex: "var(--epr-header-overlay-z-index)"
@@ -43294,7 +43294,7 @@ const mj = ({ role: t }) => {
43294
43294
  client: { label: "Cliente", className: "bg-blue-500/10 text-blue-600 hover:bg-blue-500/20 border-blue-500/20" },
43295
43295
  freelancer: { label: "Freelancer", className: "bg-orange-500/10 text-orange-600 hover:bg-orange-500/20 border-orange-500/20" }
43296
43296
  }, { label: n, className: r } = e[t];
43297
- return /* @__PURE__ */ l(we, { variant: "outline", className: M("text-[10px] h-5 px-1.5 font-medium border-0", r), children: n });
43297
+ return /* @__PURE__ */ l(ve, { variant: "outline", className: M("text-[10px] h-5 px-1.5 font-medium border-0", r), children: n });
43298
43298
  }, gj = ({ 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: [
43299
43299
  /* @__PURE__ */ l(
43300
43300
  B,
@@ -43717,7 +43717,7 @@ const mj = ({ role: t }) => {
43717
43717
  return /* @__PURE__ */ b("div", { className: M("flex flex-col h-full", o), children: [
43718
43718
  /* @__PURE__ */ b("div", { className: "px-4 py-3 border-b flex items-center justify-between bg-card", children: [
43719
43719
  /* @__PURE__ */ l("h3", { className: "font-semibold text-base", children: "Comentários da Atividade" }),
43720
- /* @__PURE__ */ l(we, { variant: "secondary", className: "bg-muted text-muted-foreground hover:bg-muted", children: t.length })
43720
+ /* @__PURE__ */ l(ve, { variant: "secondary", className: "bg-muted text-muted-foreground hover:bg-muted", children: t.length })
43721
43721
  ] }),
43722
43722
  /* @__PURE__ */ l("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: [
43723
43723
  /* @__PURE__ */ l("div", { className: "bg-muted rounded-full p-3 mb-3", children: /* @__PURE__ */ l(E1, { className: "h-6 w-6" }) }),
@@ -44479,7 +44479,7 @@ const kj = {
44479
44479
  }
44480
44480
  ),
44481
44481
  o && /* @__PURE__ */ l("div", { className: "absolute top-2 right-2", children: /* @__PURE__ */ b(
44482
- we,
44482
+ ve,
44483
44483
  {
44484
44484
  variant: "secondary",
44485
44485
  className: M("shadow-sm", C == null ? void 0 : C.bgColor),
@@ -44518,7 +44518,7 @@ const kj = {
44518
44518
  children: t
44519
44519
  }
44520
44520
  ),
44521
- p && h === "detailed" && /* @__PURE__ */ l(we, { variant: "outline", className: "mt-1 text-xs", children: p })
44521
+ p && h === "detailed" && /* @__PURE__ */ l(ve, { variant: "outline", className: "mt-1 text-xs", children: p })
44522
44522
  ] })
44523
44523
  ] }),
44524
44524
  e && h !== "compact" && /* @__PURE__ */ l(dy, { className: "mt-2 line-clamp-2 text-xs", children: e })
@@ -44549,7 +44549,7 @@ const kj = {
44549
44549
  ] }),
44550
44550
  i.length > 0 && /* @__PURE__ */ b("div", { className: "flex flex-wrap gap-1 mt-2", children: [
44551
44551
  i.slice(0, h === "compact" ? 2 : 3).map((I) => /* @__PURE__ */ l(
44552
- we,
44552
+ ve,
44553
44553
  {
44554
44554
  variant: "secondary",
44555
44555
  className: "text-xs",
@@ -44562,13 +44562,13 @@ const kj = {
44562
44562
  },
44563
44563
  I.id
44564
44564
  )),
44565
- i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ b(we, { variant: "secondary", className: "text-xs", children: [
44565
+ i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ b(ve, { variant: "secondary", className: "text-xs", children: [
44566
44566
  "+",
44567
44567
  i.length - (h === "compact" ? 2 : 3)
44568
44568
  ] })
44569
44569
  ] }),
44570
44570
  o && !n && h === "detailed" && /* @__PURE__ */ b(
44571
- we,
44571
+ ve,
44572
44572
  {
44573
44573
  variant: "secondary",
44574
44574
  className: M("mt-2 w-fit text-xs", C == null ? void 0 : C.bgColor),
@@ -44705,7 +44705,7 @@ const Ij = T.forwardRef(
44705
44705
  /* @__PURE__ */ b("div", { className: "flex items-baseline flex-wrap gap-2", children: [
44706
44706
  /* @__PURE__ */ l("span", { className: "text-2xl font-bold", children: e }),
44707
44707
  r !== void 0 && /* @__PURE__ */ b(
44708
- we,
44708
+ ve,
44709
44709
  {
44710
44710
  variant: "secondary",
44711
44711
  className: M(
@@ -45544,10 +45544,10 @@ function Jj({
45544
45544
  S.icon,
45545
45545
  S.label
45546
45546
  ] }) : t, [p, t, S]), F = (S == null ? void 0 : S.variant) || a;
45547
- return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(we, { variant: F, children: P() }) }) : /* @__PURE__ */ b(qe, { children: [
45547
+ return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(ve, { variant: F, children: P() }) }) : /* @__PURE__ */ b(qe, { children: [
45548
45548
  /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ b(sf, { open: y, onOpenChange: N, children: [
45549
45549
  /* @__PURE__ */ l(ff, { asChild: !0, disabled: u, children: /* @__PURE__ */ b(
45550
- we,
45550
+ ve,
45551
45551
  {
45552
45552
  variant: F,
45553
45553
  className: M(
@@ -45582,7 +45582,7 @@ function Jj({
45582
45582
  I && /* @__PURE__ */ b("div", { className: "flex items-center gap-3 py-4", children: [
45583
45583
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
45584
45584
  /* @__PURE__ */ l("span", { className: "text-sm text-muted-foreground", children: "De:" }),
45585
- /* @__PURE__ */ b(we, { variant: (S == null ? void 0 : S.variant) || a, children: [
45585
+ /* @__PURE__ */ b(ve, { variant: (S == null ? void 0 : S.variant) || a, children: [
45586
45586
  S == null ? void 0 : S.icon,
45587
45587
  (S == null ? void 0 : S.label) || t
45588
45588
  ] })
@@ -45590,7 +45590,7 @@ function Jj({
45590
45590
  /* @__PURE__ */ l("span", { className: "text-muted-foreground", children: "→" }),
45591
45591
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
45592
45592
  /* @__PURE__ */ l("span", { className: "text-sm text-muted-foreground", children: "Para:" }),
45593
- /* @__PURE__ */ b(we, { variant: I.variant || a, children: [
45593
+ /* @__PURE__ */ b(ve, { variant: I.variant || a, children: [
45594
45594
  I.icon,
45595
45595
  I.label
45596
45596
  ] })
@@ -46848,10 +46848,10 @@ function Xb(t, e) {
46848
46848
  const n = [
46849
46849
  ...e || []
46850
46850
  ];
46851
- return e == null && typeof t != "function" && n.push(t), ye(() => typeof t == "function" ? t() : t, n);
46851
+ return e == null && typeof t != "function" && n.push(t), we(() => typeof t == "function" ? t() : t, n);
46852
46852
  }
46853
46853
  function y5(t) {
46854
- return ye(
46854
+ return we(
46855
46855
  () => t.hooks.dragSource(),
46856
46856
  [
46857
46857
  t
@@ -46859,7 +46859,7 @@ function y5(t) {
46859
46859
  );
46860
46860
  }
46861
46861
  function M5(t) {
46862
- return ye(
46862
+ return we(
46863
46863
  () => t.hooks.dragPreview(),
46864
46864
  [
46865
46865
  t
@@ -47225,7 +47225,7 @@ function zi() {
47225
47225
  return K(t != null, "Expected drag drop context"), t;
47226
47226
  }
47227
47227
  function D5(t, e) {
47228
- const n = zi(), r = ye(
47228
+ const n = zi(), r = we(
47229
47229
  () => new T5(n.getBackend()),
47230
47230
  [
47231
47231
  n
@@ -47241,7 +47241,7 @@ function D5(t, e) {
47241
47241
  }
47242
47242
  function E5() {
47243
47243
  const t = zi();
47244
- return ye(
47244
+ return we(
47245
47245
  () => new x5(t),
47246
47246
  [
47247
47247
  t
@@ -47271,7 +47271,7 @@ class A5 {
47271
47271
  }
47272
47272
  }
47273
47273
  function z5(t, e, n) {
47274
- const r = ye(
47274
+ const r = we(
47275
47275
  () => new A5(t, e, n),
47276
47276
  [
47277
47277
  e,
@@ -47285,7 +47285,7 @@ function z5(t, e, n) {
47285
47285
  ]), r;
47286
47286
  }
47287
47287
  function O5(t) {
47288
- return ye(() => {
47288
+ return we(() => {
47289
47289
  const e = t.type;
47290
47290
  return K(e != null, "spec.type must be defined"), e;
47291
47291
  }, [
@@ -47318,7 +47318,7 @@ function R5(t, e) {
47318
47318
  ];
47319
47319
  }
47320
47320
  function B5(t) {
47321
- return ye(
47321
+ return we(
47322
47322
  () => t.hooks.dropTarget(),
47323
47323
  [
47324
47324
  t
@@ -47326,7 +47326,7 @@ function B5(t) {
47326
47326
  );
47327
47327
  }
47328
47328
  function H5(t) {
47329
- const e = zi(), n = ye(
47329
+ const e = zi(), n = we(
47330
47330
  () => new j5(e.getBackend()),
47331
47331
  [
47332
47332
  e
@@ -47338,7 +47338,7 @@ function H5(t) {
47338
47338
  }
47339
47339
  function U5() {
47340
47340
  const t = zi();
47341
- return ye(
47341
+ return we(
47342
47342
  () => new C5(t),
47343
47343
  [
47344
47344
  t
@@ -47347,7 +47347,7 @@ function U5() {
47347
47347
  }
47348
47348
  function F5(t) {
47349
47349
  const { accept: e } = t;
47350
- return ye(() => (K(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
47350
+ return we(() => (K(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
47351
47351
  e
47352
47352
  ]), [
47353
47353
  e
@@ -47372,7 +47372,7 @@ class J5 {
47372
47372
  }
47373
47373
  }
47374
47374
  function Y5(t, e) {
47375
- const n = ye(
47375
+ const n = we(
47376
47376
  () => new J5(t, e),
47377
47377
  [
47378
47378
  e
@@ -48040,7 +48040,7 @@ function qf({
48040
48040
  /* @__PURE__ */ b("div", { className: "p-3", children: [
48041
48041
  /* @__PURE__ */ l("h4", { className: "text-sm font-medium text-gray-900 line-clamp-2 mb-2 leading-snug", children: t.title }),
48042
48042
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
48043
- /* @__PURE__ */ l(we, { variant: "outline", className: M("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", Qc[t.status]), children: t.status }),
48043
+ /* @__PURE__ */ l(ve, { variant: "outline", className: M("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", Qc[t.status]), children: t.status }),
48044
48044
  t.assignees && t.assignees.length > 0 && /* @__PURE__ */ l("div", { className: "flex -space-x-2", children: t.assignees.slice(0, 2).map((h, m) => /* @__PURE__ */ b(tn, { className: "w-5 h-5 border border-white", children: [
48045
48045
  /* @__PURE__ */ l(kr, { src: h.avatar }),
48046
48046
  /* @__PURE__ */ l(nn, { className: "text-[8px]", children: h.name[0] })
@@ -48127,7 +48127,7 @@ function qf({
48127
48127
  n === "editorial" && /* @__PURE__ */ l(s, { size: 12, className: M(t.channel ? Ql[t.channel] : "text-gray-400") }),
48128
48128
  /* @__PURE__ */ l("span", { className: "truncate font-medium text-sm", children: t.title })
48129
48129
  ] }),
48130
- /* @__PURE__ */ l(we, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: t.status })
48130
+ /* @__PURE__ */ l(ve, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: t.status })
48131
48131
  ] })
48132
48132
  ]
48133
48133
  }
@@ -48422,7 +48422,7 @@ function d4({
48422
48422
  isNew: i = !1
48423
48423
  }) {
48424
48424
  const [a, o] = ne(n || {});
48425
- ye(() => {
48425
+ we(() => {
48426
48426
  o(n || {});
48427
48427
  }, [n]);
48428
48428
  const s = () => {
@@ -48529,7 +48529,7 @@ function u4({
48529
48529
  onTaskCreate: n,
48530
48530
  defaultView: r = "month"
48531
48531
  }) {
48532
- const [i, a] = ne(/* @__PURE__ */ new Date()), [o, s] = ne(r), [f, c] = ne(!0), [d, u] = ne(!1), [p, h] = ne(null), [m, g] = ne(!1), v = ye(() => {
48532
+ const [i, a] = ne(/* @__PURE__ */ new Date()), [o, s] = ne(r), [f, c] = ne(!0), [d, u] = ne(!1), [p, h] = ne(null), [m, g] = ne(!1), v = we(() => {
48533
48533
  let D, H;
48534
48534
  if (o === "month") {
48535
48535
  const J = qo(i), P = nd(J);
@@ -48592,7 +48592,7 @@ function h4({ isOpen: t, setIsOpen: e, tasks: n, onAddClick: r, onTaskClick: i,
48592
48592
  /* @__PURE__ */ b("div", { className: "p-4 border-b bg-white flex items-center justify-between", children: [
48593
48593
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
48594
48594
  /* @__PURE__ */ l("h3", { className: "font-semibold text-sm text-gray-900", children: "Backlog" }),
48595
- /* @__PURE__ */ l(we, { variant: "secondary", className: "bg-gray-100 text-xs", children: n.length })
48595
+ /* @__PURE__ */ l(ve, { variant: "secondary", className: "bg-gray-100 text-xs", children: n.length })
48596
48596
  ] }),
48597
48597
  /* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => e(!1), children: /* @__PURE__ */ l(Ks, { size: 16 }) })
48598
48598
  ] }),
@@ -48622,7 +48622,7 @@ function h4({ isOpen: t, setIsOpen: e, tasks: n, onAddClick: r, onTaskClick: i,
48622
48622
  ] }) : /* @__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: [
48623
48623
  /* @__PURE__ */ l($c, { className: "text-gray-500 mb-4", size: 20 }),
48624
48624
  /* @__PURE__ */ l("div", { className: "flex-1 flex items-center justify-center min-h-0", children: /* @__PURE__ */ l("div", { className: "whitespace-nowrap text-xs font-medium text-gray-400 -rotate-90 transform", children: "BACKLOG" }) }),
48625
- /* @__PURE__ */ l(we, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-[#7F26BF] text-[10px]", children: n.length })
48625
+ /* @__PURE__ */ l(ve, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-[#7F26BF] text-[10px]", children: n.length })
48626
48626
  ] });
48627
48627
  }
48628
48628
  function p4({ title: t, onPrev: e, onNext: n, onToday: r, onAdd: i, view: a, setView: o }) {
@@ -49074,7 +49074,7 @@ const w4 = T.memo(({
49074
49074
  ] })
49075
49075
  ] }),
49076
49076
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between pt-2 border-t", children: [
49077
- /* @__PURE__ */ b(we, { variant: c.variant, className: "gap-1", children: [
49077
+ /* @__PURE__ */ b(ve, { variant: c.variant, className: "gap-1", children: [
49078
49078
  /* @__PURE__ */ l(d, { className: "size-3" }),
49079
49079
  c.label
49080
49080
  ] }),
@@ -49412,10 +49412,10 @@ const Vc = T.forwardRef(
49412
49412
  ...g
49413
49413
  }, v) => {
49414
49414
  const [w, x] = T.useState(n), [L, y] = T.useState(""), [N, C] = T.useState(!1), k = T.useRef(null), S = e !== void 0 ? e : w, I = T.useCallback((G) => f ? new Intl.NumberFormat(c, f).format(G) : G.toFixed(s), [f, c, s]), D = (G) => {
49415
- const he = G.replace(/[^\d,.-]/g, "").replace(",", "."), He = parseFloat(he);
49416
- return isNaN(He) ? 0 : He;
49417
- }, H = (G) => p ? Math.min(Math.max(G, i), a) : G, J = T.useCallback((G, be = !1) => {
49418
- const he = be ? H(G) : G;
49415
+ const he = G.replace(/[^\d,.-]/g, "").replace(",", "."), Ae = parseFloat(he);
49416
+ return isNaN(Ae) ? 0 : Ae;
49417
+ }, H = (G) => p ? Math.min(Math.max(G, i), a) : G, J = T.useCallback((G, Ce = !1) => {
49418
+ const he = Ce ? H(G) : G;
49419
49419
  e === void 0 && x(he), r && r(he);
49420
49420
  }, [e, r, H]);
49421
49421
  T.useEffect(() => {
@@ -49430,14 +49430,14 @@ const Vc = T.forwardRef(
49430
49430
  const G = S - o;
49431
49431
  G >= i && J(G);
49432
49432
  }, A = (G) => {
49433
- const be = G.target.value;
49434
- y(be);
49435
- const he = D(be);
49436
- J(he, !1);
49433
+ const he = G.target.value.replace(/[^\d,.-]/g, "");
49434
+ y(he);
49435
+ const Ae = D(he);
49436
+ J(Ae, !1);
49437
49437
  }, _ = (G) => {
49438
49438
  if (C(!1), u) {
49439
- const be = H(S);
49440
- J(be, !1), y(I(be));
49439
+ const Ce = H(S);
49440
+ J(Ce, !1), y(I(Ce));
49441
49441
  } else
49442
49442
  y(I(S));
49443
49443
  g.onBlur && g.onBlur(G);
@@ -51494,10 +51494,10 @@ function ZE({
51494
51494
  serverSideTotalItems: r
51495
51495
  }) {
51496
51496
  const [i, a] = ne(1), [o, s] = ne(e), f = r !== void 0, c = f ? r : t.length;
51497
- ye(() => {
51497
+ we(() => {
51498
51498
  n && a(1);
51499
51499
  }, [t.length, n]);
51500
- const d = Math.ceil(c / o), u = Math.min(Math.max(1, i), Math.max(1, d)), p = (u - 1) * o, h = Math.min(p + o, c), m = ye(() => f ? t : t.slice(p, h), [t, p, h, f]), g = (N) => {
51500
+ const d = Math.ceil(c / o), u = Math.min(Math.max(1, i), Math.max(1, d)), p = (u - 1) * o, h = Math.min(p + o, c), m = we(() => f ? t : t.slice(p, h), [t, p, h, f]), g = (N) => {
51501
51501
  const C = Math.max(1, Math.min(N, d));
51502
51502
  a(C);
51503
51503
  }, v = () => {
@@ -51537,7 +51537,7 @@ function qE({
51537
51537
  serverCurrentPage: o,
51538
51538
  serverCurrentPageSize: s
51539
51539
  }) {
51540
- const [f, c] = ne(e), [d, u] = ne([]), p = ye(() => i || d.length === 0 ? t : t.filter((C) => d.every((k) => {
51540
+ const [f, c] = ne(e), [d, u] = ne([]), p = we(() => i || d.length === 0 ? t : t.filter((C) => d.every((k) => {
51541
51541
  const S = C[k.column];
51542
51542
  switch (k.operator) {
51543
51543
  case "equals":
@@ -51553,7 +51553,7 @@ function qE({
51553
51553
  default:
51554
51554
  return !0;
51555
51555
  }
51556
- })), [t, d, i]), h = ye(() => i || !f.column || !f.direction ? p : [...p].sort((C, k) => {
51556
+ })), [t, d, i]), h = we(() => i || !f.column || !f.direction ? p : [...p].sort((C, k) => {
51557
51557
  const S = C[f.column], I = k[f.column];
51558
51558
  return S < I ? f.direction === "asc" ? -1 : 1 : S > I ? f.direction === "asc" ? 1 : -1 : 0;
51559
51559
  }), [p, f, i]), m = i ? a ?? t.length : h.length, g = ZE({
@@ -51603,7 +51603,7 @@ function qE({
51603
51603
  }
51604
51604
  function KE({ label: t, value: e, onRemove: n, className: r }) {
51605
51605
  return /* @__PURE__ */ b(
51606
- we,
51606
+ ve,
51607
51607
  {
51608
51608
  variant: "secondary",
51609
51609
  className: M(
@@ -51955,7 +51955,7 @@ function tA({
51955
51955
  var w, x;
51956
51956
  const v = ((x = (w = a == null ? void 0 : a.options) == null ? void 0 : w.find((L) => L.value === g)) == null ? void 0 : x.label) || g;
51957
51957
  return /* @__PURE__ */ b(
51958
- we,
51958
+ ve,
51959
51959
  {
51960
51960
  variant: "secondary",
51961
51961
  className: "gap-1 h-6 text-xs",
@@ -52009,7 +52009,7 @@ function nA({
52009
52009
  emptyMessage: h,
52010
52010
  className: m
52011
52011
  }) {
52012
- var he, He;
52012
+ var he, Ae;
52013
52013
  const g = !!u, {
52014
52014
  data: v,
52015
52015
  state: w,
@@ -52023,7 +52023,7 @@ function nA({
52023
52023
  totalItems: u == null ? void 0 : u.totalItems,
52024
52024
  serverCurrentPage: u == null ? void 0 : u.currentPage,
52025
52025
  serverCurrentPageSize: u == null ? void 0 : u.currentPageSize
52026
- }), [y, N] = ne(""), [C, k] = ne(!1), [S, I] = ne(s), D = r ? r[0] : ((he = e.find((R) => R.key === "nome" || R.key === "name" || R.key === "title" || R.key === "titulo")) == null ? void 0 : he.key) || ((He = e[0]) == null ? void 0 : He.key), H = (R) => {
52026
+ }), [y, N] = ne(""), [C, k] = ne(!1), [S, I] = ne(s), D = r ? r[0] : ((he = e.find((R) => R.key === "nome" || R.key === "name" || R.key === "title" || R.key === "titulo")) == null ? void 0 : he.key) || ((Ae = e[0]) == null ? void 0 : Ae.key), H = (R) => {
52027
52027
  switch (R) {
52028
52028
  case "is":
52029
52029
  return "equals";
@@ -52072,18 +52072,18 @@ function nA({
52072
52072
  return R;
52073
52073
  }, A = S.map((R) => {
52074
52074
  var Nt, ln;
52075
- const W = a.find((ze) => ze.value === R.field), se = R.operator === "is" ? "" : ` ${R.operator}`;
52075
+ const W = a.find((Oe) => Oe.value === R.field), se = R.operator === "is" ? "" : ` ${R.operator}`;
52076
52076
  let tt;
52077
- return Array.isArray(R.value) ? tt = R.value.map((ze) => {
52077
+ return Array.isArray(R.value) ? tt = R.value.map((Oe) => {
52078
52078
  var Yt, ar;
52079
- return ((ar = (Yt = W == null ? void 0 : W.options) == null ? void 0 : Yt.find((or) => or.value === ze)) == null ? void 0 : ar.label) || ze;
52080
- }).join(", ") : (W == null ? void 0 : W.type) === "date" ? tt = F(R.value) : tt = ((ln = (Nt = W == null ? void 0 : W.options) == null ? void 0 : Nt.find((ze) => ze.value === R.value)) == null ? void 0 : ln.label) || R.value, {
52079
+ return ((ar = (Yt = W == null ? void 0 : W.options) == null ? void 0 : Yt.find((or) => or.value === Oe)) == null ? void 0 : ar.label) || Oe;
52080
+ }).join(", ") : (W == null ? void 0 : W.type) === "date" ? tt = F(R.value) : tt = ((ln = (Nt = W == null ? void 0 : W.options) == null ? void 0 : Nt.find((Oe) => Oe.value === R.value)) == null ? void 0 : ln.label) || R.value, {
52081
52081
  id: R.id,
52082
52082
  label: (W == null ? void 0 : W.label) || R.field,
52083
52083
  value: `${se} ${tt}`.trim(),
52084
52084
  onRemove: () => {
52085
- const ze = S.filter((Yt) => Yt.id !== R.id);
52086
- I(ze), J(ze);
52085
+ const Oe = S.filter((Yt) => Yt.id !== R.id);
52086
+ I(Oe), J(Oe);
52087
52087
  }
52088
52088
  };
52089
52089
  }), _ = () => {
@@ -52106,7 +52106,7 @@ function nA({
52106
52106
  g && (u != null && u.onPageChange) ? await u.onPageChange(R, w.pagination.pageSize) : w.pagination.onPageChange && w.pagination.onPageChange(R);
52107
52107
  }, [g, u, w.pagination]), G = Ye(async (R) => {
52108
52108
  g && (u != null && u.onPageChange) ? await u.onPageChange(1, R) : w.pagination.onPageSizeChange && w.pagination.onPageSizeChange(R);
52109
- }, [g, u, w.pagination]), be = () => {
52109
+ }, [g, u, w.pagination]), Ce = () => {
52110
52110
  const R = S.length > 0, W = y.trim().length > 0;
52111
52111
  return R || W ? "Nenhum resultado encontrado para os filtros aplicados." : h || "Nenhum dado disponível.";
52112
52112
  };
@@ -52217,7 +52217,7 @@ function nA({
52217
52217
  {
52218
52218
  colSpan: e.length,
52219
52219
  className: "h-24 text-center",
52220
- children: be()
52220
+ children: Ce()
52221
52221
  }
52222
52222
  ) })
52223
52223
  ) })
@@ -52630,7 +52630,7 @@ function Ez({
52630
52630
  }
52631
52631
  ),
52632
52632
  /* @__PURE__ */ l("span", { className: "text-sm flex-1", children: x.name }),
52633
- x.assignee && /* @__PURE__ */ l(we, { variant: "outline", className: "text-xs", children: x.assignee.name })
52633
+ x.assignee && /* @__PURE__ */ l(ve, { variant: "outline", className: "text-xs", children: x.assignee.name })
52634
52634
  ]
52635
52635
  },
52636
52636
  x.id
@@ -52706,7 +52706,7 @@ const oA = (t) => {
52706
52706
  ] }),
52707
52707
  a && /* @__PURE__ */ b(My, { open: r, onOpenChange: o, className: "mt-1", children: [
52708
52708
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
52709
- t.action === "upload" && ((d = t.metadata) == null ? void 0 : d.fileName) && /* @__PURE__ */ b(we, { variant: "outline", className: "gap-1 font-normal bg-muted/30 text-muted-foreground hover:bg-muted/50", children: [
52709
+ t.action === "upload" && ((d = t.metadata) == null ? void 0 : d.fileName) && /* @__PURE__ */ b(ve, { variant: "outline", className: "gap-1 font-normal bg-muted/30 text-muted-foreground hover:bg-muted/50", children: [
52710
52710
  /* @__PURE__ */ l(j1, { className: "h-3 w-3" }),
52711
52711
  t.metadata.fileName
52712
52712
  ] }),
@@ -53205,7 +53205,7 @@ export {
53205
53205
  tn as Avatar,
53206
53206
  nn as AvatarFallback,
53207
53207
  kr as AvatarImage,
53208
- we as Badge,
53208
+ ve as Badge,
53209
53209
  La as BrandLogo,
53210
53210
  Sw as Breadcrumb,
53211
53211
  l8 as BreadcrumbEllipsis,