@scbt-ecom/ui 0.21.2 → 0.22.1

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/ui.js CHANGED
@@ -3,16 +3,16 @@ var km = (t) => {
3
3
  };
4
4
  var vu = (t, e, n) => e.has(t) || km("Cannot " + n);
5
5
  var pe = (t, e, n) => (vu(t, e, "read from private field"), n ? n.call(t) : e.get(t)), lt = (t, e, n) => e.has(t) ? km("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), He = (t, e, n, r) => (vu(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), vt = (t, e, n) => (vu(t, e, "access private method"), n);
6
- import { j as T, c as Lo, R as AE, B as TE, I as _e, e as kt, f as Jr, g as ay, u as En, h as ME, i as tt, k as Ic, D as OE, l as PE, m as DE, n as RE, o as Sp, p as _i, q as NE, r as sy, s as Ac, t as FE, A as BE, H as jE, d as VE, v as Tc, w as LE, x as aa, y as GE, z as ly, E as bu, F as yu, G as _E, J as WE, K as zE, M as HE, N as $E, O as cy, a as kp, _ as Wi, L as XE } from "./CustomLink-BHI03NwX.js";
6
+ import { j as T, c as Lo, R as AE, B as TE, I as _e, e as kt, f as Jr, g as ay, u as kn, h as ME, i as tt, k as Ic, D as OE, l as PE, m as DE, n as RE, o as Sp, p as Wi, q as NE, r as sy, s as Ac, t as FE, A as BE, H as jE, d as VE, v as Tc, w as LE, x as aa, y as GE, z as ly, E as bu, F as yu, G as _E, J as WE, K as zE, M as HE, N as $E, O as cy, a as kp, _ as zi, L as XE } from "./CustomLink-BHI03NwX.js";
7
7
  import { C as gZ, P as vZ, S as bZ, b as yZ } from "./CustomLink-BHI03NwX.js";
8
8
  import * as j from "react";
9
9
  import oe, { forwardRef as jt, createContext as st, useContext as Ge, useState as De, useEffect as We, useMemo as Pe, useCallback as ve, useId as tn, Component as uy, useLayoutEffect as Go, useRef as ye, useInsertionEffect as dy, Fragment as on, createElement as fy, Children as YE, isValidElement as py, cloneElement as ZE, useReducer as Ep, useSyncExternalStore as UE, createRef as JE, useDebugValue as hy, useImperativeHandle as KE, memo as Kr } from "react";
10
10
  import { c as H } from "./cn-DIfn7EPB.js";
11
11
  import { t as Ot, c as qn, g as Em, m as qE, a as my, b as gy, d as QE, e as eI, f as vy, h as by, j as Mc, i as Ip, l as tI, k as nI, n as rI, w as iI, s as jd, o as xu, q as Jo, r as oI, u as Ko, v as aI, x as sI, z as lI, p as yy } from "./parse-Bv7rNn_R.js";
12
12
  import { u as cI } from "./useDevice-L83kSsN7.js";
13
- import { c as ps, C as hn, f as uI, h as zi } from "./useDebounce-m2rLy7nL.js";
13
+ import { c as ps, C as En, f as uI, h as qr } from "./useDebounce-m2rLy7nL.js";
14
14
  import * as Vd from "react-dom";
15
- import dI, { createPortal as Oc, flushSync as hi } from "react-dom";
15
+ import dI, { createPortal as Oc, flushSync as mi } from "react-dom";
16
16
  import { g as fI } from "./_commonjsHelpers-C6fGbg64.js";
17
17
  import { m as pI } from "./mergeRefs-qDToYXtM.js";
18
18
  function xy(t, e, n) {
@@ -610,11 +610,11 @@ const Sr = {
610
610
  return Tm(r);
611
611
  case "XXXX":
612
612
  case "XX":
613
- return ai(r);
613
+ return si(r);
614
614
  case "XXXXX":
615
615
  case "XXX":
616
616
  default:
617
- return ai(r, ":");
617
+ return si(r, ":");
618
618
  }
619
619
  },
620
620
  // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
@@ -625,11 +625,11 @@ const Sr = {
625
625
  return Tm(r);
626
626
  case "xxxx":
627
627
  case "xx":
628
- return ai(r);
628
+ return si(r);
629
629
  case "xxxxx":
630
630
  case "xxx":
631
631
  default:
632
- return ai(r, ":");
632
+ return si(r, ":");
633
633
  }
634
634
  },
635
635
  // Timezone (GMT)
@@ -642,7 +642,7 @@ const Sr = {
642
642
  return "GMT" + Am(r, ":");
643
643
  case "OOOO":
644
644
  default:
645
- return "GMT" + ai(r, ":");
645
+ return "GMT" + si(r, ":");
646
646
  }
647
647
  },
648
648
  // Timezone (specific non-location)
@@ -655,7 +655,7 @@ const Sr = {
655
655
  return "GMT" + Am(r, ":");
656
656
  case "zzzz":
657
657
  default:
658
- return "GMT" + ai(r, ":");
658
+ return "GMT" + si(r, ":");
659
659
  }
660
660
  },
661
661
  // Seconds timestamp
@@ -673,9 +673,9 @@ function Am(t, e = "") {
673
673
  return o === 0 ? n + String(i) : n + String(i) + e + Qe(o, 2);
674
674
  }
675
675
  function Tm(t, e) {
676
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + Qe(Math.abs(t) / 60, 2) : ai(t, e);
676
+ return t % 60 === 0 ? (t > 0 ? "-" : "+") + Qe(Math.abs(t) / 60, 2) : si(t, e);
677
677
  }
