@factorialco/f0-react 6.11.2 → 6.12.0

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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as m, jsxs as R, Fragment as $e } from "react/jsx-runtime";
2
2
  import * as Ve from "react";
3
- import te, { useRef as j, useState as ee, useCallback as ne, useEffect as oe, useContext as bt, useMemo as Q, createContext as $t, forwardRef as Je, useLayoutEffect as rn, memo as Ot, useReducer as mF, cloneElement as XN, PureComponent as Ic, useImperativeHandle as Ga, Fragment as ql, useId as Ya, createElement as L0, isValidElement as gF, useDebugValue as JN, version as Y3, createRef as yF } from "react";
3
+ import te, { useRef as j, useState as ee, useCallback as ne, useEffect as se, useContext as bt, useMemo as Q, createContext as $t, forwardRef as Je, useLayoutEffect as rn, memo as Ot, useReducer as mF, cloneElement as XN, PureComponent as Ic, useImperativeHandle as Ga, Fragment as ql, useId as Ya, createElement as L0, isValidElement as gF, useDebugValue as JN, version as Y3, createRef as yF } from "react";
4
4
  import { ew as X3, ex as hu, ey as vF, eh as ZN, ez as bF, eA as wF, eB as xF, eC as O1, eD as kF, eE as _F, eF as SF, eG as CF, eH as EF, eI as NF, eJ as AF, a6 as Ge, eK as QN, eL as TF, ag as sn, ar as Hg, ai as Vg, ce as OF, di as DF, a7 as Xr, w as Pt, r as $i, s as Pc, aN as vx, cr as bx, cs as wx, S as Ie, eM as eA, ct as xx, u as ze, V as Ze, dK as pu, as as Bp, cx as tA, aW as kx, cw as MF, at as nA, ej as IF, eN as PF, a1 as iA, m as Te, ca as mu, eO as RF, eP as LF, dz as FF, dA as $F, eQ as BF, eR as rA, Z as oA, eS as zF, eT as jF, eU as ra, eV as Tt, eW as vi, eX as sA, eY as HF, eZ as aA, e_ as VF, e$ as jn, f0 as Wg, f1 as nn, f2 as lA, f3 as Ug, f4 as _x, f5 as Sx, f6 as Cx, f7 as In, f8 as gi, f9 as F0, fa as qg, fb as WF, fc as ei, fd as ws, fe as ui, ff as Xa, fg as Ex, fh as Kg, fi as lp, fj as Gg, cz as Nx, fk as UF, fl as hh, fm as zp, fn as qF, fo as KF, fp as GF, fq as YF, fr as XF, fs as JF, ft as cA, fu as dA, fv as fA, fw as uA, fx as hA, fy as ZF, fz as jp, fA as QF, fB as e$, fC as gu, fD as js, eo as Io, fE as Ax, fF as yu, fG as pA, ep as mA, fH as t$, fI as n$, em as i$, fJ as r$, en as o$, aO as ti, fK as ni, fL as s$, fM as gA, fN as yA, cq as or, ad as jt, cV as a$, aY as tr, av as Rc, ay as Ta, an as vu, cf as l$, fO as c$, fP as d$, aJ as Yg, bp as Lc, cv as vA, bR as bA, b6 as Tx, bB as Xg, y as Jg, fQ as wA, bf as f$, ap as Ur, fR as u$, c8 as xA, aw as h$, c_ as gn, fS as kA, fT as _A, fU as $0, fV as p$, fW as J3, fX as bu, d5 as SA, b3 as CA, c$ as B0, t as Ox, v as Dx, x as Mx, d3 as m$, k as Pi, cF as Z3, cj as g$, dt as y$, dS as z0, fY as v$, fZ as b$, f_ as D1, dY as EA, c5 as Ja, aR as Ds, co as w$, f$ as Q3, cd as Ix, g0 as x$, cZ as k$, a5 as _$, a3 as S$, g1 as NA, g2 as C$, ei as E$, g3 as N$, g4 as AA, ab as TA, g5 as A$, g6 as T$, g7 as O$, g8 as e_, g9 as t_, ga as M1, gb as n_, gc as D$, gd as OA, aP as M$, ge as Px, gf as I$, b0 as P$, cQ as Zg, z as DA, A as MA, B as IA, ao as R$, gg as L$, gh as i_, am as Hp, cR as Qg, G as PA, H as RA, K as LA, L as FA, o as Za, aD as Po, by as F$, bz as $$, gi as B$, n as Rx, gj as $A, gk as BA, gl as z$, gm as Vp, gn as j$, go as H$, gp as va, gq as V$, gr as r_, gs as W$, gt as U$, gu as Wp, gv as q$, gw as K$, gx as G$, gy as zA, gz as Y$, gA as jA, gB as X$, gC as ey, gD as Fc, gE as J$, gF as Lx, gG as Xt, eg as ff, gH as Un, dc as Oa, cl as j0, aT as Z$, aU as Q$, aj as eB, b_ as HA, b$ as VA, c0 as WA, gI as Fx, aE as ty, gJ as tB, aM as UA, b1 as nB, bY as ny, bJ as zo, cb as qA, cc as KA, aC as iB, cC as rB, e6 as GA, bj as oB, gK as sB, gL as aB, d2 as lB, gM as Up, gN as go, cH as cB, d$ as dB, gO as fB, bv as uB, aZ as qp, e1 as YA, bA as hB, bO as pB, gP as XA, bQ as mB, br as gB, gQ as yB, gR as iy, gS as ry, gT as oy, gU as H0, c1 as sy, gV as vB, gW as Kp, gX as bB, aX as wB, cG as xB, dU as kB, dV as _B, gY as o_, gZ as SB, g_ as s_, g$ as I1, h0 as JA, R as ZA, d_ as CB, dH as EB, i as $x, h1 as NB, h2 as AB, bt as TB, j as Bx, cK as OB, dX as DB, dP as a_, dT as zx, e3 as MB, l as IB, h3 as PB, h4 as jx, dj as RB, dr as LB, e0 as FB, h5 as $B, q as BB, cu as l_, h6 as zB, h7 as jB, h8 as HB, h9 as VB, ha as QA, c7 as WB, hb as Ne, hc as wu, hd as UB, he as qB, hf as KB, hg as GB, hh as c_, hi as YB, hj as Gp, hk as eT, E as XB, hl as JB, hm as P1, hn as ph, ho as ZB, hp as QB, hq as ez, hr as tz, hs as nz, ax as iz, c as rz, cB as oz, J as R1, ht as xu, hu as Hx, hv as Vx, hw as ku, hx as sz, az, cL as Wx, bG as lz, dd as cz, bh as dz, bM as fz, dk as uz, dO as hz, e5 as pz, e2 as mz, dL as tT, dM as nT, dN as iT, dW as rT, dp as oT, dg as sT, de as aT, dh as lT, df as cT, dq as dT, dZ as fT, aQ as uT, hy as hT, hz as gz, bl as yz, dF as vz, dD as bz, dC as wz, dB as xz, dE as kz, bT as _z, e7 as Sz, bS as Cz, c6 as Ez, e4 as Nz, bW as Az, bX as Tz, U as Oz, c4 as Dz, hA as Mz, ed as Iz, hB as Pz, hC as Rz, hD as Lz } from "./F0CanvasPanel-B6yrVWWP.js";
5
5
  import { d as X, e as ii, T as _u, a as Su, b as Cu, c as Eu, f as on, u as Ux, S as Fz } from "./tooltip-Cik7KBQT.js";
6
6
  import { g as Nu } from "./_commonjsHelpers-ByX85dGu.js";
