@factorialco/f0-react 1.423.0 → 1.425.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,10 +1,10 @@
1
- import { cH as mf, a7 as _r, b6 as gf, a6 as bf, cI as wf, cJ as xf, a1 as yf, cK as Co, cL as er, cM as vf, cN as _s, cO as ji, cP as Er, K as k, R as q, L as rt, u as me, cQ as kf, cR as Cf, cS as Sf, cT as Nf, cU as If, ak as Le, cV as Af, a0 as Et, cW as _f, b7 as Ef, _ as H, bf as Tf, bg as Df, U as jt, cX as ba, bs as Rf, bh as Lf, M as B, cY as Es, Z as E, cZ as it, c_ as Of, c$ as Mf, bn as Pf, ay as Ff, bl as zf, aH as Ht, d0 as wa, d1 as $f, d2 as Tt, aZ as kn, aA as Ts, aB as cn, k as xa, a4 as mt, d3 as ya, d4 as Bf, d5 as So, d6 as tn, d7 as Ds, d8 as jn, d9 as Tr, da as jf, db as va, dc as Hf, dd as Rs, de as Cn, df as Re, dg as Vf, dh as Wf, di as kt, dj as bi, dk as Uf, dl as yn, dm as Kt, dn as Gf, P as de, dp as Kf, dq as qf, dr as Jf, ds as Yf, dt as Xf, W as Je, Y as ue, du as Ls, aV as Hn, cE as Zr, dv as ka, dw as Os, dx as Zf, dy as Qf, dz as eh, dA as th, dB as nh, dC as rh, dD as ih, dE as sh, dF as oh, ba as lh, dG as ah, b8 as ch, dH as dh, dI as uh, dJ as fh, dK as hh, dL as ph, dM as mh, dN as gh, dO as bh, c2 as nt, dP as Ca, dQ as wh, a3 as V, N as Sa, dR as Na, dS as xh, b1 as Ms, a8 as No, a9 as Io, as as yh, dT as vh, dU as kh, am as dn, dV as Ch, dW as Sh, dX as Nh, dY as Ih, aQ as Qr, dZ as Ia, d_ as Aa, c4 as _a, d$ as Ah, aJ as Dr, e0 as _h, e1 as Eh, e2 as Th, e3 as Dh, e4 as Rh, ai as Lh, aj as Oh, al as Mh, e5 as Ph, e6 as Ea, e7 as Fh, e8 as Ta, e9 as zh, ea as $h, eb as Bh, ax as Ao, ec as Da, ed as Hi, b$ as Vi, ee as Ra, ef as jh, eg as Hh, cD as Vn, bD as La, cG as Vh, cF as Wh, eh as Uh, bE as nn, ei as Gh, aN as tr, ej as _o, ek as Wi, el as Kh, bm as qh, em as Jh, bZ as Oa, c3 as Yh, cf as Ma, cd as Ps, ae as Xh, cg as Zh, c0 as Fs, av as Pa, c as Fa, g as Qh, a as ep, bV as tp, en as za, eo as np, F as rp, ep as $a, eq as Ba, er as ip, bw as Eo, es as sp, et as op, bX as lp, bu as ja, bx as ap, eu as cp, ev as dp, ew as up, ex as fp, bY as Ha, $ as hp, Q as st, bJ as zs, ey as $s, ez as Bs, eA as Va, bK as js, eB as Wa, eC as pp, eD as mp, eE as gp, eF as bp, eG as wp, bL as xp, eH as yp, b_ as vp, eI as kp, eJ as To, eK as Do, eL as Ro, a$ as Cp, eM as Sp, eN as Np, bc as Ip, eO as Ua, bC as Ap, eP as _p, eQ as Ep } from "./registry-Cfsd-zAT.js";
2
- import { eU as WI, eT as UI, eR as GI, aE as KI, eS as qI, f0 as JI, f1 as YI, f3 as XI, f7 as ZI, f8 as QI, aK as eA, eW as tA, eV as nA, f2 as rA, e$ as iA, eY as sA, e_ as oA, eX as lA, c1 as aA, eZ as cA, f4 as dA, f5 as uA, f6 as fA } from "./registry-Cfsd-zAT.js";
1
+ import { cI as mf, a7 as _r, b7 as gf, a6 as bf, cJ as wf, cK as xf, a1 as yf, cL as Co, cM as er, cN as vf, cO as _s, cP as ji, cQ as Er, K as k, R as q, L as rt, u as me, cR as kf, cS as Cf, cT as Sf, cU as Nf, cV as If, ak as Le, cW as Af, a0 as Et, cX as _f, b8 as Ef, _ as H, bg as Tf, bh as Df, U as jt, cY as ba, bt as Rf, bi as Lf, M as B, cZ as Es, Z as E, c_ as it, c$ as Of, d0 as Mf, bo as Pf, ay as Ff, bm as zf, aH as Ht, d1 as wa, d2 as $f, d3 as Tt, a_ as kn, aA as Ts, aB as cn, k as xa, a4 as mt, d4 as ya, d5 as Bf, d6 as So, d7 as tn, d8 as Ds, d9 as jn, da as Tr, db as jf, dc as va, dd as Hf, de as Rs, df as Cn, dg as Re, dh as Wf, di as Vf, dj as kt, dk as bi, dl as Uf, dm as yn, dn as Kt, dp as Gf, P as de, dq as Kf, dr as qf, ds as Yf, dt as Jf, du as Xf, W as Ye, Y as ue, dv as Ls, aW as Hn, cF as Zr, dw as ka, dx as Os, dy as Zf, dz as Qf, dA as eh, dB as th, dC as nh, dD as rh, dE as ih, dF as sh, dG as oh, bb as lh, dH as ah, b9 as ch, dI as dh, dJ as uh, dK as fh, dL as hh, dM as ph, dN as mh, dO as gh, dP as bh, c3 as nt, dQ as Ca, dR as wh, a3 as W, N as Sa, dS as Na, dT as xh, b2 as Ms, a8 as No, a9 as Io, as as yh, dU as vh, dV as kh, am as dn, dW as Ch, dX as Sh, dY as Nh, dZ as Ih, aR as Qr, d_ as Ia, d$ as Aa, c5 as _a, e0 as Ah, aK as Dr, e1 as _h, e2 as Eh, e3 as Th, e4 as Dh, e5 as Rh, ai as Lh, aj as Oh, al as Mh, e6 as Ph, e7 as Ea, e8 as Fh, e9 as Ta, ea as zh, eb as $h, ec as Bh, ax as Ao, ed as Da, ee as Hi, c0 as Wi, ef as Ra, eg as jh, eh as Hh, cE as Wn, bE as La, cH as Wh, cG as Vh, ei as Uh, bF as nn, ej as Gh, aO as tr, ek as _o, el as Vi, em as Kh, bn as qh, en as Yh, b_ as Oa, c4 as Jh, cg as Ma, ce as Ps, ae as Xh, ch as Zh, c1 as Fs, av as Pa, c as Fa, g as Qh, a as ep, bW as tp, eo as za, ep as np, F as rp, eq as $a, er as Ba, es as ip, bx as Eo, et as sp, eu as op, bY as lp, bv as ja, by as ap, ev as cp, ew as dp, ex as up, ey as fp, bZ as Ha, $ as hp, Q as st, bK as zs, ez as $s, eA as Bs, eB as Wa, bL as js, eC as Va, eD as pp, eE as mp, eF as gp, eG as bp, eH as wp, bM as xp, eI as yp, b$ as vp, eJ as kp, eK as To, eL as Do, eM as Ro, b0 as Cp, eN as Sp, eO as Np, bd as Ip, eP as Ua, bD as Ap, eQ as _p, eR as Ep } from "./registry-DuKzJwXp.js";
2
+ import { eV as VI, eU as UI, eS as GI, aE as KI, eT as qI, aJ as YI, f1 as JI, f2 as XI, f4 as ZI, f8 as QI, f9 as eA, aL as tA, eX as nA, eW as rA, f3 as iA, f0 as sA, eZ as oA, e$ as lA, eY as aA, c2 as cA, e_ as dA, f5 as uA, f6 as fA, f7 as hA } from "./registry-DuKzJwXp.js";
3
3
  import { jsx as c, jsxs as g, Fragment as ne } from "react/jsx-runtime";
4
4
  import * as Sn from "react";