678
- function ai(t, e = "") {
678
+ function si(t, e = "") {
679
679
  const n = t > 0 ? "-" : "+", r = Math.abs(t), i = Qe(Math.trunc(r / 60), 2), o = Qe(r % 60, 2);
680
680
  return n + i + e + o;
681
681
  }
@@ -2525,8 +2525,8 @@ function ZT(t) {
2525
2525
  It.days.map((rt) => {
2526
2526
  const { date: Gt } = rt, Ae = _(rt);
2527
2527
  if (Ae[it.focused] = !Ae.hidden && !!(N != null && N.isEqualTo(rt)), Ae[Mn.selected] = !Ae.disabled && ((z == null ? void 0 : z(Gt)) || Ae.selected), Mp(D)) {
2528
- const { from: In, to: ri } = D;
2529
- Ae[Mn.range_start] = !!(In && ri && i.isSameDay(Gt, In)), Ae[Mn.range_end] = !!(In && ri && i.isSameDay(Gt, ri)), Ae[Mn.range_middle] = cr(D, Gt, !0, i);
2528
+ const { from: In, to: ii } = D;
2529
+ Ae[Mn.range_start] = !!(In && ii && i.isSameDay(Gt, In)), Ae[Mn.range_end] = !!(In && ii && i.isSameDay(Gt, ii)), Ae[Mn.range_middle] = cr(D, Gt, !0, i);
2530
2530
  }
2531
2531
  const Ki = lT(Ae, b, t.modifiersStyles), Uo = CA(Ae, a, t.modifiersClassNames), Zt = !re && !Ae.hidden ? $(Gt, Ae, i.options, i) : void 0;
2532
2532
  return oe.createElement(e.Day, { key: `${i.format(Gt, "yyyy-MM-dd")}_${i.format(rt.displayMonth, "yyyy-MM")}`, day: rt, modifiers: Ae, className: Uo.join(" "), style: Ki, role: "gridcell", "aria-selected": Ae.selected || void 0, "aria-label": Zt, "data-day": i.format(Gt, "yyyy-MM-dd"), "data-month": rt.outside ? i.format(Gt, "yyyy-MM") : void 0, "data-selected": Ae.selected || void 0, "data-disabled": Ae.disabled || void 0, "data-hidden": Ae.hidden || void 0, "data-outside": rt.outside || void 0, "data-focused": Ae.focused || void 0, "data-today": Ae.today || void 0 }, !Ae.hidden && re ? oe.createElement(e.DayButton, { className: a[Te.DayButton], style: b == null ? void 0 : b[Te.DayButton], type: "button", day: rt, modifiers: Ae, disabled: Ae.disabled || void 0, tabIndex: W(rt) ? 0 : -1, "aria-label": q(Gt, Ae, i.options, i), onClick: we(rt, Ae), onBlur: U(rt, Ae), onFocus: ae(rt, Ae), onKeyDown: ee(rt, Ae), onMouseEnter: K(rt, Ae), onMouseLeave: Q(rt, Ae) }, y(Gt, i.options, i)) : !Ae.hidden && y(rt.date, i.options, i));
@@ -2837,11 +2837,11 @@ Ao.translateY = Ao.y;
2837
2837
  const qy = (t) => (e) => e.test(t), xM = {
2838
2838
  test: (t) => t === "auto",
2839
2839
  parse: (t) => t
2840
- }, Qy = [zo, Me, Un, Er, mM, hM, xM], Wm = (t) => Qy.find(qy(t)), Ii = /* @__PURE__ */ new Set();
2840
+ }, Qy = [zo, Me, Un, Er, mM, hM, xM], Wm = (t) => Qy.find(qy(t)), Ai = /* @__PURE__ */ new Set();
2841
2841
  let _d = !1, Wd = !1;
2842
2842
  function ex() {
2843
2843
  if (Wd) {
2844
- const t = Array.from(Ii).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
2844
+ const t = Array.from(Ai).filter((r) => r.needsMeasurement), e = new Set(t.map((r) => r.element)), n = /* @__PURE__ */ new Map();
2845
2845
  e.forEach((r) => {
2846
2846
  const i = yM(r);
2847
2847
  i.length && (n.set(r, i), r.render());
@@ -2856,10 +2856,10 @@ function ex() {
2856
2856
  r.suspendedScrollY !== void 0 && window.scrollTo(0, r.suspendedScrollY);
2857
2857
  });
2858
2858
  }
2859
- Wd = !1, _d = !1, Ii.forEach((t) => t.complete()), Ii.clear();
2859
+ Wd = !1, _d = !1, Ai.forEach((t) => t.complete()), Ai.clear();
2860
2860
  }
2861
2861
  function tx() {
2862
- Ii.forEach((t) => {
2862
+ Ai.forEach((t) => {
2863
2863
  t.readKeyframes(), t.needsMeasurement && (Wd = !0);
2864
2864
  });
2865
2865
  }
@@ -2871,7 +2871,7 @@ class jp {
2871
2871
  this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...e], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = a;
2872
2872
  }
2873
2873
  scheduleResolve() {
2874
- this.isScheduled = !0, this.isAsync ? (Ii.add(this), _d || (_d = !0, at.read(tx), at.resolveKeyframes(ex))) : (this.readKeyframes(), this.complete());
2874
+ this.isScheduled = !0, this.isAsync ? (Ai.add(this), _d || (_d = !0, at.read(tx), at.resolveKeyframes(ex))) : (this.readKeyframes(), this.complete());
2875
2875
  }
2876
2876
  readKeyframes() {
2877
2877
  const { unresolvedKeyframes: e, name: n, element: r, motionValue: i } = this;
@@ -2898,10 +2898,10 @@ class jp {
2898
2898
  measureEndState() {
2899
2899
  }
2900
2900
  complete() {
2901
- this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Ii.delete(this);
2901
+ this.isComplete = !0, this.onComplete(this.unresolvedKeyframes, this.finalKeyframe), Ai.delete(this);
2902
2902
  }
2903
2903
  cancel() {
2904
- this.isComplete || (this.isScheduled = !1, Ii.delete(this));
2904
+ this.isComplete || (this.isScheduled = !1, Ai.delete(this));
2905
2905
  }
2906
2906
  resume() {
2907
2907
  this.isComplete || this.scheduleResolve();
@@ -2924,7 +2924,7 @@ const SM = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
2924
2924
  }, kM = (t) => vr(0, 255, t), Su = {
2925
2925
  ...zo,
2926
2926
  transform: (t) => Math.round(kM(t))
2927
- }, mi = {
2927
+ }, gi = {
2928
2928
  test: /* @__PURE__ */ Lp("rgb", "red"),
2929
2929
  parse: /* @__PURE__ */ nx("red", "green", "blue"),
2930
2930
  transform: ({ red: t, green: e, blue: n, alpha: r = 1 }) => "rgba(" + Su.transform(t) + ", " + Su.transform(e) + ", " + Su.transform(n) + ", " + ya(La.transform(r)) + ")"
@@ -2941,15 +2941,15 @@ function EM(t) {
2941
2941
  const zd = {
2942
2942
  test: /* @__PURE__ */ Lp("#"),
2943
2943
  parse: EM,
2944
- transform: mi.transform
2944
+ transform: gi.transform
2945
2945
  }, so = {
2946
2946
  test: /* @__PURE__ */ Lp("hsl", "hue"),
2947
2947
  parse: /* @__PURE__ */ nx("hue", "saturation", "lightness"),
2948
2948
  transform: ({ hue: t, saturation: e, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(t) + ", " + Un.transform(ya(e)) + ", " + Un.transform(ya(n)) + ", " + ya(La.transform(r)) + ")"
2949
2949
  }, Wt = {
2950
- test: (t) => mi.test(t) || zd.test(t) || so.test(t),
2951
- parse: (t) => mi.test(t) ? mi.parse(t) : so.test(t) ? so.parse(t) : zd.parse(t),
2952
- transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? mi.transform(t) : so.transform(t)
2950
+ test: (t) => gi.test(t) || zd.test(t) || so.test(t),
2951
+ parse: (t) => gi.test(t) ? gi.parse(t) : so.test(t) ? so.parse(t) : zd.parse(t),
2952
+ transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? gi.transform(t) : so.transform(t)
2953
2953
  }, IM = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
2954
2954
  function AM(t) {
2955
2955
  var e, n;
@@ -3534,7 +3534,7 @@ function yl(t, e) {
3534
3534
  const Iu = (t, e, n) => {
3535
3535
  const r = t * t, i = n * (e * e - r) + r;
3536
3536
  return i < 0 ? 0 : Math.sqrt(i);
3537
- }, rO = [zd, mi, so], iO = (t) => rO.find((e) => e.test(t));
3537
+ }, rO = [zd, gi, so], iO = (t) => rO.find((e) => e.test(t));
3538
3538
  function Jm(t) {
3539
3539
  const e = iO(t);
3540
3540
  if (Wo(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
@@ -3547,7 +3547,7 @@ const Km = (t, e) => {
3547
3547
  if (!n || !r)
3548
3548
  return yl(t, e);
3549
3549
  const i = { ...n };
3550
- return (o) => (i.red = Iu(n.red, r.red, o), i.green = Iu(n.green, r.green, o), i.blue = Iu(n.blue, r.blue, o), i.alpha = dt(n.alpha, r.alpha, o), mi.transform(i));
3550
+ return (o) => (i.red = Iu(n.red, r.red, o), i.green = Iu(n.green, r.green, o), i.blue = Iu(n.blue, r.blue, o), i.alpha = dt(n.alpha, r.alpha, o), gi.transform(i));
3551
3551
  }, Yd = /* @__PURE__ */ new Set(["none", "hidden"]);
3552
3552
  function oO(t, e) {
3553
3553
  return Yd.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
@@ -4588,7 +4588,7 @@ function YO(t) {
4588
4588
  function ZO(t, e) {
4589
4589
  return typeof e == "string" ? e !== t : Array.isArray(e) ? !jy(e, t) : !1;
4590
4590
  }
4591
- function ii(t = !1) {
4591
+ function oi(t = !1) {
4592
4592
  return {
4593
4593
  isActive: t,
4594
4594
  protectedKeys: {},
@@ -4598,23 +4598,23 @@ function ii(t = !1) {
4598
4598
  }
4599
4599
  function tg() {
4600
4600
  return {
4601
- animate: ii(!0),
4602
- whileInView: ii(),
4603
- whileHover: ii(),
4604
- whileTap: ii(),
4605
- whileDrag: ii(),
4606
- whileFocus: ii(),
4607
- exit: ii()
4601
+ animate: oi(!0),
4602
+ whileInView: oi(),
4603
+ whileHover: oi(),
4604
+ whileTap: oi(),
4605
+ whileDrag: oi(),
4606
+ whileFocus: oi(),
4607
+ exit: oi()
4608
4608
  };
4609
4609
  }
4610
- class qr {
4610
+ class Qr {
4611
4611
  constructor(e) {
4612
4612
  this.isMounted = !1, this.node = e;
4613
4613
  }
4614
4614
  update() {
4615
4615
  }
4616
4616
  }
4617
- class UO extends qr {
4617
+ class UO extends Qr {
4618
4618
  /**
4619
4619
  * We dynamically generate the AnimationState manager as it contains a reference
4620
4620
  * to the underlying animation library. We only want to load that if we load this,
@@ -4643,7 +4643,7 @@ class UO extends qr {
4643
4643
  }
4644
4644
  }
4645
4645
  let JO = 0;
4646
- class KO extends qr {
4646
+ class KO extends Qr {
4647
4647
  constructor() {
4648
4648
  super(...arguments), this.id = JO++;
4649
4649
  }
@@ -4962,7 +4962,7 @@ const hg = () => ({
4962
4962
  x: mg(),
4963
4963
  y: mg()
4964
4964
  });
4965
- function bn(t) {
4965
+ function vn(t) {
4966
4966
  return [t("x"), t("y")];
4967
4967
  }
4968
4968
  function Dx({ top: t, left: e, right: n, bottom: r }) {
@@ -4991,7 +4991,7 @@ function Ou(t) {
4991
4991
  function qd({ scale: t, scaleX: e, scaleY: n }) {
4992
4992
  return !Ou(t) || !Ou(e) || !Ou(n);
4993
4993
  }
4994
- function si(t) {
4994
+ function li(t) {
4995
4995
  return qd(t) || Rx(t) || t.z || t.rotate || t.rotateX || t.rotateY || t.skewX || t.skewY;
4996
4996
  }
4997
4997
  function Rx(t) {
@@ -5026,7 +5026,7 @@ function kP(t, e, n, r = !1) {
5026
5026
  l && l.props.style && l.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && fo(t, {
5027
5027
  x: -o.scroll.offset.x,
5028
5028
  y: -o.scroll.offset.y
5029
- }), a && (e.x *= a.x.scale, e.y *= a.y.scale, Nx(t, a)), r && si(o.latestValues) && fo(t, o.latestValues));
5029
+ }), a && (e.x *= a.x.scale, e.y *= a.y.scale, Nx(t, a)), r && li(o.latestValues) && fo(t, o.latestValues));
5030
5030
  }
5031
5031
  e.x < yg && e.x > bg && (e.x = 1), e.y < yg && e.y > bg && (e.y = 1);
5032
5032
  }
@@ -5063,7 +5063,7 @@ class AP {
5063
5063
  const { drag: f, dragPropagation: p, onDragStart: h } = this.getProps();
5064
5064
  if (f && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = oP(f), !this.openDragLock))
5065
5065
  return;
5066
- this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), bn((g) => {
5066
+ this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), vn((g) => {
5067
5067
  let v = this.getAxisMotionValue(g).get() || 0;
5068
5068
  if (Un.test(v)) {
5069
5069
  const { projection: b } = this.visualElement;
@@ -5086,7 +5086,7 @@ class AP {
5086
5086
  return;
5087
5087
  }
5088
5088
  this.updateAxis("x", d.point, g), this.updateAxis("y", d.point, g), this.visualElement.render(), m && m(u, d);
5089
- }, s = (u, d) => this.stop(u, d), l = () => bn((u) => {
5089
+ }, s = (u, d) => this.stop(u, d), l = () => vn((u) => {
5090
5090
  var d;
5091
5091
  return this.getAnimationState(u) === "paused" && ((d = this.getAxisMotionValue(u).animation) === null || d === void 0 ? void 0 : d.play());
5092
5092
  }), { dragSnapToOrigin: c } = this.getProps();
@@ -5129,7 +5129,7 @@ class AP {
5129
5129
  resolveConstraints() {
5130
5130
  var e;
5131
5131
  const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
5132
- n && lo(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = vP(i.layoutBox, n) : this.constraints = !1, this.elastic = CP(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && bn((a) => {
5132
+ n && lo(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = vP(i.layoutBox, n) : this.constraints = !1, this.elastic = CP(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && vn((a) => {
5133
5133
  this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] = xP(i.layoutBox[a], this.constraints[a]));
5134
5134
  });
5135
5135
  }
@@ -5151,7 +5151,7 @@ class AP {
5151
5151
  return a;
5152
5152
  }
5153
5153
  startAnimation(e) {
5154
- const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: a, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = bn((u) => {
5154
+ const { drag: n, dragMomentum: r, dragElastic: i, dragTransition: o, dragSnapToOrigin: a, onDragTransitionEnd: s } = this.getProps(), l = this.constraints || {}, c = vn((u) => {
5155
5155
  if (!Fs(u, n, this.currentDirection))
5156
5156
  return;
5157
5157
  let d = l && l[u] || {};
@@ -5176,10 +5176,10 @@ class AP {
5176
5176
  return Ud(this.visualElement, e), r.start(Yp(e, r, 0, n, this.visualElement, !1));
5177
5177
  }
5178
5178
  stopAnimation() {
5179
- bn((e) => this.getAxisMotionValue(e).stop());
5179
+ vn((e) => this.getAxisMotionValue(e).stop());
5180
5180
  }
5181
5181
  pauseAnimation() {
5182
- bn((e) => {
5182
+ vn((e) => {
5183
5183
  var n;
5184
5184
  return (n = this.getAxisMotionValue(e).animation) === null || n === void 0 ? void 0 : n.pause();
5185
5185
  });
@@ -5199,7 +5199,7 @@ class AP {
5199
5199
  return i || this.visualElement.getValue(e, (r.initial ? r.initial[e] : void 0) || 0);
5200
5200
  }
5201
5201
  snapToCursor(e) {
5202
- bn((n) => {
5202
+ vn((n) => {
5203
5203
  const { drag: r } = this.getProps();
5204
5204
  if (!Fs(n, r, this.currentDirection))
5205
5205
  return;
@@ -5223,7 +5223,7 @@ class AP {
5223
5223
  return;
5224
5224
  this.stopAnimation();
5225
5225
  const i = { x: 0, y: 0 };
5226
- bn((a) => {
5226
+ vn((a) => {
5227
5227
  const s = this.getAxisMotionValue(a);
5228
5228
  if (s && this.constraints !== !1) {
5229
5229
  const l = s.get();
@@ -5231,7 +5231,7 @@ class AP {
5231
5231
  }
5232
5232
  });
5233
5233
  const { transformTemplate: o } = this.visualElement.getProps();
5234
- this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), bn((a) => {
5234
+ this.visualElement.current.style.transform = o ? o({}, "") : "none", r.root && r.root.updateScroll(), r.updateLayout(), this.resolveConstraints(), vn((a) => {
5235
5235
  if (!Fs(a, e, null))
5236
5236
  return;
5237
5237
  const s = this.getAxisMotionValue(a), { min: l, max: c } = this.constraints[a];
@@ -5251,7 +5251,7 @@ class AP {
5251
5251
  }, { projection: i } = this.visualElement, o = i.addEventListener("measure", r);
5252
5252
  i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), at.read(r);
5253
5253
  const a = Wa(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", ({ delta: l, hasLayoutChanged: c }) => {
5254
- this.isDragging && c && (bn((u) => {
5254
+ this.isDragging && c && (vn((u) => {
5255
5255
  const d = this.getAxisMotionValue(u);
5256
5256
  d && (this.originPoint[u] += l[u].translate, d.set(d.get() + l[u].translate));
5257
5257
  }), this.visualElement.render());
@@ -5280,7 +5280,7 @@ function TP(t, e = 10) {
5280
5280
  let n = null;
5281
5281
  return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
5282
5282
  }
5283
- class MP extends qr {
5283
+ class MP extends Qr {
5284
5284
  constructor(e) {
5285
5285
  super(e), this.removeGroupControls = an, this.removeListeners = an, this.controls = new AP(e);
5286
5286
  }
@@ -5295,7 +5295,7 @@ class MP extends qr {
5295
5295
  const Cg = (t) => (e, n) => {
5296
5296
  t && at.postRender(() => t(e, n));
5297
5297
  };
5298
- class OP extends qr {
5298
+ class OP extends Qr {
5299
5299
  constructor() {
5300
5300
  super(...arguments), this.removePointerDownListener = an;
5301
5301
  }
@@ -5464,7 +5464,7 @@ function Gx(t, e, n) {
5464
5464
  function Ig(t, e) {
5465
5465
  t.min = e.min, t.max = e.max;
5466
5466
  }
5467
- function gn(t, e) {
5467
+ function mn(t, e) {
5468
5468
  Ig(t.x, e.x), Ig(t.y, e.y);
5469
5469
  }
5470
5470
  function Ag(t, e) {
@@ -5607,7 +5607,7 @@ function JP(t, e, n) {
5607
5607
  const r = Ht(t) ? t : _a(t);
5608
5608
  return r.start(Yp("", r, e, n)), r.animation;
5609
5609
  }
5610
- const li = {
5610
+ const ci = {
5611
5611
  type: "projectionFrame",
5612
5612
  totalNodes: 0,
5613
5613
  resolvedTargetDeltas: 0,
@@ -5638,7 +5638,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5638
5638
  this.id = qP++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
5639
5639
  this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
5640
5640
  }, this.updateProjection = () => {
5641
- this.projectionUpdateScheduled = !1, ua && (li.totalNodes = li.resolvedTargetDeltas = li.recalculatedProjection = 0), this.nodes.forEach(tD), this.nodes.forEach(aD), this.nodes.forEach(sD), this.nodes.forEach(nD), ua && window.MotionDebug.record(li);
5641
+ this.projectionUpdateScheduled = !1, ua && (ci.totalNodes = ci.resolvedTargetDeltas = ci.recalculatedProjection = 0), this.nodes.forEach(tD), this.nodes.forEach(aD), this.nodes.forEach(sD), this.nodes.forEach(nD), ua && window.MotionDebug.record(ci);
5642
5642
  }, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = a, this.root = s ? s.root || s : this, this.path = s ? [...s.path, s] : [], this.parent = s, this.depth = s ? s.depth + 1 : 0;
5643
5643
  for (let l = 0; l < this.path.length; l++)
5644
5644
  this.path[l].shouldResetTransform = !0;
@@ -5789,7 +5789,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5789
5789
  if (!i)
5790
5790
  return;
5791
5791
  const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, s = this.projectionDelta && !_x(this.projectionDelta), l = this.getTransformTemplate(), c = l ? l(this.latestValues, "") : void 0, u = c !== this.prevTransformTemplateValue;
5792
- a && (s || si(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
5792
+ a && (s || li(this.latestValues) || u) && (i(this.instance, c), this.shouldResetTransform = !1, this.scheduleRender());
5793
5793
  }
5794
5794
  measure(a = !0) {
5795
5795
  const s = this.measurePageBox();
@@ -5817,38 +5817,38 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5817
5817
  removeElementScroll(a) {
5818
5818
  var s;
5819
5819
  const l = gt();
5820
- if (gn(l, a), !((s = this.scroll) === null || s === void 0) && s.wasRoot)
5820
+ if (mn(l, a), !((s = this.scroll) === null || s === void 0) && s.wasRoot)
5821
5821
  return l;
5822
5822
  for (let c = 0; c < this.path.length; c++) {
5823
5823
  const u = this.path[c], { scroll: d, options: f } = u;
5824
- u !== this.root && d && f.layoutScroll && (d.wasRoot && gn(l, a), uo(l.x, d.offset.x), uo(l.y, d.offset.y));
5824
+ u !== this.root && d && f.layoutScroll && (d.wasRoot && mn(l, a), uo(l.x, d.offset.x), uo(l.y, d.offset.y));
5825
5825
  }
5826
5826
  return l;
5827
5827
  }
5828
5828
  applyTransform(a, s = !1) {
5829
5829
  const l = gt();
5830
- gn(l, a);
5830
+ mn(l, a);
5831
5831
  for (let c = 0; c < this.path.length; c++) {
5832
5832
  const u = this.path[c];
5833
5833
  !s && u.options.layoutScroll && u.scroll && u !== u.root && fo(l, {
5834
5834
  x: -u.scroll.offset.x,
5835
5835
  y: -u.scroll.offset.y
5836
- }), si(u.latestValues) && fo(l, u.latestValues);
5836
+ }), li(u.latestValues) && fo(l, u.latestValues);
5837
5837
  }
5838
- return si(this.latestValues) && fo(l, this.latestValues), l;
5838
+ return li(this.latestValues) && fo(l, this.latestValues), l;
5839
5839
  }
5840
5840
  removeTransform(a) {
5841
5841
  const s = gt();
5842
- gn(s, a);
5842
+ mn(s, a);
5843
5843
  for (let l = 0; l < this.path.length; l++) {
5844
5844
  const c = this.path[l];
5845
- if (!c.instance || !si(c.latestValues))
5845
+ if (!c.instance || !li(c.latestValues))
5846
5846
  continue;
5847
5847
  qd(c.latestValues) && c.updateSnapshot();
5848
5848
  const u = gt(), d = c.measurePageBox();
5849
- gn(u, d), Og(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
5849
+ mn(u, d), Og(s, c.latestValues, c.snapshot ? c.snapshot.layoutBox : void 0, u);
5850
5850
  }
5851
- return si(this.latestValues) && Og(s, this.latestValues), s;
5851
+ return li(this.latestValues) && Og(s, this.latestValues), s;
5852
5852
  }
5853
5853
  setTargetDelta(a) {
5854
5854
  this.targetDelta = a, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
@@ -5877,15 +5877,15 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5877
5877
  if (!(!this.layout || !(d || f))) {
5878
5878
  if (this.resolvedRelativeTargetAt = Rt.timestamp, !this.targetDelta && !this.relativeTarget) {
5879
5879
  const p = this.getClosestProjectingParent();
5880
- p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gt(), this.relativeTargetOrigin = gt(), wa(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), gn(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5880
+ p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gt(), this.relativeTargetOrigin = gt(), wa(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), mn(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5881
5881
  }
5882
5882
  if (!(!this.relativeTarget && !this.targetDelta)) {
5883
- if (this.target || (this.target = gt(), this.targetWithTransforms = gt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), mP(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : gn(this.target, this.layout.layoutBox), Nx(this.target, this.targetDelta)) : gn(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
5883
+ if (this.target || (this.target = gt(), this.targetWithTransforms = gt()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), mP(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : mn(this.target, this.layout.layoutBox), Nx(this.target, this.targetDelta)) : mn(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
5884
5884
  this.attemptToResolveRelativeTarget = !1;
5885
5885
  const p = this.getClosestProjectingParent();
5886
- p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gt(), this.relativeTargetOrigin = gt(), wa(this.relativeTargetOrigin, this.target, p.target), gn(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5886
+ p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gt(), this.relativeTargetOrigin = gt(), wa(this.relativeTargetOrigin, this.target, p.target), mn(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
5887
5887
  }
5888
- ua && li.resolvedTargetDeltas++;
5888
+ ua && ci.resolvedTargetDeltas++;
5889
5889
  }
5890
5890
  }
5891
5891
  }
@@ -5905,7 +5905,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5905
5905
  const { layout: u, layoutId: d } = this.options;
5906
5906
  if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(u || d))
5907
5907
  return;
5908
- gn(this.layoutCorrected, this.layout.layoutBox);
5908
+ mn(this.layoutCorrected, this.layout.layoutBox);
5909
5909
  const f = this.treeScale.x, p = this.treeScale.y;
5910
5910
  kP(this.layoutCorrected, this.treeScale, this.path, l), s.layout && !s.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (s.target = s.layout.layoutBox, s.targetWithTransforms = gt());
5911
5911
  const { target: h } = s;
@@ -5913,7 +5913,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5913
5913
  this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
5914
5914
  return;
5915
5915
  }
5916
- !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ag(this.prevProjectionDelta.x, this.projectionDelta.x), Ag(this.prevProjectionDelta.y, this.projectionDelta.y)), Ca(this.projectionDelta, this.layoutCorrected, h, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== p || !Fg(this.projectionDelta.x, this.prevProjectionDelta.x) || !Fg(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", h)), ua && li.recalculatedProjection++;
5916
+ !this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Ag(this.prevProjectionDelta.x, this.projectionDelta.x), Ag(this.prevProjectionDelta.y, this.projectionDelta.y)), Ca(this.projectionDelta, this.layoutCorrected, h, this.latestValues), (this.treeScale.x !== f || this.treeScale.y !== p || !Fg(this.projectionDelta.x, this.prevProjectionDelta.x) || !Fg(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", h)), ua && ci.recalculatedProjection++;
5917
5917
  }
5918
5918
  hide() {
5919
5919
  this.isVisible = !1;
@@ -5940,7 +5940,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5940
5940
  let w;
5941
5941
  this.mixTargetDelta = (y) => {
5942
5942
  const x = y / 1e3;
5943
- Lg(d.x, a.x, x), Lg(d.y, a.y, x), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wa(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), uD(this.relativeTarget, this.relativeTargetOrigin, f, x), w && zP(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = gt()), gn(w, this.relativeTarget)), m && (this.animationValues = u, jP(u, c, this.latestValues, x, b, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
5943
+ Lg(d.x, a.x, x), Lg(d.y, a.y, x), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (wa(f, this.layout.layoutBox, this.relativeParent.layout.layoutBox), uD(this.relativeTarget, this.relativeTargetOrigin, f, x), w && zP(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = gt()), mn(w, this.relativeTarget)), m && (this.animationValues = u, jP(u, c, this.latestValues, x, b, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = x;
5944
5944
  }, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
5945
5945
  }
5946
5946
  startAnimation(a) {
@@ -5975,7 +5975,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
5975
5975
  const f = pn(this.layout.layoutBox.y);
5976
5976
  l.y.min = a.target.y.min, l.y.max = l.y.min + f;
5977
5977
  }
5978
- gn(s, l), fo(s, u), Ca(this.projectionDeltaWithTransform, this.layoutCorrected, s, u);
5978
+ mn(s, l), fo(s, u), Ca(this.projectionDeltaWithTransform, this.layoutCorrected, s, u);
5979
5979
  }
5980
5980
  }
5981
5981
  registerSharedNode(a, s) {
@@ -6044,7 +6044,7 @@ function Hx({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
6044
6044
  const d = this.getLead();
6045
6045
  if (!this.projectionDelta || !this.layout || !d.target) {
6046
6046
  const m = {};
6047
- return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = rl(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !si(this.latestValues) && (m.transform = u ? u({}, "") : "none", this.hasProjected = !1), m;
6047
+ return this.options.layoutId && (m.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, m.pointerEvents = rl(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !li(this.latestValues) && (m.transform = u ? u({}, "") : "none", this.hasProjected = !1), m;
6048
6048
  }
6049
6049
  const f = d.animationValues || d.latestValues;
6050
6050
  this.applyTransformsToTarget(), c.transform = $P(this.projectionDeltaWithTransform, this.treeScale, f), u && (c.transform = u(f, c.transform));
@@ -6083,10 +6083,10 @@ function eD(t) {
6083
6083
  const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
6084
6084
  if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
6085
6085
  const { layoutBox: r, measuredBox: i } = t.layout, { animationType: o } = t.options, a = n.source !== t.layout.source;
6086
- o === "size" ? bn((d) => {
6086
+ o === "size" ? vn((d) => {
6087
6087
  const f = a ? n.measuredBox[d] : n.layoutBox[d], p = pn(f);
6088
6088
  f.min = r[d].min, f.max = f.min + p;
6089
- }) : $x(o, n.layoutBox, r) && bn((d) => {
6089
+ }) : $x(o, n.layoutBox, r) && vn((d) => {
6090
6090
  const f = a ? n.measuredBox[d] : n.layoutBox[d], p = pn(r[d]);
6091
6091
  f.max = f.min + p, t.relativeTarget && !t.currentAnimation && (t.isProjectionDirty = !0, t.relativeTarget[d].max = t.relativeTarget[d].min + p);
6092
6092
  });
@@ -6123,7 +6123,7 @@ function eD(t) {
6123
6123
  t.options.transition = void 0;
6124
6124
  }
6125
6125
  function tD(t) {
6126
- ua && li.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
6126
+ ua && ci.totalNodes++, t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
6127
6127
  }
6128
6128
  function nD(t) {
6129
6129
  t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
@@ -6226,7 +6226,7 @@ function Hg(t, e, n) {
6226
6226
  const i = "onHover" + n, o = r[i];
6227
6227
  o && at.postRender(() => o(e, bs(e)));
6228
6228
  }
6229
- class vD extends qr {
6229
+ class vD extends Qr {
6230
6230
  mount() {
6231
6231
  const { current: e } = this.node;
6232
6232
  e && (this.unmount = eP(e, (n) => (Hg(this.node, n, "Start"), (r) => Hg(this.node, r, "End"))));
@@ -6234,7 +6234,7 @@ class vD extends qr {
6234
6234
  unmount() {
6235
6235
  }
6236
6236
  }
6237
- class bD extends qr {
6237
+ class bD extends Qr {
6238
6238
  constructor() {
6239
6239
  super(...arguments), this.isActive = !1;
6240
6240
  }
@@ -6262,7 +6262,7 @@ function $g(t, e, n) {
6262
6262
  const i = "onTap" + (n === "End" ? "" : n), o = r[i];
6263
6263
  o && at.postRender(() => o(e, bs(e)));
6264
6264
  }
6265
- class yD extends qr {
6265
+ class yD extends Qr {
6266
6266
  mount() {
6267
6267
  const { current: e } = this.node;
6268
6268
  e && (this.unmount = iP(e, (n) => ($g(this.node, n, "Start"), (r, { success: i }) => $g(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
@@ -6292,7 +6292,7 @@ const kD = {
6292
6292
  some: 0,
6293
6293
  all: 1
6294
6294
  };
6295
- class ED extends qr {
6295
+ class ED extends Qr {
6296
6296
  constructor() {
6297
6297
  super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
6298
6298
  }
@@ -7724,7 +7724,7 @@ var _c = "Tooltip", [BR, Wc] = Lc(_c), g1 = (t) => {
7724
7724
  onOpenChange: o,
7725
7725
  disableHoverableContent: a,
7726
7726
  delayDuration: s
7727
- } = t, l = uh(_c, t.__scopeTooltip), c = Gc(e), [u, d] = j.useState(null), f = Sp(), p = j.useRef(0), h = a ?? l.disableHoverableContent, m = s ?? l.delayDuration, g = j.useRef(!1), [v = !1, b] = _i({
7727
+ } = t, l = uh(_c, t.__scopeTooltip), c = Gc(e), [u, d] = j.useState(null), f = Sp(), p = j.useRef(0), h = a ?? l.disableHoverableContent, m = s ?? l.delayDuration, g = j.useRef(!1), [v = !1, b] = Wi({
7728
7728
  prop: r,
7729
7729
  defaultProp: i,
7730
7730
  onChange: (E) => {
@@ -7766,7 +7766,7 @@ var _c = "Tooltip", [BR, Wc] = Lc(_c), g1 = (t) => {
7766
7766
  g1.displayName = _c;
7767
7767
  var rf = "TooltipTrigger", v1 = j.forwardRef(
7768
7768
  (t, e) => {
7769
- const { __scopeTooltip: n, ...r } = t, i = Wc(rf, n), o = uh(rf, n), a = Gc(n), s = j.useRef(null), l = En(e, s, i.onTriggerChange), c = j.useRef(!1), u = j.useRef(!1), d = j.useCallback(() => c.current = !1, []);
7769
+ const { __scopeTooltip: n, ...r } = t, i = Wc(rf, n), o = uh(rf, n), a = Gc(n), s = j.useRef(null), l = kn(e, s, i.onTriggerChange), c = j.useRef(!1), u = j.useRef(!1), d = j.useCallback(() => c.current = !1, []);
7770
7770
  return j.useEffect(() => () => document.removeEventListener("pointerup", d), [d]), /* @__PURE__ */ T.jsx(ME, { asChild: !0, ...a, children: /* @__PURE__ */ T.jsx(
7771
7771
  kt.button,
7772
7772
  {
@@ -7801,7 +7801,7 @@ var jR = "TooltipPortal", [F6, VR] = Lc(jR, {
7801
7801
  return /* @__PURE__ */ T.jsx(Ic, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ T.jsx(y1, { side: i, ...o, ref: e }) : /* @__PURE__ */ T.jsx(LR, { side: i, ...o, ref: e }) });
7802
7802
  }
7803
7803
  ), LR = j.forwardRef((t, e) => {
7804
- const n = Wc(Oo, t.__scopeTooltip), r = uh(Oo, t.__scopeTooltip), i = j.useRef(null), o = En(e, i), [a, s] = j.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = j.useCallback(() => {
7804
+ const n = Wc(Oo, t.__scopeTooltip), r = uh(Oo, t.__scopeTooltip), i = j.useRef(null), o = kn(e, i), [a, s] = j.useState(null), { trigger: l, onClose: c } = n, u = i.current, { onPointerInTransitChange: d } = r, f = j.useCallback(() => {
7805
7805
  s(null), d(!1);
7806
7806
  }, [d]), p = j.useCallback(
7807
7807
  (h, m) => {
@@ -8058,7 +8058,7 @@ var iN = j.forwardRef((t, e) => {
8058
8058
  onEntryFocus: c,
8059
8059
  preventScrollOnEntryFocus: u = !1,
8060
8060
  ...d
8061
- } = t, f = j.useRef(null), p = En(e, f), h = Ac(o), [m = null, g] = _i({
8061
+ } = t, f = j.useRef(null), p = kn(e, f), h = Ac(o), [m = null, g] = Wi({
8062
8062
  prop: a,
8063
8063
  defaultProp: s,
8064
8064
  onChange: l
@@ -8213,7 +8213,7 @@ var T1 = k1, M1 = I1, dh = "Tabs", [cN, j6] = Jr(dh, [
8213
8213
  dir: s,
8214
8214
  activationMode: l = "automatic",
8215
8215
  ...c
8216
- } = t, u = Ac(s), [d, f] = _i({
8216
+ } = t, u = Ac(s), [d, f] = Wi({
8217
8217
  prop: r,
8218
8218
  onChange: i,
8219
8219
  defaultProp: o
@@ -8479,7 +8479,7 @@ let br = $c.bind({ k: 1 });
8479
8479
  function kN(t, e, n, r) {
8480
8480
  Or.p = e, _1 = t, af = n, sf = r;
8481
8481
  }
8482
- function Qr(t, e) {
8482
+ function ei(t, e) {
8483
8483
  let n = this || {};
8484
8484
  return function() {
8485
8485
  let r = arguments;
@@ -8620,7 +8620,7 @@ from {
8620
8620
  to {
8621
8621
  transform: scale(1) rotate(90deg);
8622
8622
  opacity: 1;
8623
- }`, VN = Qr("div")`
8623
+ }`, VN = ei("div")`
8624
8624
  width: 20px;
8625
8625
  opacity: 0;
8626
8626
  height: 20px;
@@ -8660,7 +8660,7 @@ to {
8660
8660
  to {
8661
8661
  transform: rotate(360deg);
8662
8662
  }
8663
- `, GN = Qr("div")`
8663
+ `, GN = ei("div")`
8664
8664
  width: 12px;
8665
8665
  height: 12px;
8666
8666
  box-sizing: border-box;
@@ -8691,7 +8691,7 @@ to {
8691
8691
  100% {
8692
8692
  opacity: 1;
8693
8693
  height: 10px;
8694
- }`, zN = Qr("div")`
8694
+ }`, zN = ei("div")`
8695
8695
  width: 20px;
8696
8696
  opacity: 0;
8697
8697
  height: 20px;
@@ -8718,9 +8718,9 @@ to {
8718
8718
  height: 10px;
8719
8719
  width: 6px;
8720
8720
  }
8721
- `, HN = Qr("div")`
8721
+ `, HN = ei("div")`
8722
8722
  position: absolute;
8723
- `, $N = Qr("div")`
8723
+ `, $N = ei("div")`
8724
8724
  position: relative;
8725
8725
  display: flex;
8726
8726
  justify-content: center;
@@ -8735,7 +8735,7 @@ from {
8735
8735
  to {
8736
8736
  transform: scale(1);
8737
8737
  opacity: 1;
8738
- }`, YN = Qr("div")`
8738
+ }`, YN = ei("div")`
8739
8739
  position: relative;
8740
8740
  transform: scale(0.6);
8741
8741
  opacity: 0.4;
@@ -8751,7 +8751,7 @@ to {
8751
8751
  `, JN = (t) => `
8752
8752
  0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
8753
8753
  100% {transform: translate3d(0,${t * -150}%,-1px) scale(.6); opacity:0;}
8754
- `, KN = "0%{opacity:0;} 100%{opacity:1;}", qN = "0%{opacity:1;} 100%{opacity:0;}", QN = Qr("div")`
8754
+ `, KN = "0%{opacity:0;} 100%{opacity:1;}", qN = "0%{opacity:1;} 100%{opacity:0;}", QN = ei("div")`
8755
8755
  display: flex;
8756
8756
  align-items: center;
8757
8757
  background: #fff;
@@ -8763,7 +8763,7 @@ to {
8763
8763
  pointer-events: auto;
8764
8764
  padding: 8px 10px;
8765
8765
  border-radius: 8px;
8766
- `, e2 = Qr("div")`
8766
+ `, e2 = ei("div")`
8767
8767
  display: flex;
8768
8768
  justify-content: center;
8769
8769
  margin: 4px 10px;
@@ -9055,7 +9055,7 @@ const s2 = Lo(
9055
9055
  }) => {
9056
9056
  const f = tn();
9057
9057
  return /* @__PURE__ */ T.jsx(
9058
- hn,
9058
+ En,
9059
9059
  {
9060
9060
  control: n,
9061
9061
  name: d.name,
@@ -9142,17 +9142,17 @@ function g2(t) {
9142
9142
  }) || (e = r, n = t.apply(void 0, r)), n;
9143
9143
  };
9144
9144
  }
9145
- function Ni(t) {
9145
+ function Fi(t) {
9146
9146
  return !!(t || "").match(/\d/);
9147
9147
  }
9148
- function Ai(t) {
9148
+ function Ti(t) {
9149
9149
  return t == null;
9150
9150
  }
9151
9151
  function v2(t) {
9152
9152
  return typeof t == "number" && isNaN(t);
9153
9153
  }
9154
9154
  function $1(t) {
9155
- return Ai(t) || v2(t) || typeof t == "number" && !isFinite(t);
9155
+ return Ti(t) || v2(t) || typeof t == "number" && !isFinite(t);
9156
9156
  }
9157
9157
  function X1(t) {
9158
9158
  return t.replace(/[-[\]/{}()*+?.\\^$|]/g, "\\$&");
@@ -9330,7 +9330,7 @@ function A2(t) {
9330
9330
  for (var e = Array.from({ length: t.length + 1 }).map(function() {
9331
9331
  return !0;
9332
9332
  }), n = 0, r = e.length; n < r; n++)
9333
- e[n] = !!(Ni(t[n]) || Ni(t[n - 1]));
9333
+ e[n] = !!(Fi(t[n]) || Fi(t[n - 1]));
9334
9334
  return e;
9335
9335
  }
9336
9336
  function q1(t, e, n, r, i, o) {
@@ -9339,14 +9339,14 @@ function q1(t, e, n, r, i, o) {
9339
9339
  var g, v;
9340
9340
  return $1(h) ? (v = "", g = "") : typeof h == "number" || m ? (v = typeof h == "number" ? Z1(h) : h, g = r(v)) : (v = i(h, void 0), g = r(v)), { formattedValue: g, numAsString: v };
9341
9341
  }), s = De(function() {
9342
- return a(Ai(t) ? e : t, n);
9342
+ return a(Ti(t) ? e : t, n);
9343
9343
  }), l = s[0], c = s[1], u = function(h, m) {
9344
9344
  h.formattedValue !== l.formattedValue && c({
9345
9345
  formattedValue: h.formattedValue,
9346
9346
  numAsString: h.value
9347
9347
  }), o(h, m);
9348
9348
  }, d = t, f = n;
9349
- Ai(t) && (d = l.numAsString, f = !0);
9349
+ Ti(t) && (d = l.numAsString, f = !0);
9350
9350
  var p = a(d, f);
9351
9351
  return Pe(function() {
9352
9352
  c(p);
@@ -9380,7 +9380,7 @@ function Q1(t) {
9380
9380
  var v = t.value, b = t.getCaretBoundary;
9381
9381
  b === void 0 && (b = A2);
9382
9382
  var w = t.isValidInputCharacter;
9383
- w === void 0 && (w = Ni);
9383
+ w === void 0 && (w = Fi);
9384
9384
  var y = t.isCharacterSame, x = ph(t, ["type", "displayType", "customInput", "renderText", "getInputRef", "format", "removeFormatting", "defaultValue", "valueIsNumericString", "onValueChange", "isAllowed", "onChange", "onKeyDown", "onMouseUp", "onFocus", "onBlur", "value", "getCaretBoundary", "isValidInputCharacter", "isCharacterSame"]), C = q1(v, l, !!c, a, s, u), E = C[0], S = E.formattedValue, k = E.numAsString, I = C[1], A = ye(), O = ye({ formattedValue: S, numAsString: k }), P = function(re, se) {
9385
9385
  O.current = { formattedValue: re.formattedValue, numAsString: re.value }, I(re, se);
9386
9386
  }, R = De(!1), V = R[0], B = R[1], F = ye(null), _ = ye({
@@ -9551,7 +9551,7 @@ function R2(t, e, n) {
9551
9551
  var a = n.suffix;
9552
9552
  a === void 0 && (a = "");
9553
9553
  var s = n.decimalScale, l = e.from, c = e.to, u = c.start, d = c.end, f = Xc(n), p = f.allowedDecimalSeparators, h = f.decimalSeparator, m = t[d] === h;
9554
- if (Ni(t) && (t === o || t === a) && e.lastValue === "")
9554
+ if (Fi(t) && (t === o || t === a) && e.lastValue === "")
9555
9555
  return t;
9556
9556
  if (d - u === 1 && p.indexOf(t[u]) !== -1) {
9557
9557
  var g = s === 0 ? "" : h;
@@ -9617,8 +9617,8 @@ function B2(t) {
9617
9617
  return av(B, t);
9618
9618
  }, w = function(B, F) {
9619
9619
  return R2(B, F, t);
9620
- }, y = Ai(d) ? u : d, x = f ?? D2(y, c, e);
9621
- Ai(d) ? Ai(u) || (x = x || typeof u == "number") : x = x || typeof d == "number";
9620
+ }, y = Ti(d) ? u : d, x = f ?? D2(y, c, e);
9621
+ Ti(d) ? Ti(u) || (x = x || typeof u == "number") : x = x || typeof d == "number";
9622
9622
  var C = function(B) {
9623
9623
  return $1(B) ? B : (typeof B == "number" && (B = Z1(B)), x && typeof s == "number" ? ov(B, s, !!l) : B);
9624
9624
  }, E = q1(C(d), C(u), !!x, b, w, p), S = E[0], k = S.numAsString, I = S.formattedValue, A = E[1], O = function(B) {
@@ -9649,7 +9649,7 @@ function B2(t) {
9649
9649
  }
9650
9650
  o(B);
9651
9651
  }, R = function(B) {
9652
- return B === g ? !0 : Ni(B);
9652
+ return B === g ? !0 : Fi(B);
9653
9653
  }, V = function(B) {
9654
9654
  var F = B.currentValue, _ = B.lastValue, z = B.formattedValue, M = B.currentValueIndex, D = B.formattedValueIndex, L = F[M], N = z[D], W = U1(_, F), X = W.to, Z = function(q) {
9655
9655
  return w(q).indexOf(".") + c.length;
@@ -9693,7 +9693,7 @@ function V2(t, e, n) {
9693
9693
  return r[g] === i;
9694
9694
  }, c = function(g, v) {
9695
9695
  for (var b = "", w = 0; w < g.length; w++)
9696
- l(v + w) && Ni(g[w]) && (b += g[w]);
9696
+ l(v + w) && Fi(g[w]) && (b += g[w]);
9697
9697
  return b;
9698
9698
  }, u = function(g) {
9699
9699
  return g.replace(/[^0-9]/g, "");
@@ -9703,7 +9703,7 @@ function V2(t, e, n) {
9703
9703
  if ((s === "" || o.end - o.start === s.length) && t.length === r.length) {
9704
9704
  for (var d = "", f = 0; f < t.length; f++)
9705
9705
  if (l(f))
9706
- Ni(t[f]) && (d += t[f]);
9706
+ Fi(t[f]) && (d += t[f]);
9707
9707
  else if (t[f] !== r[f])
9708
9708
  return u(t);
9709
9709
  return d;
@@ -9771,7 +9771,7 @@ function W2(t) {
9771
9771
  y = Tl(w, y, c(w), x);
9772
9772
  } else e[y] !== i && m !== "ArrowLeft" && m !== "ArrowRight" && (y = Tl(w, y + 1, c(w), "right"));
9773
9773
  y !== v && Pr(g, y), r(h);
9774
- }, d = Ai(o) ? a : o, f = s ?? _2(d, e), p = Object.assign(Object.assign({}, t), { valueIsNumericString: f });
9774
+ }, d = Ti(o) ? a : o, f = s ?? _2(d, e), p = Object.assign(Object.assign({}, t), { valueIsNumericString: f });
9775
9775
  return Object.assign(Object.assign({}, l), {
9776
9776
  value: o,
9777
9777
  defaultValue: a,
@@ -9830,7 +9830,7 @@ const H2 = (t, e) => ({ onValueChange: ({ inputValue: a, onChange: s, source: l
9830
9830
  }) => {
9831
9831
  const v = j.useId(), [b, w] = j.useState(!1), y = e && b && !!n, { onValueChange: x, onPaste: C, onFocus: E, onBlur: S } = H2(i, m);
9832
9832
  return /* @__PURE__ */ T.jsx(
9833
- hn,
9833
+ En,
9834
9834
  {
9835
9835
  control: r,
9836
9836
  name: g.name,
@@ -9913,7 +9913,7 @@ var mh = "Checkbox", [$2, $6] = Jr(mh), [X2, Y2] = $2(mh), tC = j.forwardRef(
9913
9913
  onCheckedChange: c,
9914
9914
  form: u,
9915
9915
  ...d
9916
- } = t, [f, p] = j.useState(null), h = En(e, (y) => p(y)), m = j.useRef(!1), g = f ? u || !!f.closest("form") : !0, [v = !1, b] = _i({
9916
+ } = t, [f, p] = j.useState(null), h = kn(e, (y) => p(y)), m = j.useRef(!1), g = f ? u || !!f.closest("form") : !0, [v = !1, b] = Wi({
9917
9917
  prop: i,
9918
9918
  defaultProp: o,
9919
9919
  onChange: c
@@ -10028,7 +10028,7 @@ const X6 = ({
10028
10028
  }) => {
10029
10029
  const a = j.useId();
10030
10030
  return /* @__PURE__ */ T.jsx(
10031
- hn,
10031
+ En,
10032
10032
  {
10033
10033
  name: o.name,
10034
10034
  control: t,
@@ -10108,7 +10108,7 @@ var gh = "Switch", [U2, Y6] = Jr(gh), [J2, K2] = U2(gh), sC = j.forwardRef(
10108
10108
  onCheckedChange: c,
10109
10109
  form: u,
10110
10110
  ...d
10111
- } = t, [f, p] = j.useState(null), h = En(e, (w) => p(w)), m = j.useRef(!1), g = f ? u || !!f.closest("form") : !0, [v = !1, b] = _i({
10111
+ } = t, [f, p] = j.useState(null), h = kn(e, (w) => p(w)), m = j.useRef(!1), g = f ? u || !!f.closest("form") : !0, [v = !1, b] = Wi({
10112
10112
  prop: i,
10113
10113
  defaultProp: o,
10114
10114
  onChange: c
@@ -10207,7 +10207,7 @@ const Z6 = ({
10207
10207
  }) => {
10208
10208
  const a = j.useId();
10209
10209
  return /* @__PURE__ */ T.jsx(
10210
- hn,
10210
+ En,
10211
10211
  {
10212
10212
  name: o.name,
10213
10213
  control: n,
@@ -10278,7 +10278,7 @@ const Z6 = ({
10278
10278
  }) => {
10279
10279
  const p = j.useId();
10280
10280
  return /* @__PURE__ */ T.jsx(
10281
- hn,
10281
+ En,
10282
10282
  {
10283
10283
  control: n,
10284
10284
  name: f.name,
@@ -10366,7 +10366,7 @@ function Q2(t) {
10366
10366
  const Cs = (t) => {
10367
10367
  var e;
10368
10368
  return (e = t == null ? void 0 : t.ownerDocument) !== null && e !== void 0 ? e : document;
10369
- }, gi = (t) => t && "window" in t && t.window === t ? t : Cs(t).defaultView || window;
10369
+ }, vi = (t) => t && "window" in t && t.window === t ? t : Cs(t).defaultView || window;
10370
10370
  function eF(t) {
10371
10371
  var e;
10372
10372
  return typeof window > "u" || window.navigator == null ? !1 : ((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands.some((n) => t.test(n.brand))) || t.test(window.navigator.userAgent);
@@ -10474,7 +10474,7 @@ function aF(t) {
10474
10474
  }
10475
10475
  };
10476
10476
  }
10477
- let ws = null, cf = /* @__PURE__ */ new Set(), Ea = /* @__PURE__ */ new Map(), Fi = !1, uf = !1;
10477
+ let ws = null, cf = /* @__PURE__ */ new Set(), Ea = /* @__PURE__ */ new Map(), Bi = !1, uf = !1;
10478
10478
  const sF = {
10479
10479
  Tab: !0,
10480
10480
  Escape: !0
@@ -10486,27 +10486,27 @@ function lF(t) {
10486
10486
  return !(t.metaKey || !nF() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
10487
10487
  }
10488
10488
  function Ml(t) {
10489
- Fi = !0, lF(t) && (ws = "keyboard", vh("keyboard", t));
10489
+ Bi = !0, lF(t) && (ws = "keyboard", vh("keyboard", t));
10490
10490
  }
10491
- function Cn(t) {
10492
- ws = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Fi = !0, vh("pointer", t));
10491
+ function xn(t) {
10492
+ ws = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Bi = !0, vh("pointer", t));
10493
10493
  }
10494
10494
  function gC(t) {
10495
- iF(t) && (Fi = !0, ws = "virtual");
10495
+ iF(t) && (Bi = !0, ws = "virtual");
10496
10496
  }
10497
10497
  function vC(t) {
10498
- t.target === window || t.target === document || (!Fi && !uf && (ws = "virtual", vh("virtual", t)), Fi = !1, uf = !1);
10498
+ t.target === window || t.target === document || (!Bi && !uf && (ws = "virtual", vh("virtual", t)), Bi = !1, uf = !1);
10499
10499
  }
10500
10500
  function bC() {
10501
- Fi = !1, uf = !0;
10501
+ Bi = !1, uf = !0;
10502
10502
  }
10503
10503
  function df(t) {
10504
- if (typeof window > "u" || Ea.get(gi(t))) return;
10505
- const e = gi(t), n = Cs(t);
10504
+ if (typeof window > "u" || Ea.get(vi(t))) return;
10505
+ const e = vi(t), n = Cs(t);
10506
10506
  let r = e.HTMLElement.prototype.focus;
10507
10507
  e.HTMLElement.prototype.focus = function() {
10508
- Fi = !0, r.apply(this, arguments);
10509
- }, n.addEventListener("keydown", Ml, !0), n.addEventListener("keyup", Ml, !0), n.addEventListener("click", gC, !0), e.addEventListener("focus", vC, !0), e.addEventListener("blur", bC, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", Cn, !0), n.addEventListener("pointermove", Cn, !0), n.addEventListener("pointerup", Cn, !0)) : (n.addEventListener("mousedown", Cn, !0), n.addEventListener("mousemove", Cn, !0), n.addEventListener("mouseup", Cn, !0)), e.addEventListener("beforeunload", () => {
10508
+ Bi = !0, r.apply(this, arguments);
10509
+ }, n.addEventListener("keydown", Ml, !0), n.addEventListener("keyup", Ml, !0), n.addEventListener("click", gC, !0), e.addEventListener("focus", vC, !0), e.addEventListener("blur", bC, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", xn, !0), n.addEventListener("pointermove", xn, !0), n.addEventListener("pointerup", xn, !0)) : (n.addEventListener("mousedown", xn, !0), n.addEventListener("mousemove", xn, !0), n.addEventListener("mouseup", xn, !0)), e.addEventListener("beforeunload", () => {
10510
10510
  yC(t);
10511
10511
  }, {
10512
10512
  once: !0
@@ -10515,8 +10515,8 @@ function df(t) {
10515
10515
  });
10516
10516
  }
10517
10517
  const yC = (t, e) => {
10518
- const n = gi(t), r = Cs(t);
10519
- e && r.removeEventListener("DOMContentLoaded", e), Ea.has(n) && (n.HTMLElement.prototype.focus = Ea.get(n).focus, r.removeEventListener("keydown", Ml, !0), r.removeEventListener("keyup", Ml, !0), r.removeEventListener("click", gC, !0), n.removeEventListener("focus", vC, !0), n.removeEventListener("blur", bC, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Cn, !0), r.removeEventListener("pointermove", Cn, !0), r.removeEventListener("pointerup", Cn, !0)) : (r.removeEventListener("mousedown", Cn, !0), r.removeEventListener("mousemove", Cn, !0), r.removeEventListener("mouseup", Cn, !0)), Ea.delete(n));
10518
+ const n = vi(t), r = Cs(t);
10519
+ e && r.removeEventListener("DOMContentLoaded", e), Ea.has(n) && (n.HTMLElement.prototype.focus = Ea.get(n).focus, r.removeEventListener("keydown", Ml, !0), r.removeEventListener("keyup", Ml, !0), r.removeEventListener("click", gC, !0), n.removeEventListener("focus", vC, !0), n.removeEventListener("blur", bC, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", xn, !0), r.removeEventListener("pointermove", xn, !0), r.removeEventListener("pointerup", xn, !0)) : (r.removeEventListener("mousedown", xn, !0), r.removeEventListener("mousemove", xn, !0), r.removeEventListener("mouseup", xn, !0)), Ea.delete(n));
10520
10520
  };
10521
10521
  function cF(t) {
10522
10522
  const e = Cs(t);
@@ -10542,7 +10542,7 @@ const uF = /* @__PURE__ */ new Set([
10542
10542
  ]);
10543
10543
  function dF(t, e, n) {
10544
10544
  var r;
10545
- const i = typeof window < "u" ? gi(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? gi(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? gi(n == null ? void 0 : n.target).HTMLElement : HTMLElement, s = typeof window < "u" ? gi(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
10545
+ const i = typeof window < "u" ? vi(n == null ? void 0 : n.target).HTMLInputElement : HTMLInputElement, o = typeof window < "u" ? vi(n == null ? void 0 : n.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? vi(n == null ? void 0 : n.target).HTMLElement : HTMLElement, s = typeof window < "u" ? vi(n == null ? void 0 : n.target).KeyboardEvent : KeyboardEvent;
10546
10546
  return t = t || (n == null ? void 0 : n.target) instanceof i && !uF.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof a && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof s && !sF[n.key]);
10547
10547
  }
10548
10548
  function fF(t, e, n) {
@@ -10715,9 +10715,9 @@ let vF = class {
10715
10715
  get isHandoffComplete() {
10716
10716
  return this.handoffState === "complete";
10717
10717
  }
10718
- }, Ti = new vF();
10718
+ }, Mi = new vF();
10719
10719
  function Ss(t) {
10720
- return Ti.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
10720
+ return Mi.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
10721
10721
  }
10722
10722
  function SC(t) {
10723
10723
  typeof queueMicrotask == "function" ? queueMicrotask(t) : Promise.resolve().then(t).catch((e) => setTimeout(() => {
@@ -10765,7 +10765,7 @@ function ks() {
10765
10765
  return We(() => () => t.dispose(), [t]), t;
10766
10766
  }
10767
10767
  let ft = (t, e) => {
10768
- Ti.isServer ? We(t, e) : Go(t, e);
10768
+ Mi.isServer ? We(t, e) : Go(t, e);
10769
10769
  };
10770
10770
  function Ui(t) {
10771
10771
  let e = ye(t);
@@ -10854,13 +10854,13 @@ function Vs(t, e = {}, n, r, i) {
10854
10854
  for (let h of p) d[`data-${h}`] = "";
10855
10855
  }
10856
10856
  }
10857
- if (o === on && (Object.keys(ci(l)).length > 0 || Object.keys(ci(d)).length > 0)) if (!py(u) || Array.isArray(u) && u.length > 1) {
10858
- if (Object.keys(ci(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(ci(l)).concat(Object.keys(ci(d))).map((f) => ` - ${f}`).join(`
10857
+ if (o === on && (Object.keys(ui(l)).length > 0 || Object.keys(ui(d)).length > 0)) if (!py(u) || Array.isArray(u) && u.length > 1) {
10858
+ if (Object.keys(ui(l)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(ui(l)).concat(Object.keys(ui(d))).map((f) => ` - ${f}`).join(`
10859
10859
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((f) => ` - ${f}`).join(`
10860
10860
  `)].join(`
10861
10861
  `));
10862
10862
  } else {
10863
- let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => lv(p(...v), l.className) : lv(p, l.className), m = h ? { className: h } : {}, g = kC(u.props, ci(Gu(l, ["ref"])));
10863
+ let f = u.props, p = f == null ? void 0 : f.className, h = typeof p == "function" ? (...v) => lv(p(...v), l.className) : lv(p, l.className), m = h ? { className: h } : {}, g = kC(u.props, ui(Gu(l, ["ref"])));
10864
10864
  for (let v in d) v in g && delete d[v];
10865
10865
  return ZE(u, Object.assign({}, g, d, c, { ref: i(IF(u), c.ref) }, m));
10866
10866
  }
@@ -10912,7 +10912,7 @@ function Fn(t) {
10912
10912
  var e;
10913
10913
  return Object.assign(jt(t), { displayName: (e = t.displayName) != null ? e : t.name });
10914
10914
  }
10915
- function ci(t) {
10915
+ function ui(t) {
10916
10916
  let e = Object.assign({}, t);
10917
10917
  for (let n in e) e[n] === void 0 && delete e[n];
10918
10918
  return e;
@@ -10962,7 +10962,7 @@ function RF({ data: t, form: e, disabled: n, onReset: r, overrides: i }) {
10962
10962
  let [o, a] = De(null), s = ks();
10963
10963
  return We(() => {
10964
10964
  if (r && o) return s.addEventListener(o, "reset", r);
10965
- }, [o, e, r]), oe.createElement(DF, null, oe.createElement(NF, { setForm: a, formId: e }), EC(t).map(([l, c]) => oe.createElement(TC, { features: xh.Hidden, ...ci({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: e, disabled: n, name: l, value: c, ...i }) })));
10965
+ }, [o, e, r]), oe.createElement(DF, null, oe.createElement(NF, { setForm: a, formId: e }), EC(t).map(([l, c]) => oe.createElement(TC, { features: xh.Hidden, ...ui({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: e, disabled: n, name: l, value: c, ...i }) })));
10966
10966
  }
10967
10967
  function NF({ setForm: t, formId: e }) {
10968
10968
  return We(() => {
@@ -11562,7 +11562,7 @@ function oB(t) {
11562
11562
  ...t,
11563
11563
  onChange: (i, o) => {
11564
11564
  var a;
11565
- o ? hi(e) : e(), (a = t.onChange) == null || a.call(t, i, o);
11565
+ o ? mi(e) : e(), (a = t.onChange) == null || a.call(t, i, o);
11566
11566
  }
11567
11567
  }, [r] = j.useState(
11568
11568
  () => new rB(n)
@@ -11886,7 +11886,7 @@ function TB(t) {
11886
11886
  for (let n of t) Object.assign(e, n(e));
11887
11887
  return e;
11888
11888
  }
11889
- let vi = NC(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
11889
+ let bi = NC(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
11890
11890
  var n;
11891
11891
  let r = (n = this.get(t)) != null ? n : { doc: t, count: 0, d: Qn(), meta: /* @__PURE__ */ new Set() };
11892
11892
  return r.count++, r.meta.add(e), this.set(t, r), this;
@@ -11901,18 +11901,18 @@ let vi = NC(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
11901
11901
  }, TEARDOWN({ doc: t }) {
11902
11902
  this.delete(t);
11903
11903
  } });
11904
- vi.subscribe(() => {
11905
- let t = vi.getSnapshot(), e = /* @__PURE__ */ new Map();
11904
+ bi.subscribe(() => {
11905
+ let t = bi.getSnapshot(), e = /* @__PURE__ */ new Map();
11906
11906
  for (let [n] of t) e.set(n, n.documentElement.style.overflow);
11907
11907
  for (let n of t.values()) {
11908
11908
  let r = e.get(n.doc) === "hidden", i = n.count !== 0;
11909
- (i && !r || !i && r) && vi.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && vi.dispatch("TEARDOWN", n);
11909
+ (i && !r || !i && r) && bi.dispatch(n.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", n), n.count === 0 && bi.dispatch("TEARDOWN", n);
11910
11910
  }
11911
11911
  });
11912
11912
  function MB(t, e, n = () => ({ containers: [] })) {
11913
- let r = FC(vi), i = e ? r.get(e) : void 0, o = i ? i.count > 0 : !1;
11913
+ let r = FC(bi), i = e ? r.get(e) : void 0, o = i ? i.count > 0 : !1;
11914
11914
  return ft(() => {
11915
- if (!(!e || !t)) return vi.dispatch("PUSH", e, n), () => vi.dispatch("POP", e, n);
11915
+ if (!(!e || !t)) return bi.dispatch("PUSH", e, n), () => bi.dispatch("POP", e, n);
11916
11916
  }, [t, e]), o;
11917
11917
  }
11918
11918
  function OB(t, e, n = () => [document.body]) {
@@ -12522,12 +12522,12 @@ function gj(t) {
12522
12522
  }
12523
12523
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", e), e());
12524
12524
  }
12525
- let ui = [];
12525
+ let di = [];
12526
12526
  gj(() => {
12527
12527
  function t(e) {
12528
- if (!(e.target instanceof HTMLElement) || e.target === document.body || ui[0] === e.target) return;
12528
+ if (!(e.target instanceof HTMLElement) || e.target === document.body || di[0] === e.target) return;
12529
12529
  let n = e.target;
12530
- n = n.closest(mf), ui.unshift(n ?? e.target), ui = ui.filter((r) => r != null && r.isConnected), ui.splice(10);
12530
+ n = n.closest(mf), di.unshift(n ?? e.target), di = di.filter((r) => r != null && r.isConnected), di.splice(10);
12531
12531
  }
12532
12532
  window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
12533
12533
  });
@@ -12582,10 +12582,10 @@ function yj() {
12582
12582
  }, () => !1, () => !t) : !1;
12583
12583
  }
12584
12584
  function xj() {
12585
- let t = yj(), [e, n] = j.useState(Ti.isHandoffComplete);
12586
- return e && Ti.isHandoffComplete === !1 && n(!1), j.useEffect(() => {
12585
+ let t = yj(), [e, n] = j.useState(Mi.isHandoffComplete);
12586
+ return e && Mi.isHandoffComplete === !1 && n(!1), j.useEffect(() => {
12587
12587
  e !== !0 && n(!0);
12588
- }, [e]), j.useEffect(() => Ti.handoff(), []), t ? !1 : e;
12588
+ }, [e]), j.useEffect(() => Mi.handoff(), []), t ? !1 : e;
12589
12589
  }
12590
12590
  let Cj = st(!1);
12591
12591
  function wj() {
@@ -12595,7 +12595,7 @@ function Sj(t) {
12595
12595
  let e = wj(), n = Ge(HC), r = Jc(t), [i, o] = De(() => {
12596
12596
  var a;
12597
12597
  if (!e && n !== null) return (a = n.current) != null ? a : null;
12598
- if (Ti.isServer) return null;
12598
+ if (Mi.isServer) return null;
12599
12599
  let s = r == null ? void 0 : r.getElementById("headlessui-portal-root");
12600
12600
  if (s) return s;
12601
12601
  if (r === null) return null;
@@ -12613,7 +12613,7 @@ let zC = on, kj = Fn(function(t, e) {
12613
12613
  r.current = d;
12614
12614
  }), e), o = Jc(r), a = Sj(r), [s] = De(() => {
12615
12615
  var d;
12616
- return Ti.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
12616
+ return Mi.isServer ? null : (d = o == null ? void 0 : o.createElement("div")) != null ? d : null;
12617
12617
  }), l = Ge(Tj), c = xj();
12618
12618
  ft(() => {
12619
12619
  !a || !s || a.contains(s) || (s.setAttribute("data-headlessui-portal", ""), a.appendChild(s));
@@ -12853,7 +12853,7 @@ function Wj(t, e) {
12853
12853
  return N.preventDefault(), N.stopPropagation(), pr(s.comboboxState, { 0: () => l.goToOption(bt.Next), 1: () => l.openCombobox() });
12854
12854
  case Kt.ArrowUp:
12855
12855
  return N.preventDefault(), N.stopPropagation(), pr(s.comboboxState, { 0: () => l.goToOption(bt.Previous), 1: () => {
12856
- hi(() => l.openCombobox()), s.value || l.goToOption(bt.Last);
12856
+ mi(() => l.openCombobox()), s.value || l.goToOption(bt.Last);
12857
12857
  } });
12858
12858
  case Kt.Home:
12859
12859
  if (N.shiftKey) break;
@@ -12876,13 +12876,13 @@ function Wj(t, e) {
12876
12876
  f == null || f(N), s.mode === 0 && N.target.value === "" && C(), l.openCombobox();
12877
12877
  }), P = Ne((N) => {
12878
12878
  var W, X, Z;
12879
- let q = (W = N.relatedTarget) != null ? W : ui.find(($) => $ !== N.currentTarget);
12879
+ let q = (W = N.relatedTarget) != null ? W : di.find(($) => $ !== N.currentTarget);
12880
12880
  if (!((X = s.optionsElement) != null && X.contains(q)) && !((Z = s.buttonElement) != null && Z.contains(q)) && s.comboboxState === 0) return N.preventDefault(), s.mode === 0 && s.value === null && C(), l.closeCombobox();
12881
12881
  }), R = Ne((N) => {
12882
12882
  var W, X, Z;
12883
- let q = (W = N.relatedTarget) != null ? W : ui.find(($) => $ !== N.currentTarget);
12883
+ let q = (W = N.relatedTarget) != null ? W : di.find(($) => $ !== N.currentTarget);
12884
12884
  (X = s.buttonElement) != null && X.contains(q) || (Z = s.optionsElement) != null && Z.contains(q) || s.disabled || s.immediate && s.comboboxState !== 0 && x.microTask(() => {
12885
- hi(() => l.openCombobox()), l.setActivationTrigger(1);
12885
+ mi(() => l.openCombobox()), l.setActivationTrigger(1);
12886
12886
  });
12887
12887
  }), V = Uc(), B = LF(), { isFocused: F, focusProps: _ } = wC({ autoFocus: m }), { isHovered: z, hoverProps: M } = CC({ isDisabled: h }), D = Pe(() => ({ open: s.comboboxState === 0, disabled: h, hover: z, focus: F, autofocus: m }), [s, z, F, m, h]), L = yh({ ref: w, id: d, role: "combobox", type: g, "aria-controls": (n = s.optionsElement) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null ? void 0 : s.virtual ? (r = s.options.find((N) => !N.dataRef.current.disabled && s.compare(N.dataRef.current.value, s.virtual.options[s.activeOptionIndex]))) == null ? void 0 : r.id : (i = s.options[s.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": V, "aria-describedby": B, "aria-autocomplete": "list", defaultValue: (a = (o = t.defaultValue) != null ? o : s.defaultValue !== void 0 ? p == null ? void 0 : p(s.defaultValue) : null) != null ? a : s.defaultValue, disabled: h || void 0, autoFocus: m, onCompositionStart: k, onCompositionEnd: I, onKeyDown: A, onChange: O, onFocus: R, onBlur: P }, _, M);
12888
12888
  return Nn()({ ourProps: L, theirProps: v, slot: D, defaultTag: _j, name: "Combobox.Input" });
@@ -12894,17 +12894,17 @@ function Hj(t, e) {
12894
12894
  switch (E.key) {
12895
12895
  case Kt.Space:
12896
12896
  case Kt.Enter:
12897
- E.preventDefault(), E.stopPropagation(), r.comboboxState === 1 && hi(() => i.openCombobox()), d();
12897
+ E.preventDefault(), E.stopPropagation(), r.comboboxState === 1 && mi(() => i.openCombobox()), d();
12898
12898
  return;
12899
12899
  case Kt.ArrowDown:
12900
- E.preventDefault(), E.stopPropagation(), r.comboboxState === 1 && (hi(() => i.openCombobox()), r.value || i.goToOption(bt.First)), d();
12900
+ E.preventDefault(), E.stopPropagation(), r.comboboxState === 1 && (mi(() => i.openCombobox()), r.value || i.goToOption(bt.First)), d();
12901
12901
  return;
12902
12902
  case Kt.ArrowUp:
12903
- E.preventDefault(), E.stopPropagation(), r.comboboxState === 1 && (hi(() => i.openCombobox()), r.value || i.goToOption(bt.Last)), d();
12903
+ E.preventDefault(), E.stopPropagation(), r.comboboxState === 1 && (mi(() => i.openCombobox()), r.value || i.goToOption(bt.Last)), d();
12904
12904
  return;
12905
12905
  case Kt.Escape:
12906
12906
  if (r.comboboxState !== 0) return;
12907
- E.preventDefault(), r.optionsElement && !r.optionsPropsRef.current.static && E.stopPropagation(), hi(() => i.closeCombobox()), d();
12907
+ E.preventDefault(), r.optionsElement && !r.optionsPropsRef.current.static && E.stopPropagation(), mi(() => i.closeCombobox()), d();
12908
12908
  return;
12909
12909
  default:
12910
12910
  return;
@@ -13068,10 +13068,10 @@ function Pv(t, e, n) {
13068
13068
  function nV(t) {
13069
13069
  return t;
13070
13070
  }
13071
- var wi, Nr, xo, ry, rV = (ry = class extends Ah {
13071
+ var Si, Nr, xo, ry, rV = (ry = class extends Ah {
13072
13072
  constructor() {
13073
13073
  super();
13074
- lt(this, wi);
13074
+ lt(this, Si);
13075
13075
  lt(this, Nr);
13076
13076
  lt(this, xo);
13077
13077
  He(this, xo, (e) => {
@@ -13097,7 +13097,7 @@ var wi, Nr, xo, ry, rV = (ry = class extends Ah {
13097
13097
  }));
13098
13098
  }
13099
13099
  setFocused(e) {
13100
- pe(this, wi) !== e && (He(this, wi, e), this.onFocus());
13100
+ pe(this, Si) !== e && (He(this, Si, e), this.onFocus());
13101
13101
  }
13102
13102
  onFocus() {
13103
13103
  const e = this.isFocused();
@@ -13107,9 +13107,9 @@ var wi, Nr, xo, ry, rV = (ry = class extends Ah {
13107
13107
  }
13108
13108
  isFocused() {
13109
13109
  var e;
13110
- return typeof pe(this, wi) == "boolean" ? pe(this, wi) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
13110
+ return typeof pe(this, Si) == "boolean" ? pe(this, Si) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
13111
13111
  }
13112
- }, wi = new WeakMap(), Nr = new WeakMap(), xo = new WeakMap(), ry), iV = new rV(), Co, Fr, wo, iy, oV = (iy = class extends Ah {
13112
+ }, Si = new WeakMap(), Nr = new WeakMap(), xo = new WeakMap(), ry), iV = new rV(), Co, Fr, wo, iy, oV = (iy = class extends Ah {
13113
13113
  constructor() {
13114
13114
  super();
13115
13115
  lt(this, Co, !0);
@@ -13240,7 +13240,7 @@ function cV(t, e) {
13240
13240
  }
13241
13241
  };
13242
13242
  }
13243
- var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf, wf, Sf, kf, Ef, If, JC, oy, uV = (oy = class extends Ah {
13243
+ var nn, $e, ds, Jt, ki, So, Br, _n, fs, ko, Eo, Ei, Ii, jr, Io, qe, da, xf, Cf, wf, Sf, kf, Ef, If, JC, oy, uV = (oy = class extends Ah {
13244
13244
  constructor(e, n) {
13245
13245
  super();
13246
13246
  lt(this, qe);
@@ -13248,7 +13248,7 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13248
13248
  lt(this, $e);
13249
13249
  lt(this, ds);
13250
13250
  lt(this, Jt);
13251
- lt(this, Si);
13251
+ lt(this, ki);
13252
13252
  lt(this, So);
13253
13253
  lt(this, Br);
13254
13254
  lt(this, _n);
@@ -13257,8 +13257,8 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13257
13257
  // This property keeps track of the last query with defined data.
13258
13258
  // It will be used to pass the previous data and query to the placeholder function between renders.
13259
13259
  lt(this, Eo);
13260
- lt(this, ki);
13261
13260
  lt(this, Ei);
13261
+ lt(this, Ii);
13262
13262
  lt(this, jr);
13263
13263
  lt(this, Io, /* @__PURE__ */ new Set());
13264
13264
  this.options = n, He(this, nn, e), He(this, _n, null), He(this, Br, Dv()), this.options.experimental_prefetchInRender || pe(this, Br).reject(
@@ -13314,7 +13314,7 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13314
13314
  }
13315
13315
  getOptimisticResult(e) {
13316
13316
  const n = pe(this, nn).getQueryCache().build(pe(this, nn), e), r = this.createResult(n, e);
13317
- return fV(this, r) && (He(this, Jt, r), He(this, So, this.options), He(this, Si, pe(this, $e).state)), r;
13317
+ return fV(this, r) && (He(this, Jt, r), He(this, So, this.options), He(this, ki, pe(this, $e).state)), r;
13318
13318
  }
13319
13319
  getCurrentResult() {
13320
13320
  return pe(this, Jt);
@@ -13352,7 +13352,7 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13352
13352
  }
13353
13353
  createResult(e, n) {
13354
13354
  var S;
13355
- const r = pe(this, $e), i = this.options, o = pe(this, Jt), a = pe(this, Si), s = pe(this, So), c = e !== r ? e.state : pe(this, ds), { state: u } = e;
13355
+ const r = pe(this, $e), i = this.options, o = pe(this, Jt), a = pe(this, ki), s = pe(this, So), c = e !== r ? e.state : pe(this, ds), { state: u } = e;
13356
13356
  let d = { ...u }, f = !1, p;
13357
13357
  if (n._optimisticResults) {
13358
13358
  const k = this.hasListeners(), I = !k && Rv(e, n), A = k && Nv(e, r, n, i);
@@ -13443,7 +13443,7 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13443
13443
  }
13444
13444
  updateResult(e) {
13445
13445
  const n = pe(this, Jt), r = this.createResult(pe(this, $e), this.options);
13446
- if (He(this, Si, pe(this, $e).state), He(this, So, this.options), pe(this, Si).data !== void 0 && He(this, Eo, pe(this, $e)), yf(r, n))
13446
+ if (He(this, ki, pe(this, $e).state), He(this, So, this.options), pe(this, ki).data !== void 0 && He(this, Eo, pe(this, $e)), yf(r, n))
13447
13447
  return;
13448
13448
  He(this, Jt, r);
13449
13449
  const i = {}, o = () => {
@@ -13465,7 +13465,7 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13465
13465
  onQueryUpdate() {
13466
13466
  this.updateResult(), this.hasListeners() && vt(this, qe, Sf).call(this);
13467
13467
  }
13468
- }, nn = new WeakMap(), $e = new WeakMap(), ds = new WeakMap(), Jt = new WeakMap(), Si = new WeakMap(), So = new WeakMap(), Br = new WeakMap(), _n = new WeakMap(), fs = new WeakMap(), ko = new WeakMap(), Eo = new WeakMap(), ki = new WeakMap(), Ei = new WeakMap(), jr = new WeakMap(), Io = new WeakMap(), qe = new WeakSet(), da = function(e) {
13468
+ }, nn = new WeakMap(), $e = new WeakMap(), ds = new WeakMap(), Jt = new WeakMap(), ki = new WeakMap(), So = new WeakMap(), Br = new WeakMap(), _n = new WeakMap(), fs = new WeakMap(), ko = new WeakMap(), Eo = new WeakMap(), Ei = new WeakMap(), Ii = new WeakMap(), jr = new WeakMap(), Io = new WeakMap(), qe = new WeakSet(), da = function(e) {
13469
13469
  vt(this, qe, If).call(this);
13470
13470
  let n = pe(this, $e).fetch(
13471
13471
  this.options,
@@ -13481,21 +13481,21 @@ var nn, $e, ds, Jt, Si, So, Br, _n, fs, ko, Eo, ki, Ei, jr, Io, qe, da, xf, Cf,
13481
13481
  if (Za || pe(this, Jt).isStale || !Av(e))
13482
13482
  return;
13483
13483
  const r = tV(pe(this, Jt).dataUpdatedAt, e) + 1;
13484
- He(this, ki, setTimeout(() => {
13484
+ He(this, Ei, setTimeout(() => {
13485
13485
  pe(this, Jt).isStale || this.updateResult();
13486
13486
  }, r));
13487
13487
  }, Cf = function() {
13488
13488
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(pe(this, $e)) : this.options.refetchInterval) ?? !1;
13489
13489
  }, wf = function(e) {
13490
- vt(this, qe, Ef).call(this), He(this, jr, e), !(Za || Wn(this.options.enabled, pe(this, $e)) === !1 || !Av(pe(this, jr)) || pe(this, jr) === 0) && He(this, Ei, setInterval(() => {
13490
+ vt(this, qe, Ef).call(this), He(this, jr, e), !(Za || Wn(this.options.enabled, pe(this, $e)) === !1 || !Av(pe(this, jr)) || pe(this, jr) === 0) && He(this, Ii, setInterval(() => {
13491
13491
  (this.options.refetchIntervalInBackground || iV.isFocused()) && vt(this, qe, da).call(this);
13492
13492
  }, pe(this, jr)));
13493
13493
  }, Sf = function() {
13494
13494
  vt(this, qe, xf).call(this), vt(this, qe, wf).call(this, vt(this, qe, Cf).call(this));
13495
13495
  }, kf = function() {
13496
- pe(this, ki) && (clearTimeout(pe(this, ki)), He(this, ki, void 0));
13496
+ pe(this, Ei) && (clearTimeout(pe(this, Ei)), He(this, Ei, void 0));
13497
13497
  }, Ef = function() {
13498
- pe(this, Ei) && (clearInterval(pe(this, Ei)), He(this, Ei, void 0));
13498
+ pe(this, Ii) && (clearInterval(pe(this, Ii)), He(this, Ii, void 0));
13499
13499
  }, If = function() {
13500
13500
  const e = pe(this, nn).getQueryCache().build(pe(this, nn), this.options);
13501
13501
  if (e === pe(this, $e))
@@ -13757,7 +13757,7 @@ const TV = (t, e) => {
13757
13757
  }) => {
13758
13758
  const { setQuery: g, suggestionsOptions: v } = PV(t, e), b = j.useId();
13759
13759
  return /* @__PURE__ */ T.jsx(
13760
- hn,
13760
+ En,
13761
13761
  {
13762
13762
  control: i,
13763
13763
  name: m.name,
@@ -13828,27 +13828,27 @@ const TV = (t, e) => {
13828
13828
  }
13829
13829
  );
13830
13830
  }, q6 = ({ ...t }) => /* @__PURE__ */ T.jsx(As, { dadataType: "fio", ...t }), Q6 = ({ ...t }) => /* @__PURE__ */ T.jsx(As, { dadataType: "auto", ...t }), eZ = ({ ...t }) => /* @__PURE__ */ T.jsx(As, { dadataType: "country", ...t }), tZ = ({ ...t }) => /* @__PURE__ */ T.jsx(As, { dadataType: "address", ...t }), nZ = ({ ...t }) => /* @__PURE__ */ T.jsx(As, { dadataType: "party", ...t });
13831
- function Bi(t) {
13831
+ function ji(t) {
13832
13832
  "@babel/helpers - typeof";
13833
- return Bi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
13833
+ return ji = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
13834
13834
  return typeof e;
13835
13835
  } : function(e) {
13836
13836
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
13837
- }, Bi(t);
13837
+ }, ji(t);
13838
13838
  }
13839
13839
  function RV(t, e) {
13840
- if (Bi(t) != "object" || !t) return t;
13840
+ if (ji(t) != "object" || !t) return t;
13841
13841
  var n = t[Symbol.toPrimitive];
13842
13842
  if (n !== void 0) {
13843
13843
  var r = n.call(t, e || "default");
13844
- if (Bi(r) != "object") return r;
13844
+ if (ji(r) != "object") return r;
13845
13845
  throw new TypeError("@@toPrimitive must return a primitive value.");
13846
13846
  }
13847
13847
  return (e === "string" ? String : Number)(t);
13848
13848
  }
13849
13849
  function qC(t) {
13850
13850
  var e = RV(t, "string");
13851
- return Bi(e) == "symbol" ? e : e + "";
13851
+ return ji(e) == "symbol" ? e : e + "";
13852
13852
  }
13853
13853
  function fa(t, e, n) {
13854
13854
  return (e = qC(e)) in t ? Object.defineProperty(t, e, {
@@ -14022,7 +14022,7 @@ function zV(t) {
14022
14022
  return t;
14023
14023
  }
14024
14024
  function HV(t, e) {
14025
- if (e && (Bi(e) == "object" || typeof e == "function")) return e;
14025
+ if (e && (ji(e) == "object" || typeof e == "function")) return e;
14026
14026
  if (e !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
14027
14027
  return zV(t);
14028
14028
  }
@@ -15114,7 +15114,7 @@ function t3(t, e) {
15114
15114
  }).join(" ");
15115
15115
  }
15116
15116
  var Yv = function(e) {
15117
- return u3(e) ? e.filter(Boolean) : Bi(e) === "object" && e !== null ? [e] : [];
15117
+ return u3(e) ? e.filter(Boolean) : ji(e) === "object" && e !== null ? [e] : [];
15118
15118
  }, hw = function(e) {
15119
15119
  e.className, e.clearValue, e.cx, e.getStyles, e.getClassNames, e.getValue, e.hasValue, e.isMulti, e.isRtl, e.options, e.selectOption, e.selectProps, e.setValue, e.theme;
15120
15120
  var n = Cr(e, QL);
@@ -17771,7 +17771,7 @@ const bG = (t, e, n) => ({
17771
17771
  }) => {
17772
17772
  const m = j.useId();
17773
17773
  return /* @__PURE__ */ T.jsx(
17774
- hn,
17774
+ En,
17775
17775
  {
17776
17776
  control: e,
17777
17777
  name: h.name,
@@ -17890,7 +17890,7 @@ var Vw = ["PageUp", "PageDown"], Lw = ["ArrowUp", "ArrowDown", "ArrowLeft", "Arr
17890
17890
  inverted: p = !1,
17891
17891
  form: h,
17892
17892
  ...m
17893
- } = t, g = j.useRef(/* @__PURE__ */ new Set()), v = j.useRef(0), w = a === "horizontal" ? MG : OG, [y = [], x] = _i({
17893
+ } = t, g = j.useRef(/* @__PURE__ */ new Set()), v = j.useRef(0), w = a === "horizontal" ? MG : OG, [y = [], x] = Wi({
17894
17894
  prop: u,
17895
17895
  defaultProp: c,
17896
17896
  onChange: (A) => {
@@ -17982,7 +17982,7 @@ var [Ww, zw] = _w(Yo, {
17982
17982
  onSlideEnd: l,
17983
17983
  onStepKeyDown: c,
17984
17984
  ...u
17985
- } = t, [d, f] = j.useState(null), p = En(e, (w) => f(w)), h = j.useRef(void 0), m = Ac(i), g = m === "ltr", v = g && !o || !g && o;
17985
+ } = t, [d, f] = j.useState(null), p = kn(e, (w) => f(w)), h = j.useRef(void 0), m = Ac(i), g = m === "ltr", v = g && !o || !g && o;
17986
17986
  function b(w) {
17987
17987
  const y = h.current || d.getBoundingClientRect(), x = [0, y.width], E = Vh(x, v ? [n, r] : [r, n]);
17988
17988
  return h.current = y, E(w - y.left);
@@ -18037,7 +18037,7 @@ var [Ww, zw] = _w(Yo, {
18037
18037
  onSlideEnd: s,
18038
18038
  onStepKeyDown: l,
18039
18039
  ...c
18040
- } = t, u = j.useRef(null), d = En(e, u), f = j.useRef(void 0), p = !i;
18040
+ } = t, u = j.useRef(null), d = kn(e, u), f = j.useRef(void 0), p = !i;
18041
18041
  function h(m) {
18042
18042
  const g = f.current || u.current.getBoundingClientRect(), v = [0, g.height], w = Vh(v, p ? [r, n] : [n, r]);
18043
18043
  return f.current = g, w(m - g.top);
@@ -18131,7 +18131,7 @@ var [Ww, zw] = _w(Yo, {
18131
18131
  Xw.displayName = $w;
18132
18132
  var jf = "SliderRange", Yw = j.forwardRef(
18133
18133
  (t, e) => {
18134
- const { __scopeSlider: n, ...r } = t, i = tu(jf, n), o = zw(jf, n), a = j.useRef(null), s = En(e, a), l = i.values.length, c = i.values.map(
18134
+ const { __scopeSlider: n, ...r } = t, i = tu(jf, n), o = zw(jf, n), a = j.useRef(null), s = kn(e, a), l = i.values.length, c = i.values.map(
18135
18135
  (f) => Uw(f, i.min, i.max)
18136
18136
  ), u = l > 1 ? Math.min(...c) : 0, d = 100 - Math.max(...c);
18137
18137
  return /* @__PURE__ */ T.jsx(
@@ -18153,7 +18153,7 @@ var jf = "SliderRange", Yw = j.forwardRef(
18153
18153
  Yw.displayName = jf;
18154
18154
  var Vf = "SliderThumb", Zw = j.forwardRef(
18155
18155
  (t, e) => {
18156
- const n = IG(t.__scopeSlider), [r, i] = j.useState(null), o = En(e, (s) => i(s)), a = j.useMemo(
18156
+ const n = IG(t.__scopeSlider), [r, i] = j.useState(null), o = kn(e, (s) => i(s)), a = j.useMemo(
18157
18157
  () => r ? n().findIndex((s) => s.ref.current === r) : -1,
18158
18158
  [n, r]
18159
18159
  );
@@ -18161,7 +18161,7 @@ var Vf = "SliderThumb", Zw = j.forwardRef(
18161
18161
  }
18162
18162
  ), PG = j.forwardRef(
18163
18163
  (t, e) => {
18164
- const { __scopeSlider: n, index: r, name: i, ...o } = t, a = tu(Vf, n), s = zw(Vf, n), [l, c] = j.useState(null), u = En(e, (b) => c(b)), d = l ? a.form || !!l.closest("form") : !0, f = Tc(l), p = a.values[r], h = p === void 0 ? 0 : Uw(p, a.min, a.max), m = NG(r, a.values.length), g = f == null ? void 0 : f[s.size], v = g ? BG(g, h, s.direction) : 0;
18164
+ const { __scopeSlider: n, index: r, name: i, ...o } = t, a = tu(Vf, n), s = zw(Vf, n), [l, c] = j.useState(null), u = kn(e, (b) => c(b)), d = l ? a.form || !!l.closest("form") : !0, f = Tc(l), p = a.values[r], h = p === void 0 ? 0 : Uw(p, a.min, a.max), m = NG(r, a.values.length), g = f == null ? void 0 : f[s.size], v = g ? BG(g, h, s.direction) : 0;
18165
18165
  return j.useEffect(() => {
18166
18166
  if (l)
18167
18167
  return a.thumbs.add(l), () => {
@@ -18332,7 +18332,7 @@ const oZ = ({
18332
18332
  y.current && ((I = y == null ? void 0 : y.current) == null || I.focus()), m && m();
18333
18333
  }, { handleBlur: C, getSuffixText: E, fromSlider: S, toSlider: k } = EG(s, l, 0);
18334
18334
  return /* @__PURE__ */ T.jsx(
18335
- hn,
18335
+ En,
18336
18336
  {
18337
18337
  control: r,
18338
18338
  name: v.name,
@@ -19083,12 +19083,12 @@ function tS(t, e, n, r) {
19083
19083
  } else if (n.content.size)
19084
19084
  if (!n.openStart && !n.openEnd && t.depth == r && e.depth == r) {
19085
19085
  let a = t.parent, s = a.content;
19086
- return Oi(a, s.cut(0, t.parentOffset).append(n.content).append(s.cut(e.parentOffset)));
19086
+ return Pi(a, s.cut(0, t.parentOffset).append(n.content).append(s.cut(e.parentOffset)));
19087
19087
  } else {
19088
19088
  let { start: a, end: s } = XG(n, t);
19089
- return Oi(o, rS(t, a, s, e, r));
19089
+ return Pi(o, rS(t, a, s, e, r));
19090
19090
  }
19091
- else return Oi(o, Vl(t, e, r));
19091
+ else return Pi(o, Vl(t, e, r));
19092
19092
  }
19093
19093
  function nS(t, e) {
19094
19094
  if (!e.type.compatibleContent(t.type))
@@ -19098,29 +19098,29 @@ function Gf(t, e, n) {
19098
19098
  let r = t.node(n);
19099
19099
  return nS(r, e.node(n)), r;
19100
19100
  }
19101
- function Mi(t, e) {
19101
+ function Oi(t, e) {
19102
19102
  let n = e.length - 1;
19103
19103
  n >= 0 && t.isText && t.sameMarkup(e[n]) ? e[n] = t.withText(e[n].text + t.text) : e.push(t);
19104
19104
  }
19105
19105
  function Aa(t, e, n, r) {
19106
19106
  let i = (e || t).node(n), o = 0, a = e ? e.index(n) : i.childCount;
19107
- t && (o = t.index(n), t.depth > n ? o++ : t.textOffset && (Mi(t.nodeAfter, r), o++));
19107
+ t && (o = t.index(n), t.depth > n ? o++ : t.textOffset && (Oi(t.nodeAfter, r), o++));
19108
19108
  for (let s = o; s < a; s++)
19109
- Mi(i.child(s), r);
19110
- e && e.depth == n && e.textOffset && Mi(e.nodeBefore, r);
19109
+ Oi(i.child(s), r);
19110
+ e && e.depth == n && e.textOffset && Oi(e.nodeBefore, r);
19111
19111
  }
19112
- function Oi(t, e) {
19112
+ function Pi(t, e) {
19113
19113
  return t.type.checkContent(e), t.copy(e);
19114
19114
  }
19115
19115
  function rS(t, e, n, r, i) {
19116
19116
  let o = t.depth > i && Gf(t, e, i + 1), a = r.depth > i && Gf(n, r, i + 1), s = [];
19117
- return Aa(null, t, i, s), o && a && e.index(i) == n.index(i) ? (nS(o, a), Mi(Oi(o, rS(t, e, n, r, i + 1)), s)) : (o && Mi(Oi(o, Vl(t, e, i + 1)), s), Aa(e, n, i, s), a && Mi(Oi(a, Vl(n, r, i + 1)), s)), Aa(r, null, i, s), new le(s);
19117
+ return Aa(null, t, i, s), o && a && e.index(i) == n.index(i) ? (nS(o, a), Oi(Pi(o, rS(t, e, n, r, i + 1)), s)) : (o && Oi(Pi(o, Vl(t, e, i + 1)), s), Aa(e, n, i, s), a && Oi(Pi(a, Vl(n, r, i + 1)), s)), Aa(r, null, i, s), new le(s);
19118
19118
  }
19119
19119
  function Vl(t, e, n) {
19120
19120
  let r = [];
19121
19121
  if (Aa(null, t, n, r), t.depth > n) {
19122
19122
  let i = Gf(t, e, n + 1);
19123
- Mi(Oi(i, Vl(t, e, n + 1)), r);
19123
+ Oi(Pi(i, Vl(t, e, n + 1)), r);
19124
19124
  }
19125
19125
  return Aa(e, null, n, r), new le(r);
19126
19126
  }
@@ -19840,7 +19840,7 @@ function iS(t, e) {
19840
19840
  e = t[n].type.name + "(" + e + ")";
19841
19841
  return e;
19842
19842
  }
19843
- class ji {
19843
+ class Vi {
19844
19844
  /**
19845
19845
  @internal
19846
19846
  */
@@ -19853,7 +19853,7 @@ class ji {
19853
19853
  static parse(e, n) {
19854
19854
  let r = new JG(e, n);
19855
19855
  if (r.next == null)
19856
- return ji.empty;
19856
+ return Vi.empty;
19857
19857
  let i = oS(r);
19858
19858
  r.next && r.err("Unexpected trailing text");
19859
19859
  let o = r_(n_(i));
@@ -20002,7 +20002,7 @@ class ji {
20002
20002
  `);
20003
20003
  }
20004
20004
  }
20005
- ji.empty = new ji(!0);
20005
+ Vi.empty = new Vi(!0);
20006
20006
  class JG {
20007
20007
  constructor(e, n) {
20008
20008
  this.string = e, this.nodeTypes = n, this.inline = null, this.pos = 0, this.tokens = e.split(/\s*(?=\b|\W|$)/), this.tokens[this.tokens.length - 1] == "" && this.tokens.pop(), this.tokens[0] == "" && this.tokens.shift();
@@ -20165,7 +20165,7 @@ function r_(t) {
20165
20165
  });
20166
20166
  });
20167
20167
  });
20168
- let o = e[r.join(",")] = new ji(r.indexOf(t.length - 1) > -1);
20168
+ let o = e[r.join(",")] = new Vi(r.indexOf(t.length - 1) > -1);
20169
20169
  for (let a = 0; a < i.length; a++) {
20170
20170
  let s = i[a][1].sort(aS);
20171
20171
  o.next.push({ type: i[a][0], next: e[s.join(",")] || n(s) });
@@ -20248,7 +20248,7 @@ let pb = class dS {
20248
20248
  True for node types that allow no content.
20249
20249
  */
20250
20250
  get isLeaf() {
20251
- return this.contentMatch == ji.empty;
20251
+ return this.contentMatch == Vi.empty;
20252
20252
  }
20253
20253
  /**
20254
20254
  True when this node is an atom, i.e. when it does not have
@@ -20489,7 +20489,7 @@ class fS {
20489
20489
  if (i in this.marks)
20490
20490
  throw new RangeError(i + " can not be both a node and a mark");
20491
20491
  let o = this.nodes[i], a = o.spec.content || "", s = o.spec.marks;
20492
- if (o.contentMatch = r[a] || (r[a] = ji.parse(a, this.nodes)), o.inlineContent = o.contentMatch.inlineContent, o.spec.linebreakReplacement) {
20492
+ if (o.contentMatch = r[a] || (r[a] = Vi.parse(a, this.nodes)), o.inlineContent = o.contentMatch.inlineContent, o.spec.linebreakReplacement) {
20493
20493
  if (this.linebreakReplacement)
20494
20494
  throw new RangeError("Multiple linebreak nodes defined");
20495
20495
  if (!o.isInline || !o.isLeaf)
@@ -22068,7 +22068,7 @@ function I_(t, e, n = 1, r) {
22068
22068
  }
22069
22069
  t.step(new At(e, e, new me(o.append(a), n, n), !0));
22070
22070
  }
22071
- function ei(t, e) {
22071
+ function ti(t, e) {
22072
22072
  let n = t.resolve(e), r = n.index();
22073
22073
  return wS(n.nodeBefore, n.nodeAfter) && n.parent.canReplace(r, r + 1);
22074
22074
  }
@@ -23525,7 +23525,7 @@ const od = /* @__PURE__ */ Object.create(null);
23525
23525
  function OS(t) {
23526
23526
  return t in od ? t + "$" + ++od[t] : (od[t] = 0, t + "$");
23527
23527
  }
23528
- class mn {
23528
+ class hn {
23529
23529
  /**
23530
23530
  Create a plugin key.
23531
23531
  */
@@ -23560,14 +23560,14 @@ const sr = function(t, e, n) {
23560
23560
  return r.setEnd(t, n ?? t.nodeValue.length), r.setStart(t, e || 0), r;
23561
23561
  }, G_ = function() {
23562
23562
  $f = null;
23563
- }, Vi = function(t, e, n, r) {
23563
+ }, Li = function(t, e, n, r) {
23564
23564
  return n && (Mb(t, e, n, r, -1) || Mb(t, e, n, r, 1));
23565
23565
  }, __ = /^(img|br|input|textarea|hr)$/i;
23566
23566
  function Mb(t, e, n, r, i) {
23567
23567
  for (; ; ) {
23568
23568
  if (t == n && e == r)
23569
23569
  return !0;
23570
- if (e == (i < 0 ? 0 : wn(t))) {
23570
+ if (e == (i < 0 ? 0 : Cn(t))) {
23571
23571
  let o = t.parentNode;
23572
23572
  if (!o || o.nodeType != 1 || Ms(t) || __.test(t.nodeName) || t.contentEditable == "false")
23573
23573
  return !1;
@@ -23575,12 +23575,12 @@ function Mb(t, e, n, r, i) {
23575
23575
  } else if (t.nodeType == 1) {
23576
23576
  if (t = t.childNodes[e + (i < 0 ? -1 : 0)], t.contentEditable == "false")
23577
23577
  return !1;
23578
- e = i < 0 ? wn(t) : 0;
23578
+ e = i < 0 ? Cn(t) : 0;
23579
23579
  } else
23580
23580
  return !1;
23581
23581
  }
23582
23582
  }
23583
- function wn(t) {
23583
+ function Cn(t) {
23584
23584
  return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
23585
23585
  }
23586
23586
  function W_(t, e) {
@@ -23590,7 +23590,7 @@ function W_(t, e) {
23590
23590
  if (t.nodeType == 1 && e > 0) {
23591
23591
  if (t.contentEditable == "false")
23592
23592
  return null;
23593
- t = t.childNodes[e - 1], e = wn(t);
23593
+ t = t.childNodes[e - 1], e = Cn(t);
23594
23594
  } else if (t.parentNode && !Ms(t))
23595
23595
  e = Ft(t), t = t.parentNode;
23596
23596
  else
@@ -23612,13 +23612,13 @@ function z_(t, e) {
23612
23612
  }
23613
23613
  }
23614
23614
  function H_(t, e, n) {
23615
- for (let r = e == 0, i = e == wn(t); r || i; ) {
23615
+ for (let r = e == 0, i = e == Cn(t); r || i; ) {
23616
23616
  if (t == n)
23617
23617
  return !0;
23618
23618
  let o = Ft(t);
23619
23619
  if (t = t.parentNode, !t)
23620
23620
  return !1;
23621
- r = r && o == 0, i = i && o == wn(t);
23621
+ r = r && o == 0, i = i && o == Cn(t);
23622
23622
  }
23623
23623
  }
23624
23624
  function Ms(t) {
@@ -23628,9 +23628,9 @@ function Ms(t) {
23628
23628
  return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
23629
23629
  }
23630
23630
  const au = function(t) {
23631
- return t.focusNode && Vi(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
23631
+ return t.focusNode && Li(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
23632
23632
  };
23633
- function di(t, e) {
23633
+ function fi(t, e) {
23634
23634
  let n = document.createEvent("Event");
23635
23635
  return n.initEvent("keydown", !0, !0), n.keyCode = t, n.key = n.code = e, n;
23636
23636
  }
@@ -23645,18 +23645,18 @@ function X_(t, e, n) {
23645
23645
  try {
23646
23646
  let r = t.caretPositionFromPoint(e, n);
23647
23647
  if (r)
23648
- return { node: r.offsetNode, offset: Math.min(wn(r.offsetNode), r.offset) };
23648
+ return { node: r.offsetNode, offset: Math.min(Cn(r.offsetNode), r.offset) };
23649
23649
  } catch {
23650
23650
  }
23651
23651
  if (t.caretRangeFromPoint) {
23652
23652
  let r = t.caretRangeFromPoint(e, n);
23653
23653
  if (r)
23654
- return { node: r.startContainer, offset: Math.min(wn(r.startContainer), r.startOffset) };
23654
+ return { node: r.startContainer, offset: Math.min(Cn(r.startContainer), r.startOffset) };
23655
23655
  }
23656
23656
  }
23657
- const er = typeof navigator < "u" ? navigator : null, Ob = typeof document < "u" ? document : null, ti = er && er.userAgent || "", Xf = /Edge\/(\d+)/.exec(ti), PS = /MSIE \d/.exec(ti), Yf = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ti), sn = !!(PS || Yf || Xf), Hr = PS ? document.documentMode : Yf ? +Yf[1] : Xf ? +Xf[1] : 0, Pn = !sn && /gecko\/(\d+)/i.test(ti);
23658
- Pn && +(/Firefox\/(\d+)/.exec(ti) || [0, 0])[1];
23659
- const Zf = !sn && /Chrome\/(\d+)/.exec(ti), $t = !!Zf, DS = Zf ? +Zf[1] : 0, qt = !sn && !!er && /Apple Computer/.test(er.vendor), No = qt && (/Mobile\/\w+/.test(ti) || !!er && er.maxTouchPoints > 2), xn = No || (er ? /Mac/.test(er.platform) : !1), Y_ = er ? /Win/.test(er.platform) : !1, dr = /Android \d/.test(ti), Os = !!Ob && "webkitFontSmoothing" in Ob.documentElement.style, Z_ = Os ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23657
+ const er = typeof navigator < "u" ? navigator : null, Ob = typeof document < "u" ? document : null, ni = er && er.userAgent || "", Xf = /Edge\/(\d+)/.exec(ni), PS = /MSIE \d/.exec(ni), Yf = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ni), sn = !!(PS || Yf || Xf), Hr = PS ? document.documentMode : Yf ? +Yf[1] : Xf ? +Xf[1] : 0, Pn = !sn && /gecko\/(\d+)/i.test(ni);
23658
+ Pn && +(/Firefox\/(\d+)/.exec(ni) || [0, 0])[1];
23659
+ const Zf = !sn && /Chrome\/(\d+)/.exec(ni), $t = !!Zf, DS = Zf ? +Zf[1] : 0, qt = !sn && !!er && /Apple Computer/.test(er.vendor), No = qt && (/Mobile\/\w+/.test(ni) || !!er && er.maxTouchPoints > 2), yn = No || (er ? /Mac/.test(er.platform) : !1), Y_ = er ? /Win/.test(er.platform) : !1, dr = /Android \d/.test(ni), Os = !!Ob && "webkitFontSmoothing" in Ob.documentElement.style, Z_ = Os ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
23660
23660
  function U_(t) {
23661
23661
  let e = t.defaultView && t.defaultView.visualViewport;
23662
23662
  return e ? {
@@ -23885,24 +23885,24 @@ function jS(t, e, n) {
23885
23885
  return n < 0 && !i ? (c++, u = -1) : n >= 0 && i == r.nodeValue.length ? (l--, u = 1) : n < 0 ? l-- : c++, ra(Ir(sr(r, l, c), u), u < 0);
23886
23886
  }
23887
23887
  if (!t.state.doc.resolve(e - (o || 0)).parent.inlineContent) {
23888
- if (o == null && i && (n < 0 || i == wn(r))) {
23888
+ if (o == null && i && (n < 0 || i == Cn(r))) {
23889
23889
  let l = r.childNodes[i - 1];
23890
23890
  if (l.nodeType == 1)
23891
23891
  return ad(l.getBoundingClientRect(), !1);
23892
23892
  }
23893
- if (o == null && i < wn(r)) {
23893
+ if (o == null && i < Cn(r)) {
23894
23894
  let l = r.childNodes[i];
23895
23895
  if (l.nodeType == 1)
23896
23896
  return ad(l.getBoundingClientRect(), !0);
23897
23897
  }
23898
23898
  return ad(r.getBoundingClientRect(), n >= 0);
23899
23899
  }
23900
- if (o == null && i && (n < 0 || i == wn(r))) {
23901
- let l = r.childNodes[i - 1], c = l.nodeType == 3 ? sr(l, wn(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
23900
+ if (o == null && i && (n < 0 || i == Cn(r))) {
23901
+ let l = r.childNodes[i - 1], c = l.nodeType == 3 ? sr(l, Cn(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
23902
23902
  if (c)
23903
23903
  return ra(Ir(c, 1), !1);
23904
23904
  }
23905
- if (o == null && i < wn(r)) {
23905
+ if (o == null && i < Cn(r)) {
23906
23906
  let l = r.childNodes[i];
23907
23907
  for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
23908
23908
  l = l.nextSibling;
@@ -23986,10 +23986,10 @@ let Rb = null, Nb = null, Fb = !1;
23986
23986
  function cW(t, e, n) {
23987
23987
  return Rb == e && Nb == n ? Fb : (Rb = e, Nb = n, Fb = n == "up" || n == "down" ? aW(t, e, n) : lW(t, e, n));
23988
23988
  }
23989
- const kn = 0, Bb = 1, bi = 2, tr = 3;
23989
+ const Sn = 0, Bb = 1, yi = 2, tr = 3;
23990
23990
  class Ps {
23991
23991
  constructor(e, n, r, i) {
23992
- this.parent = e, this.children = n, this.dom = r, this.contentDOM = i, this.dirty = kn, r.pmViewDesc = this;
23992
+ this.parent = e, this.children = n, this.dom = r, this.contentDOM = i, this.dirty = Sn, r.pmViewDesc = this;
23993
23993
  }
23994
23994
  // Used to check whether a given description corresponds to a
23995
23995
  // widget/mark/node.
@@ -24263,7 +24263,7 @@ class Ps {
24263
24263
  let p = u.focusNode.childNodes[u.focusOffset];
24264
24264
  p && p.contentEditable == "false" && (i = !0);
24265
24265
  }
24266
- if (!(i || d && qt) && Vi(s.node, s.offset, u.anchorNode, u.anchorOffset) && Vi(l.node, l.offset, u.focusNode, u.focusOffset))
24266
+ if (!(i || d && qt) && Li(s.node, s.offset, u.anchorNode, u.anchorOffset) && Li(l.node, l.offset, u.focusNode, u.focusOffset))
24267
24267
  return;
24268
24268
  let f = !1;
24269
24269
  if ((c.extend || e == n) && !d) {
@@ -24296,19 +24296,19 @@ class Ps {
24296
24296
  if (r == a ? e <= a && n >= r : e < a && n > r) {
24297
24297
  let s = r + o.border, l = a - o.border;
24298
24298
  if (e >= s && n <= l) {
24299
- this.dirty = e == r || n == a ? bi : Bb, e == s && n == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = tr : o.markDirty(e - s, n - s);
24299
+ this.dirty = e == r || n == a ? yi : Bb, e == s && n == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = tr : o.markDirty(e - s, n - s);
24300
24300
  return;
24301
24301
  } else
24302
- o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? bi : tr;
24302
+ o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? yi : tr;
24303
24303
  }
24304
24304
  r = a;
24305
24305
  }
24306
- this.dirty = bi;
24306
+ this.dirty = yi;
24307
24307
  }
24308
24308
  markParentsDirty() {
24309
24309
  let e = 1;
24310
24310
  for (let n = this.parent; n; n = n.parent, e++) {
24311
- let r = e == 1 ? bi : Bb;
24311
+ let r = e == 1 ? yi : Bb;
24312
24312
  n.dirty < r && (n.dirty = r);
24313
24313
  }
24314
24314
  }
@@ -24340,7 +24340,7 @@ class LS extends Ps {
24340
24340
  super(e, [], a, null), this.widget = n, this.widget = n, o = this;
24341
24341
  }
24342
24342
  matchesWidget(e) {
24343
- return this.dirty == kn && e.type.eq(this.widget.type);
24343
+ return this.dirty == Sn && e.type.eq(this.widget.type);
24344
24344
  }
24345
24345
  parseRule() {
24346
24346
  return { ignore: !0 };
@@ -24379,13 +24379,13 @@ class uW extends Ps {
24379
24379
  return e.type === "characterData" && e.target.nodeValue == e.oldValue;
24380
24380
  }
24381
24381
  }
24382
- class Li extends Ps {
24382
+ class Gi extends Ps {
24383
24383
  constructor(e, n, r, i, o) {
24384
24384
  super(e, [], r, i), this.mark = n, this.spec = o;
24385
24385
  }
24386
24386
  static create(e, n, r, i) {
24387
24387
  let o = i.nodeViews[n.type.name], a = o && o(n, i, r);
24388
- return (!a || !a.dom) && (a = Ji.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Li(e, n, a.dom, a.contentDOM || a.dom, a);
24388
+ return (!a || !a.dom) && (a = Ji.renderSpec(document, n.type.spec.toDOM(n, r), null, n.attrs)), new Gi(e, n, a.dom, a.contentDOM || a.dom, a);
24389
24389
  }
24390
24390
  parseRule() {
24391
24391
  return this.dirty & tr || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
@@ -24394,15 +24394,15 @@ class Li extends Ps {
24394
24394
  return this.dirty != tr && this.mark.eq(e);
24395
24395
  }
24396
24396
  markDirty(e, n) {
24397
- if (super.markDirty(e, n), this.dirty != kn) {
24397
+ if (super.markDirty(e, n), this.dirty != Sn) {
24398
24398
  let r = this.parent;
24399
24399
  for (; !r.node; )
24400
24400
  r = r.parent;
24401
- r.dirty < this.dirty && (r.dirty = this.dirty), this.dirty = kn;
24401
+ r.dirty < this.dirty && (r.dirty = this.dirty), this.dirty = Sn;
24402
24402
  }
24403
24403
  }
24404
24404
  slice(e, n, r) {
24405
- let i = Li.create(this.parent, this.mark, !0, r), o = this.children, a = this.size;
24405
+ let i = Gi.create(this.parent, this.mark, !0, r), o = this.children, a = this.size;
24406
24406
  n < a && (o = Jf(o, n, a, r)), e > 0 && (o = Jf(o, 0, e, r));
24407
24407
  for (let s = 0; s < o.length; s++)
24408
24408
  o[s].parent = i;
@@ -24466,7 +24466,7 @@ class $r extends Ps {
24466
24466
  return e;
24467
24467
  }
24468
24468
  matchesNode(e, n, r) {
24469
- return this.dirty == kn && e.eq(this.node) && _l(n, this.outerDeco) && r.eq(this.innerDeco);
24469
+ return this.dirty == Sn && e.eq(this.node) && _l(n, this.outerDeco) && r.eq(this.innerDeco);
24470
24470
  }
24471
24471
  get size() {
24472
24472
  return this.node.nodeSize;
@@ -24486,7 +24486,7 @@ class $r extends Ps {
24486
24486
  l.syncToMarks(c.marks, r, e);
24487
24487
  let p;
24488
24488
  l.findNodeMatch(c, u, d, f) || s && e.state.selection.from > i && e.state.selection.to < i + c.nodeSize && (p = l.findIndexWithChild(o.node)) > -1 && l.updateNodeAt(c, u, d, p, e) || l.updateNextNode(c, u, d, e, f, i) || l.addNode(c, u, d, e, i), i += c.nodeSize;
24489
- }), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == bi) && (a && this.protectLocalComposition(e, a), _S(this.contentDOM, this.children, e), No && vW(this.dom));
24489
+ }), l.syncToMarks([], r, e), this.node.isTextblock && l.addTextblockHacks(), l.destroyRest(), (l.changed || this.dirty == yi) && (a && this.protectLocalComposition(e, a), _S(this.contentDOM, this.children, e), No && vW(this.dom));
24490
24490
  }
24491
24491
  localCompositionInfo(e, n) {
24492
24492
  let { from: r, to: i } = e.state.selection;
@@ -24521,7 +24521,7 @@ class $r extends Ps {
24521
24521
  return this.dirty == tr || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, n, r, i), !0);
24522
24522
  }
24523
24523
  updateInner(e, n, r, i) {
24524
- this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = kn;
24524
+ this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Sn;
24525
24525
  }
24526
24526
  updateOuterDeco(e) {
24527
24527
  if (_l(e, this.outerDeco))
@@ -24557,7 +24557,7 @@ class su extends $r {
24557
24557
  return { skip: e || !0 };
24558
24558
  }
24559
24559
  update(e, n, r, i) {
24560
- return this.dirty == tr || this.dirty != kn && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(n), (this.dirty != kn || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = kn, !0);
24560
+ return this.dirty == tr || this.dirty != Sn && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(n), (this.dirty != Sn || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = Sn, !0);
24561
24561
  }
24562
24562
  inParent() {
24563
24563
  let e = this.parent.contentDOM;
@@ -24594,7 +24594,7 @@ class GS extends Ps {
24594
24594
  return { ignore: !0 };
24595
24595
  }
24596
24596
  matchesHack(e) {
24597
- return this.dirty == kn && this.dom.nodeName == e;
24597
+ return this.dirty == Sn && this.dom.nodeName == e;
24598
24598
  }
24599
24599
  get domAtom() {
24600
24600
  return !0;
@@ -24647,7 +24647,7 @@ function _S(t, e, n) {
24647
24647
  r = r.nextSibling;
24648
24648
  } else
24649
24649
  i = !0, t.insertBefore(s, r);
24650
- if (a instanceof Li) {
24650
+ if (a instanceof Gi) {
24651
24651
  let l = r ? r.previousSibling : t.lastChild;
24652
24652
  _S(a.contentDOM, a.children, n), r = l ? l.nextSibling : t.firstChild;
24653
24653
  }
@@ -24660,11 +24660,11 @@ const Ma = function(t) {
24660
24660
  t && (this.nodeName = t);
24661
24661
  };
24662
24662
  Ma.prototype = /* @__PURE__ */ Object.create(null);
24663
- const yi = [new Ma()];
24663
+ const xi = [new Ma()];
24664
24664
  function Uf(t, e, n) {
24665
24665
  if (t.length == 0)
24666
- return yi;
24667
- let r = n ? yi[0] : new Ma(), i = [r];
24666
+ return xi;
24667
+ let r = n ? xi[0] : new Ma(), i = [r];
24668
24668
  for (let o = 0; o < t.length; o++) {
24669
24669
  let a = t[o].type.attrs;
24670
24670
  if (a) {
@@ -24678,16 +24678,16 @@ function Uf(t, e, n) {
24678
24678
  return i;
24679
24679
  }
24680
24680
  function WS(t, e, n, r) {
24681
- if (n == yi && r == yi)
24681
+ if (n == xi && r == xi)
24682
24682
  return e;
24683
24683
  let i = e;
24684
24684
  for (let o = 0; o < r.length; o++) {
24685
24685
  let a = r[o], s = n[o];
24686
24686
  if (o) {
24687
24687
  let l;
24688
- s && s.nodeName == a.nodeName && i != t && (l = i.parentNode) && l.nodeName.toLowerCase() == a.nodeName || (l = document.createElement(a.nodeName), l.pmIsDeco = !0, l.appendChild(i), s = yi[0]), i = l;
24688
+ s && s.nodeName == a.nodeName && i != t && (l = i.parentNode) && l.nodeName.toLowerCase() == a.nodeName || (l = document.createElement(a.nodeName), l.pmIsDeco = !0, l.appendChild(i), s = xi[0]), i = l;
24689
24689
  }
24690
- fW(i, s || yi[0], a);
24690
+ fW(i, s || xi[0], a);
24691
24691
  }
24692
24692
  return i;
24693
24693
  }
@@ -24714,7 +24714,7 @@ function fW(t, e, n) {
24714
24714
  }
24715
24715
  }
24716
24716
  function zS(t, e, n) {
24717
- return WS(t, t, yi, Uf(e, n, t.nodeType != 1));
24717
+ return WS(t, t, xi, Uf(e, n, t.nodeType != 1));
24718
24718
  }
24719
24719
  function _l(t, e) {
24720
24720
  if (t.length != e.length)
@@ -24752,7 +24752,7 @@ class pW {
24752
24752
  for (; i < a && (i == o - 1 ? this.top : this.stack[i + 1 << 1]).matchesMark(e[i]) && e[i].type.spec.spanning !== !1; )
24753
24753
  i++;
24754
24754
  for (; i < o; )
24755
- this.destroyRest(), this.top.dirty = kn, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
24755
+ this.destroyRest(), this.top.dirty = Sn, this.index = this.stack.pop(), this.top = this.stack.pop(), o--;
24756
24756
  for (; o < e.length; ) {
24757
24757
  this.stack.push(this.top, this.index + 1);
24758
24758
  let s = -1;
@@ -24766,7 +24766,7 @@ class pW {
24766
24766
  if (s > -1)
24767
24767
  s > this.index && (this.changed = !0, this.destroyBetween(this.index, s)), this.top = this.top.children[this.index];
24768
24768
  else {
24769
- let l = Li.create(this.top, e[o], n, r);
24769
+ let l = Gi.create(this.top, e[o], n, r);
24770
24770
  this.top.children.splice(this.index, 0, l), this.top = l, this.changed = !0;
24771
24771
  }
24772
24772
  this.index = 0, o++;
@@ -24790,7 +24790,7 @@ class pW {
24790
24790
  }
24791
24791
  updateNodeAt(e, n, r, i, o) {
24792
24792
  let a = this.top.children[i];
24793
- return a.dirty == tr && a.dom == a.contentDOM && (a.dirty = bi), a.update(e, n, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
24793
+ return a.dirty == tr && a.dom == a.contentDOM && (a.dirty = yi), a.update(e, n, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
24794
24794
  }
24795
24795
  findIndexWithChild(e) {
24796
24796
  for (; ; ) {
@@ -24822,7 +24822,7 @@ class pW {
24822
24822
  if (!f && l.update(e, n, r, i))
24823
24823
  return this.destroyBetween(this.index, s), l.dom != u && (this.changed = !0), this.index++, !0;
24824
24824
  if (!f && (d = this.recreateWrapper(l, e, n, r, i, a)))
24825
- return this.destroyBetween(this.index, s), this.top.children[this.index] = d, d.contentDOM && (d.dirty = bi, d.updateChildren(i, a + 1), d.dirty = kn), this.changed = !0, this.index++, !0;
24825
+ return this.destroyBetween(this.index, s), this.top.children[this.index] = d, d.contentDOM && (d.dirty = yi, d.updateChildren(i, a + 1), d.dirty = Sn), this.changed = !0, this.index++, !0;
24826
24826
  break;
24827
24827
  }
24828
24828
  }
@@ -24859,7 +24859,7 @@ class pW {
24859
24859
  // contentEditable.
24860
24860
  addTextblockHacks() {
24861
24861
  let e = this.top.children[this.index - 1], n = this.top;
24862
- for (; e instanceof Li; )
24862
+ for (; e instanceof Gi; )
24863
24863
  n = e, e = n.children[n.children.length - 1];
24864
24864
  (!e || // Empty textblock
24865
24865
  !(e instanceof su) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((qt || $t) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
@@ -24885,7 +24885,7 @@ function hW(t, e) {
24885
24885
  for (; ; )
24886
24886
  if (r) {
24887
24887
  let c = n.children[r - 1];
24888
- if (c instanceof Li)
24888
+ if (c instanceof Gi)
24889
24889
  n = c, r = c.children.length;
24890
24890
  else {
24891
24891
  s = c, r--;
@@ -25040,7 +25040,7 @@ function mr(t, e = !1) {
25040
25040
  if ($S(t, n), !!HS(t)) {
25041
25041
  if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && $t) {
25042
25042
  let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
25043
- if (r.anchorNode && i.anchorNode && Vi(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
25043
+ if (r.anchorNode && i.anchorNode && Li(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
25044
25044
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
25045
25045
  return;
25046
25046
  }
@@ -25117,7 +25117,7 @@ function XS(t) {
25117
25117
  }
25118
25118
  function CW(t) {
25119
25119
  let e = t.docView.domFromPos(t.state.selection.anchor, 0), n = t.domSelectionRange();
25120
- return Vi(e.node, e.offset, n.anchorNode, n.anchorOffset);
25120
+ return Li(e.node, e.offset, n.anchorNode, n.anchorOffset);
25121
25121
  }
25122
25122
  function Kf(t, e) {
25123
25123
  let { $anchor: n, $head: r } = t.selection, i = e > 0 ? n.max(r) : n.min(r), o = i.parent.inlineContent ? i.depth ? t.doc.resolve(e > 0 ? i.after() : i.before()) : null : i;
@@ -25139,7 +25139,7 @@ function Hb(t, e, n) {
25139
25139
  if (t.endOfTextblock(e > 0 ? "forward" : "backward")) {
25140
25140
  let i = Kf(t.state, e);
25141
25141
  return i && i instanceof Ee ? Ar(t, i) : !1;
25142
- } else if (!(xn && n.indexOf("m") > -1)) {
25142
+ } else if (!(yn && n.indexOf("m") > -1)) {
25143
25143
  let i = r.$head, o = i.textOffset ? null : e < 0 ? i.nodeBefore : i.nodeAfter, a;
25144
25144
  if (!o || o.isText)
25145
25145
  return !1;
@@ -25299,7 +25299,7 @@ function $b(t, e) {
25299
25299
  }
25300
25300
  function Xb(t, e, n) {
25301
25301
  let r = t.state.selection;
25302
- if (r instanceof Re && !r.empty || n.indexOf("s") > -1 || xn && n.indexOf("m") > -1)
25302
+ if (r instanceof Re && !r.empty || n.indexOf("s") > -1 || yn && n.indexOf("m") > -1)
25303
25303
  return !1;
25304
25304
  let { $from: i, $to: o } = r;
25305
25305
  if (!i.parent.inlineContent || t.endOfTextblock(e < 0 ? "up" : "down")) {
@@ -25349,24 +25349,24 @@ function AW(t) {
25349
25349
  }
25350
25350
  function TW(t, e) {
25351
25351
  let n = e.keyCode, r = AW(e);
25352
- if (n == 8 || xn && n == 72 && r == "c")
25352
+ if (n == 8 || yn && n == 72 && r == "c")
25353
25353
  return Yb(t, -1) || ro(t, -1);
25354
- if (n == 46 && !e.shiftKey || xn && n == 68 && r == "c")
25354
+ if (n == 46 && !e.shiftKey || yn && n == 68 && r == "c")
25355
25355
  return Yb(t, 1) || ro(t, 1);
25356
25356
  if (n == 13 || n == 27)
25357
25357
  return !0;
25358
- if (n == 37 || xn && n == 66 && r == "c") {
25358
+ if (n == 37 || yn && n == 66 && r == "c") {
25359
25359
  let i = n == 37 ? $b(t, t.state.selection.from) == "ltr" ? -1 : 1 : -1;
25360
25360
  return Hb(t, i, r) || ro(t, i);
25361
- } else if (n == 39 || xn && n == 70 && r == "c") {
25361
+ } else if (n == 39 || yn && n == 70 && r == "c") {
25362
25362
  let i = n == 39 ? $b(t, t.state.selection.from) == "ltr" ? 1 : -1 : 1;
25363
25363
  return Hb(t, i, r) || ro(t, i);
25364
25364
  } else {
25365
- if (n == 38 || xn && n == 80 && r == "c")
25365
+ if (n == 38 || yn && n == 80 && r == "c")
25366
25366
  return Xb(t, -1, r) || ro(t, -1);
25367
- if (n == 40 || xn && n == 78 && r == "c")
25367
+ if (n == 40 || yn && n == 78 && r == "c")
25368
25368
  return IW(t) || Xb(t, 1, r) || ro(t, 1);
25369
- if (r == (xn ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
25369
+ if (r == (yn ? "m" : "c") && (n == 66 || n == 73 || n == 89 || n == 90))
25370
25370
  return !0;
25371
25371
  }
25372
25372
  return !1;
@@ -25614,7 +25614,7 @@ en.keydown = (t, e) => {
25614
25614
  if (n.keyCode != 229 && t.domObserver.forceFlush(), No && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
25615
25615
  let r = Date.now();
25616
25616
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
25617
- t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, di(13, "Enter"))), t.input.lastIOSEnter = 0);
25617
+ t.input.lastIOSEnter == r && (t.someProp("handleKeyDown", (i) => i(t, fi(13, "Enter"))), t.input.lastIOSEnter = 0);
25618
25618
  }, 200);
25619
25619
  } else t.someProp("handleKeyDown", (r) => r(t, n)) || TW(t, n) ? n.preventDefault() : Gr(t, "key");
25620
25620
  };
@@ -25623,7 +25623,7 @@ en.keyup = (t, e) => {
25623
25623
  };
25624
25624
  en.keypress = (t, e) => {
25625
25625
  let n = e;
25626
- if (nk(t, n) || !n.charCode || n.ctrlKey && !n.altKey || xn && n.metaKey)
25626
+ if (nk(t, n) || !n.charCode || n.ctrlKey && !n.altKey || yn && n.metaKey)
25627
25627
  return;
25628
25628
  if (t.someProp("handleKeyPress", (i) => i(t, n))) {
25629
25629
  n.preventDefault();
@@ -25708,7 +25708,7 @@ function YW(t, e, n) {
25708
25708
  function Zh(t) {
25709
25709
  return zl(t);
25710
25710
  }
25711
- const tk = xn ? "metaKey" : "ctrlKey";
25711
+ const tk = yn ? "metaKey" : "ctrlKey";
25712
25712
  Qt.mousedown = (t, e) => {
25713
25713
  let n = e;
25714
25714
  t.input.shiftKey = n.shiftKey;
@@ -25899,7 +25899,7 @@ class ak {
25899
25899
  this.slice = e, this.move = n, this.node = r;
25900
25900
  }
25901
25901
  }
25902
- const sk = xn ? "altKey" : "ctrlKey";
25902
+ const sk = yn ? "altKey" : "ctrlKey";
25903
25903
  Qt.dragstart = (t, e) => {
25904
25904
  let n = e, r = t.input.mouseDown;
25905
25905
  if (r && r.done(), !n.dataTransfer)
@@ -25975,7 +25975,7 @@ Qt.beforeinput = (t, e) => {
25975
25975
  t.domObserver.flushSoon();
25976
25976
  let { domChangeCount: r } = t.input;
25977
25977
  setTimeout(() => {
25978
- if (t.input.domChangeCount != r || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t, di(8, "Backspace")))))
25978
+ if (t.input.domChangeCount != r || (t.dom.blur(), t.focus(), t.someProp("handleKeyDown", (o) => o(t, fi(8, "Backspace")))))
25979
25979
  return;
25980
25980
  let { $cursor: i } = t.state.selection;
25981
25981
  i && i.pos > 0 && t.dispatch(t.state.tr.delete(i.pos - 1, i.pos).scrollIntoView());
@@ -25997,11 +25997,11 @@ function is(t, e) {
25997
25997
  }
25998
25998
  class Hl {
25999
25999
  constructor(e, n) {
26000
- this.toDOM = e, this.spec = n || Pi, this.side = this.spec.side || 0;
26000
+ this.toDOM = e, this.spec = n || Di, this.side = this.spec.side || 0;
26001
26001
  }
26002
26002
  map(e, n, r, i) {
26003
26003
  let { pos: o, deleted: a } = e.mapResult(n.from + i, this.side < 0 ? -1 : 1);
26004
- return a ? null : new Sn(o - r, o - r, this);
26004
+ return a ? null : new wn(o - r, o - r, this);
26005
26005
  }
26006
26006
  valid() {
26007
26007
  return !0;
@@ -26015,11 +26015,11 @@ class Hl {
26015
26015
  }
26016
26016
  class Xr {
26017
26017
  constructor(e, n) {
26018
- this.attrs = e, this.spec = n || Pi;
26018
+ this.attrs = e, this.spec = n || Di;
26019
26019
  }
26020
26020
  map(e, n, r, i) {
26021
26021
  let o = e.map(n.from + i, this.spec.inclusiveStart ? -1 : 1) - r, a = e.map(n.to + i, this.spec.inclusiveEnd ? 1 : -1) - r;
26022
- return o >= a ? null : new Sn(o, a, this);
26022
+ return o >= a ? null : new wn(o, a, this);
26023
26023
  }
26024
26024
  valid(e, n) {
26025
26025
  return n.from < n.to;
@@ -26035,14 +26035,14 @@ class Xr {
26035
26035
  }
26036
26036
  class Uh {
26037
26037
  constructor(e, n) {
26038
- this.attrs = e, this.spec = n || Pi;
26038
+ this.attrs = e, this.spec = n || Di;
26039
26039
  }
26040
26040
  map(e, n, r, i) {
26041
26041
  let o = e.mapResult(n.from + i, 1);
26042
26042
  if (o.deleted)
26043
26043
  return null;
26044
26044
  let a = e.mapResult(n.to + i, -1);
26045
- return a.deleted || a.pos <= o.pos ? null : new Sn(o.pos - r, a.pos - r, this);
26045
+ return a.deleted || a.pos <= o.pos ? null : new wn(o.pos - r, a.pos - r, this);
26046
26046
  }
26047
26047
  valid(e, n) {
26048
26048
  let { index: r, offset: i } = e.content.findIndex(n.from), o;
@@ -26054,7 +26054,7 @@ class Uh {
26054
26054
  destroy() {
26055
26055
  }
26056
26056
  }
26057
- class Sn {
26057
+ class wn {
26058
26058
  /**
26059
26059
  @internal
26060
26060
  */
@@ -26065,7 +26065,7 @@ class Sn {
26065
26065
  @internal
26066
26066
  */
26067
26067
  copy(e, n) {
26068
- return new Sn(e, n, this.type);
26068
+ return new wn(e, n, this.type);
26069
26069
  }
26070
26070
  /**
26071
26071
  @internal
@@ -26088,14 +26088,14 @@ class Sn {
26088
26088
  widget's current document position.
26089
26089
  */
26090
26090
  static widget(e, n, r) {
26091
- return new Sn(e, e, new Hl(n, r));
26091
+ return new wn(e, e, new Hl(n, r));
26092
26092
  }
26093
26093
  /**
26094
26094
  Creates an inline decoration, which adds the given attributes to
26095
26095
  each inline node between `from` and `to`.
26096
26096
  */
26097
26097
  static inline(e, n, r, i) {
26098
- return new Sn(e, n, new Xr(r, i));
26098
+ return new wn(e, n, new Xr(r, i));
26099
26099
  }
26100
26100
  /**
26101
26101
  Creates a node decoration. `from` and `to` should point precisely
@@ -26103,7 +26103,7 @@ class Sn {
26103
26103
  node, will receive the given attributes.
26104
26104
  */
26105
26105
  static node(e, n, r, i) {
26106
- return new Sn(e, n, new Uh(r, i));
26106
+ return new wn(e, n, new Uh(r, i));
26107
26107
  }
26108
26108
  /**
26109
26109
  The spec provided when creating this decoration. Can be useful
@@ -26125,7 +26125,7 @@ class Sn {
26125
26125
  return this.type instanceof Hl;
26126
26126
  }
26127
26127
  }
26128
- const oo = [], Pi = {};
26128
+ const oo = [], Di = {};
26129
26129
  class St {
26130
26130
  /**
26131
26131
  @internal
@@ -26139,7 +26139,7 @@ class St {
26139
26139
  you must make a copy if you want need to preserve that.
26140
26140
  */
26141
26141
  static create(e, n) {
26142
- return n.length ? $l(n, e, 0, Pi) : zt;
26142
+ return n.length ? $l(n, e, 0, Di) : zt;
26143
26143
  }
26144
26144
  /**
26145
26145
  Find all decorations in this set which touch the given range
@@ -26169,7 +26169,7 @@ class St {
26169
26169
  document.
26170
26170
  */
26171
26171
  map(e, n, r) {
26172
- return this == zt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Pi);
26172
+ return this == zt || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Di);
26173
26173
  }
26174
26174
  /**
26175
26175
  @internal
@@ -26180,7 +26180,7 @@ class St {
26180
26180
  let l = this.local[s].map(e, r, i);
26181
26181
  l && l.type.valid(n, l) ? (a || (a = [])).push(l) : o.onRemove && o.onRemove(this.local[s].spec);
26182
26182
  }
26183
- return this.children.length ? tz(this.children, a || [], e, n, r, i, o) : a ? new St(a.sort(Di), oo) : zt;
26183
+ return this.children.length ? tz(this.children, a || [], e, n, r, i, o) : a ? new St(a.sort(Ri), oo) : zt;
26184
26184
  }
26185
26185
  /**
26186
26186
  Add the given array of decorations to the ones in the set,
@@ -26198,13 +26198,13 @@ class St {
26198
26198
  if (u = ck(n, s, c)) {
26199
26199
  for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
26200
26200
  o += 3;
26201
- i[o] == l ? i[o + 2] = i[o + 2].addInner(s, u, c + 1) : i.splice(o, 0, l, l + s.nodeSize, $l(u, s, c + 1, Pi)), o += 3;
26201
+ i[o] == l ? i[o + 2] = i[o + 2].addInner(s, u, c + 1) : i.splice(o, 0, l, l + s.nodeSize, $l(u, s, c + 1, Di)), o += 3;
26202
26202
  }
26203
26203
  });
26204
26204
  let a = lk(o ? uk(n) : n, -r);
26205
26205
  for (let s = 0; s < a.length; s++)
26206
26206
  a[s].type.valid(e, a[s]) || a.splice(s--, 1);
26207
- return new St(a.length ? this.local.concat(a).sort(Di) : this.local, i || this.children);
26207
+ return new St(a.length ? this.local.concat(a).sort(Ri) : this.local, i || this.children);
26208
26208
  }
26209
26209
  /**
26210
26210
  Create a new set that contains the decorations in this set, minus
@@ -26253,7 +26253,7 @@ class St {
26253
26253
  }
26254
26254
  }
26255
26255
  if (i) {
26256
- let s = new St(i.sort(Di), oo);
26256
+ let s = new St(i.sort(Ri), oo);
26257
26257
  return r ? new Dr([s, r]) : s;
26258
26258
  }
26259
26259
  return r || zt;
@@ -26305,7 +26305,7 @@ class Dr {
26305
26305
  this.members = e;
26306
26306
  }
26307
26307
  map(e, n) {
26308
- const r = this.members.map((i) => i.map(e, n, Pi));
26308
+ const r = this.members.map((i) => i.map(e, n, Di));
26309
26309
  return Dr.from(r);
26310
26310
  }
26311
26311
  forChild(e, n) {
@@ -26339,7 +26339,7 @@ class Dr {
26339
26339
  n.push(o[a]);
26340
26340
  }
26341
26341
  }
26342
- return n ? Jh(r ? n : n.sort(Di)) : oo;
26342
+ return n ? Jh(r ? n : n.sort(Ri)) : oo;
26343
26343
  }
26344
26344
  // Create a group for the given array of decoration sets, or return
26345
26345
  // a single set when possible.
@@ -26405,7 +26405,7 @@ function tz(t, e, n, r, i, o, a) {
26405
26405
  s.splice(f, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
26406
26406
  }
26407
26407
  }
26408
- return new St(e.sort(Di), s);
26408
+ return new St(e.sort(Ri), s);
26409
26409
  }
26410
26410
  function lk(t, e) {
26411
26411
  if (!e || !t.length)
@@ -26413,7 +26413,7 @@ function lk(t, e) {
26413
26413
  let n = [];
26414
26414
  for (let r = 0; r < t.length; r++) {
26415
26415
  let i = t[r];
26416
- n.push(new Sn(i.from + e, i.to + e, i.type));
26416
+ n.push(new wn(i.from + e, i.to + e, i.type));
26417
26417
  }
26418
26418
  return n;
26419
26419
  }
@@ -26454,12 +26454,12 @@ function $l(t, e, n, r) {
26454
26454
  u != zt && i.push(l, l + s.nodeSize, u);
26455
26455
  }
26456
26456
  });
26457
- let a = lk(o ? uk(t) : t, -n).sort(Di);
26457
+ let a = lk(o ? uk(t) : t, -n).sort(Ri);
26458
26458
  for (let s = 0; s < a.length; s++)
26459
26459
  a[s].type.valid(e, a[s]) || (r.onRemove && r.onRemove(a[s].spec), a.splice(s--, 1));
26460
26460
  return a.length || i.length ? new St(a, i) : zt;
26461
26461
  }
26462
- function Di(t, e) {
26462
+ function Ri(t, e) {
26463
26463
  return t.from - e.from || t.to - e.to;
26464
26464
  }
26465
26465
  function Jh(t) {
@@ -26481,7 +26481,7 @@ function Jh(t) {
26481
26481
  return e;
26482
26482
  }
26483
26483
  function Kb(t, e, n) {
26484
- for (; e < t.length && Di(n, t[e]) > 0; )
26484
+ for (; e < t.length && Ri(n, t[e]) > 0; )
26485
26485
  e++;
26486
26486
  t.splice(e, 0, n);
26487
26487
  }
@@ -26562,7 +26562,7 @@ class az {
26562
26562
  return mr(this.view);
26563
26563
  if (sn && Hr <= 11 && !this.view.state.selection.empty) {
26564
26564
  let e = this.view.domSelectionRange();
26565
- if (e.focusNode && Vi(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
26565
+ if (e.focusNode && Li(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
26566
26566
  return this.flushSoon();
26567
26567
  }
26568
26568
  this.flush();
@@ -26666,7 +26666,7 @@ function sz(t) {
26666
26666
  }
26667
26667
  function e0(t, e) {
26668
26668
  let n = e.startContainer, r = e.startOffset, i = e.endContainer, o = e.endOffset, a = t.domAtPos(t.state.selection.anchor);
26669
- return Vi(a.node, a.offset, i, o) && ([n, r, i, o] = [i, o, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: o };
26669
+ return Li(a.node, a.offset, i, o) && ([n, r, i, o] = [i, o, n, r]), { anchorNode: n, anchorOffset: r, focusNode: i, focusOffset: o };
26670
26670
  }
26671
26671
  function lz(t, e) {
26672
26672
  if (e.getComposedRanges) {
@@ -26737,7 +26737,7 @@ function pz(t, e, n, r, i) {
26737
26737
  if (t.input.compositionPendingChanges = 0, e < 0) {
26738
26738
  let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, I = Hh(t, k);
26739
26739
  if (I && !t.state.selection.eq(I)) {
26740
- if ($t && dr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (O) => O(t, di(13, "Enter"))))
26740
+ if ($t && dr && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (O) => O(t, fi(13, "Enter"))))
26741
26741
  return;
26742
26742
  let A = t.state.tr.setSelection(I);
26743
26743
  k == "pointer" ? A.setMeta("pointer", !0) : k == "key" && A.scrollIntoView(), o && A.setMeta("composition", o), t.dispatch(A);
@@ -26749,7 +26749,7 @@ function pz(t, e, n, r, i) {
26749
26749
  let l = t.state.selection, c = uz(t, e, n), u = t.state.doc, d = u.slice(c.from, c.to), f, p;
26750
26750
  t.input.lastKeyCode === 8 && Date.now() - 100 < t.input.lastKeyCodeTime ? (f = t.state.selection.to, p = "end") : (f = t.state.selection.from, p = "start"), t.input.lastKeyCode = null;
26751
26751
  let h = gz(d.content, c.doc.content, c.from, f, p);
26752
- if (h && t.input.domChangeCount++, (No && t.input.lastIOSEnter > Date.now() - 225 || dr) && i.some((k) => k.nodeType == 1 && !fz.test(k.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (k) => k(t, di(13, "Enter")))) {
26752
+ if (h && t.input.domChangeCount++, (No && t.input.lastIOSEnter > Date.now() - 225 || dr) && i.some((k) => k.nodeType == 1 && !fz.test(k.nodeName)) && (!h || h.endA >= h.endB) && t.someProp("handleKeyDown", (k) => k(t, fi(13, "Enter")))) {
26753
26753
  t.input.lastIOSEnter = 0;
26754
26754
  return;
26755
26755
  }
@@ -26768,17 +26768,17 @@ function pz(t, e, n, r, i) {
26768
26768
  }
26769
26769
  t.state.selection.from < t.state.selection.to && h.start == h.endB && t.state.selection instanceof Re && (h.start > t.state.selection.from && h.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? h.start = t.state.selection.from : h.endA < t.state.selection.to && h.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (h.endB += t.state.selection.to - h.endA, h.endA = t.state.selection.to)), sn && Hr <= 11 && h.endB == h.start + 1 && h.endA == h.start && h.start > c.from && c.doc.textBetween(h.start - c.from - 1, h.start - c.from + 1) == "  " && (h.start--, h.endA--, h.endB--);
26770
26770
  let m = c.doc.resolveNoCache(h.start - c.from), g = c.doc.resolveNoCache(h.endB - c.from), v = u.resolve(h.start), b = m.sameParent(g) && m.parent.inlineContent && v.end() >= h.endA, w;
26771
- if ((No && t.input.lastIOSEnter > Date.now() - 225 && (!b || i.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !b && m.pos < c.doc.content.size && !m.sameParent(g) && (w = Fe.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && w.head == g.pos) && t.someProp("handleKeyDown", (k) => k(t, di(13, "Enter")))) {
26771
+ if ((No && t.input.lastIOSEnter > Date.now() - 225 && (!b || i.some((k) => k.nodeName == "DIV" || k.nodeName == "P")) || !b && m.pos < c.doc.content.size && !m.sameParent(g) && (w = Fe.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && w.head == g.pos) && t.someProp("handleKeyDown", (k) => k(t, fi(13, "Enter")))) {
26772
26772
  t.input.lastIOSEnter = 0;
26773
26773
  return;
26774
26774
  }
26775
- if (t.state.selection.anchor > h.start && mz(u, h.start, h.endA, m, g) && t.someProp("handleKeyDown", (k) => k(t, di(8, "Backspace")))) {
26775
+ if (t.state.selection.anchor > h.start && mz(u, h.start, h.endA, m, g) && t.someProp("handleKeyDown", (k) => k(t, fi(8, "Backspace")))) {
26776
26776
  dr && $t && t.domObserver.suppressSelectionUpdates();
26777
26777
  return;
26778
26778
  }
26779
26779
  $t && h.endB == h.start && (t.input.lastChromeDelete = Date.now()), dr && !b && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == h.endA && (h.endB -= 2, g = c.doc.resolveNoCache(h.endB - c.from), setTimeout(() => {
26780
26780
  t.someProp("handleKeyDown", function(k) {
26781
- return k(t, di(13, "Enter"));
26781
+ return k(t, fi(13, "Enter"));
26782
26782
  });
26783
26783
  }, 20));
26784
26784
  let y = h.start, x = h.endA, C, E, S;
@@ -27214,12 +27214,12 @@ function r0(t) {
27214
27214
  if (typeof n == "function" && (n = n(t.state)), n)
27215
27215
  for (let r in n)
27216
27216
  r == "class" ? e.class += " " + n[r] : r == "style" ? e.style = (e.style ? e.style + ";" : "") + n[r] : !e[r] && r != "contenteditable" && r != "nodeName" && (e[r] = String(n[r]));
27217
- }), e.translate || (e.translate = "no"), [Sn.node(0, t.state.doc.content.size, e)];
27217
+ }), e.translate || (e.translate = "no"), [wn.node(0, t.state.doc.content.size, e)];
27218
27218
  }
27219
27219
  function i0(t) {
27220
27220
  if (t.markCursor) {
27221
27221
  let e = document.createElement("img");
27222
- e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: Sn.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) };
27222
+ e.className = "ProseMirror-separator", e.setAttribute("mark-placeholder", "true"), e.setAttribute("alt", ""), t.cursorWrapper = { dom: e, deco: wn.widget(t.state.selection.from, e, { raw: !0, marks: t.markCursor }) };
27223
27223
  } else
27224
27224
  t.cursorWrapper = null;
27225
27225
  }
@@ -27550,7 +27550,7 @@ function qh(t) {
27550
27550
  const Nz = (t, e) => {
27551
27551
  let n = t.selection, r = n instanceof Ee, i;
27552
27552
  if (r) {
27553
- if (n.node.isTextblock || !ei(t.doc, n.from))
27553
+ if (n.node.isTextblock || !ti(t.doc, n.from))
27554
27554
  return !1;
27555
27555
  i = n.from;
27556
27556
  } else if (i = ru(t.doc, n.from, -1), i == null)
@@ -27563,7 +27563,7 @@ const Nz = (t, e) => {
27563
27563
  }, Fz = (t, e) => {
27564
27564
  let n = t.selection, r;
27565
27565
  if (n instanceof Ee) {
27566
- if (n.node.isTextblock || !ei(t.doc, n.to))
27566
+ if (n.node.isTextblock || !ti(t.doc, n.to))
27567
27567
  return !1;
27568
27568
  r = n.to;
27569
27569
  } else if (r = ru(t.doc, n.to, 1), r == null)
@@ -27626,7 +27626,7 @@ const Vz = (t, e) => {
27626
27626
  };
27627
27627
  function Wz(t, e, n) {
27628
27628
  let r = e.nodeBefore, i = e.nodeAfter, o = e.index();
27629
- return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || ei(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
27629
+ return !r || !i || !r.type.compatibleContent(i.type) ? !1 : !r.content.size && e.parent.canReplace(o - 1, o) ? (n && n(t.tr.delete(e.pos - r.nodeSize, e.pos).scrollIntoView()), !0) : !e.parent.canReplace(o, o + 1) || !(i.isTextblock || ti(t.doc, e.pos)) ? !1 : (n && n(t.tr.join(e.pos).scrollIntoView()), !0);
27630
27630
  }
27631
27631
  function gk(t, e, n, r) {
27632
27632
  let i = e.nodeBefore, o = e.nodeAfter, a, s, l = i.type.spec.isolating || o.type.spec.isolating;
@@ -27640,7 +27640,7 @@ function gk(t, e, n, r) {
27640
27640
  h = le.from(a[v].create(null, h));
27641
27641
  h = le.from(i.copy(h));
27642
27642
  let m = t.tr.step(new Tt(e.pos - 1, p, e.pos, p, new me(h, 1, 0), a.length, !0)), g = m.doc.resolve(p + 2 * a.length);
27643
- g.nodeAfter && g.nodeAfter.type == i.type && ei(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
27643
+ g.nodeAfter && g.nodeAfter.type == i.type && ti(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
27644
27644
  }
27645
27645
  return !0;
27646
27646
  }
@@ -27763,7 +27763,7 @@ function Jz(t, e, n, r) {
27763
27763
  return !1;
27764
27764
  i.lift(r, s);
27765
27765
  let l = i.mapping.map(o, -1) - 1;
27766
- return ei(i.doc, l) && i.join(l), e(i.scrollIntoView()), !0;
27766
+ return ti(i.doc, l) && i.join(l), e(i.scrollIntoView()), !0;
27767
27767
  }
27768
27768
  function Kz(t, e, n) {
27769
27769
  let r = t.tr, i = n.parent;
@@ -28711,7 +28711,7 @@ const hH = Xt.create({
28711
28711
  addProseMirrorPlugins() {
28712
28712
  return [
28713
28713
  new Vt({
28714
- key: new mn("clipboardTextSerializer"),
28714
+ key: new hn("clipboardTextSerializer"),
28715
28715
  props: {
28716
28716
  clipboardTextSerializer: () => {
28717
28717
  const { editor: t } = this, { state: e, schema: n } = t, { doc: r, selection: i } = e, { ranges: o } = i, a = Math.min(...o.map((u) => u.$from.pos)), s = Math.max(...o.map((u) => u.$to.pos)), l = Ck(n);
@@ -28809,7 +28809,7 @@ function tm(t, e, n) {
28809
28809
  to: c
28810
28810
  };
28811
28811
  }
28812
- function ni(t, e) {
28812
+ function ri(t, e) {
28813
28813
  if (typeof t == "string") {
28814
28814
  if (!e.marks[t])
28815
28815
  throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);
@@ -28818,7 +28818,7 @@ function ni(t, e) {
28818
28818
  return t;
28819
28819
  }
28820
28820
  const AH = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
28821
- const o = ni(t, r.schema), { doc: a, selection: s } = n, { $from: l, from: c, to: u } = s;
28821
+ const o = ri(t, r.schema), { doc: a, selection: s } = n, { $from: l, from: c, to: u } = s;
28822
28822
  if (i) {
28823
28823
  const d = tm(l, o, e);
28824
28824
  if (d && d.from <= c && d.to >= u) {
@@ -28837,7 +28837,7 @@ const AH = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
28837
28837
  function Sk(t) {
28838
28838
  return t instanceof Re;
28839
28839
  }
28840
- function xi(t = 0, e = 0, n = 0) {
28840
+ function Ci(t = 0, e = 0, n = 0) {
28841
28841
  return Math.min(Math.max(t, e), n);
28842
28842
  }
28843
28843
  function kk(t, e = null) {
@@ -28849,7 +28849,7 @@ function kk(t, e = null) {
28849
28849
  if (e === "end")
28850
28850
  return r;
28851
28851
  const i = n.from, o = r.to;
28852
- return e === "all" ? Re.create(t, xi(0, i, o), xi(t.content.size, i, o)) : Re.create(t, xi(e, i, o), xi(e, i, o));
28852
+ return e === "all" ? Re.create(t, Ci(0, i, o), Ci(t.content.size, i, o)) : Re.create(t, Ci(e, i, o), Ci(e, i, o));
28853
28853
  }
28854
28854
  function nm() {
28855
28855
  return [
@@ -29091,7 +29091,7 @@ function p0(t, e) {
29091
29091
  const UH = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
29092
29092
  let o = null, a = null;
29093
29093
  const s = hu(typeof t == "string" ? t : t.name, r.schema);
29094
- return s ? (s === "node" && (o = Pt(t, r.schema)), s === "mark" && (a = ni(t, r.schema)), i && n.selection.ranges.forEach((l) => {
29094
+ return s ? (s === "node" && (o = Pt(t, r.schema)), s === "mark" && (a = ri(t, r.schema)), i && n.selection.ranges.forEach((l) => {
29095
29095
  r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
29096
29096
  o && o === c.type && n.setNodeMarkup(u, void 0, p0(c.attrs, e)), a && c.marks.length && c.marks.forEach((d) => {
29097
29097
  a === d.type && n.addMark(u, u + c.nodeSize, a.create(p0(d.attrs, e)));
@@ -29124,7 +29124,7 @@ const r9 = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: a, comm
29124
29124
  });
29125
29125
  };
29126
29126
  function rm(t, e) {
29127
- const n = ni(e, t.schema), { from: r, to: i, empty: o } = t.selection, a = [];
29127
+ const n = ri(e, t.schema), { from: r, to: i, empty: o } = t.selection, a = [];
29128
29128
  o ? (t.storedMarks && a.push(...t.storedMarks), a.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (l) => {
29129
29129
  a.push(...l.marks);
29130
29130
  });
@@ -29253,7 +29253,7 @@ function hl(t, e, n) {
29253
29253
  }));
29254
29254
  }
29255
29255
  function rp(t, e, n = {}) {
29256
- const { empty: r, ranges: i } = t.selection, o = e ? ni(e, t.schema) : null;
29256
+ const { empty: r, ranges: i } = t.selection, o = e ? ri(e, t.schema) : null;
29257
29257
  if (r)
29258
29258
  return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => Yl(d.attrs, n, { strict: !1 }));
29259
29259
  let a = 0;
@@ -29340,7 +29340,7 @@ function m9(t, e, n) {
29340
29340
  });
29341
29341
  }
29342
29342
  const g9 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
29343
- const { selection: o } = n, { empty: a, ranges: s } = o, l = ni(t, r.schema);
29343
+ const { selection: o } = n, { empty: a, ranges: s } = o, l = ri(t, r.schema);
29344
29344
  if (i)
29345
29345
  if (a) {
29346
29346
  const c = rm(r, l);
@@ -29368,13 +29368,13 @@ const g9 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
29368
29368
  return n.selection.$anchor.sameParent(n.selection.$head) && (a = n.selection.$anchor.parent.attrs), o.isTextblock ? i().command(({ commands: s }) => l0(o, { ...a, ...e })(n) ? !0 : s.clearNodes()).command(({ state: s }) => l0(o, { ...a, ...e })(s, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
29369
29369
  }, y9 = (t) => ({ tr: e, dispatch: n }) => {
29370
29370
  if (n) {
29371
- const { doc: r } = e, i = xi(t, 0, r.content.size), o = Ee.create(r, i);
29371
+ const { doc: r } = e, i = Ci(t, 0, r.content.size), o = Ee.create(r, i);
29372
29372
  e.setSelection(o);
29373
29373
  }
29374
29374
  return !0;
29375
29375
  }, x9 = (t) => ({ tr: e, dispatch: n }) => {
29376
29376
  if (n) {
29377
- const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, a = Re.atStart(r).from, s = Re.atEnd(r).to, l = xi(i, a, s), c = xi(o, a, s), u = Re.create(r, l, c);
29377
+ const { doc: r } = e, { from: i, to: o } = typeof t == "number" ? { from: t, to: t } : t, a = Re.atStart(r).from, s = Re.atEnd(r).to, l = Ci(i, a, s), c = Ci(o, a, s), u = Re.create(r, l, c);
29378
29378
  e.setSelection(u);
29379
29379
  }
29380
29380
  return !0;
@@ -29478,7 +29478,7 @@ const w9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29478
29478
  if (r === void 0)
29479
29479
  return !0;
29480
29480
  const i = t.doc.nodeAt(r);
29481
- return n.node.type === (i == null ? void 0 : i.type) && ei(t.doc, n.pos) && t.join(n.pos), !0;
29481
+ return n.node.type === (i == null ? void 0 : i.type) && ti(t.doc, n.pos) && t.join(n.pos), !0;
29482
29482
  }, md = (t, e) => {
29483
29483
  const n = im((a) => a.type === e)(t.selection);
29484
29484
  if (!n)
@@ -29487,7 +29487,7 @@ const w9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29487
29487
  if (r === void 0)
29488
29488
  return !0;
29489
29489
  const i = t.doc.nodeAt(r);
29490
- return n.node.type === (i == null ? void 0 : i.type) && ei(t.doc, r) && t.join(r), !0;
29490
+ return n.node.type === (i == null ? void 0 : i.type) && ti(t.doc, r) && t.join(r), !0;
29491
29491
  }, k9 = (t, e, n, r = {}) => ({ editor: i, tr: o, state: a, dispatch: s, chain: l, commands: c, can: u }) => {
29492
29492
  const { extensions: d, splittableMarks: f } = i.extensionManager, p = Pt(t, a.schema), h = Pt(e, a.schema), { selection: m, storedMarks: g } = a, { $from: v, $to: b } = m, w = v.blockRange(b), y = g || m.$to.parentOffset && m.$from.marks();
29493
29493
  if (!w)
@@ -29504,7 +29504,7 @@ const w9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29504
29504
  return o.ensureMarks(E), C ? !0 : c.clearNodes();
29505
29505
  }).wrapInList(p, r).command(() => hd(o, p)).command(() => md(o, p)).run();
29506
29506
  }, E9 = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
29507
- const { extendEmptyMarkRange: o = !1 } = n, a = ni(t, r.schema);
29507
+ const { extendEmptyMarkRange: o = !1 } = n, a = ri(t, r.schema);
29508
29508
  return rp(r, a, e) ? i.unsetMark(a, { extendEmptyMarkRange: o }) : i.setMark(a, e);
29509
29509
  }, I9 = (t, e, n = {}) => ({ state: r, commands: i }) => {
29510
29510
  const o = Pt(t, r.schema), a = Pt(e, r.schema), s = as(r, o, n);
@@ -29540,7 +29540,7 @@ const w9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29540
29540
  }), !0;
29541
29541
  }, O9 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
29542
29542
  var o;
29543
- const { extendEmptyMarkRange: a = !1 } = e, { selection: s } = n, l = ni(t, r.schema), { $from: c, empty: u, ranges: d } = s;
29543
+ const { extendEmptyMarkRange: a = !1 } = e, { selection: s } = n, l = ri(t, r.schema), { $from: c, empty: u, ranges: d } = s;
29544
29544
  if (!i)
29545
29545
  return !0;
29546
29546
  if (u && a) {
@@ -29555,7 +29555,7 @@ const w9 = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
29555
29555
  }, P9 = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
29556
29556
  let o = null, a = null;
29557
29557
  const s = hu(typeof t == "string" ? t : t.name, r.schema);
29558
- return s ? (s === "node" && (o = Pt(t, r.schema)), s === "mark" && (a = ni(t, r.schema)), i && n.selection.ranges.forEach((l) => {
29558
+ return s ? (s === "node" && (o = Pt(t, r.schema)), s === "mark" && (a = ri(t, r.schema)), i && n.selection.ranges.forEach((l) => {
29559
29559
  const c = l.$from.pos, u = l.$to.pos;
29560
29560
  let d, f, p, h;
29561
29561
  n.selection.empty ? r.doc.nodesBetween(c, u, (m, g) => {
@@ -29663,7 +29663,7 @@ const F9 = Xt.create({
29663
29663
  addProseMirrorPlugins() {
29664
29664
  return [
29665
29665
  new Vt({
29666
- key: new mn("tiptapDrop"),
29666
+ key: new hn("tiptapDrop"),
29667
29667
  props: {
29668
29668
  handleDrop: (t, e, n, r) => {
29669
29669
  this.editor.emit("drop", {
@@ -29682,7 +29682,7 @@ const F9 = Xt.create({
29682
29682
  addProseMirrorPlugins() {
29683
29683
  return [
29684
29684
  new Vt({
29685
- key: new mn("editable"),
29685
+ key: new hn("editable"),
29686
29686
  props: {
29687
29687
  editable: () => this.editor.options.editable
29688
29688
  }
@@ -29695,7 +29695,7 @@ const F9 = Xt.create({
29695
29695
  const { editor: t } = this;
29696
29696
  return [
29697
29697
  new Vt({
29698
- key: new mn("focusEvents"),
29698
+ key: new hn("focusEvents"),
29699
29699
  props: {
29700
29700
  handleDOMEvents: {
29701
29701
  focus: (e, n) => {
@@ -29768,7 +29768,7 @@ const F9 = Xt.create({
29768
29768
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
29769
29769
  // with many other commands.
29770
29770
  new Vt({
29771
- key: new mn("clearDocument"),
29771
+ key: new hn("clearDocument"),
29772
29772
  appendTransaction: (t, e, n) => {
29773
29773
  const r = t.some((m) => m.docChanged) && !e.doc.eq(n.doc), i = t.some((m) => m.getMeta("preventClearDocument"));
29774
29774
  if (!r || i)
@@ -29794,7 +29794,7 @@ const F9 = Xt.create({
29794
29794
  addProseMirrorPlugins() {
29795
29795
  return [
29796
29796
  new Vt({
29797
- key: new mn("tiptapPaste"),
29797
+ key: new hn("tiptapPaste"),
29798
29798
  props: {
29799
29799
  handlePaste: (t, e, n) => {
29800
29800
  this.editor.emit("paste", {
@@ -29812,7 +29812,7 @@ const F9 = Xt.create({
29812
29812
  addProseMirrorPlugins() {
29813
29813
  return [
29814
29814
  new Vt({
29815
- key: new mn("tabindex"),
29815
+ key: new hn("tabindex"),
29816
29816
  props: {
29817
29817
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
29818
29818
  }
@@ -29820,7 +29820,7 @@ const F9 = Xt.create({
29820
29820
  ];
29821
29821
  }
29822
29822
  });
29823
- class fi {
29823
+ class pi {
29824
29824
  get name() {
29825
29825
  return this.node.type.name;
29826
29826
  }
@@ -29879,15 +29879,15 @@ class fi {
29879
29879
  if (this.depth === 0)
29880
29880
  return null;
29881
29881
  const e = this.resolvedPos.start(this.resolvedPos.depth - 1), n = this.resolvedPos.doc.resolve(e);
29882
- return new fi(n, this.editor);
29882
+ return new pi(n, this.editor);
29883
29883
  }
29884
29884
  get before() {
29885
29885
  let e = this.resolvedPos.doc.resolve(this.from - (this.isBlock ? 1 : 2));
29886
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new fi(e, this.editor);
29886
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.from - 3)), new pi(e, this.editor);
29887
29887
  }
29888
29888
  get after() {
29889
29889
  let e = this.resolvedPos.doc.resolve(this.to + (this.isBlock ? 2 : 1));
29890
- return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new fi(e, this.editor);
29890
+ return e.depth !== this.depth && (e = this.resolvedPos.doc.resolve(this.to + 3)), new pi(e, this.editor);
29891
29891
  }
29892
29892
  get children() {
29893
29893
  const e = [];
@@ -29895,8 +29895,8 @@ class fi {
29895
29895
  const i = n.isBlock && !n.isTextblock, o = n.isAtom && !n.isText, a = this.pos + r + (o ? 0 : 1), s = this.resolvedPos.doc.resolve(a);
29896
29896
  if (!i && s.depth <= this.depth)
29897
29897
  return;
29898
- const l = new fi(s, this.editor, i, i ? n : null);
29899
- i && (l.actualDepth = this.depth + 1), e.push(new fi(s, this.editor, i, i ? n : null));
29898
+ const l = new pi(s, this.editor, i, i ? n : null);
29899
+ i && (l.actualDepth = this.depth + 1), e.push(new pi(s, this.editor, i, i ? n : null));
29900
29900
  }), e;
29901
29901
  }
29902
29902
  get firstChild() {
@@ -30365,7 +30365,7 @@ let H9 = class extends Qz {
30365
30365
  }
30366
30366
  $pos(e) {
30367
30367
  const n = this.state.doc.resolve(e);
30368
- return new fi(n, this);
30368
+ return new pi(n, this);
30369
30369
  }
30370
30370
  get $doc() {
30371
30371
  return this.$pos(0);
@@ -30441,7 +30441,7 @@ function ss(t) {
30441
30441
  i().updateAttributes(d, o).run();
30442
30442
  }
30443
30443
  const u = a.doc.resolve(n.from - 1).nodeBefore;
30444
- u && u.type === t.type && ei(a.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, u)) && a.join(n.from - 1);
30444
+ u && u.type === t.type && ti(a.doc, n.from - 1) && (!t.joinPredicate || t.joinPredicate(r, u)) && a.join(n.from - 1);
30445
30445
  }
30446
30446
  });
30447
30447
  }
@@ -30480,7 +30480,7 @@ let Bn = class op {
30480
30480
  })), n;
30481
30481
  }
30482
30482
  };
30483
- function Gi(t) {
30483
+ function _i(t) {
30484
30484
  return new lH({
30485
30485
  find: t.find,
30486
30486
  handler: ({ state: e, range: n, match: r, pasteEvent: i }) => {
@@ -31202,7 +31202,7 @@ const m5 = Dn.create({
31202
31202
  function C5(t, e) {
31203
31203
  return t in e || (e[t] = []), e[t];
31204
31204
  }
31205
- function Ci(t, e, n) {
31205
+ function wi(t, e, n) {
31206
31206
  e[cp] && (e[Pa] = !0, e[ga] = !0), e[up] && (e[Pa] = !0, e[dp] = !0), e[Pa] && (e[ga] = !0), e[dp] && (e[ga] = !0), e[ga] && (e[fp] = !0), e[Mk] && (e[fp] = !0);
31207
31207
  for (const r in e) {
31208
31208
  const i = C5(r, n);
@@ -31274,7 +31274,7 @@ rn.prototype = {
31274
31274
  tr(t, e, n, r) {
31275
31275
  r = r || rn.groups;
31276
31276
  let i;
31277
- return e && e.j ? i = e : (i = new rn(e), n && r && Ci(e, n, r)), this.jr.push([t, i]), i;
31277
+ return e && e.j ? i = e : (i = new rn(e), n && r && wi(e, n, r)), this.jr.push([t, i]), i;
31278
31278
  },
31279
31279
  /**
31280
31280
  * Short for "take transitions", will take as many sequential transitions as
@@ -31332,14 +31332,14 @@ rn.prototype = {
31332
31332
  if (r)
31333
31333
  if (a.t && typeof a.t == "string") {
31334
31334
  const l = jo(w5(a.t, r), n);
31335
- Ci(o, l, r);
31336
- } else n && Ci(o, n, r);
31335
+ wi(o, l, r);
31336
+ } else n && wi(o, n, r);
31337
31337
  a.t = o;
31338
31338
  }
31339
31339
  return i.j[t] = a, a;
31340
31340
  }
31341
31341
  };
31342
- const Be = (t, e, n, r, i) => t.ta(e, n, r, i), pt = (t, e, n, r, i) => t.tr(e, n, r, i), C0 = (t, e, n, r, i) => t.ts(e, n, r, i), fe = (t, e, n, r, i) => t.tt(e, n, r, i), ar = "WORD", pp = "UWORD", Ok = "ASCIINUMERICAL", Pk = "ALPHANUMERICAL", ls = "LOCALHOST", hp = "TLD", mp = "UTLD", ml = "SCHEME", ao = "SLASH_SCHEME", sm = "NUM", gp = "WS", lm = "NL", Da = "OPENBRACE", Ra = "CLOSEBRACE", Ul = "OPENBRACKET", Jl = "CLOSEBRACKET", Kl = "OPENPAREN", ql = "CLOSEPAREN", Ql = "OPENANGLEBRACKET", ec = "CLOSEANGLEBRACKET", tc = "FULLWIDTHLEFTPAREN", nc = "FULLWIDTHRIGHTPAREN", rc = "LEFTCORNERBRACKET", ic = "RIGHTCORNERBRACKET", oc = "LEFTWHITECORNERBRACKET", ac = "RIGHTWHITECORNERBRACKET", sc = "FULLWIDTHLESSTHAN", lc = "FULLWIDTHGREATERTHAN", cc = "AMPERSAND", cm = "APOSTROPHE", uc = "ASTERISK", Tr = "AT", dc = "BACKSLASH", fc = "BACKTICK", pc = "CARET", Rr = "COLON", um = "COMMA", hc = "DOLLAR", Vn = "DOT", mc = "EQUALS", dm = "EXCLAMATION", yn = "HYPHEN", Na = "PERCENT", gc = "PIPE", vc = "PLUS", bc = "POUND", Fa = "QUERY", fm = "QUOTE", Dk = "FULLWIDTHMIDDLEDOT", pm = "SEMI", Ln = "SLASH", Ba = "TILDE", yc = "UNDERSCORE", Rk = "EMOJI", xc = "SYM";
31342
+ const Be = (t, e, n, r, i) => t.ta(e, n, r, i), pt = (t, e, n, r, i) => t.tr(e, n, r, i), C0 = (t, e, n, r, i) => t.ts(e, n, r, i), fe = (t, e, n, r, i) => t.tt(e, n, r, i), ar = "WORD", pp = "UWORD", Ok = "ASCIINUMERICAL", Pk = "ALPHANUMERICAL", ls = "LOCALHOST", hp = "TLD", mp = "UTLD", ml = "SCHEME", ao = "SLASH_SCHEME", sm = "NUM", gp = "WS", lm = "NL", Da = "OPENBRACE", Ra = "CLOSEBRACE", Ul = "OPENBRACKET", Jl = "CLOSEBRACKET", Kl = "OPENPAREN", ql = "CLOSEPAREN", Ql = "OPENANGLEBRACKET", ec = "CLOSEANGLEBRACKET", tc = "FULLWIDTHLEFTPAREN", nc = "FULLWIDTHRIGHTPAREN", rc = "LEFTCORNERBRACKET", ic = "RIGHTCORNERBRACKET", oc = "LEFTWHITECORNERBRACKET", ac = "RIGHTWHITECORNERBRACKET", sc = "FULLWIDTHLESSTHAN", lc = "FULLWIDTHGREATERTHAN", cc = "AMPERSAND", cm = "APOSTROPHE", uc = "ASTERISK", Tr = "AT", dc = "BACKSLASH", fc = "BACKTICK", pc = "CARET", Rr = "COLON", um = "COMMA", hc = "DOLLAR", Vn = "DOT", mc = "EQUALS", dm = "EXCLAMATION", bn = "HYPHEN", Na = "PERCENT", gc = "PIPE", vc = "PLUS", bc = "POUND", Fa = "QUERY", fm = "QUOTE", Dk = "FULLWIDTHMIDDLEDOT", pm = "SEMI", Ln = "SLASH", Ba = "TILDE", yc = "UNDERSCORE", Rk = "EMOJI", xc = "SYM";
31343
31343
  var Nk = /* @__PURE__ */ Object.freeze({
31344
31344
  __proto__: null,
31345
31345
  WORD: ar,
@@ -31383,7 +31383,7 @@ var Nk = /* @__PURE__ */ Object.freeze({
31383
31383
  DOT: Vn,
31384
31384
  EQUALS: mc,
31385
31385
  EXCLAMATION: dm,
31386
- HYPHEN: yn,
31386
+ HYPHEN: bn,
31387
31387
  PERCENT: Na,
31388
31388
  PIPE: gc,
31389
31389
  PLUS: vc,
@@ -31405,7 +31405,7 @@ function E5(t = []) {
31405
31405
  const e = {};
31406
31406
  rn.groups = e;
31407
31407
  const n = new rn();
31408
- Us == null && (Us = S0(v5)), Js == null && (Js = S0(b5)), fe(n, "'", cm), fe(n, "{", Da), fe(n, "}", Ra), fe(n, "[", Ul), fe(n, "]", Jl), fe(n, "(", Kl), fe(n, ")", ql), fe(n, "<", Ql), fe(n, ">", ec), fe(n, "(", tc), fe(n, ")", nc), fe(n, "「", rc), fe(n, "」", ic), fe(n, "『", oc), fe(n, "』", ac), fe(n, "<", sc), fe(n, ">", lc), fe(n, "&", cc), fe(n, "*", uc), fe(n, "@", Tr), fe(n, "`", fc), fe(n, "^", pc), fe(n, ":", Rr), fe(n, ",", um), fe(n, "$", hc), fe(n, ".", Vn), fe(n, "=", mc), fe(n, "!", dm), fe(n, "-", yn), fe(n, "%", Na), fe(n, "|", gc), fe(n, "+", vc), fe(n, "#", bc), fe(n, "?", Fa), fe(n, '"', fm), fe(n, "/", Ln), fe(n, ";", pm), fe(n, "~", Ba), fe(n, "_", yc), fe(n, "\\", dc), fe(n, "・", Dk);
31408
+ Us == null && (Us = S0(v5)), Js == null && (Js = S0(b5)), fe(n, "'", cm), fe(n, "{", Da), fe(n, "}", Ra), fe(n, "[", Ul), fe(n, "]", Jl), fe(n, "(", Kl), fe(n, ")", ql), fe(n, "<", Ql), fe(n, ">", ec), fe(n, "(", tc), fe(n, ")", nc), fe(n, "「", rc), fe(n, "」", ic), fe(n, "『", oc), fe(n, "』", ac), fe(n, "<", sc), fe(n, ">", lc), fe(n, "&", cc), fe(n, "*", uc), fe(n, "@", Tr), fe(n, "`", fc), fe(n, "^", pc), fe(n, ":", Rr), fe(n, ",", um), fe(n, "$", hc), fe(n, ".", Vn), fe(n, "=", mc), fe(n, "!", dm), fe(n, "-", bn), fe(n, "%", Na), fe(n, "|", gc), fe(n, "+", vc), fe(n, "#", bc), fe(n, "?", Fa), fe(n, '"', fm), fe(n, "/", Ln), fe(n, ";", pm), fe(n, "~", Ba), fe(n, "_", yc), fe(n, "\\", dc), fe(n, "・", Dk);
31409
31409
  const r = pt(n, or, sm, {
31410
31410
  [cp]: !0
31411
31411
  });
@@ -31441,16 +31441,16 @@ function E5(t = []) {
31441
31441
  kr(n, Us[m], hp, ar, p);
31442
31442
  for (let m = 0; m < Js.length; m++)
31443
31443
  kr(n, Js[m], mp, pp, h);
31444
- Ci(hp, {
31444
+ wi(hp, {
31445
31445
  tld: !0,
31446
31446
  ascii: !0
31447
- }, e), Ci(mp, {
31447
+ }, e), wi(mp, {
31448
31448
  utld: !0,
31449
31449
  alpha: !0
31450
- }, e), kr(n, "file", ml, ar, p), kr(n, "mailto", ml, ar, p), kr(n, "http", ao, ar, p), kr(n, "https", ao, ar, p), kr(n, "ftp", ao, ar, p), kr(n, "ftps", ao, ar, p), Ci(ml, {
31450
+ }, e), kr(n, "file", ml, ar, p), kr(n, "mailto", ml, ar, p), kr(n, "http", ao, ar, p), kr(n, "https", ao, ar, p), kr(n, "ftp", ao, ar, p), kr(n, "ftps", ao, ar, p), wi(ml, {
31451
31451
  scheme: !0,
31452
31452
  ascii: !0
31453
- }, e), Ci(ao, {
31453
+ }, e), wi(ao, {
31454
31454
  slashscheme: !0,
31455
31455
  ascii: !0
31456
31456
  }, e), t = t.sort((m, g) => m[0] > g[0] ? 1 : -1);
@@ -31757,38 +31757,38 @@ const E0 = gu("email", {
31757
31757
  const t = this.tk;
31758
31758
  return t.length >= 2 && t[0].t !== ls && t[1].t === Rr;
31759
31759
  }
31760
- }), vn = (t) => new rn(t);
31760
+ }), gn = (t) => new rn(t);
31761
31761
  function T5({
31762
31762
  groups: t
31763
31763
  }) {
31764
- const e = t.domain.concat([cc, uc, Tr, dc, fc, pc, hc, mc, yn, sm, Na, gc, vc, bc, Ln, xc, Ba, yc]), n = [Rr, um, Vn, dm, Na, Fa, fm, pm, Ql, ec, Da, Ra, Jl, Ul, Kl, ql, tc, nc, rc, ic, oc, ac, sc, lc], r = [cc, cm, uc, dc, fc, pc, hc, mc, yn, Da, Ra, Na, gc, vc, bc, Fa, Ln, xc, Ba, yc], i = vn(), o = fe(i, Ba);
31764
+ const e = t.domain.concat([cc, uc, Tr, dc, fc, pc, hc, mc, bn, sm, Na, gc, vc, bc, Ln, xc, Ba, yc]), n = [Rr, um, Vn, dm, Na, Fa, fm, pm, Ql, ec, Da, Ra, Jl, Ul, Kl, ql, tc, nc, rc, ic, oc, ac, sc, lc], r = [cc, cm, uc, dc, fc, pc, hc, mc, bn, Da, Ra, Na, gc, vc, bc, Fa, Ln, xc, Ba, yc], i = gn(), o = fe(i, Ba);
31765
31765
  Be(o, r, o), Be(o, t.domain, o);
31766
- const a = vn(), s = vn(), l = vn();
31766
+ const a = gn(), s = gn(), l = gn();
31767
31767
  Be(i, t.domain, a), Be(i, t.scheme, s), Be(i, t.slashscheme, l), Be(a, r, o), Be(a, t.domain, a);
31768
31768
  const c = fe(a, Tr);
31769
31769
  fe(o, Tr, c), fe(s, Tr, c), fe(l, Tr, c);
31770
31770
  const u = fe(o, Vn);
31771
31771
  Be(u, r, o), Be(u, t.domain, o);
31772
- const d = vn();
31772
+ const d = gn();
31773
31773
  Be(c, t.domain, d), Be(d, t.domain, d);
31774
31774
  const f = fe(d, Vn);
31775
31775
  Be(f, t.domain, d);
31776
- const p = vn(E0);
31776
+ const p = gn(E0);
31777
31777
  Be(f, t.tld, p), Be(f, t.utld, p), fe(c, ls, p);
31778
- const h = fe(d, yn);
31779
- fe(h, yn, h), Be(h, t.domain, d), Be(p, t.domain, d), fe(p, Vn, f), fe(p, yn, h);
31778
+ const h = fe(d, bn);
31779
+ fe(h, bn, h), Be(h, t.domain, d), Be(p, t.domain, d), fe(p, Vn, f), fe(p, bn, h);
31780
31780
  const m = fe(p, Rr);
31781
31781
  Be(m, t.numeric, E0);
31782
- const g = fe(a, yn), v = fe(a, Vn);
31783
- fe(g, yn, g), Be(g, t.domain, a), Be(v, r, o), Be(v, t.domain, a);
31784
- const b = vn(Ks);
31785
- Be(v, t.tld, b), Be(v, t.utld, b), Be(b, t.domain, a), Be(b, r, o), fe(b, Vn, v), fe(b, yn, g), fe(b, Tr, c);
31786
- const w = fe(b, Rr), y = vn(Ks);
31782
+ const g = fe(a, bn), v = fe(a, Vn);
31783
+ fe(g, bn, g), Be(g, t.domain, a), Be(v, r, o), Be(v, t.domain, a);
31784
+ const b = gn(Ks);
31785
+ Be(v, t.tld, b), Be(v, t.utld, b), Be(b, t.domain, a), Be(b, r, o), fe(b, Vn, v), fe(b, bn, g), fe(b, Tr, c);
31786
+ const w = fe(b, Rr), y = gn(Ks);
31787
31787
  Be(w, t.numeric, y);
31788
- const x = vn(Ks), C = vn();
31788
+ const x = gn(Ks), C = gn();
31789
31789
  Be(x, e, x), Be(x, n, C), Be(C, e, x), Be(C, n, C), fe(b, Ln, x), fe(y, Ln, x);
31790
31790
  const E = fe(s, Rr), S = fe(l, Rr), k = fe(S, Ln), I = fe(k, Ln);
31791
- Be(s, t.domain, a), fe(s, Vn, v), fe(s, yn, g), Be(l, t.domain, a), fe(l, Vn, v), fe(l, yn, g), Be(E, t.domain, x), fe(E, Ln, x), fe(E, Fa, x), Be(I, t.domain, x), Be(I, e, x), fe(I, Ln, x);
31791
+ Be(s, t.domain, a), fe(s, Vn, v), fe(s, bn, g), Be(l, t.domain, a), fe(l, Vn, v), fe(l, bn, g), Be(E, t.domain, x), fe(E, Ln, x), fe(E, Fa, x), Be(I, t.domain, x), Be(I, e, x), fe(I, Ln, x);
31792
31792
  const A = [
31793
31793
  [Da, Ra],
31794
31794
  // {}
@@ -31810,9 +31810,9 @@ function T5({
31810
31810
  for (let O = 0; O < A.length; O++) {
31811
31811
  const [P, R] = A[O], V = fe(x, P);
31812
31812
  fe(C, P, V), fe(V, R, x);
31813
- const B = vn(Ks);
31813
+ const B = gn(Ks);
31814
31814
  Be(V, e, B);
31815
- const F = vn();
31815
+ const F = gn();
31816
31816
  Be(V, n), Be(B, e, B), Be(B, n, F), Be(F, e, B), Be(F, n, F), fe(B, R, x), fe(F, R, x);
31817
31817
  }
31818
31818
  return fe(i, ls, b), fe(i, lm, A5), {
@@ -31898,7 +31898,7 @@ function N5(t) {
31898
31898
  }
31899
31899
  function F5(t) {
31900
31900
  return new Vt({
31901
- key: new mn("autolink"),
31901
+ key: new hn("autolink"),
31902
31902
  appendTransaction: (e, n, r) => {
31903
31903
  const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), o = e.some((c) => c.getMeta("preventAutolink"));
31904
31904
  if (!i || o)
@@ -31934,7 +31934,7 @@ function F5(t) {
31934
31934
  }
31935
31935
  function B5(t) {
31936
31936
  return new Vt({
31937
- key: new mn("handleClickLink"),
31937
+ key: new hn("handleClickLink"),
31938
31938
  props: {
31939
31939
  handleClick: (e, n, r) => {
31940
31940
  var i, o;
@@ -31954,7 +31954,7 @@ function B5(t) {
31954
31954
  }
31955
31955
  function j5(t) {
31956
31956
  return new Vt({
31957
- key: new mn("handlePasteLink"),
31957
+ key: new hn("handlePasteLink"),
31958
31958
  props: {
31959
31959
  handlePaste: (e, n, r) => {
31960
31960
  const { state: i } = e, { selection: o } = i, { empty: a } = o;
@@ -31973,7 +31973,7 @@ function j5(t) {
31973
31973
  });
31974
31974
  }
31975
31975
  const V5 = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g;
31976
- function oi(t, e) {
31976
+ function ai(t, e) {
31977
31977
  const n = [
31978
31978
  "http",
31979
31979
  "https",
@@ -32027,7 +32027,7 @@ const L5 = Dn.create({
32027
32027
  rel: "noopener noreferrer nofollow",
32028
32028
  class: null
32029
32029
  },
32030
- isAllowedUri: (t, e) => !!oi(t, e.protocols),
32030
+ isAllowedUri: (t, e) => !!ai(t, e.protocols),
32031
32031
  validate: (t) => !!t,
32032
32032
  shouldAutoLink: (t) => !!t
32033
32033
  };
@@ -32058,7 +32058,7 @@ const L5 = Dn.create({
32058
32058
  getAttrs: (t) => {
32059
32059
  const e = t.getAttribute("href");
32060
32060
  return !e || !this.options.isAllowedUri(e, {
32061
- defaultValidate: (n) => !!oi(n, this.options.protocols),
32061
+ defaultValidate: (n) => !!ai(n, this.options.protocols),
32062
32062
  protocols: this.options.protocols,
32063
32063
  defaultProtocol: this.options.defaultProtocol
32064
32064
  }) ? !1 : null;
@@ -32068,7 +32068,7 @@ const L5 = Dn.create({
32068
32068
  },
32069
32069
  renderHTML({ HTMLAttributes: t }) {
32070
32070
  return this.options.isAllowedUri(t.href, {
32071
- defaultValidate: (e) => !!oi(e, this.options.protocols),
32071
+ defaultValidate: (e) => !!ai(e, this.options.protocols),
32072
32072
  protocols: this.options.protocols,
32073
32073
  defaultProtocol: this.options.defaultProtocol
32074
32074
  }) ? ["a", Ct(this.options.HTMLAttributes, t), 0] : [
@@ -32082,7 +32082,7 @@ const L5 = Dn.create({
32082
32082
  setLink: (t) => ({ chain: e }) => {
32083
32083
  const { href: n } = t;
32084
32084
  return this.options.isAllowedUri(n, {
32085
- defaultValidate: (r) => !!oi(r, this.options.protocols),
32085
+ defaultValidate: (r) => !!ai(r, this.options.protocols),
32086
32086
  protocols: this.options.protocols,
32087
32087
  defaultProtocol: this.options.defaultProtocol
32088
32088
  }) ? e().setMark(this.name, t).setMeta("preventAutolink", !0).run() : !1;
@@ -32090,7 +32090,7 @@ const L5 = Dn.create({
32090
32090
  toggleLink: (t) => ({ chain: e }) => {
32091
32091
  const { href: n } = t;
32092
32092
  return this.options.isAllowedUri(n, {
32093
- defaultValidate: (r) => !!oi(r, this.options.protocols),
32093
+ defaultValidate: (r) => !!ai(r, this.options.protocols),
32094
32094
  protocols: this.options.protocols,
32095
32095
  defaultProtocol: this.options.defaultProtocol
32096
32096
  }) ? e().toggleMark(this.name, t, { extendEmptyMarkRange: !0 }).setMeta("preventAutolink", !0).run() : !1;
@@ -32100,12 +32100,12 @@ const L5 = Dn.create({
32100
32100
  },
32101
32101
  addPasteRules() {
32102
32102
  return [
32103
- Gi({
32103
+ _i({
32104
32104
  find: (t) => {
32105
32105
  const e = [];
32106
32106
  if (t) {
32107
32107
  const { protocols: n, defaultProtocol: r } = this.options, i = jk(t).filter((o) => o.isLink && this.options.isAllowedUri(o.value, {
32108
- defaultValidate: (a) => !!oi(a, n),
32108
+ defaultValidate: (a) => !!ai(a, n),
32109
32109
  protocols: n,
32110
32110
  defaultProtocol: r
32111
32111
  }));
@@ -32135,7 +32135,7 @@ const L5 = Dn.create({
32135
32135
  type: this.type,
32136
32136
  defaultProtocol: this.options.defaultProtocol,
32137
32137
  validate: (r) => this.options.isAllowedUri(r, {
32138
- defaultValidate: (i) => !!oi(i, e),
32138
+ defaultValidate: (i) => !!ai(i, e),
32139
32139
  protocols: e,
32140
32140
  defaultProtocol: n
32141
32141
  }),
@@ -32277,11 +32277,11 @@ const L5 = Dn.create({
32277
32277
  },
32278
32278
  addPasteRules() {
32279
32279
  return [
32280
- Gi({
32280
+ _i({
32281
32281
  find: H5,
32282
32282
  type: this.type
32283
32283
  }),
32284
- Gi({
32284
+ _i({
32285
32285
  find: X5,
32286
32286
  type: this.type
32287
32287
  })
@@ -32375,7 +32375,7 @@ const L5 = Dn.create({
32375
32375
  },
32376
32376
  addPasteRules() {
32377
32377
  return [
32378
- Gi({
32378
+ _i({
32379
32379
  find: K5,
32380
32380
  type: this.type
32381
32381
  })
@@ -32492,7 +32492,7 @@ const L5 = Dn.create({
32492
32492
  // this plugin creates a code block for pasted content from VS Code
32493
32493
  // we can also detect the copied code language
32494
32494
  new Vt({
32495
- key: new mn("codeBlockVSCodeHandler"),
32495
+ key: new hn("codeBlockVSCodeHandler"),
32496
32496
  props: {
32497
32497
  handlePaste: (t, e) => {
32498
32498
  if (!e.clipboardData || this.editor.isActive(this.type.name))
@@ -32798,7 +32798,7 @@ function f$(t) {
32798
32798
  if (!(t.selection instanceof ht))
32799
32799
  return null;
32800
32800
  let e = document.createElement("div");
32801
- return e.className = "ProseMirror-gapcursor", St.create(t.doc, [Sn.widget(t.selection.head, e, { key: "gapcursor" })]);
32801
+ return e.className = "ProseMirror-gapcursor", St.create(t.doc, [wn.widget(t.selection.head, e, { key: "gapcursor" })]);
32802
32802
  }
32803
32803
  const p$ = Xt.create({
32804
32804
  name: "gapCursor",
@@ -33106,15 +33106,15 @@ class Mr {
33106
33106
  }
33107
33107
  const b$ = 20;
33108
33108
  function y$(t, e, n, r) {
33109
- let i = n.getMeta(Ri), o;
33109
+ let i = n.getMeta(Ni), o;
33110
33110
  if (i)
33111
33111
  return i.historyState;
33112
33112
  n.getMeta(w$) && (t = new Mr(t.done, t.undone, null, 0, -1));
33113
33113
  let a = n.getMeta("appendedTransaction");
33114
33114
  if (n.steps.length == 0)
33115
33115
  return t;
33116
- if (a && a.getMeta(Ri))
33117
- return a.getMeta(Ri).redo ? new Mr(t.done.addTransform(n, void 0, r, gl(e)), t.undone, O0(n.mapping.maps), t.prevTime, t.prevComposition) : new Mr(t.done, t.undone.addTransform(n, void 0, r, gl(e)), null, t.prevTime, t.prevComposition);
33116
+ if (a && a.getMeta(Ni))
33117
+ return a.getMeta(Ni).redo ? new Mr(t.done.addTransform(n, void 0, r, gl(e)), t.undone, O0(n.mapping.maps), t.prevTime, t.prevComposition) : new Mr(t.done, t.undone.addTransform(n, void 0, r, gl(e)), null, t.prevTime, t.prevComposition);
33118
33118
  if (n.getMeta("addToHistory") !== !1 && !(a && a.getMeta("addToHistory") === !1)) {
33119
33119
  let s = n.getMeta("composition"), l = t.prevTime == 0 || !a && t.prevComposition != s && (t.prevTime < (n.time || 0) - r.newGroupDelay || !x$(n, t.prevRanges)), c = a ? Id(t.prevRanges, n.mapping) : O0(n.mapping.maps);
33120
33120
  return new Mr(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, gl(e)), Tn.empty, c, n.time, s ?? t.prevComposition);
@@ -33148,11 +33148,11 @@ function Id(t, e) {
33148
33148
  return n;
33149
33149
  }
33150
33150
  function C$(t, e, n) {
33151
- let r = gl(e), i = Ri.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
33151
+ let r = gl(e), i = Ni.get(e).spec.config, o = (n ? t.undone : t.done).popEvent(e, r);
33152
33152
  if (!o)
33153
33153
  return null;
33154
33154
  let a = o.selection.resolve(o.transform.doc), s = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new Mr(n ? s : o.remaining, n ? o.remaining : s, null, 0, -1);
33155
- return o.transform.setSelection(a).setMeta(Ri, { redo: n, historyState: l });
33155
+ return o.transform.setSelection(a).setMeta(Ni, { redo: n, historyState: l });
33156
33156
  }
33157
33157
  let Ad = !1, P0 = null;
33158
33158
  function gl(t) {
@@ -33167,13 +33167,13 @@ function gl(t) {
33167
33167
  }
33168
33168
  return Ad;
33169
33169
  }
33170
- const Ri = new mn("history"), w$ = new mn("closeHistory");
33170
+ const Ni = new hn("history"), w$ = new hn("closeHistory");
33171
33171
  function S$(t = {}) {
33172
33172
  return t = {
33173
33173
  depth: t.depth || 100,
33174
33174
  newGroupDelay: t.newGroupDelay || 500
33175
33175
  }, new Vt({
33176
- key: Ri,
33176
+ key: Ni,
33177
33177
  state: {
33178
33178
  init() {
33179
33179
  return new Mr(Tn.empty, Tn.empty, null, 0, -1);
@@ -33195,7 +33195,7 @@ function S$(t = {}) {
33195
33195
  }
33196
33196
  function Lk(t, e) {
33197
33197
  return (n, r) => {
33198
- let i = Ri.getState(n);
33198
+ let i = Ni.getState(n);
33199
33199
  if (!i || (t ? i.undone : i.done).eventCount == 0)
33200
33200
  return !1;
33201
33201
  if (r) {
@@ -33339,11 +33339,11 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33339
33339
  },
33340
33340
  addPasteRules() {
33341
33341
  return [
33342
- Gi({
33342
+ _i({
33343
33343
  find: A$,
33344
33344
  type: this.type
33345
33345
  }),
33346
- Gi({
33346
+ _i({
33347
33347
  find: M$,
33348
33348
  type: this.type
33349
33349
  })
@@ -33521,7 +33521,7 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33521
33521
  },
33522
33522
  addPasteRules() {
33523
33523
  return [
33524
- Gi({
33524
+ _i({
33525
33525
  find: B$,
33526
33526
  type: this.type
33527
33527
  })
@@ -33542,8 +33542,6 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33542
33542
  { shortcuts: ["ctrl", "alt", "2"], level: 2 },
33543
33543
  { shortcuts: ["ctrl", "alt", "3"], level: 3 },
33544
33544
  { shortcuts: ["ctrl", "alt", "4"], level: 4 }
33545
- // {shortcuts: ['ctrl', 'alt', '5'],level: 5},
33546
- // {shortcuts: ['ctrl', 'alt', '6'],level: 6}
33547
33545
  ], _$ = {
33548
33546
  1: "mob-headline-bold-m desktop:desk-headline-bold-l",
33549
33547
  2: "mob-headline-bold-s desktop:desk-headline-bold-m",
@@ -33551,18 +33549,18 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33551
33549
  4: "mob-title-bold-m desktop:desk-title-bold-s"
33552
33550
  //TODO: Добавить h5/h6 для компонента heading , после добавить сюда
33553
33551
  }, W$ = [
33554
- { name: "Черный", color: "#292929" },
33555
- { name: "Белый", color: "#FFFFFF" },
33556
- { name: "Темный-серый", color: "#40465A" },
33557
- { name: "Темный-серый альтернативный", color: "#5A6E85" },
33558
- { name: "Светло-серый", color: "#A9B6C5" },
33559
- { name: "Светло-серый альтернативный", color: "#94A4B7" },
33560
- { name: "Синий основной", color: "#003790" },
33561
- { name: "Синий альтернативный", color: "#042E73" },
33562
- { name: "Голубой", color: "#809BC7" },
33563
- { name: "Зеленый", color: "#76BC21" },
33564
- { name: "Оранжевый", color: "#F49F00" },
33565
- { name: "Красный", color: "#F42500" }
33552
+ "#292929",
33553
+ "#FFFFFF",
33554
+ "#40465A",
33555
+ "#5A6E85",
33556
+ "#A9B6C5",
33557
+ "#94A4B7",
33558
+ "#003790",
33559
+ "#042E73",
33560
+ "#809BC7",
33561
+ "#76BC21",
33562
+ "#F49F00",
33563
+ "#F42500"
33566
33564
  ], z$ = (t) => [
33567
33565
  {
33568
33566
  label: "Жирный текст",
@@ -33668,7 +33666,7 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33668
33666
  })
33669
33667
  ], $$ = ({ editor: t }) => {
33670
33668
  var e;
33671
- return /* @__PURE__ */ T.jsx("div", { className: "flex items-center gap-3", children: (e = z$(t)) == null ? void 0 : e.map(({ label: n, icon: r, onClick: i, isActive: o }) => /* @__PURE__ */ T.jsx(
33669
+ return /* @__PURE__ */ T.jsx("div", { className: "flex items-center gap-2", children: (e = z$(t)) == null ? void 0 : e.map(({ label: n, icon: r, onClick: i, isActive: o }) => /* @__PURE__ */ T.jsx(
33672
33670
  w1,
33673
33671
  {
33674
33672
  sideOffset: 12,
@@ -33681,7 +33679,7 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33681
33679
  type: "button",
33682
33680
  onClick: i,
33683
33681
  className: H(
33684
- "flex size-8 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white focus:bg-color-primary-focus focus:text-color-white",
33682
+ "flex size-7 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white focus:bg-color-primary-focus focus:text-color-white",
33685
33683
  { "!bg-color-primary-hover !text-color-white": o }
33686
33684
  ),
33687
33685
  children: r
@@ -33694,12 +33692,12 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33694
33692
  }, X$ = ({ editor: t }) => /* @__PURE__ */ T.jsx(
33695
33693
  kp,
33696
33694
  {
33697
- classes: { content: "w-full" },
33695
+ classes: { content: "w-full " },
33698
33696
  triggerElement: /* @__PURE__ */ T.jsx(
33699
33697
  "span",
33700
33698
  {
33701
33699
  title: "Добавить заголовок",
33702
- className: "flex size-8 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white",
33700
+ className: "flex size-7 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white",
33703
33701
  children: /* @__PURE__ */ T.jsx(_e, { name: "editor/heading", className: "size-4" })
33704
33702
  }
33705
33703
  ),
@@ -33742,7 +33740,7 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33742
33740
  title: "Обернуть в ссылку",
33743
33741
  onClick: e,
33744
33742
  className: H(
33745
- "flex size-8 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white focus:bg-color-primary-focus focus:text-color-white",
33743
+ "flex size-7 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white focus:bg-color-primary-focus focus:text-color-white",
33746
33744
  { "!bg-color-primary-hover !text-color-white": t.isActive("link") }
33747
33745
  ),
33748
33746
  children: /* @__PURE__ */ T.jsx(_e, { name: "editor/link", className: "size-4" })
@@ -33752,33 +33750,32 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33752
33750
  kp,
33753
33751
  {
33754
33752
  classes: {
33755
- content: "w-full bg-color-blue-grey-200 border border-solid border-warm-grey-300",
33753
+ content: "w-full max-w-[500px] bg-color-blue-grey-200 border border-solid border-warm-grey-300",
33756
33754
  arrowIcon: "fill-dark-hover"
33757
33755
  },
33758
33756
  triggerElement: /* @__PURE__ */ T.jsx(
33759
33757
  "span",
33760
33758
  {
33761
33759
  title: "Добавить цвет текста",
33762
- className: "flex size-8 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white",
33760
+ className: "flex size-7 cursor-pointer items-center justify-center rounded-sm text-color-secondary outline-none transition-colors hover:bg-color-primary-hover hover:text-color-white",
33763
33761
  children: /* @__PURE__ */ T.jsx(_e, { name: "editor/palette", className: "size-4" })
33764
33762
  }
33765
33763
  ),
33766
- children: /* @__PURE__ */ T.jsx("div", { className: "grid grid-cols-2 gap-3", children: W$.map(({ name: e, color: n }) => /* @__PURE__ */ T.jsx(
33764
+ children: /* @__PURE__ */ T.jsx("div", { className: "grid grid-cols-6 gap-3", children: W$.map((e) => /* @__PURE__ */ T.jsx(
33767
33765
  "button",
33768
33766
  {
33769
33767
  type: "button",
33770
- style: { background: n },
33771
- onClick: () => t.chain().focus().setColor(n).run(),
33768
+ style: { background: e },
33769
+ onClick: () => t.chain().focus().setColor(e).run(),
33772
33770
  className: H(
33773
- "desk-body-regular-m cursor-pointer rounded-sm px-3 py-1 text-left text-color-white outline-none transition-transform hover:scale-105",
33774
- { "text-color-dark": n === "#FFFFFF" }
33775
- ),
33776
- children: e
33771
+ "desk-body-regular-m size-6 cursor-pointer rounded-full border border-solid border-transparent text-left outline-none transition-transform hover:scale-105",
33772
+ { "border-warm-grey-300": e === "#FFFFFF" }
33773
+ )
33777
33774
  },
33778
33775
  e
33779
33776
  )) })
33780
33777
  }
33781
- ), J$ = ({ editor: t }) => /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-12 bg-color-blue-grey-200 px-4 py-3", children: [
33778
+ ), J$ = ({ editor: t }) => /* @__PURE__ */ T.jsxs("div", { className: "mobile:customScrollbar-y flex items-center gap-2 bg-color-blue-grey-200 px-4 py-3 mobile:max-w-[340px] mobile:overflow-x-auto", children: [
33782
33779
  /* @__PURE__ */ T.jsx($$, { editor: t }),
33783
33780
  /* @__PURE__ */ T.jsxs("div", { className: "flex items-center gap-2", children: [
33784
33781
  /* @__PURE__ */ T.jsx(U$, { editor: t }),
@@ -33802,12 +33799,12 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33802
33799
  return c.replace(/\xA0/g, " ");
33803
33800
  },
33804
33801
  attributes: {
33805
- class: H("p-4 outline-none min-h-[240px]", i == null ? void 0 : i.editor)
33802
+ class: H("p-4 outline-none min-h-[240px] max-h-[500px] customScrollbar-y overflow-y-auto break-keep", i == null ? void 0 : i.editor)
33806
33803
  }
33807
33804
  },
33808
33805
  ...s
33809
33806
  });
33810
- return l ? /* @__PURE__ */ T.jsxs("div", { className: H("flex flex-col", i == null ? void 0 : i.root), children: [
33807
+ return l ? /* @__PURE__ */ T.jsxs("div", { className: H("flex max-w-[528px] flex-col mobile:w-[340px]", i == null ? void 0 : i.root), children: [
33811
33808
  /* @__PURE__ */ T.jsxs("div", { className: H("relative flex w-full flex-col rounded-md border border-solid border-warm-grey-200", i == null ? void 0 : i.wrapper), children: [
33812
33809
  /* @__PURE__ */ T.jsx(J$, { editor: l }),
33813
33810
  !e && /* @__PURE__ */ T.jsx("p", { className: H("absolute left-4 top-16 text-color-disabled", i == null ? void 0 : i.label), children: n }),
@@ -33829,27 +33826,30 @@ const Gk = Lk(!1, !0), _k = Lk(!0, !0), k$ = Xt.create({
33829
33826
  helperText: n,
33830
33827
  editable: r = !0,
33831
33828
  classes: i,
33832
- ...o
33833
- }) => /* @__PURE__ */ T.jsx(
33834
- hn,
33835
- {
33836
- name: o.name,
33829
+ name: o,
33830
+ ...a
33831
+ }) => {
33832
+ const {
33833
+ field: { onChange: s, value: l },
33834
+ fieldState: { error: c }
33835
+ } = qr({
33837
33836
  control: t,
33838
- render: ({ field: { onChange: a, value: s }, fieldState: { error: l } }) => /* @__PURE__ */ T.jsx(
33839
- K$,
33840
- {
33841
- onChange: a,
33842
- value: s ?? "",
33843
- editable: r,
33844
- error: l,
33845
- helperText: n,
33846
- label: e,
33847
- classes: i,
33848
- ...o
33849
- }
33850
- )
33851
- }
33852
- ), Wk = {
33837
+ name: o
33838
+ });
33839
+ return /* @__PURE__ */ T.jsx(
33840
+ K$,
33841
+ {
33842
+ onChange: s,
33843
+ value: l ?? "",
33844
+ editable: r,
33845
+ error: c,
33846
+ helperText: n,
33847
+ label: e,
33848
+ classes: i,
33849
+ ...a
33850
+ }
33851
+ );
33852
+ }, Wk = {
33853
33853
  maxSize: 4 * 1024 * 1024,
33854
33854
  multiple: !0,
33855
33855
  accept: {
@@ -35790,7 +35790,7 @@ const uX = [
35790
35790
  // Windows
35791
35791
  ];
35792
35792
  function dX(t) {
35793
- return Wi(this, void 0, void 0, function* () {
35793
+ return zi(this, void 0, void 0, function* () {
35794
35794
  return wc(t) && fX(t.dataTransfer) ? gX(t.dataTransfer, t.type) : pX(t) ? hX(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? mX(t) : [];
35795
35795
  });
35796
35796
  }
@@ -35807,12 +35807,12 @@ function hX(t) {
35807
35807
  return bp(t.target.files).map((e) => Vo(e));
35808
35808
  }
35809
35809
  function mX(t) {
35810
- return Wi(this, void 0, void 0, function* () {
35810
+ return zi(this, void 0, void 0, function* () {
35811
35811
  return (yield Promise.all(t.map((n) => n.getFile()))).map((n) => Vo(n));
35812
35812
  });
35813
35813
  }
35814
35814
  function gX(t, e) {
35815
- return Wi(this, void 0, void 0, function* () {
35815
+ return zi(this, void 0, void 0, function* () {
35816
35816
  if (t.items) {
35817
35817
  const n = bp(t.items).filter((i) => i.kind === "file");
35818
35818
  if (e !== "drop")
@@ -35849,7 +35849,7 @@ function $k(t) {
35849
35849
  ], []);
35850
35850
  }
35851
35851
  function $0(t, e) {
35852
- return Wi(this, void 0, void 0, function* () {
35852
+ return zi(this, void 0, void 0, function* () {
35853
35853
  var n;
35854
35854
  if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function") {
35855
35855
  const o = yield t.getAsFileSystemHandle();
@@ -35867,7 +35867,7 @@ function $0(t, e) {
35867
35867
  });
35868
35868
  }
35869
35869
  function bX(t) {
35870
- return Wi(this, void 0, void 0, function* () {
35870
+ return zi(this, void 0, void 0, function* () {
35871
35871
  return t.isDirectory ? Xk(t) : yX(t);
35872
35872
  });
35873
35873
  }
@@ -35876,7 +35876,7 @@ function Xk(t) {
35876
35876
  return new Promise((n, r) => {
35877
35877
  const i = [];
35878
35878
  function o() {
35879
- e.readEntries((a) => Wi(this, void 0, void 0, function* () {
35879
+ e.readEntries((a) => zi(this, void 0, void 0, function* () {
35880
35880
  if (a.length) {
35881
35881
  const s = Promise.all(a.map(bX));
35882
35882
  i.push(s), o();
@@ -35895,7 +35895,7 @@ function Xk(t) {
35895
35895
  });
35896
35896
  }
35897
35897
  function yX(t) {
35898
- return Wi(this, void 0, void 0, function* () {
35898
+ return zi(this, void 0, void 0, function* () {
35899
35899
  return new Promise((e, n) => {
35900
35900
  t.file((r) => {
35901
35901
  const i = Vo(r, t.fullPath);
@@ -36024,17 +36024,17 @@ function Uk(t, e) {
36024
36024
  return [n, n ? null : PX(e)];
36025
36025
  }
36026
36026
  function Jk(t, e, n) {
36027
- if (pi(t.size))
36028
- if (pi(e) && pi(n)) {
36027
+ if (hi(t.size))
36028
+ if (hi(e) && hi(n)) {
36029
36029
  if (t.size > n) return [!1, U0(n)];
36030
36030
  if (t.size < e) return [!1, J0(e)];
36031
36031
  } else {
36032
- if (pi(e) && t.size < e) return [!1, J0(e)];
36033
- if (pi(n) && t.size > n) return [!1, U0(n)];
36032
+ if (hi(e) && t.size < e) return [!1, J0(e)];
36033
+ if (hi(n) && t.size > n) return [!1, U0(n)];
36034
36034
  }
36035
36035
  return [!0, null];
36036
36036
  }
36037
- function pi(t) {
36037
+ function hi(t) {
36038
36038
  return t != null;
36039
36039
  }
36040
36040
  function RX(t) {
@@ -36080,7 +36080,7 @@ function jX() {
36080
36080
  return "showOpenFilePicker" in window;
36081
36081
  }
36082
36082
  function VX(t) {
36083
- if (pi(t)) {
36083
+ if (hi(t)) {
36084
36084
  var e = Object.entries(t).filter(function(n) {
36085
36085
  var r = us(n, 2), i = r[0], o = r[1], a = !0;
36086
36086
  return Kk(i) || (console.warn('Skipped "'.concat(i, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), a = !1), (!Array.isArray(o) || !o.every(qk)) && (console.warn('Skipped "'.concat(i, '" because an invalid file extension was provided.')), a = !1), a;
@@ -36097,7 +36097,7 @@ function VX(t) {
36097
36097
  return t;
36098
36098
  }
36099
36099
  function LX(t) {
36100
- if (pi(t))
36100
+ if (hi(t))
36101
36101
  return Object.entries(t).reduce(function(e, n) {
36102
36102
  var r = us(n, 2), i = r[0], o = r[1];
36103
36103
  return [].concat(X0(e), [i], X0(o));
@@ -36769,7 +36769,7 @@ const tY = ({ dropzoneOptions: t, controlledFiles: e, onValueChange: n }) => {
36769
36769
  dropzoneOptions: i = Wk,
36770
36770
  ...o
36771
36771
  }) => /* @__PURE__ */ T.jsx(
36772
- hn,
36772
+ En,
36773
36773
  {
36774
36774
  control: t,
36775
36775
  name: o.name,
@@ -36803,7 +36803,7 @@ var ym = "Radio", [aY, nE] = Jr(ym), [sY, lY] = aY(ym), rE = j.forwardRef(
36803
36803
  onCheck: l,
36804
36804
  form: c,
36805
36805
  ...u
36806
- } = t, [d, f] = j.useState(null), p = En(e, (g) => f(g)), h = j.useRef(!1), m = d ? c || !!d.closest("form") : !0;
36806
+ } = t, [d, f] = j.useState(null), p = kn(e, (g) => f(g)), h = j.useRef(!1), m = d ? c || !!d.closest("form") : !0;
36807
36807
  return /* @__PURE__ */ T.jsxs(sY, { scope: n, checked: i, disabled: a, children: [
36808
36808
  /* @__PURE__ */ T.jsx(
36809
36809
  kt.button,
@@ -36903,7 +36903,7 @@ var uY = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], xm = "RadioGroup",
36903
36903
  loop: u = !0,
36904
36904
  onValueChange: d,
36905
36905
  ...f
36906
- } = t, p = sE(n), h = Ac(c), [m, g] = _i({
36906
+ } = t, p = sE(n), h = Ac(c), [m, g] = Wi({
36907
36907
  prop: o,
36908
36908
  defaultProp: i,
36909
36909
  onChange: d
@@ -36946,7 +36946,7 @@ var uY = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], xm = "RadioGroup",
36946
36946
  cE.displayName = xm;
36947
36947
  var uE = "RadioGroupItem", dE = j.forwardRef(
36948
36948
  (t, e) => {
36949
- const { __scopeRadioGroup: n, disabled: r, ...i } = t, o = pY(uE, n), a = o.disabled || r, s = sE(n), l = lE(n), c = j.useRef(null), u = En(e, c), d = o.value === i.value, f = j.useRef(!1);
36949
+ const { __scopeRadioGroup: n, disabled: r, ...i } = t, o = pY(uE, n), a = o.disabled || r, s = sE(n), l = lE(n), c = j.useRef(null), u = kn(e, c), d = o.value === i.value, f = j.useRef(!1);
36950
36950
  return j.useEffect(() => {
36951
36951
  const p = (m) => {
36952
36952
  uY.includes(m.key) && (f.current = !0);
@@ -37063,7 +37063,7 @@ const mY = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ T.j
37063
37063
  orientation: a,
37064
37064
  ...s
37065
37065
  }) => /* @__PURE__ */ T.jsx(
37066
- hn,
37066
+ En,
37067
37067
  {
37068
37068
  name: s.name,
37069
37069
  control: e,
@@ -37196,7 +37196,7 @@ const mY = ({ radioItemsGroup: t, classes: e, error: n }) => /* @__PURE__ */ T.j
37196
37196
  }) => {
37197
37197
  const l = j.useId(), c = j.useRef(null), { menuIsOpen: u, currentCurrencyOption: d, onSelectOption: f, onToggleMenu: p, onCloseMenu: h } = bY(a);
37198
37198
  return ps(c, h), /* @__PURE__ */ T.jsx(
37199
- hn,
37199
+ En,
37200
37200
  {
37201
37201
  control: r,
37202
37202
  name: s.name,
@@ -37486,7 +37486,7 @@ const fZ = ({
37486
37486
  return We(() => {
37487
37487
  s.current && o && s.current.focus();
37488
37488
  }, [o]), /* @__PURE__ */ T.jsx(
37489
- hn,
37489
+ En,
37490
37490
  {
37491
37491
  control: t,
37492
37492
  name: a.name,
@@ -40695,8 +40695,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
40695
40695
  }();
40696
40696
  if (Y.isAlternator) return function() {
40697
40697
  function U(In) {
40698
- for (var ri, Sm = In.matches[0].matches ? In.matches[0].matches.length : 1, Ds = 0; Ds < In.matches.length && Sm === (ri = In.matches[Ds].matches ? In.matches[Ds].matches.length : 1); Ds++) ;
40699
- return Sm !== ri;
40698
+ for (var ii, Sm = In.matches[0].matches ? In.matches[0].matches.length : 1, Ds = 0; Ds < In.matches.length && Sm === (ii = In.matches[Ds].matches ? In.matches[Ds].matches.length : 1); Ds++) ;
40699
+ return Sm !== ii;
40700
40700
  }
40701
40701
  I.hasAlternator = !0;
40702
40702
  var ee, K = Y, Q = [], de = _.slice(), ge = ne.length, xe = $.length > 0 ? $.shift() : -1;
@@ -40749,7 +40749,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
40749
40749
  Ki || Q.push(Ae);
40750
40750
  }
40751
40751
  }
40752
- _ = de.concat(Q), B = x, z = _.length > 0 && D, Y = Q.length > 0 && !D, D && z && !Y && _.forEach(function(In, ri) {
40752
+ _ = de.concat(Q), B = x, z = _.length > 0 && D, Y = Q.length > 0 && !D, D && z && !Y && _.forEach(function(In, ii) {
40753
40753
  In.unMatchedAlternationStopped = !0;
40754
40754
  }), $ = wt.slice();
40755
40755
  } else Y = te(K.matches[xe] || q.matches[xe], [xe].concat(ne), he);
@@ -41467,27 +41467,28 @@ const ZY = ({
41467
41467
  className: c,
41468
41468
  invalid: u,
41469
41469
  filterOptionDisabled: d,
41470
- ...f
41471
- }, p) => {
41472
- const h = d || !t && !e ? null : void 0;
41473
- return /* @__PURE__ */ T.jsx(
41470
+ value: f,
41471
+ ...p
41472
+ }, h) => {
41473
+ const m = d || !t && !e ? null : void 0;
41474
+ return console.log("SelectBase value: ", f), /* @__PURE__ */ T.jsx(
41474
41475
  Bw,
41475
41476
  {
41476
- ref: p,
41477
- ...f,
41477
+ ref: h,
41478
+ ...p,
41478
41479
  closeMenuOnSelect: !e,
41479
41480
  isMulti: e,
41480
- filterOption: h,
41481
+ filterOption: m,
41481
41482
  onMenuClose: s,
41482
41483
  className: H("w-full", l == null ? void 0 : l.container, c),
41483
41484
  hideSelectedOptions: i,
41484
- getOptionLabel: a ? (m) => a(m) : void 0,
41485
- getOptionValue: o ? (m) => o(m) : void 0,
41485
+ getOptionLabel: a ? (g) => a(g) : void 0,
41486
+ getOptionValue: o ? (g) => o(g) : void 0,
41486
41487
  components: {
41487
- Control: (m) => /* @__PURE__ */ T.jsx(
41488
+ Control: (g) => /* @__PURE__ */ T.jsx(
41488
41489
  YY,
41489
41490
  {
41490
- ...m,
41491
+ ...g,
41491
41492
  invalid: u,
41492
41493
  displayValue: a,
41493
41494
  isSearchable: t,
@@ -41496,8 +41497,8 @@ const ZY = ({
41496
41497
  classes: l == null ? void 0 : l.control
41497
41498
  }
41498
41499
  ),
41499
- Option: (m) => /* @__PURE__ */ T.jsx(ZY, { ...m, classes: l == null ? void 0 : l.option }),
41500
- MenuList: (m) => /* @__PURE__ */ T.jsx(UY, { ...m, classes: l == null ? void 0 : l.list })
41500
+ Option: (g) => /* @__PURE__ */ T.jsx(ZY, { ...g, classes: l == null ? void 0 : l.option }),
41501
+ MenuList: (g) => /* @__PURE__ */ T.jsx(UY, { ...g, classes: l == null ? void 0 : l.list })
41501
41502
  }
41502
41503
  }
41503
41504
  );
@@ -41683,7 +41684,7 @@ const JY = Kr(
41683
41684
  helperText: c,
41684
41685
  ...u
41685
41686
  }) => {
41686
- const { field: d, fieldState: f } = zi({
41687
+ const { field: d, fieldState: f } = qr({
41687
41688
  control: t,
41688
41689
  name: r,
41689
41690
  rules: i,
@@ -41818,7 +41819,7 @@ const i6 = ({ inputProps: t, classes: e, value: n, onChange: r, ...i }) => {
41818
41819
  size: c,
41819
41820
  ...u
41820
41821
  }) => {
41821
- const { field: d, fieldState: f } = zi({
41822
+ const { field: d, fieldState: f } = qr({
41822
41823
  control: t,
41823
41824
  name: e,
41824
41825
  defaultValue: o,
@@ -41865,7 +41866,7 @@ const i6 = ({ inputProps: t, classes: e, value: n, onChange: r, ...i }) => {
41865
41866
  size: l,
41866
41867
  ...c
41867
41868
  }) => {
41868
- const { field: u, fieldState: d } = zi({
41869
+ const { field: u, fieldState: d } = qr({
41869
41870
  control: t,
41870
41871
  name: e,
41871
41872
  defaultValue: n,
@@ -41897,7 +41898,7 @@ const i6 = ({ inputProps: t, classes: e, value: n, onChange: r, ...i }) => {
41897
41898
  size: l,
41898
41899
  ...c
41899
41900
  }) => {
41900
- const { field: u, fieldState: d } = zi({
41901
+ const { field: u, fieldState: d } = qr({
41901
41902
  control: t,
41902
41903
  name: e,
41903
41904
  defaultValue: n,
@@ -41930,7 +41931,7 @@ const i6 = ({ inputProps: t, classes: e, value: n, onChange: r, ...i }) => {
41930
41931
  label: c,
41931
41932
  ...u
41932
41933
  }) => {
41933
- const { field: d, fieldState: f } = zi({
41934
+ const { field: d, fieldState: f } = qr({
41934
41935
  control: n,
41935
41936
  name: r,
41936
41937
  rules: i,
@@ -41979,7 +41980,7 @@ const h6 = ({
41979
41980
  size: u,
41980
41981
  ...d
41981
41982
  }) => {
41982
- const { field: f, fieldState: p } = zi({
41983
+ const { field: f, fieldState: p } = qr({
41983
41984
  control: t,
41984
41985
  name: n,
41985
41986
  rules: r,
@@ -41992,7 +41993,7 @@ const h6 = ({
41992
41993
  y(k);
41993
41994
  } else p6(S) && y(s ? s(S) : S.value);
41994
41995
  }, E = Pe(() => Array.isArray(w) ? l.filter((S) => w.includes(s ? s(S) : S.value)) : l.find((S) => (s ? s(S) : S.value) === w) || null, [l, s, w]);
41995
- return /* @__PURE__ */ T.jsxs(Rn, { size: u, className: H("items-start gap-y-2", g), children: [
41996
+ return console.log("SelectControl value: ", w), console.log("SelectControl selected value: ", E), /* @__PURE__ */ T.jsxs(Rn, { size: u, className: H("items-start gap-y-2", g), children: [
41996
41997
  /* @__PURE__ */ T.jsx(
41997
41998
  wr.SelectBase,
41998
41999
  {
@@ -42031,7 +42032,7 @@ const h6 = ({
42031
42032
  popoverProps: d,
42032
42033
  ...f
42033
42034
  }) => {
42034
- const { field: p } = zi({
42035
+ const { field: p } = qr({
42035
42036
  control: n,
42036
42037
  name: r,
42037
42038
  rules: i,