@@ -1424,18 +1424,18 @@ function Fj(e, t, n, i, r, o, s) {
1424
1424
  scrollContainLimit: Z
1425
1425
  } = _j(M, Y, K, w, S), B = O ? H : K, {
1426
1426
  limit: V
1427
- } = Sj(Y, B, f), ie = mT(Au(B), d, f), J = ie.clone(), se = uf(n), q = ({
1428
- dragHandler: ft,
1429
- scrollBody: ut,
1427
+ } = Sj(Y, B, f), ie = mT(Au(B), d, f), J = ie.clone(), oe = uf(n), q = ({
1428
+ dragHandler: ut,
1429
+ scrollBody: ht,
1430
1430
  scrollBounds: Rt,
1431
1431
  options: {
1432
1432
  loop: vt
1433
1433
  }
1434
1434
  }) => {
1435
- vt || Rt.constrain(ft.pointerDown()), ut.seek();
1435
+ vt || Rt.constrain(ut.pointerDown()), ht.seek();
1436
1436
  }, G = ({
1437
- scrollBody: ft,
1438
- translate: ut,
1437
+ scrollBody: ut,
1438
+ translate: ht,
1439
1439
  location: Rt,
1440
1440
  offsetLocation: vt,
1441
1441
  previousLocation: pe,
@@ -1449,13 +1449,13 @@ function Fj(e, t, n, i, r, o, s) {
1449
1449
  loop: it
1450
1450
  }
1451
1451
  }, tt) => {
1452
- const st = ft.settled(), Dt = !rt.shouldConstrain(), ve = it ? st : st && Dt, Ae = ve && !Se.pointerDown();
1452
+ const st = ut.settled(), Dt = !rt.shouldConstrain(), ve = it ? st : st && Dt, Ae = ve && !Se.pointerDown();
1453
1453
  Ae && _e.stop();
1454
1454
  const Ue = Rt.get() * tt + pe.get() * (1 - tt);
1455
- vt.set(Ue), it && (fe.loop(ft.direction()), he.loop()), ut.to(vt.get()), Ae && Oe.emit("settle"), ve || Oe.emit("scroll");
1456
- }, le = pj(i, r, () => q(kt), (ft) => G(kt, ft)), de = 0.68, ge = B[ie.get()], be = Ed(ge), W = Ed(ge), re = Ed(ge), ae = Ed(ge), ue = xj(be, re, W, ae, u, de), ce = Tj(f, B, Y, V, ae), me = Oj(le, ie, J, ue, ce, ae, s), ye = Ej(V), Ce = pf(), He = Pj(t, n, s, g), {
1455
+ vt.set(Ue), it && (fe.loop(ut.direction()), he.loop()), ht.to(vt.get()), Ae && Oe.emit("settle"), ve || Oe.emit("scroll");
1456
+ }, le = pj(i, r, () => q(kt), (ut) => G(kt, ut)), de = 0.68, ge = B[ie.get()], be = Ed(ge), W = Ed(ge), re = Ed(ge), ae = Ed(ge), ue = xj(be, re, W, ae, u, de), ce = Tj(f, B, Y, V, ae), me = Oj(le, ie, J, ue, ce, ae, s), ye = Ej(V), Ce = pf(), He = Pj(t, n, s, g), {
1457
1457
  slideRegistry: Le
1458
- } = Aj(O, w, B, Z, $, se), et = Dj(e, n, Le, me, ue, Ce, s, _), kt = {
1458
+ } = Aj(O, w, B, Z, $, oe), et = Dj(e, n, Le, me, ue, Ce, s, _), kt = {
1459
1459
  ownerDocument: i,
1460
1460
  ownerWindow: r,
1461
1461
  eventHandler: s,
@@ -1486,7 +1486,7 @@ function Fj(e, t, n, i, r, o, s) {
1486
1486
  slideFocus: et,
1487
1487
  slidesHandler: Ij(t, s, b),
1488
1488
  slidesInView: He,
1489
- slideIndexes: se,
1489
+ slideIndexes: oe,
1490
1490
  slideRegistry: Le,
1491
1491
  slidesToScroll: $,
1492
1492
  target: ae,
@@ -1592,33 +1592,33 @@ function Yp(e, t, n) {
1592
1592
  let y = !1, v, w = c(Bj, Yp.globalOptions), x = c(w), b = [], k, _, S;
1593
1593
  function E() {
1594
1594
  const {
1595
- container: se,
1595
+ container: oe,
1596
1596
  slides: q
1597
1597
  } = x;
1598
- _ = (V0(se) ? e.querySelector(se) : se) || e.children[0];
1598
+ _ = (V0(oe) ? e.querySelector(oe) : oe) || e.children[0];
1599
1599
  const le = V0(q) ? _.querySelectorAll(q) : q;
1600
1600
  S = [].slice.call(le || _.children);
1601
1601
  }
1602
- function C(se) {
1603
- const q = Fj(e, _, S, i, r, se, l);
1604
- if (se.loop && !q.slideLooper.canLoop()) {
1605
- const G = Object.assign({}, se, {
1602
+ function C(oe) {
1603
+ const q = Fj(e, _, S, i, r, oe, l);
1604
+ if (oe.loop && !q.slideLooper.canLoop()) {
1605
+ const G = Object.assign({}, oe, {
1606
1606
  loop: !1
1607
1607
  });
1608
1608
  return C(G);
1609
1609
  }
1610
1610
  return q;
1611
1611
  }
1612
- function T(se, q) {
1613
- y || (w = c(w, se), x = d(w), b = q || b, E(), v = C(x), f([w, ...b.map(({
1612
+ function T(oe, q) {
1613
+ y || (w = c(w, oe), x = d(w), b = q || b, E(), v = C(x), f([w, ...b.map(({
1614
1614
  options: G
1615
1615
  }) => G)]).forEach((G) => a.add(G, "change", A)), x.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(J), v.eventHandler.init(J), v.resizeHandler.init(J), v.slidesHandler.init(J), v.options.loop && v.slideLooper.loop(), _.offsetParent && S.length && v.dragHandler.init(J), k = s.init(J, b)));
1616
1616
  }
1617
- function A(se, q) {
1617
+ function A(oe, q) {
1618
1618
  const G = $();
1619
1619
  M(), T(c({
1620
1620
  startIndex: G
1621
- }, se), q), l.emit("reInit");
1621
+ }, oe), q), l.emit("reInit");
1622
1622
  }
1623
1623
  function M() {
1624
1624
  v.dragHandler.destroy(), v.eventStore.clear(), v.translate.clear(), v.slideLooper.clear(), v.resizeHandler.destroy(), v.slidesHandler.destroy(), v.slidesInView.destroy(), v.animation.destroy(), s.destroy(), a.clear();
@@ -1626,16 +1626,16 @@ function Yp(e, t, n) {
1626
1626
  function I() {
1627
1627
  y || (y = !0, a.clear(), M(), l.emit("destroy"), l.clear());
1628
1628
  }
1629
- function N(se, q, G) {
1630
- !x.active || y || (v.scrollBody.useBaseFriction().useDuration(q === !0 ? 0 : x.duration), v.scrollTo.index(se, G || 0));
1629
+ function N(oe, q, G) {
1630
+ !x.active || y || (v.scrollBody.useBaseFriction().useDuration(q === !0 ? 0 : x.duration), v.scrollTo.index(oe, G || 0));
1631
1631
  }
1632
- function O(se) {
1632
+ function O(oe) {
1633
1633
  const q = v.index.add(1).get();
1634
- N(q, se, -1);
1634
+ N(q, oe, -1);
1635
1635
  }
1636
- function D(se) {
1636
+ function D(oe) {
1637
1637
  const q = v.index.add(-1).get();
1638
- N(q, se, 1);
1638
+ N(q, oe, 1);
1639
1639
  }
1640
1640
  function P() {
1641
1641
  return v.index.add(1).get() !== $();
@@ -1706,11 +1706,11 @@ function ek(e = {}, t = []) {
1706
1706
  const n = j(e), i = j(t), [r, o] = ee(), [s, a] = ee(), l = ne(() => {
1707
1707
  r && r.reInit(n.current, i.current);
1708
1708
  }, [r]);
1709
- return oe(() => {
1709
+ return se(() => {
1710
1710
  Xx(n.current, e) || (n.current = e, l());
1711
- }, [e, l]), oe(() => {
1711
+ }, [e, l]), se(() => {
1712
1712
  dj(i.current, t) || (i.current = t, l());
1713
- }, [t, l]), oe(() => {
1713
+ }, [t, l]), se(() => {
1714
1714
  if (cj() && s) {
1715
1715
  Yp.globalOptions = ek.globalOptions;
1716
1716
  const c = Yp(s, n.current, i.current);
@@ -1834,7 +1834,7 @@ function Jj({ children: e, as: t = "ul", axis: n = "y", onReorder: i, values: r,
1834
1834
  l !== p && (c.current = !0, i(p.map(Qj).filter((g) => r.indexOf(g) !== -1)));
1835
1835
  }
1836
1836
  };
1837
- return oe(() => {
1837
+ return se(() => {
1838
1838
  c.current = !1;
1839
1839
  }), m(a, { ...o, ref: s, ignoreStrict: !0, children: m(vT.Provider, { value: d, children: e }) });
1840
1840
  }
@@ -2506,13 +2506,13 @@ const oH = ({
2506
2506
  isDragging: h = !1,
2507
2507
  selected: p = !1
2508
2508
  }, g) {
2509
- oe(() => {
2509
+ se(() => {
2510
2510
  if (!h || !u) return;
2511
2511
  const k = () => u();
2512
2512
  return document.addEventListener("mouseup", k), () => document.removeEventListener("mouseup", k);
2513
2513
  }, [h, u]);
2514
2514
  const y = ze(), { enabled: v, toggle: w } = tk();
2515
- oe(() => {
2515
+ se(() => {
2516
2516
  if (o && s)
2517
2517
  throw Error(
2518
2518
  "You cannot pass both alert and status at the same time to this component"
@@ -2718,7 +2718,7 @@ function AT(e) {
2718
2718
  function Bc(e) {
2719
2719
  return e ? $c(e) ? e.document : nk(e) ? ik(e) ? e : Ou(e) || AT(e) ? e.ownerDocument : document : document : document;
2720
2720
  }
2721
- const kr = ly ? rn : oe;
2721
+ const kr = ly ? rn : se;
2722
2722
  function cy(e) {
2723
2723
  const t = j(e);
2724
2724
  return kr(() => {
@@ -2767,7 +2767,7 @@ function Xp(e) {
2767
2767
  }
2768
2768
  function Jp(e) {
2769
2769
  const t = j();
2770
- return oe(() => {
2770
+ return se(() => {
2771
2771
  t.current = e;
2772
2772
  }, [e]), t.current;
2773
2773
  }
@@ -2939,7 +2939,7 @@ function xH() {
2939
2939
  const OT = /* @__PURE__ */ $t(null);
2940
2940
  function kH(e) {
2941
2941
  const t = bt(OT);
2942
- oe(() => {
2942
+ se(() => {
2943
2943
  if (!t)
2944
2944
  throw new Error("useDndMonitor must be used within a children of <DndContext>");
2945
2945
  return t(e);
@@ -3003,7 +3003,7 @@ function EH(e) {
3003
3003
  announce: o,
3004
3004
  announcement: s
3005
3005
  } = xH(), a = Mu("DndLiveRegion"), [l, c] = ee(!1);
3006
- if (oe(() => {
3006
+ if (se(() => {
3007
3007
  c(!0);
3008
3008
  }, []), kH(Q(() => ({
3009
3009
  onDragStart(f) {
@@ -4029,7 +4029,7 @@ function tV(e) {
4029
4029
  const S = y.current.x * v.current.x, E = y.current.y * v.current.y;
4030
4030
  _.scrollBy(S, E);
4031
4031
  }, []), k = Q(() => a === em.TreeOrder ? [...c].reverse() : c, [a, c]);
4032
- oe(
4032
+ se(
4033
4033
  () => {
4034
4034
  if (!o || !c.length || !w) {
4035
4035
  g();
@@ -4174,21 +4174,21 @@ function sV(e, t) {
4174
4174
  }
4175
4175
  return v;
4176
4176
  }, [e, o, n, f, l]);
4177
- return oe(() => {
4177
+ return se(() => {
4178
4178
  d.current = e;
4179
- }, [e]), oe(
4179
+ }, [e]), se(
4180
4180
  () => {
4181
4181
  f || h();
4182
4182
  },
4183
4183
  // eslint-disable-next-line react-hooks/exhaustive-deps
4184
4184
  [n, f]
4185
- ), oe(
4185
+ ), se(
4186
4186
  () => {
4187
4187
  o && o.length > 0 && s(null);
4188
4188
  },
4189
4189
  //eslint-disable-next-line react-hooks/exhaustive-deps
4190
4190
  [JSON.stringify(o)]
4191
- ), oe(
4191
+ ), se(
4192
4192
  () => {
4193
4193
  f || typeof a != "number" || p.current !== null || (p.current = setTimeout(() => {
4194
4194
  h(), p.current = null;
@@ -4231,7 +4231,7 @@ function lV(e) {
4231
4231
  } = window;
4232
4232
  return new o(i);
4233
4233
  }, [i, n]);
4234
- return oe(() => () => r?.disconnect(), [r]), r;
4234
+ return se(() => () => r?.disconnect(), [r]), r;
4235
4235
  }
4236
4236
  function uy(e) {
4237
4237
  let {
@@ -4250,7 +4250,7 @@ function uy(e) {
4250
4250
  // eslint-disable-next-line react-hooks/exhaustive-deps
4251
4251
  [n]
4252
4252
  );
4253
- return oe(() => () => r?.disconnect(), [r]), r;
4253
+ return se(() => () => r?.disconnect(), [r]), r;
4254
4254
  }
4255
4255
  function cV(e) {
4256
4256
  return new rk(zc(e), e);
@@ -4301,7 +4301,7 @@ function dV(e) {
4301
4301
  const M_ = [];
4302
4302
  function fV(e) {
4303
4303
  const t = j(e), n = Du((i) => e ? i && i !== M_ && e && t.current && e.parentNode === t.current.parentNode ? i : fy(e) : M_, [e]);
4304
- return oe(() => {
4304
+ return se(() => {
4305
4305
  t.current = e;
4306
4306
  }, [e]), n;
4307
4307
  }
@@ -4310,7 +4310,7 @@ function uV(e) {
4310
4310
  const s = z1(o.target);
4311
4311
  s && n((a) => a ? (a.set(s, U0(s)), new Map(a)) : null);
4312
4312
  }, []);
4313
- return oe(() => {
4313
+ return se(() => {
4314
4314
  const o = i.current;
4315
4315
  if (e !== o) {
4316
4316
  s(o);
@@ -4336,19 +4336,19 @@ function uV(e) {
4336
4336
  function I_(e, t) {
4337
4337
  t === void 0 && (t = []);
4338
4338
  const n = j(null);
4339
- return oe(
4339
+ return se(
4340
4340
  () => {
4341
4341
  n.current = null;
4342
4342
  },
4343
4343
  // eslint-disable-next-line react-hooks/exhaustive-deps
4344
4344
  t
4345
- ), oe(() => {
4345
+ ), se(() => {
4346
4346
  const i = e !== _r;
4347
4347
  i && !n.current && (n.current = e), !i && n.current && (n.current = null);
4348
4348
  }, [e]), n.current ? gf(e, n.current) : _r;
4349
4349
  }
4350
4350
  function hV(e) {
4351
- oe(
4351
+ se(
4352
4352
  () => {
4353
4353
  if (!ly)
4354
4354
  return;
@@ -4640,7 +4640,7 @@ function kV(e) {
4640
4640
  activatorEvent: i,
4641
4641
  draggableNodes: r
4642
4642
  } = bt(Iu), o = Jp(i), s = Jp(n?.id);
4643
- return oe(() => {
4643
+ return se(() => {
4644
4644
  if (!t && !i && o && s != null) {
4645
4645
  if (!dy(o) || document.activeElement === o.target)
4646
4646
  return;
@@ -4788,7 +4788,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4788
4788
  initialRect: ie,
4789
4789
  measure: F.draggable.measure
4790
4790
  });
4791
- const J = D_(Z, F.draggable.measure, ie), se = D_(Z ? Z.parentElement : null), q = j({
4791
+ const J = D_(Z, F.draggable.measure, ie), oe = D_(Z ? Z.parentElement : null), q = j({
4792
4792
  activatorEvent: null,
4793
4793
  active: null,
4794
4794
  activeNode: Z,
@@ -4814,7 +4814,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4814
4814
  activatorEvent: P,
4815
4815
  active: I,
4816
4816
  activeNodeRect: J,
4817
- containerNodeRect: se,
4817
+ containerNodeRect: oe,
4818
4818
  draggingNodeRect: ge,
4819
4819
  over: q.current.over,
4820
4820
  overlayNodeRect: le.rect,
@@ -4827,7 +4827,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4827
4827
  droppableRects: K,
4828
4828
  droppableContainers: $,
4829
4829
  pointerCoordinates: me
4830
- }) : null, ft = IT(kt, "id"), [ut, Rt] = ee(null), vt = be ? ce : Pl(ce, He), pe = PH(vt, (o = ut?.rect) != null ? o : null, J), fe = j(null), he = ne(
4830
+ }) : null, ut = IT(kt, "id"), [ht, Rt] = ee(null), vt = be ? ce : Pl(ce, He), pe = PH(vt, (o = ht?.rect) != null ? o : null, J), fe = j(null), he = ne(
4831
4831
  (tt, st) => {
4832
4832
  let {
4833
4833
  sensor: Dt,
@@ -4846,26 +4846,26 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4846
4846
  // Sensors need to be instantiated with refs for arguments that change over time
4847
4847
  // otherwise they are frozen in time with the stale arguments
4848
4848
  context: q,
4849
- onAbort(ht) {
4850
- if (!E.get(ht))
4849
+ onAbort(at) {
4850
+ if (!E.get(at))
4851
4851
  return;
4852
4852
  const {
4853
4853
  onDragAbort: ln
4854
4854
  } = z.current, mn = {
4855
- id: ht
4855
+ id: at
4856
4856
  };
4857
4857
  ln?.(mn), w({
4858
4858
  type: "onDragAbort",
4859
4859
  event: mn
4860
4860
  });
4861
4861
  },
4862
- onPending(ht, Wt, ln, mn) {
4863
- if (!E.get(ht))
4862
+ onPending(at, Wt, ln, mn) {
4863
+ if (!E.get(at))
4864
4864
  return;
4865
4865
  const {
4866
4866
  onDragPending: ci
4867
4867
  } = z.current, cn = {
4868
- id: ht,
4868
+ id: at,
4869
4869
  constraint: Wt,
4870
4870
  initialCoordinates: ln,
4871
4871
  offset: mn
@@ -4875,7 +4875,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4875
4875
  event: cn
4876
4876
  });
4877
4877
  },
4878
- onStart(ht) {
4878
+ onStart(at) {
4879
4879
  const Wt = N.current;
4880
4880
  if (Wt == null)
4881
4881
  return;
@@ -4895,7 +4895,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4895
4895
  mh(() => {
4896
4896
  mn?.(Pn), k(ds.Initializing), v({
4897
4897
  type: wn.DragStart,
4898
- initialCoordinates: ht,
4898
+ initialCoordinates: at,
4899
4899
  active: Wt
4900
4900
  }), w({
4901
4901
  type: "onDragStart",
@@ -4903,17 +4903,17 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4903
4903
  }), D(fe.current), L(Ue);
4904
4904
  });
4905
4905
  },
4906
- onMove(ht) {
4906
+ onMove(at) {
4907
4907
  v({
4908
4908
  type: wn.DragMove,
4909
- coordinates: ht
4909
+ coordinates: at
4910
4910
  });
4911
4911
  },
4912
- onEnd: ct(wn.DragEnd),
4913
- onCancel: ct(wn.DragCancel)
4912
+ onEnd: dt(wn.DragEnd),
4913
+ onCancel: dt(wn.DragCancel)
4914
4914
  });
4915
4915
  fe.current = Ke;
4916
- function ct(ht) {
4916
+ function dt(at) {
4917
4917
  return async function() {
4918
4918
  const {
4919
4919
  active: ln,
@@ -4932,13 +4932,13 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4932
4932
  collisions: mn,
4933
4933
  delta: ci,
4934
4934
  over: Pn
4935
- }, ht === wn.DragEnd && typeof Gn == "function" && await Promise.resolve(Gn(cn)) && (ht = wn.DragCancel);
4935
+ }, at === wn.DragEnd && typeof Gn == "function" && await Promise.resolve(Gn(cn)) && (at = wn.DragCancel);
4936
4936
  }
4937
4937
  N.current = null, mh(() => {
4938
4938
  v({
4939
- type: ht
4939
+ type: at
4940
4940
  }), k(ds.Uninitialized), Rt(null), D(null), L(null), fe.current = null;
4941
- const Gn = ht === wn.DragEnd ? "onDragEnd" : "onDragCancel";
4941
+ const Gn = at === wn.DragEnd ? "onDragEnd" : "onDragCancel";
4942
4942
  if (cn) {
4943
4943
  const Yn = z.current[Gn];
4944
4944
  Yn?.(cn), w({
@@ -4970,7 +4970,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
4970
4970
  }, [E, he]), _e = oV(d, Se);
4971
4971
  hV(d), kr(() => {
4972
4972
  J && b === ds.Initializing && k(ds.Initialized);
4973
- }, [J, b]), oe(
4973
+ }, [J, b]), se(
4974
4974
  () => {
4975
4975
  const {
4976
4976
  onDragMove: tt
@@ -5001,7 +5001,7 @@ const CV = /* @__PURE__ */ Ot(function(t) {
5001
5001
  },
5002
5002
  // eslint-disable-next-line react-hooks/exhaustive-deps
5003
5003
  [Le.x, Le.y]
5004
- ), oe(
5004
+ ), se(
5005
5005
  () => {
5006
5006
  const {
5007
5007
  active: tt,
@@ -5014,12 +5014,12 @@ const CV = /* @__PURE__ */ Ot(function(t) {
5014
5014
  return;
5015
5015
  const {
5016
5016
  onDragOver: Ue
5017
- } = z.current, Ke = ve.get(ft), ct = Ke && Ke.rect.current ? {
5017
+ } = z.current, Ke = ve.get(ut), dt = Ke && Ke.rect.current ? {
5018
5018
  id: Ke.id,
5019
5019
  rect: Ke.rect.current,
5020
5020
  data: Ke.data,
5021
5021
  disabled: Ke.disabled
5022
- } : null, ht = {
5022
+ } : null, at = {
5023
5023
  active: tt,
5024
5024
  activatorEvent: st,
5025
5025
  collisions: Dt,
@@ -5027,17 +5027,17 @@ const CV = /* @__PURE__ */ Ot(function(t) {
5027
5027
  x: Ae.x,
5028
5028
  y: Ae.y
5029
5029
  },
5030
- over: ct
5030
+ over: dt
5031
5031
  };
5032
5032
  mh(() => {
5033
- Rt(ct), Ue?.(ht), w({
5033
+ Rt(dt), Ue?.(at), w({
5034
5034
  type: "onDragOver",
5035
- event: ht
5035
+ event: at
5036
5036
  });
5037
5037
  });
5038
5038
  },
5039
5039
  // eslint-disable-next-line react-hooks/exhaustive-deps
5040
- [ft]
5040
+ [ut]
5041
5041
  ), kr(() => {
5042
5042
  q.current = {
5043
5043
  activatorEvent: P,
@@ -5050,14 +5050,14 @@ const CV = /* @__PURE__ */ Ot(function(t) {
5050
5050
  draggingNode: de,
5051
5051
  draggingNodeRect: ge,
5052
5052
  droppableContainers: T,
5053
- over: ut,
5053
+ over: ht,
5054
5054
  scrollableAncestors: ae,
5055
5055
  scrollAdjustedTranslate: Le
5056
5056
  }, M.current = {
5057
5057
  initial: ge,
5058
5058
  translated: et
5059
5059
  };
5060
- }, [I, Z, kt, et, E, de, ge, K, T, ut, ae, Le]), tV({
5060
+ }, [I, Z, kt, et, E, de, ge, K, T, ht, ae, Le]), tV({
5061
5061
  ...V,
5062
5062
  delta: C,
5063
5063
  draggingRect: et,
@@ -5071,19 +5071,19 @@ const CV = /* @__PURE__ */ Ot(function(t) {
5071
5071
  activeNodeRect: J,
5072
5072
  activatorEvent: P,
5073
5073
  collisions: kt,
5074
- containerNodeRect: se,
5074
+ containerNodeRect: oe,
5075
5075
  dragOverlay: le,
5076
5076
  draggableNodes: E,
5077
5077
  droppableContainers: T,
5078
5078
  droppableRects: K,
5079
- over: ut,
5079
+ over: ht,
5080
5080
  measureDroppableContainers: Y,
5081
5081
  scrollableAncestors: ae,
5082
5082
  scrollableAncestorRects: ue,
5083
5083
  measuringConfiguration: F,
5084
5084
  measuringScheduled: H,
5085
5085
  windowRect: re
5086
- }), [I, Z, J, P, kt, se, le, E, T, K, ut, Y, ae, ue, F, H, re]), rt = Q(() => ({
5086
+ }), [I, Z, J, P, kt, oe, le, E, T, K, ht, Y, ae, ue, F, H, re]), rt = Q(() => ({
5087
5087
  activatorEvent: P,
5088
5088
  activators: _e,
5089
5089
  active: I,
@@ -5093,9 +5093,9 @@ const CV = /* @__PURE__ */ Ot(function(t) {
5093
5093
  },
5094
5094
  dispatch: v,
5095
5095
  draggableNodes: E,
5096
- over: ut,
5096
+ over: ht,
5097
5097
  measureDroppableContainers: Y
5098
- }), [P, _e, I, J, v, U, E, ut, Y]);
5098
+ }), [P, _e, I, J, v, U, E, ht, Y]);
5099
5099
  return te.createElement(OT.Provider, {
5100
5100
  value: x
5101
5101
  }, te.createElement(Iu.Provider, {
@@ -5221,9 +5221,9 @@ function DV(e) {
5221
5221
  }), b = ne((E, C) => {
5222
5222
  x && (C && (x.unobserve(C), f.current = !1), E && x.observe(E));
5223
5223
  }, [x]), [k, _] = Xp(b), S = mf(t);
5224
- return oe(() => {
5224
+ return se(() => {
5225
5225
  !x || !k.current || (x.disconnect(), f.current = !1, x.observe(k.current));
5226
- }, [k, x]), oe(
5226
+ }, [k, x]), se(
5227
5227
  () => (a({
5228
5228
  type: wn.RegisterDroppable,
5229
5229
  element: {
@@ -5241,7 +5241,7 @@ function DV(e) {
5241
5241
  })),
5242
5242
  // eslint-disable-next-line react-hooks/exhaustive-deps
5243
5243
  [i]
5244
- ), oe(() => {
5244
+ ), se(() => {
5245
5245
  n !== d.current.disabled && (a({
5246
5246
  type: wn.SetDroppableDisabled,
5247
5247
  id: i,
@@ -5659,7 +5659,7 @@ function YV(e) {
5659
5659
  } = YT(), f = Mu(JT, n), u = a.rect !== null, h = Q(() => i.map((_) => typeof _ == "object" && "id" in _ ? _.id : _), [i]), p = s != null, g = s ? h.indexOf(s.id) : -1, y = c ? h.indexOf(c.id) : -1, v = j(h), w = !UV(h, v.current), x = y !== -1 && g === -1 || w, b = qV(o);
5660
5660
  kr(() => {
5661
5661
  w && p && d(h);
5662
- }, [w, h, p, d]), oe(() => {
5662
+ }, [w, h, p, d]), se(() => {
5663
5663
  v.current = h;
5664
5664
  }, [h]);
5665
5665
  const k = Q(
@@ -5736,7 +5736,7 @@ function tW(e) {
5736
5736
  }
5737
5737
  }
5738
5738
  n !== a.current && (a.current = n);
5739
- }, [t, n, i, r]), oe(() => {
5739
+ }, [t, n, i, r]), se(() => {
5740
5740
  o && s(null);
5741
5741
  }, [o]), o;
5742
5742
  }
@@ -5817,7 +5817,7 @@ function nW(e) {
5817
5817
  items: d,
5818
5818
  newIndex: V,
5819
5819
  containerId: f
5820
- }), se = d !== J.current.items, q = t({
5820
+ }), oe = d !== J.current.items, q = t({
5821
5821
  active: A,
5822
5822
  containerId: f,
5823
5823
  isDragging: P,
@@ -5836,9 +5836,9 @@ function nW(e) {
5836
5836
  node: E,
5837
5837
  rect: S
5838
5838
  });
5839
- return oe(() => {
5839
+ return se(() => {
5840
5840
  F && J.current.newIndex !== V && (J.current.newIndex = V), f !== J.current.containerId && (J.current.containerId = f), d !== J.current.items && (J.current.items = d);
5841
- }, [F, V, f, d]), oe(() => {
5841
+ }, [F, V, f, d]), se(() => {
5842
5842
  if (ie === J.current.activeId)
5843
5843
  return;
5844
5844
  if (ie != null && J.current.activeId == null) {
@@ -5876,7 +5876,7 @@ function nW(e) {
5876
5876
  if (
5877
5877
  // Temporarily disable transitions for a single frame to set up derived transforms
5878
5878
  G || // Or to prevent items jumping to back to their "new" position when items change
5879
- se && J.current.newIndex === b
5879
+ oe && J.current.newIndex === b
5880
5880
  )
5881
5881
  return QV;
5882
5882
  if (!(Y && !dy(M) || !c) && (F || q))
@@ -10597,7 +10597,7 @@ const gK = (e) => Array.isArray(e) ? e.every((t) => mK(t)) ? e : [
10597
10597
  ...s
10598
10598
  }, a) => {
10599
10599
  const l = j(null), c = j(null), [d, f] = ee(null);
10600
- oe(() => {
10600
+ se(() => {
10601
10601
  const C = document.getElementById("content");
10602
10602
  if (!C) return;
10603
10603
  const T = () => {
@@ -10607,7 +10607,7 @@ const gK = (e) => Array.isArray(e) ? e.every((t) => mK(t)) ? e : [
10607
10607
  T();
10608
10608
  const A = new ResizeObserver(T);
10609
10609
  return A.observe(C), () => A.disconnect();
10610
- }, []), oe(() => () => {
10610
+ }, []), se(() => () => {
10611
10611
  c.current && clearTimeout(c.current);
10612
10612
  }, []), Ga(a, () => ({
10613
10613
  wiggle(C) {
@@ -10620,7 +10620,7 @@ const gK = (e) => Array.isArray(e) ? e.every((t) => mK(t)) ? e : [
10620
10620
  }
10621
10621
  }));
10622
10622
  const [u, h] = ee(!1);
10623
- oe(() => {
10623
+ se(() => {
10624
10624
  if (o === "error") {
10625
10625
  const C = l.current;
10626
10626
  if (!C) return;
@@ -10780,7 +10780,7 @@ const fm = Pt(E9), USe = (e, t = {}, n = 0) => {
10780
10780
  const r = j(n);
10781
10781
  r.current = n;
10782
10782
  const [o, s] = ee(!1), [a, l] = ee(0), [c, d] = ee(n), [f, u] = ee(0), [h, p] = ee(1), [g, y] = ee(!0), [v, w] = ee(null);
10783
- oe(() => {
10783
+ se(() => {
10784
10784
  const E = e.current;
10785
10785
  if (!E) return;
10786
10786
  const C = () => {
@@ -11225,7 +11225,7 @@ function NK({
11225
11225
  ...l
11226
11226
  }) {
11227
11227
  const [c, d] = ee(r);
11228
- oe(() => {
11228
+ se(() => {
11229
11229
  d(r), s && s(r);
11230
11230
  }, [r, s]);
11231
11231
  const f = () => {
@@ -11336,7 +11336,7 @@ function YSe({
11336
11336
  const k = j(d);
11337
11337
  k.current = d;
11338
11338
  const _ = j(null), S = j(null), E = j(/* @__PURE__ */ new Map()), C = j(f);
11339
- C.current !== f && (C.current = f, E.current.clear()), oe(() => {
11339
+ C.current !== f && (C.current = f, E.current.clear()), se(() => {
11340
11340
  if (_.current = u, S.current?.(), S.current = null, !o || u === null || t === null) {
11341
11341
  y(!1);
11342
11342
  return;
@@ -11423,7 +11423,7 @@ function XSe(e) {
11423
11423
  activeItemId: c,
11424
11424
  defaultActiveItemId: d,
11425
11425
  onActiveItemChange: f
11426
- } = e, u = Q(() => a || (t.idProvider ? (J, se) => t.idProvider(J, se) : DK), [a, t.idProvider]), [h, p] = Ux({
11426
+ } = e, u = Q(() => a || (t.idProvider ? (J, oe) => t.idProvider(J, oe) : DK), [a, t.idProvider]), [h, p] = Ux({
11427
11427
  prop: c,
11428
11428
  defaultProp: d ?? null,
11429
11429
  onChange: (J) => f?.(J ?? null)
@@ -11444,17 +11444,17 @@ function XSe(e) {
11444
11444
  return;
11445
11445
  const J = y.current;
11446
11446
  if (J.type === "first" || J.type === "last") {
11447
- const se = A.current;
11448
- if (se?.type === "pages") {
11449
- if (se.currentPage === J.targetPage) return;
11447
+ const oe = A.current;
11448
+ if (oe?.type === "pages") {
11449
+ if (oe.currentPage === J.targetPage) return;
11450
11450
  _();
11451
11451
  }
11452
11452
  } else if (J.type === "next-after-current") {
11453
- const se = C.current;
11454
- if (se.length > J.loadedItemsCount) {
11455
- const q = J.previousId == null ? -1 : se.findIndex(
11453
+ const oe = C.current;
11454
+ if (oe.length > J.loadedItemsCount) {
11455
+ const q = J.previousId == null ? -1 : oe.findIndex(
11456
11456
  (le, de) => M.current(le, de) === J.previousId
11457
- ), G = se[q + 1];
11457
+ ), G = oe[q + 1];
11458
11458
  G && I.current(
11459
11459
  M.current(G, q + 1)
11460
11460
  );
@@ -11463,7 +11463,7 @@ function XSe(e) {
11463
11463
  _();
11464
11464
  }, 0);
11465
11465
  }, [_, k]);
11466
- oe(() => k, [k]), oe(() => {
11466
+ se(() => k, [k]), se(() => {
11467
11467
  !x || y.current === null || N();
11468
11468
  }, [x, N]);
11469
11469
  const { activeIndex: O, activeItem: D, previousItem: P, nextItem: L } = Q(
@@ -11535,7 +11535,7 @@ function XSe(e) {
11535
11535
  S,
11536
11536
  _
11537
11537
  ]);
11538
- oe(() => {
11538
+ se(() => {
11539
11539
  if (y.current === null) return;
11540
11540
  if (s) {
11541
11541
  v.current = !0;
@@ -11551,27 +11551,27 @@ function XSe(e) {
11551
11551
  v.current && _();
11552
11552
  return;
11553
11553
  }
11554
- const se = E[0];
11555
- S(u(se, 0));
11554
+ const oe = E[0];
11555
+ S(u(oe, 0));
11556
11556
  } else if (J.type === "last") {
11557
11557
  if (i?.type === "pages" && i.currentPage !== J.targetPage) {
11558
11558
  v.current && _();
11559
11559
  return;
11560
11560
  }
11561
- const se = E[E.length - 1];
11562
- S(u(se, E.length - 1));
11561
+ const oe = E[E.length - 1];
11562
+ S(u(oe, E.length - 1));
11563
11563
  } else if (J.type === "next-after-current") {
11564
11564
  if (E.length <= J.loadedItemsCount) {
11565
11565
  v.current && _();
11566
11566
  return;
11567
11567
  }
11568
11568
  if (J.previousId != null) {
11569
- const se = E.findIndex(
11569
+ const oe = E.findIndex(
11570
11570
  (q, G) => u(q, G) === J.previousId
11571
11571
  );
11572
- if (se >= 0 && se < E.length - 1) {
11573
- const q = E[se + 1];
11574
- S(u(q, se + 1));
11572
+ if (oe >= 0 && oe < E.length - 1) {
11573
+ const q = E[oe + 1];
11574
+ S(u(q, oe + 1));
11575
11575
  } else {
11576
11576
  _();
11577
11577
  return;
@@ -11645,7 +11645,7 @@ const p4 = "__custom__", LK = (e, t) => {
11645
11645
  return e.granularity !== t.granularity ? !1 : J3(e.value.from, n.from) && (!e.value.to || !n.to || J3(e.value.to, n.to));
11646
11646
  }, FK = ({ presets: e, ...t }) => {
11647
11647
  const [n, i] = ee();
11648
- return oe(() => {
11648
+ return se(() => {
11649
11649
  if (t.date) {
11650
11650
  const o = Object.entries(e).find(
11651
11651
  ([s, a]) => LK(t.date, a)
@@ -11690,7 +11690,7 @@ function T9({
11690
11690
  () => PK(() => _.current),
11691
11691
  []
11692
11692
  );
11693
- oe(() => {
11693
+ se(() => {
11694
11694
  Rl(c, y) || v(c || t);
11695
11695
  }, [c, t]);
11696
11696
  const E = Q(
@@ -11742,7 +11742,7 @@ function T9({
11742
11742
  C.toRange(H),
11743
11743
  B.value.delta,
11744
11744
  B.value.units
11745
- ), J = Array.isArray(ie) ? ie.map((se) => C.toString(se, p)).join(", ") : C.toString(ie, p);
11745
+ ), J = Array.isArray(ie) ? ie.map((oe) => C.toString(oe, p)).join(", ") : C.toString(ie, p);
11746
11746
  return {
11747
11747
  label: B.label,
11748
11748
  value: (V + 1).toString(),
@@ -11761,13 +11761,13 @@ function T9({
11761
11761
  ...Z
11762
11762
  ];
11763
11763
  }, [o, y, C, E]);
11764
- oe(() => {
11764
+ se(() => {
11765
11765
  $(s || "0");
11766
11766
  }, [E, s]);
11767
11767
  const K = (Y) => {
11768
11768
  $(Y);
11769
11769
  };
11770
- return oe(() => {
11770
+ return se(() => {
11771
11771
  a?.(
11772
11772
  U ? F[+U]?.dateValue : void 0
11773
11773
  );
@@ -11874,7 +11874,7 @@ const O9 = Je(
11874
11874
  ...c
11875
11875
  }, d) => {
11876
11876
  const [f, u] = ee(""), [h, p] = ee(!1), g = ze();
11877
- oe(() => {
11877
+ se(() => {
11878
11878
  u(
11879
11879
  n.toString(e?.value, g, l ?? "long")
11880
11880
  );
@@ -11941,7 +11941,7 @@ function BK({
11941
11941
  ...d
11942
11942
  }) {
11943
11943
  const [f, u] = ee(), [h, p] = ee(s);
11944
- oe(() => {
11944
+ se(() => {
11945
11945
  p(s);
11946
11946
  }, [s]);
11947
11947
  const g = ze(), y = Q(() => i[0] ?? "day", [i]), v = ne(
@@ -11966,7 +11966,7 @@ function BK({
11966
11966
  },
11967
11967
  [v]
11968
11968
  ), x = Q(() => v(f?.granularity), [f?.granularity, v]);
11969
- oe(() => {
11969
+ se(() => {
11970
11970
  const C = w(t);
11971
11971
  Rl(f, C) || u(C);
11972
11972
  }, [t]);
@@ -11984,7 +11984,7 @@ function BK({
11984
11984
  }, S = Q(() => n.filter(
11985
11985
  (C) => i.includes(C.granularity)
11986
11986
  ), [n, i]), E = j(null);
11987
- return oe(() => {
11987
+ return se(() => {
11988
11988
  h && E.current && requestAnimationFrame(() => {
11989
11989
  E.current?.focus();
11990
11990
  });
@@ -12248,7 +12248,7 @@ const QSe = {
12248
12248
  const { scrollTop: d, scrollHeight: f, clientHeight: u } = c;
12249
12249
  o(d <= 0), a(d + u >= f - 1);
12250
12250
  }, []);
12251
- return oe(() => {
12251
+ return se(() => {
12252
12252
  const c = i.current;
12253
12253
  if (!c) return;
12254
12254
  c.addEventListener("scroll", l, { passive: !0 }), l();
@@ -12488,7 +12488,7 @@ const XK = (e) => X(
12488
12488
  { duration: 0.3, ease: "easeInOut" }
12489
12489
  );
12490
12490
  }, [f.current]);
12491
- oe(() => {
12491
+ se(() => {
12492
12492
  d(r !== void 0 ? r : document.getElementById(o) ?? document.getElementById("content") ?? document.body);
12493
12493
  }, [r, o]);
12494
12494
  const p = P9();
@@ -12584,7 +12584,7 @@ const JK = () => TA("(max-width: 560px)", {
12584
12584
  const [f, u] = ee(null), h = ne((C) => {
12585
12585
  u(C);
12586
12586
  }, []), [p, g] = ee(null), y = j(d);
12587
- y.current = d, oe(() => {
12587
+ y.current = d, se(() => {
12588
12588
  if (!p || !y.current) return;
12589
12589
  const C = () => y.current?.(p.getBoundingClientRect().width);
12590
12590
  C();
@@ -12599,7 +12599,7 @@ const JK = () => TA("(max-width: 560px)", {
12599
12599
  },
12600
12600
  [t]
12601
12601
  ), x = j(void 0);
12602
- oe(() => {
12602
+ se(() => {
12603
12603
  x.current === !0 && !e && n(), x.current = e;
12604
12604
  }, [e, n]);
12605
12605
  const b = Q(() => i === "left" || i === "right", [i]), k = Q(() => b ? "sm" : (a && i !== "center" && console.warn(
@@ -12793,7 +12793,7 @@ const JK = () => TA("(max-width: 560px)", {
12793
12793
  [l, D]
12794
12794
  ), L = ne(
12795
12795
  (Z, B) => (V) => {
12796
- const ie = V.target.value, J = Z === _[0], se = c && J && ie.trimStart().startsWith("-");
12796
+ const ie = V.target.value, J = Z === _[0], oe = c && J && ie.trimStart().startsWith("-");
12797
12797
  if (ie === "") {
12798
12798
  const ge = J ? !1 : E;
12799
12799
  C(ge), P({ ...A, [Z]: 0 }, ge);
@@ -12801,12 +12801,12 @@ const JK = () => TA("(max-width: 560px)", {
12801
12801
  }
12802
12802
  const q = ie.replace(/\D/g, "");
12803
12803
  if (q === "") {
12804
- se && (C(!0), P({ ...A, [Z]: 0 }, !0));
12804
+ oe && (C(!0), P({ ...A, [Z]: 0 }, !0));
12805
12805
  return;
12806
12806
  }
12807
12807
  const G = parseInt(q, 10);
12808
12808
  if (isNaN(G)) return;
12809
- const le = D$(G, B), de = c && J ? se : E;
12809
+ const le = D$(G, B), de = c && J ? oe : E;
12810
12810
  C(de), P({ ...A, [Z]: le }, de);
12811
12811
  },
12812
12812
  [A, P, c, E, _]
@@ -12831,7 +12831,7 @@ const JK = () => TA("(max-width: 560px)", {
12831
12831
  },
12832
12832
  []
12833
12833
  ), K = (o && o.trim().length > 0 ? o : void 0) || r || void 0;
12834
- oe(() => {
12834
+ se(() => {
12835
12835
  process.env.NODE_ENV !== "production" && !K && !k.current && (k.current = !0, console.warn(
12836
12836
  "F0DurationInput: provide a non-empty label or ariaLabel for accessibility."
12837
12837
  ));
@@ -12880,7 +12880,7 @@ const JK = () => TA("(max-width: 560px)", {
12880
12880
  "data-status": Y,
12881
12881
  "data-disabled": p ? "" : void 0,
12882
12882
  children: _.map((Z, B) => {
12883
- const V = u?.[Z]?.max, ie = A[Z], J = u?.[Z]?.suffix ?? tG[Z], se = ie > 0 ? String(ie) : "", q = E && B === 0, G = q ? `-${se}` : se, le = u?.[Z]?.maxVisibleDigits, de = (typeof le == "number" && Number.isFinite(le) ? Math.max(1, Math.floor(le)) : iG) + (q ? 1 : 0);
12883
+ const V = u?.[Z]?.max, ie = A[Z], J = u?.[Z]?.suffix ?? tG[Z], oe = ie > 0 ? String(ie) : "", q = E && B === 0, G = q ? `-${oe}` : oe, le = u?.[Z]?.maxVisibleDigits, de = (typeof le == "number" && Number.isFinite(le) ? Math.max(1, Math.floor(le)) : iG) + (q ? 1 : 0);
12884
12884
  return /* @__PURE__ */ R(ql, { children: [
12885
12885
  B > 0 && /* @__PURE__ */ m(
12886
12886
  Ze,
@@ -13743,16 +13743,16 @@ function SG(e = {}) {
13743
13743
  };
13744
13744
  if (ce) {
13745
13745
  let Ce, He;
13746
- const Le = me(), et = W.type === um.BLUR || W.type === um.FOCUS_OUT, kt = !wG(ce._f) && !t.resolver && !Me(n.errors, ae) && !ce._f.deps || xG(et, Me(n.touchedFields, ae), n.isSubmitted, h, u), ft = w4(ae, a, et);
13746
+ const Le = me(), et = W.type === um.BLUR || W.type === um.FOCUS_OUT, kt = !wG(ce._f) && !t.resolver && !Me(n.errors, ae) && !ce._f.deps || xG(et, Me(n.touchedFields, ae), n.isSubmitted, h, u), ut = w4(ae, a, et);
13747
13747
  Mt(o, ae, Le), et ? (ce._f.onBlur && ce._f.onBlur(W), l && l(0)) : ce._f.onChange && ce._f.onChange(W);
13748
- const ut = _(ae, Le, et, !1), Rt = !fi(ut) || ft;
13748
+ const ht = _(ae, Le, et, !1), Rt = !fi(ht) || ut;
13749
13749
  if (!et && f.values.next({
13750
13750
  name: ae,
13751
13751
  type: W.type,
13752
13752
  values: { ...o }
13753
13753
  }), kt)
13754
- return d.isValid && (t.mode === "onBlur" && et ? y() : et || y()), Rt && f.state.next({ name: ae, ...ft ? {} : ut });
13755
- if (!et && ft && f.state.next({ ...n }), t.resolver) {
13754
+ return d.isValid && (t.mode === "onBlur" && et ? y() : et || y()), Rt && f.state.next({ name: ae, ...ut ? {} : ht });
13755
+ if (!et && ut && f.state.next({ ...n }), t.resolver) {
13756
13756
  const { errors: vt } = await E([ae]);
13757
13757
  if (ye(Le), ue) {
13758
13758
  const pe = N4(n.errors, i, ae), fe = N4(vt, i, pe.name || ae);
@@ -13760,7 +13760,7 @@ function SG(e = {}) {
13760
13760
  }
13761
13761
  } else
13762
13762
  v([ae], !0), Ce = (await C4(ce, a.disabled, o, p, t.shouldUseNativeValidation))[ae], v([ae]), ye(Le), ue && (Ce ? He = !1 : d.isValid && (He = await T(i, !0)));
13763
- ue && (ce._f.deps && U(ce._f.deps), S(ae, He, Ce, ut));
13763
+ ue && (ce._f.deps && U(ce._f.deps), S(ae, He, Ce, ht));
13764
13764
  }
13765
13765
  }, z = (W, re) => {
13766
13766
  if (Me(n.errors, re) && W.focus)
@@ -13877,7 +13877,7 @@ function SG(e = {}) {
13877
13877
  ce.disabled = ue._f.disabled || W;
13878
13878
  }));
13879
13879
  }, 0, !1));
13880
- }, se = (W, re) => async (ae) => {
13880
+ }, oe = (W, re) => async (ae) => {
13881
13881
  let ue;
13882
13882
  ae && (ae.preventDefault && ae.preventDefault(), ae.persist && ae.persist());
13883
13883
  let ce = di(o);
@@ -13969,7 +13969,7 @@ function SG(e = {}) {
13969
13969
  register: V,
13970
13970
  unregister: Z,
13971
13971
  getFieldState: F,
13972
- handleSubmit: se,
13972
+ handleSubmit: oe,
13973
13973
  setError: Y,
13974
13974
  _executeSchema: E,
13975
13975
  _getWatch: I,
@@ -14034,7 +14034,7 @@ function SG(e = {}) {
14034
14034
  },
14035
14035
  trigger: U,
14036
14036
  register: V,
14037
- handleSubmit: se,
14037
+ handleSubmit: oe,
14038
14038
  watch: H,
14039
14039
  setValue: P,
14040
14040
  getValues: $,
@@ -15573,7 +15573,7 @@ function gO({
15573
15573
  }
15574
15574
  function yO(e) {
15575
15575
  const t = kk(), { ref: n, payload: i, disabled: r, handleRef: o } = e, s = i.data, a = i.id + "|" + (s?.currentParentId ?? "null");
15576
- oe(() => {
15576
+ se(() => {
15577
15577
  if (n.current && !(!t || r))
15578
15578
  return t.driver.registerDraggable(n.current, {
15579
15579
  payload: i,
@@ -15584,14 +15584,14 @@ function yO(e) {
15584
15584
  }
15585
15585
  function yY(e) {
15586
15586
  const t = kk(), n = e?.ref, i = e?.id, r = e?.accepts;
15587
- oe(() => {
15587
+ se(() => {
15588
15588
  if (n?.current && !(!t || !i || !r))
15589
15589
  return t.driver.registerDroppable(n.current, { id: i, accepts: r });
15590
15590
  }, [t, n, i, r]);
15591
15591
  }
15592
15592
  function _k(e) {
15593
15593
  const t = kk();
15594
- oe(
15594
+ se(
15595
15595
  () => t ? t.driver.subscribe(e) : void 0,
15596
15596
  [t, e]
15597
15597
  );
@@ -15868,7 +15868,7 @@ function Ud({
15868
15868
  ref: w,
15869
15869
  payload: E,
15870
15870
  disabled: !s
15871
- }), oe(() => {
15871
+ }), se(() => {
15872
15872
  if (!(!w.current || !s))
15873
15873
  return nc({
15874
15874
  element: w.current,
@@ -16365,7 +16365,7 @@ function q4({
16365
16365
  visible: o
16366
16366
  }) {
16367
16367
  const s = j(null);
16368
- return oe(() => {
16368
+ return se(() => {
16369
16369
  if (s.current)
16370
16370
  return nc({
16371
16371
  element: s.current,
@@ -16416,7 +16416,7 @@ function EY({
16416
16416
  }, y = Q(() => U4(t, h), [t, h]), [v, w] = ee(
16417
16417
  _Y(t, i)
16418
16418
  ), [x, b] = ee(t);
16419
- oe(() => {
16419
+ se(() => {
16420
16420
  b(t);
16421
16421
  }, [t]);
16422
16422
  const k = j(null), _ = ne(
@@ -16500,10 +16500,10 @@ function EY({
16500
16500
  y
16501
16501
  ]
16502
16502
  );
16503
- oe(() => () => {
16503
+ se(() => () => {
16504
16504
  K.current && clearTimeout(K.current);
16505
16505
  }, []);
16506
- const se = ne(() => {
16506
+ const oe = ne(() => {
16507
16507
  if (U.current)
16508
16508
  return;
16509
16509
  K.current && clearTimeout(K.current);
@@ -16654,7 +16654,7 @@ function EY({
16654
16654
  targetItemId: le.id,
16655
16655
  position: "before",
16656
16656
  onDragOver: J,
16657
- onDragLeave: se,
16657
+ onDragLeave: oe,
16658
16658
  onDrop: q,
16659
16659
  visible: ge
16660
16660
  }
@@ -16677,7 +16677,7 @@ function EY({
16677
16677
  o ? E : void 0,
16678
16678
  null,
16679
16679
  J,
16680
- se,
16680
+ oe,
16681
16681
  q,
16682
16682
  P
16683
16683
  )
@@ -16688,7 +16688,7 @@ function EY({
16688
16688
  targetItemId: de.id,
16689
16689
  position: "after",
16690
16690
  onDragOver: J,
16691
- onDragLeave: se,
16691
+ onDragLeave: oe,
16692
16692
  onDrop: q,
16693
16693
  visible: ge
16694
16694
  }
@@ -16719,7 +16719,7 @@ function Sk(e, t) {
16719
16719
  ), [s, a] = ee(n), l = j(e);
16720
16720
  l.current = e;
16721
16721
  const c = j(t);
16722
- return c.current = t, oe(() => {
16722
+ return c.current = t, se(() => {
16723
16723
  if (typeof l.current != "function") return;
16724
16724
  const d = new AbortController();
16725
16725
  a(!0);
@@ -19371,13 +19371,14 @@ function On({
19371
19371
  loading: c = !1,
19372
19372
  nestedRowProps: d,
19373
19373
  fromVisualization: f,
19374
- referenceRowType: u = "none"
19374
+ referenceRowType: u = "none",
19375
+ highlighted: h = !1
19375
19376
  }) {
19376
- const { isScrolled: h, isScrolledRight: p } = GO(), { actions: g } = ze(), y = s?.left !== void 0, v = s?.right !== void 0, w = y || v, x = s?.left, b = s?.right, k = gm(i), _ = r !== void 0 ? gm(r) : k, S = j(null), E = d?.depth ?? 0, C = d?.nestedVariant === "detailed", T = JO(
19377
+ const { isScrolled: p, isScrolledRight: g } = GO(), { actions: y } = ze(), v = s?.left !== void 0, w = s?.right !== void 0, x = v || w, b = s?.left, k = s?.right, _ = gm(i), S = r !== void 0 ? gm(r) : _, E = j(null), C = d?.depth ?? 0, T = d?.nestedVariant === "detailed", A = JO(
19377
19378
  o,
19378
19379
  !!d?.tableWithChildren
19379
19380
  ) && {
19380
- marginLeft: `${(E + (C ? 0 : 1)) * Cy}px`
19381
+ marginLeft: `${(C + (T ? 0 : 1)) * Cy}px`
19381
19382
  };
19382
19383
  return /* @__PURE__ */ R(
19383
19384
  KO,
@@ -19386,27 +19387,33 @@ function On({
19386
19387
  className: X(
19387
19388
  "h-full",
19388
19389
  o && "peer font-medium",
19389
- w && h && oS[u],
19390
- w && "sticky z-10",
19391
- v && oS[u],
19390
+ x && p && oS[u],
19391
+ x && "sticky z-10",
19392
+ w && oS[u],
19393
+ // The row hover keeps reading through the highlighted cell, so a hovered
19394
+ // row stays one uniform surface.
19395
+ h && "bg-f1-background-secondary group-hover:bg-f1-background-hover",
19396
+ // Sticky cells paint their opaque background on the `before` layer;
19397
+ // the highlighted tint has to land there too or it stays hidden under it.
19398
+ h && x && "before:bg-f1-background-secondary group-hover:before:bg-f1-background-hover",
19392
19399
  t && "cursor-pointer",
19393
19400
  l
19394
19401
  ),
19395
19402
  style: {
19396
- width: k,
19397
- maxWidth: k,
19398
- minWidth: _,
19399
- left: x,
19400
- right: b
19403
+ width: _,
19404
+ maxWidth: _,
19405
+ minWidth: S,
19406
+ left: b,
19407
+ right: k
19401
19408
  },
19402
19409
  children: [
19403
- /* @__PURE__ */ m(jt, { children: (y && h || v && p) && /* @__PURE__ */ m(
19410
+ /* @__PURE__ */ m(jt, { children: (v && p || w && g) && /* @__PURE__ */ m(
19404
19411
  Ge.div,
19405
19412
  {
19406
19413
  className: X(
19407
19414
  "absolute inset-y-0 h-full w-4 from-f1-foreground-secondary to-transparent",
19408
- y && "-right-4 bg-gradient-to-r",
19409
- v && "-left-4 bg-gradient-to-l"
19415
+ v && "-right-4 bg-gradient-to-r",
19416
+ w && "-left-4 bg-gradient-to-l"
19410
19417
  ),
19411
19418
  initial: { opacity: 0 },
19412
19419
  animate: { opacity: 0.1 },
@@ -19425,7 +19432,7 @@ function On({
19425
19432
  c && /* @__PURE__ */ m(
19426
19433
  "div",
19427
19434
  {
19428
- style: { ...T },
19435
+ style: { ...A },
19429
19436
  className: X(
19430
19437
  "flex h-full items-center",
19431
19438
  f === "editableTable" ? "min-h-[32px]" : "min-h-[24px]"
@@ -19449,7 +19456,7 @@ function On({
19449
19456
  ) ? /* @__PURE__ */ m(
19450
19457
  TJ,
19451
19458
  {
19452
- linkRef: S,
19459
+ linkRef: E,
19453
19460
  firstCell: o,
19454
19461
  nestedRowProps: d,
19455
19462
  children: e
@@ -19462,10 +19469,10 @@ function On({
19462
19469
  "relative z-[1] h-full"
19463
19470
  ),
19464
19471
  style: {
19465
- ...T
19472
+ ...A
19466
19473
  },
19467
19474
  onClick: () => {
19468
- S.current?.click(), n?.();
19475
+ E.current?.click(), n?.();
19469
19476
  },
19470
19477
  children: e
19471
19478
  }
@@ -19475,27 +19482,27 @@ function On({
19475
19482
  t && /* @__PURE__ */ m(
19476
19483
  eB,
19477
19484
  {
19478
- ref: S,
19485
+ ref: E,
19479
19486
  href: t,
19480
19487
  className: "pointer-events-auto absolute inset-0 !z-0 block",
19481
19488
  tabIndex: o ? void 0 : -1,
19482
- children: /* @__PURE__ */ m("span", { className: "sr-only", children: g.view })
19489
+ children: /* @__PURE__ */ m("span", { className: "sr-only", children: y.view })
19483
19490
  }
19484
19491
  ),
19485
19492
  n && /* @__PURE__ */ m(
19486
19493
  "button",
19487
19494
  {
19488
19495
  type: "button",
19489
- onClick: (A) => {
19490
- A.stopPropagation(), n();
19496
+ onClick: (M) => {
19497
+ M.stopPropagation(), n();
19491
19498
  },
19492
19499
  "data-testid": "table-cell-action-button",
19493
19500
  className: "table-cell-action-button absolute inset-0 !z-0 block",
19494
19501
  tabIndex: o ? void 0 : -1,
19495
- onKeyDown: (A) => {
19496
- (A.key === "Enter" || A.key === " ") && (A.preventDefault(), n());
19502
+ onKeyDown: (M) => {
19503
+ (M.key === "Enter" || M.key === " ") && (M.preventDefault(), n());
19497
19504
  },
19498
- children: /* @__PURE__ */ m("span", { className: "sr-only", children: g.view })
19505
+ children: /* @__PURE__ */ m("span", { className: "sr-only", children: y.view })
19499
19506
  }
19500
19507
  )
19501
19508
  ] })
@@ -19562,19 +19569,20 @@ function Ai({
19562
19569
  infoIcon: a = tA,
19563
19570
  sticky: l,
19564
19571
  hidden: c = !1,
19565
- align: d = "left",
19566
- className: f,
19567
- colSpan: u
19572
+ highlighted: d = !1,
19573
+ align: f = "left",
19574
+ className: u,
19575
+ colSpan: h
19568
19576
  }) {
19569
- const { isScrolled: h, isScrolledRight: p } = GO(), g = l?.left !== void 0, y = l?.right !== void 0, v = g || y, w = l?.left ?? 0, x = l?.right ?? 0, b = r || s, k = r || o ? () => {
19577
+ const { isScrolled: p, isScrolledRight: g } = GO(), y = l?.left !== void 0, v = l?.right !== void 0, w = y || v, x = l?.left ?? 0, b = l?.right ?? 0, k = r || s, _ = r || o ? () => {
19570
19578
  r?.(), o?.();
19571
- } : void 0, _ = /* @__PURE__ */ m($e, { children: /* @__PURE__ */ R(
19579
+ } : void 0, S = /* @__PURE__ */ m($e, { children: /* @__PURE__ */ R(
19572
19580
  "div",
19573
19581
  {
19574
19582
  className: X(
19575
19583
  "flex items-center whitespace-nowrap",
19576
- b && "gap-1",
19577
- d === "right" && "flex-row-reverse"
19584
+ k && "gap-1",
19585
+ f === "right" && "flex-row-reverse"
19578
19586
  ),
19579
19587
  children: [
19580
19588
  typeof e == "string" ? /* @__PURE__ */ m(Po, { className: X(t !== "auto" && "overflow-hidden"), children: e }) : /* @__PURE__ */ m(
@@ -19584,12 +19592,12 @@ function Ai({
19584
19592
  children: e
19585
19593
  }
19586
19594
  ),
19587
- b && /* @__PURE__ */ R("div", { className: "flex items-center", children: [
19595
+ k && /* @__PURE__ */ R("div", { className: "flex items-center", children: [
19588
19596
  s && /* @__PURE__ */ m(
19589
19597
  "div",
19590
19598
  {
19591
19599
  className: "flex h-6 w-6 items-center justify-center text-f1-foreground-secondary",
19592
- onClick: (C) => C.stopPropagation(),
19600
+ onClick: (T) => T.stopPropagation(),
19593
19601
  children: typeof s == "string" ? /* @__PURE__ */ m(Bp, { label: s, children: /* @__PURE__ */ m(
19594
19602
  "div",
19595
19603
  {
@@ -19660,40 +19668,42 @@ function Ai({
19660
19668
  ] })
19661
19669
  ]
19662
19670
  }
19663
- ) }), S = gm(t), E = n !== void 0 ? gm(n) : S;
19671
+ ) }), E = gm(t), C = n !== void 0 ? gm(n) : E;
19664
19672
  return /* @__PURE__ */ R(
19665
19673
  qO,
19666
19674
  {
19667
19675
  className: X(
19668
19676
  "group h-11",
19669
19677
  "bg-f1-background",
19670
- v && (h || p) && "relative bg-f1-background z-10 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:w-full before:bg-f1-border-secondary before:content-['']",
19671
- v && "sticky",
19678
+ w && (p || g) && "relative bg-f1-background z-10 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:w-full before:bg-f1-border-secondary before:content-['']",
19679
+ w && "sticky",
19680
+ d && "bg-f1-background-secondary",
19672
19681
  c && "after:hidden",
19673
- k && "cursor-pointer",
19674
- f
19682
+ _ && "cursor-pointer",
19683
+ u
19675
19684
  ),
19676
- onClick: k,
19685
+ "data-highlighted": d ? "true" : void 0,
19686
+ onClick: _,
19677
19687
  tabIndex: l ? 0 : void 0,
19678
- colSpan: u,
19688
+ colSpan: h,
19679
19689
  style: {
19680
- width: S,
19681
- maxWidth: S,
19682
- minWidth: E,
19683
- left: w,
19684
- right: x
19690
+ width: E,
19691
+ maxWidth: E,
19692
+ minWidth: C,
19693
+ left: x,
19694
+ right: b
19685
19695
  },
19686
19696
  role: c ? "presentation" : void 0,
19687
19697
  "aria-sort": r ? i === "asc" ? "ascending" : i === "desc" ? "descending" : "none" : void 0,
19688
19698
  children: [
19689
19699
  /* @__PURE__ */ m("div", { className: "absolute inset-x-0 top-0 z-[1] h-px w-full bg-f1-border-secondary" }),
19690
- /* @__PURE__ */ m(jt, { children: (g && h || y && p) && /* @__PURE__ */ m(
19700
+ /* @__PURE__ */ m(jt, { children: (y && p || v && g) && /* @__PURE__ */ m(
19691
19701
  Ge.div,
19692
19702
  {
19693
19703
  className: X(
19694
19704
  "absolute inset-y-0 h-full w-4 from-f1-foreground-secondary to-transparent",
19695
- g && "-right-4 bg-gradient-to-r",
19696
- y && "-left-4 bg-gradient-to-l"
19705
+ y && "-right-4 bg-gradient-to-r",
19706
+ v && "-left-4 bg-gradient-to-l"
19697
19707
  ),
19698
19708
  initial: { opacity: 0 },
19699
19709
  animate: { opacity: 0.1 },
@@ -19701,7 +19711,7 @@ function Ai({
19701
19711
  },
19702
19712
  "shadow-gradient"
19703
19713
  ) }),
19704
- !c && _
19714
+ !c && S
19705
19715
  ]
19706
19716
  }
19707
19717
  );
@@ -19733,7 +19743,7 @@ const ZO = 40, hi = Je(
19733
19743
  hi.displayName = "TableRow";
19734
19744
  function RJ({ children: e, loading: t = !1 }) {
19735
19745
  const [n, i] = ee(!1), [r, o] = ee(!1), s = j(null);
19736
- return oe(() => {
19746
+ return se(() => {
19737
19747
  const a = s.current;
19738
19748
  if (!a) return;
19739
19749
  const l = () => {
@@ -19815,7 +19825,7 @@ function $J({ message: e, children: t }) {
19815
19825
  const [n, i] = ee(!1), r = ne(() => {
19816
19826
  e && i(!0);
19817
19827
  }, [e]), o = ne(() => i(!1), []);
19818
- return oe(() => {
19828
+ return se(() => {
19819
19829
  e || i(!1);
19820
19830
  }, [e]), /* @__PURE__ */ m("div", { className: "relative h-full w-full", children: /* @__PURE__ */ m(_u, { delayDuration: 100, disableHoverableContent: !0, children: /* @__PURE__ */ R(Su, { open: n && !!e, onOpenChange: i, children: [
19821
19831
  /* @__PURE__ */ m(Cu, { asChild: !0, className: "pointer-events-auto h-full w-full", children: /* @__PURE__ */ m(
@@ -20409,7 +20419,7 @@ function rD({
20409
20419
  const [i, r] = ee(e), [o, s] = ee({}), [a, l] = ee({}), { t: c } = ze(), d = j(i);
20410
20420
  d.current = i;
20411
20421
  const f = j(null);
20412
- oe(() => {
20422
+ se(() => {
20413
20423
  const b = { ...e, ...f.current?.updates };
20414
20424
  d.current = b, r(b);
20415
20425
  }, [e]);
@@ -20445,7 +20455,7 @@ function rD({
20445
20455
  const b = f.current;
20446
20456
  b && (clearTimeout(b.timer), f.current = null, p(b.previousValues));
20447
20457
  }, y = j(g);
20448
- y.current = g, oe(() => () => y.current(), []);
20458
+ y.current = g, se(() => () => y.current(), []);
20449
20459
  const v = (b, k) => {
20450
20460
  const _ = Object.keys(b);
20451
20461
  if (_.length === 0) return;
@@ -21005,7 +21015,7 @@ const fZ = $i(
21005
21015
  container: w
21006
21016
  }) => {
21007
21017
  const [x, b] = ee(n);
21008
- oe(() => {
21018
+ se(() => {
21009
21019
  b(n);
21010
21020
  }, [n]);
21011
21021
  const k = Q(() => /* @__PURE__ */ R($e, { children: [
@@ -21457,7 +21467,7 @@ const xZ = Pt(wZ), kb = ({
21457
21467
  delay: t
21458
21468
  }) => {
21459
21469
  const [n, i] = ee(!1);
21460
- return oe(() => {
21470
+ return se(() => {
21461
21471
  let r;
21462
21472
  return e ? r = setTimeout(() => {
21463
21473
  i(e);
@@ -21511,7 +21521,7 @@ const mD = Je(function({
21511
21521
  status: d
21512
21522
  }, f) {
21513
21523
  const { t: u, ...h } = ze(), p = a && l && c !== void 0, g = d === "loading" || d === "success", y = j(r ?? 0);
21514
- oe(() => {
21524
+ se(() => {
21515
21525
  r && (y.current = r);
21516
21526
  }, [r]);
21517
21527
  const v = g && !r ? y.current : r, w = v === 1 ? h.status.selected.singular : h.status.selected.plural, x = d === "loading" ? "idle" : d, b = Q(() => s || !n ? [] : d !== "loading" ? n : OZ(n), [n, d, s]), k = Q(() => s || !i ? [] : d !== "loading" ? i : i.map((S) => ({ ...S, disabled: !0 })), [i, d, s]), _ = Q(() => !s && !v ? null : /* @__PURE__ */ R("div", { className: "flex w-full flex-col gap-2 sm:flex-row sm:items-center", children: [
@@ -21715,7 +21725,7 @@ const DZ = ({
21715
21725
  if (f.maxDate)
21716
21726
  return c?.toRange(f.maxDate)?.to;
21717
21727
  }, [f.maxDate, c]), [b, k] = ee(null);
21718
- oe(() => {
21728
+ se(() => {
21719
21729
  k(c?.toRange(/* @__PURE__ */ new Date()) ?? null);
21720
21730
  const E = () => {
21721
21731
  const T = c?.toRange(/* @__PURE__ */ new Date()) ?? null;
@@ -21831,7 +21841,7 @@ function MZ({
21831
21841
  ), [p, g] = ee(
21832
21842
  h ?? u
21833
21843
  );
21834
- oe(() => {
21844
+ se(() => {
21835
21845
  Rl(u, p) || g(u || h);
21836
21846
  }, [u, h]);
21837
21847
  const [y, v] = ee(), [w, x] = ee(!1), b = bu(), k = f.weekStartsOn ?? b.date?.weekStartsOn ?? SA.Monday, _ = Q(() => {
@@ -22111,9 +22121,9 @@ const BZ = 56, mS = ({ loading: e }) => e ? /* @__PURE__ */ m(Ze, { icon: YA, cl
22111
22121
  const M = A.currentTarget;
22112
22122
  M.scrollHeight - M.scrollTop - M.clientHeight <= BZ && l();
22113
22123
  };
22114
- oe(() => {
22124
+ se(() => {
22115
22125
  p((i ?? []).length > 0 ? 0 : -1);
22116
- }, [i]), oe(() => {
22126
+ }, [i]), se(() => {
22117
22127
  w.current?.scrollIntoView({ block: "nearest" });
22118
22128
  }, [h]);
22119
22129
  const S = () => {
@@ -22355,7 +22365,7 @@ function jZ(e, t) {
22355
22365
  id: k.getId(S),
22356
22366
  ...k.render(S)
22357
22367
  }));
22358
- return oe(() => {
22368
+ return se(() => {
22359
22369
  const k = y.current, _ = ++p.current;
22360
22370
  if (h.current = 0, g.current = !1, a(!1), !k || v.length === 0) {
22361
22371
  u.current = [], i([]), o(!1), c(!1);
@@ -22437,7 +22447,7 @@ const yS = ({
22437
22447
  // eslint-disable-next-line react-hooks/exhaustive-deps -- This is intentional
22438
22448
  [JSON.stringify(t)]
22439
22449
  ), l = Q(() => !i && !!e, [i, e]);
22440
- oe(() => {
22450
+ se(() => {
22441
22451
  if (!l) {
22442
22452
  o(!0);
22443
22453
  return;
@@ -22482,7 +22492,7 @@ const yS = ({
22482
22492
  },
22483
22493
  200
22484
22494
  );
22485
- return oe(() => {
22495
+ return se(() => {
22486
22496
  if (!(!l || !r))
22487
22497
  return d(n), () => {
22488
22498
  d.cancel();
@@ -22533,7 +22543,7 @@ function JZ(e, t, {
22533
22543
  if (!c) return;
22534
22544
  const d = c.clientHeight - wD, f = bS(Math.floor(d / n));
22535
22545
  a.current = f, l.current = !1, s(f);
22536
- }, [t, n, r, e]), oe(() => {
22546
+ }, [t, n, r, e]), se(() => {
22537
22547
  if (!t || !i || l.current) return;
22538
22548
  const c = setTimeout(() => {
22539
22549
  const d = e.current, f = a.current;
@@ -22986,7 +22996,7 @@ const tQ = Pt(
22986
22996
  }
22987
22997
  }
22988
22998
  );
22989
- oe(() => {
22999
+ se(() => {
22990
23000
  u({
22991
23001
  totalItems: v?.total || y.records.length,
22992
23002
  filters: d.currentFilters,
@@ -23081,7 +23091,7 @@ const tQ = Pt(
23081
23091
  ] });
23082
23092
  }, Bk = (e, t, n, i) => {
23083
23093
  const r = j(null);
23084
- return oe(() => {
23094
+ return se(() => {
23085
23095
  if (!Kp(e) || !e.hasMore)
23086
23096
  return;
23087
23097
  const o = r.current;
@@ -23297,9 +23307,9 @@ const xS = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.selecte
23297
23307
  }, [s, a] = ee(o()), [l, c] = ee(
23298
23308
  (i && n?.order !== void 0 ? n.order : void 0) ?? _S(e)
23299
23309
  );
23300
- oe(() => {
23310
+ se(() => {
23301
23311
  r && a(o());
23302
- }, [JSON.stringify(n?.hidden), r]), oe(() => {
23312
+ }, [JSON.stringify(n?.hidden), r]), se(() => {
23303
23313
  i && c(
23304
23314
  n?.order !== void 0 ? n.order : _S(e)
23305
23315
  );
@@ -23354,10 +23364,11 @@ const xS = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.selecte
23354
23364
  if (!e) return null;
23355
23365
  const t = {};
23356
23366
  return Object.entries(e).forEach(([n, i]) => {
23357
- t[n] = typeof i == "string" ? { label: i, defaultCollapsed: !1 } : {
23367
+ t[n] = typeof i == "string" ? { label: i, defaultCollapsed: !1, highlighted: !1 } : {
23358
23368
  label: i.label,
23359
23369
  collapsedColumns: i.collapsedColumns,
23360
- defaultCollapsed: i.defaultCollapsed ?? !1
23370
+ defaultCollapsed: i.defaultCollapsed ?? !1,
23371
+ highlighted: i.highlighted ?? !1
23361
23372
  };
23362
23373
  }), t;
23363
23374
  }, lQ = (e) => {
@@ -23431,13 +23442,17 @@ const xS = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.selecte
23431
23442
  ), f = Q(() => s.size === 0 ? r : new Set(
23432
23443
  [...r].filter((v) => !s.has(v))
23433
23444
  ), [r, s]), u = Q(() => {
23434
- if (!i || f.size === 0) return e;
23435
- const v = CS(
23436
- e,
23437
- i,
23438
- f
23439
- );
23440
- return v.size === 0 ? e : e.filter((w, x) => !v.has(x));
23445
+ const v = !i || f.size === 0 ? e : (() => {
23446
+ const w = CS(
23447
+ e,
23448
+ i,
23449
+ f
23450
+ );
23451
+ return w.size === 0 ? e : e.filter((x, b) => !w.has(b));
23452
+ })();
23453
+ return i ? v.map(
23454
+ (w) => w.headerGroupId && i[w.headerGroupId]?.highlighted ? { ...w, highlighted: !0 } : w
23455
+ ) : v;
23441
23456
  }, [e, i, f]), h = Q(
23442
23457
  () => Object.entries(i ?? {}).filter(([, v]) => v.collapsedColumns !== void 0).map(([v]) => v).sort(),
23443
23458
  [i]
@@ -23613,7 +23628,7 @@ const xS = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.selecte
23613
23628
  ), [c, d] = ee(r?.[e]?.paginationInfo), [f, u] = ee(!1), [h, p] = ee(
23614
23629
  NS(r?.[e])
23615
23630
  ), g = j(n.currentFilters), y = j(n.currentSortings), v = j(n.currentNavigationFilters);
23616
- oe(() => {
23631
+ se(() => {
23617
23632
  const k = g.current !== n.currentFilters, _ = y.current !== n.currentSortings, S = v.current !== n.currentNavigationFilters;
23618
23633
  (k || _ || S) && (l([]), d(void 0), p("basic"), s(), i(), g.current = n.currentFilters, y.current = n.currentSortings, v.current = n.currentNavigationFilters);
23619
23634
  }, [
@@ -23663,7 +23678,7 @@ const xS = (e) => e ? e.indeterminate || e.selectedCount !== void 0 && e.selecte
23663
23678
  }
23664
23679
  }), [];
23665
23680
  }, [a, t, n, c, x]);
23666
- return oe(() => () => {
23681
+ return se(() => () => {
23667
23682
  w.current?.unsubscribe();
23668
23683
  }, []), {
23669
23684
  children: a,
@@ -24074,12 +24089,12 @@ const bQ = (e, t) => /* @__PURE__ */ m(
24074
24089
  unregisterSelectable: S
24075
24090
  }, E) => {
24076
24091
  const C = e.itemUrl ? e.itemUrl(t) : void 0, T = e.itemOnClick ? e.itemOnClick(t) : void 0, A = e.selectable ? e.selectable(t) : void 0, M = !!e.itemsWithChildren?.(t), I = ze(), [N, O] = ee(g);
24077
- oe(() => {
24092
+ se(() => {
24078
24093
  if (!N) return;
24079
- const se = setTimeout(() => O(!1), OQ);
24080
- return () => clearTimeout(se);
24094
+ const oe = setTimeout(() => O(!1), OQ);
24095
+ return () => clearTimeout(oe);
24081
24096
  }, [N]);
24082
- const D = (se, q) => Wu(se, q, "table", I, {
24097
+ const D = (oe, q) => Wu(oe, q, "table", I, {
24083
24098
  tableAlign: q.align ?? "left"
24084
24099
  }), P = `table-row-${c}-${l}`, { getStickyPosition: L } = PD(
24085
24100
  s,
@@ -24094,7 +24109,7 @@ const bQ = (e, t) => /* @__PURE__ */ m(
24094
24109
  handleDropDownOpenChange: Y,
24095
24110
  dropDownOpen: H
24096
24111
  } = MD({ source: e, item: t }), Z = u?.hasLoadedChildren === void 0 || u?.hasLoadedChildren, B = !(M && Z);
24097
- if (oe(() => {
24112
+ if (se(() => {
24098
24113
  if (!(A === void 0 || !B || !_))
24099
24114
  return _(A, t), () => S?.(A);
24100
24115
  }, [A, t, B, _, S]), M && Z)
@@ -24167,15 +24182,15 @@ const bQ = (e, t) => /* @__PURE__ */ m(
24167
24182
  ) })
24168
24183
  }
24169
24184
  ),
24170
- o.map((se, q) => {
24185
+ o.map((oe, q) => {
24171
24186
  const G = b?.find((ge) => ge.type === "group" && ge.columnIndices.includes(q)), le = !!b && (!G || G.columnIndices[G.columnIndices.length - 1] === q), de = /* @__PURE__ */ m(
24172
24187
  "div",
24173
24188
  {
24174
24189
  className: X(
24175
- se.align === "right" ? "justify-end" : "",
24190
+ oe.align === "right" ? "justify-end" : "",
24176
24191
  "flex"
24177
24192
  ),
24178
- children: D(t, se)
24193
+ children: D(t, oe)
24179
24194
  }
24180
24195
  );
24181
24196
  return /* @__PURE__ */ m(
@@ -24184,8 +24199,8 @@ const bQ = (e, t) => /* @__PURE__ */ m(
24184
24199
  firstCell: q === 0,
24185
24200
  href: C,
24186
24201
  onClick: T,
24187
- width: se.width,
24188
- minWidth: se.minWidth,
24202
+ width: oe.width,
24203
+ minWidth: oe.minWidth,
24189
24204
  sticky: L(q),
24190
24205
  loading: f,
24191
24206
  nestedRowProps: {
@@ -24196,17 +24211,18 @@ const bQ = (e, t) => /* @__PURE__ */ m(
24196
24211
  },
24197
24212
  fromVisualization: x,
24198
24213
  referenceRowType: ie,
24214
+ highlighted: !!oe.highlighted,
24199
24215
  className: X(
24200
24216
  J,
24201
24217
  le && Tl,
24202
- k?.get(pi(se))
24218
+ k?.get(pi(oe))
24203
24219
  ),
24204
24220
  children: v ? /* @__PURE__ */ m(
24205
24221
  v,
24206
24222
  {
24207
24223
  item: t,
24208
24224
  isLastColumn: !z && q === o.length - 1,
24209
- column: se,
24225
+ column: oe,
24210
24226
  cellIndex: q,
24211
24227
  children: de
24212
24228
  }
@@ -24279,7 +24295,7 @@ function IQ(e, t) {
24279
24295
  if (i.current && !o)
24280
24296
  for (const a of e)
24281
24297
  n.current.has(a) || s.add(a);
24282
- return oe(() => {
24298
+ return se(() => {
24283
24299
  o && (n.current = /* @__PURE__ */ new Set(), r.current = t), !i.current && e.length > 0 && (i.current = !0);
24284
24300
  const a = new Set(e);
24285
24301
  for (const l of n.current)
@@ -24339,16 +24355,20 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24339
24355
  // Closing holds at zero until the columns are dropped; opening holds
24340
24356
  // at zero before it starts, so the natural width never flashes.
24341
24357
  fill: S ? "forwards" : "backwards"
24342
- }), C = g.animate(
24343
- S ? [{ opacity: 1 }, { opacity: 0 }] : [{ opacity: 0 }, { opacity: 1 }],
24344
- S ? { duration: 80, easing: "ease-out", fill: "forwards" } : {
24345
- duration: 120,
24346
- delay: 110,
24347
- easing: "ease-out",
24348
- fill: "backwards"
24349
- }
24350
- );
24351
- s.push(E, C), p.push(E.finished.catch(() => {
24358
+ });
24359
+ Array.from(g.children).forEach((C) => {
24360
+ C instanceof HTMLElement && s.push(
24361
+ C.animate(
24362
+ S ? [{ opacity: 1 }, { opacity: 0 }] : [{ opacity: 0 }, { opacity: 1 }],
24363
+ S ? { duration: 80, easing: "ease-out", fill: "forwards" } : {
24364
+ duration: 120,
24365
+ delay: 110,
24366
+ easing: "ease-out",
24367
+ fill: "backwards"
24368
+ }
24369
+ )
24370
+ );
24371
+ }), s.push(E), p.push(E.finished.catch(() => {
24352
24372
  }));
24353
24373
  }), Promise.all(p).then(() => {
24354
24374
  l || n(c);
@@ -24685,7 +24705,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24685
24705
  z,
24686
24706
  U
24687
24707
  );
24688
- oe(() => {
24708
+ se(() => {
24689
24709
  r({
24690
24710
  totalItems: D?.total || O.records.length,
24691
24711
  filters: t.currentFilters,
@@ -24694,7 +24714,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24694
24714
  data: O.records
24695
24715
  });
24696
24716
  }, [D?.total, O.records]);
24697
- const J = Q(() => n, [n]), se = (ve, Ae) => "id" in ve && ve.id !== void 0 && ve.id !== null ? `id:${String(ve.id)}` : `index:${String(Ae)}`, q = O?.type === "flat" ? O.records.map((ve, Ae) => `row-${se(ve, Ae)}`) : [], G = D?.type === "pages" ? D.currentPage : D?.type === "infinite-scroll" ? D.cursor : void 0, le = IQ(q, G), de = LQ(), {
24717
+ const J = Q(() => n, [n]), oe = (ve, Ae) => "id" in ve && ve.id !== void 0 && ve.id !== null ? `id:${String(ve.id)}` : `index:${String(Ae)}`, q = O?.type === "flat" ? O.records.map((ve, Ae) => `row-${oe(ve, Ae)}`) : [], G = D?.type === "pages" ? D.currentPage : D?.type === "infinite-scroll" ? D.cursor : void 0, le = IQ(q, G), de = LQ(), {
24698
24718
  selectedItems: ge,
24699
24719
  allSelectedStatus: be,
24700
24720
  groupAllSelectedStatus: W,
@@ -24726,7 +24746,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24726
24746
  field: ve,
24727
24747
  order: "desc"
24728
24748
  } : null);
24729
- }, et = t.grouping?.collapsible, kt = t.grouping?.defaultOpenGroups, { openGroups: ft, setGroupOpen: ut } = ry(
24749
+ }, et = t.grouping?.collapsible, kt = t.grouping?.defaultOpenGroups, { openGroups: ut, setGroupOpen: ht } = ry(
24730
24750
  O?.type === "grouped" ? O.groups : [],
24731
24751
  kt
24732
24752
  ), Rt = E.length + (H ? 1 : 0) + (t.selectable ? 1 : 0), { getStickyPosition: vt, checkColumnWidth: pe } = PD(
@@ -24776,15 +24796,18 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24776
24796
  const Ue = ve.type === "group" && ve.collapsible, Ke = X(
24777
24797
  Tl,
24778
24798
  !Ue && "hover:after:bg-transparent"
24779
- ), ct = ve.columnIndices.every(
24780
- (ht) => E[ht].align === "right"
24799
+ ), dt = ve.columnIndices.every(
24800
+ (at) => E[at].align === "right"
24781
24801
  ) ? "right" : "left";
24782
24802
  return ve.type === "group" ? /* @__PURE__ */ m(
24783
24803
  Ai,
24784
24804
  {
24785
- align: ct,
24805
+ align: dt,
24786
24806
  colSpan: ve.colSpan,
24787
24807
  className: Ke,
24808
+ highlighted: ve.columnIndices.some(
24809
+ (at) => E[at].highlighted
24810
+ ),
24788
24811
  onClick: ve.collapsible ? () => T(ve.id) : void 0,
24789
24812
  children: ve.collapsible ? /* @__PURE__ */ R(
24790
24813
  "button",
@@ -24796,7 +24819,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24796
24819
  // The icon takes the side the label is not
24797
24820
  // aligned to, so the label keeps its column's
24798
24821
  // edge instead of being pushed off it.
24799
- ct === "right" && "flex-row-reverse",
24822
+ dt === "right" && "flex-row-reverse",
24800
24823
  on()
24801
24824
  ),
24802
24825
  children: [
@@ -24817,10 +24840,11 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24817
24840
  ) : /* @__PURE__ */ m(
24818
24841
  Ai,
24819
24842
  {
24820
- align: ct,
24843
+ align: dt,
24821
24844
  className: Ke,
24822
24845
  width: E[ve.columnIndices[0]].width,
24823
24846
  minWidth: E[ve.columnIndices[0]].minWidth,
24847
+ highlighted: !!E[ve.columnIndices[0]].highlighted,
24824
24848
  sticky: vt(ve.columnIndices[0]),
24825
24849
  children: /* @__PURE__ */ m("span", {})
24826
24850
  },
@@ -24872,9 +24896,9 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24872
24896
  }
24873
24897
  ),
24874
24898
  E.map(({ sorting: ve, label: Ae, ...Ue }, Ke) => {
24875
- const ct = C?.find(
24899
+ const dt = C?.find(
24876
24900
  (Wt) => Wt.type === "group" && Wt.columnIndices.includes(Ke)
24877
- ), ht = !!C && (!ct || ct.columnIndices[ct.columnIndices.length - 1] === Ke);
24901
+ ), at = !!C && (!dt || dt.columnIndices[dt.columnIndices.length - 1] === Ke);
24878
24902
  return /* @__PURE__ */ m(
24879
24903
  Ai,
24880
24904
  {
@@ -24890,7 +24914,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24890
24914
  hidden: !1,
24891
24915
  className: X(
24892
24916
  C && "[&>div:first-child]:hidden",
24893
- ht && Tl,
24917
+ at && Tl,
24894
24918
  y === "editableTable" && (Ke !== E.length - 1 || H) && "border-0 border-r-[1px] border-solid border-f1-border-secondary",
24895
24919
  A.get(
24896
24920
  pi({ id: Ue.id, label: Ae })
@@ -24993,8 +25017,8 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
24993
25017
  showOpenChange: et,
24994
25018
  label: ve.label,
24995
25019
  itemCount: Ue,
24996
- open: ft[ve.key],
24997
- onOpenChange: (Ke) => ut(ve.key, Ke)
25020
+ open: ut[ve.key],
25021
+ onOpenChange: (Ke) => ht(ve.key, Ke)
24998
25022
  }
24999
25023
  )
25000
25024
  }
@@ -25007,19 +25031,19 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25007
25031
  }
25008
25032
  )
25009
25033
  ] }, `group-header-${ve.key}`),
25010
- /* @__PURE__ */ m(jt, { children: k && (!et || ft[ve.key]) && ve.records.map((Ke, ct) => {
25011
- const ht = `row-${Ae}-${se(Ke, ct)}`, Wt = /* @__PURE__ */ m(
25034
+ /* @__PURE__ */ m(jt, { children: k && (!et || ut[ve.key]) && ve.records.map((Ke, dt) => {
25035
+ const at = `row-${Ae}-${oe(Ke, dt)}`, Wt = /* @__PURE__ */ m(
25012
25036
  k,
25013
25037
  {
25014
25038
  variants: H0(),
25015
25039
  initial: et ? "hidden" : "visible",
25016
25040
  animate: "visible",
25017
25041
  exit: "hidden",
25018
- custom: ct,
25042
+ custom: dt,
25019
25043
  layout: !0,
25020
25044
  source: V,
25021
25045
  item: Ke,
25022
- index: ct,
25046
+ index: dt,
25023
25047
  groupIndex: Ae,
25024
25048
  onItemCheckedChange: re,
25025
25049
  onCheckedChange: (ln) => re(Ke, ln),
@@ -25036,16 +25060,16 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25036
25060
  registerSelectable: de.register,
25037
25061
  unregisterSelectable: de.unregister
25038
25062
  },
25039
- ht
25063
+ at
25040
25064
  );
25041
25065
  return u ? /* @__PURE__ */ m(
25042
25066
  u,
25043
25067
  {
25044
25068
  item: Ke,
25045
- index: ct,
25069
+ index: dt,
25046
25070
  children: Wt
25047
25071
  },
25048
- ht
25072
+ at
25049
25073
  ) : Wt;
25050
25074
  }) }, `group-animate-${Ae}`)
25051
25075
  ] }, `group-${ve.key}`);
@@ -25058,7 +25082,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25058
25082
  // queries and shifting row/checkbox positions. Enter and flash
25059
25083
  // don't need presence tracking; `initial`/`animate` cover them.
25060
25084
  O.records.map((ve, Ae) => {
25061
- const Ue = `row-${se(ve, Ae)}`, Ke = le.has(Ue), ct = /* @__PURE__ */ m(
25085
+ const Ue = `row-${oe(ve, Ae)}`, Ke = le.has(Ue), dt = /* @__PURE__ */ m(
25062
25086
  k,
25063
25087
  {
25064
25088
  variants: H0(),
@@ -25072,7 +25096,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25072
25096
  item: ve,
25073
25097
  index: Ae,
25074
25098
  onItemCheckedChange: re,
25075
- onCheckedChange: (ht) => re(ve, ht),
25099
+ onCheckedChange: (at) => re(ve, at),
25076
25100
  selectedItems: ge,
25077
25101
  columns: E,
25078
25102
  frozenColumnsLeft: J,
@@ -25089,7 +25113,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25089
25113
  },
25090
25114
  Ue
25091
25115
  );
25092
- return u ? /* @__PURE__ */ m(u, { item: ve, index: Ae, children: ct }, Ue) : ct;
25116
+ return u ? /* @__PURE__ */ m(u, { item: ve, index: Ae, children: dt }, Ue) : dt;
25093
25117
  }),
25094
25118
  D?.type === "infinite-scroll" && z && Array.from({ length: 5 }).map((ve, Ae) => /* @__PURE__ */ m(hi, { children: Array.from({ length: Rt }).map(
25095
25119
  (Ue, Ke) => /* @__PURE__ */ m(
@@ -25135,6 +25159,7 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25135
25159
  firstCell: Ue === 0,
25136
25160
  width: Ae.width,
25137
25161
  sticky: vt(Ue),
25162
+ highlighted: !!Ae.highlighted,
25138
25163
  className: X(
25139
25164
  Z && (Ue !== E.length - 1 || H) && "border-0 border-r-[1px] border-solid border-f1-border-secondary",
25140
25165
  A.get(pi(Ae))
@@ -25151,10 +25176,10 @@ const PQ = 220, RQ = (e, t, n, i = !0) => {
25151
25176
  Ae.summaryPlaceholder
25152
25177
  );
25153
25178
  if (Ae.summary && t.summaries && t.summaries[Ae.summary]?.type === "sum") {
25154
- const ct = me.data[Ae.summary];
25155
- return Ce(ct) ? /* @__PURE__ */ m("span", { className: "text-f1-foreground-secondary", children: Ke }) : /* @__PURE__ */ R("div", { className: "flex gap-1", children: [
25179
+ const dt = me.data[Ae.summary];
25180
+ return Ce(dt) ? /* @__PURE__ */ m("span", { className: "text-f1-foreground-secondary", children: Ke }) : /* @__PURE__ */ R("div", { className: "flex gap-1", children: [
25156
25181
  /* @__PURE__ */ m("span", { className: "text-f1-foreground-secondary", children: x.collections.summaries.types.sum }),
25157
- `${ct}`
25182
+ `${dt}`
25158
25183
  ] });
25159
25184
  }
25160
25185
  return /* @__PURE__ */ m("span", { className: "text-f1-foreground-secondary", children: Ke });
@@ -27995,7 +28020,7 @@ function Cie({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
27995
28020
  [de, be]
27996
28021
  ];
27997
28022
  }
27998
- const { position: se, positionAbsolute: q } = vM({
28023
+ const { position: oe, positionAbsolute: q } = vM({
27999
28024
  nodeId: B,
28000
28025
  nextPosition: ie,
28001
28026
  nodeLookup: N,
@@ -28003,7 +28028,7 @@ function Cie({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: i,
28003
28028
  nodeOrigin: L,
28004
28029
  onError: $
28005
28030
  });
28006
- K = K || V.position.x !== se.x || V.position.y !== se.y, V.position = se, V.internals.positionAbsolute = q;
28031
+ K = K || V.position.x !== oe.x || V.position.y !== oe.y, V.position = oe, V.internals.positionAbsolute = q;
28007
28032
  }
28008
28033
  if (p = p || K, !!K && (F(a, !0), g && (i || z || !_ && U))) {
28009
28034
  const [B, V] = gv({
@@ -28139,8 +28164,8 @@ function Oie(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
28139
28164
  function K() {
28140
28165
  if (!d || !O)
28141
28166
  return;
28142
- const [se, q] = wM(L, O, _);
28143
- u({ x: se, y: q }), T = requestAnimationFrame(K);
28167
+ const [oe, q] = wM(L, O, _);
28168
+ u({ x: oe, y: q }), T = requestAnimationFrame(K);
28144
28169
  }
28145
28170
  const Y = {
28146
28171
  ...P,
@@ -28165,20 +28190,20 @@ function Oie(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
28165
28190
  D = !0, x(B), p?.(e, { nodeId: r, handleId: i, handleType: N });
28166
28191
  }
28167
28192
  S === 0 && V();
28168
- function ie(se) {
28193
+ function ie(oe) {
28169
28194
  if (!D) {
28170
- const { x: be, y: W } = gr(se), re = be - M, ae = W - I;
28195
+ const { x: be, y: W } = gr(oe), re = be - M, ae = W - I;
28171
28196
  if (!(re * re + ae * ae > S * S))
28172
28197
  return;
28173
28198
  V();
28174
28199
  }
28175
28200
  if (!k() || !Y) {
28176
- J(se);
28201
+ J(oe);
28177
28202
  return;
28178
28203
  }
28179
28204
  const q = b();
28180
- L = gr(se, O), A = Aie(Gu(L, q, !1, [1, 1]), n, l, Y), z || (K(), z = !0);
28181
- const G = FM(se, {
28205
+ L = gr(oe, O), A = Aie(Gu(L, q, !1, [1, 1]), n, l, Y), z || (K(), z = !0);
28206
+ const G = FM(oe, {
28182
28207
  handle: A,
28183
28208
  connectionMode: t,
28184
28209
  fromNodeId: r,
@@ -28203,15 +28228,15 @@ function Oie(e, { connectionMode: t, connectionRadius: n, handleId: i, nodeId: r
28203
28228
  };
28204
28229
  x(ge), B = ge;
28205
28230
  }
28206
- function J(se) {
28207
- if (!("touches" in se && se.touches.length > 0)) {
28231
+ function J(oe) {
28232
+ if (!("touches" in oe && oe.touches.length > 0)) {
28208
28233
  if (D) {
28209
28234
  (A || F) && U && $ && g?.(U);
28210
28235
  const { inProgress: q, ...G } = B, le = {
28211
28236
  ...G,
28212
28237
  toPosition: B.toHandle ? B.toPosition : null
28213
28238
  };
28214
- y?.(se, le), o && w?.(se, le);
28239
+ y?.(oe, le), o && w?.(oe, le);
28215
28240
  }
28216
28241
  h(), cancelAnimationFrame(T), z = !1, $ = !1, U = null, F = null, C.removeEventListener("mousemove", ie), C.removeEventListener("mouseup", J), C.removeEventListener("touchmove", ie), C.removeEventListener("touchend", J);
28217
28242
  }
@@ -28451,7 +28476,7 @@ function Bie({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
28451
28476
  });
28452
28477
  f.on("end", le);
28453
28478
  }
28454
- const se = $ie({
28479
+ const oe = $ie({
28455
28480
  zoomActivationKeyPressed: K,
28456
28481
  panOnDrag: D,
28457
28482
  zoomOnScroll: $,
@@ -28464,7 +28489,7 @@ function Bie({ domNode: e, minZoom: t, maxZoom: n, translateExtent: i, viewport:
28464
28489
  lib: Y,
28465
28490
  connectionInProgress: Z
28466
28491
  });
28467
- f.filter(se), F ? u.on("dblclick.zoom", p) : u.on("dblclick.zoom", null);
28492
+ f.filter(oe), F ? u.on("dblclick.zoom", p) : u.on("dblclick.zoom", null);
28468
28493
  }
28469
28494
  function v() {
28470
28495
  f.on("zoom", null);
@@ -28682,10 +28707,10 @@ function Uie({ domNode: e, nodeId: t, getStoreItems: n, onChange: i, onEnd: r })
28682
28707
  }), P = [];
28683
28708
  if (!x)
28684
28709
  return;
28685
- const { x: L, y: z, width: U, height: $ } = v, F = {}, K = x.origin ?? O, { width: Y, height: H, x: Z, y: B } = jie(w, s.controlDirection, D, s.boundaries, s.keepAspectRatio, K, S, E), V = Y !== U, ie = H !== $, J = Z !== L && V, se = B !== z && ie;
28686
- if (!J && !se && !V && !ie)
28710
+ const { x: L, y: z, width: U, height: $ } = v, F = {}, K = x.origin ?? O, { width: Y, height: H, x: Z, y: B } = jie(w, s.controlDirection, D, s.boundaries, s.keepAspectRatio, K, S, E), V = Y !== U, ie = H !== $, J = Z !== L && V, oe = B !== z && ie;
28711
+ if (!J && !oe && !V && !ie)
28687
28712
  return;
28688
- if ((J || se || K[0] === 1 || K[1] === 1) && (F.x = J ? Z : v.x, F.y = se ? B : v.y, v.x = F.x, v.y = F.y, k.length > 0)) {
28713
+ if ((J || oe || K[0] === 1 || K[1] === 1) && (F.x = J ? Z : v.x, F.y = oe ? B : v.y, v.x = F.x, v.y = F.y, k.length > 0)) {
28689
28714
  const de = Z - L, ge = B - z;
28690
28715
  for (const be of k)
28691
28716
  be.position = {
@@ -28944,7 +28969,7 @@ function ure(e, t) {
28944
28969
  }
28945
28970
  function hre({ onSelectionChange: e }) {
28946
28971
  const t = Gt(), { selectedNodes: n, selectedEdges: i } = mt(fre, ure);
28947
- return oe(() => {
28972
+ return se(() => {
28948
28973
  const r = { nodes: n, edges: i };
28949
28974
  e?.(r), t.getState().onSelectionChangeHandlers.forEach((o) => o(r));
28950
28975
  }, [n, i, e]), null;
@@ -28954,7 +28979,7 @@ function mre({ onSelectionChange: e }) {
28954
28979
  const t = mt(pre);
28955
28980
  return e || t ? m(hre, { onSelectionChange: e }) : null;
28956
28981
  }
28957
- const Ib = typeof window < "u" ? rn : oe, UM = [0, 0], gre = { x: 0, y: 0, zoom: 1 }, yre = [
28982
+ const Ib = typeof window < "u" ? rn : se, UM = [0, 0], gre = { x: 0, y: 0, zoom: 1 }, yre = [
28958
28983
  "nodes",
28959
28984
  "edges",
28960
28985
  "defaultNodes",
@@ -29059,7 +29084,7 @@ function oC() {
29059
29084
  }
29060
29085
  function wre(e) {
29061
29086
  const [t, n] = ee(e === "system" ? null : e);
29062
- return oe(() => {
29087
+ return se(() => {
29063
29088
  if (e !== "system") {
29064
29089
  n(e);
29065
29090
  return;
@@ -29084,7 +29109,7 @@ function Ff(e = null, t = { target: sC, actInsideInputWithModifier: !0 }) {
29084
29109
  }
29085
29110
  return [[], []];
29086
29111
  }, [e]);
29087
- return oe(() => {
29112
+ return se(() => {
29088
29113
  const l = t?.target ?? sC, c = t?.actInsideInputWithModifier ?? !0;
29089
29114
  if (e !== null) {
29090
29115
  const d = (h) => {
@@ -29456,18 +29481,18 @@ function Yc() {
29456
29481
  const hC = (e) => e.selected, Ore = typeof window < "u" ? window : void 0;
29457
29482
  function Dre({ deleteKeyCode: e, multiSelectionKeyCode: t }) {
29458
29483
  const n = Gt(), { deleteElements: i } = Yc(), r = Ff(e, { actInsideInputWithModifier: !1 }), o = Ff(t, { target: Ore });
29459
- oe(() => {
29484
+ se(() => {
29460
29485
  if (r) {
29461
29486
  const { edges: s, nodes: a } = n.getState();
29462
29487
  i({ nodes: a.filter(hC), edges: s.filter(hC) }), n.setState({ nodesSelectionActive: !1 });
29463
29488
  }
29464
- }, [r]), oe(() => {
29489
+ }, [r]), se(() => {
29465
29490
  n.setState({ multiSelectionActive: o });
29466
29491
  }, [o]);
29467
29492
  }
29468
29493
  function Mre(e) {
29469
29494
  const t = Gt();
29470
- oe(() => {
29495
+ se(() => {
29471
29496
  const n = () => {
29472
29497
  if (!e.current || !(e.current.checkVisibility?.() ?? !0))
29473
29498
  return !1;
@@ -29500,7 +29525,7 @@ function Pre({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0,
29500
29525
  const M = ne((I) => {
29501
29526
  v?.({ x: I[0], y: I[1], zoom: I[2] }), w || k.setState({ transform: I });
29502
29527
  }, [v, w]);
29503
- return oe(() => {
29528
+ return se(() => {
29504
29529
  if (_.current) {
29505
29530
  A.current = Bie({
29506
29531
  domNode: _.current,
@@ -29531,7 +29556,7 @@ function Pre({ onPaneContextMenu: e, zoomOnScroll: t = !0, zoomOnPinch: n = !0,
29531
29556
  A.current?.destroy();
29532
29557
  };
29533
29558
  }
29534
- }, []), oe(() => {
29559
+ }, []), se(() => {
29535
29560
  A.current?.update({
29536
29561
  onPaneContextMenu: e,
29537
29562
  zoomOnScroll: t,
@@ -29631,21 +29656,21 @@ function $re({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = Pf.Ful
29631
29656
  const { userSelectionRect: z, transform: U, nodeLookup: $, edgeLookup: F, connectionLookup: K, triggerNodeChanges: Y, triggerEdgeChanges: H, defaultEdgeOptions: Z, resetSelectedElements: B } = g.getState();
29632
29657
  if (!_.current || !z)
29633
29658
  return;
29634
- const { x: V, y: ie } = gr(L.nativeEvent, _.current), { startX: J, startY: se } = z;
29659
+ const { x: V, y: ie } = gr(L.nativeEvent, _.current), { startX: J, startY: oe } = z;
29635
29660
  if (!C.current) {
29636
29661
  const ge = t ? 0 : r;
29637
- if (Math.hypot(V - J, ie - se) <= ge)
29662
+ if (Math.hypot(V - J, ie - oe) <= ge)
29638
29663
  return;
29639
29664
  B(), s?.(L);
29640
29665
  }
29641
29666
  C.current = !0;
29642
29667
  const q = {
29643
29668
  startX: J,
29644
- startY: se,
29669
+ startY: oe,
29645
29670
  x: V < J ? V : J,
29646
- y: ie < se ? ie : se,
29671
+ y: ie < oe ? ie : oe,
29647
29672
  width: Math.abs(V - J),
29648
- height: Math.abs(ie - se)
29673
+ height: Math.abs(ie - oe)
29649
29674
  }, G = S.current, le = E.current;
29650
29675
  S.current = new Set(qk($, q, U, n === Pf.Partial, !0).map((ge) => ge.id)), E.current = /* @__PURE__ */ new Set();
29651
29676
  const de = Z?.selectable ?? !0;
@@ -29690,7 +29715,7 @@ function Pb({ id: e, store: t, unselect: n = !1, nodeRef: i }) {
29690
29715
  }
29691
29716
  function YM({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector: i, nodeId: r, isSelectable: o, nodeClickDistance: s }) {
29692
29717
  const a = Gt(), [l, c] = ee(!1), d = j();
29693
- return oe(() => {
29718
+ return se(() => {
29694
29719
  d.current = Cie({
29695
29720
  getStoreItems: () => a.getState(),
29696
29721
  onNodeMouseDown: (f) => {
@@ -29707,7 +29732,7 @@ function YM({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
29707
29732
  c(!1);
29708
29733
  }
29709
29734
  });
29710
- }, []), oe(() => {
29735
+ }, []), se(() => {
29711
29736
  if (!(t || !e.current || !d.current))
29712
29737
  return d.current.update({
29713
29738
  noDragClassName: n,
@@ -29908,7 +29933,7 @@ const Yre = (e) => {
29908
29933
  };
29909
29934
  function Xre({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y: n }) {
29910
29935
  const i = Gt(), { width: r, height: o, transformString: s, userSelectionActive: a } = mt(Yre, Kt), l = XM(), c = j(null);
29911
- oe(() => {
29936
+ se(() => {
29912
29937
  n || c.current?.focus({
29913
29938
  preventScroll: !0
29914
29939
  });
@@ -29958,17 +29983,17 @@ function noe() {
29958
29983
  });
29959
29984
  }), e(i);
29960
29985
  }));
29961
- return oe(() => () => {
29986
+ return se(() => () => {
29962
29987
  t?.disconnect();
29963
29988
  }, [t]), t;
29964
29989
  }
29965
29990
  function ioe({ node: e, nodeType: t, hasDimensions: n, resizeObserver: i }) {
29966
29991
  const r = Gt(), o = j(null), s = j(null), a = j(e.sourcePosition), l = j(e.targetPosition), c = j(t), d = n && !!e.internals.handleBounds;
29967
- return oe(() => {
29992
+ return se(() => {
29968
29993
  o.current && !e.hidden && (!d || s.current !== o.current) && (s.current && i?.unobserve(s.current), i?.observe(o.current), s.current = o.current);
29969
- }, [d, e.hidden]), oe(() => () => {
29994
+ }, [d, e.hidden]), se(() => () => {
29970
29995
  s.current && (i?.unobserve(s.current), s.current = null);
29971
- }, []), oe(() => {
29996
+ }, []), se(() => {
29972
29997
  if (o.current) {
29973
29998
  const f = c.current !== t, u = a.current !== e.sourcePosition, h = l.current !== e.targetPosition;
29974
29999
  (f || u || h) && (c.current = t, a.current = e.sourcePosition, l.current = e.targetPosition, r.getState().updateNodeInternals(/* @__PURE__ */ new Map([[e.id, { id: e.id, nodeElement: o.current, force: !0 }]])));
@@ -30032,8 +30057,8 @@ function roe({ id: e, onClick: t, onMouseEnter: n, onMouseMove: i, onMouseLeave:
30032
30057
  }, B = () => {
30033
30058
  if (p || !N.current?.matches(":focus-visible"))
30034
30059
  return;
30035
- const { transform: V, width: ie, height: J, autoPanOnNodeFocus: se, setCenter: q } = M.getState();
30036
- if (!se)
30060
+ const { transform: V, width: ie, height: J, autoPanOnNodeFocus: oe, setCenter: q } = M.getState();
30061
+ if (!oe)
30037
30062
  return;
30038
30063
  qk(/* @__PURE__ */ new Map([[e, x]]), { x: 0, y: 0, width: ie, height: J }, V, !0).length > 0 || q(x.position.x + P.width / 2, x.position.y + P.height / 2, {
30039
30064
  zoom: V[2]
@@ -30159,7 +30184,7 @@ QM.displayName = "MarkerDefinitions";
30159
30184
  var hoe = Ot(QM);
30160
30185
  function eI({ x: e, y: t, label: n, labelStyle: i, labelShowBg: r = !0, labelBgStyle: o, labelBgPadding: s = [2, 4], labelBgBorderRadius: a = 2, children: l, className: c, ...d }) {
30161
30186
  const [f, u] = ee({ x: 1, y: 0, width: 0, height: 0 }), h = pn(["react-flow__edge-textwrapper", c]), p = j(null);
30162
- return oe(() => {
30187
+ return se(() => {
30163
30188
  if (p.current) {
30164
30189
  const g = p.current.getBBox();
30165
30190
  u({
@@ -30383,7 +30408,7 @@ function koe({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
30383
30408
  l(q, { ...x });
30384
30409
  } : void 0, J = c ? (q) => {
30385
30410
  c(q, { ...x });
30386
- } : void 0, se = (q) => {
30411
+ } : void 0, oe = (q) => {
30387
30412
  if (!w && hM.includes(q.key) && C) {
30388
30413
  const { unselectNodesAndEdges: G, addSelectedEdges: le } = O.getState();
30389
30414
  q.key === "Escape" ? (T.current?.blur(), G({ edges: [x] })) : le([e]);
@@ -30401,7 +30426,7 @@ function koe({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectab
30401
30426
  updating: A,
30402
30427
  selectable: C
30403
30428
  }
30404
- ]), onClick: H, onDoubleClick: Z, onContextMenu: B, onMouseEnter: V, onMouseMove: ie, onMouseLeave: J, onKeyDown: S ? se : void 0, tabIndex: S ? 0 : void 0, role: x.ariaRole ?? (S ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": x.ariaLabel === null ? void 0 : x.ariaLabel || `Edge from ${x.source} to ${x.target}`, "aria-describedby": S ? `${WM}-${p}` : void 0, ref: T, ...x.domAttributes, children: [!I && m(_, { id: e, source: x.source, target: x.target, type: x.type, selected: x.selected, animated: x.animated, selectable: C, deletable: x.deletable ?? !0, label: x.label, labelStyle: x.labelStyle, labelShowBg: x.labelShowBg, labelBgStyle: x.labelBgStyle, labelBgPadding: x.labelBgPadding, labelBgBorderRadius: x.labelBgBorderRadius, sourceX: P, sourceY: L, targetX: z, targetY: U, sourcePosition: $, targetPosition: F, data: x.data, style: x.style, sourceHandleId: x.sourceHandle, targetHandleId: x.targetHandle, markerStart: K, markerEnd: Y, pathOptions: "pathOptions" in x ? x.pathOptions : void 0, interactionWidth: x.interactionWidth }), E && m(xoe, { edge: x, isReconnectable: E, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: P, sourceY: L, targetX: z, targetY: U, sourcePosition: $, targetPosition: F, setUpdateHover: M, setReconnecting: N })] }) });
30429
+ ]), onClick: H, onDoubleClick: Z, onContextMenu: B, onMouseEnter: V, onMouseMove: ie, onMouseLeave: J, onKeyDown: S ? oe : void 0, tabIndex: S ? 0 : void 0, role: x.ariaRole ?? (S ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": x.ariaLabel === null ? void 0 : x.ariaLabel || `Edge from ${x.source} to ${x.target}`, "aria-describedby": S ? `${WM}-${p}` : void 0, ref: T, ...x.domAttributes, children: [!I && m(_, { id: e, source: x.source, target: x.target, type: x.type, selected: x.selected, animated: x.animated, selectable: C, deletable: x.deletable ?? !0, label: x.label, labelStyle: x.labelStyle, labelShowBg: x.labelShowBg, labelBgStyle: x.labelBgStyle, labelBgPadding: x.labelBgPadding, labelBgBorderRadius: x.labelBgBorderRadius, sourceX: P, sourceY: L, targetX: z, targetY: U, sourcePosition: $, targetPosition: F, data: x.data, style: x.style, sourceHandleId: x.sourceHandle, targetHandleId: x.targetHandle, markerStart: K, markerEnd: Y, pathOptions: "pathOptions" in x ? x.pathOptions : void 0, interactionWidth: x.interactionWidth }), E && m(xoe, { edge: x, isReconnectable: E, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: P, sourceY: L, targetX: z, targetY: U, sourcePosition: $, targetPosition: F, setUpdateHover: M, setReconnecting: N })] }) });
30405
30430
  }
30406
30431
  var _oe = Ot(koe);
30407
30432
  const Soe = (e) => ({
@@ -30423,14 +30448,14 @@ function Noe({ children: e }) {
30423
30448
  }
30424
30449
  function Aoe(e) {
30425
30450
  const t = Yc(), n = j(!1);
30426
- oe(() => {
30451
+ se(() => {
30427
30452
  !n.current && t.viewportInitialized && e && (setTimeout(() => e(t), 1), n.current = !0);
30428
30453
  }, [e, t.viewportInitialized]);
30429
30454
  }
30430
30455
  const Toe = (e) => e.panZoom?.syncViewport;
30431
30456
  function Ooe(e) {
30432
30457
  const t = mt(Toe), n = Gt();
30433
- return oe(() => {
30458
+ return se(() => {
30434
30459
  e && (t?.(e), n.setState({ transform: [e.x, e.y, e.zoom] }));
30435
30460
  }, [e, t]), null;
30436
30461
  }
@@ -30495,7 +30520,7 @@ pI.displayName = "ConnectionLine";
30495
30520
  const Loe = {};
30496
30521
  function kC(e = Loe) {
30497
30522
  const t = j(e), n = Gt();
30498
- oe(() => {
30523
+ se(() => {
30499
30524
  if (process.env.NODE_ENV === "development") {
30500
30525
  const i = /* @__PURE__ */ new Set([...Object.keys(t.current), ...Object.keys(e)]);
30501
30526
  for (const r of i)
@@ -30509,15 +30534,15 @@ function kC(e = Loe) {
30509
30534
  }
30510
30535
  function Foe() {
30511
30536
  const e = Gt(), t = j(!1);
30512
- oe(() => {
30537
+ se(() => {
30513
30538
  if (process.env.NODE_ENV === "development" && !t.current) {
30514
30539
  const n = document.querySelector(".react-flow__pane");
30515
30540
  n && window.getComputedStyle(n).zIndex !== "1" && e.getState().onError?.("013", Li.error013("react")), t.current = !0;
30516
30541
  }
30517
30542
  }, []);
30518
30543
  }
30519
- function mI({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: g, connectionLineComponent: y, connectionLineContainerStyle: v, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, deleteKeyCode: E, onlyRenderVisibleElements: C, elementsSelectable: T, defaultViewport: A, translateExtent: M, minZoom: I, maxZoom: N, preventScrolling: O, defaultMarkerColor: D, zoomOnScroll: P, zoomOnPinch: L, panOnScroll: z, panOnScrollSpeed: U, panOnScrollMode: $, zoomOnDoubleClick: F, panOnDrag: K, onPaneClick: Y, onPaneMouseEnter: H, onPaneMouseMove: Z, onPaneMouseLeave: B, onPaneScroll: V, onPaneContextMenu: ie, paneClickDistance: J, nodeClickDistance: se, onEdgeContextMenu: q, onEdgeMouseEnter: G, onEdgeMouseMove: le, onEdgeMouseLeave: de, reconnectRadius: ge, onReconnect: be, onReconnectStart: W, onReconnectEnd: re, noDragClassName: ae, noWheelClassName: ue, noPanClassName: ce, disableKeyboardA11y: me, nodeExtent: ye, rfId: Ce, viewport: He, onViewportChange: Le }) {
30520
- return kC(e), kC(t), Foe(), Aoe(n), Ooe(He), m(Zre, { onPaneClick: Y, onPaneMouseEnter: H, onPaneMouseMove: Z, onPaneMouseLeave: B, onPaneContextMenu: ie, onPaneScroll: V, paneClickDistance: J, deleteKeyCode: E, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, elementsSelectable: T, zoomOnScroll: P, zoomOnPinch: L, zoomOnDoubleClick: F, panOnScroll: z, panOnScrollSpeed: U, panOnScrollMode: $, panOnDrag: K, defaultViewport: A, translateExtent: M, minZoom: I, maxZoom: N, onSelectionContextMenu: f, preventScrolling: O, noDragClassName: ae, noWheelClassName: ue, noPanClassName: ce, disableKeyboardA11y: me, onViewportChange: Le, isControlledViewport: !!He, children: R(Noe, { children: [m(Coe, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: be, onReconnectStart: W, onReconnectEnd: re, onlyRenderVisibleElements: C, onEdgeContextMenu: q, onEdgeMouseEnter: G, onEdgeMouseMove: le, onEdgeMouseLeave: de, reconnectRadius: ge, defaultMarkerColor: D, noPanClassName: ce, disableKeyboardA11y: me, rfId: Ce }), m(Roe, { style: g, type: p, component: y, containerStyle: v }), m("div", { className: "react-flow__edgelabel-renderer" }), m(aoe, { nodeTypes: e, onNodeClick: i, onNodeDoubleClick: o, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: se, onlyRenderVisibleElements: C, noPanClassName: ce, noDragClassName: ae, disableKeyboardA11y: me, nodeExtent: ye, rfId: Ce }), m("div", { className: "react-flow__viewport-portal" })] }) });
30544
+ function mI({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: i, onEdgeClick: r, onNodeDoubleClick: o, onEdgeDoubleClick: s, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: p, connectionLineStyle: g, connectionLineComponent: y, connectionLineContainerStyle: v, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, deleteKeyCode: E, onlyRenderVisibleElements: C, elementsSelectable: T, defaultViewport: A, translateExtent: M, minZoom: I, maxZoom: N, preventScrolling: O, defaultMarkerColor: D, zoomOnScroll: P, zoomOnPinch: L, panOnScroll: z, panOnScrollSpeed: U, panOnScrollMode: $, zoomOnDoubleClick: F, panOnDrag: K, onPaneClick: Y, onPaneMouseEnter: H, onPaneMouseMove: Z, onPaneMouseLeave: B, onPaneScroll: V, onPaneContextMenu: ie, paneClickDistance: J, nodeClickDistance: oe, onEdgeContextMenu: q, onEdgeMouseEnter: G, onEdgeMouseMove: le, onEdgeMouseLeave: de, reconnectRadius: ge, onReconnect: be, onReconnectStart: W, onReconnectEnd: re, noDragClassName: ae, noWheelClassName: ue, noPanClassName: ce, disableKeyboardA11y: me, nodeExtent: ye, rfId: Ce, viewport: He, onViewportChange: Le }) {
30545
+ return kC(e), kC(t), Foe(), Aoe(n), Ooe(He), m(Zre, { onPaneClick: Y, onPaneMouseEnter: H, onPaneMouseMove: Z, onPaneMouseLeave: B, onPaneContextMenu: ie, onPaneScroll: V, paneClickDistance: J, deleteKeyCode: E, selectionKeyCode: w, selectionOnDrag: x, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: k, panActivationKeyCode: _, zoomActivationKeyCode: S, elementsSelectable: T, zoomOnScroll: P, zoomOnPinch: L, zoomOnDoubleClick: F, panOnScroll: z, panOnScrollSpeed: U, panOnScrollMode: $, panOnDrag: K, defaultViewport: A, translateExtent: M, minZoom: I, maxZoom: N, onSelectionContextMenu: f, preventScrolling: O, noDragClassName: ae, noWheelClassName: ue, noPanClassName: ce, disableKeyboardA11y: me, onViewportChange: Le, isControlledViewport: !!He, children: R(Noe, { children: [m(Coe, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: s, onReconnect: be, onReconnectStart: W, onReconnectEnd: re, onlyRenderVisibleElements: C, onEdgeContextMenu: q, onEdgeMouseEnter: G, onEdgeMouseMove: le, onEdgeMouseLeave: de, reconnectRadius: ge, defaultMarkerColor: D, noPanClassName: ce, disableKeyboardA11y: me, rfId: Ce }), m(Roe, { style: g, type: p, component: y, containerStyle: v }), m("div", { className: "react-flow__edgelabel-renderer" }), m(aoe, { nodeTypes: e, onNodeClick: i, onNodeDoubleClick: o, onNodeMouseEnter: a, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: oe, onlyRenderVisibleElements: C, noPanClassName: ce, noDragClassName: ae, disableKeyboardA11y: me, nodeExtent: ye, rfId: Ce }), m("div", { className: "react-flow__viewport-portal" })] }) });
30521
30546
  }
30522
30547
  mI.displayName = "GraphView";
30523
30548
  const $oe = Ot(mI), _C = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, width: r, height: o, fitView: s, fitViewOptions: a, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
@@ -30836,11 +30861,11 @@ const joe = {
30836
30861
  position: "relative",
30837
30862
  zIndex: 0
30838
30863
  };
30839
- function Hoe({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, className: r, nodeTypes: o, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: k, onNodeDoubleClick: _, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onNodesDelete: T, onEdgesDelete: A, onDelete: M, onSelectionChange: I, onSelectionDragStart: N, onSelectionDrag: O, onSelectionDragStop: D, onSelectionContextMenu: P, onSelectionStart: L, onSelectionEnd: z, onBeforeDelete: U, connectionMode: $, connectionLineType: F = gs.Bezier, connectionLineStyle: K, connectionLineComponent: Y, connectionLineContainerStyle: H, deleteKeyCode: Z = "Backspace", selectionKeyCode: B = "Shift", selectionOnDrag: V = !1, selectionMode: ie = Pf.Full, panActivationKeyCode: J = "Space", multiSelectionKeyCode: se = Lf() ? "Meta" : "Control", zoomActivationKeyCode: q = Lf() ? "Meta" : "Control", snapToGrid: G, snapGrid: le, onlyRenderVisibleElements: de = !1, selectNodesOnDrag: ge, nodesDraggable: be, autoPanOnNodeFocus: W, nodesConnectable: re, nodesFocusable: ae, nodeOrigin: ue = UM, edgesFocusable: ce, edgesReconnectable: me, elementsSelectable: ye = !0, defaultViewport: Ce = gre, minZoom: He = 0.5, maxZoom: Le = 2, translateExtent: et = If, preventScrolling: kt = !0, nodeExtent: ft, defaultMarkerColor: ut = "#b1b1b7", zoomOnScroll: Rt = !0, zoomOnPinch: vt = !0, panOnScroll: pe = !1, panOnScrollSpeed: fe = 0.5, panOnScrollMode: he = wa.Free, zoomOnDoubleClick: Se = !0, panOnDrag: _e = !0, onPaneClick: Oe, onPaneMouseEnter: rt, onPaneMouseMove: it, onPaneMouseLeave: tt, onPaneScroll: st, onPaneContextMenu: Dt, paneClickDistance: ve = 1, nodeClickDistance: Ae = 0, children: Ue, onReconnect: Ke, onReconnectStart: ct, onReconnectEnd: ht, onEdgeContextMenu: Wt, onEdgeDoubleClick: ln, onEdgeMouseEnter: mn, onEdgeMouseMove: Pn, onEdgeMouseLeave: ci, reconnectRadius: cn = 10, onNodesChange: Gn, onEdgesChange: Yn, noDragClassName: eo = "nodrag", noWheelClassName: Xn = "nowheel", noPanClassName: sr = "nopan", fitView: Re, fitViewOptions: Be, connectOnClick: Qe, attributionPosition: at, proOptions: ar, defaultEdgeOptions: id, elevateNodesOnSelect: Or = !0, elevateEdgesOnSelect: Go = !1, disableKeyboardA11y: to = !1, autoPanOnConnect: ol, autoPanOnNodeDrag: Dr, autoPanSpeed: Yo, connectionRadius: rd, isValidConnection: no, onError: sl, style: Mr, id: al, nodeDragThreshold: Gs, connectionDragThreshold: Ir, viewport: io, onViewportChange: od, width: ll, height: cl, colorMode: Ys = "light", debug: Xs, onScroll: ro, ariaLabelConfig: Bi, zIndexMode: zi = "basic", ...Rn }, Js) {
30864
+ function Hoe({ nodes: e, edges: t, defaultNodes: n, defaultEdges: i, className: r, nodeTypes: o, edgeTypes: s, onNodeClick: a, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: k, onNodeDoubleClick: _, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onNodesDelete: T, onEdgesDelete: A, onDelete: M, onSelectionChange: I, onSelectionDragStart: N, onSelectionDrag: O, onSelectionDragStop: D, onSelectionContextMenu: P, onSelectionStart: L, onSelectionEnd: z, onBeforeDelete: U, connectionMode: $, connectionLineType: F = gs.Bezier, connectionLineStyle: K, connectionLineComponent: Y, connectionLineContainerStyle: H, deleteKeyCode: Z = "Backspace", selectionKeyCode: B = "Shift", selectionOnDrag: V = !1, selectionMode: ie = Pf.Full, panActivationKeyCode: J = "Space", multiSelectionKeyCode: oe = Lf() ? "Meta" : "Control", zoomActivationKeyCode: q = Lf() ? "Meta" : "Control", snapToGrid: G, snapGrid: le, onlyRenderVisibleElements: de = !1, selectNodesOnDrag: ge, nodesDraggable: be, autoPanOnNodeFocus: W, nodesConnectable: re, nodesFocusable: ae, nodeOrigin: ue = UM, edgesFocusable: ce, edgesReconnectable: me, elementsSelectable: ye = !0, defaultViewport: Ce = gre, minZoom: He = 0.5, maxZoom: Le = 2, translateExtent: et = If, preventScrolling: kt = !0, nodeExtent: ut, defaultMarkerColor: ht = "#b1b1b7", zoomOnScroll: Rt = !0, zoomOnPinch: vt = !0, panOnScroll: pe = !1, panOnScrollSpeed: fe = 0.5, panOnScrollMode: he = wa.Free, zoomOnDoubleClick: Se = !0, panOnDrag: _e = !0, onPaneClick: Oe, onPaneMouseEnter: rt, onPaneMouseMove: it, onPaneMouseLeave: tt, onPaneScroll: st, onPaneContextMenu: Dt, paneClickDistance: ve = 1, nodeClickDistance: Ae = 0, children: Ue, onReconnect: Ke, onReconnectStart: dt, onReconnectEnd: at, onEdgeContextMenu: Wt, onEdgeDoubleClick: ln, onEdgeMouseEnter: mn, onEdgeMouseMove: Pn, onEdgeMouseLeave: ci, reconnectRadius: cn = 10, onNodesChange: Gn, onEdgesChange: Yn, noDragClassName: eo = "nodrag", noWheelClassName: Xn = "nowheel", noPanClassName: sr = "nopan", fitView: Re, fitViewOptions: Be, connectOnClick: Qe, attributionPosition: lt, proOptions: ar, defaultEdgeOptions: id, elevateNodesOnSelect: Or = !0, elevateEdgesOnSelect: Go = !1, disableKeyboardA11y: to = !1, autoPanOnConnect: ol, autoPanOnNodeDrag: Dr, autoPanSpeed: Yo, connectionRadius: rd, isValidConnection: no, onError: sl, style: Mr, id: al, nodeDragThreshold: Gs, connectionDragThreshold: Ir, viewport: io, onViewportChange: od, width: ll, height: cl, colorMode: Ys = "light", debug: Xs, onScroll: ro, ariaLabelConfig: Bi, zIndexMode: zi = "basic", ...Rn }, Js) {
30840
30865
  const Ln = al || "1", Xo = wre(Ys), Jo = ne((oo) => {
30841
30866
  oo.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), ro?.(oo);
30842
30867
  }, [ro]);
30843
- return m("div", { "data-testid": "rf__wrapper", ...Rn, onScroll: Jo, style: { ...Mr, ...joe }, ref: Js, className: pn(["react-flow", r, Xo]), id: al, role: "application", children: R(zoe, { nodes: e, edges: t, width: ll, height: cl, fitView: Re, fitViewOptions: Be, minZoom: He, maxZoom: Le, nodeOrigin: ue, nodeExtent: ft, zIndexMode: zi, children: [m(bre, { nodes: e, edges: t, defaultNodes: n, defaultEdges: i, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, nodesDraggable: be, autoPanOnNodeFocus: W, nodesConnectable: re, nodesFocusable: ae, edgesFocusable: ce, edgesReconnectable: me, elementsSelectable: ye, elevateNodesOnSelect: Or, elevateEdgesOnSelect: Go, minZoom: He, maxZoom: Le, nodeExtent: ft, onNodesChange: Gn, onEdgesChange: Yn, snapToGrid: G, snapGrid: le, connectionMode: $, translateExtent: et, connectOnClick: Qe, defaultEdgeOptions: id, fitView: Re, fitViewOptions: Be, onNodesDelete: T, onEdgesDelete: A, onDelete: M, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onSelectionDrag: O, onSelectionDragStart: N, onSelectionDragStop: D, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: sr, nodeOrigin: ue, rfId: Ln, autoPanOnConnect: ol, autoPanOnNodeDrag: Dr, autoPanSpeed: Yo, onError: sl, connectionRadius: rd, isValidConnection: no, selectNodesOnDrag: ge, nodeDragThreshold: Gs, connectionDragThreshold: Ir, onBeforeDelete: U, debug: Xs, ariaLabelConfig: Bi, zIndexMode: zi }), m($oe, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: k, onNodeDoubleClick: _, nodeTypes: o, edgeTypes: s, connectionLineType: F, connectionLineStyle: K, connectionLineComponent: Y, connectionLineContainerStyle: H, selectionKeyCode: B, selectionOnDrag: V, selectionMode: ie, deleteKeyCode: Z, multiSelectionKeyCode: se, panActivationKeyCode: J, zoomActivationKeyCode: q, onlyRenderVisibleElements: de, defaultViewport: Ce, translateExtent: et, minZoom: He, maxZoom: Le, preventScrolling: kt, zoomOnScroll: Rt, zoomOnPinch: vt, zoomOnDoubleClick: Se, panOnScroll: pe, panOnScrollSpeed: fe, panOnScrollMode: he, panOnDrag: _e, onPaneClick: Oe, onPaneMouseEnter: rt, onPaneMouseMove: it, onPaneMouseLeave: tt, onPaneScroll: st, onPaneContextMenu: Dt, paneClickDistance: ve, nodeClickDistance: Ae, onSelectionContextMenu: P, onSelectionStart: L, onSelectionEnd: z, onReconnect: Ke, onReconnectStart: ct, onReconnectEnd: ht, onEdgeContextMenu: Wt, onEdgeDoubleClick: ln, onEdgeMouseEnter: mn, onEdgeMouseMove: Pn, onEdgeMouseLeave: ci, reconnectRadius: cn, defaultMarkerColor: ut, noDragClassName: eo, noWheelClassName: Xn, noPanClassName: sr, rfId: Ln, disableKeyboardA11y: to, nodeExtent: ft, viewport: io, onViewportChange: od }), m(mre, { onSelectionChange: I }), Ue, m(dre, { proOptions: ar, position: at }), m(cre, { rfId: Ln, disableKeyboardA11y: to })] }) });
30868
+ return m("div", { "data-testid": "rf__wrapper", ...Rn, onScroll: Jo, style: { ...Mr, ...joe }, ref: Js, className: pn(["react-flow", r, Xo]), id: al, role: "application", children: R(zoe, { nodes: e, edges: t, width: ll, height: cl, fitView: Re, fitViewOptions: Be, minZoom: He, maxZoom: Le, nodeOrigin: ue, nodeExtent: ut, zIndexMode: zi, children: [m(bre, { nodes: e, edges: t, defaultNodes: n, defaultEdges: i, onConnect: h, onConnectStart: p, onConnectEnd: g, onClickConnectStart: y, onClickConnectEnd: v, nodesDraggable: be, autoPanOnNodeFocus: W, nodesConnectable: re, nodesFocusable: ae, edgesFocusable: ce, edgesReconnectable: me, elementsSelectable: ye, elevateNodesOnSelect: Or, elevateEdgesOnSelect: Go, minZoom: He, maxZoom: Le, nodeExtent: ut, onNodesChange: Gn, onEdgesChange: Yn, snapToGrid: G, snapGrid: le, connectionMode: $, translateExtent: et, connectOnClick: Qe, defaultEdgeOptions: id, fitView: Re, fitViewOptions: Be, onNodesDelete: T, onEdgesDelete: A, onDelete: M, onNodeDragStart: S, onNodeDrag: E, onNodeDragStop: C, onSelectionDrag: O, onSelectionDragStart: N, onSelectionDragStop: D, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: sr, nodeOrigin: ue, rfId: Ln, autoPanOnConnect: ol, autoPanOnNodeDrag: Dr, autoPanSpeed: Yo, onError: sl, connectionRadius: rd, isValidConnection: no, selectNodesOnDrag: ge, nodeDragThreshold: Gs, connectionDragThreshold: Ir, onBeforeDelete: U, debug: Xs, ariaLabelConfig: Bi, zIndexMode: zi }), m($oe, { onInit: c, onNodeClick: a, onEdgeClick: l, onNodeMouseEnter: w, onNodeMouseMove: x, onNodeMouseLeave: b, onNodeContextMenu: k, onNodeDoubleClick: _, nodeTypes: o, edgeTypes: s, connectionLineType: F, connectionLineStyle: K, connectionLineComponent: Y, connectionLineContainerStyle: H, selectionKeyCode: B, selectionOnDrag: V, selectionMode: ie, deleteKeyCode: Z, multiSelectionKeyCode: oe, panActivationKeyCode: J, zoomActivationKeyCode: q, onlyRenderVisibleElements: de, defaultViewport: Ce, translateExtent: et, minZoom: He, maxZoom: Le, preventScrolling: kt, zoomOnScroll: Rt, zoomOnPinch: vt, zoomOnDoubleClick: Se, panOnScroll: pe, panOnScrollSpeed: fe, panOnScrollMode: he, panOnDrag: _e, onPaneClick: Oe, onPaneMouseEnter: rt, onPaneMouseMove: it, onPaneMouseLeave: tt, onPaneScroll: st, onPaneContextMenu: Dt, paneClickDistance: ve, nodeClickDistance: Ae, onSelectionContextMenu: P, onSelectionStart: L, onSelectionEnd: z, onReconnect: Ke, onReconnectStart: dt, onReconnectEnd: at, onEdgeContextMenu: Wt, onEdgeDoubleClick: ln, onEdgeMouseEnter: mn, onEdgeMouseMove: Pn, onEdgeMouseLeave: ci, reconnectRadius: cn, defaultMarkerColor: ht, noDragClassName: eo, noWheelClassName: Xn, noPanClassName: sr, rfId: Ln, disableKeyboardA11y: to, nodeExtent: ut, viewport: io, onViewportChange: od }), m(mre, { onSelectionChange: I }), Ue, m(dre, { proOptions: ar, position: lt }), m(cre, { rfId: Ln, disableKeyboardA11y: to })] }) });
30844
30869
  }
30845
30870
  var Voe = KM(Hoe);
30846
30871
  function Woe({ dimensions: e, lineWidth: t, variant: n, className: i }) {
@@ -31026,7 +31051,7 @@ function bI({
31026
31051
  offsetScale: b = 5
31027
31052
  }) {
31028
31053
  const k = Gt(), _ = j(null), { boundingRect: S, viewBB: E, rfId: C, panZoom: T, translateExtent: A, flowWidth: M, flowHeight: I, ariaLabelConfig: N } = mt(fse, Kt), O = e?.width ?? lse, D = e?.height ?? cse, P = S.width / O, L = S.height / D, z = Math.max(P, L), U = z * O, $ = z * D, F = b * z, K = S.x - (U - S.width) / 2 - F, Y = S.y - ($ - S.height) / 2 - F, H = U + F * 2, Z = $ + F * 2, B = `${use}-${C}`, V = j(0), ie = j();
31029
- V.current = z, oe(() => {
31054
+ V.current = z, se(() => {
31030
31055
  if (_.current && T)
31031
31056
  return ie.current = Die({
31032
31057
  domNode: _.current,
@@ -31036,7 +31061,7 @@ function bI({
31036
31061
  }), () => {
31037
31062
  ie.current?.destroy();
31038
31063
  };
31039
- }, [T]), oe(() => {
31064
+ }, [T]), se(() => {
31040
31065
  ie.current?.update({
31041
31066
  translateExtent: A,
31042
31067
  width: M,
@@ -31050,7 +31075,7 @@ function bI({
31050
31075
  const J = h ? (G) => {
31051
31076
  const [le, de] = ie.current?.pointer(G) || [0, 0];
31052
31077
  h(G, { x: le, y: de });
31053
- } : void 0, se = p ? ne((G, le) => {
31078
+ } : void 0, oe = p ? ne((G, le) => {
31054
31079
  const de = k.getState().nodeLookup.get(le).internals.userNode;
31055
31080
  p(G, de);
31056
31081
  }, []) : void 0, q = v ?? N["minimap.ariaLabel"];
@@ -31063,7 +31088,7 @@ function bI({
31063
31088
  "--xy-minimap-node-background-color-props": typeof i == "string" ? i : void 0,
31064
31089
  "--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
31065
31090
  "--xy-minimap-node-stroke-width-props": typeof s == "number" ? s : void 0
31066
- }, className: pn(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: R("svg", { width: O, height: D, viewBox: `${K} ${Y} ${H} ${Z}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": B, ref: _, onClick: J, children: [q && m("title", { id: B, children: q }), m(ase, { onClick: se, nodeColor: i, nodeStrokeColor: n, nodeBorderRadius: o, nodeClassName: r, nodeStrokeWidth: s, nodeComponent: a }), m("path", { className: "react-flow__minimap-mask", d: `M${K - F},${Y - F}h${H + F * 2}v${Z + F * 2}h${-H - F * 2}z
31091
+ }, className: pn(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: R("svg", { width: O, height: D, viewBox: `${K} ${Y} ${H} ${Z}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": B, ref: _, onClick: J, children: [q && m("title", { id: B, children: q }), m(ase, { onClick: oe, nodeColor: i, nodeStrokeColor: n, nodeBorderRadius: o, nodeClassName: r, nodeStrokeWidth: s, nodeComponent: a }), m("path", { className: "react-flow__minimap-mask", d: `M${K - F},${Y - F}h${H + F * 2}v${Z + F * 2}h${-H - F * 2}z
31067
31092
  M${E.x},${E.y}h${E.width}v${E.height}h${-E.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
31068
31093
  }
31069
31094
  bI.displayName = "MiniMap";
@@ -31074,7 +31099,7 @@ const hse = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, pse
31074
31099
  };
31075
31100
  function mse({ nodeId: e, position: t, variant: n = dc.Handle, className: i, style: r = void 0, children: o, color: s, minWidth: a = 10, minHeight: l = 10, maxWidth: c = Number.MAX_VALUE, maxHeight: d = Number.MAX_VALUE, keepAspectRatio: f = !1, resizeDirection: u, autoScale: h = !0, shouldResize: p, onResizeStart: g, onResize: y, onResizeEnd: v }) {
31076
31101
  const w = t2(), x = typeof e == "string" ? e : w, b = Gt(), k = j(null), _ = n === dc.Handle, S = mt(ne(hse(_ && h), [_, h]), Kt), E = j(null), C = t ?? pse[n];
31077
- oe(() => {
31102
+ se(() => {
31078
31103
  if (!(!k.current || !x))
31079
31104
  return E.current || (E.current = Uie({
31080
31105
  domNode: k.current,
@@ -31259,9 +31284,9 @@ function Dse(e) {
31259
31284
  const { initialNodes: t, initialEdges: n, deferredNodes: i } = e, [r, o] = ee(null), [s, a] = ee(
31260
31285
  i ? "loading" : "idle"
31261
31286
  ), [l, c] = ee(null), d = j(i), f = j(!0);
31262
- oe(() => () => {
31287
+ se(() => () => {
31263
31288
  f.current = !1;
31264
- }, []), oe(() => {
31289
+ }, []), se(() => {
31265
31290
  if (d.current = i, !i) {
31266
31291
  a("idle"), o(null), c(null);
31267
31292
  return;
@@ -31390,15 +31415,15 @@ function Bse({
31390
31415
  const [d, f] = ee(
31391
31416
  () => c.current
31392
31417
  ), u = r ?? d, h = r !== void 0, p = j(null), g = j(u);
31393
- oe(() => {
31418
+ se(() => {
31394
31419
  g.current = u;
31395
31420
  }, [u]);
31396
31421
  const y = j(t);
31397
- oe(() => {
31422
+ se(() => {
31398
31423
  y.current = t;
31399
31424
  }, [t]);
31400
31425
  const v = j(i);
31401
- oe(() => {
31426
+ se(() => {
31402
31427
  v.current = i;
31403
31428
  }, [i]);
31404
31429
  const w = ne(
@@ -31421,11 +31446,11 @@ function Bse({
31421
31446
  },
31422
31447
  [h, a, l, n]
31423
31448
  ), x = j(e);
31424
- oe(() => {
31449
+ se(() => {
31425
31450
  x.current = e;
31426
31451
  }, [e]);
31427
31452
  const b = j(i.nodes);
31428
- oe(() => {
31453
+ se(() => {
31429
31454
  b.current = i.nodes;
31430
31455
  }, [i.nodes]);
31431
31456
  const k = ne(async () => {
@@ -31477,7 +31502,7 @@ function zse({
31477
31502
  nodeRefsMapRef: l
31478
31503
  }) {
31479
31504
  const c = Yc(), d = j(e);
31480
- oe(() => {
31505
+ se(() => {
31481
31506
  d.current = e;
31482
31507
  }, [e]);
31483
31508
  const f = ne(
@@ -31892,10 +31917,10 @@ function Qse(e, t, n, i, r, o, s, a, l) {
31892
31917
  }
31893
31918
  let z = D, U = 0, $ = 0;
31894
31919
  L.forEach((ie, J) => {
31895
- const se = x(ie, z, P + 1);
31896
- J === 0 && (U = se.centerCross), $ = se.centerCross;
31920
+ const oe = x(ie, z, P + 1);
31921
+ J === 0 && (U = oe.centerCross), $ = oe.centerCross;
31897
31922
  const q = (c.get(ie)?.length ?? 0) > 0;
31898
- z = se.crossEnd + (q ? v : s);
31923
+ z = oe.crossEnd + (q ? v : s);
31899
31924
  });
31900
31925
  const F = L[L.length - 1], K = (c.get(F)?.length ?? 0) > 0, Y = z - (K ? v : s);
31901
31926
  let H = (U + $) / 2;
@@ -32263,7 +32288,7 @@ function iae({
32263
32288
  ]), J = Q(
32264
32289
  () => ie.filter((q) => q.type === "graphNode").map((q) => q.id),
32265
32290
  [ie]
32266
- ), se = Q(() => {
32291
+ ), oe = Q(() => {
32267
32292
  const q = new Set(
32268
32293
  x.filter((le) => n.has(le.id) && le.children.length > 0).map((le) => le.id)
32269
32294
  ), G = (le) => !B || B.has(le.source) && B.has(le.target);
@@ -32294,7 +32319,7 @@ function iae({
32294
32319
  return {
32295
32320
  visibleTreeNodes: x,
32296
32321
  rfNodes: ie,
32297
- rfEdges: se,
32322
+ rfEdges: oe,
32298
32323
  reservedTagHeight: N,
32299
32324
  tagsAffectLayout: A,
32300
32325
  renderedNodeCount: J.length,
@@ -32322,7 +32347,7 @@ function sae(e, t) {
32322
32347
  r
32323
32348
  ) === s ? s : l;
32324
32349
  }, [e, i, r]);
32325
- return oe(() => {
32350
+ return se(() => {
32326
32351
  n.current = o;
32327
32352
  }, [o]), o;
32328
32353
  }
@@ -32361,7 +32386,7 @@ function lae({
32361
32386
  preset: t,
32362
32387
  thresholds: n
32363
32388
  }), v = j(y);
32364
- oe(() => {
32389
+ se(() => {
32365
32390
  v.current !== y && (v.current = y, r?.(y));
32366
32391
  }, [y, r]);
32367
32392
  const [w, x] = ee(!1), b = j(!1), k = j(e), _ = ne(
@@ -32451,13 +32476,13 @@ function lae({
32451
32476
  }
32452
32477
  function cae(e) {
32453
32478
  const { rootNodes: t, loadChildren: n } = e, [i, r] = ee(() => t), [o, s] = ee(/* @__PURE__ */ new Set()), [a, l] = ee(/* @__PURE__ */ new Map()), c = j(/* @__PURE__ */ new Set()), d = j(i);
32454
- oe(() => {
32479
+ se(() => {
32455
32480
  d.current = i;
32456
32481
  }, [i]);
32457
32482
  const f = j(
32458
32483
  new Set(t.map((y) => y.id))
32459
32484
  );
32460
- oe(() => {
32485
+ se(() => {
32461
32486
  const y = new Set(t.map((x) => x.id)), v = f.current;
32462
32487
  let w = y.size !== v.size;
32463
32488
  if (!w) {
@@ -32541,14 +32566,14 @@ function dae({
32541
32566
  const [a, l] = ee(
32542
32567
  /* @__PURE__ */ new Set()
32543
32568
  ), c = i ?? a, d = i !== void 0, f = j(c);
32544
- oe(() => {
32569
+ se(() => {
32545
32570
  f.current = c;
32546
32571
  }, [c]);
32547
32572
  const [u, h] = ee(() => {
32548
32573
  const _ = kI(e, t);
32549
32574
  return _.length > 0 ? _[0].id : null;
32550
32575
  }), p = j(u);
32551
- oe(() => {
32576
+ se(() => {
32552
32577
  p.current = u;
32553
32578
  }, [u]);
32554
32579
  const g = j(/* @__PURE__ */ new Map()), y = ne(
@@ -32569,9 +32594,9 @@ function dae({
32569
32594
  () => new Set(v),
32570
32595
  [v]
32571
32596
  ), x = j(v);
32572
- oe(() => {
32597
+ se(() => {
32573
32598
  x.current = v;
32574
- }, [v]), oe(() => {
32599
+ }, [v]), se(() => {
32575
32600
  if (v.length !== 0 && (u === null || !w.has(u))) {
32576
32601
  const _ = u === null ? v.find((S) => c.has(S)) : void 0;
32577
32602
  h(_ ?? v[0]);
@@ -32673,7 +32698,7 @@ function pae({
32673
32698
  enabled: i = !0
32674
32699
  }) {
32675
32700
  const r = j(/* @__PURE__ */ new Set()), o = j(/* @__PURE__ */ new Set()), s = j(/* @__PURE__ */ new Set()), a = j(null), l = j(t);
32676
- l.current = t, oe(() => {
32701
+ l.current = t, se(() => {
32677
32702
  if (s.current = new Set(e), !t || !i) return;
32678
32703
  let c = !1;
32679
32704
  for (const d of e)
@@ -32685,7 +32710,7 @@ function pae({
32685
32710
  d.has(u) && (f.push(u), r.current.add(u));
32686
32711
  o.current.clear(), f.length > 0 && l.current?.(f);
32687
32712
  }, n)));
32688
- }, [e, t, n, i]), oe(
32713
+ }, [e, t, n, i]), se(
32689
32714
  () => () => {
32690
32715
  a.current && clearTimeout(a.current), a.current = null;
32691
32716
  },
@@ -32709,7 +32734,7 @@ function gae({
32709
32734
  children: a
32710
32735
  }) {
32711
32736
  const l = j(null), c = j([]), d = j(null), f = j(e), u = j(null);
32712
- oe(() => {
32737
+ se(() => {
32713
32738
  const g = l.current;
32714
32739
  if (!g) return;
32715
32740
  const y = g.parentElement;
@@ -32724,7 +32749,7 @@ function gae({
32724
32749
  return b.observe(y), w(), () => {
32725
32750
  b.disconnect(), clearTimeout(v);
32726
32751
  };
32727
- }, []), oe(() => {
32752
+ }, []), se(() => {
32728
32753
  const g = l.current;
32729
32754
  if (!g) return;
32730
32755
  const y = g.parentElement?.querySelector(".f0-graph") ?? g;
@@ -32745,7 +32770,7 @@ function gae({
32745
32770
  },
32746
32771
  [o]
32747
32772
  );
32748
- return oe(() => {
32773
+ return se(() => {
32749
32774
  const g = l.current;
32750
32775
  if (!g) return;
32751
32776
  const y = g.getContext("2d");
@@ -33008,7 +33033,7 @@ function _ae(e) {
33008
33033
  onRenderedNodesChange: V,
33009
33034
  enableNodeWindowing: ie,
33010
33035
  nodeWindowPadding: J,
33011
- loadVisibleNodeData: se,
33036
+ loadVisibleNodeData: oe,
33012
33037
  visibleDataDebounceMs: q,
33013
33038
  layoutEngine: G,
33014
33039
  controlLabels: le,
@@ -33024,24 +33049,24 @@ function _ae(e) {
33024
33049
  []
33025
33050
  ), He = F ? kae : xae, Le = r !== void 0 && o !== void 0, et = j([]).current, kt = j(
33026
33051
  async () => []
33027
- ).current, ft = cae({
33052
+ ).current, ut = cae({
33028
33053
  rootNodes: Le ? r : et,
33029
33054
  loadChildren: Le ? o : kt
33030
- }), ut = Dse({
33055
+ }), ht = Dse({
33031
33056
  initialNodes: n ?? [],
33032
33057
  initialEdges: i ?? [],
33033
33058
  deferredNodes: Le ? void 0 : s
33034
- }), Rt = j(ut.deferredStatus);
33035
- oe(() => {
33036
- const nt = Rt.current, gt = ut.deferredStatus;
33037
- Rt.current = gt, nt !== "resolved" && gt === "resolved" && a?.(), nt !== "error" && gt === "error" && ut.error && l?.(ut.error);
33059
+ }), Rt = j(ht.deferredStatus);
33060
+ se(() => {
33061
+ const nt = Rt.current, gt = ht.deferredStatus;
33062
+ Rt.current = gt, nt !== "resolved" && gt === "resolved" && a?.(), nt !== "error" && gt === "error" && ht.error && l?.(ht.error);
33038
33063
  }, [
33039
- ut.deferredStatus,
33040
- ut.error,
33064
+ ht.deferredStatus,
33065
+ ht.error,
33041
33066
  a,
33042
33067
  l
33043
33068
  ]);
33044
- const vt = Le ? ft.nodes : s ? ut.mergedNodes : n ?? [], pe = Le ? i : s ? ut.mergedEdges : i, { roots: fe, nodeMap: he } = fae(vt), Se = j(null), _e = j(null), Oe = j(
33069
+ const vt = Le ? ut.nodes : s ? ht.mergedNodes : n ?? [], pe = Le ? i : s ? ht.mergedEdges : i, { roots: fe, nodeMap: he } = fae(vt), Se = j(null), _e = j(null), Oe = j(
33045
33070
  null
33046
33071
  ), {
33047
33072
  expandedNodes: rt,
@@ -33054,7 +33079,7 @@ function _ae(e) {
33054
33079
  roots: fe,
33055
33080
  nodeMap: he,
33056
33081
  isLazyMode: Le,
33057
- lazyTree: ft,
33082
+ lazyTree: ut,
33058
33083
  controlledExpanded: g,
33059
33084
  defaultExpandedNodes: y,
33060
33085
  defaultExpandDepth: v,
@@ -33063,11 +33088,11 @@ function _ae(e) {
33063
33088
  }), Ae = j(null), Ue = j(
33064
33089
  () => {
33065
33090
  }
33066
- ), Ke = Q(() => () => Ae.current, []), ct = Q(
33091
+ ), Ke = Q(() => () => Ae.current, []), dt = Q(
33067
33092
  () => (nt) => Ue.current(nt),
33068
33093
  []
33069
33094
  ), {
33070
- zoomLevel: ht,
33095
+ zoomLevel: at,
33071
33096
  viewportReady: Wt,
33072
33097
  handleViewportChange: ln,
33073
33098
  handleZoomIn: mn,
@@ -33086,14 +33111,14 @@ function _ae(e) {
33086
33111
  onViewportChange: $,
33087
33112
  nodeWindowingActive: ie ?? !1,
33088
33113
  getContentBounds: Ke,
33089
- getNodePosition: ct,
33114
+ getNodePosition: dt,
33090
33115
  viewportInset: I
33091
33116
  }), Xn = (ie ?? !1) && Wt, {
33092
33117
  selectedNodes: sr,
33093
33118
  focusedNodeId: Re,
33094
33119
  setFocusedNodeId: Be,
33095
33120
  focusedNodeIdRef: Qe,
33096
- registerNodeRef: at,
33121
+ registerNodeRef: lt,
33097
33122
  nodeRefsMapRef: ar,
33098
33123
  flatVisibleOrderRef: id,
33099
33124
  selectNode: Or,
@@ -33139,7 +33164,7 @@ function _ae(e) {
33139
33164
  nodeWidthProp: O,
33140
33165
  nodeHeightProp: D,
33141
33166
  layoutEngineProp: G,
33142
- zoomLevel: ht,
33167
+ zoomLevel: at,
33143
33168
  direction: ue,
33144
33169
  controlLabels: le,
33145
33170
  hoveredEdgeId: re,
@@ -33165,13 +33190,13 @@ function _ae(e) {
33165
33190
  expandedNodesRef: it,
33166
33191
  nodeRefsMapRef: ar
33167
33192
  });
33168
- oe(() => {
33193
+ se(() => {
33169
33194
  B?.(Dr.length);
33170
- }, [Dr.length, B]), oe(() => {
33195
+ }, [Dr.length, B]), se(() => {
33171
33196
  V?.(sl);
33172
33197
  }, [sl, V]), pae({
33173
33198
  nodeIds: Mr,
33174
- loadVisibleNodeData: se,
33199
+ loadVisibleNodeData: oe,
33175
33200
  debounceMs: q,
33176
33201
  enabled: !ie || Wt
33177
33202
  });
@@ -33186,7 +33211,7 @@ function _ae(e) {
33186
33211
  ll.current = gt ? { nodes: gt, maxZoom: Math.min(CC, p) } : void 0;
33187
33212
  }
33188
33213
  const Ys = ll.current, Xs = j(!1);
33189
- oe(() => {
33214
+ se(() => {
33190
33215
  Xs.current || Mr.length === 0 || (Xs.current = !0, W.fitView(
33191
33216
  eo ? {
33192
33217
  ...Ys,
@@ -33226,7 +33251,7 @@ function _ae(e) {
33226
33251
  const zi = j(
33227
33252
  null
33228
33253
  );
33229
- oe(
33254
+ se(
33230
33255
  () => () => {
33231
33256
  zi.current && clearTimeout(zi.current);
33232
33257
  },
@@ -33241,7 +33266,7 @@ function _ae(e) {
33241
33266
  },
33242
33267
  [Or, A, he]
33243
33268
  );
33244
- oe(() => {
33269
+ se(() => {
33245
33270
  if (!C) return;
33246
33271
  const nt = C, gt = setTimeout(
33247
33272
  () => ro.current(nt),
@@ -33260,21 +33285,21 @@ function _ae(e) {
33260
33285
  []
33261
33286
  );
33262
33287
  const Ln = Q(
33263
- () => ({ zoomLevel: ht, direction: ue }),
33264
- [ht, ue]
33288
+ () => ({ zoomLevel: at, direction: ue }),
33289
+ [at, ue]
33265
33290
  ), Xo = Q(() => ({ expandedNodes: rt }), [rt]), Jo = Q(
33266
33291
  () => ({ selectedNodes: sr, highlightedNodes: to }),
33267
33292
  [sr, to]
33268
33293
  ), oo = Q(
33269
33294
  () => ({ toggleExpand: st, selectNode: Or, expandAll: Dt, collapseAll: ve }),
33270
33295
  [st, Or, Dt, ve]
33271
- ), Zs = !Le && s !== void 0 && ut.deferredStatus === "loading", sd = Dr.length > Ase, ad = Q(
33296
+ ), Zs = !Le && s !== void 0 && ht.deferredStatus === "loading", sd = Dr.length > Ase, ad = Q(
33272
33297
  () => ({
33273
33298
  renderEdge: F,
33274
33299
  // Only publish a Set when the consumer opted in via `nodeTagTypes`.
33275
33300
  visibleTagTypes: K ? me : void 0,
33276
33301
  deferredLoading: Zs || void 0,
33277
- dataLoadingEnabled: se !== void 0 || void 0,
33302
+ dataLoadingEnabled: oe !== void 0 || void 0,
33278
33303
  tagRowHeight: no,
33279
33304
  largeGraph: sd
33280
33305
  }),
@@ -33283,13 +33308,13 @@ function _ae(e) {
33283
33308
  K,
33284
33309
  me,
33285
33310
  Zs,
33286
- se,
33311
+ oe,
33287
33312
  sd,
33288
33313
  no
33289
33314
  ]
33290
33315
  ), C1 = Q(
33291
- () => ({ focusedNodeId: Re, setFocusedNodeId: Be, registerNodeRef: at }),
33292
- [Re, Be, at]
33316
+ () => ({ focusedNodeId: Re, setFocusedNodeId: Be, registerNodeRef: lt }),
33317
+ [Re, Be, lt]
33293
33318
  );
33294
33319
  return /* @__PURE__ */ m(s2.Provider, { value: oo, children: /* @__PURE__ */ m(l2.Provider, { value: ad, children: /* @__PURE__ */ m(c2.Provider, { value: C1, children: /* @__PURE__ */ m(i2.Provider, { value: Ln, children: /* @__PURE__ */ m(r2.Provider, { value: Xo, children: /* @__PURE__ */ m(o2.Provider, { value: Jo, children: /* @__PURE__ */ m(
33295
33320
  gae,
@@ -33306,7 +33331,7 @@ function _ae(e) {
33306
33331
  tabIndex: 0,
33307
33332
  "aria-label": le?.graphCanvas ?? be.graph.canvas,
33308
33333
  onKeyDown: od,
33309
- "data-zoom-level": ht,
33334
+ "data-zoom-level": at,
33310
33335
  className: "f0-graph relative h-full w-full outline-none",
33311
33336
  children: [
33312
33337
  /* @__PURE__ */ m(
@@ -33673,7 +33698,7 @@ const Dae = Xr({
33673
33698
  },
33674
33699
  [S, f]
33675
33700
  ), C = qj(), T = Vy(), A = C || T?.largeGraph === !0, M = j(e), I = M.current !== e && (e === "dot" || M.current === "dot"), N = I ? M.current : e;
33676
- oe(() => {
33701
+ se(() => {
33677
33702
  const Y = window.setTimeout(() => {
33678
33703
  M.current = e;
33679
33704
  }, 132);
@@ -34225,10 +34250,10 @@ function Uae(e, t, n) {
34225
34250
  );
34226
34251
  G.size !== q.size && d(G);
34227
34252
  }
34228
- const ie = Y.map((q) => H.get(q.id)).filter((q) => !!q), J = new Set(ie.map((q) => q.id)), se = [...H.values()].filter(
34253
+ const ie = Y.map((q) => H.get(q.id)).filter((q) => !!q), J = new Set(ie.map((q) => q.id)), oe = [...H.values()].filter(
34229
34254
  (q) => !J.has(q.id)
34230
34255
  );
34231
- return [...ie, ...se];
34256
+ return [...ie, ...oe];
34232
34257
  });
34233
34258
  },
34234
34259
  [k]
@@ -34247,7 +34272,7 @@ function Uae(e, t, n) {
34247
34272
  const ie = await Promise.all(
34248
34273
  V.map((J) => E(J.id))
34249
34274
  );
34250
- V.forEach((J) => Y.add(J.id)), H = V.flatMap((J, se) => ie[se]);
34275
+ V.forEach((J) => Y.add(J.id)), H = V.flatMap((J, oe) => ie[oe]);
34251
34276
  }
34252
34277
  const Z = r.current.focusOnEntry;
34253
34278
  if (Z && r.current.loadNodePath)
@@ -34270,11 +34295,11 @@ function Uae(e, t, n) {
34270
34295
  v(!1);
34271
34296
  }
34272
34297
  }, [S, _, E, A]), P = JSON.stringify(e.currentFilters), L = JSON.stringify(e.currentNavigationFilters);
34273
- oe(() => {
34298
+ se(() => {
34274
34299
  D();
34275
34300
  }, [P, L, D]);
34276
34301
  const z = t.liveUpdate?.version, U = j(z);
34277
- return oe(() => {
34302
+ return se(() => {
34278
34303
  const $ = r.current.liveUpdate;
34279
34304
  !$ || $.version === U.current || (U.current = $.version, O($.upsert ?? [], $.remove ?? []));
34280
34305
  }, [z, O]), {
@@ -34362,8 +34387,8 @@ const qae = ({
34362
34387
  await Y(ye), V.current?.clearSelection(), V.current?.focusNode(ye);
34363
34388
  },
34364
34389
  [Y]
34365
- ), J = j(void 0), se = j(void 0), q = j(!1);
34366
- oe(() => {
34390
+ ), J = j(void 0), oe = j(void 0), q = j(!1);
34391
+ se(() => {
34367
34392
  if (B) return;
34368
34393
  const ye = Lae({
34369
34394
  isInitialLoading: B,
@@ -34371,12 +34396,12 @@ const qae = ({
34371
34396
  revealNodeId: p,
34372
34397
  lastRevealed: J.current,
34373
34398
  revealNonce: g,
34374
- lastNonce: se.current
34399
+ lastNonce: oe.current
34375
34400
  });
34376
- ye.consumeInitial && (q.current = !0), J.current = ye.lastRevealed, se.current = ye.lastNonce, ye.revealId && ie(ye.revealId);
34401
+ ye.consumeInitial && (q.current = !0), J.current = ye.lastRevealed, oe.current = ye.lastNonce, ye.revealId && ie(ye.revealId);
34377
34402
  }, [p, g, ie, B]);
34378
34403
  const G = j(e.setCurrentSearch);
34379
- G.current = e.setCurrentSearch, oe(() => (G.current(void 0), () => G.current(void 0)), []);
34404
+ G.current = e.setCurrentSearch, se(() => (G.current(void 0), () => G.current(void 0)), []);
34380
34405
  const { settings: le } = Uo(), de = le.visualization.graph, ge = s ? [...s] : [], be = new Set(a ?? ge), W = new Set(l ?? []), re = new Set(
34381
34406
  de?.hidden ?? ge.filter((ye) => !be.has(ye))
34382
34407
  ), ae = de?.order ?? ge, ue = ge.sort(
@@ -34591,7 +34616,7 @@ const Jae = ({
34591
34616
  mergedFilters: b,
34592
34617
  summaries: k
34593
34618
  } = l;
34594
- return oe(() => {
34619
+ return se(() => {
34595
34620
  i?.(t.id, {
34596
34621
  data: c,
34597
34622
  search: d,
@@ -34630,11 +34655,11 @@ function Zae(e, t = {}) {
34630
34655
  if (!Q(() => n && n.length > 0, [n]))
34631
34656
  throw new Error("Lanes has not been configured on data source");
34632
34657
  const [r, o] = ee({}), s = j({}), a = j(!1), l = j(!1);
34633
- oe(() => (l.current = !0, () => {
34658
+ se(() => (l.current = !0, () => {
34634
34659
  l.current = !1;
34635
34660
  }), []);
34636
34661
  const c = j(t.onError);
34637
- oe(() => {
34662
+ se(() => {
34638
34663
  c.current = t.onError;
34639
34664
  });
34640
34665
  const d = ne((g) => {
@@ -34710,14 +34735,14 @@ const Qae = (e) => {
34710
34735
  onSelectItems: e.onSelectItems,
34711
34736
  selectedState: e.source.defaultSelectedItems
34712
34737
  });
34713
- return oe(() => {
34738
+ return se(() => {
34714
34739
  e.onHookUpdate(t);
34715
34740
  }, [t]), null;
34716
34741
  }, tle = (e, t, n) => {
34717
34742
  const [i, r] = ee(/* @__PURE__ */ new Map()), [o, s] = ee({ selectItemsStatus: /* @__PURE__ */ new Map(), clearCallback: /* @__PURE__ */ new Map() }), a = ne(() => {
34718
34743
  o.clearCallback.forEach((c) => c());
34719
34744
  }, [o.clearCallback]);
34720
- oe(() => {
34745
+ se(() => {
34721
34746
  const c = Object.fromEntries(
34722
34747
  o.selectItemsStatus
34723
34748
  );
@@ -34869,7 +34894,7 @@ function ple({
34869
34894
  yO({
34870
34895
  ref: d,
34871
34896
  payload: { kind: e.type ?? "list-card", id: e.id, data: e.data }
34872
- }), oe(() => {
34897
+ }), se(() => {
34873
34898
  if (d.current)
34874
34899
  return nc({
34875
34900
  element: d.current,
@@ -35169,7 +35194,7 @@ function kle({
35169
35194
  id: e,
35170
35195
  accepts: ["list-card"]
35171
35196
  } : void 0
35172
- ), oe(() => {
35197
+ ), se(() => {
35173
35198
  const M = () => {
35174
35199
  const I = performance.now(), N = v.current ?? I, O = (I - N) / 1e3;
35175
35200
  v.current = I;
@@ -35183,7 +35208,7 @@ function kle({
35183
35208
  return g.current == null && w && y.current !== 0 && (v.current = null, g.current = window.requestAnimationFrame(M)), () => {
35184
35209
  g.current != null && (window.cancelAnimationFrame(g.current), g.current = null), v.current = null, y.current = 0;
35185
35210
  };
35186
- }, [w]), oe(() => {
35211
+ }, [w]), se(() => {
35187
35212
  if (!e) return;
35188
35213
  const M = () => {
35189
35214
  g.current == null && y.current !== 0 && (v.current = null, g.current = window.requestAnimationFrame(() => {
@@ -35220,15 +35245,15 @@ function kle({
35220
35245
  const K = F.getBoundingClientRect(), Y = N.current.input?.clientY, H = N.current.input?.clientX;
35221
35246
  if (typeof Y == "number" && typeof H == "number") {
35222
35247
  const Z = K.top + K.height / 2, B = Y - Z, V = 24, ie = 300, J = K.height / 2;
35223
- let se = 0;
35248
+ let oe = 0;
35224
35249
  if (Math.abs(B) > V) {
35225
35250
  const le = Math.min(
35226
35251
  Math.abs(B) - V,
35227
35252
  J
35228
35253
  ) / J;
35229
- se = Math.sign(B) * ie * le;
35254
+ oe = Math.sign(B) * ie * le;
35230
35255
  }
35231
- if (y.current = se, M(), N.current.dropTargets.some((G) => G.data.type === "list-card-target"))
35256
+ if (y.current = oe, M(), N.current.dropTargets.some((G) => G.data.type === "list-card-target"))
35232
35257
  (b !== null || _ !== null) && (k(null), S(null));
35233
35258
  else {
35234
35259
  const G = o.current;
@@ -35341,7 +35366,7 @@ function kle({
35341
35366
  r.getKey,
35342
35367
  b,
35343
35368
  _
35344
- ]), oe(() => {
35369
+ ]), se(() => {
35345
35370
  const M = () => {
35346
35371
  const O = o.current;
35347
35372
  return O ? (p.current = O.querySelector(
@@ -35357,7 +35382,7 @@ function kle({
35357
35382
  return N.observe(I, { subtree: !0, childList: !0 }), () => N.disconnect();
35358
35383
  }, [e]), _k(({ phase: M }) => {
35359
35384
  M === "start" && x(!0), (M === "drop" || M === "cancel") && (x(!1), C(!1), k(null), S(null), A(-1));
35360
- }), oe(() => {
35385
+ }), se(() => {
35361
35386
  const M = (I) => {
35362
35387
  if (!e) return;
35363
35388
  const N = I.detail;
@@ -35458,7 +35483,7 @@ function LC(e) {
35458
35483
  const { lanes: t, renderCard: n, getKey: i, className: r, dnd: o, onCreate: s } = e, a = e.heightMode ?? "fill", l = a === "content", [c, d] = ee(
35459
35484
  () => t
35460
35485
  ), f = j(""), u = j(null);
35461
- oe(() => {
35486
+ se(() => {
35462
35487
  const S = t.map(
35463
35488
  (E) => `${E.id}:[${E.items.map((C, T) => i(C, T, E.id)).join(",")}]`
35464
35489
  ).join("|");
@@ -35472,7 +35497,7 @@ function LC(e) {
35472
35497
  const [h, p] = ee(!1), g = j(null), y = j(null), v = j(null), w = j(null), x = j(0), b = j(null);
35473
35498
  _k(({ phase: S }) => {
35474
35499
  S === "start" && p(!0), (S === "drop" || S === "cancel") && p(!1);
35475
- }), oe(() => {
35500
+ }), se(() => {
35476
35501
  const S = () => {
35477
35502
  const A = performance.now(), M = b.current ?? A, I = (A - M) / 1e3;
35478
35503
  b.current = A;
@@ -35570,7 +35595,7 @@ function LC(e) {
35570
35595
  return K && d((Y) => {
35571
35596
  const H = Y.map((B) => {
35572
35597
  if (B.id !== C) return B;
35573
- const V = [...B.items], ie = V.findIndex((J, se) => String(i(J, se, C)) === String(T));
35598
+ const V = [...B.items], ie = V.findIndex((J, oe) => String(i(J, oe, C)) === String(T));
35574
35599
  return ie !== -1 && V.splice(ie, 1, K), { ...B, items: V };
35575
35600
  }), Z = H.map(
35576
35601
  (B) => `${B.id}:[${B.items.map((V, ie) => i(V, ie, B.id)).join(",")}]`
@@ -35751,7 +35776,7 @@ const Av = ({
35751
35776
  () => Object.values(p).some((H) => H.isInitialLoading),
35752
35777
  [p]
35753
35778
  );
35754
- oe(() => {
35779
+ se(() => {
35755
35780
  d({
35756
35781
  totalItems: w,
35757
35782
  filters: a.currentFilters,
@@ -35787,7 +35812,7 @@ const Av = ({
35787
35812
  (H, Z, B, V) => {
35788
35813
  const ie = String(
35789
35814
  g ? g(H, Z) : H?.id ?? Z
35790
- ), J = a.selectable ? a.selectable(H) : H.id, se = S && V ? S.get(V) : void 0, q = (typeof J == "string" || typeof J == "number") && se && se?.selectedItems.has(J), G = a.itemUrl ? a.itemUrl(H) : void 0, le = a.itemOnClick ? a.itemOnClick(H) : void 0;
35815
+ ), J = a.selectable ? a.selectable(H) : H.id, oe = S && V ? S.get(V) : void 0, q = (typeof J == "string" || typeof J == "number") && oe && oe?.selectedItems.has(J), G = a.itemUrl ? a.itemUrl(H) : void 0, le = a.itemOnClick ? a.itemOnClick(H) : void 0;
35791
35816
  return /* @__PURE__ */ m(
35792
35817
  ple,
35793
35818
  {
@@ -35808,7 +35833,7 @@ const Av = ({
35808
35833
  selected: q,
35809
35834
  "data-testid": `kanban-card-${String(H.id)}`,
35810
35835
  onSelect: (de) => {
35811
- se && se.handleSelectItemChange(H, de);
35836
+ oe && oe.handleSelectItemChange(H, de);
35812
35837
  },
35813
35838
  onClick: le,
35814
35839
  link: G
@@ -35863,7 +35888,7 @@ const Av = ({
35863
35888
  });
35864
35889
  }, [A, e, p, I]), z = Q(() => A ? L.map((H) => {
35865
35890
  const B = (f ? f(H) : e).filter((J) => P.has(J.id)).map((J) => {
35866
- const se = p[J.id], G = (se?.data?.type === "grouped" ? se.data.groups.find((le) => le.key === H) : void 0)?.records ?? [];
35891
+ const oe = p[J.id], G = (oe?.data?.type === "grouped" ? oe.data.groups.find((le) => le.key === H) : void 0)?.records ?? [];
35867
35892
  return {
35868
35893
  id: J.id,
35869
35894
  title: J.title,
@@ -35872,11 +35897,11 @@ const Av = ({
35872
35897
  color: J.color,
35873
35898
  total: G.length,
35874
35899
  hasMore: !1,
35875
- loading: se ? se.isInitialLoading : !0,
35900
+ loading: oe ? oe.isInitialLoading : !0,
35876
35901
  loadingMore: !1,
35877
35902
  fetchMore: void 0
35878
35903
  };
35879
- }), V = D ? D.label(H, a.currentFilters) : H, ie = D?.itemCount ? D.itemCount(H, a.currentFilters) : B.reduce((J, se) => J + se.items.length, 0);
35904
+ }), V = D ? D.label(H, a.currentFilters) : H, ie = D?.itemCount ? D.itemCount(H, a.currentFilters) : B.reduce((J, oe) => J + oe.items.length, 0);
35880
35905
  return { key: H, label: V, itemCount: ie, lanes: B };
35881
35906
  }) : [], [
35882
35907
  A,
@@ -35895,7 +35920,7 @@ const Av = ({
35895
35920
  P.has(B.id) || H.add(B.id);
35896
35921
  return Array.from(H);
35897
35922
  }, [A, f, L, P]);
35898
- oe(() => {
35923
+ se(() => {
35899
35924
  !M || !A || (N != null && !D && console.error(
35900
35925
  `[OneDataCollection/Kanban] currentGrouping.field "${String(N)}" is not a key of grouping.groupBy — the board will render without groups.`
35901
35926
  ), (O === "infinite-scroll" || O === "pages") && console.warn(
@@ -35950,8 +35975,8 @@ const Av = ({
35950
35975
  let B = 0, V = 0;
35951
35976
  for (const J of H.lanes) {
35952
35977
  if (J.id === void 0) continue;
35953
- const se = S.get(J.id)?.groupAllSelectedStatus[H.key];
35954
- B += se?.selectedCount ?? 0, V += se?.unselectedCount ?? 0;
35978
+ const oe = S.get(J.id)?.groupAllSelectedStatus[H.key];
35979
+ B += oe?.selectedCount ?? 0, V += oe?.unselectedCount ?? 0;
35955
35980
  }
35956
35981
  const ie = B === 0 ? !1 : V === 0 ? !0 : "indeterminate";
35957
35982
  return /* @__PURE__ */ R(
@@ -35975,8 +36000,8 @@ const Av = ({
35975
36000
  itemCount: H.itemCount,
35976
36001
  selectable: Z,
35977
36002
  select: ie,
35978
- onSelectChange: (J) => H.lanes.forEach((se) => {
35979
- se.id !== void 0 && S.get(se.id)?.handleSelectGroupChange(H.key, J);
36003
+ onSelectChange: (J) => H.lanes.forEach((oe) => {
36004
+ oe.id !== void 0 && S.get(oe.id)?.handleSelectGroupChange(H.key, J);
35980
36005
  }),
35981
36006
  open: K[H.key],
35982
36007
  onOpenChange: (J) => Y(H.key, J)
@@ -36248,7 +36273,7 @@ const Av = ({
36248
36273
  o(C);
36249
36274
  }
36250
36275
  });
36251
- oe(() => {
36276
+ se(() => {
36252
36277
  r({
36253
36278
  totalItems: l?.total || a.records.length,
36254
36279
  filters: n.currentFilters,
@@ -36978,7 +37003,7 @@ const II = "dc_", Zn = {
36978
37003
  setSelectedPresetId: h
36979
37004
  }) => {
36980
37005
  const p = !e, g = a.length > 1, [y, v] = ee(!1);
36981
- oe(() => {
37006
+ se(() => {
36982
37007
  if (!p || !t || y) return;
36983
37008
  const b = qle(
36984
37009
  typeof window < "u" ? window.location.search : "",
@@ -37575,7 +37600,7 @@ const yce = () => {
37575
37600
  sortings: F
37576
37601
  } = e, [K, Y] = ee(g), [H, Z] = ee(
37577
37602
  void 0
37578
- ), [B, V] = ee([]), [ie, J] = ee(null), [se] = ee(() => {
37603
+ ), [B, V] = ee([]), [ie, J] = ee(null), [oe] = ee(() => {
37579
37604
  if (typeof window > "u") return null;
37580
37605
  const xe = new URLSearchParams(window.location.search);
37581
37606
  return lce(xe.get(Bb));
@@ -37606,9 +37631,9 @@ const yce = () => {
37606
37631
  ready: ue,
37607
37632
  measureKey: K
37608
37633
  });
37609
- oe(() => {
37634
+ se(() => {
37610
37635
  me && ce(!1);
37611
- }, [K]), oe(() => {
37636
+ }, [K]), se(() => {
37612
37637
  ye && console.warn(
37613
37638
  '[OneDataCollection] perPage: "auto" requires the fullHeight prop — falling back to the default page size.'
37614
37639
  );
@@ -37626,11 +37651,11 @@ const yce = () => {
37626
37651
  de,
37627
37652
  ge,
37628
37653
  Le
37629
- ]), kt = j(U), ft = j(P), ut = j(de), { emitSortingChange: Rt } = zB({
37654
+ ]), kt = j(U), ut = j(P), ht = j(de), { emitSortingChange: Rt } = zB({
37630
37655
  defaultSorting: kt.current,
37631
37656
  currentVisualization: re ? K : void 0
37632
37657
  });
37633
- oe(() => {
37658
+ se(() => {
37634
37659
  Rt(U);
37635
37660
  }, [Rt, U]);
37636
37661
  const vt = Q(
@@ -37690,38 +37715,38 @@ const yce = () => {
37690
37715
  (xe) => !("type" in xe && xe.type === "separator")
37691
37716
  )
37692
37717
  };
37693
- }, [ve, Ue]), [ct, ht] = ee(!1), [Wt, ln] = ee(0), [mn, Pn] = ee(!1), [ci, cn] = ee("idle"), [Gn, Yn] = ee(!1), eo = j(null), Xn = j(null), sr = j(null), Re = j(null), Be = j(null), Qe = gce(
37718
+ }, [ve, Ue]), [dt, at] = ee(!1), [Wt, ln] = ee(0), [mn, Pn] = ee(!1), [ci, cn] = ee("idle"), [Gn, Yn] = ee(!1), eo = j(null), Xn = j(null), sr = j(null), Re = j(null), Be = j(null), Qe = gce(
37694
37719
  sr,
37695
37720
  Re,
37696
37721
  Be
37697
- ), at = (xe) => o !== void 0 && o !== "idle" && !(o === "success" && xe), ar = at(
37722
+ ), lt = (xe) => o !== void 0 && o !== "idle" && !(o === "success" && xe), ar = lt(
37698
37723
  Gn
37699
- ) ? o : ci, id = at(
37724
+ ) ? o : ci, id = lt(
37700
37725
  Gn
37701
37726
  ), Or = j(!1);
37702
37727
  Or.current = id;
37703
37728
  const Go = o !== void 0, to = ne(
37704
37729
  (xe, Fe = !0) => {
37705
37730
  Xn.current && clearTimeout(Xn.current), Xn.current = setTimeout(() => {
37706
- Fe && ht(!1), xe(), Xn.current = null;
37731
+ Fe && at(!1), xe(), Xn.current = null;
37707
37732
  }, bce);
37708
37733
  },
37709
37734
  // setShowActionBar is a stable setState ref — safe to omit from deps.
37710
37735
  // eslint-disable-next-line react-hooks/exhaustive-deps
37711
37736
  []
37712
37737
  );
37713
- oe(() => () => {
37738
+ se(() => () => {
37714
37739
  Xn.current && clearTimeout(Xn.current);
37715
37740
  }, []);
37716
37741
  const ol = j(void 0);
37717
- oe(() => {
37742
+ se(() => {
37718
37743
  const xe = ol.current;
37719
37744
  ol.current = o, o === "success" && xe !== "success" ? (Yn(!1), to(() => {
37720
37745
  tt?.(), Yn(!0);
37721
37746
  })) : xe === "success" && o !== "success" && (Xn.current && (clearTimeout(Xn.current), Xn.current = null), Yn(!1));
37722
37747
  }, [o, tt, to]);
37723
37748
  const Dr = ze(), Yo = Q(() => D === !0 ? (xe) => xe !== void 0 ? `${xe} ${Dr.collections.itemsCount}` : null : D || void 0, [D, Dr]), rd = (xe, Fe, _t) => {
37724
- n?.(xe, Fe, _t), ht(
37749
+ n?.(xe, Fe, _t), at(
37725
37750
  !!xe.allSelected || xe.itemsStatus.some((Zo) => Zo.checked)
37726
37751
  ), cn((Zo) => Zo === "error" ? "idle" : Zo), ln(xe.selectedCount), st(() => Fe), Pn(xe.allSelected === !0);
37727
37752
  const At = e.bulkActions ? e.bulkActions(xe) : void 0, Ci = (Zo) => {
@@ -37783,7 +37808,7 @@ const yce = () => {
37783
37808
  value: !!b,
37784
37809
  delay: 100
37785
37810
  });
37786
- oe(() => {
37811
+ se(() => {
37787
37812
  io(!1);
37788
37813
  }, [
37789
37814
  de,
@@ -37816,16 +37841,16 @@ const yce = () => {
37816
37841
  (xe) => ({
37817
37842
  filters: xe.filter ?? {},
37818
37843
  sortings: xe.sortings !== void 0 ? xe.sortings : kt.current,
37819
- grouping: xe.grouping !== void 0 ? xe.grouping : ft.current,
37844
+ grouping: xe.grouping !== void 0 ? xe.grouping : ut.current,
37820
37845
  visualization: xe.visualization ?? 0,
37821
37846
  settings: xe.settings !== void 0 ? xe.settings : VC()
37822
37847
  }),
37823
37848
  []
37824
37849
  ), Jo = j(null), oo = j(!1), Zs = j(null), sd = ne(
37825
37850
  () => ({
37826
- filters: ut.current,
37851
+ filters: ht.current,
37827
37852
  sortings: kt.current,
37828
- grouping: ft.current,
37853
+ grouping: ut.current,
37829
37854
  visualization: 0,
37830
37855
  settings: VC()
37831
37856
  }),
@@ -37867,7 +37892,7 @@ const yce = () => {
37867
37892
  Xo
37868
37893
  ]
37869
37894
  ), nt = j(null);
37870
- oe(() => {
37895
+ se(() => {
37871
37896
  const xe = H ? Rn.find((_t) => _t.id === H) : void 0;
37872
37897
  if (!xe) {
37873
37898
  nt.current = null;
@@ -37988,15 +38013,15 @@ const yce = () => {
37988
38013
  },
37989
38014
  [B]
37990
38015
  ), [E1, K3] = ee(!1);
37991
- oe(() => {
38016
+ se(() => {
37992
38017
  if (!E1) return;
37993
38018
  const xe = setTimeout(
37994
38019
  () => K3(!1),
37995
38020
  wce
37996
38021
  );
37997
38022
  return () => clearTimeout(xe);
37998
- }, [E1]), oe(() => {
37999
- if (se && (J({ mode: "create", shared: se }), typeof window < "u")) {
38023
+ }, [E1]), se(() => {
38024
+ if (oe && (J({ mode: "create", shared: oe }), typeof window < "u")) {
38000
38025
  const xe = new URLSearchParams(window.location.search);
38001
38026
  xe.delete(Bb);
38002
38027
  const Fe = xe.toString();
@@ -38055,7 +38080,7 @@ const yce = () => {
38055
38080
  },
38056
38081
  c === !1
38057
38082
  );
38058
- oe(() => {
38083
+ se(() => {
38059
38084
  fh && gt === null && Bt(Ln);
38060
38085
  }, [fh, gt, Ln]), Qle({
38061
38086
  disabled: !!f,
@@ -38281,7 +38306,7 @@ const yce = () => {
38281
38306
  mD,
38282
38307
  {
38283
38308
  ref: eo,
38284
- isOpen: ct || ar === "loading" || ar === "success",
38309
+ isOpen: dt || ar === "loading" || ar === "success",
38285
38310
  status: ar,
38286
38311
  selectedNumber: Wt,
38287
38312
  primaryActions: Ke && "primary" in Ke ? Ke.primary : [],
@@ -38919,7 +38944,7 @@ function Vce({
38919
38944
  ), z = j(
38920
38945
  JSON.stringify(Mv(t.value))
38921
38946
  );
38922
- oe(() => {
38947
+ se(() => {
38923
38948
  const fe = JSON.stringify(Mv(t.value));
38924
38949
  fe !== z.current && (z.current = fe, O(I(t.value)));
38925
38950
  }, [t.value, I]);
@@ -39031,9 +39056,9 @@ function Vce({
39031
39056
  schema: ie,
39032
39057
  defaultValues: {},
39033
39058
  onSubmit: async () => ({ success: !0 })
39034
- }), se = e.createFormDefinition ?? J, q = e.updateFormDefinition ?? J, G = ne(
39059
+ }), oe = e.createFormDefinition ?? J, q = e.updateFormDefinition ?? J, G = ne(
39035
39060
  async (fe, he) => {
39036
- const Se = fe === "add" ? se : q;
39061
+ const Se = fe === "add" ? oe : q;
39037
39062
  let _e = Se;
39038
39063
  const Oe = (tt) => {
39039
39064
  _e = {
@@ -39066,7 +39091,7 @@ function Vce({
39066
39091
  e.createFormDefinition,
39067
39092
  M,
39068
39093
  A,
39069
- se,
39094
+ oe,
39070
39095
  q,
39071
39096
  c,
39072
39097
  f,
@@ -39209,14 +39234,14 @@ function Vce({
39209
39234
  return he ? B(he) : !0;
39210
39235
  },
39211
39236
  [Ce, B]
39212
- ), ft = e.itemHref, ut = ne(
39237
+ ), ut = e.itemHref, ht = ne(
39213
39238
  (fe) => {
39214
39239
  const he = Ce(fe);
39215
- if (!he || !ft) return;
39240
+ if (!he || !ut) return;
39216
39241
  const { __key: Se, ..._e } = he;
39217
- return ft(_e);
39242
+ return ut(_e);
39218
39243
  },
39219
- [Ce, ft]
39244
+ [Ce, ut]
39220
39245
  ), Rt = ne(
39221
39246
  (fe) => {
39222
39247
  if (!ae) return [];
@@ -39278,7 +39303,7 @@ function Vce({
39278
39303
  onRemoveRow: H ? void 0 : Le,
39279
39304
  isRemovePending: L,
39280
39305
  getRowActions: ae ? Rt : void 0,
39281
- getRowHref: fe ? ut : void 0,
39306
+ getRowHref: fe ? ht : void 0,
39282
39307
  editLabel: p,
39283
39308
  removeLabel: g,
39284
39309
  viewLabel: o.view
@@ -39361,7 +39386,7 @@ function qce({
39361
39386
  r,
39362
39387
  l
39363
39388
  ]);
39364
- oe(() => {
39389
+ se(() => {
39365
39390
  c && w();
39366
39391
  }, [c, w]);
39367
39392
  const x = ne(() => {
@@ -39489,7 +39514,7 @@ function Xce({
39489
39514
  const { forms: o } = ze(), s = BO(), a = s?.useUpload ?? e.useUpload, l = r ?? s?.initialFiles, c = s?.isLoadingInitialFiles ?? !1, d = Ya(), f = j(null), [u, h] = ee(!1), p = e.multiple ?? !1, [g, y] = ee(
39490
39515
  () => e5(l, t.value, p)
39491
39516
  ), v = j(l != null);
39492
- oe(() => {
39517
+ se(() => {
39493
39518
  v.current || l == null || !(p ? Array.isArray(t.value) && t.value.length > 0 : t.value) || (v.current = !0, y((V) => {
39494
39519
  const ie = V.filter((q) => q.file), J = new Set(
39495
39520
  ie.map((q) => q.value).filter((q) => q != null)
@@ -39504,9 +39529,9 @@ function Xce({
39504
39529
  }));
39505
39530
  }, [l, t.value, p]);
39506
39531
  const [w, x] = ee(null), b = o.file, k = g.length > 0, _ = !!a && g.some((B) => B.file && !B.value && !B.error), S = s?.registerUploadState;
39507
- oe(() => {
39532
+ se(() => {
39508
39533
  S?.(d, _);
39509
- }, [S, d, _]), oe(() => () => S?.(d, !1), [S, d]);
39534
+ }, [S, d, _]), se(() => () => S?.(d, !1), [S, d]);
39510
39535
  const C = !(p && e.maxFiles != null && g.length >= e.maxFiles) && (p || !k), T = e.accept ? e.accept.map(Ub).join(",") : void 0, A = Q(
39511
39536
  () => Gce(e.accept),
39512
39537
  [e.accept]
@@ -39552,7 +39577,7 @@ function Xce({
39552
39577
  "{{maxFiles}}",
39553
39578
  String(e.maxFiles)
39554
39579
  ) : null;
39555
- const se = [];
39580
+ const oe = [];
39556
39581
  for (const q of ie) {
39557
39582
  const G = M(q);
39558
39583
  if (G) {
@@ -39561,12 +39586,12 @@ function Xce({
39561
39586
  }
39562
39587
  a || console.warn(
39563
39588
  "[F0Form] No useUpload hook provided. Pass useUpload to <F0Form> or to the file field config."
39564
- ), se.push({
39589
+ ), oe.push({
39565
39590
  key: `${q.name}-${q.size}-${Date.now()}-${Math.random()}`,
39566
39591
  file: q
39567
39592
  });
39568
39593
  }
39569
- J !== null && x(J), se.length > 0 && y((q) => [...q, ...se]);
39594
+ J !== null && x(J), oe.length > 0 && y((q) => [...q, ...oe]);
39570
39595
  },
39571
39596
  [
39572
39597
  p,
@@ -39699,9 +39724,9 @@ function Xce({
39699
39724
  className: V > 0 ? "-mt-px" : void 0,
39700
39725
  entry: B,
39701
39726
  useUpload: B.file ? a : void 0,
39702
- onUploadComplete: (se) => U(B.key, se),
39727
+ onUploadComplete: (oe) => U(B.key, oe),
39703
39728
  onRemove: () => $(B.key),
39704
- onError: (se) => F(B.key, se),
39729
+ onError: (oe) => F(B.key, oe),
39705
39730
  disabled: e.disabled,
39706
39731
  position: J,
39707
39732
  translations: {
@@ -42368,7 +42393,7 @@ const Gfe = dP(YB), Yfe = ({ country: e }) => {
42368
42393
  selectCountryRef: s
42369
42394
  }) => {
42370
42395
  const a = ze(), [l, c] = ee(!1);
42371
- oe(() => {
42396
+ se(() => {
42372
42397
  if (s)
42373
42398
  return s.current = n, () => {
42374
42399
  s.current = null;
@@ -42552,43 +42577,43 @@ const uP = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
42552
42577
  [N, D]
42553
42578
  ), [L, z] = ee(
42554
42579
  () => QB(N) ?? D
42555
- ), U = j(L), $ = (se) => {
42556
- U.current = se, z(se), o?.(Gp(se));
42557
- }, F = (se) => {
42558
- const q = tz(se, U.current);
42559
- O(q), r?.(q, nz(se, U.current));
42580
+ ), U = j(L), $ = (oe) => {
42581
+ U.current = oe, z(oe), o?.(Gp(oe));
42582
+ }, F = (oe) => {
42583
+ const q = tz(oe, U.current);
42584
+ O(q), r?.(q, nz(oe, U.current));
42560
42585
  }, K = Q(() => {
42561
- const se = {
42586
+ const oe = {
42562
42587
  country: A.phoneInput.country
42563
42588
  };
42564
42589
  for (const [q, G] of Object.entries(A.countries))
42565
- se[q.toUpperCase()] = G;
42566
- return se;
42590
+ oe[q.toUpperCase()] = G;
42591
+ return oe;
42567
42592
  }, [A]), Y = Q(() => {
42568
- const se = (a ?? []).map(ph).filter((q) => !!q);
42569
- if (se.length)
42570
- return [...se, "|", "..."];
42593
+ const oe = (a ?? []).map(ph).filter((q) => !!q);
42594
+ if (oe.length)
42595
+ return [...oe, "|", "..."];
42571
42596
  }, [a]), H = Q(
42572
42597
  () => (a ?? []).map(ph).find(Boolean) ?? "ES",
42573
42598
  [a]
42574
42599
  ), Z = Q(() => {
42575
42600
  if (!l) return;
42576
- const se = l.map(ph).filter((q) => !!q);
42577
- if (!se.length) {
42601
+ const oe = l.map(ph).filter((q) => !!q);
42602
+ if (!oe.length) {
42578
42603
  process.env.NODE_ENV !== "production" && console.warn(
42579
42604
  "F0PhoneInput: `allowedCountries` resolved to no valid country codes — the restriction was ignored.",
42580
42605
  l
42581
42606
  );
42582
42607
  return;
42583
42608
  }
42584
- return se;
42609
+ return oe;
42585
42610
  }, [l]), B = j(
42586
42611
  null
42587
42612
  );
42588
- oe(() => {
42613
+ se(() => {
42589
42614
  if (L || !P) return;
42590
- const se = ez(P, Z);
42591
- se && B.current?.(se);
42615
+ const oe = ez(P, Z);
42616
+ oe && B.current?.(oe);
42592
42617
  }, [L, P, Z]);
42593
42618
  let V = p;
42594
42619
  u && (V = { type: "default", message: u }), h && (V = {
@@ -42679,8 +42704,8 @@ const uP = { AC: "40123", AD: "312345", AE: "501234567", AF: "701234567", AG: "2
42679
42704
  type: "button",
42680
42705
  tabIndex: 0,
42681
42706
  "data-testid": "clear-button",
42682
- onClick: (se) => {
42683
- se.stopPropagation(), F(void 0);
42707
+ onClick: (oe) => {
42708
+ oe.stopPropagation(), F(void 0);
42684
42709
  },
42685
42710
  children: /* @__PURE__ */ m(Ze, { icon: qp, color: "default", size: "md" })
42686
42711
  }
@@ -55744,7 +55769,7 @@ function Hye(e) {
55744
55769
  var I, N = b === "y" ? xi : ki, O = b === "y" ? ir : rr, D = b === "y" ? "height" : "width", P = _[b], L = P + y[N], z = P - y[O], U = h ? -E[D] / 2 : 0, $ = w === wc ? S[D] : E[D], F = w === wc ? -E[D] : -S[D], K = t.elements.arrow, Y = h && K ? V2(K) : {
55745
55770
  width: 0,
55746
55771
  height: 0
55747
- }, H = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : oR(), Z = H[N], B = H[O], V = Qd(0, S[D], Y[D]), ie = x ? S[D] / 2 - U - V - Z - T.mainAxis : $ - V - Z - T.mainAxis, J = x ? -S[D] / 2 + U + V + B + T.mainAxis : F + V + B + T.mainAxis, se = t.elements.arrow && th(t.elements.arrow), q = se ? b === "y" ? se.clientTop || 0 : se.clientLeft || 0 : 0, G = (I = A?.[b]) != null ? I : 0, le = P + ie - G - q, de = P + J - G, ge = Qd(h ? Km(L, le) : L, P, h ? Ca(z, de) : z);
55772
+ }, H = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : oR(), Z = H[N], B = H[O], V = Qd(0, S[D], Y[D]), ie = x ? S[D] / 2 - U - V - Z - T.mainAxis : $ - V - Z - T.mainAxis, J = x ? -S[D] / 2 + U + V + B + T.mainAxis : F + V + B + T.mainAxis, oe = t.elements.arrow && th(t.elements.arrow), q = oe ? b === "y" ? oe.clientTop || 0 : oe.clientLeft || 0 : 0, G = (I = A?.[b]) != null ? I : 0, le = P + ie - G - q, de = P + J - G, ge = Qd(h ? Km(L, le) : L, P, h ? Ca(z, de) : z);
55748
55773
  _[b] = ge, M[b] = ge - P;
55749
55774
  }
55750
55775
  if (a) {
@@ -56341,8 +56366,8 @@ function A1e(e, t) {
56341
56366
  setProps: Le,
56342
56367
  setContent: et,
56343
56368
  show: kt,
56344
- hide: ft,
56345
- hideWithInteractivity: ut,
56369
+ hide: ut,
56370
+ hideWithInteractivity: ht,
56346
56371
  enable: ye,
56347
56372
  disable: Ce,
56348
56373
  unmount: Rt,
@@ -56355,7 +56380,7 @@ function A1e(e, t) {
56355
56380
  var E = w.map(function(pe) {
56356
56381
  return pe.fn(b);
56357
56382
  }), C = e.hasAttribute("aria-expanded");
56358
- return se(), U(), P(), L("onCreate", [b]), n.showOnCreate && ce(), _.addEventListener("mouseenter", function() {
56383
+ return oe(), U(), P(), L("onCreate", [b]), n.showOnCreate && ce(), _.addEventListener("mouseenter", function() {
56359
56384
  b.props.interactive && b.state.isVisible && b.clearDelayTimeouts();
56360
56385
  }), _.addEventListener("mouseleave", function() {
56361
56386
  b.props.interactive && b.props.trigger.indexOf("mouseenter") >= 0 && N().addEventListener("mousemove", p);
@@ -56483,7 +56508,7 @@ function A1e(e, t) {
56483
56508
  });
56484
56509
  });
56485
56510
  }
56486
- function se() {
56511
+ function oe() {
56487
56512
  A() && (J("touchstart", G, {
56488
56513
  passive: !0
56489
56514
  }), J("touchend", de, {
@@ -56562,8 +56587,8 @@ function A1e(e, t) {
56562
56587
  var Ae = ve.state;
56563
56588
  if (M()) {
56564
56589
  var Ue = O(), Ke = Ue.box;
56565
- ["placement", "reference-hidden", "escaped"].forEach(function(ct) {
56566
- ct === "placement" ? Ke.setAttribute("data-placement", Ae.placement) : Ae.attributes.popper["data-popper-" + ct] ? Ke.setAttribute("data-" + ct, "") : Ke.removeAttribute("data-" + ct);
56590
+ ["placement", "reference-hidden", "escaped"].forEach(function(dt) {
56591
+ dt === "placement" ? Ke.setAttribute("data-placement", Ae.placement) : Ae.attributes.popper["data-popper-" + dt] ? Ke.setAttribute("data-" + dt, "") : Ke.removeAttribute("data-" + dt);
56567
56592
  }), Ae.attributes.popper = {};
56568
56593
  }
56569
56594
  }
@@ -56657,7 +56682,7 @@ function A1e(e, t) {
56657
56682
  var fe = b.props, he = H6(e, Object.assign({}, fe, F6(pe), {
56658
56683
  ignoreAttributes: !0
56659
56684
  }));
56660
- b.props = he, se(), fe.interactiveDebounce !== he.interactiveDebounce && ($(), p = R6(le, he.interactiveDebounce)), fe.triggerTarget && !he.triggerTarget ? Cl(fe.triggerTarget).forEach(function(Se) {
56685
+ b.props = he, oe(), fe.interactiveDebounce !== he.interactiveDebounce && ($(), p = R6(le, he.interactiveDebounce)), fe.triggerTarget && !he.triggerTarget ? Cl(fe.triggerTarget).forEach(function(Se) {
56661
56686
  Se.removeAttribute("aria-expanded");
56662
56687
  }) : he.triggerTarget && e.removeAttribute("aria-expanded"), U(), P(), S && S(fe, he), b.popperInstance && (W(), ue().forEach(function(Se) {
56663
56688
  requestAnimationFrame(Se._tippy.popperInstance.forceUpdate);
@@ -56691,7 +56716,7 @@ function A1e(e, t) {
56691
56716
  }, ae();
56692
56717
  }
56693
56718
  }
56694
- function ft() {
56719
+ function ut() {
56695
56720
  process.env.NODE_ENV !== "production" && wo(b.state.isDestroyed, wl("hide"));
56696
56721
  var pe = !b.state.isVisible, fe = b.state.isDestroyed, he = !b.state.isEnabled, Se = Zv(b.props.duration, 1, Mi.duration);
56697
56722
  if (!(pe || fe || he) && (L("onHide", [b], !1), b.props.onHide(b) !== !1)) {
@@ -56702,7 +56727,7 @@ function A1e(e, t) {
56702
56727
  z(), U(), b.props.animation ? M() && B(Se, b.unmount) : b.unmount();
56703
56728
  }
56704
56729
  }
56705
- function ut(pe) {
56730
+ function ht(pe) {
56706
56731
  process.env.NODE_ENV !== "production" && wo(b.state.isDestroyed, wl("hideWithInteractivity")), N().addEventListener("mousemove", p), L6(Wh, p), p(pe);
56707
56732
  }
56708
56733
  function Rt() {
@@ -57233,7 +57258,7 @@ function j1e() {
57233
57258
  }
57234
57259
  process.env.NODE_ENV === "production" ? Aw.exports = z1e() : Aw.exports = j1e();
57235
57260
  var H1e = Aw.exports;
57236
- const V1e = typeof window < "u" ? rn : oe;
57261
+ const V1e = typeof window < "u" ? rn : se;
57237
57262
  class W1e {
57238
57263
  constructor(t) {
57239
57264
  this.transactionNumber = 0, this.lastTransactionNumber = 0, this.subscribers = /* @__PURE__ */ new Set(), this.editor = t, this.lastSnapshot = { editor: t, transactionNumber: 0 }, this.getSnapshot = this.getSnapshot.bind(this), this.getServerSnapshot = this.getServerSnapshot.bind(this), this.watch = this.watch.bind(this), this.subscribe = this.subscribe.bind(this);
@@ -57419,7 +57444,7 @@ function _R(e = {}, t = []) {
57419
57444
  const n = j(e);
57420
57445
  n.current = e;
57421
57446
  const [i] = ee(() => new X2(n)), r = d1.useSyncExternalStore(i.subscribe, i.getEditor, i.getServerSnapshot);
57422
- return JN(r), oe(i.onRender(t)), Y2({
57447
+ return JN(r), se(i.onRender(t)), Y2({
57423
57448
  editor: r,
57424
57449
  selector: ({ transactionNumber: o }) => e.shouldRerenderOnTransaction === !1 ? null : e.immediatelyRender && o === 0 ? 0 : o + 1
57425
57450
  }), r;
@@ -57430,7 +57455,7 @@ const SR = $t({
57430
57455
  SR.Consumer;
57431
57456
  const q1e = () => bt(SR), K1e = (e) => {
57432
57457
  const [t, n] = ee(null), { editor: i } = q1e();
57433
- return oe(() => {
57458
+ return se(() => {
57434
57459
  var r;
57435
57460
  if (!t || !((r = e.editor) === null || r === void 0) && r.isDestroyed || i?.isDestroyed)
57436
57461
  return;
@@ -57701,7 +57726,7 @@ const Ym = ({
57701
57726
  compactReview: f = !1
57702
57727
  }) => {
57703
57728
  const [u, h] = ee(""), p = j(null);
57704
- oe(() => {
57729
+ se(() => {
57705
57730
  const k = p.current;
57706
57731
  if (!k) return;
57707
57732
  const _ = window.setTimeout(() => {
@@ -57950,9 +57975,9 @@ const Ym = ({
57950
57975
  }
57951
57976
  const G = x.current.getBoundingClientRect(), le = s.current.getBoundingClientRect(), de = s.current.offsetWidth || o || G.width, ge = Math.min(de, window.innerWidth - 24), be = le.left, W = 12, re = Math.max(W, window.innerWidth - 12 - ge), ae = Math.min(Math.max(be, W), re);
57952
57977
  A(Math.round(ae - G.left)), I(Math.round(le.top - G.bottom)), O(ge);
57953
- }, se = requestAnimationFrame(J), q = new ResizeObserver(J);
57978
+ }, oe = requestAnimationFrame(J), q = new ResizeObserver(J);
57954
57979
  return x.current && q.observe(x.current), s?.current && q.observe(s.current), window.addEventListener("resize", J), () => {
57955
- cancelAnimationFrame(se), q.disconnect(), window.removeEventListener("resize", J);
57980
+ cancelAnimationFrame(oe), q.disconnect(), window.removeEventListener("resize", J);
57956
57981
  };
57957
57982
  }, [_, s, o]);
57958
57983
  const U = (J) => {
@@ -57960,16 +57985,16 @@ const Ym = ({
57960
57985
  b.current = !1, S(!1);
57961
57986
  return;
57962
57987
  }
57963
- S((se) => {
57964
- const q = !se;
57988
+ S((oe) => {
57989
+ const q = !oe;
57965
57990
  return b.current = q, q;
57966
57991
  });
57967
57992
  }, $ = u || h;
57968
57993
  rn(() => {
57969
57994
  $ && b.current && S(!0);
57970
57995
  }, [$]), rn(() => {
57971
- const J = $ && b.current, se = k.current;
57972
- if (J && !se) {
57996
+ const J = $ && b.current, oe = k.current;
57997
+ if (J && !oe) {
57973
57998
  const q = x.current?.getBoundingClientRect();
57974
57999
  if (q && a) {
57975
58000
  const G = N, le = q.left + T, de = q.bottom + M + H;
@@ -57981,14 +58006,14 @@ const Ym = ({
57981
58006
  menuWidth: N
57982
58007
  });
57983
58008
  }
57984
- !J && se && (P(null), z(null), c && (b.current = !1, S(!1))), k.current = J;
58009
+ !J && oe && (P(null), z(null), c && (b.current = !1, S(!1))), k.current = J;
57985
58010
  }, [
57986
58011
  $,
57987
58012
  T,
57988
58013
  M,
57989
58014
  N,
57990
58015
  c
57991
- ]), oe(() => {
58016
+ ]), se(() => {
57992
58017
  l?.(_);
57993
58018
  }, [_, l]);
57994
58019
  const F = D?.alignOffset ?? T, K = D?.sideOffset ?? M, Y = D?.menuWidth ?? N, H = 0, Z = a && $ && b.current && !!L, B = () => {
@@ -57996,9 +58021,9 @@ const Ym = ({
57996
58021
  }, V = {
57997
58022
  onSelect: ({
57998
58023
  selectedIntent: J,
57999
- customIntent: se
58024
+ customIntent: oe
58000
58025
  }) => {
58001
- f(J, se);
58026
+ f(J, oe);
58002
58027
  },
58003
58028
  enhancementOptions: d?.enhancementOptions || [],
58004
58029
  inputPlaceholder: w.richTextEditor.ai.customPromptPlaceholder,
@@ -61073,7 +61098,7 @@ function Vve(e) {
61073
61098
  }
61074
61099
  function Wve({ className: e, ...t }) {
61075
61100
  const n = j(null), i = j(null), r = j(t), o = j(e);
61076
- return r.current = t, o.current = e, oe(() => {
61101
+ return r.current = t, o.current = e, se(() => {
61077
61102
  const s = n.current;
61078
61103
  if (!s) return;
61079
61104
  const a = document.createElement(
@@ -61084,7 +61109,7 @@ function Wve({ className: e, ...t }) {
61084
61109
  return () => {
61085
61110
  l(), a.remove(), i.current = null;
61086
61111
  };
61087
- }, []), oe(() => {
61112
+ }, []), se(() => {
61088
61113
  const s = i.current;
61089
61114
  s && (s.className = e ?? "", s.update?.(t));
61090
61115
  }), /* @__PURE__ */ m("div", { ref: n });
@@ -61708,7 +61733,7 @@ const Jve = ({ editor: e, disabled: t }) => {
61708
61733
  enhance: a
61709
61734
  }) {
61710
61735
  const l = !!a?.error, c = !!a?.config && !!(a.isLoading || a.isAcceptChangesOpen), d = j(null), [f, u] = ee();
61711
- return oe(() => {
61736
+ return se(() => {
61712
61737
  if (!d.current) return;
61713
61738
  const h = () => {
61714
61739
  u(d.current?.offsetWidth);
@@ -61872,7 +61897,7 @@ const c0e = () => {
61872
61897
  };
61873
61898
  function e7(e, t) {
61874
61899
  const n = ze(), [i, r] = ee(!1), [o, s] = ee(!1), [a, l] = ee(null), [c, d] = ee(null), [f, u] = ee(null);
61875
- oe(() => {
61900
+ se(() => {
61876
61901
  c && e && e.setEditable(!1);
61877
61902
  }, [c, e]);
61878
61903
  const h = ne(
@@ -62832,7 +62857,7 @@ mi.prototype = {
62832
62857
  return r.j[e] = s, s;
62833
62858
  }
62834
62859
  };
62835
- const lt = (e, t, n, i, r) => e.ta(t, n, i, r), Zt = (e, t, n, i, r) => e.tr(t, n, i, r), SE = (e, t, n, i, r) => e.ts(t, n, i, r), Ee = (e, t, n, i, r) => e.tt(t, n, i, r), yo = "WORD", jw = "UWORD", n7 = "ASCIINUMERICAL", i7 = "ALPHANUMERICAL", eu = "LOCALHOST", Hw = "TLD", Vw = "UTLD", Ap = "SCHEME", El = "SLASH_SCHEME", i3 = "NUM", Ww = "WS", r3 = "NL", of = "OPENBRACE", sf = "CLOSEBRACE", ig = "OPENBRACKET", rg = "CLOSEBRACKET", og = "OPENPAREN", sg = "CLOSEPAREN", ag = "OPENANGLEBRACKET", lg = "CLOSEANGLEBRACKET", cg = "FULLWIDTHLEFTPAREN", dg = "FULLWIDTHRIGHTPAREN", fg = "LEFTCORNERBRACKET", ug = "RIGHTCORNERBRACKET", hg = "LEFTWHITECORNERBRACKET", pg = "RIGHTWHITECORNERBRACKET", mg = "FULLWIDTHLESSTHAN", gg = "FULLWIDTHGREATERTHAN", yg = "AMPERSAND", o3 = "APOSTROPHE", vg = "ASTERISK", us = "AT", bg = "BACKSLASH", wg = "BACKTICK", xg = "CARET", vs = "COLON", s3 = "COMMA", kg = "DOLLAR", Rr = "DOT", _g = "EQUALS", a3 = "EXCLAMATION", Wi = "HYPHEN", af = "PERCENT", Sg = "PIPE", Cg = "PLUS", Eg = "POUND", lf = "QUERY", l3 = "QUOTE", r7 = "FULLWIDTHMIDDLEDOT", c3 = "SEMI", Lr = "SLASH", cf = "TILDE", Ng = "UNDERSCORE", o7 = "EMOJI", Ag = "SYM";
62860
+ const ct = (e, t, n, i, r) => e.ta(t, n, i, r), Zt = (e, t, n, i, r) => e.tr(t, n, i, r), SE = (e, t, n, i, r) => e.ts(t, n, i, r), Ee = (e, t, n, i, r) => e.tt(t, n, i, r), yo = "WORD", jw = "UWORD", n7 = "ASCIINUMERICAL", i7 = "ALPHANUMERICAL", eu = "LOCALHOST", Hw = "TLD", Vw = "UTLD", Ap = "SCHEME", El = "SLASH_SCHEME", i3 = "NUM", Ww = "WS", r3 = "NL", of = "OPENBRACE", sf = "CLOSEBRACE", ig = "OPENBRACKET", rg = "CLOSEBRACKET", og = "OPENPAREN", sg = "CLOSEPAREN", ag = "OPENANGLEBRACKET", lg = "CLOSEANGLEBRACKET", cg = "FULLWIDTHLEFTPAREN", dg = "FULLWIDTHRIGHTPAREN", fg = "LEFTCORNERBRACKET", ug = "RIGHTCORNERBRACKET", hg = "LEFTWHITECORNERBRACKET", pg = "RIGHTWHITECORNERBRACKET", mg = "FULLWIDTHLESSTHAN", gg = "FULLWIDTHGREATERTHAN", yg = "AMPERSAND", o3 = "APOSTROPHE", vg = "ASTERISK", us = "AT", bg = "BACKSLASH", wg = "BACKTICK", xg = "CARET", vs = "COLON", s3 = "COMMA", kg = "DOLLAR", Rr = "DOT", _g = "EQUALS", a3 = "EXCLAMATION", Wi = "HYPHEN", af = "PERCENT", Sg = "PIPE", Cg = "PLUS", Eg = "POUND", lf = "QUERY", l3 = "QUOTE", r7 = "FULLWIDTHMIDDLEDOT", c3 = "SEMI", Lr = "SLASH", cf = "TILDE", Ng = "UNDERSCORE", o7 = "EMOJI", Ag = "SYM";
62836
62861
  var s7 = /* @__PURE__ */ Object.freeze({
62837
62862
  __proto__: null,
62838
62863
  WORD: yo,
@@ -63255,33 +63280,33 @@ function B0e({
63255
63280
  groups: e
63256
63281
  }) {
63257
63282
  const t = e.domain.concat([yg, vg, us, bg, wg, xg, kg, _g, Wi, i3, af, Sg, Cg, Eg, Lr, Ag, cf, Ng]), n = [vs, s3, Rr, a3, af, lf, l3, c3, ag, lg, of, sf, rg, ig, og, sg, cg, dg, fg, ug, hg, pg, mg, gg], i = [yg, o3, vg, bg, wg, xg, kg, _g, Wi, of, sf, af, Sg, Cg, Eg, lf, Lr, Ag, cf, Ng], r = ji(), o = Ee(r, cf);
63258
- lt(o, i, o), lt(o, e.domain, o);
63283
+ ct(o, i, o), ct(o, e.domain, o);
63259
63284
  const s = ji(), a = ji(), l = ji();
63260
- lt(r, e.domain, s), lt(r, e.scheme, a), lt(r, e.slashscheme, l), lt(s, i, o), lt(s, e.domain, s);
63285
+ ct(r, e.domain, s), ct(r, e.scheme, a), ct(r, e.slashscheme, l), ct(s, i, o), ct(s, e.domain, s);
63261
63286
  const c = Ee(s, us);
63262
63287
  Ee(o, us, c), Ee(a, us, c), Ee(l, us, c);
63263
63288
  const d = Ee(o, Rr);
63264
- lt(d, i, o), lt(d, e.domain, o);
63289
+ ct(d, i, o), ct(d, e.domain, o);
63265
63290
  const f = ji();
63266
- lt(c, e.domain, f), lt(f, e.domain, f);
63291
+ ct(c, e.domain, f), ct(f, e.domain, f);
63267
63292
  const u = Ee(f, Rr);
63268
- lt(u, e.domain, f);
63293
+ ct(u, e.domain, f);
63269
63294
  const h = ji(AE);
63270
- lt(u, e.tld, h), lt(u, e.utld, h), Ee(c, eu, h);
63295
+ ct(u, e.tld, h), ct(u, e.utld, h), Ee(c, eu, h);
63271
63296
  const p = Ee(f, Wi);
63272
- Ee(p, Wi, p), lt(p, e.domain, f), lt(h, e.domain, f), Ee(h, Rr, u), Ee(h, Wi, p);
63297
+ Ee(p, Wi, p), ct(p, e.domain, f), ct(h, e.domain, f), Ee(h, Rr, u), Ee(h, Wi, p);
63273
63298
  const g = Ee(h, vs);
63274
- lt(g, e.numeric, AE);
63299
+ ct(g, e.numeric, AE);
63275
63300
  const y = Ee(s, Wi), v = Ee(s, Rr);
63276
- Ee(y, Wi, y), lt(y, e.domain, s), lt(v, i, o), lt(v, e.domain, s);
63301
+ Ee(y, Wi, y), ct(y, e.domain, s), ct(v, i, o), ct(v, e.domain, s);
63277
63302
  const w = ji(Xh);
63278
- lt(v, e.tld, w), lt(v, e.utld, w), lt(w, e.domain, s), lt(w, i, o), Ee(w, Rr, v), Ee(w, Wi, y), Ee(w, us, c);
63303
+ ct(v, e.tld, w), ct(v, e.utld, w), ct(w, e.domain, s), ct(w, i, o), Ee(w, Rr, v), Ee(w, Wi, y), Ee(w, us, c);
63279
63304
  const x = Ee(w, vs), b = ji(Xh);
63280
- lt(x, e.numeric, b);
63305
+ ct(x, e.numeric, b);
63281
63306
  const k = ji(Xh), _ = ji();
63282
- lt(k, t, k), lt(k, n, _), lt(_, t, k), lt(_, n, _), Ee(w, Lr, k), Ee(b, Lr, k);
63307
+ ct(k, t, k), ct(k, n, _), ct(_, t, k), ct(_, n, _), Ee(w, Lr, k), Ee(b, Lr, k);
63283
63308
  const S = Ee(a, vs), E = Ee(l, vs), C = Ee(E, Lr), T = Ee(C, Lr);
63284
- lt(a, e.domain, s), Ee(a, Rr, v), Ee(a, Wi, y), lt(l, e.domain, s), Ee(l, Rr, v), Ee(l, Wi, y), lt(S, e.domain, k), Ee(S, Lr, k), Ee(S, lf, k), lt(T, e.domain, k), lt(T, t, k), Ee(T, Lr, k);
63309
+ ct(a, e.domain, s), Ee(a, Rr, v), Ee(a, Wi, y), ct(l, e.domain, s), Ee(l, Rr, v), Ee(l, Wi, y), ct(S, e.domain, k), Ee(S, Lr, k), Ee(S, lf, k), ct(T, e.domain, k), ct(T, t, k), Ee(T, Lr, k);
63285
63310
  const A = [
63286
63311
  [of, sf],
63287
63312
  // {}
@@ -63304,9 +63329,9 @@ function B0e({
63304
63329
  const [I, N] = A[M], O = Ee(k, I);
63305
63330
  Ee(_, I, O), Ee(O, N, k);
63306
63331
  const D = ji(Xh);
63307
- lt(O, t, D);
63332
+ ct(O, t, D);
63308
63333
  const P = ji();
63309
- lt(O, n), lt(D, t, D), lt(D, n, P), lt(P, t, D), lt(P, n, P), Ee(D, N, k), Ee(P, N, k);
63334
+ ct(O, n), ct(D, t, D), ct(D, n, P), ct(P, t, D), ct(P, n, P), Ee(D, N, k), Ee(P, N, k);
63310
63335
  }
63311
63336
  return Ee(r, eu, w), Ee(r, r3, $0e), {
63312
63337
  start: r,
@@ -67515,7 +67540,7 @@ const Lxe = ({ item: e, selected: t }) => /* @__PURE__ */ R(
67515
67540
  }, [e.length]), c = ne(() => {
67516
67541
  s(r);
67517
67542
  }, [r, s]);
67518
- return oe(() => {
67543
+ return se(() => {
67519
67544
  o(0);
67520
67545
  }, [e]), Ga(
67521
67546
  i,
@@ -68057,7 +68082,7 @@ const P7 = Pc(
68057
68082
  );
68058
68083
  return { isLoading: n, handleClick: r };
68059
68084
  }, Jxe = (e, t, n) => {
68060
- oe(() => {
68085
+ se(() => {
68061
68086
  if (!n?.selectedAction || !e?.buttons) return;
68062
68087
  if (!n?.selectedTitle || !n?.selectedEmoji || n?.isEditable === void 0) {
68063
68088
  const r = e.buttons.find(
@@ -68074,11 +68099,11 @@ const P7 = Pc(
68074
68099
  }
68075
68100
  }, [n, e, t]);
68076
68101
  }, Zxe = (e, t, n) => {
68077
- oe(() => {
68102
+ se(() => {
68078
68103
  e?.shouldExecute && e?.selectedAction && t && n && (n({ data: { ...e, shouldExecute: !1 } }), t(e.selectedAction));
68079
68104
  }, [t, n, e]);
68080
68105
  }, Qxe = (e, t, n, i) => {
68081
- oe(() => {
68106
+ se(() => {
68082
68107
  if (!i?.content || !i?.isEditable || !e || !n) return;
68083
68108
  const r = n();
68084
68109
  r !== void 0 && (t(), i.content && e.chain().focus().setTextSelection(r).insertContent(i.content).run());
@@ -69278,9 +69303,9 @@ const Mke = ({
69278
69303
  }, [c.length]), g = ne(() => {
69279
69304
  f(r);
69280
69305
  }, [r, f]);
69281
- oe(() => {
69306
+ se(() => {
69282
69307
  a.current && u(a.current);
69283
- }, [r, u]), oe(() => {
69308
+ }, [r, u]), se(() => {
69284
69309
  o(0);
69285
69310
  }, [e.length]), Ga(
69286
69311
  i,
@@ -69964,7 +69989,7 @@ const Rke = ({
69964
69989
  onCancelRecording: w
69965
69990
  }) => {
69966
69991
  const x = ze(), [b, k] = ee(!1), _ = j(null), [S, E] = ee(0), [C, T] = ee(!1), A = C && !a && !s.isLoading;
69967
- oe(() => {
69992
+ se(() => {
69968
69993
  _.current && E(_.current.offsetWidth);
69969
69994
  const P = () => {
69970
69995
  _.current && E(_.current.offsetWidth);
@@ -70309,9 +70334,9 @@ const Rke = ({
70309
70334
  const b = ze(), k = Ya(), _ = j(null), S = j(null), E = j(null), C = j(null), [T, A] = ee(!1), [M, I] = ee(!0), [N, O] = ee(!1), [D, P] = ee(!1), [L, z] = ee(0), [U, $] = ee(a?.files || []), [F, K] = ee(
70310
70335
  t?.users || []
70311
70336
  );
70312
- oe(() => (N ? (document.body.style.overflow = "hidden", P(!0)) : (document.body.style.overflow = "", P(!1)), () => {
70337
+ se(() => (N ? (document.body.style.overflow = "hidden", P(!0)) : (document.body.style.overflow = "", P(!1)), () => {
70313
70338
  document.body.style.overflow = "";
70314
- }), [N]), oe(() => {
70339
+ }), [N]), se(() => {
70315
70340
  const ue = N ? window.innerHeight : Qke(f);
70316
70341
  return t2e({
70317
70342
  containerRef: E,
@@ -70319,7 +70344,7 @@ const Rke = ({
70319
70344
  onScrollChange: I,
70320
70345
  heightThreshold: ue
70321
70346
  });
70322
- }, [f, N]), oe(() => {
70347
+ }, [f, N]), se(() => {
70323
70348
  if (!N || !D) return;
70324
70349
  const ue = () => {
70325
70350
  C.current && z(C.current.offsetWidth);
@@ -70371,19 +70396,19 @@ const Rke = ({
70371
70396
  // re-rendering the whole editor tree on every transaction is wasteful.
70372
70397
  shouldRerenderOnTransaction: !1
70373
70398
  }), V = e7(B, n);
70374
- oe(() => {
70399
+ se(() => {
70375
70400
  (V.error || g) && B ? B.setEditable(!1) : B && !V.error && !g && B.setEditable(!0);
70376
70401
  }, [V.error, g, B]);
70377
- const ie = j(null), [J, se] = ee(null), q = j(
70402
+ const ie = j(null), [J, oe] = ee(null), q = j(
70378
70403
  null
70379
70404
  ), G = ne((ue) => {
70380
- q.current && clearTimeout(q.current), se(ue), q.current = setTimeout(() => {
70381
- se(null), q.current = null;
70405
+ q.current && clearTimeout(q.current), oe(ue), q.current = setTimeout(() => {
70406
+ oe(null), q.current = null;
70382
70407
  }, i2e);
70383
70408
  }, []), le = ne(() => {
70384
- q.current && (clearTimeout(q.current), q.current = null), se(null);
70409
+ q.current && (clearTimeout(q.current), q.current = null), oe(null);
70385
70410
  }, []);
70386
- oe(
70411
+ se(
70387
70412
  () => () => {
70388
70413
  q.current && clearTimeout(q.current);
70389
70414
  },
@@ -70721,9 +70746,9 @@ function l2e({
70721
70746
  },
70722
70747
  [r]
70723
70748
  ), f = typeof s == "string" ? s : s?.value ?? "";
70724
- return oe(() => {
70749
+ return se(() => {
70725
70750
  c.current = s;
70726
- }, [s]), oe(() => {
70751
+ }, [s]), se(() => {
70727
70752
  f !== l.current && a.current?.setContent(f);
70728
70753
  }, [f]), /* @__PURE__ */ m(
70729
70754
  K7,
@@ -71247,7 +71272,7 @@ function br({ field: e, sectionId: t }) {
71247
71272
  renderCustomField: a,
71248
71273
  submitConfig: l
71249
71274
  } = Ok(), { forms: c } = ze(), d = l?.type === "autosubmit", f = d || e.autoSave ? !1 : r, u = Ak(e.disabled, i), h = j(u);
71250
- oe(() => {
71275
+ se(() => {
71251
71276
  const x = h.current;
71252
71277
  if (h.current = u, !x && u && e.resetOnDisable) {
71253
71278
  const b = n.formState.defaultValues?.[e.id];
@@ -71961,7 +71986,7 @@ function C3({
71961
71986
  ),
71962
71987
  [d, l, c]
71963
71988
  ), u = j({});
71964
- oe(() => {
71989
+ se(() => {
71965
71990
  const b = u.current, k = r.formState.defaultValues ?? {};
71966
71991
  for (const _ of d) {
71967
71992
  if (!(_.id in b))
@@ -72143,7 +72168,7 @@ function _2e({
72143
72168
  mode: _,
72144
72169
  defaultValues: r
72145
72170
  }), C = j(p);
72146
- oe(() => {
72171
+ se(() => {
72147
72172
  C.current && !p && r && E.reset(r), C.current = p;
72148
72173
  }, [p, r, E]);
72149
72174
  const T = E.formState.errors.root, { isSubmitting: A, isDirty: M } = E.formState, I = Object.keys(E.formState.errors).filter((U) => U !== "root").length > 0, N = j(null), O = ne(
@@ -72158,7 +72183,7 @@ function _2e({
72158
72183
  },
72159
72184
  [o, E]
72160
72185
  );
72161
- oe(() => {
72186
+ se(() => {
72162
72187
  if (f) {
72163
72188
  const U = {
72164
72189
  submit: () => new Promise(($, F) => {
@@ -72212,7 +72237,7 @@ function _2e({
72212
72237
  return () => {
72213
72238
  f && (f.current = null);
72214
72239
  };
72215
- }, [f, E, O]), oe(() => {
72240
+ }, [f, E, O]), se(() => {
72216
72241
  N.current && N.current({ isSubmitting: A, hasErrors: I });
72217
72242
  }, [A, I]);
72218
72243
  const D = S3(y), P = Q(
@@ -72466,7 +72491,7 @@ function T2e({
72466
72491
  const x = d.current.indexOf(w);
72467
72492
  return x === -1 ? 0 : x;
72468
72493
  }, []), h = j([]);
72469
- oe(() => {
72494
+ se(() => {
72470
72495
  const w = r, x = h.current, b = w.find(
72471
72496
  (k) => !x.includes(k)
72472
72497
  );
@@ -72791,8 +72816,8 @@ function eL(e) {
72791
72816
  if (Qe.type === "field") Be(Qe.field);
72792
72817
  else if (Qe.type === "row") Qe.fields.forEach(Be);
72793
72818
  else if (Qe.type === "section")
72794
- for (const at of Qe.section.fields)
72795
- at.type === "field" ? Be(at.field) : at.type === "row" && at.fields.forEach(Be);
72819
+ for (const lt of Qe.section.fields)
72820
+ lt.type === "field" ? Be(lt.field) : lt.type === "row" && lt.fields.forEach(Be);
72796
72821
  return Re;
72797
72822
  }, [$]), Y = K.size > 0, H = j(K);
72798
72823
  H.current = K;
@@ -72801,22 +72826,22 @@ function eL(e) {
72801
72826
  ), V = j(null), ie = ne(
72802
72827
  (Re) => {
72803
72828
  B(Re);
72804
- const Be = V.current, Qe = Ia(i, Re), at = document.getElementById(Qe);
72805
- at && Be && Be.scrollTo({
72806
- top: at.offsetTop - Be.offsetTop,
72829
+ const Be = V.current, Qe = Ia(i, Re), lt = document.getElementById(Qe);
72830
+ lt && Be && Be.scrollTo({
72831
+ top: lt.offsetTop - Be.offsetTop,
72807
72832
  behavior: "smooth"
72808
72833
  });
72809
72834
  },
72810
72835
  [i]
72811
- ), J = Q(() => X7(t), [t]), se = M2e[d], q = Q(
72836
+ ), J = Q(() => X7(t), [t]), oe = M2e[d], q = Q(
72812
72837
  () => FO(r, { errorMap: J }),
72813
72838
  [r, J]
72814
72839
  ), G = nO({
72815
72840
  resolver: q,
72816
- mode: se,
72841
+ mode: oe,
72817
72842
  defaultValues: s
72818
72843
  }), le = j(h);
72819
- oe(() => {
72844
+ se(() => {
72820
72845
  le.current && !h && s && G.reset(s), le.current = h;
72821
72846
  }, [h, s, G]);
72822
72847
  const de = Q(
@@ -72836,14 +72861,14 @@ function eL(e) {
72836
72861
  (Re, Be) => {
72837
72862
  Ce((Qe) => {
72838
72863
  if (Be === Qe.has(Re)) return Qe;
72839
- const at = new Set(Qe);
72840
- return Be ? at.add(Re) : at.delete(Re), at;
72864
+ const lt = new Set(Qe);
72865
+ return Be ? lt.add(Re) : lt.delete(Re), lt;
72841
72866
  });
72842
72867
  },
72843
72868
  []
72844
72869
  ), Le = ye.size > 0, et = j(Le);
72845
72870
  et.current = Le;
72846
- const [kt, ft] = ee("idle"), [ut, Rt] = ee(), vt = j(null), pe = j(null), fe = j(null), he = j(!0), Se = j(null), _e = j(null), {
72871
+ const [kt, ut] = ee("idle"), [ht, Rt] = ee(), vt = j(null), pe = j(null), fe = j(null), he = j(!0), Se = j(null), _e = j(null), {
72847
72872
  hasErrors: Oe,
72848
72873
  errorCount: rt,
72849
72874
  goToPreviousError: it,
@@ -72852,22 +72877,22 @@ function eL(e) {
72852
72877
  } = T2e({
72853
72878
  formName: i,
72854
72879
  errors: me
72855
- }), Dt = kt === "loading" ? z : kt === "success" ? ut ?? n.actionBar.saved : L, ve = async (Re) => {
72880
+ }), Dt = kt === "loading" ? z : kt === "success" ? ht ?? n.actionBar.saved : L, ve = async (Re) => {
72856
72881
  if (et.current) return;
72857
72882
  vt.current && (clearTimeout(vt.current), vt.current = null), $z(() => {
72858
- ft("loading");
72883
+ ut("loading");
72859
72884
  });
72860
72885
  const Be = { ...Re };
72861
- for (const at of Object.keys(Be))
72862
- Be[at] === null && (Be[at] = void 0);
72886
+ for (const lt of Object.keys(Be))
72887
+ Be[lt] === null && (Be[lt] = void 0);
72863
72888
  const Qe = await a(Be);
72864
- he.current && (Qe.success ? (G.reset(G.getValues()), st(), Rt(Qe.message), ft("success"), vt.current = setTimeout(() => {
72865
- he.current && (ft("idle"), Rt(void 0), vt.current = null);
72866
- }, U ?? 2e3)) : (ft("idle"), Qe.errors && Object.entries(Qe.errors).forEach(([at, ar]) => {
72867
- G.setError(at, { message: ar });
72889
+ he.current && (Qe.success ? (G.reset(G.getValues()), st(), Rt(Qe.message), ut("success"), vt.current = setTimeout(() => {
72890
+ he.current && (ut("idle"), Rt(void 0), vt.current = null);
72891
+ }, U ?? 2e3)) : (ut("idle"), Qe.errors && Object.entries(Qe.errors).forEach(([lt, ar]) => {
72892
+ G.setError(lt, { message: ar });
72868
72893
  }), Qe.rootMessage && G.setError("root", { message: Qe.rootMessage })));
72869
72894
  };
72870
- oe(() => () => {
72895
+ se(() => () => {
72871
72896
  he.current = !1, vt.current && (clearTimeout(vt.current), vt.current = null), pe.current && (clearTimeout(pe.current), pe.current = null);
72872
72897
  }, []);
72873
72898
  const Ae = j(ve);
@@ -72875,14 +72900,14 @@ function eL(e) {
72875
72900
  const Ue = ne(() => {
72876
72901
  const Re = document.activeElement;
72877
72902
  if (!(Re instanceof HTMLElement) || !_e.current?.contains(Re)) return;
72878
- const Be = Re instanceof HTMLInputElement || Re instanceof HTMLTextAreaElement, Qe = Be ? Re.selectionStart : null, at = Be ? Re.selectionEnd : null;
72903
+ const Be = Re instanceof HTMLInputElement || Re instanceof HTMLTextAreaElement, Qe = Be ? Re.selectionStart : null, lt = Be ? Re.selectionEnd : null;
72879
72904
  Se.current = {
72880
72905
  element: Re,
72881
72906
  selectionStart: Qe,
72882
- selectionEnd: at
72907
+ selectionEnd: lt
72883
72908
  };
72884
72909
  }, []), Ke = j(G.formState.isSubmitting);
72885
- oe(() => {
72910
+ se(() => {
72886
72911
  const Re = Ke.current;
72887
72912
  if (Ke.current = ce, !Re || ce) return;
72888
72913
  const Be = Se.current;
@@ -72901,37 +72926,37 @@ function eL(e) {
72901
72926
  }
72902
72927
  }
72903
72928
  }, [ce, A]);
72904
- const ct = l?.type === "autosubmit" ? l.delay ?? pN : pN;
72905
- oe(() => {
72929
+ const dt = l?.type === "autosubmit" ? l.delay ?? pN : pN;
72930
+ se(() => {
72906
72931
  if (!S && !Y) return;
72907
72932
  const Re = G.watch((Be, { name: Qe }) => {
72908
72933
  if (!G.formState.isSubmitting) {
72909
72934
  if (!S) {
72910
- const at = Qe?.split(".")[0];
72911
- if (!at || !H.current.has(at))
72935
+ const lt = Qe?.split(".")[0];
72936
+ if (!lt || !H.current.has(lt))
72912
72937
  return;
72913
72938
  }
72914
72939
  pe.current && clearTimeout(pe.current), pe.current = setTimeout(() => {
72915
72940
  pe.current = null, he.current && G.formState.isDirty && (Ue(), G.handleSubmit(
72916
- (at) => Ae.current(at)
72941
+ (lt) => Ae.current(lt)
72917
72942
  )());
72918
- }, ct);
72943
+ }, dt);
72919
72944
  }
72920
72945
  });
72921
72946
  return () => {
72922
72947
  Re.unsubscribe(), pe.current && (clearTimeout(pe.current), pe.current = null);
72923
72948
  };
72924
- }, [S, Y, ct, G, Ue]);
72925
- const ht = () => {
72926
- G.reset(), st(), ft("idle"), Rt(void 0), vt.current && (clearTimeout(vt.current), vt.current = null);
72949
+ }, [S, Y, dt, G, Ue]);
72950
+ const at = () => {
72951
+ G.reset(), st(), ut("idle"), Rt(void 0), vt.current && (clearTimeout(vt.current), vt.current = null);
72927
72952
  }, Wt = j(null), ln = j(ve);
72928
72953
  ln.current = ve;
72929
72954
  const mn = ne(
72930
72955
  (Re) => ({
72931
72956
  submit: () => new Promise((Be, Qe) => {
72932
72957
  G.handleSubmit(
72933
- async (at) => {
72934
- await ln.current(at), Be();
72958
+ async (lt) => {
72959
+ await ln.current(lt), Be();
72935
72960
  },
72936
72961
  () => Qe(new Error("Form validation failed"))
72937
72962
  )();
@@ -72941,19 +72966,19 @@ function eL(e) {
72941
72966
  },
72942
72967
  isDirty: () => G.formState.isDirty,
72943
72968
  getValues: () => G.getValues(),
72944
- setValue: (Be, Qe, at) => {
72969
+ setValue: (Be, Qe, lt) => {
72945
72970
  G.setValue(
72946
72971
  Be,
72947
72972
  Qe,
72948
72973
  {
72949
- shouldValidate: at?.shouldValidate ?? !0,
72950
- shouldDirty: at?.shouldDirty ?? !0
72974
+ shouldValidate: lt?.shouldValidate ?? !0,
72975
+ shouldDirty: lt?.shouldDirty ?? !0
72951
72976
  }
72952
72977
  );
72953
72978
  },
72954
72979
  setValues: (Be, Qe) => {
72955
- for (const [at, ar] of Object.entries(Be))
72956
- G.setValue(at, ar, {
72980
+ for (const [lt, ar] of Object.entries(Be))
72981
+ G.setValue(lt, ar, {
72957
72982
  shouldValidate: !1,
72958
72983
  shouldDirty: Qe?.shouldDirty ?? !0
72959
72984
  });
@@ -72977,7 +73002,7 @@ function eL(e) {
72977
73002
  }),
72978
73003
  [G, st]
72979
73004
  ), Pn = Iz(), ci = j(null), cn = u ?? ci;
72980
- oe(() => {
73005
+ se(() => {
72981
73006
  if (Pn)
72982
73007
  return u || (ci.current = mn()), Pn.register(
72983
73008
  i,
@@ -73002,9 +73027,9 @@ function eL(e) {
73002
73027
  cn,
73003
73028
  mn,
73004
73029
  p
73005
- ]), oe(() => (u && (u.current = mn({ stateCallback: !0 })), () => {
73030
+ ]), se(() => (u && (u.current = mn({ stateCallback: !0 })), () => {
73006
73031
  u && (u.current = null);
73007
- }), [u, mn]), oe(() => {
73032
+ }), [u, mn]), se(() => {
73008
73033
  Wt.current && Wt.current({
73009
73034
  isSubmitting: ce,
73010
73035
  hasErrors: Oe
@@ -73058,7 +73083,7 @@ function eL(e) {
73058
73083
  }
73059
73084
  ) }, `switch-group-${Be}`);
73060
73085
  case "field": {
73061
- const at = Re.cardSelectDependentFields ? /* @__PURE__ */ m(
73086
+ const lt = Re.cardSelectDependentFields ? /* @__PURE__ */ m(
73062
73087
  Vu.Provider,
73063
73088
  {
73064
73089
  value: _3(
@@ -73071,7 +73096,7 @@ function eL(e) {
73071
73096
  "div",
73072
73097
  {
73073
73098
  className: X(Qe, "has-[>span.hidden]:hidden"),
73074
- children: at
73099
+ children: lt
73075
73100
  },
73076
73101
  Re.item.field.id
73077
73102
  );
@@ -73137,7 +73162,7 @@ function eL(e) {
73137
73162
  issuesOneLabel: n.actionBar.issues.one,
73138
73163
  issuesOtherLabel: n.actionBar.issues.other,
73139
73164
  onSubmit: () => eo(),
73140
- onDiscard: ht,
73165
+ onDiscard: at,
73141
73166
  goToPreviousError: it,
73142
73167
  goToNextError: tt
73143
73168
  }
@@ -74495,17 +74520,17 @@ const l_e = (e, t, n, i) => {
74495
74520
  switch (m1 & d) {
74496
74521
  case 0: {
74497
74522
  const f = e.readLen();
74498
- s[c] = new Zi(dt(a, l), f), l += f;
74523
+ s[c] = new Zi(ft(a, l), f), l += f;
74499
74524
  break;
74500
74525
  }
74501
74526
  case 10: {
74502
74527
  const f = qt(e.restDecoder);
74503
- s[c] = new pr(dt(a, l), f), l += f;
74528
+ s[c] = new pr(ft(a, l), f), l += f;
74504
74529
  break;
74505
74530
  }
74506
74531
  default: {
74507
74532
  const f = (d & (Do | ri)) === 0, u = new It(
74508
- dt(a, l),
74533
+ ft(a, l),
74509
74534
  null,
74510
74535
  // left
74511
74536
  (d & ri) === ri ? e.readLeftID() : null,
@@ -74668,7 +74693,7 @@ class Vl {
74668
74693
  this.client = t, this.clock = n;
74669
74694
  }
74670
74695
  }
74671
- const np = (e, t) => e === t || e !== null && t !== null && e.client === t.client && e.clock === t.clock, dt = (e, t) => new Vl(e, t), au = (e) => {
74696
+ const np = (e, t) => e === t || e !== null && t !== null && e.client === t.client && e.clock === t.clock, ft = (e, t) => new Vl(e, t), au = (e) => {
74672
74697
  for (const [t, n] of e.doc.share.entries())
74673
74698
  if (n === e)
74674
74699
  return t;
@@ -74705,7 +74730,7 @@ class p_e {
74705
74730
  }
74706
74731
  const m_e = (e, t, n = 0) => new p_e(e, t, n), ip = (e, t, n) => {
74707
74732
  let i = null, r = null;
74708
- return e._item === null ? r = au(e) : i = dt(e._item.id.client, e._item.id.clock), new Pg(i, r, t, n);
74733
+ return e._item === null ? r = au(e) : i = ft(e._item.id.client, e._item.id.clock), new Pg(i, r, t, n);
74709
74734
  }, D0 = (e, t, n = 0) => {
74710
74735
  let i = e._start;
74711
74736
  if (n < 0) {
@@ -74716,7 +74741,7 @@ const m_e = (e, t, n = 0) => new p_e(e, t, n), ip = (e, t, n) => {
74716
74741
  for (; i !== null; ) {
74717
74742
  if (!i.deleted && i.countable) {
74718
74743
  if (i.length > t)
74719
- return ip(e, dt(i.id.client, i.id.clock + t), n);
74744
+ return ip(e, ft(i.id.client, i.id.clock + t), n);
74720
74745
  t -= i.length;
74721
74746
  }
74722
74747
  if (i.right === null && n < 0)
@@ -74775,7 +74800,7 @@ class L3 {
74775
74800
  const CL = (e, t) => new L3(e, t), M0 = (e) => CL(n_e(e.store), b1(e.store)), da = (e, t) => t === void 0 ? !e.deleted : t.sv.has(e.id.client) && (t.sv.get(e.id.client) || 0) > e.id.clock && !td(t.ds, e.id), cx = (e, t) => {
74776
74801
  const n = qo(e.meta, cx, Wa), i = e.doc.store;
74777
74802
  n.has(t) || (t.sv.forEach((r, o) => {
74778
- r < un(i, o) && yi(e, dt(o, r));
74803
+ r < un(i, o) && yi(e, ft(o, r));
74779
74804
  }), Bs(e, t.ds, (r) => {
74780
74805
  }), n.add(t));
74781
74806
  };
@@ -75008,7 +75033,7 @@ const RN = (e, t, n) => {
75008
75033
  if (h instanceof It) {
75009
75034
  if (h.redone !== null) {
75010
75035
  let { item: p, diff: g } = ux(l, h.id);
75011
- g > 0 && (p = yi(a, dt(p.id.client, p.id.clock + g))), h = p;
75036
+ g > 0 && (p = yi(a, ft(p.id.client, p.id.clock + g))), h = p;
75012
75037
  }
75013
75038
  !h.deleted && o.some((p) => p === a.doc || lu(
75014
75039
  /** @type {AbstractType<any>} */
@@ -75208,10 +75233,10 @@ function* S_e(e) {
75208
75233
  const a = e.readInfo();
75209
75234
  if (a === 10) {
75210
75235
  const l = qt(e.restDecoder);
75211
- yield new pr(dt(r, o), l), o += l;
75236
+ yield new pr(ft(r, o), l), o += l;
75212
75237
  } else if ((m1 & a) !== 0) {
75213
75238
  const l = (a & (Do | ri)) === 0, c = new It(
75214
- dt(r, o),
75239
+ ft(r, o),
75215
75240
  null,
75216
75241
  // left
75217
75242
  (a & ri) === ri ? e.readLeftID() : null,
@@ -75231,7 +75256,7 @@ function* S_e(e) {
75231
75256
  yield c, o += c.length;
75232
75257
  } else {
75233
75258
  const l = e.readLen();
75234
- yield new Zi(dt(r, o), l), o += l;
75259
+ yield new Zi(ft(r, o), l), o += l;
75235
75260
  }
75236
75261
  }
75237
75262
  }
@@ -75265,19 +75290,19 @@ class E_e {
75265
75290
  const N_e = (e, t) => {
75266
75291
  if (e.constructor === Zi) {
75267
75292
  const { client: n, clock: i } = e.id;
75268
- return new Zi(dt(n, i + t), e.length - t);
75293
+ return new Zi(ft(n, i + t), e.length - t);
75269
75294
  } else if (e.constructor === pr) {
75270
75295
  const { client: n, clock: i } = e.id;
75271
- return new pr(dt(n, i + t), e.length - t);
75296
+ return new pr(ft(n, i + t), e.length - t);
75272
75297
  } else {
75273
75298
  const n = (
75274
75299
  /** @type {Item} */
75275
75300
  e
75276
75301
  ), { client: i, clock: r } = n.id;
75277
75302
  return new It(
75278
- dt(i, r + t),
75303
+ ft(i, r + t),
75279
75304
  null,
75280
- dt(i, r + t - 1),
75305
+ ft(i, r + t - 1),
75281
75306
  null,
75282
75307
  n.rightOrigin,
75283
75308
  n.parent,
@@ -75324,7 +75349,7 @@ const N_e = (e, t) => {
75324
75349
  else {
75325
75350
  kd(a, o.struct, o.offset);
75326
75351
  const p = u.id.clock - o.struct.id.clock - o.struct.length;
75327
- o = { struct: new pr(dt(f, o.struct.id.clock + o.struct.length), p), offset: 0 };
75352
+ o = { struct: new pr(ft(f, o.struct.id.clock + o.struct.length), p), offset: 0 };
75328
75353
  }
75329
75354
  else {
75330
75355
  const p = o.struct.id.clock + o.struct.length - u.id.clock;
@@ -75778,7 +75803,7 @@ const PL = (e, t, n) => {
75778
75803
  const o = e.doc, s = o.clientID, a = o.store, l = n === null ? t._start : n.right;
75779
75804
  let c = [];
75780
75805
  const d = () => {
75781
- c.length > 0 && (r = new It(dt(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new Ka(c)), r.integrate(e, 0), c = []);
75806
+ c.length > 0 && (r = new It(ft(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new Ka(c)), r.integrate(e, 0), c = []);
75782
75807
  };
75783
75808
  i.forEach((f) => {
75784
75809
  if (f === null)
@@ -75796,20 +75821,20 @@ const PL = (e, t, n) => {
75796
75821
  switch (d(), f.constructor) {
75797
75822
  case Uint8Array:
75798
75823
  case ArrayBuffer:
75799
- r = new It(dt(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new sh(new Uint8Array(
75824
+ r = new It(ft(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new sh(new Uint8Array(
75800
75825
  /** @type {Uint8Array} */
75801
75826
  f
75802
75827
  ))), r.integrate(e, 0);
75803
75828
  break;
75804
75829
  case il:
75805
- r = new It(dt(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new ah(
75830
+ r = new It(ft(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new ah(
75806
75831
  /** @type {Doc} */
75807
75832
  f
75808
75833
  )), r.integrate(e, 0);
75809
75834
  break;
75810
75835
  default:
75811
75836
  if (f instanceof En)
75812
- r = new It(dt(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new Tr(f)), r.integrate(e, 0);
75837
+ r = new It(ft(s, un(a, s)), r, r && r.lastId, l, l && l.id, t, null, new Tr(f)), r.integrate(e, 0);
75813
75838
  else
75814
75839
  throw new Error("Unexpected content type in insert operation");
75815
75840
  }
@@ -75825,7 +75850,7 @@ const PL = (e, t, n) => {
75825
75850
  for (o !== null && (s = o.p, n -= o.index, n === 0 && (s = s.prev, n += s && s.countable && !s.deleted ? s.length : 0)); s !== null; s = s.right)
75826
75851
  if (!s.deleted && s.countable) {
75827
75852
  if (n <= s.length) {
75828
- n < s.length && yi(e, dt(s.id.client, s.id.clock + n));
75853
+ n < s.length && yi(e, ft(s.id.client, s.id.clock + n));
75829
75854
  break;
75830
75855
  }
75831
75856
  n -= s.length;
@@ -75843,9 +75868,9 @@ const PL = (e, t, n) => {
75843
75868
  const r = n, o = i, s = x1(t, n);
75844
75869
  let a = t._start;
75845
75870
  for (s !== null && (a = s.p, n -= s.index); a !== null && n > 0; a = a.right)
75846
- !a.deleted && a.countable && (n < a.length && yi(e, dt(a.id.client, a.id.clock + n)), n -= a.length);
75871
+ !a.deleted && a.countable && (n < a.length && yi(e, ft(a.id.client, a.id.clock + n)), n -= a.length);
75847
75872
  for (; i > 0 && a !== null; )
75848
- a.deleted || (i < a.length && yi(e, dt(a.id.client, a.id.clock + i)), a.delete(e), i -= a.length), a = a.right;
75873
+ a.deleted || (i < a.length && yi(e, ft(a.id.client, a.id.clock + i)), a.delete(e), i -= a.length), a = a.right;
75849
75874
  if (i > 0)
75850
75875
  throw BL();
75851
75876
  t._searchMarker && cu(
@@ -75891,7 +75916,7 @@ const PL = (e, t, n) => {
75891
75916
  else
75892
75917
  throw new Error("Unexpected content type");
75893
75918
  }
75894
- new It(dt(s, un(o.store, s)), r, r && r.lastId, null, null, t, n, a).integrate(e, 0);
75919
+ new It(ft(s, un(o.store, s)), r, r && r.lastId, null, null, t, n, a).integrate(e, 0);
75895
75920
  }, B3 = (e, t) => {
75896
75921
  e.doc ?? Wn();
75897
75922
  const n = e._map.get(t);
@@ -76361,7 +76386,7 @@ const BN = (e, t, n) => {
76361
76386
  t.currentAttributes,
76362
76387
  /** @type {ContentFormat} */
76363
76388
  t.right.content
76364
- ) : t.right.deleted || (n < t.right.length && yi(e, dt(t.right.id.client, t.right.id.clock + n)), t.index += t.right.length, n -= t.right.length), t.left = t.right, t.right = t.right.right;
76389
+ ) : t.right.deleted || (n < t.right.length && yi(e, ft(t.right.id.client, t.right.id.clock + n)), t.index += t.right.length, n -= t.right.length), t.left = t.right, t.right = t.right.right;
76365
76390
  return t;
76366
76391
  }, op = (e, t, n, i) => {
76367
76392
  const r = /* @__PURE__ */ new Map(), o = i ? x1(t, n) : null;
@@ -76387,7 +76412,7 @@ const BN = (e, t, n) => {
76387
76412
  ), n.forward();
76388
76413
  const r = e.doc, o = r.clientID;
76389
76414
  i.forEach((s, a) => {
76390
- const l = n.left, c = n.right, d = new It(dt(o, un(r.store, o)), l, l && l.lastId, c, c && c.id, t, null, new vn(a, s));
76415
+ const l = n.left, c = n.right, d = new It(ft(o, un(r.store, o)), l, l && l.lastId, c, c && c.id, t, null, new vn(a, s));
76391
76416
  d.integrate(e, 0), n.right = d, n.forward();
76392
76417
  });
76393
76418
  }, nd = (e, t) => {
@@ -76412,7 +76437,7 @@ const BN = (e, t, n) => {
76412
76437
  if (!Es(c, l)) {
76413
76438
  s.set(a, c);
76414
76439
  const { left: d, right: f } = n;
76415
- n.right = new It(dt(o, un(r.store, o)), d, d && d.lastId, f, f && f.id, t, null, new vn(a, l)), n.right.integrate(e, 0), n.forward();
76440
+ n.right = new It(ft(o, un(r.store, o)), d, d && d.lastId, f, f && f.id, t, null, new vn(a, l)), n.right.integrate(e, 0), n.forward();
76416
76441
  }
76417
76442
  }
76418
76443
  return s;
@@ -76427,7 +76452,7 @@ const BN = (e, t, n) => {
76427
76452
  i
76428
76453
  ) : i instanceof En ? new Tr(i) : new rl(i);
76429
76454
  let { left: c, right: d, index: f } = n;
76430
- t._searchMarker && cu(t._searchMarker, n.index, l.getLength()), d = new It(dt(s, un(o.store, s)), c, c && c.lastId, d, d && d.id, t, null, l), d.integrate(e, 0), n.right = d, n.index = f, n.forward(), WL(e, t, n, a);
76455
+ t._searchMarker && cu(t._searchMarker, n.index, l.getLength()), d = new It(ft(s, un(o.store, s)), c, c && c.lastId, d, d && d.id, t, null, l), d.integrate(e, 0), n.right = d, n.index = f, n.forward(), WL(e, t, n, a);
76431
76456
  }, zN = (e, t, n, i, r) => {
76432
76457
  const o = e.doc, s = o.clientID;
76433
76458
  UL(n, r);
@@ -76454,7 +76479,7 @@ const BN = (e, t, n) => {
76454
76479
  break;
76455
76480
  }
76456
76481
  default:
76457
- i < n.right.length && yi(e, dt(n.right.id.client, n.right.id.clock + i)), i -= n.right.length;
76482
+ i < n.right.length && yi(e, ft(n.right.id.client, n.right.id.clock + i)), i -= n.right.length;
76458
76483
  break;
76459
76484
  }
76460
76485
  n.forward();
@@ -76464,7 +76489,7 @@ const BN = (e, t, n) => {
76464
76489
  for (; i > 0; i--)
76465
76490
  l += `
76466
76491
  `;
76467
- n.right = new It(dt(s, un(o.store, s)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new Er(l)), n.right.integrate(e, 0), n.forward();
76492
+ n.right = new It(ft(s, un(o.store, s)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, t, null, new Er(l)), n.right.integrate(e, 0), n.forward();
76468
76493
  }
76469
76494
  WL(e, t, n, a);
76470
76495
  }, KL = (e, t, n, i, r) => {
@@ -76577,7 +76602,7 @@ const BN = (e, t, n) => {
76577
76602
  case Tr:
76578
76603
  case rl:
76579
76604
  case Er:
76580
- n < t.right.length && yi(e, dt(t.right.id.client, t.right.id.clock + n)), n -= t.right.length, t.right.delete(e);
76605
+ n < t.right.length && yi(e, ft(t.right.id.client, t.right.id.clock + n)), n -= t.right.length, t.right.delete(e);
76581
76606
  break;
76582
76607
  }
76583
76608
  t.forward();
@@ -78517,7 +78542,7 @@ class Tr {
78517
78542
  const p4e = (e) => new Tr(s4e[e.readTypeRef()](e)), ux = (e, t) => {
78518
78543
  let n = t, i = 0, r;
78519
78544
  do
78520
- i > 0 && (n = dt(n.client, n.clock + i)), r = Wl(e, n), i = n.clock - r.id.clock, n = r.redone;
78545
+ i > 0 && (n = ft(n.client, n.clock + i)), r = Wl(e, n), i = n.clock - r.id.clock, n = r.redone;
78521
78546
  while (n !== null && r instanceof It);
78522
78547
  return {
78523
78548
  item: r,
@@ -78529,16 +78554,16 @@ const p4e = (e) => new Tr(s4e[e.readTypeRef()](e)), ux = (e, t) => {
78529
78554
  e.parent._item;
78530
78555
  }, Bg = (e, t, n) => {
78531
78556
  const { client: i, clock: r } = t.id, o = new It(
78532
- dt(i, r + n),
78557
+ ft(i, r + n),
78533
78558
  t,
78534
- dt(i, r + n - 1),
78559
+ ft(i, r + n - 1),
78535
78560
  t.right,
78536
78561
  t.rightOrigin,
78537
78562
  t.parent,
78538
78563
  t.parentSub,
78539
78564
  t.content.splice(n)
78540
78565
  );
78541
- return t.deleted && o.markDeleted(), t.keep && (o.keep = !0), t.redone !== null && (o.redone = dt(t.redone.client, t.redone.clock + n)), t.right = o, o.right !== null && (o.right.left = o), e._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), t.length = n, o;
78566
+ return t.deleted && o.markDeleted(), t.keep && (o.keep = !0), t.redone !== null && (o.redone = ft(t.redone.client, t.redone.clock + n)), t.right = o, o.right !== null && (o.right.left = o), e._mergeStructs.push(o), o.parentSub !== null && o.right === null && o.parent._map.set(o.parentSub, o), t.length = n, o;
78542
78567
  }, HN = (e, t) => B2e(
78543
78568
  e,
78544
78569
  /** @param {StackItem} s */
@@ -78596,7 +78621,7 @@ const p4e = (e) => new Tr(s4e[e.readTypeRef()](e)), ux = (e, t) => {
78596
78621
  return null;
78597
78622
  } else
78598
78623
  f = h._map.get(t.parentSub) || null;
78599
- const p = un(a, l), g = dt(l, p), y = new It(
78624
+ const p = un(a, l), g = ft(l, p), y = new It(
78600
78625
  g,
78601
78626
  f,
78602
78627
  f && f.lastId,
@@ -78688,7 +78713,7 @@ class It extends z3 {
78688
78713
  * @param {number} offset
78689
78714
  */
78690
78715
  integrate(t, n) {
78691
- if (n > 0 && (this.id.clock += n, this.left = MN(t, t.doc.store, dt(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
78716
+ if (n > 0 && (this.id.clock += n, this.left = MN(t, t.doc.store, ft(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
78692
78717
  if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) {
78693
78718
  let i = this.left, r;
78694
78719
  if (i !== null)
@@ -78762,7 +78787,7 @@ class It extends z3 {
78762
78787
  * Computes the last content address of this Item.
78763
78788
  */
78764
78789
  get lastId() {
78765
- return this.length === 1 ? this.id : dt(this.id.client, this.id.clock + this.length - 1);
78790
+ return this.length === 1 ? this.id : ft(this.id.client, this.id.clock + this.length - 1);
78766
78791
  }
78767
78792
  /**
78768
78793
  * Try to merge two items
@@ -78815,7 +78840,7 @@ class It extends z3 {
78815
78840
  * @param {number} offset
78816
78841
  */
78817
78842
  write(t, n) {
78818
- const i = n > 0 ? dt(this.id.client, this.id.clock + n - 1) : this.origin, r = this.rightOrigin, o = this.parentSub, s = this.content.getRef() & m1 | (i === null ? 0 : ri) | // origin is defined
78843
+ const i = n > 0 ? ft(this.id.client, this.id.clock + n - 1) : this.origin, r = this.rightOrigin, o = this.parentSub, s = this.content.getRef() & m1 | (i === null ? 0 : ri) | // origin is defined
78819
78844
  (r === null ? 0 : Do) | // right origin is defined
78820
78845
  (o === null ? 0 : iu);
78821
78846
  if (t.writeInfo(s), i !== null && t.writeLeftID(i), r !== null && t.writeRightID(r), i === null && r === null) {
@@ -79764,7 +79789,7 @@ const QL = (e, t, n, i, r, o) => {
79764
79789
  return D0(t, t._length, t.length === 0 ? -1 : 0);
79765
79790
  }, W4e = (e, t) => {
79766
79791
  let n = null, i = null;
79767
- return e._item === null ? i = au(e) : n = dt(e._item.id.client, e._item.id.clock), new Pg(n, i, t.id);
79792
+ return e._item === null ? i = au(e) : n = ft(e._item.id.client, e._item.id.clock), new Pg(n, i, t.id);
79768
79793
  }, $p = (e, t, n, i) => {
79769
79794
  const r = y_e(n, e);
79770
79795
  if (r === null || r.type !== t && !lu(t, r.type._item))
@@ -80397,7 +80422,7 @@ St.create({
80397
80422
  });
80398
80423
  const oSe = (e) => {
80399
80424
  const { className: t = "drag-handle", children: n, editor: i, pluginKey: r = rF, onNodeChange: o, tippyOptions: s } = e, [a, l] = ee(null), c = j(null);
80400
- return oe(() => a ? i.isDestroyed ? () => {
80425
+ return se(() => a ? i.isDestroyed ? () => {
80401
80426
  c.current = null;
80402
80427
  } : (c.current || (c.current = oF({
80403
80428
  editor: i,
@@ -80696,7 +80721,7 @@ const uSe = (e, t) => {
80696
80721
  titlePlaceholder: g
80697
80722
  }, y) {
80698
80723
  const v = ze(), w = j(null), x = j(null), b = Ya(), [k] = ee(() => i?.content || ""), [_, S] = ee(i?.title || ""), [E, C] = ee(null);
80699
- oe(() => {
80724
+ se(() => {
80700
80725
  l && l(_);
80701
80726
  }, [_, l]);
80702
80727
  const T = j(!1), A = Q(