5
- import z, { PureComponent as Tp, forwardRef as P, useRef as K, useTransition as Dp, useState as L, useLayoutEffect as Ga, useContext as Hs, createContext as Vs, useCallback as X, useMemo as ee, useEffect as W, useId as Ka, useImperativeHandle as qa, memo as Ja, Fragment as Rp, isValidElement as Lp, cloneElement as Ya, Children as Xa } from "react";
6
- import { f as Jt, ad as Nn, e as nr, ae as Op, L as wi, af as Mp, A as Pp, i as rr, k as Fp, G as zp, g as Lo, ag as $p, j as Oo, n as Bp, ah as Za, ai as Qa, aj as jp, C as Hp, ab as Vp, ak as je, al as ot, am as Ee, an as Wp, ao as gr, ap as Ue, aq as ec, ar as Me, as as Ws, at as $e, au as Mo, av as Up, aw as tc, ax as Ie, ay as Fe, az as In, aA as Rr, aB as nc, aC as Gp, aD as Vt, aE as Kp, aF as qp, aG as Jp, aH as Wn, aI as Un, aJ as Us, aK as Yp, aL as rc, aM as ic, aN as sc, aO as Xp, aP as oc, aQ as lc, aR as ac, aS as cc, aT as dc, aU as uc, a4 as Po, aV as Zp, aW as Fo, aX as Qp, aY as em, aZ as tm, w as nm, x as rm, z as im, J as sm, K as om, s as lm, a_ as fc, a$ as am, b0 as cm, b1 as dm, b2 as hc, a8 as Ui, b3 as um, b4 as fm, b5 as hm, b6 as pm, b7 as mm, b8 as gm, b9 as bm, a0 as wm, ba as xm, bb as ym, bc as vm, bd as km, ac as pc, M as Cm, N as Sm, P as Nm, Q as Im, V as Am, O as _m, be as zo, bf as Em, bg as Tm, l as Dm } from "./index-DtTD2awb.js";
7
- import { a6 as pA, Z as mA, a1 as gA, R as bA, $ as wA, bk as xA, bj as yA, bh as vA, bi as kA, T as CA, a5 as SA, U as NA, _ as IA, W as AA, a9 as _A, aa as EA } from "./index-DtTD2awb.js";
5
+ import z, { PureComponent as Tp, forwardRef as P, useRef as K, useTransition as Dp, useState as L, useLayoutEffect as Ga, useContext as Hs, createContext as Ws, useCallback as X, useMemo as ee, useEffect as V, useId as Ka, useImperativeHandle as qa, memo as Ya, Fragment as Rp, isValidElement as Lp, cloneElement as Ja, Children as Xa } from "react";
6
+ import { f as Yt, ac as Nn, e as nr, ad as Op, L as wi, ae as Mp, A as Pp, i as rr, k as Fp, G as zp, g as Lo, af as $p, j as Oo, n as Bp, ag as Za, ah as Qa, ai as jp, C as Hp, aa as Wp, aj as je, ak as ot, al as Ee, am as Vp, an as gr, ao as Ue, ap as ec, aq as Me, ar as Vs, as as $e, at as Mo, au as Up, av as tc, aw as Ie, ax as Fe, ay as In, az as Rr, aA as nc, aB as Gp, aC as Wt, aD as Kp, aE as qp, aF as Yp, aG as Vn, aH as Un, aI as Us, aJ as Jp, aK as rc, aL as ic, aM as sc, aN as Xp, aO as oc, aP as lc, aQ as ac, aR as cc, aS as dc, aT as uc, a3 as Po, aU as Zp, aV as Fo, aW as Qp, aX as em, aY as tm, w as nm, x as rm, z as im, J as sm, K as om, s as lm, aZ as fc, a_ as am, a$ as cm, b0 as dm, b1 as hc, a7 as Ui, b2 as um, b3 as fm, b4 as hm, b5 as pm, b6 as mm, b7 as gm, b8 as bm, $ as wm, b9 as xm, ba as ym, bb as vm, bc as km, ab as pc, M as Cm, N as Sm, P as Nm, Q as Im, V as Am, O as _m, bd as zo, be as Em, bf as Tm, l as Dm } from "./index-BJIDVQvo.js";
7
+ import { a5 as mA, W as gA, a0 as bA, R as wA, _ as xA, bj as yA, bi as vA, bg as kA, bh as CA, a4 as SA, T as NA, Z as IA, U as AA, a8 as _A, a9 as EA } from "./index-BJIDVQvo.js";
8
8
  import './experimental.css';const Rm = mf("Search", [
9
9
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
10
10
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
@@ -98,7 +98,7 @@ var $m = function(e, n, r, i) {
98
98
  return null;
99
99
  var a = _n({
100
100
  stroke: "#ccc"
101
- }, Jt(e, !1));
101
+ }, Yt(e, !1));
102
102
  return /* @__PURE__ */ z.createElement("g", {
103
103
  className: "recharts-polar-grid-angle"
104
104
  }, o.map(function(d) {
@@ -114,7 +114,7 @@ var $m = function(e, n, r, i) {
114
114
  }, jm = function(e) {
115
115
  var n = e.cx, r = e.cy, i = e.radius, s = e.index, o = _n(_n({
116
116
  stroke: "#ccc"
117
- }, Jt(e, !1)), {}, {
117
+ }, Yt(e, !1)), {}, {
118
118
  fill: "none"
119
119
  });
120
120
  return /* @__PURE__ */ z.createElement("circle", gt({}, o, {
@@ -127,7 +127,7 @@ var $m = function(e, n, r, i) {
127
127
  }, Hm = function(e) {
128
128
  var n = e.radius, r = e.index, i = _n(_n({
129
129
  stroke: "#ccc"
130
- }, Jt(e, !1)), {}, {
130
+ }, Yt(e, !1)), {}, {
131
131
  fill: "none"
132
132
  });
133
133
  return /* @__PURE__ */ z.createElement("path", gt({}, i, {
@@ -135,7 +135,7 @@ var $m = function(e, n, r, i) {
135
135
  key: "path-".concat(r),
136
136
  d: $m(n, e.cx, e.cy, e.polarAngles)
137
137
  }));
138
- }, Vm = function(e) {
138
+ }, Wm = function(e) {
139
139
  var n = e.polarRadius, r = e.gridType;
140
140
  return !n || !n.length ? null : /* @__PURE__ */ z.createElement("g", {
141
141
  className: "recharts-polar-grid-concentric"
@@ -164,7 +164,7 @@ var $m = function(e, n, r, i) {
164
164
  outerRadius: d,
165
165
  gridType: u,
166
166
  radialLines: p
167
- }, m)), /* @__PURE__ */ z.createElement(Vm, gt({
167
+ }, m)), /* @__PURE__ */ z.createElement(Wm, gt({
168
168
  cx: r,
169
169
  cy: s,
170
170
  innerRadius: l,
@@ -175,7 +175,7 @@ var $m = function(e, n, r, i) {
175
175
  };
176
176
  mc.displayName = "PolarGrid";
177
177
  var xi, Bo;
178
- function Wm() {
178
+ function Vm() {
179
179
  if (Bo) return xi;
180
180
  Bo = 1;
181
181
  function t(e) {
@@ -185,7 +185,7 @@ function Wm() {
185
185
  }
186
186
  var yi, jo;
187
187
  function Um() {
188
- return jo || (jo = 1, yi = Wm()), yi;
188
+ return jo || (jo = 1, yi = Vm()), yi;
189
189
  }
190
190
  var Gm = Um();
191
191
  const Km = /* @__PURE__ */ gf(Gm);
@@ -198,9 +198,9 @@ function rn(t) {
198
198
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
199
199
  }, rn(t);
200
200
  }
201
- function Jm(t, e) {
201
+ function Ym(t, e) {
202
202
  if (t == null) return {};
203
- var n = Ym(t, e), r, i;
203
+ var n = Jm(t, e), r, i;
204
204
  if (Object.getOwnPropertySymbols) {
205
205
  var s = Object.getOwnPropertySymbols(t);
206
206
  for (i = 0; i < s.length; i++)
@@ -208,7 +208,7 @@ function Jm(t, e) {
208
208
  }
209
209
  return n;
210
210
  }
211
- function Ym(t, e) {
211
+ function Jm(t, e) {
212
212
  if (t == null) return {};
213
213
  var n = {};
214
214
  for (var r in t)
@@ -253,14 +253,14 @@ function Xm(t, e) {
253
253
  if (!(t instanceof e))
254
254
  throw new TypeError("Cannot call a class as a function");
255
255
  }
256
- function Vo(t, e) {
256
+ function Wo(t, e) {
257
257
  for (var n = 0; n < e.length; n++) {
258
258
  var r = e[n];
259
259
  r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, bc(r.key), r);
260
260
  }
261
261
  }
262
262
  function Zm(t, e, n) {
263
- return e && Vo(t.prototype, e), n && Vo(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
263
+ return e && Wo(t.prototype, e), n && Wo(t, n), Object.defineProperty(t, "prototype", { writable: !1 }), t;
264
264
  }
265
265
  function Qm(t, e, n) {
266
266
  return e = Or(e), eg(t, gc() ? Reflect.construct(e, n || [], Or(t).constructor) : e.apply(t, n));
@@ -348,7 +348,7 @@ var Gn = /* @__PURE__ */ (function(t) {
348
348
  return ng(e, t), Zm(e, [{
349
349
  key: "renderDots",
350
350
  value: function(r) {
351
- var i = this.props, s = i.dot, o = i.dataKey, l = Jt(this.props, !1), a = Jt(s, !0), d = r.map(function(f, u) {
351
+ var i = this.props, s = i.dot, o = i.dataKey, l = Yt(this.props, !1), a = Yt(s, !0), d = r.map(function(f, u) {
352
352
  var h = ke(ke(ke({
353
353
  key: "dot-".concat(u),
354
354
  r: 3
@@ -373,7 +373,7 @@ var Gn = /* @__PURE__ */ (function(t) {
373
373
  points: r
374
374
  })) : nr(s) ? f = s(ke(ke({}, this.props), {}, {
375
375
  points: r
376
- })) : f = /* @__PURE__ */ z.createElement(Mp, Lr({}, Jt(this.props, !0), {
376
+ })) : f = /* @__PURE__ */ z.createElement(Mp, Lr({}, Yt(this.props, !0), {
377
377
  onMouseEnter: this.handleMouseEnter,
378
378
  onMouseLeave: this.handleMouseLeave,
379
379
  points: r,
@@ -457,7 +457,7 @@ var Gn = /* @__PURE__ */ (function(t) {
457
457
  else if (nr(r))
458
458
  s = r(i);
459
459
  else {
460
- var o = i.key, l = Jm(i, qm);
460
+ var o = i.key, l = Ym(i, qm);
461
461
  s = /* @__PURE__ */ z.createElement(Op, Lr({}, l, {
462
462
  key: o,
463
463
  className: _r("recharts-radar-dot", typeof r != "boolean" ? r.className : "")
@@ -552,7 +552,7 @@ function og(t, e) {
552
552
  i += e[s], s++, o--;
553
553
  return Math.max(2, o);
554
554
  }
555
- function Wo(t = []) {
555
+ function Vo(t = []) {
556
556
  switch (t.length) {
557
557
  case 0:
558
558
  return;
@@ -588,7 +588,7 @@ function ag(t, e, n = []) {
588
588
  tailItems: e.slice(1),
589
589
  collapsedItems: [],
590
590
  isOnly: e.length === 1,
591
- minWidth: Wo(i)
591
+ minWidth: Vo(i)
592
592
  };
593
593
  const s = og(t, i);
594
594
  return {
@@ -602,7 +602,7 @@ function ag(t, e, n = []) {
602
602
  e.length - (s - 1)
603
603
  ),
604
604
  isOnly: e.length === 1,
605
- minWidth: Wo(i)
605
+ minWidth: Vo(i)
606
606
  };
607
607
  }
608
608
  function cg({ breadcrumbs: t, append: e }) {
@@ -695,7 +695,7 @@ function cg({ breadcrumbs: t, append: e }) {
695
695
  `breadcrumb-${t.at(-1)?.id ?? 0}`
696
696
  );
697
697
  }
698
- const Uo = "one_sidebar_locked", xc = Vs(void 0);
698
+ const Uo = "one_sidebar_locked", xc = Ws(void 0);
699
699
  function un() {
700
700
  const t = Hs(xc);
701
701
  return t === void 0 ? {
@@ -730,11 +730,11 @@ function dg({ children: t }) {
730
730
  },
731
731
  [l, u]
732
732
  ), w = ee(() => l ? f ? "unlocked" : "hidden" : !a && !f ? "hidden" : !a && f ? "unlocked" : "locked", [l, f, a]);
733
- return W(() => {
733
+ return V(() => {
734
734
  u(!1);
735
- }, [e]), W(() => {
735
+ }, [e]), V(() => {
736
736
  i && localStorage.setItem(Uo, a ? "1" : "");
737
- }, [a, i]), W(() => () => {
737
+ }, [a, i]), V(() => () => {
738
738
  p(w);
739
739
  }, [w]), /* @__PURE__ */ c(
740
740
  xc.Provider,
@@ -909,7 +909,7 @@ const ug = rt({
909
909
  )
910
910
  }
911
911
  );
912
- }, yc = P(fg), vc = Vs(null), hg = 15, pg = ({ children: t, enabled: e, onShow: n, ...r }) => {
912
+ }, yc = P(fg), vc = Ws(null), hg = 15, pg = ({ children: t, enabled: e, onShow: n, ...r }) => {
913
913
  const [i, s] = L(e), [o, l] = L(!1), [a, d] = L(!0), [f, u] = L(
914
914
  hg
915
915
  ), h = K(null), p = (b) => {
@@ -917,9 +917,9 @@ const ug = rt({
917
917
  }, m = () => {
918
918
  h.current && h.current();
919
919
  };
920
- return W(() => {
920
+ return V(() => {
921
921
  s(e);
922
- }, [e]), W(() => {
922
+ }, [e]), V(() => {
923
923
  if (o && n?.(), !o) {
924
924
  const b = window.matchMedia(
925
925
  "(prefers-reduced-motion: reduce)"
@@ -1110,7 +1110,7 @@ const kc = ({
1110
1110
  crossSelling: f
1111
1111
  }) => {
1112
1112
  const [u, h] = L("idle"), [p, m] = L(null), [b, ...w] = p ?? [], [x, v] = L(!1);
1113
- W(() => {
1113
+ V(() => {
1114
1114
  m(null), h("idle");
1115
1115
  }, [t]);
1116
1116
  const S = X(async () => {
@@ -1384,7 +1384,7 @@ const kc = ({
1384
1384
  onDropdownClose: r
1385
1385
  }) => {
1386
1386
  const [i, s] = L(t);
1387
- W(() => {
1387
+ V(() => {
1388
1388
  s(t);
1389
1389
  }, [t]);
1390
1390
  const o = () => {
@@ -1418,7 +1418,7 @@ const kc = ({
1418
1418
  showDots: !0,
1419
1419
  showArrows: !1,
1420
1420
  children: n?.products.map((a) => /* @__PURE__ */ c(
1421
- Vp,
1421
+ Wp,
1422
1422
  {
1423
1423
  ...a,
1424
1424
  isVisible: !0,
@@ -1432,7 +1432,7 @@ const kc = ({
1432
1432
  ] })
1433
1433
  ] });
1434
1434
  };
1435
- function Jo({
1435
+ function Yo({
1436
1436
  icon: t,
1437
1437
  href: e,
1438
1438
  label: n,
@@ -1558,7 +1558,7 @@ function UN({
1558
1558
  ] }),
1559
1559
  /* @__PURE__ */ g("div", { className: "flex items-center gap-2", children: [
1560
1560
  /* @__PURE__ */ c(
1561
- Jo,
1561
+ Yo,
1562
1562
  {
1563
1563
  icon: Ts,
1564
1564
  label: s.previous?.title || "Previous",
@@ -1567,7 +1567,7 @@ function UN({
1567
1567
  }
1568
1568
  ),
1569
1569
  /* @__PURE__ */ c(
1570
- Jo,
1570
+ Yo,
1571
1571
  {
1572
1572
  icon: cn,
1573
1573
  label: s.next?.title || "Next",
@@ -1649,11 +1649,11 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
1649
1649
  node: i
1650
1650
  };
1651
1651
  }
1652
- }, Yo = (t, e) => {
1652
+ }, Jo = (t, e) => {
1653
1653
  const { state: n, view: r, extensionManager: i } = t, { schema: s, selection: o } = n, { empty: l, $anchor: a } = o, d = !!i.extensions.find((x) => x.name === "gapCursor");
1654
1654
  if (!l || a.parent.type !== s.nodes.detailsSummary || !d || e === "right" && a.parentOffset !== a.parent.nodeSize - 2)
1655
1655
  return !1;
1656
- const f = Ws((x) => x.type === s.nodes.details)(o);
1656
+ const f = Vs((x) => x.type === s.nodes.details)(o);
1657
1657
  if (!f)
1658
1658
  return !1;
1659
1659
  const u = gr(f.node, (x) => x.type === s.nodes.detailsContent);
@@ -1779,7 +1779,7 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
1779
1779
  }).setTextSelection(l.start + 2).run();
1780
1780
  },
1781
1781
  unsetDetails: () => ({ state: t, chain: e }) => {
1782
- const { selection: n, schema: r } = t, i = Ws((x) => x.type === this.type)(n);
1782
+ const { selection: n, schema: r } = t, i = Vs((x) => x.type === this.type)(n);
1783
1783
  if (!i)
1784
1784
  return !1;
1785
1785
  const s = gr(i.node, (x) => x.type === r.nodes.detailsSummary), o = gr(i.node, (x) => x.type === r.nodes.detailsContent);
@@ -1821,9 +1821,9 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
1821
1821
  return h.setSelection(m), h.scrollIntoView(), n.dispatch(h), !0;
1822
1822
  },
1823
1823
  // The default gapcursor implementation can’t handle hidden content, so we need to fix this.
1824
- ArrowRight: ({ editor: t }) => Yo(t, "right"),
1824
+ ArrowRight: ({ editor: t }) => Jo(t, "right"),
1825
1825
  // The default gapcursor implementation can’t handle hidden content, so we need to fix this.
1826
- ArrowDown: ({ editor: t }) => Yo(t, "down")
1826
+ ArrowDown: ({ editor: t }) => Jo(t, "down")
1827
1827
  };
1828
1828
  },
1829
1829
  addProseMirrorPlugins() {
@@ -1834,7 +1834,7 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
1834
1834
  key: new Ee("detailsSelection"),
1835
1835
  appendTransaction: (t, e, n) => {
1836
1836
  const { editor: r, type: i } = this;
1837
- if (!t.some((w) => w.selectionSet) || !e.selection.empty || !n.selection.empty || !Wp(n, i.name))
1837
+ if (!t.some((w) => w.selectionSet) || !e.selection.empty || !n.selection.empty || !Vp(n, i.name))
1838
1838
  return;
1839
1839
  const { $from: l } = n.selection;
1840
1840
  if (Pr(l.pos, r))
@@ -1902,7 +1902,7 @@ const Pr = (t, e) => e.view.domAtPos(t).node.offsetParent !== null, Ng = (t, e,
1902
1902
  return {
1903
1903
  // Escape node on double enter
1904
1904
  Enter: ({ editor: t }) => {
1905
- const { state: e, view: n } = t, { selection: r } = e, { $from: i, empty: s } = r, o = Ws((A) => A.type === this.type)(r);
1905
+ const { state: e, view: n } = t, { selection: r } = e, { $from: i, empty: s } = r, o = Vs((A) => A.type === this.type)(r);
1906
1906
  if (!s || !o || !o.node.childCount)
1907
1907
  return !1;
1908
1908
  const l = i.index(o.depth), { childCount: a } = o.node;
@@ -2207,7 +2207,7 @@ function Og(t) {
2207
2207
  return t.doc.resolve(n - e.nodeSize);
2208
2208
  }
2209
2209
  }
2210
- function Ji(t) {
2210
+ function Yi(t) {
2211
2211
  return t.parent.type.spec.tableRole == "row" && !!t.nodeAfter;
2212
2212
  }
2213
2213
  function Mg(t) {
@@ -2264,7 +2264,7 @@ var Q = class ut extends Me {
2264
2264
  }
2265
2265
  map(e, n) {
2266
2266
  const r = e.resolve(n.map(this.$anchorCell.pos)), i = e.resolve(n.map(this.$headCell.pos));
2267
- if (Ji(r) && Ji(i) && qs(r, i)) {
2267
+ if (Yi(r) && Yi(i) && qs(r, i)) {
2268
2268
  const s = this.$anchorCell.node(-1) != r.node(-1);
2269
2269
  return s && this.isRowSelection() ? ut.rowSelection(r, i) : s && this.isColSelection() ? ut.colSelection(r, i) : new ut(r, i);
2270
2270
  }
@@ -2485,11 +2485,11 @@ function Tc(t, e, n, r) {
2485
2485
  function Dc(t, e) {
2486
2486
  let n;
2487
2487
  const r = (i, s) => {
2488
- i.type.spec.tableRole == "table" && (n = Vg(t, i, s, n));
2488
+ i.type.spec.tableRole == "table" && (n = Wg(t, i, s, n));
2489
2489
  };
2490
2490
  return e ? e.doc != t.doc && Tc(e.doc, t.doc, 0, r) : t.doc.descendants(r), n;
2491
2491
  }
2492
- function Vg(t, e, n, r) {
2492
+ function Wg(t, e, n, r) {
2493
2493
  const i = se.get(e);
2494
2494
  if (!i.problems) return r;
2495
2495
  r || (r = t.tr);
@@ -2574,7 +2574,7 @@ function Rc(t, { map: e, tableStart: n, table: r }, i) {
2574
2574
  }
2575
2575
  return t;
2576
2576
  }
2577
- function Wg(t, e) {
2577
+ function Vg(t, e) {
2578
2578
  if (!Ze(t)) return !1;
2579
2579
  if (e) {
2580
2580
  const n = lt(t);
@@ -2650,7 +2650,7 @@ function Lc(t, { map: e, tableStart: n, table: r }, i) {
2650
2650
  }
2651
2651
  return t.insert(o, ve(r.type.schema).row.create(null, l)), t;
2652
2652
  }
2653
- function Jg(t, e) {
2653
+ function Yg(t, e) {
2654
2654
  if (!Ze(t)) return !1;
2655
2655
  if (e) {
2656
2656
  const n = lt(t);
@@ -2658,7 +2658,7 @@ function Jg(t, e) {
2658
2658
  }
2659
2659
  return !0;
2660
2660
  }
2661
- function Yg(t, e) {
2661
+ function Jg(t, e) {
2662
2662
  if (!Ze(t)) return !1;
2663
2663
  if (e) {
2664
2664
  const n = lt(t);
@@ -2993,14 +2993,14 @@ function ob(t) {
2993
2993
  for (let a = 0; a < e.childCount; a++) {
2994
2994
  let d = e.child(a).content;
2995
2995
  const f = a ? 0 : Math.max(0, n - 1), u = a < e.childCount - 1 ? 0 : Math.max(0, r - 1);
2996
- (f || u) && (d = Yi(
2996
+ (f || u) && (d = Ji(
2997
2997
  ve(o).row,
2998
2998
  new Fe(d, f, u)
2999
2999
  ).content), l.push(d);
3000
3000
  }
3001
3001
  else if (s == "cell" || s == "header_cell")
3002
3002
  l.push(
3003
- n || r ? Yi(
3003
+ n || r ? Ji(
3004
3004
  ve(o).row,
3005
3005
  new Fe(e, n, r)
3006
3006
  ).content : e
@@ -3030,7 +3030,7 @@ function lb(t, e) {
3030
3030
  }
3031
3031
  return { height: e.length, width: r, rows: e };
3032
3032
  }
3033
- function Yi(t, e) {
3033
+ function Ji(t, e) {
3034
3034
  const n = t.createAndFill();
3035
3035
  return new Gp(n).replace(0, n.content.size, e).doc;
3036
3036
  }
@@ -3256,7 +3256,7 @@ function fb(t, e, n) {
3256
3256
  height: 1,
3257
3257
  rows: [
3258
3258
  Ie.from(
3259
- Yi(ve(t.state.schema).cell, n)
3259
+ Ji(ve(t.state.schema).cell, n)
3260
3260
  )
3261
3261
  ]
3262
3262
  });
@@ -3443,7 +3443,7 @@ var gb = class wr {
3443
3443
  return new wr(n.activeHandle, r.setDragging);
3444
3444
  if (n.activeHandle > -1 && e.docChanged) {
3445
3445
  let i = e.mapping.map(n.activeHandle, -1);
3446
- return Ji(e.doc.resolve(i)) || (i = -1), new wr(i, n.dragging);
3446
+ return Yi(e.doc.resolve(i)) || (i = -1), new wr(i, n.dragging);
3447
3447
  }
3448
3448
  return n;
3449
3449
  }
@@ -3829,7 +3829,7 @@ var lr = ({ editor: t }) => {
3829
3829
  if (!Lb(e))
3830
3830
  return !1;
3831
3831
  let n = 0;
3832
- const r = Jp(e.ranges[0].$from, (s) => s.type.name === "table");
3832
+ const r = Yp(e.ranges[0].$from, (s) => s.type.name === "table");
3833
3833
  return r?.node.descendants((s) => {
3834
3834
  if (s.type.name === "table")
3835
3835
  return !1;
@@ -3940,11 +3940,11 @@ var Fb = Pb, zb = je.create({
3940
3940
  }
3941
3941
  return !0;
3942
3942
  },
3943
- addColumnBefore: () => ({ state: t, dispatch: e }) => Wg(t, e),
3943
+ addColumnBefore: () => ({ state: t, dispatch: e }) => Vg(t, e),
3944
3944
  addColumnAfter: () => ({ state: t, dispatch: e }) => Ug(t, e),
3945
3945
  deleteColumn: () => ({ state: t, dispatch: e }) => Kg(t, e),
3946
- addRowBefore: () => ({ state: t, dispatch: e }) => Jg(t, e),
3947
- addRowAfter: () => ({ state: t, dispatch: e }) => Yg(t, e),
3946
+ addRowBefore: () => ({ state: t, dispatch: e }) => Yg(t, e),
3947
+ addRowAfter: () => ({ state: t, dispatch: e }) => Jg(t, e),
3948
3948
  deleteRow: () => ({ state: t, dispatch: e }) => Zg(t, e),
3949
3949
  deleteTable: () => ({ state: t, dispatch: e }) => sb(t, e),
3950
3950
  mergeCells: () => ({ state: t, dispatch: e }) => Zo(t, e),
@@ -4002,7 +4002,7 @@ var Fb = Pb, zb = je.create({
4002
4002
  tableRole: Kp(qp(t, "tableRole", e))
4003
4003
  };
4004
4004
  }
4005
- }), $b = Vt.create({
4005
+ }), $b = Wt.create({
4006
4006
  name: "tableKit",
4007
4007
  addExtensions() {
4008
4008
  const t = [];
@@ -4018,7 +4018,7 @@ function jb(t) {
4018
4018
  return t.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
4019
4019
  }
4020
4020
  function Hb(t, e, n) {
4021
- const i = ya((n || {}).ignore || []), s = Vb(e);
4021
+ const i = ya((n || {}).ignore || []), s = Wb(e);
4022
4022
  let o = -1;
4023
4023
  for (; ++o < s.length; )
4024
4024
  Bf(t, "text", l);
@@ -4061,7 +4061,7 @@ function Hb(t, e, n) {
4061
4061
  return x ? (m < d.value.length && v.push({ type: "text", value: d.value.slice(m) }), u.children.splice(w, 1, ...v)) : v = [d], w + v.length;
4062
4062
  }
4063
4063
  }
4064
- function Vb(t) {
4064
+ function Wb(t) {
4065
4065
  const e = [];
4066
4066
  if (!Array.isArray(t))
4067
4067
  throw new TypeError("Expected find and replace tuple or list of tuples");
@@ -4069,11 +4069,11 @@ function Vb(t) {
4069
4069
  let r = -1;
4070
4070
  for (; ++r < n.length; ) {
4071
4071
  const i = n[r];
4072
- e.push([Wb(i[0]), Ub(i[1])]);
4072
+ e.push([Vb(i[0]), Ub(i[1])]);
4073
4073
  }
4074
4074
  return e;
4075
4075
  }
4076
- function Wb(t) {
4076
+ function Vb(t) {
4077
4077
  return typeof t == "string" ? new RegExp(jb(t), "g") : t;
4078
4078
  }
4079
4079
  function Ub(t) {
@@ -4094,8 +4094,8 @@ function Gb() {
4094
4094
  exit: {
4095
4095
  literalAutolink: Zb,
4096
4096
  literalAutolinkEmail: Xb,
4097
- literalAutolinkHttp: Jb,
4098
- literalAutolinkWww: Yb
4097
+ literalAutolinkHttp: Yb,
4098
+ literalAutolinkWww: Jb
4099
4099
  }
4100
4100
  };
4101
4101
  }
@@ -4132,10 +4132,10 @@ function qb(t) {
4132
4132
  function Si(t) {
4133
4133
  this.config.enter.autolinkProtocol.call(this, t);
4134
4134
  }
4135
- function Jb(t) {
4135
+ function Yb(t) {
4136
4136
  this.config.exit.autolinkProtocol.call(this, t);
4137
4137
  }
4138
- function Yb(t) {
4138
+ function Jb(t) {
4139
4139
  this.config.exit.data.call(this, t);
4140
4140
  const e = this.stack[this.stack.length - 1];
4141
4141
  e.type, e.url = "http://" + this.sliceSerialize(t);
@@ -4504,7 +4504,7 @@ function D0(t, e, n, r) {
4504
4504
  function R0(t, e, n) {
4505
4505
  return (n ? "" : " ") + t;
4506
4506
  }
4507
- function Js(t) {
4507
+ function Ys(t) {
4508
4508
  const e = t.options.quote || '"';
4509
4509
  if (e !== '"' && e !== "'")
4510
4510
  throw new Error(
@@ -4513,7 +4513,7 @@ function Js(t) {
4513
4513
  return e;
4514
4514
  }
4515
4515
  function L0(t, e, n, r) {
4516
- const i = Js(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
4516
+ const i = Ys(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("definition");
4517
4517
  let l = n.enter("label");
4518
4518
  const a = n.createTracker(r);
4519
4519
  let d = a.move("[");
@@ -4658,7 +4658,7 @@ function z0() {
4658
4658
  }
4659
4659
  Hc.peek = $0;
4660
4660
  function Hc(t, e, n, r) {
4661
- const i = Js(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
4661
+ const i = Ys(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.enter("image");
4662
4662
  let l = n.enter("label");
4663
4663
  const a = n.createTracker(r);
4664
4664
  let d = a.move("![");
@@ -4685,8 +4685,8 @@ function Hc(t, e, n, r) {
4685
4685
  function $0() {
4686
4686
  return "!";
4687
4687
  }
4688
- Vc.peek = B0;
4689
- function Vc(t, e, n, r) {
4688
+ Wc.peek = B0;
4689
+ function Wc(t, e, n, r) {
4690
4690
  const i = t.referenceType, s = n.enter("imageReference");
4691
4691
  let o = n.enter("label");
4692
4692
  const l = n.createTracker(r);
@@ -4709,8 +4709,8 @@ function Vc(t, e, n, r) {
4709
4709
  function B0() {
4710
4710
  return "!";
4711
4711
  }
4712
- Wc.peek = j0;
4713
- function Wc(t, e, n) {
4712
+ Vc.peek = j0;
4713
+ function Vc(t, e, n) {
4714
4714
  let r = t.value || "", i = "`", s = -1;
4715
4715
  for (; new RegExp("(^|[^`])" + i + "([^`]|$)").test(r); )
4716
4716
  i += "`";
@@ -4741,7 +4741,7 @@ function Uc(t, e) {
4741
4741
  }
4742
4742
  Gc.peek = H0;
4743
4743
  function Gc(t, e, n, r) {
4744
- const i = Js(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
4744
+ const i = Ys(n), s = i === '"' ? "Quote" : "Apostrophe", o = n.createTracker(r);
4745
4745
  let l, a;
4746
4746
  if (Uc(t, n)) {
4747
4747
  const f = n.stack;
@@ -4784,7 +4784,7 @@ function Gc(t, e, n, r) {
4784
4784
  function H0(t, e, n) {
4785
4785
  return Uc(t, n) ? "<" : "[";
4786
4786
  }
4787
- Kc.peek = V0;
4787
+ Kc.peek = W0;
4788
4788
  function Kc(t, e, n, r) {
4789
4789
  const i = t.referenceType, s = n.enter("linkReference");
4790
4790
  let o = n.enter("label");
@@ -4805,10 +4805,10 @@ function Kc(t, e, n, r) {
4805
4805
  });
4806
4806
  return o(), n.stack = f, s(), i === "full" || !d || d !== u ? a += l.move(u + "]") : i === "shortcut" ? a = a.slice(0, -1) : a += l.move("]"), a;
4807
4807
  }
4808
- function V0() {
4808
+ function W0() {
4809
4809
  return "[";
4810
4810
  }
4811
- function Ys(t) {
4811
+ function Js(t) {
4812
4812
  const e = t.options.bullet || "*";
4813
4813
  if (e !== "*" && e !== "+" && e !== "-")
4814
4814
  throw new Error(
@@ -4816,8 +4816,8 @@ function Ys(t) {
4816
4816
  );
4817
4817
  return e;
4818
4818
  }
4819
- function W0(t) {
4820
- const e = Ys(t), n = t.options.bulletOther;
4819
+ function V0(t) {
4820
+ const e = Js(t), n = t.options.bulletOther;
4821
4821
  if (!n)
4822
4822
  return e === "*" ? "-" : "*";
4823
4823
  if (n !== "*" && n !== "+" && n !== "-")
@@ -4848,8 +4848,8 @@ function qc(t) {
4848
4848
  }
4849
4849
  function G0(t, e, n, r) {
4850
4850
  const i = n.enter("list"), s = n.bulletCurrent;
4851
- let o = t.ordered ? U0(n) : Ys(n);
4852
- const l = t.ordered ? o === "." ? ")" : "." : W0(n);
4851
+ let o = t.ordered ? U0(n) : Js(n);
4852
+ const l = t.ordered ? o === "." ? ")" : "." : V0(n);
4853
4853
  let a = e && n.bulletLastUsed ? o === n.bulletLastUsed : !1;
4854
4854
  if (!t.ordered) {
4855
4855
  const f = t.children ? t.children[0] : void 0;
@@ -4884,7 +4884,7 @@ function K0(t) {
4884
4884
  }
4885
4885
  function q0(t, e, n, r) {
4886
4886
  const i = K0(n);
4887
- let s = n.bulletCurrent || Ys(n);
4887
+ let s = n.bulletCurrent || Js(n);
4888
4888
  e && e.type === "list" && e.ordered && (s = (typeof e.start == "number" && e.start > -1 ? e.start : 1) + (n.options.incrementListMarker === !1 ? 0 : e.children.indexOf(t)) + s);
4889
4889
  let o = s.length + 1;
4890
4890
  (i === "tab" || i === "mixed" && (e && e.type === "list" && e.spread || t.spread)) && (o = Math.ceil(o / 4) * 4);
@@ -4899,11 +4899,11 @@ function q0(t, e, n, r) {
4899
4899
  return h ? (p ? "" : " ".repeat(o)) + u : (p ? s : s + " ".repeat(o - s.length)) + u;
4900
4900
  }
4901
4901
  }
4902
- function J0(t, e, n, r) {
4902
+ function Y0(t, e, n, r) {
4903
4903
  const i = n.enter("paragraph"), s = n.enter("phrasing"), o = n.containerPhrasing(t, r);
4904
4904
  return s(), i(), o;
4905
4905
  }
4906
- const Y0 = (
4906
+ const J0 = (
4907
4907
  /** @type {(node?: unknown) => node is Exclude<PhrasingContent, Html>} */
4908
4908
  ya([
4909
4909
  "break",
@@ -4931,7 +4931,7 @@ const Y0 = (
4931
4931
  );
4932
4932
  function X0(t, e, n, r) {
4933
4933
  return (t.children.some(function(o) {
4934
- return Y0(o);
4934
+ return J0(o);
4935
4935
  }) ? n.containerPhrasing : n.containerFlow).call(n, t, r);
4936
4936
  }
4937
4937
  function Z0(t) {
@@ -4942,8 +4942,8 @@ function Z0(t) {
4942
4942
  );
4943
4943
  return e;
4944
4944
  }
4945
- Jc.peek = Q0;
4946
- function Jc(t, e, n, r) {
4945
+ Yc.peek = Q0;
4946
+ function Yc(t, e, n, r) {
4947
4947
  const i = Z0(n), s = n.enter("strong"), o = n.createTracker(r), l = o.move(i + i);
4948
4948
  let a = o.move(
4949
4949
  n.containerPhrasing(t, {
@@ -4984,7 +4984,7 @@ function nw(t, e, n) {
4984
4984
  const r = (qc(n) + (n.options.ruleSpaces ? " " : "")).repeat(tw(n));
4985
4985
  return n.options.ruleSpaces ? r.slice(0, -1) : r;
4986
4986
  }
4987
- const Yc = {
4987
+ const Jc = {
4988
4988
  blockquote: N0,
4989
4989
  break: hl,
4990
4990
  code: D0,
@@ -4994,15 +4994,15 @@ const Yc = {
4994
4994
  heading: F0,
4995
4995
  html: jc,
4996
4996
  image: Hc,
4997
- imageReference: Vc,
4998
- inlineCode: Wc,
4997
+ imageReference: Wc,
4998
+ inlineCode: Vc,
4999
4999
  link: Gc,
5000
5000
  linkReference: Kc,
5001
5001
  list: G0,
5002
5002
  listItem: q0,
5003
- paragraph: J0,
5003
+ paragraph: Y0,
5004
5004
  root: X0,
5005
- strong: Jc,
5005
+ strong: Yc,
5006
5006
  text: ew,
5007
5007
  thematicBreak: nw
5008
5008
  };
@@ -5130,7 +5130,7 @@ function cw(t) {
5130
5130
  return S(), v;
5131
5131
  }
5132
5132
  function h(p, m, b) {
5133
- let w = Yc.inlineCode(p, m, b);
5133
+ let w = Jc.inlineCode(p, m, b);
5134
5134
  return b.stack.includes("tableCell") && (w = w.replace(/\|/g, "\\$&")), w;
5135
5135
  }
5136
5136
  }
@@ -5177,7 +5177,7 @@ function fw(t) {
5177
5177
  function hw(t, e, n, r) {
5178
5178
  const i = t.children[0], s = typeof t.checked == "boolean" && i && i.type === "paragraph", o = "[" + (t.checked ? "x" : " ") + "] ", l = n.createTracker(r);
5179
5179
  s && l.move(o);
5180
- let a = Yc.listItem(t, e, n, {
5180
+ let a = Jc.listItem(t, e, n, {
5181
5181
  ...r,
5182
5182
  ...l.current()
5183
5183
  });
@@ -5301,7 +5301,7 @@ function vw(t, e, n) {
5301
5301
  return u === 47 ? (t.consume(u), s ? d : (s = !0, a)) : n(u);
5302
5302
  }
5303
5303
  function d(u) {
5304
- return u === null || Vf(u) || Re(u) || tn(u) || Ds(u) ? n(u) : t.attempt(Xc, t.attempt(Zc, f), n)(u);
5304
+ return u === null || Wf(u) || Re(u) || tn(u) || Ds(u) ? n(u) : t.attempt(Xc, t.attempt(Zc, f), n)(u);
5305
5305
  }
5306
5306
  function f(u) {
5307
5307
  return t.exit("literalAutolinkHttp"), t.exit("literalAutolink"), e(u);
@@ -5567,7 +5567,7 @@ function Rw(t, e, n) {
5567
5567
  }
5568
5568
  }
5569
5569
  function Lw(t, e, n) {
5570
- return t.check(Wf, e, t.attempt(Aw, e, n));
5570
+ return t.check(Vf, e, t.attempt(Aw, e, n));
5571
5571
  }
5572
5572
  function Ow(t) {
5573
5573
  t.exit("gfmFootnoteDefinition");
@@ -5867,14 +5867,14 @@ function qt(t, e) {
5867
5867
  const n = t[e], r = n[0] === "enter" ? "start" : "end";
5868
5868
  return n[1][r];
5869
5869
  }
5870
- const Vw = {
5870
+ const Ww = {
5871
5871
  name: "tasklistCheck",
5872
5872
  tokenize: Uw
5873
5873
  };
5874
- function Ww() {
5874
+ function Vw() {
5875
5875
  return {
5876
5876
  text: {
5877
- 91: Vw
5877
+ 91: Ww
5878
5878
  }
5879
5879
  };
5880
5880
  }
@@ -5913,21 +5913,21 @@ function Kw(t) {
5913
5913
  _w(),
5914
5914
  Pw(t),
5915
5915
  Bw(),
5916
- Ww()
5916
+ Vw()
5917
5917
  ]);
5918
5918
  }
5919
5919
  const qw = {};
5920
- function Jw(t) {
5920
+ function Yw(t) {
5921
5921
  const e = (
5922
5922
  /** @type {Processor<Root>} */
5923
5923
  this
5924
5924
  ), n = t || qw, r = e.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), s = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), o = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
5925
5925
  i.push(Kw(n)), s.push(pw()), o.push(mw(n));
5926
5926
  }
5927
- const Yw = qf().use(Jf).use(Jw).use(Yf).use(Xf), Xw = P(function({ content: e, className: n, format: r = "html", ...i }, s) {
5927
+ const Jw = qf().use(Yf).use(Yw).use(Jf).use(Xf), Xw = P(function({ content: e, className: n, format: r = "html", ...i }, s) {
5928
5928
  const o = ee(
5929
5929
  () => Kf.sanitize(
5930
- r === "markdown" ? String(Yw.processSync(e)) : e,
5930
+ r === "markdown" ? String(Jw.processSync(e)) : e,
5931
5931
  {
5932
5932
  ADD_ATTR: ["target"],
5933
5933
  ALLOWED_ATTR: ["href", "target", "rel", "class"]
@@ -5959,7 +5959,7 @@ const Yw = qf().use(Jf).use(Jw).use(Yf).use(Xf), Xw = P(function({ content: e, c
5959
5959
  "data-testid": "ai-banner",
5960
5960
  children: [
5961
5961
  /* @__PURE__ */ g("div", { className: "flex flex-row items-center justify-between px-4 py-2", children: [
5962
- /* @__PURE__ */ c(Je, { className: "font-medium", children: e }),
5962
+ /* @__PURE__ */ c(Ye, { className: "font-medium", children: e }),
5963
5963
  n && /* @__PURE__ */ c(
5964
5964
  B,
5965
5965
  {
@@ -6047,7 +6047,7 @@ const ld = ue(
6047
6047
  ), t1 = (t) => {
6048
6048
  if (!t?.content) return "";
6049
6049
  try {
6050
- return Yp(t.content, [
6050
+ return Jp(t.content, [
6051
6051
  rc,
6052
6052
  ic,
6053
6053
  sc,
@@ -6100,7 +6100,7 @@ const ld = ue(
6100
6100
  );
6101
6101
  return { isLoading: n, handleClick: i };
6102
6102
  }, i1 = (t, e, n) => {
6103
- W(() => {
6103
+ V(() => {
6104
6104
  if (!n?.selectedAction || !t?.buttons) return;
6105
6105
  if (!n?.selectedTitle || !n?.selectedEmoji || n?.isEditable === void 0) {
6106
6106
  const i = t.buttons.find(
@@ -6117,11 +6117,11 @@ const ld = ue(
6117
6117
  }
6118
6118
  }, [n, t, e]);
6119
6119
  }, s1 = (t, e, n) => {
6120
- W(() => {
6120
+ V(() => {
6121
6121
  t?.shouldExecute && t?.selectedAction && e && n && (n({ data: { ...t, shouldExecute: !1 } }), e(t.selectedAction));
6122
6122
  }, [e, n, t]);
6123
6123
  }, o1 = (t, e, n, r) => {
6124
- W(() => {
6124
+ V(() => {
6125
6125
  if (!r?.content || !r?.isEditable || !t || !n) return;
6126
6126
  const i = n();
6127
6127
  i !== void 0 && (e(), r.content && t.chain().focus().setTextSelection(i).insertContent(r.content).run());
@@ -6238,7 +6238,7 @@ const ld = ue(
6238
6238
  ];
6239
6239
  },
6240
6240
  addNodeView() {
6241
- return Wn(c1);
6241
+ return Vn(c1);
6242
6242
  },
6243
6243
  addCommands() {
6244
6244
  return {
@@ -6280,7 +6280,7 @@ const ld = ue(
6280
6280
  "listItem",
6281
6281
  "table",
6282
6282
  "details"
6283
- ], bl = new Set(ad), f1 = Vt.create({
6283
+ ], bl = new Set(ad), f1 = Wt.create({
6284
6284
  name: "blockId",
6285
6285
  addGlobalAttributes() {
6286
6286
  return [
@@ -6374,7 +6374,7 @@ var h1 = ({ key: t, editor: e, onPaste: n, onDrop: r, allowedMimeTypes: i }) =>
6374
6374
  return i && (a = a.filter((f) => i.includes(f.type))), !(a.length === 0 || (o.preventDefault(), o.stopPropagation(), n(e, a, d), d.length > 0));
6375
6375
  }
6376
6376
  }
6377
- }), p1 = Vt.create({
6377
+ }), p1 = Wt.create({
6378
6378
  name: "fileHandler",
6379
6379
  addOptions() {
6380
6380
  return {
@@ -6558,7 +6558,7 @@ const m1 = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, g1 = je.c
6558
6558
  };
6559
6559
  },
6560
6560
  addNodeView() {
6561
- return Wn(x1);
6561
+ return Vn(x1);
6562
6562
  },
6563
6563
  renderHTML({ HTMLAttributes: t }) {
6564
6564
  return ["img", $e(this.options.HTMLAttributes, t)];
@@ -6904,7 +6904,7 @@ const k1 = ({
6904
6904
  ] : ["div"];
6905
6905
  },
6906
6906
  addNodeView() {
6907
- return Wn(k1);
6907
+ return Vn(k1);
6908
6908
  },
6909
6909
  addCommands() {
6910
6910
  return {
@@ -7005,7 +7005,7 @@ const E1 = ({
7005
7005
  ];
7006
7006
  },
7007
7007
  addNodeView() {
7008
- return Wn(E1);
7008
+ return Vn(E1);
7009
7009
  },
7010
7010
  addCommands() {
7011
7011
  return {
@@ -7216,9 +7216,9 @@ const E1 = ({
7216
7216
  }, [d.length]), m = X(() => {
7217
7217
  f(i);
7218
7218
  }, [i, f]);
7219
- W(() => {
7219
+ V(() => {
7220
7220
  l.current && u(l.current);
7221
- }, [i, u]), W(() => {
7221
+ }, [i, u]), V(() => {
7222
7222
  s(0);
7223
7223
  }, [t.length]), qa(
7224
7224
  r,
@@ -7281,7 +7281,7 @@ const R1 = ({
7281
7281
  aiBlockConfig: t,
7282
7282
  translations: e,
7283
7283
  imageUploadConfig: n
7284
- }) => Vt.create({
7284
+ }) => Wt.create({
7285
7285
  name: "slashCommand",
7286
7286
  addOptions() {
7287
7287
  return {
@@ -7611,7 +7611,7 @@ const R1 = ({
7611
7611
  ] : ["div"];
7612
7612
  },
7613
7613
  addNodeView() {
7614
- return Wn(L1);
7614
+ return Vn(L1);
7615
7615
  },
7616
7616
  addCommands() {
7617
7617
  return {
@@ -7681,7 +7681,7 @@ const R1 = ({
7681
7681
  isOpen: n
7682
7682
  }) => {
7683
7683
  const r = K(null);
7684
- W(() => (n ? r.current && (clearTimeout(r.current), r.current = null) : t !== null && (r.current = setTimeout(
7684
+ V(() => (n ? r.current && (clearTimeout(r.current), r.current = null) : t !== null && (r.current = setTimeout(
7685
7685
  () => {
7686
7686
  },
7687
7687
  t * 60 * 1e3
@@ -7854,9 +7854,9 @@ const R1 = ({
7854
7854
  /* @__PURE__ */ c("div", { className: "m-3 mt-2 flex-shrink-0", children: /* @__PURE__ */ c(P1, {}) })
7855
7855
  ] }) : null;
7856
7856
  }, H1 = de(
7857
- V("AiPromotionChat", j1)
7858
- ), V1 = de(
7859
- V("AiPromotionChatProvider", B1)
7857
+ W("AiPromotionChat", j1)
7858
+ ), W1 = de(
7859
+ W("AiPromotionChatProvider", B1)
7860
7860
  ), fd = rt({
7861
7861
  base: "flex w-full flex-col rounded-lg p-[1px]",
7862
7862
  variants: {
@@ -7879,7 +7879,7 @@ const R1 = ({
7879
7879
  positive: "text-f1-foreground-positive font-medium",
7880
7880
  warning: "text-f1-foreground-warning font-medium",
7881
7881
  info: "text-f1-foreground-info font-medium"
7882
- }, W1 = P(
7882
+ }, V1 = P(
7883
7883
  function({ title: e, onClose: n, children: r, actions: i = [], variant: s }, o) {
7884
7884
  if (i.length > 2)
7885
7885
  throw new Error(
@@ -7904,7 +7904,7 @@ const R1 = ({
7904
7904
  children: [
7905
7905
  wl[s] && /* @__PURE__ */ c(H, { icon: wl[s], size: "sm", "aria-hidden": !0 }),
7906
7906
  /* @__PURE__ */ c(
7907
- Je,
7907
+ Ye,
7908
7908
  {
7909
7909
  className: xl[s] || "font-medium",
7910
7910
  children: e
@@ -7984,7 +7984,7 @@ const R1 = ({
7984
7984
  ]
7985
7985
  }
7986
7986
  ), hd = P(
7987
- (t, e) => /* @__PURE__ */ c(W1, { ref: e, ...t })
7987
+ (t, e) => /* @__PURE__ */ c(V1, { ref: e, ...t })
7988
7988
  ), G1 = ({ compact: t, variant: e }) => /* @__PURE__ */ c(U1, { compact: t, variant: e });
7989
7989
  hd.displayName = "F0Callout";
7990
7990
  const KN = ue(
@@ -8041,10 +8041,10 @@ const KN = ue(
8041
8041
  );
8042
8042
  }, q1 = de(
8043
8043
  lm(
8044
- V("RadarChart", K1)
8044
+ W("RadarChart", K1)
8045
8045
  )
8046
8046
  ), qN = q1;
8047
- function J1({
8047
+ function Y1({
8048
8048
  title: t,
8049
8049
  isActive: e = !1,
8050
8050
  onClick: n
@@ -8066,7 +8066,7 @@ function J1({
8066
8066
  children: [
8067
8067
  /* @__PURE__ */ c(H, { icon: yh, size: "md", color: "selected" }),
8068
8068
  /* @__PURE__ */ c(
8069
- Je,
8069
+ Ye,
8070
8070
  {
8071
8071
  lines: 1,
8072
8072
  className: "text-[13px] font-semibold leading-5 text-f1-foreground-selected",
@@ -8077,7 +8077,7 @@ function J1({
8077
8077
  }
8078
8078
  );
8079
8079
  }
8080
- function Y1({
8080
+ function J1({
8081
8081
  author: t,
8082
8082
  timestamp: e,
8083
8083
  onClick: n,
@@ -8099,7 +8099,7 @@ function Y1({
8099
8099
  "aria-label": `Version ${o} by ${l}${r ? " (selected)" : ""}`,
8100
8100
  "aria-pressed": n ? r : void 0,
8101
8101
  children: [
8102
- /* @__PURE__ */ c(Je, { lines: 1, className: "font-medium text-f1-foreground", children: o }),
8102
+ /* @__PURE__ */ c(Ye, { lines: 1, className: "font-medium text-f1-foreground", children: o }),
8103
8103
  /* @__PURE__ */ g("div", { className: "flex flex-row items-center gap-[6px]", children: [
8104
8104
  /* @__PURE__ */ c(
8105
8105
  nt,
@@ -8111,7 +8111,7 @@ function Y1({
8111
8111
  }
8112
8112
  ),
8113
8113
  /* @__PURE__ */ c(
8114
- Je,
8114
+ Ye,
8115
8115
  {
8116
8116
  lines: 1,
8117
8117
  className: "font-medium text-f1-foreground-secondary",
@@ -8136,7 +8136,7 @@ function X1({
8136
8136
  "aria-label": t,
8137
8137
  children: [
8138
8138
  /* @__PURE__ */ c(
8139
- Je,
8139
+ Ye,
8140
8140
  {
8141
8141
  tag: "h2",
8142
8142
  lines: 1,
@@ -8146,7 +8146,7 @@ function X1({
8146
8146
  ),
8147
8147
  /* @__PURE__ */ c(dn, { className: "h-full flex-1", children: /* @__PURE__ */ g("div", { className: "flex flex-col gap-1", children: [
8148
8148
  n && /* @__PURE__ */ c(
8149
- J1,
8149
+ Y1,
8150
8150
  {
8151
8151
  title: n.title,
8152
8152
  onClick: n.onClick,
@@ -8154,7 +8154,7 @@ function X1({
8154
8154
  }
8155
8155
  ),
8156
8156
  e.map((i) => /* @__PURE__ */ c(
8157
- Y1,
8157
+ J1,
8158
8158
  {
8159
8159
  author: i.author,
8160
8160
  timestamp: i.timestamp,
@@ -8168,8 +8168,8 @@ function X1({
8168
8168
  }
8169
8169
  );
8170
8170
  }
8171
- const JN = de(
8172
- V("F0VersionHistory", X1)
8171
+ const YN = de(
8172
+ W("F0VersionHistory", X1)
8173
8173
  ), pd = P(
8174
8174
  ({ height: t, itemCount: e, itemSize: n, className: r, renderer: i }, s) => {
8175
8175
  const o = z.useRef(null);
@@ -8222,7 +8222,7 @@ const JN = de(
8222
8222
  }
8223
8223
  );
8224
8224
  pd.displayName = "VirtualList";
8225
- const is = V("VirtualList", pd), md = ({
8225
+ const is = W("VirtualList", pd), md = ({
8226
8226
  text: t,
8227
8227
  search: e,
8228
8228
  searchKeys: n = [],
@@ -8772,7 +8772,7 @@ const yl = ({
8772
8772
  subAvatar: O.avatar,
8773
8773
  subSearchKeys: O.searchKeys
8774
8774
  }
8775
- })), [t, e, h]), J = X(
8775
+ })), [t, e, h]), Y = X(
8776
8776
  (O) => {
8777
8777
  if (O.index === 0 && C)
8778
8778
  return /* @__PURE__ */ c(
@@ -8983,7 +8983,7 @@ const yl = ({
8983
8983
  const oe = C ? O - 1 : O;
8984
8984
  return Se[oe]?.parent === null ? tx : Ai;
8985
8985
  },
8986
- renderer: J,
8986
+ renderer: Y,
8987
8987
  ref: M
8988
8988
  }
8989
8989
  ) : /* @__PURE__ */ c(
@@ -9270,7 +9270,7 @@ const yl = ({
9270
9270
  I.length === 1 && !i || l && !C ? "pl-8" : "pl-2"
9271
9271
  ),
9272
9272
  children: /* @__PURE__ */ c(
9273
- Je,
9273
+ Ye,
9274
9274
  {
9275
9275
  tag: "span",
9276
9276
  className: I.length === 1 && I[0].subItem.subDeactivated ? "text-f1-foreground-disabled" : void 0,
@@ -9281,13 +9281,13 @@ const yl = ({
9281
9281
  )
9282
9282
  }
9283
9283
  );
9284
- }, YN = (t) => {
9284
+ }, JN = (t) => {
9285
9285
  const [e, n] = L(
9286
9286
  (t.alwaysOpen || t.defaultOpen) ?? !1
9287
9287
  ), r = (C) => {
9288
9288
  n(C), t.onOpenChange?.(C);
9289
9289
  };
9290
- W(() => {
9290
+ V(() => {
9291
9291
  t.defaultOpen && e && t.onOpenChange?.(!0);
9292
9292
  }, [t.defaultOpen]);
9293
9293
  const [i, s] = L(t.entities), [o, l] = L(""), [a, d] = Rh("", 300), f = ee(
@@ -9324,9 +9324,9 @@ const yl = ({
9324
9324
  (F) => R.has(F.subId)
9325
9325
  ) ?? [], re = A.findIndex((F) => F.id === U);
9326
9326
  if (re >= 0) {
9327
- const F = A[re].subItems ?? [], ge = new Set(F.map((J) => J.subId)), Se = [
9327
+ const F = A[re].subItems ?? [], ge = new Set(F.map((Y) => Y.subId)), Se = [
9328
9328
  ...F,
9329
- ...$.filter((J) => !ge.has(J.subId))
9329
+ ...$.filter((Y) => !ge.has(Y.subId))
9330
9330
  ];
9331
9331
  M({
9332
9332
  ...D,
@@ -9476,7 +9476,7 @@ const yl = ({
9476
9476
  )
9477
9477
  );
9478
9478
  };
9479
- W(() => {
9479
+ V(() => {
9480
9480
  if (!a) {
9481
9481
  s(t.entities);
9482
9482
  return;
@@ -9881,7 +9881,7 @@ const px = ({
9881
9881
  l(t);
9882
9882
  },
9883
9883
  children: [
9884
- /* @__PURE__ */ c(Vi, { icon: i ?? Ra }),
9884
+ /* @__PURE__ */ c(Wi, { icon: i ?? Ra }),
9885
9885
  /* @__PURE__ */ g("div", { className: "flex-1", children: [
9886
9886
  /* @__PURE__ */ c(
9887
9887
  "p",
@@ -9913,7 +9913,7 @@ const px = ({
9913
9913
  /* @__PURE__ */ c(E, { className: "mb-1 h-4 w-full" }),
9914
9914
  /* @__PURE__ */ c(E, { className: "mt-1.5 h-4 w-1/3" })
9915
9915
  ] })
9916
- ] }), eo = V(
9916
+ ] }), eo = W(
9917
9917
  "ActivityItem",
9918
9918
  ue(px, mx)
9919
9919
  ), _d = ({
@@ -9989,7 +9989,7 @@ const px = ({
9989
9989
  }
9990
9990
  )
9991
9991
  ] });
9992
- }, XN = V(
9992
+ }, XN = W(
9993
9993
  "ActivityItemList",
9994
9994
  ue(vx, kx)
9995
9995
  ), Cx = {
@@ -10123,12 +10123,12 @@ const Ax = ({
10123
10123
  date: f
10124
10124
  }) => {
10125
10125
  const [u, h] = L(o), p = K(null);
10126
- W(() => {
10126
+ V(() => {
10127
10127
  h(o);
10128
10128
  }, [o]);
10129
10129
  const m = (_) => {
10130
10130
  h(_), l?.(_);
10131
- }, b = Vn(), { canvasRef: w, handleMouseEnter: x, handleMouseLeave: v } = Ix(b), S = Zr({
10131
+ }, b = Wn(), { canvasRef: w, handleMouseEnter: x, handleMouseLeave: v } = Ix(b), S = Zr({
10132
10132
  emoji: Cx[a],
10133
10133
  size: "sm"
10134
10134
  });
@@ -10217,7 +10217,7 @@ function Ex({
10217
10217
  users: r,
10218
10218
  onInteraction: i
10219
10219
  }) {
10220
- const [s, o] = L(n), [l, a] = L(e), d = K(null), { fireEmojiConfetti: f } = Vh(), u = (m, b) => {
10220
+ const [s, o] = L(n), [l, a] = L(e), d = K(null), { fireEmojiConfetti: f } = Wh(), u = (m, b) => {
10221
10221
  m.stopPropagation(), a(l + (s ? -1 : 1)), o(!s), i?.(b), s || f(b, d);
10222
10222
  }, h = r?.map((m) => m.name).join(", ") || "", p = /* @__PURE__ */ c(
10223
10223
  Os,
@@ -10233,7 +10233,7 @@ function Ex({
10233
10233
  "flex items-center gap-1 px-[3px] font-medium leading-tight shadow-none transition-all active:scale-90 motion-reduce:transition-none motion-reduce:active:scale-100",
10234
10234
  s && "border-f1-border-selected bg-f1-background-selected hover:border-f1-border-selected-bold"
10235
10235
  ),
10236
- "aria-label": Wh(t),
10236
+ "aria-label": Vh(t),
10237
10237
  prepend: /* @__PURE__ */ c(Zr, { emoji: t, size: "md" }),
10238
10238
  children: /* @__PURE__ */ c(
10239
10239
  Uh,
@@ -10279,7 +10279,7 @@ function Tx({ items: t, onInteraction: e, locale: n, action: r }) {
10279
10279
  ))
10280
10280
  ] });
10281
10281
  }
10282
- const Dx = V("Reactions", Tx), Rx = ({
10282
+ const Dx = W("Reactions", Tx), Rx = ({
10283
10283
  content: t,
10284
10284
  collapsed: e
10285
10285
  }) => /* @__PURE__ */ c(
@@ -10528,7 +10528,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10528
10528
  }
10529
10529
  )
10530
10530
  }
10531
- ) : /* @__PURE__ */ c(Vi, { icon: _o }) }),
10531
+ ) : /* @__PURE__ */ c(Wi, { icon: _o }) }),
10532
10532
  /* @__PURE__ */ g("div", { className: "flex min-w-0 flex-1 flex-col gap-3", children: [
10533
10533
  /* @__PURE__ */ g("div", { className: "flex min-w-0 flex-col gap-2", children: [
10534
10534
  /* @__PURE__ */ g("div", { className: "flex flex-row justify-between", children: [
@@ -10562,7 +10562,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10562
10562
  children: I
10563
10563
  }
10564
10564
  )
10565
- ] }) : /* @__PURE__ */ c("div", { className: "block md:hidden", children: /* @__PURE__ */ c(Vi, { icon: _o, size: "sm" }) }),
10565
+ ] }) : /* @__PURE__ */ c("div", { className: "block md:hidden", children: /* @__PURE__ */ c(Wi, { icon: _o, size: "sm" }) }),
10566
10566
  /* @__PURE__ */ c(
10567
10567
  "span",
10568
10568
  {
@@ -10604,7 +10604,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10604
10604
  mt,
10605
10605
  {
10606
10606
  items: m,
10607
- icon: Wi,
10607
+ icon: Vi,
10608
10608
  size: "sm"
10609
10609
  }
10610
10610
  )
@@ -10619,7 +10619,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10619
10619
  },
10620
10620
  ...m ?? []
10621
10621
  ],
10622
- icon: Wi,
10622
+ icon: Vi,
10623
10623
  size: "sm"
10624
10624
  }
10625
10625
  ) })
@@ -10737,7 +10737,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10737
10737
  }
10738
10738
  ), jx = 750, Hx = ({ text: t, children: e }) => {
10739
10739
  const [n, r] = L(!1);
10740
- W(() => {
10740
+ V(() => {
10741
10741
  if (n) {
10742
10742
  const s = setTimeout(() => r(!1), jx);
10743
10743
  return () => clearTimeout(s);
@@ -10816,7 +10816,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10816
10816
  ]
10817
10817
  }
10818
10818
  );
10819
- }, Rd = Ja(
10819
+ }, Rd = Ya(
10820
10820
  ({ children: t, className: e, ...n }) => /* @__PURE__ */ g(
10821
10821
  it,
10822
10822
  {
@@ -10834,7 +10834,7 @@ const Dx = V("Reactions", Tx), Rx = ({
10834
10834
  )
10835
10835
  );
10836
10836
  Rd.displayName = "NavigateAction";
10837
- const Ld = Ja(
10837
+ const Ld = Ya(
10838
10838
  ({ children: t, className: e, href: n, ...r }) => /* @__PURE__ */ g(
10839
10839
  it,
10840
10840
  {
@@ -10853,7 +10853,7 @@ const Ld = Ja(
10853
10853
  H,
10854
10854
  {
10855
10855
  "aria-hidden": !0,
10856
- icon: Jh,
10856
+ icon: Yh,
10857
10857
  size: "md",
10858
10858
  color: "default"
10859
10859
  }
@@ -10877,7 +10877,7 @@ const Kn = P(
10877
10877
  className: "flex rounded font-medium text-f1-foreground *:flex-1",
10878
10878
  ref: e,
10879
10879
  children: /* @__PURE__ */ g(
10880
- Vx,
10880
+ Wx,
10881
10881
  {
10882
10882
  action: s,
10883
10883
  className: k("flex items-center gap-1.5 p-1.5", i),
@@ -10892,7 +10892,7 @@ const Kn = P(
10892
10892
  }
10893
10893
  );
10894
10894
  Kn.displayName = "ItemContainer";
10895
- const Vx = ({
10895
+ const Wx = ({
10896
10896
  children: t,
10897
10897
  action: e,
10898
10898
  ...n
@@ -10922,7 +10922,7 @@ const Vx = ({
10922
10922
  )
10923
10923
  );
10924
10924
  Od.displayName = "DataList.Item";
10925
- const Wx = V("DataList.Item", Od), Md = P(
10925
+ const Vx = W("DataList.Item", Od), Md = P(
10926
10926
  ({ action: t, avatarUrl: e, firstName: n, lastName: r }, i) => {
10927
10927
  const s = `${n} ${r}`;
10928
10928
  return /* @__PURE__ */ c(
@@ -10945,7 +10945,7 @@ const Wx = V("DataList.Item", Od), Md = P(
10945
10945
  }
10946
10946
  );
10947
10947
  Md.displayName = "PersonItem";
10948
- const Ux = V("PersonItem", Md), Pd = P(
10948
+ const Ux = W("PersonItem", Md), Pd = P(
10949
10949
  ({ avatarUrl: t, name: e, action: n }, r) => /* @__PURE__ */ c(
10950
10950
  Kn,
10951
10951
  {
@@ -10957,51 +10957,51 @@ const Ux = V("PersonItem", Md), Pd = P(
10957
10957
  )
10958
10958
  );
10959
10959
  Pd.displayName = "CompanyItem";
10960
- const Gx = V("CompanyItem", Pd), Fd = P(
10960
+ const Gx = W("CompanyItem", Pd), Fd = P(
10961
10961
  ({ action: t, name: e }, n) => /* @__PURE__ */ c(
10962
10962
  Kn,
10963
10963
  {
10964
10964
  ref: n,
10965
- leftIcon: () => /* @__PURE__ */ c(Yh, { name: e, size: "xs" }),
10965
+ leftIcon: () => /* @__PURE__ */ c(Jh, { name: e, size: "xs" }),
10966
10966
  text: e,
10967
10967
  action: ii(t, e)
10968
10968
  }
10969
10969
  )
10970
10970
  );
10971
10971
  Fd.displayName = "TeamItem";
10972
- const Kx = V("TeamItem", Fd), zd = P(
10972
+ const Kx = W("TeamItem", Fd), zd = P(
10973
10973
  ({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Ma, { ...t }) })
10974
10974
  );
10975
10975
  zd.displayName = "DotTagItem";
10976
- const qx = V("DotTagItem", zd), $d = P(
10976
+ const qx = W("DotTagItem", zd), $d = P(
10977
10977
  ({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Ps, { ...t }) })
10978
10978
  );
10979
10979
  $d.displayName = "AlertTagItem";
10980
- const Jx = V("AlertTagItem", $d), Bd = P(
10980
+ const Yx = W("AlertTagItem", $d), Bd = P(
10981
10981
  ({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Xh, { ...t }) })
10982
10982
  );
10983
10983
  Bd.displayName = "BalanceTagItem";
10984
- const Yx = V(
10984
+ const Jx = W(
10985
10985
  "BalanceTagItem",
10986
10986
  Bd
10987
10987
  ), jd = P(
10988
10988
  ({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(kn, { ...t }) })
10989
10989
  );
10990
10990
  jd.displayName = "StatusTagItem";
10991
- const Xx = V(
10991
+ const Xx = W(
10992
10992
  "StatusTagItem",
10993
10993
  jd
10994
10994
  ), Hd = P(
10995
10995
  ({ ...t }, e) => /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(nn, { ...t }) })
10996
10996
  );
10997
10997
  Hd.displayName = "RawTagItem";
10998
- const Zx = V("RawTagItem", Hd);
10998
+ const Zx = W("RawTagItem", Hd);
10999
10999
  function Qx(t, e) {
11000
11000
  return /* @__PURE__ */ c("li", { ref: e, className: "flex items-start pt-1", children: /* @__PURE__ */ c(Zh, { ...t }) });
11001
11001
  }
11002
- const Vd = P(Qx);
11003
- Vd.displayName = "TagListItem";
11004
- const ey = V("TagListItem", Vd), Wd = P(
11002
+ const Wd = P(Qx);
11003
+ Wd.displayName = "TagListItem";
11004
+ const ey = W("TagListItem", Wd), Vd = P(
11005
11005
  ({ children: t, label: e, isHorizontal: n = !1 }, r) => /* @__PURE__ */ g(
11006
11006
  "div",
11007
11007
  {
@@ -11024,30 +11024,30 @@ const ey = V("TagListItem", Vd), Wd = P(
11024
11024
  }
11025
11025
  )
11026
11026
  );
11027
- Wd.displayName = "DataList";
11028
- const ty = V("DataList", Wd), Ve = Object.assign(ty, {
11029
- Item: Wx,
11027
+ Vd.displayName = "DataList";
11028
+ const ty = W("DataList", Vd), We = Object.assign(ty, {
11029
+ Item: Vx,
11030
11030
  CompanyItem: Gx,
11031
11031
  PersonItem: Ux,
11032
11032
  TeamItem: Kx,
11033
11033
  DotTagItem: qx,
11034
- AlertTagItem: Jx,
11035
- BalanceTagItem: Yx,
11034
+ AlertTagItem: Yx,
11035
+ BalanceTagItem: Jx,
11036
11036
  StatusTagItem: Xx,
11037
11037
  RawTagItem: Zx,
11038
11038
  TagListItem: ey
11039
11039
  }), ny = ({ content: t }) => /* @__PURE__ */ g(ne, { children: [
11040
11040
  t.type === "weekdays" && /* @__PURE__ */ c("li", { className: "list-none px-1.5 py-1", children: /* @__PURE__ */ c(Bx, { ...t }) }),
11041
- t.type === "person" && /* @__PURE__ */ c(Ve.PersonItem, { ...t }),
11042
- t.type === "item" && /* @__PURE__ */ c(Ve.Item, { ...t }),
11043
- t.type === "team" && /* @__PURE__ */ c(Ve.TeamItem, { ...t }),
11044
- t.type === "company" && /* @__PURE__ */ c(Ve.CompanyItem, { ...t }),
11045
- t.type === "dot-tag" && /* @__PURE__ */ c(Ve.DotTagItem, { ...t }),
11046
- t.type === "alert-tag" && /* @__PURE__ */ c(Ve.AlertTagItem, { ...t }),
11047
- t.type === "balance-tag" && /* @__PURE__ */ c(Ve.BalanceTagItem, { ...t }),
11048
- t.type === "status-tag" && /* @__PURE__ */ c(Ve.StatusTagItem, { ...t }),
11049
- t.type === "raw-tag" && /* @__PURE__ */ c(Ve.RawTagItem, { ...t }),
11050
- t.type === "tag-list" && /* @__PURE__ */ c(Ve.TagListItem, { ...t.tagList }),
11041
+ t.type === "person" && /* @__PURE__ */ c(We.PersonItem, { ...t }),
11042
+ t.type === "item" && /* @__PURE__ */ c(We.Item, { ...t }),
11043
+ t.type === "team" && /* @__PURE__ */ c(We.TeamItem, { ...t }),
11044
+ t.type === "company" && /* @__PURE__ */ c(We.CompanyItem, { ...t }),
11045
+ t.type === "dot-tag" && /* @__PURE__ */ c(We.DotTagItem, { ...t }),
11046
+ t.type === "alert-tag" && /* @__PURE__ */ c(We.AlertTagItem, { ...t }),
11047
+ t.type === "balance-tag" && /* @__PURE__ */ c(We.BalanceTagItem, { ...t }),
11048
+ t.type === "status-tag" && /* @__PURE__ */ c(We.StatusTagItem, { ...t }),
11049
+ t.type === "raw-tag" && /* @__PURE__ */ c(We.RawTagItem, { ...t }),
11050
+ t.type === "tag-list" && /* @__PURE__ */ c(We.TagListItem, { ...t.tagList }),
11051
11051
  t.type === "avatar-list" && /* @__PURE__ */ c("li", { className: "w-fit list-none px-1.5 py-1", children: /* @__PURE__ */ c(Fs, { ...t.avatarList }) })
11052
11052
  ] }), ry = P(
11053
11053
  function({ title: e, content: n, isHorizontal: r = !1, spacingAtTheBottom: i }, s) {
@@ -11061,12 +11061,12 @@ const ty = V("DataList", Wd), Ve = Object.assign(ty, {
11061
11061
  i && !r && "pb-3",
11062
11062
  r && "xs:[&_ul>li]:p-0 [&_ul]:flex-1"
11063
11063
  ),
11064
- children: /* @__PURE__ */ c(Ve, { label: e, isHorizontal: r, children: o.map((l, a) => /* @__PURE__ */ c(ny, { content: l }, a)) })
11064
+ children: /* @__PURE__ */ c(We, { label: e, isHorizontal: r, children: o.map((l, a) => /* @__PURE__ */ c(ny, { content: l }, a)) })
11065
11065
  }
11066
11066
  );
11067
11067
  }
11068
11068
  ), iy = de(
11069
- V("DetailsItem", ry)
11069
+ W("DetailsItem", ry)
11070
11070
  ), sy = P(
11071
11071
  function({ title: e, tableView: n = !1, details: r, dataTestId: i }, s) {
11072
11072
  return /* @__PURE__ */ c(Pa, { dataTestId: i, children: /* @__PURE__ */ g("div", { ref: s, className: "flex flex-col gap-4", children: [
@@ -11095,7 +11095,7 @@ const ty = V("DataList", Wd), Ve = Object.assign(ty, {
11095
11095
  )
11096
11096
  ] }) });
11097
11097
  }
11098
- ), tI = V(
11098
+ ), tI = W(
11099
11099
  "DetailsItemsList",
11100
11100
  sy
11101
11101
  ), Ud = z.forwardRef(({ person: t, onClick: e, ...n }, r) => {
@@ -11175,14 +11175,14 @@ const ty = V("DataList", Wd), Ve = Object.assign(ty, {
11175
11175
  ] });
11176
11176
  Ud.displayName = "OnePersonListItem";
11177
11177
  const nI = de(
11178
- V(
11178
+ W(
11179
11179
  "OnePersonListItem",
11180
11180
  ue(Ud, oy)
11181
11181
  )
11182
11182
  );
11183
11183
  function Gd() {
11184
- const { canvasContent: t, closeCanvas: e } = Fa(), n = Vn(), [r, i] = L(0), s = K(t);
11185
- W(() => {
11184
+ const { canvasContent: t, closeCanvas: e } = Fa(), n = Wn(), [r, i] = L(0), s = K(t);
11185
+ V(() => {
11186
11186
  t && s.current && t !== s.current && i((a) => a + 1), s.current = t;
11187
11187
  }, [t]);
11188
11188
  const o = t ? Qh(t.type) : void 0, l = () => {
@@ -11260,7 +11260,7 @@ function cy({
11260
11260
  ai: r,
11261
11261
  aiPromotion: i
11262
11262
  }) {
11263
- const s = r?.enabled ? ep : i?.enabled ? V1 : Rp, o = r?.enabled ? r : i?.enabled ? i : void 0;
11263
+ const s = r?.enabled ? ep : i?.enabled ? W1 : Rp, o = r?.enabled ? r : i?.enabled ? i : void 0;
11264
11264
  return /* @__PURE__ */ c(s, { ...o, children: /* @__PURE__ */ c(
11265
11265
  hy,
11266
11266
  {
@@ -11272,7 +11272,7 @@ function cy({
11272
11272
  }
11273
11273
  ) });
11274
11274
  }
11275
- const rI = V(
11275
+ const rI = W(
11276
11276
  "ApplicationFrame",
11277
11277
  ay
11278
11278
  ), dy = ({ contentId: t }) => {
@@ -11293,7 +11293,7 @@ function uy(t, e, n) {
11293
11293
  }
11294
11294
  function fy(t, e) {
11295
11295
  const { sidebarState: n, toggleSidebar: r } = un(), i = K(t);
11296
- W(() => {
11296
+ V(() => {
11297
11297
  e && uy(
11298
11298
  t,
11299
11299
  i.current,
@@ -11308,7 +11308,7 @@ function hy({
11308
11308
  sidebar: r,
11309
11309
  banner: i
11310
11310
  }) {
11311
- const { sidebarState: s, toggleSidebar: o, isSmallScreen: l, setForceFloat: a } = un(), d = Vn(), {
11311
+ const { sidebarState: s, toggleSidebar: o, isSmallScreen: l, setForceFloat: a } = un(), d = Wn(), {
11312
11312
  open: f,
11313
11313
  visualizationMode: u,
11314
11314
  canvasContent: h,
@@ -11318,7 +11318,7 @@ function hy({
11318
11318
  C,
11319
11319
  T
11320
11320
  ] = L(!1);
11321
- W(() => {
11321
+ V(() => {
11322
11322
  !b && S.current && T(!0), S.current = b;
11323
11323
  }, [b]);
11324
11324
  const N = b || C || I, R = ee(() => _ ? { duration: 0.15, ease: "easeOut" } : I ? { duration: 0.4, ease: [0.25, 0.1, 0.25, 1] } : { duration: 0 }, [_, I]), y = ji(
@@ -11327,9 +11327,9 @@ function hy({
11327
11327
  ), A = ji(`(max-width: ${Er.md}px)`, {
11328
11328
  initializeWithValue: !0
11329
11329
  });
11330
- return W(() => {
11330
+ return V(() => {
11331
11331
  a(f);
11332
- }, [f, a]), W(() => {
11332
+ }, [f, a]), V(() => {
11333
11333
  a(x);
11334
11334
  }, [x, a]), fy(f, y), /* @__PURE__ */ c(
11335
11335
  tp,
@@ -11560,7 +11560,7 @@ function Kd({
11560
11560
  }
11561
11561
  Kd.displayName = "DaytimePage";
11562
11562
  const iI = de(
11563
- V("DaytimePage", Kd)
11563
+ W("DaytimePage", Kd)
11564
11564
  );
11565
11565
  function my(t) {
11566
11566
  return t.filter((e) => !!e.title).map(({ title: e, description: n, href: r, onClick: i, target: s }) => ({
@@ -11597,7 +11597,7 @@ function gy({ label: t, options: e, hasNewUpdate: n }) {
11597
11597
  );
11598
11598
  }
11599
11599
  const sI = de(
11600
- V("OmniButton", gy)
11600
+ W("OmniButton", gy)
11601
11601
  );
11602
11602
  function qd({ children: t, header: e, embedded: n = !1 }) {
11603
11603
  return /* @__PURE__ */ g(
@@ -11612,7 +11612,7 @@ function qd({ children: t, header: e, embedded: n = !1 }) {
11612
11612
  );
11613
11613
  }
11614
11614
  qd.displayName = "Page";
11615
- const oI = de(V("Page", qd));
11615
+ const oI = de(W("Page", qd));
11616
11616
  function by({
11617
11617
  companies: t,
11618
11618
  selected: e,
@@ -11738,7 +11738,7 @@ const wy = ({
11738
11738
  badge: e ? { icon: Ba, type: "highlight" } : void 0
11739
11739
  }
11740
11740
  ),
11741
- /* @__PURE__ */ c(Je, { tag: "span", children: t?.name ?? "" })
11741
+ /* @__PURE__ */ c(Ye, { tag: "span", children: t?.name ?? "" })
11742
11742
  ]
11743
11743
  }
11744
11744
  );
@@ -11771,7 +11771,7 @@ function lI({
11771
11771
  size: "xs"
11772
11772
  }
11773
11773
  ),
11774
- /* @__PURE__ */ c(Je, { children: `${t.firstName} ${t.lastName}` })
11774
+ /* @__PURE__ */ c(Ye, { children: `${t.firstName} ${t.lastName}` })
11775
11775
  ]
11776
11776
  }
11777
11777
  ) }) }),
@@ -11847,7 +11847,7 @@ function xy({ isExpanded: t }) {
11847
11847
  }
11848
11848
  function yy() {
11849
11849
  const { prevSidebarState: t, sidebarState: e, toggleSidebar: n, isSmallScreen: r } = un(), i = K(null);
11850
- return W(() => {
11850
+ return V(() => {
11851
11851
  t === "hidden" && e === "locked" && i.current?.focus();
11852
11852
  }, [t, e]), /* @__PURE__ */ g(
11853
11853
  Os,
@@ -11892,15 +11892,15 @@ function aI({
11892
11892
  }
11893
11893
  function vy() {
11894
11894
  const [t, e] = L(!1);
11895
- return W(() => {
11895
+ return V(() => {
11896
11896
  e(window.matchMedia("(pointer: coarse)").matches);
11897
11897
  }, []), t;
11898
11898
  }
11899
- const Jd = Vs(void 0);
11899
+ const Yd = Ws(void 0);
11900
11900
  function ky({ children: t }) {
11901
11901
  const [e, n] = L(!1), [r, i] = L(null);
11902
11902
  return /* @__PURE__ */ c(
11903
- Jd.Provider,
11903
+ Yd.Provider,
11904
11904
  {
11905
11905
  value: { isDragging: e, setIsDragging: n, draggedItemId: r, setDraggedItemId: i },
11906
11906
  children: t
@@ -11908,7 +11908,7 @@ function ky({ children: t }) {
11908
11908
  );
11909
11909
  }
11910
11910
  function to() {
11911
- const t = Hs(Jd);
11911
+ const t = Hs(Yd);
11912
11912
  if (!t)
11913
11913
  throw new Error("useDragContext must be used within a DragProvider");
11914
11914
  return t;
@@ -12014,7 +12014,7 @@ const Cy = ({
12014
12014
  }
12015
12015
  ) : t.avatar ? /* @__PURE__ */ c(lp, { size: "xs", avatar: t.avatar }) : null,
12016
12016
  /* @__PURE__ */ c(
12017
- Je,
12017
+ Ye,
12018
12018
  {
12019
12019
  tag: "span",
12020
12020
  className: "line-clamp-1 font-medium text-f1-foreground",
@@ -12040,7 +12040,7 @@ const Cy = ({
12040
12040
  open: x,
12041
12041
  onOpenChange: v,
12042
12042
  items: C,
12043
- children: /* @__PURE__ */ c("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ c(H, { icon: Wi, size: "sm" }) })
12043
+ children: /* @__PURE__ */ c("div", { className: "flex items-center justify-center", role: "list", children: /* @__PURE__ */ c(H, { icon: Vi, size: "sm" }) })
12044
12044
  }
12045
12045
  )
12046
12046
  }
@@ -12062,7 +12062,7 @@ const Cy = ({
12062
12062
  children: A
12063
12063
  }
12064
12064
  ) : /* @__PURE__ */ c("div", { className: y, children: A });
12065
- }, Yd = ({
12065
+ }, Jd = ({
12066
12066
  title: t,
12067
12067
  isOpen: e = !0,
12068
12068
  isRoot: n,
@@ -12071,7 +12071,7 @@ const Cy = ({
12071
12071
  isDragging: s,
12072
12072
  wasDragging: o
12073
12073
  }) => {
12074
- const [l, a] = L(e), d = Vn(), f = () => {
12074
+ const [l, a] = L(e), d = Wn(), f = () => {
12075
12075
  if (s || o?.current) return;
12076
12076
  const u = !l;
12077
12077
  a(u), r?.(u);
@@ -12146,7 +12146,7 @@ const Cy = ({
12146
12146
  }, h = (m) => {
12147
12147
  !o && !a.current && r?.(t, m);
12148
12148
  }, p = /* @__PURE__ */ c(
12149
- Yd,
12149
+ Jd,
12150
12150
  {
12151
12151
  title: t.title,
12152
12152
  isOpen: t.isOpen,
@@ -12254,7 +12254,7 @@ function Iy({
12254
12254
  disableDragging: d = !1
12255
12255
  }) {
12256
12256
  const f = me(), { isDragging: u } = to(), h = t.some((D) => D.isRoot), p = t.filter((D) => !D.isRoot).length > 0, m = e.length > 0, b = K(null), [w, x] = L(o), v = o.length > 0;
12257
- W(() => {
12257
+ V(() => {
12258
12258
  JSON.stringify(o) !== JSON.stringify(w) && x(o);
12259
12259
  }, [o]);
12260
12260
  const S = (D) => {
@@ -12273,9 +12273,9 @@ function Iy({
12273
12273
  },
12274
12274
  [w, l]
12275
12275
  ), [C, T] = L(!1), N = K(null);
12276
- W(() => {
12276
+ V(() => {
12277
12277
  e.length > 0 && !C && (n([...e]), T(!0));
12278
- }, [e, n, C]), W(() => {
12278
+ }, [e, n, C]), V(() => {
12279
12279
  const D = () => {
12280
12280
  N.current !== null && window.clearTimeout(N.current), N.current = window.setTimeout(() => {
12281
12281
  r.current && e.length > 0 && a();
@@ -12346,7 +12346,7 @@ function Iy({
12346
12346
  },
12347
12347
  `fixed-${$}`
12348
12348
  )) }),
12349
- v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(Yd, { title: f.favorites.favorites, children: /* @__PURE__ */ c("div", { ref: b, children: d ? /* @__PURE__ */ c("div", { className: R, children: A }) : /* @__PURE__ */ c(
12349
+ v && /* @__PURE__ */ c("div", { className: "mt-3 flex w-full flex-col gap-3 bg-transparent px-3", children: /* @__PURE__ */ c(Jd, { title: f.favorites.favorites, children: /* @__PURE__ */ c("div", { ref: b, children: d ? /* @__PURE__ */ c("div", { className: R, children: A }) : /* @__PURE__ */ c(
12350
12350
  Eo,
12351
12351
  {
12352
12352
  axis: "y",
@@ -12445,7 +12445,7 @@ function _y({
12445
12445
  footer: n,
12446
12446
  onFooterDropdownClick: r
12447
12447
  }) {
12448
- const { sidebarState: i, isSmallScreen: s } = un(), o = Vn(), [l, a] = Hi({ threshold: 1 }), [d, f] = Hi({ threshold: 1 }), u = me(), h = {
12448
+ const { sidebarState: i, isSmallScreen: s } = un(), o = Wn(), [l, a] = Hi({ threshold: 1 }), [d, f] = Hi({ threshold: 1 }), u = me(), h = {
12449
12449
  x: {
12450
12450
  ease: i !== "locked" ? s ? [0.25, 0.46, 0.45, 0.94] : [0.175, 0.885, 0.32, 1.1] : [0, 0, 0.58, 1],
12451
12451
  duration: o ? 0 : i !== "locked" && !s ? 0.3 : 0.2
@@ -12453,7 +12453,7 @@ function _y({
12453
12453
  top: { duration: o ? 0 : 0.1 },
12454
12454
  left: { duration: o ? 0 : 0.1 },
12455
12455
  default: { duration: o ? 0 : 0.2 }
12456
- }, p = () => n ? Lp(n) && r ? Ya(
12456
+ }, p = () => n ? Lp(n) && r ? Ja(
12457
12457
  n,
12458
12458
  {
12459
12459
  onDropdownClick: r
@@ -12608,7 +12608,7 @@ const Ly = ({
12608
12608
  ] })
12609
12609
  ] });
12610
12610
  }, fI = de(
12611
- V("OneApprovalHistory", Oy)
12611
+ W("OneApprovalHistory", Oy)
12612
12612
  ), Ke = () => /* @__PURE__ */ new Map(), as = (t) => {
12613
12613
  const e = Ke();
12614
12614
  return t.forEach((n, r) => {
@@ -12698,7 +12698,7 @@ class Xd {
12698
12698
  this._observers = Ke();
12699
12699
  }
12700
12700
  }
12701
- const bt = Math.floor, kr = Math.abs, sn = (t, e) => t < e ? t : e, Nt = (t, e) => t > e ? t : e, Zd = (t) => t !== 0 ? t < 0 : 1 / t < 0, Ol = 1, Ml = 2, Ti = 4, Di = 8, Dn = 32, ht = 64, Ce = 128, $y = 1 << 29, si = 31, ds = 63, Mt = 127, By = 2147483647, Qd = Number.MAX_SAFE_INTEGER, jy = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && bt(t) === t), Hy = String.fromCharCode, Vy = (t) => t.toLowerCase(), Wy = /^\s*/g, Uy = (t) => t.replace(Wy, ""), Gy = /([A-Z])/g, Pl = (t, e) => Uy(t.replace(Gy, (n) => `${e}${Vy(n)}`)), Ky = (t) => {
12701
+ const bt = Math.floor, kr = Math.abs, sn = (t, e) => t < e ? t : e, Nt = (t, e) => t > e ? t : e, Zd = (t) => t !== 0 ? t < 0 : 1 / t < 0, Ol = 1, Ml = 2, Ti = 4, Di = 8, Dn = 32, ht = 64, Ce = 128, $y = 1 << 29, si = 31, ds = 63, Mt = 127, By = 2147483647, Qd = Number.MAX_SAFE_INTEGER, jy = Number.isInteger || ((t) => typeof t == "number" && isFinite(t) && bt(t) === t), Hy = String.fromCharCode, Wy = (t) => t.toLowerCase(), Vy = /^\s*/g, Uy = (t) => t.replace(Vy, ""), Gy = /([A-Z])/g, Pl = (t, e) => Uy(t.replace(Gy, (n) => `${e}${Wy(n)}`)), Ky = (t) => {
12702
12702
  const e = unescape(encodeURIComponent(t)), n = e.length, r = new Uint8Array(n);
12703
12703
  for (let i = 0; i < n; i++)
12704
12704
  r[i] = /** @type {number} */
@@ -12707,7 +12707,7 @@ const bt = Math.floor, kr = Math.abs, sn = (t, e) => t < e ? t : e, Nt = (t, e)
12707
12707
  }, Rn = (
12708
12708
  /** @type {TextEncoder} */
12709
12709
  typeof TextEncoder < "u" ? new TextEncoder() : null
12710
- ), qy = (t) => Rn.encode(t), Jy = Rn ? qy : Ky;
12710
+ ), qy = (t) => Rn.encode(t), Yy = Rn ? qy : Ky;
12711
12711
  let vn = typeof TextDecoder > "u" ? null : new TextDecoder("utf-8", { fatal: !0, ignoreBOM: !0 });
12712
12712
  vn && vn.decode(new Uint8Array()).length === 1 && (vn = null);
12713
12713
  class qn {
@@ -12715,8 +12715,8 @@ class qn {
12715
12715
  this.cpos = 0, this.cbuf = new Uint8Array(100), this.bufs = [];
12716
12716
  }
12717
12717
  }
12718
- const Jn = () => new qn(), Yy = (t) => {
12719
- const e = Jn();
12718
+ const Yn = () => new qn(), Jy = (t) => {
12719
+ const e = Yn();
12720
12720
  return t(e), Ge(e);
12721
12721
  }, Xy = (t) => {
12722
12722
  let e = t.cpos;
@@ -12752,7 +12752,7 @@ const Jn = () => new qn(), Yy = (t) => {
12752
12752
  for (let r = 0; r < n; r++)
12753
12753
  he(t, fs[r]);
12754
12754
  } else
12755
- Te(t, Jy(e));
12755
+ Te(t, Yy(e));
12756
12756
  }, tv = (t, e) => {
12757
12757
  const n = unescape(encodeURIComponent(e)), r = n.length;
12758
12758
  G(t, r);
@@ -12762,7 +12762,7 @@ const Jn = () => new qn(), Yy = (t) => {
12762
12762
  /** @type {number} */
12763
12763
  n.codePointAt(i)
12764
12764
  );
12765
- }, Yt = Rn && /** @type {any} */
12765
+ }, Jt = Rn && /** @type {any} */
12766
12766
  Rn.encodeInto ? ev : tv, oi = (t, e) => {
12767
12767
  const n = t.cbuf.length, r = t.cpos, i = sn(n - r, e.length), s = e.length - i;
12768
12768
  t.cbuf.set(e.subarray(0, i), r), t.cpos += i, s > 0 && (t.bufs.push(t.cbuf), t.cbuf = new Uint8Array(Nt(n * 2, s)), t.cbuf.set(e.subarray(i)), t.cpos = s);
@@ -12778,7 +12778,7 @@ Rn.encodeInto ? ev : tv, oi = (t, e) => {
12778
12778
  ), Fl = new DataView(new ArrayBuffer(4)), sv = (t) => (Fl.setFloat32(0, t), Fl.getFloat32(0) === t), on = (t, e) => {
12779
12779
  switch (typeof e) {
12780
12780
  case "string":
12781
- he(t, 119), Yt(t, e);
12781
+ he(t, 119), Jt(t, e);
12782
12782
  break;
12783
12783
  case "number":
12784
12784
  jy(e) && kr(e) <= By ? (he(t, 125), no(t, e)) : sv(e) ? (he(t, 124), nv(t, e)) : (he(t, 123), rv(t, e));
@@ -12801,7 +12801,7 @@ Rn.encodeInto ? ev : tv, oi = (t, e) => {
12801
12801
  G(t, n.length);
12802
12802
  for (let r = 0; r < n.length; r++) {
12803
12803
  const i = n[r];
12804
- Yt(t, i), on(t, e[i]);
12804
+ Jt(t, i), on(t, e[i]);
12805
12805
  }
12806
12806
  }
12807
12807
  break;
@@ -12885,7 +12885,7 @@ class ov {
12885
12885
  }
12886
12886
  toUint8Array() {
12887
12887
  const e = new qn();
12888
- return this.sarr.push(this.s), this.s = "", Yt(e, this.sarr.join("")), oi(e, this.lensE.toUint8Array()), Ge(e);
12888
+ return this.sarr.push(this.s), this.s = "", Jt(e, this.sarr.join("")), oi(e, this.lensE.toUint8Array()), Ge(e);
12889
12889
  }
12890
12890
  }
12891
12891
  const It = (t) => new Error(t), qe = () => {
@@ -13066,7 +13066,7 @@ const gv = crypto.getRandomValues.bind(crypto), bv = Math.random, nu = () => gv(
13066
13066
  new Promise(t)
13067
13067
  );
13068
13068
  Promise.all.bind(Promise);
13069
- const Vl = (t) => t === void 0 ? null : t;
13069
+ const Wl = (t) => t === void 0 ? null : t;
13070
13070
  class kv {
13071
13071
  constructor() {
13072
13072
  this.map = /* @__PURE__ */ new Map();
@@ -13093,7 +13093,7 @@ try {
13093
13093
  const Sv = ru, Nv = Object.assign, iu = Object.keys, Iv = (t, e) => {
13094
13094
  for (const n in t)
13095
13095
  e(t[n], n);
13096
- }, Wl = (t) => iu(t).length, Av = (t) => {
13096
+ }, Vl = (t) => iu(t).length, Av = (t) => {
13097
13097
  for (const e in t)
13098
13098
  return !1;
13099
13099
  return !0;
@@ -13102,7 +13102,7 @@ const Sv = ru, Nv = Object.assign, iu = Object.keys, Iv = (t, e) => {
13102
13102
  if (!e(t[n], n))
13103
13103
  return !1;
13104
13104
  return !0;
13105
- }, _v = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ev = (t, e) => t === e || Wl(t) === Wl(e) && su(t, (n, r) => (n !== void 0 || _v(e, r)) && e[r] === n), Tv = Object.freeze, ou = (t) => {
13105
+ }, _v = (t, e) => Object.prototype.hasOwnProperty.call(t, e), Ev = (t, e) => t === e || Vl(t) === Vl(e) && su(t, (n, r) => (n !== void 0 || _v(e, r)) && e[r] === n), Tv = Object.freeze, ou = (t) => {
13106
13106
  for (const e in t) {
13107
13107
  const n = t[e];
13108
13108
  (typeof n == "object" || typeof n == "function") && ou(t[e]);
@@ -13135,7 +13135,7 @@ const Rv = () => {
13135
13135
  }
13136
13136
  })) : et = Ke();
13137
13137
  return et;
13138
- }, ps = (t) => Rv().has(t), jr = (t) => Vl(ln ? process.env[t.toUpperCase().replaceAll("-", "_")] : Sv.getItem(t)), au = (t) => ps("--" + t) || jr(t) !== null;
13138
+ }, ps = (t) => Rv().has(t), jr = (t) => Wl(ln ? process.env[t.toUpperCase().replaceAll("-", "_")] : Sv.getItem(t)), au = (t) => ps("--" + t) || jr(t) !== null;
13139
13139
  au("production");
13140
13140
  const Lv = ln && Dv(process.env.FORCE_COLOR, ["true", "1", "2"]), Ov = Lv || !ps("--no-colors") && // @todo deprecate --no-colors
13141
13141
  !au("no-color") && (!ln || process.stdout.isTTY) && (!ln || ps("--color") || jr("COLORTERM") !== null || (jr("TERM") || "").includes("color")), Mv = (t) => {
@@ -13143,7 +13143,7 @@ const Lv = ln && Dv(process.env.FORCE_COLOR, ["true", "1", "2"]), Ov = Lv || !ps
13143
13143
  for (let n = 0; n < t.byteLength; n++)
13144
13144
  e += Hy(t[n]);
13145
13145
  return btoa(e);
13146
- }, Pv = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Fv = lu ? Mv : Pv, zv = (t) => Yy((e) => on(e, t));
13146
+ }, Pv = (t) => Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64"), Fv = lu ? Mv : Pv, zv = (t) => Jy((e) => on(e, t));
13147
13147
  class $v {
13148
13148
  /**
13149
13149
  * @param {L} left
@@ -13168,7 +13168,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
13168
13168
  destroy() {
13169
13169
  t(this._);
13170
13170
  }
13171
- }, Vv = Hv(clearTimeout), cu = (t, e) => new Vv(setTimeout(e, t)), yt = Symbol, du = yt(), uu = yt(), Wv = yt(), Uv = yt(), Gv = yt(), fu = yt(), Kv = yt(), ao = yt(), qv = yt(), Jv = (t) => {
13171
+ }, Wv = Hv(clearTimeout), cu = (t, e) => new Wv(setTimeout(e, t)), yt = Symbol, du = yt(), uu = yt(), Vv = yt(), Uv = yt(), Gv = yt(), fu = yt(), Kv = yt(), ao = yt(), qv = yt(), Yv = (t) => {
13172
13172
  t.length === 1 && t[0]?.constructor === Function && (t = /** @type {Array<string|Symbol|Object|number>} */
13173
13173
  /** @type {[function]} */
13174
13174
  t[0]());
@@ -13188,10 +13188,10 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
13188
13188
  i instanceof Symbol || n.push(i);
13189
13189
  }
13190
13190
  return n;
13191
- }, Yv = {
13191
+ }, Jv = {
13192
13192
  [du]: dt("font-weight", "bold"),
13193
13193
  [uu]: dt("font-weight", "normal"),
13194
- [Wv]: dt("color", "blue"),
13194
+ [Vv]: dt("color", "blue"),
13195
13195
  [Gv]: dt("color", "green"),
13196
13196
  [Uv]: dt("color", "grey"),
13197
13197
  [fu]: dt("color", "red"),
@@ -13206,7 +13206,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
13206
13206
  const e = [], n = [], r = Ke();
13207
13207
  let i = [], s = 0;
13208
13208
  for (; s < t.length; s++) {
13209
- const o = t[s], l = Yv[o];
13209
+ const o = t[s], l = Jv[o];
13210
13210
  if (l !== void 0)
13211
13211
  r.set(l.left, l.right);
13212
13212
  else {
@@ -13224,7 +13224,7 @@ const jv = (t) => My(t, (e, n) => `${n}:${e};`).join(""), Hv = (t) => class {
13224
13224
  o instanceof Symbol || i.push(o);
13225
13225
  }
13226
13226
  return i;
13227
- }, hu = Ov ? Xv : Jv, Zv = (...t) => {
13227
+ }, hu = Ov ? Xv : Yv, Zv = (...t) => {
13228
13228
  console.log(...hu(t)), mu.forEach((e) => e.print(t));
13229
13229
  }, pu = (...t) => {
13230
13230
  console.warn(...hu(t)), t.unshift(ao), mu.forEach((e) => e.print(t));
@@ -13364,7 +13364,7 @@ const At = (t, e, n) => e.clients.forEach((r, i) => {
13364
13364
  const u = t.readDsClock(), h = u + t.readDsLen();
13365
13365
  if (u < d) {
13366
13366
  d < h && On(r, o, d, h - d);
13367
- let p = Ye(a, u), m = a[p];
13367
+ let p = Je(a, u), m = a[p];
13368
13368
  for (!m.deleted && m.id.clock < u && (a.splice(p + 1, 0, qr(e, m, u - m.id.clock)), p++); p < a.length && (m = a[p++], m.id.clock < h); )
13369
13369
  m.deleted || (h < m.id.clock + m.length && a.splice(p, 0, qr(e, m, h - m.id.clock)), m.delete(e));
13370
13370
  } else
@@ -13377,7 +13377,7 @@ const At = (t, e, n) => e.clients.forEach((r, i) => {
13377
13377
  }
13378
13378
  return null;
13379
13379
  }, wu = nu;
13380
- class Wt extends Xd {
13380
+ class Vt extends Xd {
13381
13381
  /**
13382
13382
  * @param {DocOpts} opts configuration
13383
13383
  */
@@ -13406,7 +13406,7 @@ class Wt extends Xd {
13406
13406
  */
13407
13407
  load() {
13408
13408
  const e = this._item;
13409
- e !== null && !this.shouldLoad && Y(
13409
+ e !== null && !this.shouldLoad && J(
13410
13410
  /** @type {any} */
13411
13411
  e.parent.doc,
13412
13412
  (n) => {
@@ -13436,7 +13436,7 @@ class Wt extends Xd {
13436
13436
  * @public
13437
13437
  */
13438
13438
  transact(e, n = null) {
13439
- return Y(this, e, n);
13439
+ return J(this, e, n);
13440
13440
  }
13441
13441
  /**
13442
13442
  * Define a shared data type.
@@ -13576,7 +13576,7 @@ class Wt extends Xd {
13576
13576
  /** @type {ContentDoc} */
13577
13577
  e.content
13578
13578
  );
13579
- n.doc = new Wt({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = e, Y(
13579
+ n.doc = new Vt({ guid: this.guid, ...n.opts, shouldLoad: !1 }), n.doc._item = e, J(
13580
13580
  /** @type {any} */
13581
13581
  e.parent.doc,
13582
13582
  (r) => {
@@ -13712,7 +13712,7 @@ class Hr extends rk {
13712
13712
  }
13713
13713
  class ik {
13714
13714
  constructor() {
13715
- this.restEncoder = Jn();
13715
+ this.restEncoder = Yn();
13716
13716
  }
13717
13717
  toUint8Array() {
13718
13718
  return Ge(this.restEncoder);
@@ -13762,7 +13762,7 @@ class sk extends ik {
13762
13762
  * @param {string} s
13763
13763
  */
13764
13764
  writeString(e) {
13765
- Yt(this.restEncoder, e);
13765
+ Jt(this.restEncoder, e);
13766
13766
  }
13767
13767
  /**
13768
13768
  * @param {boolean} isYKey
@@ -13800,18 +13800,18 @@ class sk extends ik {
13800
13800
  * @param {any} embed
13801
13801
  */
13802
13802
  writeJSON(e) {
13803
- Yt(this.restEncoder, JSON.stringify(e));
13803
+ Jt(this.restEncoder, JSON.stringify(e));
13804
13804
  }
13805
13805
  /**
13806
13806
  * @param {string} key
13807
13807
  */
13808
13808
  writeKey(e) {
13809
- Yt(this.restEncoder, e);
13809
+ Jt(this.restEncoder, e);
13810
13810
  }
13811
13811
  }
13812
13812
  class ok {
13813
13813
  constructor() {
13814
- this.restEncoder = Jn(), this.dsCurrVal = 0;
13814
+ this.restEncoder = Yn(), this.dsCurrVal = 0;
13815
13815
  }
13816
13816
  toUint8Array() {
13817
13817
  return Ge(this.restEncoder);
@@ -13838,7 +13838,7 @@ class ai extends ok {
13838
13838
  super(), this.keyMap = /* @__PURE__ */ new Map(), this.keyClock = 0, this.keyClockEncoder = new Ri(), this.clientEncoder = new Cr(), this.leftClockEncoder = new Ri(), this.rightClockEncoder = new Ri(), this.infoEncoder = new zl(us), this.stringEncoder = new ov(), this.parentInfoEncoder = new zl(us), this.typeRefEncoder = new Cr(), this.lenEncoder = new Cr();
13839
13839
  }
13840
13840
  toUint8Array() {
13841
- const e = Jn();
13841
+ const e = Yn();
13842
13842
  return G(e, 0), Te(e, this.keyClockEncoder.toUint8Array()), Te(e, this.clientEncoder.toUint8Array()), Te(e, this.leftClockEncoder.toUint8Array()), Te(e, this.rightClockEncoder.toUint8Array()), Te(e, Ge(this.infoEncoder)), Te(e, this.stringEncoder.toUint8Array()), Te(e, Ge(this.parentInfoEncoder)), Te(e, this.typeRefEncoder.toUint8Array()), Te(e, this.lenEncoder.toUint8Array()), oi(e, Ge(this.restEncoder)), Ge(e);
13843
13843
  }
13844
13844
  /**
@@ -13928,7 +13928,7 @@ class ai extends ok {
13928
13928
  }
13929
13929
  const lk = (t, e, n, r) => {
13930
13930
  r = Nt(r, e[0].id.clock);
13931
- const i = Ye(e, r);
13931
+ const i = Je(e, r);
13932
13932
  G(t.restEncoder, e.length - i), t.writeClient(n), G(t.restEncoder, r);
13933
13933
  const s = e[i];
13934
13934
  s.write(t, r - s.id.clock);
@@ -13965,7 +13965,7 @@ const lk = (t, e, n, r) => {
13965
13965
  }
13966
13966
  case 10: {
13967
13967
  const u = te(t.restDecoder);
13968
- o[d] = new We(j(l, a), u), a += u;
13968
+ o[d] = new Ve(j(l, a), u), a += u;
13969
13969
  break;
13970
13970
  }
13971
13971
  default: {
@@ -14034,7 +14034,7 @@ const lk = (t, e, n, r) => {
14034
14034
  r.length = 0;
14035
14035
  };
14036
14036
  for (; ; ) {
14037
- if (f.constructor !== We) {
14037
+ if (f.constructor !== Ve) {
14038
14038
  const m = xt(u, f.id.client, () => ae(e, f.id.client)) - f.id.clock;
14039
14039
  if (m < 0)
14040
14040
  r.push(f), d(f.id.client, f.id.clock - 1), h();
@@ -14077,7 +14077,7 @@ const lk = (t, e, n, r) => {
14077
14077
  return xu(p, l, /* @__PURE__ */ new Map()), G(p.restEncoder, 0), { missing: a, update: p.toUint8Array() };
14078
14078
  }
14079
14079
  return null;
14080
- }, dk = (t, e) => xu(t, e.doc.store, e.beforeState), uk = (t, e, n, r = new Hr(t)) => Y(e, (i) => {
14080
+ }, dk = (t, e) => xu(t, e.doc.store, e.beforeState), uk = (t, e, n, r = new Hr(t)) => J(e, (i) => {
14081
14081
  i.local = !1;
14082
14082
  let s = !1;
14083
14083
  const o = i.doc, l = o.store, a = ak(r, o), d = ck(i, l, a), f = l.pendingStructs;
@@ -14147,7 +14147,7 @@ const dr = (t, e) => t === e || t !== null && e !== null && t.client === e.clien
14147
14147
  }
14148
14148
  return !1;
14149
14149
  };
14150
- class Vr {
14150
+ class Wr {
14151
14151
  /**
14152
14152
  * @param {ID|null} type
14153
14153
  * @param {string|null} tname
@@ -14170,7 +14170,7 @@ class hk {
14170
14170
  }
14171
14171
  const pk = (t, e, n = 0) => new hk(t, e, n), ur = (t, e, n) => {
14172
14172
  let r = null, i = null;
14173
- return t._item === null ? i = Mn(t) : r = j(t._item.id.client, t._item.id.clock), new Vr(r, i, e, n);
14173
+ return t._item === null ? i = Mn(t) : r = j(t._item.id.client, t._item.id.clock), new Wr(r, i, e, n);
14174
14174
  }, Mi = (t, e, n = 0) => {
14175
14175
  let r = t._start;
14176
14176
  if (n < 0) {
@@ -14271,7 +14271,7 @@ const ci = (t) => {
14271
14271
  throw _e();
14272
14272
  }
14273
14273
  n.push(e);
14274
- }, Ye = (t, e) => {
14274
+ }, Je = (t, e) => {
14275
14275
  let n = 0, r = t.length - 1, i = t[r], s = i.id.clock;
14276
14276
  if (s === e)
14277
14277
  return r;
@@ -14288,12 +14288,12 @@ const ci = (t) => {
14288
14288
  throw _e();
14289
14289
  }, bk = (t, e) => {
14290
14290
  const n = t.clients.get(e.client);
14291
- return n[Ye(n, e.clock)];
14291
+ return n[Je(n, e.clock)];
14292
14292
  }, Zt = (
14293
14293
  /** @type {function(StructStore,ID):Item} */
14294
14294
  bk
14295
14295
  ), ws = (t, e, n) => {
14296
- const r = Ye(e, n), i = e[r];
14296
+ const r = Je(e, n), i = e[r];
14297
14297
  return i.id.clock < n && i instanceof Z ? (e.splice(r + 1, 0, qr(t, i, n - i.id.clock)), r + 1) : r;
14298
14298
  }, Ne = (t, e) => {
14299
14299
  const n = (
@@ -14301,15 +14301,15 @@ const ci = (t) => {
14301
14301
  t.doc.store.clients.get(e.client)
14302
14302
  );
14303
14303
  return n[ws(t, n, e.clock)];
14304
- }, Jl = (t, e, n) => {
14305
- const r = e.clients.get(n.client), i = Ye(r, n.clock), s = r[i];
14304
+ }, Yl = (t, e, n) => {
14305
+ const r = e.clients.get(n.client), i = Je(r, n.clock), s = r[i];
14306
14306
  return n.clock !== s.id.clock + s.length - 1 && s.constructor !== Pe && r.splice(i + 1, 0, qr(t, s, n.clock - s.id.clock + 1)), s;
14307
14307
  }, wk = (t, e, n) => {
14308
14308
  const r = (
14309
14309
  /** @type {Array<GC|Item>} */
14310
14310
  t.clients.get(e.id.client)
14311
14311
  );
14312
- r[Ye(r, e.id.clock)] = n;
14312
+ r[Je(r, e.id.clock)] = n;
14313
14313
  }, Su = (t, e, n, r, i) => {
14314
14314
  if (r === 0)
14315
14315
  return;
@@ -14329,7 +14329,7 @@ class xk {
14329
14329
  this.doc = e, this.deleteSet = new pn(), this.beforeState = ci(e.store), this.afterState = /* @__PURE__ */ new Map(), this.changed = /* @__PURE__ */ new Map(), this.changedParentTypes = /* @__PURE__ */ new Map(), this._mergeStructs = [], this.origin = n, this.meta = /* @__PURE__ */ new Map(), this.local = r, this.subdocsAdded = /* @__PURE__ */ new Set(), this.subdocsRemoved = /* @__PURE__ */ new Set(), this.subdocsLoaded = /* @__PURE__ */ new Set(), this._needFormattingCleanup = !1;
14330
14330
  }
14331
14331
  }
14332
- const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r) => e.beforeState.get(r) !== n) ? !1 : (uo(e.deleteSet), dk(t, e), fo(t, e.deleteSet), !0), Xl = (t, e, n) => {
14332
+ const Jl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r) => e.beforeState.get(r) !== n) ? !1 : (uo(e.deleteSet), dk(t, e), fo(t, e.deleteSet), !0), Xl = (t, e, n) => {
14333
14333
  const r = e._item;
14334
14334
  (r === null || r.id.clock < (t.beforeState.get(r.id.client) || 0) && !r.deleted) && xt(t.changed, e, Ft).add(n);
14335
14335
  }, Nr = (t, e) => {
@@ -14356,7 +14356,7 @@ const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
14356
14356
  );
14357
14357
  for (let o = i.length - 1; o >= 0; o--) {
14358
14358
  const l = i[o], a = l.clock + l.len;
14359
- for (let d = Ye(s, l.clock), f = s[d]; d < s.length && f.id.clock < a; f = s[++d]) {
14359
+ for (let d = Je(s, l.clock), f = s[d]; d < s.length && f.id.clock < a; f = s[++d]) {
14360
14360
  const u = s[d];
14361
14361
  if (l.clock + l.len <= u.id.clock)
14362
14362
  break;
@@ -14371,7 +14371,7 @@ const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
14371
14371
  e.clients.get(r)
14372
14372
  );
14373
14373
  for (let s = n.length - 1; s >= 0; s--) {
14374
- const o = n[s], l = sn(i.length - 1, 1 + Ye(i, o.clock + o.len - 1));
14374
+ const o = n[s], l = sn(i.length - 1, 1 + Je(i, o.clock + o.len - 1));
14375
14375
  for (let a = l, d = i[a]; a > 0 && d.id.clock >= o.clock; d = i[a])
14376
14376
  a -= 1 + Nr(i, a);
14377
14377
  }
@@ -14402,7 +14402,7 @@ const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
14402
14402
  const p = (
14403
14403
  /** @type {Array<GC|Item>} */
14404
14404
  i.clients.get(u)
14405
- ), m = Nt(Ye(p, h), 1);
14405
+ ), m = Nt(Je(p, h), 1);
14406
14406
  for (let b = p.length - 1; b >= m; )
14407
14407
  b -= 1 + Nr(p, b);
14408
14408
  }
@@ -14411,16 +14411,16 @@ const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
14411
14411
  const { client: u, clock: h } = o[f].id, p = (
14412
14412
  /** @type {Array<GC|Item>} */
14413
14413
  i.clients.get(u)
14414
- ), m = Ye(p, h);
14414
+ ), m = Je(p, h);
14415
14415
  m + 1 < p.length && Nr(p, m + 1) > 1 || m > 0 && Nr(p, m);
14416
14416
  }
14417
14417
  if (!n.local && n.afterState.get(r.clientID) !== n.beforeState.get(r.clientID) && (Zv(ao, du, "[yjs] ", uu, fu, "Changed the client-id because another client seems to be using it."), r.clientID = wu()), r.emit("afterTransactionCleanup", [n, r]), r._observers.has("update")) {
14418
14418
  const f = new sk();
14419
- Yl(f, n) && r.emit("update", [f.toUint8Array(), n.origin, r, n]);
14419
+ Jl(f, n) && r.emit("update", [f.toUint8Array(), n.origin, r, n]);
14420
14420
  }
14421
14421
  if (r._observers.has("updateV2")) {
14422
14422
  const f = new ai();
14423
- Yl(f, n) && r.emit("updateV2", [f.toUint8Array(), n.origin, r, n]);
14423
+ Jl(f, n) && r.emit("updateV2", [f.toUint8Array(), n.origin, r, n]);
14424
14424
  }
14425
14425
  const { subdocsAdded: l, subdocsLoaded: a, subdocsRemoved: d } = n;
14426
14426
  (l.size > 0 || d.size > 0 || a.size > 0) && (l.forEach((f) => {
@@ -14428,7 +14428,7 @@ const Yl = (t, e) => e.deleteSet.clients.size === 0 && !Py(e.afterState, (n, r)
14428
14428
  }), d.forEach((f) => r.subdocs.delete(f)), r.emit("subdocs", [{ loaded: a, added: l, removed: d }, r, n]), d.forEach((f) => f.destroy())), t.length <= e + 1 ? (r._transactionCleanups = [], r.emit("afterAllTransactions", [r, t])) : Nu(t, e + 1);
14429
14429
  }
14430
14430
  }
14431
- }, Y = (t, e, n = null, r = !0) => {
14431
+ }, J = (t, e, n = null, r = !0) => {
14432
14432
  const i = t._transactionCleanups;
14433
14433
  let s = !1, o = null;
14434
14434
  t._transaction === null && (s = !0, t._transaction = new xk(t, n, r), i.push(t._transaction), i.length === 1 && t.emit("beforeAllTransactions", [t]), t.emit("beforeTransaction", [t._transaction, t]));
@@ -14462,7 +14462,7 @@ const Zl = (t, e, n) => {
14462
14462
  }, Ql = (t, e, n) => {
14463
14463
  let r = null;
14464
14464
  const i = t.doc, s = t.scope;
14465
- Y(i, (l) => {
14465
+ J(i, (l) => {
14466
14466
  for (; e.length > 0 && t.currStackItem === null; ) {
14467
14467
  const a = i.store, d = (
14468
14468
  /** @type {StackItem} */
@@ -14522,7 +14522,7 @@ class Iu extends Xd {
14522
14522
  ignoreRemoteMapChanges: o = !1,
14523
14523
  doc: l = (
14524
14524
  /** @type {Doc} */
14525
- cs(e) ? e[0].doc : e instanceof Wt ? e : e.doc
14525
+ cs(e) ? e[0].doc : e instanceof Vt ? e : e.doc
14526
14526
  )
14527
14527
  } = {}) {
14528
14528
  super(), this.scope = [], this.doc = l, this.addToScope(e), this.deleteFilter = i, s.add(this), this.trackedOrigins = s, this.captureTransaction = r, this.undoStack = [], this.redoStack = [], this.undoing = !1, this.redoing = !1, this.currStackItem = null, this.lastChange = 0, this.ignoreRemoteMapChanges = o, this.captureTimeout = n, this.afterTransactionHandler = (a) => {
@@ -14673,7 +14673,7 @@ function* Ck(t) {
14673
14673
  const l = t.readInfo();
14674
14674
  if (l === 10) {
14675
14675
  const a = te(t.restDecoder);
14676
- yield new We(j(i, s), a), s += a;
14676
+ yield new Ve(j(i, s), a), s += a;
14677
14677
  } else if ((si & l) !== 0) {
14678
14678
  const a = (l & (ht | Ce)) === 0, d = new Z(
14679
14679
  j(i, s),
@@ -14715,7 +14715,7 @@ class Sk {
14715
14715
  next() {
14716
14716
  do
14717
14717
  this.curr = this.gen.next().value || null;
14718
- while (this.filterSkips && this.curr !== null && this.curr.constructor === We);
14718
+ while (this.filterSkips && this.curr !== null && this.curr.constructor === Ve);
14719
14719
  return this.curr;
14720
14720
  }
14721
14721
  }
@@ -14731,9 +14731,9 @@ const Ik = (t, e) => {
14731
14731
  if (t.constructor === Pe) {
14732
14732
  const { client: n, clock: r } = t.id;
14733
14733
  return new Pe(j(n, r + e), t.length - e);
14734
- } else if (t.constructor === We) {
14734
+ } else if (t.constructor === Ve) {
14735
14735
  const { client: n, clock: r } = t.id;
14736
- return new We(j(n, r + e), t.length - e);
14736
+ return new Ve(j(n, r + e), t.length - e);
14737
14737
  } else {
14738
14738
  const n = (
14739
14739
  /** @type {Item} */
@@ -14761,7 +14761,7 @@ const Ik = (t, e) => {
14761
14761
  (h, p) => {
14762
14762
  if (h.curr.id.client === p.curr.id.client) {
14763
14763
  const m = h.curr.id.clock - p.curr.id.clock;
14764
- return m === 0 ? h.curr.constructor === p.curr.constructor ? 0 : h.curr.constructor === We ? 1 : -1 : m;
14764
+ return m === 0 ? h.curr.constructor === p.curr.constructor ? 0 : h.curr.constructor === Ve ? 1 : -1 : m;
14765
14765
  } else
14766
14766
  return p.curr.id.client - h.curr.id.client;
14767
14767
  }
@@ -14784,16 +14784,16 @@ const Ik = (t, e) => {
14784
14784
  if (u !== s.struct.id.client)
14785
14785
  xn(l, s.struct, s.offset), s = { struct: h, offset: 0 }, f.next();
14786
14786
  else if (s.struct.id.clock + s.struct.length < h.id.clock)
14787
- if (s.struct.constructor === We)
14787
+ if (s.struct.constructor === Ve)
14788
14788
  s.struct.length = h.id.clock + h.length - s.struct.id.clock;
14789
14789
  else {
14790
14790
  xn(l, s.struct, s.offset);
14791
14791
  const m = h.id.clock - s.struct.id.clock - s.struct.length;
14792
- s = { struct: new We(j(u, s.struct.id.clock + s.struct.length), m), offset: 0 };
14792
+ s = { struct: new Ve(j(u, s.struct.id.clock + s.struct.length), m), offset: 0 };
14793
14793
  }
14794
14794
  else {
14795
14795
  const m = s.struct.id.clock + s.struct.length - h.id.clock;
14796
- m > 0 && (s.struct.constructor === We ? s.struct.length -= m : h = Ik(h, m)), s.struct.mergeWith(
14796
+ m > 0 && (s.struct.constructor === Ve ? s.struct.length -= m : h = Ik(h, m)), s.struct.mergeWith(
14797
14797
  /** @type {any} */
14798
14798
  h
14799
14799
  ) || (xn(l, s.struct, s.offset), s = { struct: h, offset: 0 }, f.next());
@@ -14803,14 +14803,14 @@ const Ik = (t, e) => {
14803
14803
  /** @type {Item | GC} */
14804
14804
  f.curr
14805
14805
  ), offset: 0 }, f.next();
14806
- for (let h = f.curr; h !== null && h.id.client === u && h.id.clock === s.struct.id.clock + s.struct.length && h.constructor !== We; h = f.next())
14806
+ for (let h = f.curr; h !== null && h.id.client === u && h.id.clock === s.struct.id.clock + s.struct.length && h.constructor !== Ve; h = f.next())
14807
14807
  xn(l, s.struct, s.offset), s = { struct: h, offset: 0 };
14808
14808
  }
14809
14809
  s !== null && (xn(l, s.struct, s.offset), s = null), Ak(l);
14810
14810
  const a = r.map((f) => nk(f)), d = ms(a);
14811
14811
  return fo(o, d), o.toUint8Array();
14812
14812
  }, Au = (t) => {
14813
- t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Ge(t.encoder.restEncoder) }), t.encoder.restEncoder = Jn(), t.written = 0);
14813
+ t.written > 0 && (t.clientStructs.push({ written: t.written, restEncoder: Ge(t.encoder.restEncoder) }), t.encoder.restEncoder = Yn(), t.written = 0);
14814
14814
  }, xn = (t, e, n) => {
14815
14815
  t.written > 0 && t.currClient !== e.id.client && Au(t), t.written === 0 && (t.currClient = e.id.client, t.encoder.writeClient(e.id.client), G(t.encoder.restEncoder, e.id.clock + n)), e.write(t.encoder, n), t.written++;
14816
14816
  }, Ak = (t) => {
@@ -15238,7 +15238,7 @@ const Tu = (t, e, n) => {
15238
15238
  return r.content.getContent()[e];
15239
15239
  e -= r.length;
15240
15240
  }
15241
- }, Wr = (t, e, n, r) => {
15241
+ }, Vr = (t, e, n, r) => {
15242
15242
  let i = n;
15243
15243
  const s = t.doc, o = s.clientID, l = s.store, a = n === null ? e._start : n.right;
15244
15244
  let d = [];
@@ -15261,12 +15261,12 @@ const Tu = (t, e, n) => {
15261
15261
  switch (f(), u.constructor) {
15262
15262
  case Uint8Array:
15263
15263
  case ArrayBuffer:
15264
- i = new Z(j(o, ae(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Yn(new Uint8Array(
15264
+ i = new Z(j(o, ae(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Jn(new Uint8Array(
15265
15265
  /** @type {Uint8Array} */
15266
15266
  u
15267
15267
  ))), i.integrate(t, 0);
15268
15268
  break;
15269
- case Wt:
15269
+ case Vt:
15270
15270
  i = new Z(j(o, ae(l, o)), i, i && i.lastId, a, a && a.id, e, null, new Xn(
15271
15271
  /** @type {Doc} */
15272
15272
  u
@@ -15284,7 +15284,7 @@ const Tu = (t, e, n) => {
15284
15284
  if (n > e._length)
15285
15285
  throw Mu();
15286
15286
  if (n === 0)
15287
- return e._searchMarker && Fn(e._searchMarker, n, r.length), Wr(t, e, null, r);
15287
+ return e._searchMarker && Fn(e._searchMarker, n, r.length), Vr(t, e, null, r);
15288
15288
  const i = n, s = ui(e, n);
15289
15289
  let o = e._start;
15290
15290
  for (s !== null && (o = s.p, n -= s.index, n === 0 && (o = o.prev, n += o && o.countable && !o.deleted ? o.length : 0)); o !== null; o = o.right)
@@ -15295,13 +15295,13 @@ const Tu = (t, e, n) => {
15295
15295
  }
15296
15296
  n -= o.length;
15297
15297
  }
15298
- return e._searchMarker && Fn(e._searchMarker, i, r.length), Wr(t, e, o, r);
15298
+ return e._searchMarker && Fn(e._searchMarker, i, r.length), Vr(t, e, o, r);
15299
15299
  }, Lk = (t, e, n) => {
15300
15300
  let i = (e._searchMarker || []).reduce((s, o) => o.index > s.index ? o : s, { index: 0, p: e._start }).p;
15301
15301
  if (i)
15302
15302
  for (; i.right; )
15303
15303
  i = i.right;
15304
- return Wr(t, e, i, n);
15304
+ return Vr(t, e, i, n);
15305
15305
  }, Fu = (t, e, n, r) => {
15306
15306
  if (r === 0)
15307
15307
  return;
@@ -15339,12 +15339,12 @@ const Tu = (t, e, n) => {
15339
15339
  l = new Bt([r]);
15340
15340
  break;
15341
15341
  case Uint8Array:
15342
- l = new Yn(
15342
+ l = new Jn(
15343
15343
  /** @type {Uint8Array} */
15344
15344
  r
15345
15345
  );
15346
15346
  break;
15347
- case Wt:
15347
+ case Vt:
15348
15348
  l = new Xn(
15349
15349
  /** @type {Doc} */
15350
15350
  r
@@ -15467,7 +15467,7 @@ class Qt extends pe {
15467
15467
  * @param {Array<T>} content The array of content
15468
15468
  */
15469
15469
  insert(e, n) {
15470
- this.doc !== null ? Y(this.doc, (r) => {
15470
+ this.doc !== null ? J(this.doc, (r) => {
15471
15471
  Pu(
15472
15472
  r,
15473
15473
  this,
@@ -15485,7 +15485,7 @@ class Qt extends pe {
15485
15485
  * @todo Use the following implementation in all types.
15486
15486
  */
15487
15487
  push(e) {
15488
- this.doc !== null ? Y(this.doc, (n) => {
15488
+ this.doc !== null ? J(this.doc, (n) => {
15489
15489
  Lk(
15490
15490
  n,
15491
15491
  this,
@@ -15509,7 +15509,7 @@ class Qt extends pe {
15509
15509
  * @param {number} length The number of elements to remove. Defaults to 1.
15510
15510
  */
15511
15511
  delete(e, n = 1) {
15512
- this.doc !== null ? Y(this.doc, (r) => {
15512
+ this.doc !== null ? J(this.doc, (r) => {
15513
15513
  Fu(r, this, e, n);
15514
15514
  }) : this._prelimContent.splice(e, n);
15515
15515
  }
@@ -15737,7 +15737,7 @@ class an extends pe {
15737
15737
  * @param {string} key The key of the element to remove.
15738
15738
  */
15739
15739
  delete(e) {
15740
- this.doc !== null ? Y(this.doc, (n) => {
15740
+ this.doc !== null ? J(this.doc, (n) => {
15741
15741
  Ur(n, this, e);
15742
15742
  }) : this._prelimContent.delete(e);
15743
15743
  }
@@ -15750,7 +15750,7 @@ class an extends pe {
15750
15750
  * @return {VAL}
15751
15751
  */
15752
15752
  set(e, n) {
15753
- return this.doc !== null ? Y(this.doc, (r) => {
15753
+ return this.doc !== null ? J(this.doc, (r) => {
15754
15754
  mo(
15755
15755
  r,
15756
15756
  this,
@@ -15785,7 +15785,7 @@ class an extends pe {
15785
15785
  * Removes all elements from this YMap.
15786
15786
  */
15787
15787
  clear() {
15788
- this.doc !== null ? Y(this.doc, (e) => {
15788
+ this.doc !== null ? J(this.doc, (e) => {
15789
15789
  this.forEach(function(n, r, i) {
15790
15790
  Ur(e, i, r);
15791
15791
  });
@@ -15932,7 +15932,7 @@ const na = (t, e, n) => {
15932
15932
  n.right = new Z(j(o, ae(s.store, o)), n.left, n.left && n.left.lastId, n.right, n.right && n.right.id, e, null, new Xe(a)), n.right.integrate(t, 0), n.forward();
15933
15933
  }
15934
15934
  Bu(t, e, n, l);
15935
- }, Vu = (t, e, n, r, i) => {
15935
+ }, Wu = (t, e, n, r, i) => {
15936
15936
  let s = e;
15937
15937
  const o = Ke();
15938
15938
  for (; s && (!s.countable || s.deleted); ) {
@@ -15981,7 +15981,7 @@ const na = (t, e, n) => {
15981
15981
  }
15982
15982
  }, Bk = (t) => {
15983
15983
  let e = 0;
15984
- return Y(
15984
+ return J(
15985
15985
  /** @type {Doc} */
15986
15986
  t.doc,
15987
15987
  (n) => {
@@ -15995,7 +15995,7 @@ const na = (t, e, n) => {
15995
15995
  o,
15996
15996
  /** @type {ContentFormat} */
15997
15997
  i.content
15998
- ) : (e += Vu(n, r, i, s, o), s = as(o), r = i)), i = i.right;
15998
+ ) : (e += Wu(n, r, i, s, o), s = as(o), r = i)), i = i.right;
15999
15999
  }
16000
16000
  ), e;
16001
16001
  }, jk = (t) => {
@@ -16017,7 +16017,7 @@ const na = (t, e, n) => {
16017
16017
  }
16018
16018
  );
16019
16019
  }
16020
- Y(n, (r) => {
16020
+ J(n, (r) => {
16021
16021
  At(t, t.deleteSet, (i) => {
16022
16022
  if (i instanceof Pe || !/** @type {YText} */
16023
16023
  i.parent._hasFormatting || e.has(
@@ -16047,7 +16047,7 @@ const na = (t, e, n) => {
16047
16047
  }
16048
16048
  e.forward();
16049
16049
  }
16050
- s && Vu(t, s, e.right, i, e.currentAttributes);
16050
+ s && Wu(t, s, e.right, i, e.currentAttributes);
16051
16051
  const o = (
16052
16052
  /** @type {AbstractType<any>} */
16053
16053
  /** @type {Item} */
@@ -16098,7 +16098,7 @@ class Hk extends di {
16098
16098
  /** @type {Doc} */
16099
16099
  this.target.doc
16100
16100
  ), n = [];
16101
- Y(e, (r) => {
16101
+ J(e, (r) => {
16102
16102
  const i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map();
16103
16103
  let o = this.target._start, l = null;
16104
16104
  const a = {};
@@ -16262,7 +16262,7 @@ class _t extends pe {
16262
16262
  * @public
16263
16263
  */
16264
16264
  applyDelta(e, { sanitize: n = !0 } = {}) {
16265
- this.doc !== null ? Y(this.doc, (r) => {
16265
+ this.doc !== null ? J(this.doc, (r) => {
16266
16266
  const i = new xs(null, this._start, 0, /* @__PURE__ */ new Map());
16267
16267
  for (let s = 0; s < e.length; s++) {
16268
16268
  const o = e[s];
@@ -16342,7 +16342,7 @@ class _t extends pe {
16342
16342
  }
16343
16343
  d();
16344
16344
  };
16345
- return e || n ? Y(o, (u) => {
16345
+ return e || n ? J(o, (u) => {
16346
16346
  e && bs(u, e), n && bs(u, n), f();
16347
16347
  }, "cleanup") : f(), i;
16348
16348
  }
@@ -16360,7 +16360,7 @@ class _t extends pe {
16360
16360
  if (n.length <= 0)
16361
16361
  return;
16362
16362
  const i = this.doc;
16363
- i !== null ? Y(i, (s) => {
16363
+ i !== null ? J(i, (s) => {
16364
16364
  const o = hr(s, this, e, !r);
16365
16365
  r || (r = {}, o.currentAttributes.forEach((l, a) => {
16366
16366
  r[a] = l;
@@ -16379,7 +16379,7 @@ class _t extends pe {
16379
16379
  */
16380
16380
  insertEmbed(e, n, r) {
16381
16381
  const i = this.doc;
16382
- i !== null ? Y(i, (s) => {
16382
+ i !== null ? J(i, (s) => {
16383
16383
  const o = hr(s, this, e, !r);
16384
16384
  Fi(s, this, o, n, r || {});
16385
16385
  }) : this._pending.push(() => this.insertEmbed(e, n, r || {}));
@@ -16396,7 +16396,7 @@ class _t extends pe {
16396
16396
  if (n === 0)
16397
16397
  return;
16398
16398
  const r = this.doc;
16399
- r !== null ? Y(r, (i) => {
16399
+ r !== null ? J(r, (i) => {
16400
16400
  ia(i, hr(i, this, e, !0), n);
16401
16401
  }) : this._pending.push(() => this.delete(e, n));
16402
16402
  }
@@ -16414,7 +16414,7 @@ class _t extends pe {
16414
16414
  if (n === 0)
16415
16415
  return;
16416
16416
  const i = this.doc;
16417
- i !== null ? Y(i, (s) => {
16417
+ i !== null ? J(i, (s) => {
16418
16418
  const o = hr(s, this, e, !1);
16419
16419
  o.right !== null && ra(s, this, o, n, r);
16420
16420
  }) : this._pending.push(() => this.format(e, n, r));
@@ -16429,7 +16429,7 @@ class _t extends pe {
16429
16429
  * @public
16430
16430
  */
16431
16431
  removeAttribute(e) {
16432
- this.doc !== null ? Y(this.doc, (n) => {
16432
+ this.doc !== null ? J(this.doc, (n) => {
16433
16433
  Ur(n, this, e);
16434
16434
  }) : this._pending.push(() => this.removeAttribute(e));
16435
16435
  }
@@ -16444,7 +16444,7 @@ class _t extends pe {
16444
16444
  * @public
16445
16445
  */
16446
16446
  setAttribute(e, n) {
16447
- this.doc !== null ? Y(this.doc, (r) => {
16447
+ this.doc !== null ? J(this.doc, (r) => {
16448
16448
  mo(r, this, e, n);
16449
16449
  }) : this._pending.push(() => this.setAttribute(e, n));
16450
16450
  }
@@ -16484,7 +16484,7 @@ class _t extends pe {
16484
16484
  e.writeTypeRef(aC);
16485
16485
  }
16486
16486
  }
16487
- const Vk = (t) => new _t();
16487
+ const Wk = (t) => new _t();
16488
16488
  class zi {
16489
16489
  /**
16490
16490
  * @param {YXmlFragment | YXmlElement} root
@@ -16685,7 +16685,7 @@ class $t extends pe {
16685
16685
  * @param {Array<YXmlElement|YXmlText>} content The array of content
16686
16686
  */
16687
16687
  insert(e, n) {
16688
- this.doc !== null ? Y(this.doc, (r) => {
16688
+ this.doc !== null ? J(this.doc, (r) => {
16689
16689
  Pu(r, this, e, n);
16690
16690
  }) : this._prelimContent.splice(e, 0, ...n);
16691
16691
  }
@@ -16701,9 +16701,9 @@ class $t extends pe {
16701
16701
  */
16702
16702
  insertAfter(e, n) {
16703
16703
  if (this.doc !== null)
16704
- Y(this.doc, (r) => {
16704
+ J(this.doc, (r) => {
16705
16705
  const i = e && e instanceof pe ? e._item : e;
16706
- Wr(r, this, i, n);
16706
+ Vr(r, this, i, n);
16707
16707
  });
16708
16708
  else {
16709
16709
  const r = (
@@ -16722,7 +16722,7 @@ class $t extends pe {
16722
16722
  * @param {number} [length=1] The number of elements to remove. Defaults to 1.
16723
16723
  */
16724
16724
  delete(e, n = 1) {
16725
- this.doc !== null ? Y(this.doc, (r) => {
16725
+ this.doc !== null ? J(this.doc, (r) => {
16726
16726
  Fu(r, this, e, n);
16727
16727
  }) : this._prelimContent.splice(e, n);
16728
16728
  }
@@ -16790,7 +16790,7 @@ class $t extends pe {
16790
16790
  e.writeTypeRef(dC);
16791
16791
  }
16792
16792
  }
16793
- const Wk = (t) => new $t();
16793
+ const Vk = (t) => new $t();
16794
16794
  class xe extends $t {
16795
16795
  constructor(e = "UNDEFINED") {
16796
16796
  super(), this.nodeName = e, this._prelimAttrs = /* @__PURE__ */ new Map();
@@ -16884,7 +16884,7 @@ class xe extends $t {
16884
16884
  * @public
16885
16885
  */
16886
16886
  removeAttribute(e) {
16887
- this.doc !== null ? Y(this.doc, (n) => {
16887
+ this.doc !== null ? J(this.doc, (n) => {
16888
16888
  Ur(n, this, e);
16889
16889
  }) : this._prelimAttrs.delete(e);
16890
16890
  }
@@ -16899,7 +16899,7 @@ class xe extends $t {
16899
16899
  * @public
16900
16900
  */
16901
16901
  setAttribute(e, n) {
16902
- this.doc !== null ? Y(this.doc, (r) => {
16902
+ this.doc !== null ? J(this.doc, (r) => {
16903
16903
  mo(r, this, e, n);
16904
16904
  }) : this._prelimAttrs.set(e, n);
16905
16905
  }
@@ -17195,7 +17195,7 @@ class bo {
17195
17195
  throw qe();
17196
17196
  }
17197
17197
  }
17198
- const Jk = 0;
17198
+ const Yk = 0;
17199
17199
  class Pe extends bo {
17200
17200
  get deleted() {
17201
17201
  return !0;
@@ -17221,7 +17221,7 @@ class Pe extends bo {
17221
17221
  * @param {number} offset
17222
17222
  */
17223
17223
  write(e, n) {
17224
- e.writeInfo(Jk), e.writeLen(this.length - n);
17224
+ e.writeInfo(Yk), e.writeLen(this.length - n);
17225
17225
  }
17226
17226
  /**
17227
17227
  * @param {Transaction} transaction
@@ -17232,7 +17232,7 @@ class Pe extends bo {
17232
17232
  return null;
17233
17233
  }
17234
17234
  }
17235
- class Yn {
17235
+ class Jn {
17236
17236
  /**
17237
17237
  * @param {Uint8Array} content
17238
17238
  */
@@ -17261,7 +17261,7 @@ class Yn {
17261
17261
  * @return {ContentBinary}
17262
17262
  */
17263
17263
  copy() {
17264
- return new Yn(this.content);
17264
+ return new Jn(this.content);
17265
17265
  }
17266
17266
  /**
17267
17267
  * @param {number} offset
@@ -17307,7 +17307,7 @@ class Yn {
17307
17307
  return 3;
17308
17308
  }
17309
17309
  }
17310
- const Yk = (t) => new Yn(t.readBuf());
17310
+ const Jk = (t) => new Jn(t.readBuf());
17311
17311
  class $n {
17312
17312
  /**
17313
17313
  * @param {number} len
@@ -17385,7 +17385,7 @@ class $n {
17385
17385
  return 1;
17386
17386
  }
17387
17387
  }
17388
- const Xk = (t) => new $n(t.readLen()), Wu = (t, e) => new Wt({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 });
17388
+ const Xk = (t) => new $n(t.readLen()), Vu = (t, e) => new Vt({ guid: t, ...e, shouldLoad: e.shouldLoad || e.autoLoad || !1 });
17389
17389
  class Xn {
17390
17390
  /**
17391
17391
  * @param {Doc} doc
@@ -17417,7 +17417,7 @@ class Xn {
17417
17417
  * @return {ContentDoc}
17418
17418
  */
17419
17419
  copy() {
17420
- return new Xn(Wu(this.doc.guid, this.opts));
17420
+ return new Xn(Vu(this.doc.guid, this.opts));
17421
17421
  }
17422
17422
  /**
17423
17423
  * @param {number} offset
@@ -17465,7 +17465,7 @@ class Xn {
17465
17465
  return 9;
17466
17466
  }
17467
17467
  }
17468
- const Zk = (t) => new Xn(Wu(t.readString(), t.readAny()));
17468
+ const Zk = (t) => new Xn(Vu(t.readString(), t.readAny()));
17469
17469
  class Ut {
17470
17470
  /**
17471
17471
  * @param {Object} embed
@@ -17881,9 +17881,9 @@ class Xe {
17881
17881
  const iC = (t) => new Xe(t.readString()), sC = [
17882
17882
  Pk,
17883
17883
  zk,
17884
- Vk,
17885
- Uk,
17886
17884
  Wk,
17885
+ Uk,
17886
+ Vk,
17887
17887
  Kk,
17888
17888
  qk
17889
17889
  ], oC = 0, lC = 1, aC = 2, cC = 3, dC = 4, uC = 5, fC = 6;
@@ -18137,7 +18137,7 @@ let Z = class vs extends bo {
18137
18137
  return this.rightOrigin.client;
18138
18138
  if (this.parent && this.parent.constructor === Xt && this.id.client !== this.parent.client && this.parent.clock >= ae(n, this.parent.client))
18139
18139
  return this.parent.client;
18140
- if (this.origin && (this.left = Jl(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Ne(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Pe || this.right && this.right.constructor === Pe)
18140
+ if (this.origin && (this.left = Yl(e, n, this.origin), this.origin = this.left.lastId), this.rightOrigin && (this.right = Ne(e, this.rightOrigin), this.rightOrigin = this.right.id), this.left && this.left.constructor === Pe || this.right && this.right.constructor === Pe)
18141
18141
  this.parent = null;
18142
18142
  else if (!this.parent)
18143
18143
  this.left && this.left.constructor === vs ? (this.parent = this.left.parent, this.parentSub = this.left.parentSub) : this.right && this.right.constructor === vs && (this.parent = this.right.parent, this.parentSub = this.right.parentSub);
@@ -18153,7 +18153,7 @@ let Z = class vs extends bo {
18153
18153
  * @param {number} offset
18154
18154
  */
18155
18155
  integrate(e, n) {
18156
- if (n > 0 && (this.id.clock += n, this.left = Jl(e, e.doc.store, j(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
18156
+ if (n > 0 && (this.id.clock += n, this.left = Yl(e, e.doc.store, j(this.id.client, this.id.clock - 1)), this.origin = this.left.lastId, this.content = this.content.splice(n), this.length -= n), this.parent) {
18157
18157
  if (!this.left && (!this.right || this.right.left !== null) || this.left && this.left.right !== this.right) {
18158
18158
  let r = this.left, i;
18159
18159
  if (r !== null)
@@ -18310,7 +18310,7 @@ const Gu = (t, e) => pC[e & si](t), pC = [
18310
18310
  // 1
18311
18311
  tC,
18312
18312
  // 2
18313
- Yk,
18313
+ Jk,
18314
18314
  // 3
18315
18315
  iC,
18316
18316
  // 4
@@ -18329,7 +18329,7 @@ const Gu = (t, e) => pC[e & si](t), pC = [
18329
18329
  }
18330
18330
  // 10 - Skip is not ItemContent
18331
18331
  ], mC = 10;
18332
- class We extends bo {
18332
+ class Ve extends bo {
18333
18333
  get deleted() {
18334
18334
  return !0;
18335
18335
  }
@@ -18521,7 +18521,7 @@ const _C = (t) => new AC().digest(t), EC = (t) => {
18521
18521
  for (let n = 6; n < t.length; n++)
18522
18522
  t[n % 6] = t[n % 6] ^ t[n];
18523
18523
  return t.slice(0, 6);
18524
- }, TC = (t) => Fv(EC(_C(zv(t)))), Jr = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
18524
+ }, TC = (t) => Fv(EC(_C(zv(t)))), Yr = (t, e) => e === void 0 ? !t.deleted : e.sv.has(t.id.client) && /** @type {number} */
18525
18525
  e.sv.get(t.id.client) > t.id.clock && !mn(e.ds, t.id), DC = [{ light: "#ecd44433", dark: "#ecd444" }], RC = (t, e, n) => {
18526
18526
  if (!t.has(n)) {
18527
18527
  if (t.size < e.length) {
@@ -18756,13 +18756,13 @@ class MC {
18756
18756
  _renderSnapshot(e, n, r) {
18757
18757
  let i = this.doc, s = this.type;
18758
18758
  if (e || (e = Pi(this.doc)), e instanceof Uint8Array || n instanceof Uint8Array)
18759
- if ((!(e instanceof Uint8Array) || !(n instanceof Uint8Array)) && _e(), i = new Wt({ gc: !1 }), gs(i, n), n = Pi(i), gs(i, e), e = Pi(i), s._item === null) {
18759
+ if ((!(e instanceof Uint8Array) || !(n instanceof Uint8Array)) && _e(), i = new Vt({ gc: !1 }), gs(i, n), n = Pi(i), gs(i, e), e = Pi(i), s._item === null) {
18760
18760
  const o = Array.from(this.doc.share.keys()).find(
18761
18761
  (l) => this.doc.share.get(l) === this.type
18762
18762
  );
18763
18763
  s = i.getXmlFragment(o);
18764
18764
  } else {
18765
- const o = i.store.clients.get(s._item.id.client) ?? [], l = Ye(
18765
+ const o = i.store.clients.get(s._item.id.client) ?? [], l = Je(
18766
18766
  o,
18767
18767
  s._item.id.clock
18768
18768
  );
@@ -18792,7 +18792,7 @@ class MC {
18792
18792
  }, d = Ru(
18793
18793
  s,
18794
18794
  new ho(n.ds, e.sv)
18795
- ).map((u) => !u._item.deleted || Jr(u._item, e) || Jr(u._item, n) ? Ir(
18795
+ ).map((u) => !u._item.deleted || Yr(u._item, e) || Yr(u._item, n) ? Ir(
18796
18796
  u,
18797
18797
  this.prosemirrorView.state.schema,
18798
18798
  { mapping: /* @__PURE__ */ new Map(), isOMark: /* @__PURE__ */ new Map() },
@@ -18838,7 +18838,7 @@ class MC {
18838
18838
  }
18839
18839
  ), n.changed.forEach(i), n.changedParentTypes.forEach(i);
18840
18840
  const s = this.type.toArray().map(
18841
- (l) => Ju(
18841
+ (l) => Yu(
18842
18842
  /** @type {Y.XmlElement | Y.XmlHook} */
18843
18843
  l,
18844
18844
  this.prosemirrorView.state.schema,
@@ -18875,7 +18875,7 @@ class MC {
18875
18875
  this.prosemirrorView != null && (this.prosemirrorView = null, this.type.unobserveDeep(this._observeFunction), this.doc.off("beforeAllTransactions", this.beforeAllTransactions), this.doc.off("afterAllTransactions", this.afterAllTransactions));
18876
18876
  }
18877
18877
  }
18878
- const Ju = (t, e, n, r, i, s) => {
18878
+ const Yu = (t, e, n, r, i, s) => {
18879
18879
  const o = (
18880
18880
  /** @type {PModel.Node} */
18881
18881
  n.mapping.get(t)
@@ -18896,7 +18896,7 @@ const Ju = (t, e, n, r, i, s) => {
18896
18896
  }, Ir = (t, e, n, r, i, s) => {
18897
18897
  const o = [], l = (a) => {
18898
18898
  if (a instanceof xe) {
18899
- const d = Ju(
18899
+ const d = Yu(
18900
18900
  a,
18901
18901
  e,
18902
18902
  n,
@@ -18932,11 +18932,11 @@ const Ju = (t, e, n, r, i, s) => {
18932
18932
  r === void 0 || i === void 0 ? t.toArray().forEach(l) : Ru(t, new ho(i.ds, r.sv)).forEach(l);
18933
18933
  try {
18934
18934
  const a = t.getAttributes(r);
18935
- r !== void 0 && (Jr(
18935
+ r !== void 0 && (Yr(
18936
18936
  /** @type {Y.Item} */
18937
18937
  t._item,
18938
18938
  r
18939
- ) ? Jr(
18939
+ ) ? Yr(
18940
18940
  /** @type {Y.Item} */
18941
18941
  t._item,
18942
18942
  i
@@ -19009,7 +19009,7 @@ const Ju = (t, e, n, r, i, s) => {
19009
19009
  n.push(i);
19010
19010
  }
19011
19011
  return n;
19012
- }, Yu = (t, e) => {
19012
+ }, Ju = (t, e) => {
19013
19013
  const n = t.toDelta();
19014
19014
  return n.length === e.length && n.every(
19015
19015
  /** @type {(d:any,i:number) => boolean} */
@@ -19029,22 +19029,22 @@ const Ju = (t, e, n, r, i, s) => {
19029
19029
  (r, i) => Bn(r, n[i])
19030
19030
  );
19031
19031
  }
19032
- return t instanceof Ae && e instanceof Array && Yu(t, e);
19033
- }, Yr = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
19032
+ return t instanceof Ae && e instanceof Array && Ju(t, e);
19033
+ }, Jr = (t, e) => t === e || t instanceof Array && e instanceof Array && t.length === e.length && t.every(
19034
19034
  (n, r) => e[r] === n
19035
19035
  ), la = (t, e, n) => {
19036
19036
  const r = t.toArray(), i = hi(e), s = i.length, o = r.length, l = sn(o, s);
19037
19037
  let a = 0, d = 0, f = !1;
19038
19038
  for (; a < l; a++) {
19039
19039
  const u = r[a], h = i[a];
19040
- if (Yr(n.mapping.get(u), h))
19040
+ if (Jr(n.mapping.get(u), h))
19041
19041
  f = !0;
19042
19042
  else if (!Bn(u, h))
19043
19043
  break;
19044
19044
  }
19045
19045
  for (; a + d < l; d++) {
19046
19046
  const u = r[o - d - 1], h = i[s - d - 1];
19047
- if (Yr(n.mapping.get(u), h))
19047
+ if (Jr(n.mapping.get(u), h))
19048
19048
  f = !0;
19049
19049
  else if (!Bn(u, h))
19050
19050
  break;
@@ -19104,7 +19104,7 @@ const Ju = (t, e, n, r, i, s) => {
19104
19104
  let d = 0, f = 0;
19105
19105
  for (; d < a; d++) {
19106
19106
  const u = o[d], h = i[d];
19107
- if (!Yr(r.mapping.get(u), h))
19107
+ if (!Jr(r.mapping.get(u), h))
19108
19108
  if (Bn(u, h))
19109
19109
  r.mapping.set(u, h);
19110
19110
  else
@@ -19112,7 +19112,7 @@ const Ju = (t, e, n, r, i, s) => {
19112
19112
  }
19113
19113
  for (; f + d + 1 < a; f++) {
19114
19114
  const u = o[l - f - 1], h = i[s - f - 1];
19115
- if (!Yr(r.mapping.get(u), h))
19115
+ if (!Jr(r.mapping.get(u), h))
19116
19116
  if (Bn(u, h))
19117
19117
  r.mapping.set(u, h);
19118
19118
  else
@@ -19122,7 +19122,7 @@ const Ju = (t, e, n, r, i, s) => {
19122
19122
  for (; l - d - f > 0 && s - d - f > 0; ) {
19123
19123
  const h = o[d], p = i[d], m = o[l - f - 1], b = i[s - f - 1];
19124
19124
  if (h instanceof Ae && p instanceof Array)
19125
- Yu(h, p) || BC(h, p, r), d += 1;
19125
+ Ju(h, p) || BC(h, p, r), d += 1;
19126
19126
  else {
19127
19127
  let w = h instanceof xe && Ns(h, p), x = m instanceof xe && Ns(m, b);
19128
19128
  if (w && x) {
@@ -19202,13 +19202,13 @@ const Ju = (t, e, n, r, i, s) => {
19202
19202
  r._first.content.type, t--;
19203
19203
  else {
19204
19204
  if (t === 1 && r._length === 0 && i > 1)
19205
- return new Vr(r._item === null ? null : r._item.id, r._item === null ? Mn(r) : null, null);
19205
+ return new Wr(r._item === null ? null : r._item.id, r._item === null ? Mn(r) : null, null);
19206
19206
  if (t -= i, r._item !== null && r._item.next !== null)
19207
19207
  r = /** @type {Y.ContentType} */
19208
19208
  r._item.next.content.type;
19209
19209
  else {
19210
19210
  if (t === 0)
19211
- return r = r._item === null ? r : r._item.parent, new Vr(r._item === null ? null : r._item.id, r._item === null ? Mn(r) : null, null);
19211
+ return r = r._item === null ? r : r._item.parent, new Wr(r._item === null ? null : r._item.id, r._item === null ? Mn(r) : null, null);
19212
19212
  do
19213
19213
  r = /** @type {Y.Item} */
19214
19214
  r._item.parent, t--;
@@ -19224,12 +19224,12 @@ const Ju = (t, e, n, r, i, s) => {
19224
19224
  if (r === null)
19225
19225
  throw _e();
19226
19226
  if (t === 0 && r.constructor !== Ae && r !== e)
19227
- return VC(r._item.parent, r._item);
19227
+ return WC(r._item.parent, r._item);
19228
19228
  }
19229
19229
  return Mi(e, e._length, e.length === 0 ? -1 : 0);
19230
- }, VC = (t, e) => {
19230
+ }, WC = (t, e) => {
19231
19231
  let n = null, r = null;
19232
- return t._item === null ? r = Mn(t) : n = j(t._item.id.client, t._item.id.clock), new Vr(n, r, e.id);
19232
+ return t._item === null ? r = Mn(t) : n = j(t._item.id.client, t._item.id.clock), new Wr(n, r, e.id);
19233
19233
  }, Ar = (t, e, n, r) => {
19234
19234
  const i = gk(n, t);
19235
19235
  if (i === null || i.type !== e && !Pn(e, i.type._item))
@@ -19277,7 +19277,7 @@ const Ju = (t, e, n, r, i, s) => {
19277
19277
  }
19278
19278
  return o - 1;
19279
19279
  };
19280
- function WC(t) {
19280
+ function VC(t) {
19281
19281
  const e = t.toArray(), n = (r) => {
19282
19282
  let i;
19283
19283
  if (r instanceof Ae)
@@ -19313,7 +19313,7 @@ function WC(t) {
19313
19313
  content: e.map(n)
19314
19314
  };
19315
19315
  }
19316
- const UC = (t) => pt.getState(t)?.undoManager?.undo() != null, GC = (t) => pt.getState(t)?.undoManager?.redo() != null, KC = /* @__PURE__ */ new Set(["paragraph"]), qC = (t, e) => !(t instanceof Z) || !(t.content instanceof Qe) || !(t.content.type instanceof _t || t.content.type instanceof xe && e.has(t.content.type.nodeName)) || t.content.type._length === 0, JC = ({ protectedNodes: t = KC, trackedOrigins: e = [], undoManager: n = null } = {}) => new ot({
19316
+ const UC = (t) => pt.getState(t)?.undoManager?.undo() != null, GC = (t) => pt.getState(t)?.undoManager?.redo() != null, KC = /* @__PURE__ */ new Set(["paragraph"]), qC = (t, e) => !(t instanceof Z) || !(t.content instanceof Qe) || !(t.content.type instanceof _t || t.content.type instanceof xe && e.has(t.content.type.nodeName)) || t.content.type._length === 0, YC = ({ protectedNodes: t = KC, trackedOrigins: e = [], undoManager: n = null } = {}) => new ot({
19317
19317
  key: pt,
19318
19318
  state: {
19319
19319
  init: (r, i) => {
@@ -19357,7 +19357,7 @@ const UC = (t) => pt.getState(t)?.undoManager?.undo() != null, GC = (t) => pt.ge
19357
19357
  };
19358
19358
  }
19359
19359
  });
19360
- Vt.create({
19360
+ Wt.create({
19361
19361
  name: "collaboration",
19362
19362
  priority: 1e3,
19363
19363
  addOptions() {
@@ -19390,7 +19390,7 @@ Vt.create({
19390
19390
  },
19391
19391
  addProseMirrorPlugins() {
19392
19392
  var t;
19393
- const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = JC(this.options.yUndoOptions), r = n.spec.view;
19393
+ const e = this.options.fragment ? this.options.fragment : this.options.document.getXmlFragment(this.options.field), n = YC(this.options.yUndoOptions), r = n.spec.view;
19394
19394
  n.spec.view = (o) => {
19395
19395
  const { undoManager: l } = pt.getState(o.state);
19396
19396
  l.restore && (l.restore(), l.restore = () => {
@@ -19411,7 +19411,7 @@ Vt.create({
19411
19411
  }, s = LC(e, i);
19412
19412
  return this.editor.options.enableContentCheck && ((t = e.doc) === null || t === void 0 || t.on("beforeTransaction", () => {
19413
19413
  try {
19414
- const o = WC(e);
19414
+ const o = VC(e);
19415
19415
  if (o.content.length === 0)
19416
19416
  return;
19417
19417
  this.editor.schema.nodeFromJSON(o).check();
@@ -19439,7 +19439,7 @@ Vt.create({
19439
19439
  ].filter(Boolean);
19440
19440
  }
19441
19441
  });
19442
- function YC(t) {
19442
+ function JC(t) {
19443
19443
  return !!t.getMeta(ie);
19444
19444
  }
19445
19445
  function aa(t) {
@@ -19539,7 +19539,7 @@ we.prototype.visible = !1;
19539
19539
  function pr(t) {
19540
19540
  return t instanceof we;
19541
19541
  }
19542
- Vt.create({
19542
+ Wt.create({
19543
19543
  name: "nodeRange",
19544
19544
  addOptions() {
19545
19545
  return {
@@ -19738,7 +19738,7 @@ const ca = (t, e) => {
19738
19738
  if (b !== void 0 && (l = b), w && o)
19739
19739
  return o.hide(), l = !1, a = null, d = -1, i?.({ editor: n, node: null, pos: -1 }), h;
19740
19740
  if (u.docChanged && d !== -1 && e && o)
19741
- if (YC(u)) {
19741
+ if (JC(u)) {
19742
19742
  const x = rS(m, f);
19743
19743
  x !== d && (d = x);
19744
19744
  } else {
@@ -19828,7 +19828,7 @@ const ca = (t, e) => {
19828
19828
  }
19829
19829
  });
19830
19830
  };
19831
- Vt.create({
19831
+ Wt.create({
19832
19832
  name: "dragHandle",
19833
19833
  addOptions() {
19834
19834
  return {
@@ -19862,7 +19862,7 @@ Vt.create({
19862
19862
  });
19863
19863
  const iS = (t) => {
19864
19864
  const { className: e = "drag-handle", children: n, editor: r, pluginKey: i = ef, onNodeChange: s, tippyOptions: o } = t, [l, a] = L(null), d = K(null);
19865
- return W(() => l ? r.isDestroyed ? () => {
19865
+ return V(() => l ? r.isDestroyed ? () => {
19866
19866
  d.current = null;
19867
19867
  } : (d.current || (d.current = tf({
19868
19868
  editor: r,
@@ -19979,7 +19979,7 @@ const iS = (t) => {
19979
19979
  ] }),
19980
19980
  i && /* @__PURE__ */ g("div", { className: oS({ variant: i.variant }), children: [
19981
19981
  /* @__PURE__ */ c(H, { icon: i.icon }),
19982
- /* @__PURE__ */ c(Je, { children: i.title })
19982
+ /* @__PURE__ */ c(Ye, { children: i.title })
19983
19983
  ] })
19984
19984
  ] });
19985
19985
  }, uS = ({
@@ -20035,7 +20035,7 @@ const iS = (t) => {
20035
20035
  return x.imageUpload.errors.uploadFailed;
20036
20036
  }
20037
20037
  };
20038
- W(() => {
20038
+ V(() => {
20039
20039
  l && l(C);
20040
20040
  }, [C, l]);
20041
20041
  const A = xm({
@@ -20112,8 +20112,8 @@ const iS = (t) => {
20112
20112
  ), D = X(() => {
20113
20113
  const F = S.current;
20114
20114
  if (!F || !A) return;
20115
- const { pos: ge, nodeSize: Se } = F, J = A.state.doc.nodeAt(ge);
20116
- if (J && J.content.size === 0)
20115
+ const { pos: ge, nodeSize: Se } = F, Y = A.state.doc.nodeAt(ge);
20116
+ if (Y && Y.content.size === 0)
20117
20117
  A.chain().focus().setTextSelection(ge + 1).insertContent("/").run();
20118
20118
  else {
20119
20119
  const Zn = ge + Se;
@@ -20553,7 +20553,7 @@ const iS = (t) => {
20553
20553
  );
20554
20554
  }, vS = () => /* @__PURE__ */ c("div", { className: "min-h-[0.15rem] min-w-[0.15rem] rounded-full bg-f1-foreground-secondary" }), kS = P(function({ header: e, children: n, action: r, summaries: i, alert: s, status: o, fullHeight: l = !1 }, a) {
20555
20555
  const { enabled: d, toggle: f } = pc();
20556
- W(() => {
20556
+ V(() => {
20557
20557
  if (s && o)
20558
20558
  throw Error(
20559
20559
  "You cannot pass both alert and status at the same time to this component"
@@ -20577,12 +20577,12 @@ const iS = (t) => {
20577
20577
  e.title && /* @__PURE__ */ c(Bs, { className: "truncate", children: e.title }),
20578
20578
  e.subtitle && /* @__PURE__ */ g("div", { className: "flex flex-row items-center gap-1", children: [
20579
20579
  /* @__PURE__ */ c(vS, {}),
20580
- /* @__PURE__ */ c(Va, { className: "truncate", children: e.subtitle })
20580
+ /* @__PURE__ */ c(Wa, { className: "truncate", children: e.subtitle })
20581
20581
  ] }),
20582
20582
  e.info && /* @__PURE__ */ c(Tt, { label: e.info, children: /* @__PURE__ */ c(
20583
20583
  H,
20584
20584
  {
20585
- icon: Wa,
20585
+ icon: Va,
20586
20586
  size: "sm",
20587
20587
  className: "text-f1-foreground-secondary"
20588
20588
  }
@@ -20664,7 +20664,7 @@ const iS = (t) => {
20664
20664
  "aria-hidden": !0,
20665
20665
  children: [
20666
20666
  e?.title ? /* @__PURE__ */ c(Bs, { children: e.title }) : /* @__PURE__ */ c(E, { className: "h-4 w-full max-w-16" }),
20667
- e?.subtitle && /* @__PURE__ */ c(Va, { children: e.subtitle })
20667
+ e?.subtitle && /* @__PURE__ */ c(Wa, { children: e.subtitle })
20668
20668
  ]
20669
20669
  }
20670
20670
  ) }),
@@ -20687,7 +20687,7 @@ const iS = (t) => {
20687
20687
  );
20688
20688
  }
20689
20689
  ), en = de(
20690
- V("Widget", ue(kS, SS))
20690
+ W("Widget", ue(kS, SS))
20691
20691
  ), Be = Object.assign(
20692
20692
  P(function({ chart: e, summaries: n, ...r }, i) {
20693
20693
  return /* @__PURE__ */ c(en, { ref: i, ...r, summaries: n, children: e && /* @__PURE__ */ c("div", { className: "min-h-52 min-w-52 grow pt-2", children: e }) });
@@ -20717,7 +20717,7 @@ const iS = (t) => {
20717
20717
  );
20718
20718
  }),
20719
20719
  Be.Skeleton
20720
- ), IS = V(
20720
+ ), IS = W(
20721
20721
  "AreaChartWidget",
20722
20722
  NS
20723
20723
  ), AS = P(function(e, n) {
@@ -20729,7 +20729,7 @@ const iS = (t) => {
20729
20729
  chart: /* @__PURE__ */ c(Sm, { yAxis: { hide: !0 }, ...e.chart })
20730
20730
  }
20731
20731
  );
20732
- }), _S = V(
20732
+ }), _S = W(
20733
20733
  "BarChartWidget",
20734
20734
  ue(AS, Be.Skeleton)
20735
20735
  ), ES = ue(
@@ -20746,7 +20746,7 @@ const iS = (t) => {
20746
20746
  }
20747
20747
  ),
20748
20748
  Be.Skeleton
20749
- ), TS = V(
20749
+ ), TS = W(
20750
20750
  "LineChartWidget",
20751
20751
  ES
20752
20752
  ), DS = ue(
@@ -20763,7 +20763,7 @@ const iS = (t) => {
20763
20763
  }
20764
20764
  ),
20765
20765
  Be.Skeleton
20766
- ), RS = V(
20766
+ ), RS = W(
20767
20767
  "PieChartWidget",
20768
20768
  DS
20769
20769
  ), LS = ue(
@@ -20773,7 +20773,7 @@ const iS = (t) => {
20773
20773
  }
20774
20774
  ),
20775
20775
  Be.Skeleton
20776
- ), OS = V(
20776
+ ), OS = W(
20777
20777
  "SummariesWidget",
20778
20778
  LS
20779
20779
  ), MS = ue(
@@ -20790,7 +20790,7 @@ const iS = (t) => {
20790
20790
  }
20791
20791
  ),
20792
20792
  Be.Skeleton
20793
- ), PS = V(
20793
+ ), PS = W(
20794
20794
  "VerticalBarChartWidget",
20795
20795
  MS
20796
20796
  ), xI = st(
@@ -21118,15 +21118,15 @@ const iS = (t) => {
21118
21118
  }, HS = {
21119
21119
  "line-chart": "min-h-48",
21120
21120
  "bar-chart": "min-h-64"
21121
- }, VS = {
21121
+ }, WS = {
21122
21122
  "line-chart": "from-f1-background-accent",
21123
21123
  "bar-chart": "from-f1-background-promote"
21124
- }, WS = {
21124
+ }, VS = {
21125
21125
  "line-chart": "default",
21126
21126
  "bar-chart": "promote"
21127
21127
  }, US = P(
21128
21128
  function({ title: e, content: n, buttonLabel: r, buttonIcon: i, buttonAction: s, type: o }, l) {
21129
- const a = jS[o], d = HS[o], f = VS[o], u = WS[o];
21129
+ const a = jS[o], d = HS[o], f = WS[o], u = VS[o];
21130
21130
  return /* @__PURE__ */ g(
21131
21131
  zs,
21132
21132
  {
@@ -21169,7 +21169,7 @@ const iS = (t) => {
21169
21169
  );
21170
21170
  }
21171
21171
  ), NI = de(
21172
- V("ChartWidgetEmptyState", US)
21172
+ W("ChartWidgetEmptyState", US)
21173
21173
  );
21174
21174
  function GS(t, e) {
21175
21175
  const n = K(null), r = K(null), [i, s] = L({
@@ -21222,7 +21222,7 @@ function GS(t, e) {
21222
21222
  overflowItems: t.slice(h)
21223
21223
  });
21224
21224
  }, [t, l, a]);
21225
- return W(() => {
21225
+ return V(() => {
21226
21226
  d();
21227
21227
  }, [d]), {
21228
21228
  containerRef: n,
@@ -21240,7 +21240,7 @@ const mi = function({
21240
21240
  onVisibleItemsChange: o
21241
21241
  }) {
21242
21242
  const { containerRef: l, measurementContainerRef: a, visibleItems: d } = GS(e, i);
21243
- return W(() => {
21243
+ return V(() => {
21244
21244
  o?.(d);
21245
21245
  }, [o, d]), /* @__PURE__ */ g(
21246
21246
  "div",
@@ -21374,7 +21374,7 @@ const qS = P(
21374
21374
  }
21375
21375
  );
21376
21376
  }
21377
- ), JS = ({
21377
+ ), YS = ({
21378
21378
  onClick: t,
21379
21379
  withEmoji: e,
21380
21380
  withPointerCursor: n,
@@ -21399,7 +21399,7 @@ function EI({
21399
21399
  ...l
21400
21400
  }) {
21401
21401
  return /* @__PURE__ */ g(
21402
- JS,
21402
+ YS,
21403
21403
  {
21404
21404
  onClick: (d) => {
21405
21405
  d.preventDefault(), o?.(t);
@@ -21426,7 +21426,7 @@ function EI({
21426
21426
  }
21427
21427
  );
21428
21428
  }
21429
- const YS = ({ onClick: t, className: e, children: n }) => t ? /* @__PURE__ */ c("a", { className: e, onClick: t, tabIndex: 0, children: n }) : /* @__PURE__ */ c("div", { className: e, tabIndex: -1, children: n });
21429
+ const JS = ({ onClick: t, className: e, children: n }) => t ? /* @__PURE__ */ c("a", { className: e, onClick: t, tabIndex: 0, children: n }) : /* @__PURE__ */ c("div", { className: e, tabIndex: -1, children: n });
21430
21430
  function ha({
21431
21431
  id: t,
21432
21432
  title: e,
@@ -21438,7 +21438,7 @@ function ha({
21438
21438
  "flex flex-row gap-2 rounded-md border border-solid border-transparent p-2 text-f1-foreground",
21439
21439
  r ? "cursor-pointer hover:bg-f1-background-tertiary focus:border-f1-background-selected-bold focus:outline-none" : void 0
21440
21440
  );
21441
- return /* @__PURE__ */ g(YS, { onClick: (l) => {
21441
+ return /* @__PURE__ */ g(JS, { onClick: (l) => {
21442
21442
  l.preventDefault(), r?.(t);
21443
21443
  }, className: s, children: [
21444
21444
  /* @__PURE__ */ c(La, { module: i ?? "inbox", size: "md" }),
@@ -21543,7 +21543,7 @@ const ZS = ({ title: t, info: e }) => /* @__PURE__ */ g("div", { className: "fle
21543
21543
  {
21544
21544
  label: r.label,
21545
21545
  description: r.description,
21546
- children: /* @__PURE__ */ c(H, { icon: Wa, size: "sm" })
21546
+ children: /* @__PURE__ */ c(H, { icon: Va, size: "sm" })
21547
21547
  }
21548
21548
  ) })
21549
21549
  ] }),
@@ -21790,24 +21790,24 @@ function OI({
21790
21790
  trackedMinutes: t,
21791
21791
  remainingMinutes: e,
21792
21792
  canSeeRemainingTime: b
21793
- }), N = _ === "clocked-out", R = u?.map((J) => ({
21794
- value: J.id,
21795
- label: J.duration ? `${J.name} · ${J.duration}` : J.name,
21796
- description: J.description,
21797
- tag: J.isPaid ? r.paid : r.unpaid
21793
+ }), N = _ === "clocked-out", R = u?.map((Y) => ({
21794
+ value: Y.id,
21795
+ label: Y.duration ? `${Y.name} · ${Y.duration}` : Y.name,
21796
+ description: Y.description,
21797
+ tag: Y.isPaid ? r.paid : r.unpaid
21798
21798
  })) ?? [], [y, A] = L(!1), M = () => {
21799
21799
  if (R.length > 1)
21800
21800
  y || A(!0);
21801
21801
  else {
21802
- const J = R?.[0]?.value;
21803
- f?.(J);
21804
- }
21805
- }, U = (J) => {
21806
- h?.(J), A(!1), f?.(J);
21807
- }, D = N && s.length && !l && o, $ = s.find((J) => J.id === i), re = s.map((J) => ({
21808
- value: J.id,
21809
- label: J.name,
21810
- icon: J.icon
21802
+ const Y = R?.[0]?.value;
21803
+ f?.(Y);
21804
+ }
21805
+ }, U = (Y) => {
21806
+ h?.(Y), A(!1), f?.(Y);
21807
+ }, D = N && s.length && !l && o, $ = s.find((Y) => Y.id === i), re = s.map((Y) => ({
21808
+ value: Y.id,
21809
+ label: Y.name,
21810
+ icon: Y.icon
21811
21811
  })), F = _ === "break", [ge, Se] = L(!1);
21812
21812
  return /* @__PURE__ */ c("div", { className: "@container", children: /* @__PURE__ */ g("div", { className: "flex-grow flex-col", children: [
21813
21813
  /* @__PURE__ */ g("div", { className: "flex flex-col-reverse items-center gap-2 @xs:flex-row", children: [
@@ -22107,7 +22107,7 @@ var AN = ({ stones: t, containerSize: e }) => {
22107
22107
  return e.push({ width: r.width, height: r.height }), e;
22108
22108
  }, []), EN = ({ boxesRefs: t, wrapperRef: e, children: n, windowWidth: r, wrapperWidth: i }) => {
22109
22109
  let [{ positions: s, containerHeight: o, stones: l, availableSpots: a }, d] = L({ positions: [], containerHeight: null, stones: [], availableSpots: [] });
22110
- return W(() => {
22110
+ return V(() => {
22111
22111
  var f, u;
22112
22112
  let h = _N(t.current), p = (u = (f = e.current) == null ? void 0 : f.offsetWidth) != null ? u : 0;
22113
22113
  if (p === null) return;
@@ -22132,7 +22132,7 @@ function ON(t, e, n) {
22132
22132
  }
22133
22133
  var MN = () => {
22134
22134
  let [t, e] = L(), n = K(ON(e, 300));
22135
- return W(() => {
22135
+ return V(() => {
22136
22136
  let r = () => {
22137
22137
  n.current(window.innerWidth);
22138
22138
  };
@@ -22142,7 +22142,7 @@ var MN = () => {
22142
22142
  }, []), t;
22143
22143
  }, PN = (t) => {
22144
22144
  let [e, n] = L(null);
22145
- return W(() => {
22145
+ return V(() => {
22146
22146
  let r = new ResizeObserver((i) => {
22147
22147
  for (let s of i) n(s.contentRect.width);
22148
22148
  });
@@ -22156,13 +22156,13 @@ var MN = () => {
22156
22156
  return c("div", gi(ze({ ref: d, style: m }, l), { children: Xa.map(n, (b, w) => {
22157
22157
  if (typeof b != "object" || !b || !("type" in b)) return b;
22158
22158
  let x = { style: LN({ style: b.props.style, position: h[w], transition: i, transitionDuration: s }), ref: (v) => a.current[w] = v };
22159
- return Ya(b, ze(ze({}, b.props), x));
22159
+ return Ja(b, ze(ze({}, b.props), x));
22160
22160
  }) }));
22161
22161
  };
22162
22162
  const zN = { sm: 340, md: 480, lg: 640 }, ma = P(
22163
22163
  function({ children: e, widgetWidth: n = "sm" }, r) {
22164
22164
  const i = zN[n], [s, o] = L(), l = Xa.toArray(e), a = K(null);
22165
- return W(() => {
22165
+ return V(() => {
22166
22166
  const d = () => {
22167
22167
  const f = a.current?.offsetWidth;
22168
22168
  f && o(Math.floor(f / i) || 1);
@@ -22213,7 +22213,7 @@ function BN({
22213
22213
  );
22214
22214
  }
22215
22215
  const zI = de(
22216
- V("WidgetEmptyState", BN)
22216
+ W("WidgetEmptyState", BN)
22217
22217
  ), lf = P(
22218
22218
  ({ title: t, children: e }, n) => (_p(
22219
22219
  t,
@@ -22226,7 +22226,7 @@ const zI = de(
22226
22226
  );
22227
22227
  lf.displayName = "WidgetSection";
22228
22228
  const $I = de(
22229
- V("WidgetSection", lf)
22229
+ W("WidgetSection", lf)
22230
22230
  ), BI = ({
22231
22231
  identifier: t,
22232
22232
  allowedRoutes: e,
@@ -22251,22 +22251,22 @@ export {
22251
22251
  XN as ActivityItemList,
22252
22252
  kx as ActivityItemListSkeleton,
22253
22253
  H1 as AiPromotionChat,
22254
- V1 as AiPromotionChatProvider,
22254
+ W1 as AiPromotionChatProvider,
22255
22255
  rI as ApplicationFrame,
22256
22256
  xI as AreaChartWidget,
22257
22257
  wI as AutoGrid,
22258
22258
  ip as Badge,
22259
22259
  yI as BarChartWidget,
22260
22260
  vx as BaseActivityItemList,
22261
- pA as BaseBanner,
22261
+ mA as BaseBanner,
22262
22262
  Ax as BaseCelebration,
22263
22263
  Fx as BaseCommunityPost,
22264
- WI as BaseTabs,
22264
+ VI as BaseTabs,
22265
22265
  UI as BreadcrumbSelect,
22266
22266
  cg as Breadcrumbs,
22267
22267
  ls as CalendarEvent,
22268
22268
  II as CalendarEventList,
22269
- mA as CardSelectableContainer,
22269
+ gA as CardSelectableContainer,
22270
22270
  Hp as Carousel,
22271
22271
  LI as CategoryBarSection,
22272
22272
  ZN as Celebration,
@@ -22281,37 +22281,37 @@ export {
22281
22281
  iI as DaytimePage,
22282
22282
  iy as DetailsItem,
22283
22283
  tI as DetailsItemsList,
22284
- gA as Dialog,
22284
+ bA as Dialog,
22285
22285
  mt as Dropdown,
22286
- YN as EntitySelect,
22287
- bA as F0ActionBar,
22286
+ JN as EntitySelect,
22287
+ wA as F0ActionBar,
22288
22288
  ld as F0AiBanner,
22289
22289
  La as F0AvatarModule,
22290
22290
  KN as F0Callout,
22291
- wA as F0TableOfContent,
22292
- JN as F0VersionHistory,
22291
+ xA as F0TableOfContent,
22292
+ YN as F0VersionHistory,
22293
22293
  GI as F1SearchBox,
22294
- xA as FILE_TYPES,
22295
- yA as FileItem,
22294
+ yA as FILE_TYPES,
22295
+ vA as FileItem,
22296
22296
  QN as HighlightBanner,
22297
22297
  _I as IndicatorsList,
22298
22298
  KI as Input,
22299
- vA as Item,
22300
- kA as ItemSectionHeader,
22299
+ kA as Item,
22300
+ CA as ItemSectionHeader,
22301
22301
  vI as LineChartWidget,
22302
22302
  cI as Menu,
22303
22303
  qI as MobileDropdown,
22304
22304
  mI as NotesTextEditor,
22305
22305
  pI as NotesTextEditorSkeleton,
22306
- CA as NumberInput,
22306
+ YI as NumberInput,
22307
22307
  sI as OmniButton,
22308
22308
  fI as OneApprovalHistory,
22309
22309
  JI as OneCalendar,
22310
- YI as OneCalendarInternal,
22311
- XI as OneDataCollection,
22312
- ZI as OneDateNavigator,
22310
+ XI as OneCalendarInternal,
22311
+ ZI as OneDataCollection,
22312
+ QI as OneDateNavigator,
22313
22313
  Ap as OneEmptyState,
22314
- QI as OnePagination,
22314
+ eA as OnePagination,
22315
22315
  nI as OnePersonListItem,
22316
22316
  BI as OneRestrictComponent,
22317
22317
  oI as Page,
@@ -22334,9 +22334,9 @@ export {
22334
22334
  bI as Split,
22335
22335
  gI as Stack,
22336
22336
  SI as SummariesWidget,
22337
- eA as Switch,
22338
- tA as Tabs,
22339
- nA as TabsSkeleton,
22337
+ tA as Switch,
22338
+ nA as Tabs,
22339
+ rA as TabsSkeleton,
22340
22340
  MI as TasksList,
22341
22341
  AA as Textarea,
22342
22342
  Id as ToggleGroup,
@@ -22344,7 +22344,7 @@ export {
22344
22344
  Tt as Tooltip,
22345
22345
  RI as TwoColumnsList,
22346
22346
  CI as VerticalBarChartWidget,
22347
- rA as WeekStartDay,
22347
+ iA as WeekStartDay,
22348
22348
  Bx as Weekdays,
22349
22349
  en as Widget,
22350
22350
  EI as WidgetAvatarsListItem,
@@ -22357,17 +22357,17 @@ export {
22357
22357
  As as WidgetSimpleListItem,
22358
22358
  FI as WidgetStrip,
22359
22359
  K1 as _RadarChart,
22360
- iA as getGranularityDefinition,
22361
- sA as getGranularityDefinitions,
22362
- oA as getGranularitySimpleDefinition,
22363
- lA as granularityDefinitions,
22364
- aA as modules,
22360
+ sA as getGranularityDefinition,
22361
+ oA as getGranularityDefinitions,
22362
+ lA as getGranularitySimpleDefinition,
22363
+ aA as granularityDefinitions,
22364
+ cA as modules,
22365
22365
  _A as predefinedPresets,
22366
- cA as rangeSeparator,
22366
+ dA as rangeSeparator,
22367
22367
  EA as selectSizes,
22368
22368
  ei as useAiPromotionChat,
22369
- dA as useDataCollectionData,
22370
- uA as useDataCollectionSource,
22371
- fA as useInfiniteScrollPagination,
22369
+ uA as useDataCollectionData,
22370
+ fA as useDataCollectionSource,
22371
+ hA as useInfiniteScrollPagination,
22372
22372
  un as useSidebar
22373
22373
  };