@factorialco/f0-react 1.372.1 → 1.373.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/f0.js CHANGED
@@ -1,12 +1,12 @@
1
- import { a6 as se, a7 as Vt, aa as Ys, ab as bi, ac as xi, ad as ml, ae as pl, af as Ks, ag as yt, u as zr, ah as Dn, ai as gl, aj as vl, ak as yl, al as bl, am as it, an as at, ao as xl, ap as wl, aq as Xs, ar as _l, as as en, at as Js, au as Qs, av as ea, aw as ta, ax as ra, ay as na, az as Cl, aA as El, aB as kl, aC as Sl, aD as Dl, a8 as ut, aE as Zi, aF as Rl, aG as Nl, aH as Al, aI as ia, aJ as Tl, aK as Ol, aL as Ml, aM as sa, aN as Il, aO as rr, aP as Ll, aQ as Pl, aR as zl, aS as Fl, aT as Bl, aU as Hl, aV as Vl, aW as jl, aX as aa, aY as $l, aZ as Wl, a_ as Gl, a$ as Ul, b0 as Zl, b1 as oa, b2 as ql, b3 as Yl, b4 as Kl, b5 as Xl, b6 as Jl, b7 as Ql, I as ec, b8 as tc, b9 as rc, ba as nc, bb as ic } from "./F0AiChat-CDAHnaiX.js";
2
- import { A as Dg, br as Rg, B as Ng, C as Ag, E as Tg, bG as Og, h as Mg, F as Ig, a as Lg, x as Pg, i as zg, b as Fg, bc as Bg, bd as Hg, be as Vg, bf as jg, bh as $g, bi as Wg, bj as Gg, bk as Ug, bl as Zg, bm as qg, bn as Yg, bC as Kg, s as Xg, t as Jg, v as Qg, bq as ev, w as tv, c as rv, bs as nv, n as iv, o as sv, p as av, H as ov, k as lv, L as cv, O as dv, bp as uv, q as hv, P as fv, S as mv, T as pv, l as gv, m as vv, U as yv, bD as bv, bx as xv, r as wv, j as _v, bA as Cv, bw as Ev, bH as kv, bv as Sv, bu as Dv, bg as Rv, d as Nv, bt as Av, by as Tv, e as Ov, bI as Mv, bo as Iv, bz as Lv, g as Pv, f as zv, bF as Fv, bB as Bv, bE as Hv } from "./F0AiChat-CDAHnaiX.js";
1
+ import { a6 as se, a7 as Vt, aa as Ks, ab as bi, ac as xi, ad as ml, ae as pl, af as Ys, ag as yt, u as zr, ah as Dn, ai as gl, aj as vl, ak as yl, al as bl, am as it, an as at, ao as xl, ap as wl, aq as Xs, ar as _l, as as en, at as Js, au as Qs, av as ea, aw as ta, ax as ra, ay as na, az as Cl, aA as El, aB as kl, aC as Sl, aD as Dl, a8 as ut, aE as Zi, aF as Rl, aG as Nl, aH as Al, aI as ia, aJ as Tl, aK as Ol, aL as Ml, aM as sa, aN as Il, aO as rr, aP as Ll, aQ as Pl, aR as zl, aS as Fl, aT as Bl, aU as aa, aV as Hl, aW as Vl, aX as jl, aY as $l, aZ as Wl, a_ as oa, a$ as Gl, b0 as Ul, b1 as Zl, b2 as ql, b3 as Kl, b4 as Yl, I as Xl, b5 as Jl, b6 as Ql, b7 as ec, b8 as tc } from "./F0AiChat-DWu8SXTd.js";
2
+ import { A as Dg, bo as Rg, B as Ng, C as Ag, E as Tg, bD as Og, h as Mg, F as Ig, a as Lg, x as Pg, i as zg, b as Fg, b9 as Bg, ba as Hg, bb as Vg, bc as jg, be as $g, bf as Wg, bg as Gg, bh as Ug, bi as Zg, bj as qg, bk as Kg, bz as Yg, s as Xg, t as Jg, v as Qg, bn as ev, w as tv, c as rv, bp as nv, n as iv, o as sv, p as av, H as ov, k as lv, L as cv, O as dv, bm as uv, q as hv, P as fv, S as mv, T as pv, l as gv, m as vv, U as yv, bA as bv, bu as xv, r as wv, j as _v, bx as Cv, bt as Ev, bE as kv, bs as Sv, br as Dv, bd as Rv, d as Nv, bq as Av, bv as Tv, e as Ov, bF as Mv, bl as Iv, bw as Lv, g as Pv, f as zv, bC as Fv, by as Bv, bB as Hv } from "./F0AiChat-DWu8SXTd.js";
3
3
  import { jsx as f, jsxs as V, Fragment as Fr } from "react/jsx-runtime";
4
4
  import * as st from "react";
5
- import B, { forwardRef as We, useRef as Y, useImperativeHandle as sc, Children as tn, createContext as Ct, useContext as ht, useState as re, useMemo as q, useEffect as J, useCallback as de, useLayoutEffect as ni, createElement as qi, isValidElement as la, Fragment as ac, memo as oc, useReducer as lc, cloneElement as cc, PureComponent as dc } from "react";
6
- import { createPortal as ca, unstable_batchedUpdates as Zr, flushSync as uc } from "react-dom";
7
- import { L as da, C as hc, i as ua, D as fc, S as Yi, a as mc, f as $n, b as gr, c as pc, A as gc, d as qr, e as ha, E as vc, g as Xr, h as yc, j as bc, k as xc, l as Qt, m as fa, u as wc, G as _c, n as Cc, o as Ki, p as Ec, q as ma, r as kc, B as pa, X as ga, Y as ii, s as Sc, t as va, v as Dc, w as Rc, x as Nc, y as Ac, z as Tc, F as Oc, H as Mc, I as Ic, J as Xi, K as Lc, M as xr, N as Wn, O as Pc, P as zc, Q as Fc, R as Bc, T as Hc, U as Vc, V as jc, W as $c, Z as Wc, _ as Gc, $ as Uc, a0 as Ji, a1 as Zc, a2 as qc, a3 as Qi, a4 as ya, a5 as Yc, a6 as Kc, a7 as Xc, a8 as Jc, a9 as Qc, aa as ba, ab as ed, ac as xa, ad as wa, ae as td, af as rd, ag as nd, ah as id } from "./DataCollectionStorageProvider-P3r2oy3e.js";
8
- import { ay as jv, ai as $v, aj as Wv, am as Gv, aq as Uv, ar as Zv, at as qv, au as Yv, av as Kv, aw as Xv, ap as Jv, as as Qv, ak as ey, al as ty, ax as ry, an as ny, ao as iy, az as sy, aA as ay, aB as oy, aC as ly } from "./DataCollectionStorageProvider-P3r2oy3e.js";
9
- import { A as dy, F as uy, c as hy, b as fy, a as my, o as py, u as gy } from "./F0HILActionConfirmation-DK9urnzZ.js";
5
+ import B, { forwardRef as We, useRef as K, useImperativeHandle as rc, Children as tn, createContext as Ct, useContext as ht, useState as re, useMemo as q, useEffect as J, useCallback as de, useLayoutEffect as ni, createElement as qi, isValidElement as la, Fragment as nc, memo as ic, useReducer as sc, cloneElement as ac, PureComponent as oc } from "react";
6
+ import { createPortal as ca, unstable_batchedUpdates as Zr, flushSync as lc } from "react-dom";
7
+ import { L as da, C as cc, i as ua, D as dc, S as Ki, a as uc, f as $n, b as gr, c as hc, A as fc, d as qr, e as ha, E as mc, g as Xr, h as pc, j as gc, k as vc, l as Qt, m as fa, u as yc, G as bc, n as xc, o as Yi, p as wc, q as ma, r as _c, B as pa, X as ga, Y as ii, s as Cc, t as va, v as Ec, w as kc, x as Sc, y as Dc, z as Rc, F as Nc, H as Ac, I as Tc, J as Xi, K as Oc, M as xr, N as Wn, O as Mc, P as Ic, Q as Lc, R as Pc, T as zc, U as Fc, V as Bc, W as Hc, Z as Vc, _ as jc, $ as $c, a0 as Ji, a1 as Wc, a2 as Gc, a3 as Qi, a4 as ya, a5 as Uc, a6 as Zc, a7 as qc, a8 as Kc, a9 as Yc, aa as ba, ab as Xc, ac as Jc, ad as Qc, ae as ed, af as xa, ag as wa, ah as td, ai as rd, aj as nd, ak as id } from "./DataCollectionStorageProvider-D2PRihOZ.js";
8
+ import { aB as jv, al as $v, am as Wv, ap as Gv, at as Uv, au as Zv, aw as qv, ax as Kv, ay as Yv, az as Xv, as as Jv, av as Qv, an as ey, ao as ty, aA as ry, aq as ny, ar as iy, aC as sy, aD as ay, aE as oy, aF as ly } from "./DataCollectionStorageProvider-D2PRihOZ.js";
9
+ import { A as dy, F as uy, c as hy, b as fy, a as my, o as py, u as gy } from "./F0HILActionConfirmation-R9BQPyrf.js";
10
10
  import { defaultTranslations as yy } from "./i18n-provider-defaults.js";
11
11
  import './f0.css';const sd = {
12
12
  xs: 1,
@@ -14,8 +14,8 @@ import './f0.css';const sd = {
14
14
  md: 2,
15
15
  lg: 2
16
16
  }, ad = We(function({ widgets: e, children: t }, n) {
17
- const i = Y(null);
18
- sc(n, () => i.current);
17
+ const i = K(null);
18
+ rc(n, () => i.current);
19
19
  const s = tn.toArray(e).filter((a) => !!a).map((a, o) => f("div", {
20
20
  className: "h-full @5xl:h-auto [&>div]:h-full",
21
21
  children: a
@@ -27,7 +27,7 @@ import './f0.css';const sd = {
27
27
  className: "@container",
28
28
  children: [V("div", {
29
29
  className: "flex flex-col gap-6 px-5 pt-4 @md:pt-2 @5xl:hidden",
30
- children: [f(hc, {
30
+ children: [f(cc, {
31
31
  columns: sd,
32
32
  showArrows: !1,
33
33
  children: s
@@ -134,103 +134,103 @@ function hd(r) {
134
134
  }), e.innerHTML;
135
135
  }
136
136
  function fd({ children: r, options: e, onResizeStop: t, onChange: n, widgets: i }) {
137
- const [s, a] = re(null), o = Y(null), l = Y(!1), c = q(() => ({
137
+ const [s, a] = re(null), o = K(null), l = K(!1), c = q(() => ({
138
138
  ...e,
139
139
  children: (i || []).map((S) => er(S))
140
140
  }), [e, i]), [d, u] = re(() => {
141
- const S = /* @__PURE__ */ new Map(), I = i || [], x = (E) => {
142
- E.id && E.content && S.set(E.id, E.content), E.subGridOpts?.children && E.subGridOpts.children.forEach((C) => {
143
- x(C);
141
+ const S = /* @__PURE__ */ new Map(), I = i || [], y = (C) => {
142
+ C.id && C.content && S.set(C.id, C.content), C.subGridOpts?.children && C.subGridOpts.children.forEach((_) => {
143
+ y(_);
144
144
  });
145
145
  };
146
- return I.forEach((E) => {
147
- x(E);
146
+ return I.forEach((C) => {
147
+ y(C);
148
148
  }), S;
149
- }), h = Y(d);
149
+ }), h = K(d);
150
150
  J(() => {
151
151
  h.current = d;
152
152
  }, [d]);
153
153
  const [p, g] = re(() => {
154
- const S = /* @__PURE__ */ new Map(), I = i || [], x = (E) => {
155
- E.id && E._originalContent !== void 0 && S.set(E.id, E._originalContent), E.subGridOpts?.children && E.subGridOpts.children.forEach((C) => {
156
- x(C);
154
+ const S = /* @__PURE__ */ new Map(), I = i || [], y = (C) => {
155
+ C.id && C._originalContent !== void 0 && S.set(C.id, C._originalContent), C.subGridOpts?.children && C.subGridOpts.children.forEach((_) => {
156
+ y(_);
157
157
  });
158
158
  };
159
- return I.forEach((E) => {
160
- x(E);
159
+ return I.forEach((C) => {
160
+ y(C);
161
161
  }), S;
162
- }), b = Y(p);
162
+ }), x = K(p);
163
163
  J(() => {
164
- b.current = p;
164
+ x.current = p;
165
165
  }, [p]);
166
- const [_, O] = re(() => {
167
- const S = /* @__PURE__ */ new Map(), I = i || [], x = (E) => {
168
- if (E.id) {
169
- const C = er(E);
170
- S.set(E.id, C);
166
+ const [k, T] = re(() => {
167
+ const S = /* @__PURE__ */ new Map(), I = i || [], y = (C) => {
168
+ if (C.id) {
169
+ const _ = er(C);
170
+ S.set(C.id, _);
171
171
  }
172
- E.subGridOpts?.children && E.subGridOpts.children.forEach((C) => {
173
- x(C);
172
+ C.subGridOpts?.children && C.subGridOpts.children.forEach((_) => {
173
+ y(_);
174
174
  });
175
175
  };
176
- return I.forEach((E) => {
177
- x(E);
176
+ return I.forEach((C) => {
177
+ y(C);
178
178
  }), S;
179
179
  });
180
- Ys(() => {
180
+ Ks(() => {
181
181
  if (!s) return;
182
182
  const S = s.save();
183
183
  if (!Array.isArray(S))
184
184
  return;
185
- const I = S.map((z) => z.id), x = i || [], E = x.map((z) => z.id), C = x.filter((z) => !I.includes(z.id));
186
- C.length > 0 && (C.forEach((z) => {
187
- z.content && h.current.set(z.id, z.content), z._originalContent !== void 0 && b.current.set(z.id, z._originalContent);
188
- }), C.forEach((z) => {
185
+ const I = S.map((z) => z.id), y = i || [], C = y.map((z) => z.id), _ = y.filter((z) => !I.includes(z.id));
186
+ _.length > 0 && (_.forEach((z) => {
187
+ z.content && h.current.set(z.id, z.content), z._originalContent !== void 0 && x.current.set(z.id, z._originalContent);
188
+ }), _.forEach((z) => {
189
189
  const R = er(z);
190
190
  s.addWidget(R);
191
- }), O((z) => {
191
+ }), T((z) => {
192
192
  const R = new Map(z);
193
- return C.forEach((k) => {
194
- const A = er(k);
195
- R.set(k.id, A);
193
+ return _.forEach((E) => {
194
+ const A = er(E);
195
+ R.set(E.id, A);
196
196
  }), R;
197
197
  }), u((z) => {
198
198
  const R = new Map(z);
199
- return C.forEach((k) => {
200
- k.content && R.set(k.id, k.content);
199
+ return _.forEach((E) => {
200
+ E.content && R.set(E.id, E.content);
201
201
  }), R;
202
202
  }), g((z) => {
203
203
  const R = new Map(z);
204
- return C.forEach((k) => {
205
- k._originalContent !== void 0 && R.set(k.id, k._originalContent);
204
+ return _.forEach((E) => {
205
+ E._originalContent !== void 0 && R.set(E.id, E._originalContent);
206
206
  }), R;
207
207
  }));
208
- const N = S.filter((z) => !E.includes(z.id));
208
+ const N = S.filter((z) => !C.includes(z.id));
209
209
  if (N.length > 0) {
210
210
  const z = N.map((R) => R.id).filter(Boolean);
211
211
  z.forEach((R) => {
212
212
  setTimeout(() => {
213
- h.current.delete(R), b.current.delete(R);
213
+ h.current.delete(R), x.current.delete(R);
214
214
  }, Ot);
215
215
  }), N.forEach((R) => {
216
- const k = s.el.querySelector(`[gs-id="${R.id}"]`);
217
- k && setTimeout(() => {
218
- s.removeWidget(k, !0);
216
+ const E = s.el.querySelector(`[gs-id="${R.id}"]`);
217
+ E && setTimeout(() => {
218
+ s.removeWidget(E, !0);
219
219
  }, Ot);
220
- }), O((R) => {
221
- const k = new Map(R);
220
+ }), T((R) => {
221
+ const E = new Map(R);
222
222
  return z.forEach((A) => {
223
223
  setTimeout(() => {
224
- k.delete(A);
224
+ E.delete(A);
225
225
  }, Ot);
226
- }), k;
226
+ }), E;
227
227
  }), u((R) => {
228
- const k = new Map(R);
228
+ const E = new Map(R);
229
229
  return z.forEach((A) => {
230
- if (k.get(A)) {
230
+ if (E.get(A)) {
231
231
  const ie = s.el.querySelector(`[gs-id="${A}"] .grid-stack-item-content`);
232
232
  let ce = "";
233
- ie && (ce = hd(ie)), k.set(A, f(bi.div, {
233
+ ie && (ce = hd(ie)), E.set(A, f(bi.div, {
234
234
  className: "h-full w-full",
235
235
  initial: {
236
236
  opacity: 1,
@@ -267,26 +267,26 @@ function fd({ children: r, options: e, onResizeStop: t, onChange: n, widgets: i
267
267
  }));
268
268
  }
269
269
  setTimeout(() => {
270
- k.delete(A);
270
+ E.delete(A);
271
271
  }, Ot);
272
- }), k;
272
+ }), E;
273
273
  }), g((R) => {
274
- const k = new Map(R);
274
+ const E = new Map(R);
275
275
  return z.forEach((A) => {
276
276
  setTimeout(() => {
277
- k.delete(A);
277
+ E.delete(A);
278
278
  }, Ot);
279
- }), k;
279
+ }), E;
280
280
  });
281
281
  }
282
- const $ = x.filter((z) => I.includes(z.id));
282
+ const $ = y.filter((z) => I.includes(z.id));
283
283
  if ($.length > 0) {
284
284
  const z = [];
285
285
  $.forEach((R) => {
286
- const k = S.find((W) => W.id === R.id);
287
- if (!k)
286
+ const E = S.find((W) => W.id === R.id);
287
+ if (!E)
288
288
  return;
289
- const A = ud.filter((W) => k[W] !== R[W]);
289
+ const A = ud.filter((W) => E[W] !== R[W]);
290
290
  if (A.length > 0) {
291
291
  const W = {}, ie = ["w", "h", "x", "y"], ce = ["noMove", "noResize", "locked"], ne = A.filter((X) => ie.includes(X)), ve = A.filter((X) => ce.includes(X));
292
292
  if (ne.length > 0 && ve.length > 0 && ne.length + ve.length === A.length ? ve.forEach((X) => {
@@ -305,29 +305,29 @@ function fd({ children: r, options: e, onResizeStop: t, onChange: n, widgets: i
305
305
  }
306
306
  }
307
307
  }), $.forEach((R) => {
308
- R.content && h.current.set(R.id, R.content), R._originalContent !== void 0 && b.current.set(R.id, R._originalContent);
309
- }), z.forEach(({ element: R, updateOptions: k }) => {
308
+ R.content && h.current.set(R.id, R.content), R._originalContent !== void 0 && x.current.set(R.id, R._originalContent);
309
+ }), z.forEach(({ element: R, updateOptions: E }) => {
310
310
  try {
311
- s.update(R, k);
311
+ s.update(R, E);
312
312
  } catch (A) {
313
313
  console.warn("Error updating widget:", A);
314
314
  }
315
- }), O((R) => {
316
- const k = new Map(R);
315
+ }), T((R) => {
316
+ const E = new Map(R);
317
317
  return $.forEach((A) => {
318
318
  const W = er(A);
319
- k.set(A.id, W);
320
- }), k;
319
+ E.set(A.id, W);
320
+ }), E;
321
321
  }), u((R) => {
322
- const k = new Map(R);
322
+ const E = new Map(R);
323
323
  return $.forEach((A) => {
324
- A.content && k.set(A.id, A.content);
325
- }), k;
324
+ A.content && E.set(A.id, A.content);
325
+ }), E;
326
326
  }), g((R) => {
327
- const k = new Map(R);
327
+ const E = new Map(R);
328
328
  return $.forEach((A) => {
329
- A._originalContent !== void 0 && k.set(A.id, A._originalContent);
330
- }), k;
329
+ A._originalContent !== void 0 && E.set(A.id, A._originalContent);
330
+ }), E;
331
331
  });
332
332
  }
333
333
  l.current || (l.current = !0);
@@ -348,32 +348,32 @@ function fd({ children: r, options: e, onResizeStop: t, onChange: n, widgets: i
348
348
  return;
349
349
  const S = s.save();
350
350
  if (Array.isArray(S)) {
351
- const I = S.map((x) => {
352
- const E = x.id;
353
- if (!E) return null;
354
- const C = h.current.get(E), N = b.current.get(E), $ = x;
351
+ const I = S.map((y) => {
352
+ const C = y.id;
353
+ if (!C) return null;
354
+ const _ = h.current.get(C), N = x.current.get(C), $ = y;
355
355
  return {
356
- ...x,
357
- id: E,
358
- w: x.w ?? 1,
359
- h: x.h ?? 1,
360
- x: x.x ?? 0,
361
- y: x.y ?? 0,
356
+ ...y,
357
+ id: C,
358
+ w: y.w ?? 1,
359
+ h: y.h ?? 1,
360
+ x: y.x ?? 0,
361
+ y: y.y ?? 0,
362
362
  meta: $.meta,
363
363
  _originalContent: N,
364
- content: C ?? f("div", {
364
+ content: _ ?? f("div", {
365
365
  children: "No content"
366
366
  })
367
367
  };
368
- }).filter((x) => x !== null);
368
+ }).filter((y) => y !== null);
369
369
  n?.(I);
370
370
  }
371
371
  }, [s]);
372
372
  return J(() => {
373
373
  if (!s || !s.el || !s.el.parentElement)
374
374
  return;
375
- const S = (I, x) => {
376
- t?.(I, x);
375
+ const S = (I, y) => {
376
+ t?.(I, y);
377
377
  };
378
378
  try {
379
379
  s.on("resizestop", S), s.on("change added removed", D);
@@ -386,8 +386,8 @@ function fd({ children: r, options: e, onResizeStop: t, onChange: n, widgets: i
386
386
  if (I && I.el)
387
387
  try {
388
388
  I.off("resizestop"), I.off("change added removed");
389
- } catch (x) {
390
- console.warn("Error cleaning up GridStack event listeners:", x);
389
+ } catch (y) {
390
+ console.warn("Error cleaning up GridStack event listeners:", y);
391
391
  }
392
392
  };
393
393
  }, [s, t, D]), J(() => {
@@ -403,8 +403,8 @@ function fd({ children: r, options: e, onResizeStop: t, onChange: n, widgets: i
403
403
  set: a
404
404
  },
405
405
  _rawWidgetMetaMap: {
406
- value: _,
407
- set: O
406
+ value: k,
407
+ set: T
408
408
  },
409
409
  _reactContentMap: {
410
410
  value: d,
@@ -444,7 +444,7 @@ function vd(r, e, t, n, i) {
444
444
  const s = (...a) => (console.warn("gridstack.js: Function `" + t + "` is deprecated in " + i + " and has been replaced with `" + n + "`. It will be **removed** in a future release"), e.apply(r, a));
445
445
  return s.prototype = e.prototype, s;
446
446
  }
447
- class y {
447
+ class b {
448
448
  /**
449
449
  * Convert a potential selector into an actual list of HTML elements.
450
450
  * Supports CSS selectors, element references, and special ID handling.
@@ -574,7 +574,7 @@ class y {
574
574
  * ); // true - they share an edge
575
575
  */
576
576
  static isTouching(e, t) {
577
- return y.isIntercepted(e, { x: t.x - 0.5, y: t.y - 0.5, w: t.w + 1, h: t.h + 1 });
577
+ return b.isIntercepted(e, { x: t.x - 0.5, y: t.y - 0.5, w: t.w + 1, h: t.h + 1 });
578
578
  }
579
579
  /**
580
580
  * Calculate the overlapping area between two grid positions.
@@ -716,7 +716,7 @@ class y {
716
716
  for (const i in n) {
717
717
  if (!n.hasOwnProperty(i))
718
718
  return;
719
- e[i] === null || e[i] === void 0 ? e[i] = n[i] : typeof n[i] == "object" && typeof e[i] == "object" && y.defaults(e[i], n[i]);
719
+ e[i] === null || e[i] === void 0 ? e[i] = n[i] : typeof n[i] == "object" && typeof e[i] == "object" && b.defaults(e[i], n[i]);
720
720
  }
721
721
  }), e;
722
722
  }
@@ -771,7 +771,7 @@ class y {
771
771
  if (!(typeof e != "object" || typeof t != "object"))
772
772
  for (let n in e) {
773
773
  const i = e[n], s = t[n];
774
- n[0] === "_" || i === s ? delete e[n] : i && typeof i == "object" && s !== void 0 && (y.removeInternalAndSame(i, s), Object.keys(i).length || delete e[n]);
774
+ n[0] === "_" || i === s ? delete e[n] : i && typeof i == "object" && s !== void 0 && (b.removeInternalAndSame(i, s), Object.keys(i).length || delete e[n]);
775
775
  }
776
776
  }
777
777
  /** removes internal fields '_' and default values for saving */
@@ -806,11 +806,11 @@ class y {
806
806
  if (!e)
807
807
  return document.scrollingElement || document.documentElement;
808
808
  const t = getComputedStyle(e);
809
- return /(auto|scroll)/.test(t.overflow + t.overflowY) ? e : y.getScrollElement(e.parentElement);
809
+ return /(auto|scroll)/.test(t.overflow + t.overflowY) ? e : b.getScrollElement(e.parentElement);
810
810
  }
811
811
  /** @internal */
812
812
  static updateScrollPosition(e, t, n) {
813
- const i = y.getScrollElement(e);
813
+ const i = b.getScrollElement(e);
814
814
  if (!i)
815
815
  return;
816
816
  const s = e.getBoundingClientRect(), a = i.getBoundingClientRect(), o = window.innerHeight || document.documentElement.clientHeight, l = s.bottom - Math.min(a.bottom, o), c = s.top - Math.max(a.top, 0), d = i.scrollTop;
@@ -824,7 +824,7 @@ class y {
824
824
  * @param distance Distance from the V edges to start scrolling
825
825
  */
826
826
  static updateScrollResize(e, t, n) {
827
- const i = y.getScrollElement(t), s = i.clientHeight, a = i === y.getScrollElement() ? 0 : i.getBoundingClientRect().top, o = e.clientY - a, l = o < n, c = o > s - n;
827
+ const i = b.getScrollElement(t), s = i.clientHeight, a = i === b.getScrollElement() ? 0 : i.getBoundingClientRect().top, o = e.clientY - a, l = o < n, c = o > s - n;
828
828
  l ? i.scrollBy({ behavior: "smooth", top: o - n }) : c && i.scrollBy({ behavior: "smooth", top: n - (s - o) });
829
829
  }
830
830
  /** single level clone, returning a new object with same top fields. This will share sub objects and arrays */
@@ -836,9 +836,9 @@ class y {
836
836
  * Note: this will use as-is any key starting with double __ (and not copy inside) some lib have circular dependencies.
837
837
  */
838
838
  static cloneDeep(e) {
839
- const t = ["parentGrid", "el", "grid", "subGrid", "engine"], n = y.clone(e);
839
+ const t = ["parentGrid", "el", "grid", "subGrid", "engine"], n = b.clone(e);
840
840
  for (const i in n)
841
- n.hasOwnProperty(i) && typeof n[i] == "object" && i.substring(0, 2) !== "__" && !t.find((s) => s === i) && (n[i] = y.cloneDeep(e[i]));
841
+ n.hasOwnProperty(i) && typeof n[i] == "object" && i.substring(0, 2) !== "__" && !t.find((s) => s === i) && (n[i] = b.cloneDeep(e[i]));
842
842
  return n;
843
843
  }
844
844
  /** deep clone the given HTML node, removing teh unique id field */
@@ -848,7 +848,7 @@ class y {
848
848
  }
849
849
  static appendTo(e, t) {
850
850
  let n;
851
- typeof t == "string" ? n = y.getElement(t) : n = t, n && n.appendChild(e);
851
+ typeof t == "string" ? n = b.getElement(t) : n = t, n && n.appendChild(e);
852
852
  }
853
853
  // public static setPositionRelative(el: HTMLElement): void {
854
854
  // if (!(/^(?:r|a|f)/).test(getComputedStyle(el).position)) {
@@ -900,7 +900,7 @@ class y {
900
900
  */
901
901
  static getValuesFromTransformedElement(e) {
902
902
  const t = document.createElement("div");
903
- y.addElStyles(t, {
903
+ b.addElStyles(t, {
904
904
  opacity: "0",
905
905
  position: "fixed",
906
906
  top: "0px",
@@ -987,7 +987,7 @@ class Dt {
987
987
  (!this.collide(n, { ...n, y: e.y }, e) || !this.collide(n, { ...n, y: t.y - n.h }, e))) {
988
988
  e._skipDown = e._skipDown || t.y > e.y;
989
989
  const d = { ...t, y: n.y + n.h, ...o };
990
- c = this._loading && y.samePos(e, d) ? !0 : this.moveNode(e, d), (n.locked || this._loading) && c ? y.copyPos(t, e) : !n.locked && c && i.pack && (this._packNodes(), t.y = n.y + n.h, y.copyPos(e, t)), a = a || c;
990
+ c = this._loading && b.samePos(e, d) ? !0 : this.moveNode(e, d), (n.locked || this._loading) && c ? b.copyPos(t, e) : !n.locked && c && i.pack && (this._packNodes(), t.y = n.y + n.h, b.copyPos(e, t)), a = a || c;
991
991
  } else
992
992
  c = this.moveNode(n, { ...n, y: t.y + t.h, skip: e, ...o });
993
993
  if (!c)
@@ -1013,7 +1013,7 @@ class Dt {
1013
1013
  */
1014
1014
  collide(e, t = e, n) {
1015
1015
  const i = e._id, s = n?._id;
1016
- return this.nodes.find((a) => a._id !== i && a._id !== s && y.isIntercepted(a, t));
1016
+ return this.nodes.find((a) => a._id !== i && a._id !== s && b.isIntercepted(a, t));
1017
1017
  }
1018
1018
  /**
1019
1019
  * Return all nodes that intercept/collide with the given node or area.
@@ -1030,7 +1030,7 @@ class Dt {
1030
1030
  */
1031
1031
  collideAll(e, t = e, n) {
1032
1032
  const i = e._id, s = n?._id;
1033
- return this.nodes.filter((a) => a._id !== i && a._id !== s && y.isIntercepted(a, t));
1033
+ return this.nodes.filter((a) => a._id !== i && a._id !== s && b.isIntercepted(a, t));
1034
1034
  }
1035
1035
  /** does a pixel coverage collision based on where we started, returning the node that has the most coverage that is >50% mid line */
1036
1036
  directionCollideCoverage(e, t, n) {
@@ -1110,10 +1110,10 @@ class Dt {
1110
1110
  return t.x = e.x, t.y = e.y, e.h != t.h ? (e.x = s, e.y = t.y + t.h) : e.w != t.w ? (e.x = t.x + t.w, e.y = a) : (e.x = s, e.y = a), e._dirty = t._dirty = !0, !0;
1111
1111
  }
1112
1112
  let i;
1113
- if (e.w === t.w && e.h === t.h && (e.x === t.x || e.y === t.y) && (i = y.isTouching(e, t)))
1113
+ if (e.w === t.w && e.h === t.h && (e.x === t.x || e.y === t.y) && (i = b.isTouching(e, t)))
1114
1114
  return n();
1115
1115
  if (i !== !1) {
1116
- if (e.w === t.w && e.x === t.x && (i || (i = y.isTouching(e, t)))) {
1116
+ if (e.w === t.w && e.x === t.x && (i || (i = b.isTouching(e, t)))) {
1117
1117
  if (t.y < e.y) {
1118
1118
  const s = e;
1119
1119
  e = t, t = s;
@@ -1121,7 +1121,7 @@ class Dt {
1121
1121
  return n();
1122
1122
  }
1123
1123
  if (i !== !1) {
1124
- if (e.h === t.h && e.y === t.y && (i || (i = y.isTouching(e, t)))) {
1124
+ if (e.h === t.h && e.y === t.y && (i || (i = b.isTouching(e, t)))) {
1125
1125
  if (t.x < e.x) {
1126
1126
  const s = e;
1127
1127
  e = t, t = s;
@@ -1219,7 +1219,7 @@ class Dt {
1219
1219
  * engine.sortNodes(-1); // Sort descending
1220
1220
  */
1221
1221
  sortNodes(e = 1) {
1222
- return this.nodes = y.sort(this.nodes, e), this;
1222
+ return this.nodes = b.sort(this.nodes, e), this;
1223
1223
  }
1224
1224
  /** @internal called to top gravity pack the items back OR revert back to original Y positions when floating */
1225
1225
  _packNodes() {
@@ -1262,7 +1262,7 @@ class Dt {
1262
1262
  }
1263
1263
  (e.x === void 0 || e.y === void 0 || e.x === null || e.y === null) && (e.autoPosition = !0);
1264
1264
  const i = { x: 0, y: 0, w: 1, h: 1 };
1265
- return y.defaults(e, i), e.autoPosition || delete e.autoPosition, e.noResize || delete e.noResize, e.noMove || delete e.noMove, y.sanitizeMinMax(e), typeof e.x == "string" && (e.x = Number(e.x)), typeof e.y == "string" && (e.y = Number(e.y)), typeof e.w == "string" && (e.w = Number(e.w)), typeof e.h == "string" && (e.h = Number(e.h)), isNaN(e.x) && (e.x = i.x, e.autoPosition = !0), isNaN(e.y) && (e.y = i.y, e.autoPosition = !0), isNaN(e.w) && (e.w = i.w), isNaN(e.h) && (e.h = i.h), this.nodeBoundFix(e, t), e;
1265
+ return b.defaults(e, i), e.autoPosition || delete e.autoPosition, e.noResize || delete e.noResize, e.noMove || delete e.noMove, b.sanitizeMinMax(e), typeof e.x == "string" && (e.x = Number(e.x)), typeof e.y == "string" && (e.y = Number(e.y)), typeof e.w == "string" && (e.w = Number(e.w)), typeof e.h == "string" && (e.h = Number(e.h)), isNaN(e.x) && (e.x = i.x, e.autoPosition = !0), isNaN(e.y) && (e.y = i.y, e.autoPosition = !0), isNaN(e.w) && (e.w = i.w), isNaN(e.h) && (e.h = i.h), this.nodeBoundFix(e, t), e;
1266
1266
  }
1267
1267
  /**
1268
1268
  * Part 2 of preparing a node to fit inside the grid - validates and fixes coordinates and dimensions.
@@ -1278,12 +1278,12 @@ class Dt {
1278
1278
  * engine.nodeBoundFix(node, false); // Move to fit
1279
1279
  */
1280
1280
  nodeBoundFix(e, t) {
1281
- const n = e._orig || y.copyPos({}, e);
1281
+ const n = e._orig || b.copyPos({}, e);
1282
1282
  if (e.maxW && (e.w = Math.min(e.w || 1, e.maxW)), e.maxH && (e.h = Math.min(e.h || 1, e.maxH)), e.minW && (e.w = Math.max(e.w || 1, e.minW)), e.minH && (e.h = Math.max(e.h || 1, e.minH)), (e.x || 0) + (e.w || 1) > this.column && this.column < this.defaultColumn && !this._inColumnResize && !this.skipCacheUpdate && e._id != null && this.findCacheLayout(e, this.defaultColumn) === -1) {
1283
1283
  const s = { ...e };
1284
1284
  s.autoPosition || s.x === void 0 ? (delete s.x, delete s.y) : s.x = Math.min(this.defaultColumn - 1, s.x), s.w = Math.min(this.defaultColumn, s.w || 1), this.cacheOneLayout(s, this.defaultColumn);
1285
1285
  }
1286
- return e.w > this.column ? e.w = this.column : e.w < 1 && (e.w = 1), this.maxRow && e.h > this.maxRow ? e.h = this.maxRow : e.h < 1 && (e.h = 1), e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), e.x + e.w > this.column && (t ? e.w = this.column - e.x : e.x = this.column - e.w), this.maxRow && e.y + e.h > this.maxRow && (t ? e.h = this.maxRow - e.y : e.y = this.maxRow - e.h), y.samePos(e, n) || (e._dirty = !0), this;
1286
+ return e.w > this.column ? e.w = this.column : e.w < 1 && (e.w = 1), this.maxRow && e.h > this.maxRow ? e.h = this.maxRow : e.h < 1 && (e.h = 1), e.x < 0 && (e.x = 0), e.y < 0 && (e.y = 0), e.x + e.w > this.column && (t ? e.w = this.column - e.x : e.x = this.column - e.w), this.maxRow && e.y + e.h > this.maxRow && (t ? e.h = this.maxRow - e.y : e.y = this.maxRow - e.h), b.samePos(e, n) || (e._dirty = !0), this;
1287
1287
  }
1288
1288
  /**
1289
1289
  * Returns a list of nodes that have been modified from their original values.
@@ -1300,7 +1300,7 @@ class Dt {
1300
1300
  * const verified = engine.getDirtyNodes(true);
1301
1301
  */
1302
1302
  getDirtyNodes(e) {
1303
- return e ? this.nodes.filter((t) => t._dirty && !y.samePos(t, t._orig)) : this.nodes.filter((t) => t._dirty);
1303
+ return e ? this.nodes.filter((t) => t._dirty && !b.samePos(t, t._orig)) : this.nodes.filter((t) => t._dirty);
1304
1304
  }
1305
1305
  /** @internal call this to call onChange callback with dirty nodes so DOM can be updated */
1306
1306
  _notify(e) {
@@ -1334,7 +1334,7 @@ class Dt {
1334
1334
  */
1335
1335
  saveInitial() {
1336
1336
  return this.nodes.forEach((e) => {
1337
- e._orig = y.copyPos({}, e), delete e._dirty;
1337
+ e._orig = b.copyPos({}, e), delete e._dirty;
1338
1338
  }), this._hasLocked = this.nodes.some((e) => e.locked), this;
1339
1339
  }
1340
1340
  /**
@@ -1347,7 +1347,7 @@ class Dt {
1347
1347
  */
1348
1348
  restoreInitial() {
1349
1349
  return this.nodes.forEach((e) => {
1350
- !e._orig || y.samePos(e, e._orig) || (y.copyPos(e, e._orig), e._dirty = !0);
1350
+ !e._orig || b.samePos(e, e._orig) || (b.copyPos(e, e._orig), e._dirty = !0);
1351
1351
  }), this._notify(), this;
1352
1352
  }
1353
1353
  /**
@@ -1374,7 +1374,7 @@ class Dt {
1374
1374
  if (l + e.w > n)
1375
1375
  continue;
1376
1376
  const d = { x: l, y: c, w: e.w, h: e.h };
1377
- t.find((u) => y.isIntercepted(d, u)) || ((e.x !== l || e.y !== c) && (e._dirty = !0), e.x = l, e.y = c, delete e.autoPosition, a = !0);
1377
+ t.find((u) => b.isIntercepted(d, u)) || ((e.x !== l || e.y !== c) && (e._dirty = !0), e.x = l, e.y = c, delete e.autoPosition, a = !0);
1378
1378
  }
1379
1379
  return a;
1380
1380
  }
@@ -1468,7 +1468,7 @@ class Dt {
1468
1468
  }
1469
1469
  return s ? (i.nodes.filter((a) => a._dirty).forEach((a) => {
1470
1470
  const o = this.nodes.find((l) => l._id === a._id);
1471
- o && (y.copyPos(o, a), o._dirty = !0);
1471
+ o && (b.copyPos(o, a), o._dirty = !0);
1472
1472
  }), this._notify(), !0) : !1;
1473
1473
  }
1474
1474
  /** return true if can fit in grid height constrain only (always true if no maxRow) */
@@ -1480,7 +1480,7 @@ class Dt {
1480
1480
  float: this.float,
1481
1481
  nodes: this.nodes.map((i) => ({ ...i }))
1482
1482
  }), n = { ...e };
1483
- return this.cleanupNode(n), delete n.el, delete n._id, delete n.content, delete n.grid, t.addNode(n), t.getRow() <= this.maxRow ? (e._willFitPos = y.copyPos({}, n), !0) : !1;
1483
+ return this.cleanupNode(n), delete n.el, delete n._id, delete n.content, delete n.grid, t.addNode(n), t.getRow() <= this.maxRow ? (e._willFitPos = b.copyPos({}, n), !0) : !1;
1484
1484
  }
1485
1485
  /** true if x,y or w,h are different after clamping to min/max */
1486
1486
  changedPosConstrain(e, t) {
@@ -1493,21 +1493,21 @@ class Dt {
1493
1493
  return !1;
1494
1494
  let n;
1495
1495
  t.pack === void 0 && !this.batchMode && (n = t.pack = !0), typeof t.x != "number" && (t.x = e.x), typeof t.y != "number" && (t.y = e.y), typeof t.w != "number" && (t.w = e.w), typeof t.h != "number" && (t.h = e.h);
1496
- const i = e.w !== t.w || e.h !== t.h, s = y.copyPos({}, e, !0);
1497
- if (y.copyPos(s, t), this.nodeBoundFix(s, i), y.copyPos(t, s), !t.forceCollide && y.samePos(e, t))
1496
+ const i = e.w !== t.w || e.h !== t.h, s = b.copyPos({}, e, !0);
1497
+ if (b.copyPos(s, t), this.nodeBoundFix(s, i), b.copyPos(t, s), !t.forceCollide && b.samePos(e, t))
1498
1498
  return !1;
1499
- const a = y.copyPos({}, e), o = this.collideAll(e, s, t.skip);
1499
+ const a = b.copyPos({}, e), o = this.collideAll(e, s, t.skip);
1500
1500
  let l = !0;
1501
1501
  if (o.length) {
1502
1502
  const c = e._moving && !t.nested;
1503
1503
  let d = c ? this.directionCollideCoverage(e, t, o) : o[0];
1504
1504
  if (c && d && e.grid?.opts?.subGridDynamic && !e.grid._isTemp) {
1505
- const u = y.areaIntercept(t.rect, d._rect), h = y.area(t.rect), p = y.area(d._rect);
1505
+ const u = b.areaIntercept(t.rect, d._rect), h = b.area(t.rect), p = b.area(d._rect);
1506
1506
  u / (h < p ? h : p) > 0.8 && (d.grid.makeSubGrid(d.el, void 0, e), d = void 0);
1507
1507
  }
1508
1508
  d ? l = !this._fixCollisions(e, s, d, t) : (l = !1, n && delete t.pack);
1509
1509
  }
1510
- return l && !y.samePos(e, s) && (e._dirty = !0, y.copyPos(e, s)), t.pack && this._packNodes()._notify(), !y.samePos(e, a);
1510
+ return l && !b.samePos(e, s) && (e._dirty = !0, b.copyPos(e, s)), t.pack && this._packNodes()._notify(), !b.samePos(e, a);
1511
1511
  }
1512
1512
  getRow() {
1513
1513
  return this.nodes.reduce((e, t) => Math.max(e, t.y + t.h), 0);
@@ -1533,7 +1533,7 @@ class Dt {
1533
1533
  const a = [];
1534
1534
  return this.sortNodes(), this.nodes.forEach((o) => {
1535
1535
  const l = s?.find((d) => d._id === o._id), c = { ...o, ...l || {} };
1536
- y.removeInternalForSave(c, !e), t && t(o, c), a.push(c);
1536
+ b.removeInternalForSave(c, !e), t && t(o, c), a.push(c);
1537
1537
  }), a;
1538
1538
  }
1539
1539
  /** @internal called whenever a node is added or moved - updates the cached layouts */
@@ -1569,7 +1569,7 @@ class Dt {
1569
1569
  return this;
1570
1570
  const i = n === "compact" || n === "list";
1571
1571
  i && this.sortNodes(1), t < e && this.cacheLayout(this.nodes, e), this.batchUpdate();
1572
- let s = [], a = i ? this.nodes : y.sort(this.nodes, -1);
1572
+ let s = [], a = i ? this.nodes : b.sort(this.nodes, -1);
1573
1573
  if (t > e && this._layouts) {
1574
1574
  const o = this._layouts[t] || [], l = this._layouts.length - 1;
1575
1575
  !o.length && e !== l && this._layouts[l]?.length && (e = l, this._layouts[l].forEach((c) => {
@@ -1599,7 +1599,7 @@ class Dt {
1599
1599
  d.x = t === 1 ? 0 : l ? Math.round(d.x * o) : Math.min(d.x, t - 1), d.w = t === 1 || e === 1 ? 1 : c ? Math.round(d.w * o) || 1 : Math.min(d.w, t), s.push(d);
1600
1600
  }), a = [];
1601
1601
  }
1602
- s = y.sort(s, -1), this._inColumnResize = !0, this.nodes = [], s.forEach((o) => {
1602
+ s = b.sort(s, -1), this._inColumnResize = !0, this.nodes = [], s.forEach((o) => {
1603
1603
  this.addNode(o, !1), delete o._orig;
1604
1604
  });
1605
1605
  }
@@ -1651,7 +1651,7 @@ class Dt {
1651
1651
  }
1652
1652
  }
1653
1653
  Dt._idSeq = 0;
1654
- const Ke = {
1654
+ const Ye = {
1655
1655
  alwaysShowResizeHandle: "mobile",
1656
1656
  animate: !0,
1657
1657
  auto: !0,
@@ -1680,16 +1680,16 @@ const Ke = {
1680
1680
  // staticGrid: false,
1681
1681
  //removable
1682
1682
  };
1683
- class K {
1683
+ class Y {
1684
1684
  }
1685
1685
  const dt = typeof window < "u" && typeof document < "u" && ("ontouchstart" in document || "ontouchstart" in window || window.DocumentTouch && document instanceof window.DocumentTouch || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0);
1686
1686
  class bt {
1687
1687
  }
1688
1688
  function rn(r, e) {
1689
- r.touches.length > 1 || (r.cancelable && r.preventDefault(), y.simulateMouseEvent(r.changedTouches[0], e));
1689
+ r.touches.length > 1 || (r.cancelable && r.preventDefault(), b.simulateMouseEvent(r.changedTouches[0], e));
1690
1690
  }
1691
1691
  function Sa(r, e) {
1692
- r.cancelable && r.preventDefault(), y.simulateMouseEvent(r, e);
1692
+ r.cancelable && r.preventDefault(), b.simulateMouseEvent(r, e);
1693
1693
  }
1694
1694
  function nn(r) {
1695
1695
  bt.touchHandled || (bt.touchHandled = !0, rn(r, "mousedown"));
@@ -1701,17 +1701,17 @@ function an(r) {
1701
1701
  if (!bt.touchHandled)
1702
1702
  return;
1703
1703
  bt.pointerLeaveTimeout && (window.clearTimeout(bt.pointerLeaveTimeout), delete bt.pointerLeaveTimeout);
1704
- const e = !!K.dragElement;
1704
+ const e = !!Y.dragElement;
1705
1705
  rn(r, "mouseup"), e || rn(r, "click"), bt.touchHandled = !1;
1706
1706
  }
1707
1707
  function on(r) {
1708
1708
  r.pointerType !== "mouse" && r.target.releasePointerCapture(r.pointerId);
1709
1709
  }
1710
1710
  function es(r) {
1711
- K.dragElement && r.pointerType !== "mouse" && Sa(r, "mouseenter");
1711
+ Y.dragElement && r.pointerType !== "mouse" && Sa(r, "mouseenter");
1712
1712
  }
1713
1713
  function ts(r) {
1714
- K.dragElement && r.pointerType !== "mouse" && (bt.pointerLeaveTimeout = window.setTimeout(() => {
1714
+ Y.dragElement && r.pointerType !== "mouse" && (bt.pointerLeaveTimeout = window.setTimeout(() => {
1715
1715
  delete bt.pointerLeaveTimeout, Sa(r, "mouseleave");
1716
1716
  }, 10));
1717
1717
  }
@@ -1868,17 +1868,17 @@ class Rr extends wi {
1868
1868
  }
1869
1869
  /** @internal turns auto hide on/off */
1870
1870
  _setupAutoHide(e) {
1871
- return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), K.overResizeElement === this && delete K.overResizeElement), this;
1871
+ return e ? (this.el.classList.add("ui-resizable-autohide"), this.el.addEventListener("mouseover", this._mouseOver), this.el.addEventListener("mouseout", this._mouseOut)) : (this.el.classList.remove("ui-resizable-autohide"), this.el.removeEventListener("mouseover", this._mouseOver), this.el.removeEventListener("mouseout", this._mouseOut), Y.overResizeElement === this && delete Y.overResizeElement), this;
1872
1872
  }
1873
1873
  /** @internal */
1874
1874
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1875
1875
  _mouseOver(e) {
1876
- K.overResizeElement || K.dragElement || (K.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
1876
+ Y.overResizeElement || Y.dragElement || (Y.overResizeElement = this, this.el.classList.remove("ui-resizable-autohide"));
1877
1877
  }
1878
1878
  /** @internal */
1879
1879
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
1880
1880
  _mouseOut(e) {
1881
- K.overResizeElement === this && (delete K.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
1881
+ Y.overResizeElement === this && (delete Y.overResizeElement, this.el.classList.add("ui-resizable-autohide"));
1882
1882
  }
1883
1883
  /** @internal */
1884
1884
  _setupHandlers() {
@@ -1896,25 +1896,25 @@ class Rr extends wi {
1896
1896
  }
1897
1897
  /** @internal */
1898
1898
  _resizeStart(e) {
1899
- this.sizeToContent = y.shouldSizeToContent(this.el.gridstackNode, !0), this.originalRect = this.el.getBoundingClientRect(), this.scrollEl = y.getScrollElement(this.el), this.scrollY = this.scrollEl.scrollTop, this.scrolled = 0, this.startEvent = e, this._setupHelper(), this._applyChange();
1900
- const t = y.initEvent(e, { type: "resizestart", target: this.el });
1899
+ this.sizeToContent = b.shouldSizeToContent(this.el.gridstackNode, !0), this.originalRect = this.el.getBoundingClientRect(), this.scrollEl = b.getScrollElement(this.el), this.scrollY = this.scrollEl.scrollTop, this.scrolled = 0, this.startEvent = e, this._setupHelper(), this._applyChange();
1900
+ const t = b.initEvent(e, { type: "resizestart", target: this.el });
1901
1901
  return this.option.start && this.option.start(t, this._ui()), this.el.classList.add("ui-resizable-resizing"), this.triggerEvent("resizestart", t), this;
1902
1902
  }
1903
1903
  /** @internal */
1904
1904
  _resizing(e, t) {
1905
1905
  this.scrolled = this.scrollEl.scrollTop - this.scrollY, this.temporalRect = this._getChange(e, t), this._applyChange();
1906
- const n = y.initEvent(e, { type: "resize", target: this.el });
1906
+ const n = b.initEvent(e, { type: "resize", target: this.el });
1907
1907
  return this.option.resize && this.option.resize(n, this._ui()), this.triggerEvent("resize", n), this;
1908
1908
  }
1909
1909
  /** @internal */
1910
1910
  _resizeStop(e) {
1911
- const t = y.initEvent(e, { type: "resizestop", target: this.el });
1911
+ const t = b.initEvent(e, { type: "resizestop", target: this.el });
1912
1912
  return this._cleanHelper(), this.option.stop && this.option.stop(t), this.el.classList.remove("ui-resizable-resizing"), this.triggerEvent("resizestop", t), delete this.startEvent, delete this.originalRect, delete this.temporalRect, delete this.scrollY, delete this.scrolled, this;
1913
1913
  }
1914
1914
  /** @internal */
1915
1915
  _setupHelper() {
1916
1916
  this.elOriginStyleVal = Rr._originStyleProp.map((n) => this.el.style[n]), this.parentOriginStylePosition = this.el.parentElement.style.position;
1917
- const e = this.el.parentElement, t = y.getValuesFromTransformedElement(e);
1917
+ const e = this.el.parentElement, t = b.getValuesFromTransformedElement(e);
1918
1918
  return this.rectScale = {
1919
1919
  x: t.xScale,
1920
1920
  y: t.yScale
@@ -1998,30 +1998,30 @@ class Nr extends wi {
1998
1998
  }
1999
1999
  /** @internal call when mouse goes down before a dragstart happens */
2000
2000
  _mouseDown(e) {
2001
- if (!K.mouseHandled)
2002
- return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(yd) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete K.dragElement, delete K.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), dt && (e.currentTarget.addEventListener("touchmove", sn), e.currentTarget.addEventListener("touchend", an)), e.preventDefault(), document.activeElement && document.activeElement.blur(), K.mouseHandled = !0), !0;
2001
+ if (!Y.mouseHandled)
2002
+ return e.button !== 0 || !this.dragEls.find((t) => t === e.target) && e.target.closest(yd) || this.option.cancel && e.target.closest(this.option.cancel) || (this.mouseDownEvent = e, delete this.dragging, delete Y.dragElement, delete Y.dropElement, document.addEventListener("mousemove", this._mouseMove, { capture: !0, passive: !0 }), document.addEventListener("mouseup", this._mouseUp, !0), dt && (e.currentTarget.addEventListener("touchmove", sn), e.currentTarget.addEventListener("touchend", an)), e.preventDefault(), document.activeElement && document.activeElement.blur(), Y.mouseHandled = !0), !0;
2003
2003
  }
2004
2004
  /** @internal method to call actual drag event */
2005
2005
  _callDrag(e) {
2006
2006
  if (!this.dragging)
2007
2007
  return;
2008
- const t = y.initEvent(e, { target: this.el, type: "drag" });
2008
+ const t = b.initEvent(e, { target: this.el, type: "drag" });
2009
2009
  this.option.drag && this.option.drag(t, this.ui()), this.triggerEvent("drag", t);
2010
2010
  }
2011
2011
  /** @internal called when the main page (after successful mousedown) receives a move event to drag the item around the screen */
2012
2012
  _mouseMove(e) {
2013
2013
  const t = this.mouseDownEvent;
2014
2014
  if (this.lastDrag = e, this.dragging)
2015
- if (this._dragFollow(e), K.pauseDrag) {
2016
- const n = Number.isInteger(K.pauseDrag) ? K.pauseDrag : 100;
2015
+ if (this._dragFollow(e), Y.pauseDrag) {
2016
+ const n = Number.isInteger(Y.pauseDrag) ? Y.pauseDrag : 100;
2017
2017
  this.dragTimeout && window.clearTimeout(this.dragTimeout), this.dragTimeout = window.setTimeout(() => this._callDrag(e), n);
2018
2018
  } else
2019
2019
  this._callDrag(e);
2020
2020
  else if (Math.abs(e.x - t.x) + Math.abs(e.y - t.y) > 3) {
2021
- this.dragging = !0, K.dragElement = this;
2021
+ this.dragging = !0, Y.dragElement = this;
2022
2022
  const n = this.el.gridstackNode?.grid;
2023
- n ? K.dropElement = n.el.ddElement.ddDroppable : delete K.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = y.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
2024
- const i = y.initEvent(e, { target: this.el, type: "dragstart" });
2023
+ n ? Y.dropElement = n.el.ddElement.ddDroppable : delete Y.dropElement, this.helper = this._createHelper(), this._setupHelperContainmentStyle(), this.dragTransform = b.getValuesFromTransformedElement(this.helperContainment), this.dragOffset = this._getDragOffset(e, this.el, this.helperContainment), this._setupHelperStyle(e);
2024
+ const i = b.initEvent(e, { target: this.el, type: "dragstart" });
2025
2025
  this.option.start && this.option.start(i, this.ui()), this.triggerEvent("dragstart", i), document.addEventListener("keydown", this._keyEvent);
2026
2026
  }
2027
2027
  return !0;
@@ -2029,27 +2029,27 @@ class Nr extends wi {
2029
2029
  /** @internal call when the mouse gets released to drop the item at current location */
2030
2030
  _mouseUp(e) {
2031
2031
  if (document.removeEventListener("mousemove", this._mouseMove, !0), document.removeEventListener("mouseup", this._mouseUp, !0), dt && e.currentTarget && (e.currentTarget.removeEventListener("touchmove", sn, !0), e.currentTarget.removeEventListener("touchend", an, !0)), this.dragging) {
2032
- delete this.dragging, delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent), K.dropElement?.el === this.el.parentElement && delete K.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
2033
- const t = y.initEvent(e, { target: this.el, type: "dragstop" });
2034
- this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), K.dropElement && K.dropElement.drop(e);
2032
+ delete this.dragging, delete this.el.gridstackNode?._origRotate, document.removeEventListener("keydown", this._keyEvent), Y.dropElement?.el === this.el.parentElement && delete Y.dropElement, this.helperContainment.style.position = this.parentOriginStylePosition || null, this.helper !== this.el && this.helper.remove(), this._removeHelperStyle();
2033
+ const t = b.initEvent(e, { target: this.el, type: "dragstop" });
2034
+ this.option.stop && this.option.stop(t), this.triggerEvent("dragstop", t), Y.dropElement && Y.dropElement.drop(e);
2035
2035
  }
2036
- delete this.helper, delete this.mouseDownEvent, delete K.dragElement, delete K.dropElement, delete K.mouseHandled, e.preventDefault();
2036
+ delete this.helper, delete this.mouseDownEvent, delete Y.dragElement, delete Y.dropElement, delete Y.mouseHandled, e.preventDefault();
2037
2037
  }
2038
2038
  /** @internal call when keys are being pressed - use Esc to cancel, R to rotate */
2039
2039
  _keyEvent(e) {
2040
- const t = this.el.gridstackNode, n = t?.grid || K.dropElement?.el?.gridstack;
2040
+ const t = this.el.gridstackNode, n = t?.grid || Y.dropElement?.el?.gridstack;
2041
2041
  if (e.key === "Escape")
2042
2042
  t && t._origRotate && (t._orig = t._origRotate, delete t._origRotate), n?.cancelDrag(), this._mouseUp(this.mouseDownEvent);
2043
2043
  else if (t && n && (e.key === "r" || e.key === "R")) {
2044
- if (!y.canBeRotated(t))
2044
+ if (!b.canBeRotated(t))
2045
2045
  return;
2046
- t._origRotate = t._origRotate || { ...t._orig }, delete t._moving, n.setAnimation(!1).rotate(t.el, { top: -this.dragOffset.offsetTop, left: -this.dragOffset.offsetLeft }).setAnimation(), t._moving = !0, this.dragOffset = this._getDragOffset(this.lastDrag, t.el, this.helperContainment), this.helper.style.width = this.dragOffset.width + "px", this.helper.style.height = this.dragOffset.height + "px", y.swap(t._orig, "w", "h"), delete t._rect, this._mouseMove(this.lastDrag);
2046
+ t._origRotate = t._origRotate || { ...t._orig }, delete t._moving, n.setAnimation(!1).rotate(t.el, { top: -this.dragOffset.offsetTop, left: -this.dragOffset.offsetLeft }).setAnimation(), t._moving = !0, this.dragOffset = this._getDragOffset(this.lastDrag, t.el, this.helperContainment), this.helper.style.width = this.dragOffset.width + "px", this.helper.style.height = this.dragOffset.height + "px", b.swap(t._orig, "w", "h"), delete t._rect, this._mouseMove(this.lastDrag);
2047
2047
  }
2048
2048
  }
2049
2049
  /** @internal create a clone copy (or user defined method) of the original drag item if set */
2050
2050
  _createHelper() {
2051
2051
  let e = this.el;
2052
- return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = y.cloneNode(this.el)), e.parentElement || y.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = Nr.originStyleProp.map((t) => this.el.style[t]), e;
2052
+ return typeof this.option.helper == "function" ? e = this.option.helper(this.el) : this.option.helper === "clone" && (e = b.cloneNode(this.el)), e.parentElement || b.appendTo(e, this.option.appendTo === "parent" ? this.el.parentElement : this.option.appendTo), this.dragElementOriginStyle = Nr.originStyleProp.map((t) => this.el.style[t]), e;
2053
2053
  }
2054
2054
  /** @internal set the fix position of the dragged item */
2055
2055
  _setupHelperStyle(e) {
@@ -2130,19 +2130,19 @@ class bd extends wi {
2130
2130
  }
2131
2131
  /** @internal called when the cursor enters our area - prepare for a possible drop and track leaving */
2132
2132
  _mouseEnter(e) {
2133
- if (!K.dragElement || !this._canDrop(K.dragElement.el))
2133
+ if (!Y.dragElement || !this._canDrop(Y.dragElement.el))
2134
2134
  return;
2135
- e.preventDefault(), e.stopPropagation(), K.dropElement && K.dropElement !== this && K.dropElement._mouseLeave(e, !0), K.dropElement = this;
2136
- const t = y.initEvent(e, { target: this.el, type: "dropover" });
2137
- this.option.over && this.option.over(t, this._ui(K.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
2135
+ e.preventDefault(), e.stopPropagation(), Y.dropElement && Y.dropElement !== this && Y.dropElement._mouseLeave(e, !0), Y.dropElement = this;
2136
+ const t = b.initEvent(e, { target: this.el, type: "dropover" });
2137
+ this.option.over && this.option.over(t, this._ui(Y.dragElement)), this.triggerEvent("dropover", t), this.el.classList.add("ui-droppable-over");
2138
2138
  }
2139
2139
  /** @internal called when the item is leaving our area, stop tracking if we had moving item */
2140
2140
  _mouseLeave(e, t = !1) {
2141
- if (!K.dragElement || K.dropElement !== this)
2141
+ if (!Y.dragElement || Y.dropElement !== this)
2142
2142
  return;
2143
2143
  e.preventDefault(), e.stopPropagation();
2144
- const n = y.initEvent(e, { target: this.el, type: "dropout" });
2145
- if (this.option.out && this.option.out(n, this._ui(K.dragElement)), this.triggerEvent("dropout", n), K.dropElement === this && (delete K.dropElement, !t)) {
2144
+ const n = b.initEvent(e, { target: this.el, type: "dropout" });
2145
+ if (this.option.out && this.option.out(n, this._ui(Y.dragElement)), this.triggerEvent("dropout", n), Y.dropElement === this && (delete Y.dropElement, !t)) {
2146
2146
  let i, s = this.el.parentElement;
2147
2147
  for (; !i && s; )
2148
2148
  i = s.ddElement?.ddDroppable, s = s.parentElement;
@@ -2152,8 +2152,8 @@ class bd extends wi {
2152
2152
  /** item is being dropped on us - called by the drag mouseup handler - this calls the client drop event */
2153
2153
  drop(e) {
2154
2154
  e.preventDefault();
2155
- const t = y.initEvent(e, { target: this.el, type: "drop" });
2156
- this.option.drop && this.option.drop(t, this._ui(K.dragElement)), this.triggerEvent("drop", t);
2155
+ const t = b.initEvent(e, { target: this.el, type: "drop" });
2156
+ this.option.drop && this.option.drop(t, this._ui(Y.dragElement)), this.triggerEvent("drop", t);
2157
2157
  }
2158
2158
  /** @internal true if element matches the string/method accept option */
2159
2159
  _canDrop(e) {
@@ -2296,7 +2296,7 @@ class xd {
2296
2296
  }
2297
2297
  on(e, t, n) {
2298
2298
  return this._getDDElements(e).forEach((i) => i.on(t, (s) => {
2299
- n(s, K.dragElement ? K.dragElement.el : s.target, K.dragElement ? K.dragElement.helper : null);
2299
+ n(s, Y.dragElement ? Y.dragElement.el : s.target, Y.dragElement ? Y.dragElement.helper : null);
2300
2300
  })), this;
2301
2301
  }
2302
2302
  off(e, t) {
@@ -2304,7 +2304,7 @@ class xd {
2304
2304
  }
2305
2305
  /** @internal returns a list of DD elements, creating them on the fly by default unless option is to destroy or disable */
2306
2306
  _getDDElements(e, t) {
2307
- const n = e.gridstack || t !== "destroy" && t !== "disable", i = y.getElements(e);
2307
+ const n = e.gridstack || t !== "destroy" && t !== "disable", i = b.getElements(e);
2308
2308
  return i.length ? i.map((a) => a.ddElement || (n ? _i.init(a) : null)).filter((a) => a) : [];
2309
2309
  }
2310
2310
  }
@@ -2327,7 +2327,7 @@ class Z {
2327
2327
  if (typeof document > "u")
2328
2328
  return null;
2329
2329
  const n = Z.getGridElement(t);
2330
- return n ? (n.gridstack || (n.gridstack = new Z(n, y.cloneDeep(e))), n.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
2330
+ return n ? (n.gridstack || (n.gridstack = new Z(n, b.cloneDeep(e))), n.gridstack) : (console.error(typeof t == "string" ? 'GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
2331
2331
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.` : "GridStack.init() no grid element was passed."), null);
2332
2332
  }
2333
2333
  /**
@@ -2342,7 +2342,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2342
2342
  static initAll(e = {}, t = ".grid-stack") {
2343
2343
  const n = [];
2344
2344
  return typeof document > "u" || (Z.getGridElements(t).forEach((i) => {
2345
- i.gridstack || (i.gridstack = new Z(i, y.cloneDeep(e))), n.push(i.gridstack);
2345
+ i.gridstack || (i.gridstack = new Z(i, b.cloneDeep(e))), n.push(i.gridstack);
2346
2346
  }), n.length === 0 && console.error('GridStack.initAll() no grid was found with selector "' + t + `" - element missing or wrong selector ?
2347
2347
  Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the default selector.`)), n;
2348
2348
  }
@@ -2361,7 +2361,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2361
2361
  const a = n.gridstack;
2362
2362
  return t && (a.opts = { ...a.opts, ...t }), t.children !== void 0 && a.load(t.children), a;
2363
2363
  }
2364
- return (!e.classList.contains("grid-stack") || Z.addRemoveCB) && (Z.addRemoveCB ? n = Z.addRemoveCB(e, t, !0, !0) : n = y.createDiv(["grid-stack", t.class], e)), Z.init(t, n);
2364
+ return (!e.classList.contains("grid-stack") || Z.addRemoveCB) && (Z.addRemoveCB ? n = Z.addRemoveCB(e, t, !0, !0) : n = b.createDiv(["grid-stack", t.class], e)), Z.init(t, n);
2365
2365
  }
2366
2366
  /** call this method to register your engine instead of the default one.
2367
2367
  * See instead `GridStackOptions.engineClass` if you only need to
@@ -2376,8 +2376,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2376
2376
  */
2377
2377
  get placeholder() {
2378
2378
  if (!this._placeholder) {
2379
- this._placeholder = y.createDiv([this.opts.placeholderClass, Ke.itemClass, this.opts.itemClass]);
2380
- const e = y.createDiv(["placeholder-content"], this._placeholder);
2379
+ this._placeholder = b.createDiv([this.opts.placeholderClass, Ye.itemClass, this.opts.itemClass]);
2380
+ const e = b.createDiv(["placeholder-content"], this._placeholder);
2381
2381
  this.opts.placeholderText && (e.textContent = this.opts.placeholderText);
2382
2382
  }
2383
2383
  return this._placeholder;
@@ -2389,7 +2389,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2389
2389
  */
2390
2390
  constructor(e, t = {}) {
2391
2391
  this.el = e, this.opts = t, this.animationDelay = 310, this._gsEventHandler = {}, this._extraDragRow = 0, this.dragTransform = { xScale: 1, yScale: 1, xOffset: 0, yOffset: 0 }, e.gridstack = this, this.opts = t = t || {}, e.classList.contains("grid-stack") || this.el.classList.add("grid-stack"), t.row && (t.minRow = t.maxRow = t.row, delete t.row);
2392
- const n = y.toNumber(e.getAttribute("gs-row"));
2392
+ const n = b.toNumber(e.getAttribute("gs-row"));
2393
2393
  t.column === "auto" && delete t.column, t.alwaysShowResizeHandle !== void 0 && (t._alwaysShowResizeHandle = t.alwaysShowResizeHandle);
2394
2394
  const i = t.columnOpts;
2395
2395
  if (i) {
@@ -2397,26 +2397,26 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2397
2397
  !i.columnWidth && !c?.length ? delete t.columnOpts : (i.columnMax = i.columnMax || 12, c?.length > 1 && c.sort((d, u) => (u.w || 0) - (d.w || 0)));
2398
2398
  }
2399
2399
  const s = {
2400
- ...y.cloneDeep(Ke),
2401
- column: y.toNumber(e.getAttribute("gs-column")) || Ke.column,
2402
- minRow: n || y.toNumber(e.getAttribute("gs-min-row")) || Ke.minRow,
2403
- maxRow: n || y.toNumber(e.getAttribute("gs-max-row")) || Ke.maxRow,
2404
- staticGrid: y.toBool(e.getAttribute("gs-static")) || Ke.staticGrid,
2405
- sizeToContent: y.toBool(e.getAttribute("gs-size-to-content")) || void 0,
2400
+ ...b.cloneDeep(Ye),
2401
+ column: b.toNumber(e.getAttribute("gs-column")) || Ye.column,
2402
+ minRow: n || b.toNumber(e.getAttribute("gs-min-row")) || Ye.minRow,
2403
+ maxRow: n || b.toNumber(e.getAttribute("gs-max-row")) || Ye.maxRow,
2404
+ staticGrid: b.toBool(e.getAttribute("gs-static")) || Ye.staticGrid,
2405
+ sizeToContent: b.toBool(e.getAttribute("gs-size-to-content")) || void 0,
2406
2406
  draggable: {
2407
- handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || Ke.draggable.handle
2407
+ handle: (t.handleClass ? "." + t.handleClass : t.handle ? t.handle : "") || Ye.draggable.handle
2408
2408
  },
2409
2409
  removableOptions: {
2410
- accept: t.itemClass || Ke.removableOptions.accept,
2411
- decline: Ke.removableOptions.decline
2410
+ accept: t.itemClass || Ye.removableOptions.accept,
2411
+ decline: Ye.removableOptions.decline
2412
2412
  }
2413
2413
  };
2414
- e.getAttribute("gs-animate") && (s.animate = y.toBool(e.getAttribute("gs-animate"))), t = y.defaults(t, s), this._initMargin(), this.checkDynamicColumn(), this._updateColumnVar(t), t.rtl === "auto" && (t.rtl = e.style.direction === "rtl"), t.rtl && this.el.classList.add("grid-stack-rtl");
2415
- const o = this.el.closest("." + Ke.itemClass)?.gridstackNode;
2414
+ e.getAttribute("gs-animate") && (s.animate = b.toBool(e.getAttribute("gs-animate"))), t = b.defaults(t, s), this._initMargin(), this.checkDynamicColumn(), this._updateColumnVar(t), t.rtl === "auto" && (t.rtl = e.style.direction === "rtl"), t.rtl && this.el.classList.add("grid-stack-rtl");
2415
+ const o = this.el.closest("." + Ye.itemClass)?.gridstackNode;
2416
2416
  if (o && (o.subGrid = this, this.parentGridNode = o, this.el.classList.add("grid-stack-nested"), o.el.classList.add("grid-stack-sub-grid")), this._isAutoCellHeight = t.cellHeight === "auto", this._isAutoCellHeight || t.cellHeight === "initial")
2417
2417
  this.cellHeight(void 0);
2418
2418
  else {
2419
- typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== Ke.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit);
2419
+ typeof t.cellHeight == "number" && t.cellHeightUnit && t.cellHeightUnit !== Ye.cellHeightUnit && (t.cellHeight = t.cellHeight + t.cellHeightUnit, delete t.cellHeightUnit);
2420
2420
  const c = t.cellHeight;
2421
2421
  delete t.cellHeight, this.cellHeight(c);
2422
2422
  }
@@ -2436,7 +2436,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2436
2436
  const c = t.children;
2437
2437
  delete t.children, c.length && this.load(c);
2438
2438
  }
2439
- this.setAnimation(), t.subGridDynamic && !K.pauseDrag && (K.pauseDrag = !0), t.draggable?.pause !== void 0 && (K.pauseDrag = t.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
2439
+ this.setAnimation(), t.subGridDynamic && !Y.pauseDrag && (Y.pauseDrag = !0), t.draggable?.pause !== void 0 && (Y.pauseDrag = t.draggable.pause), this._setupRemoveDrop(), this._setupAcceptWidget(), this._updateResizeEvent();
2440
2440
  }
2441
2441
  _updateColumnVar(e = this.opts) {
2442
2442
  this.el.classList.add("gs-" + e.column), typeof e.column == "number" && this.el.style.setProperty("--gs-column-width", `${100 / e.column}%`);
@@ -2469,7 +2469,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2469
2469
  if (n = t.gridstackNode, n && t.parentElement === this.el && this.engine.nodes.find((s) => s._id === n._id))
2470
2470
  return t;
2471
2471
  const i = this._readAttr(t);
2472
- return y.defaults(e, i), this.engine.prepareNode(e), this.el.appendChild(t), this.makeWidget(t, e), t;
2472
+ return b.defaults(e, i), this.engine.prepareNode(e), this.el.appendChild(t), this.makeWidget(t, e), t;
2473
2473
  }
2474
2474
  /**
2475
2475
  * Create the default grid item divs and content (possibly lazy loaded) by using GridStack.renderCB().
@@ -2481,8 +2481,8 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2481
2481
  * const element = grid.createWidgetDivs({ w: 2, h: 1, content: 'Hello World' });
2482
2482
  */
2483
2483
  createWidgetDivs(e) {
2484
- const t = y.createDiv(["grid-stack-item", this.opts.itemClass]), n = y.createDiv(["grid-stack-item-content"], t);
2485
- return y.lazyLoad(e) ? e.visibleObservable || (e.visibleObservable = new IntersectionObserver(([i]) => {
2484
+ const t = b.createDiv(["grid-stack-item", this.opts.itemClass]), n = b.createDiv(["grid-stack-item-content"], t);
2485
+ return b.lazyLoad(e) ? e.visibleObservable || (e.visibleObservable = new IntersectionObserver(([i]) => {
2486
2486
  i.isIntersecting && (e.visibleObservable?.disconnect(), delete e.visibleObservable, Z.renderCB(n, e), e.grid?.prepareDragDrop(e.el));
2487
2487
  }), window.setTimeout(() => e.visibleObservable?.observe(t))) : Z.renderCB(n, e), t;
2488
2488
  }
@@ -2502,7 +2502,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2502
2502
  let a, o = this;
2503
2503
  for (; o && !a; )
2504
2504
  a = o.opts?.subGridOpts, o = o.parentGridNode?.grid;
2505
- t = y.cloneDeep({
2505
+ t = b.cloneDeep({
2506
2506
  // by default sub-grid inherit from us | parent, other than id, children, etc...
2507
2507
  ...this.opts,
2508
2508
  id: void 0,
@@ -2517,12 +2517,12 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2517
2517
  let l;
2518
2518
  t.column === "auto" && (l = !0, t.column = Math.max(s.w || 1, n?.w || 1), delete t.columnOpts);
2519
2519
  let c = s.el.querySelector(".grid-stack-item-content"), d, u;
2520
- if (i && (this._removeDD(s.el), u = { ...s, x: 0, y: 0 }, y.removeInternalForSave(u), delete u.subGridOpts, s.content && (u.content = s.content, delete s.content), Z.addRemoveCB ? d = Z.addRemoveCB(this.el, u, !0, !1) : (d = y.createDiv(["grid-stack-item"]), d.appendChild(c), c = y.createDiv(["grid-stack-item-content"], s.el)), this.prepareDragDrop(s.el)), n) {
2521
- const p = l ? t.column : s.w, g = s.h + n.h, b = s.el.style;
2522
- b.transition = "none", this.update(s.el, { w: p, h: g }), setTimeout(() => b.transition = null);
2520
+ if (i && (this._removeDD(s.el), u = { ...s, x: 0, y: 0 }, b.removeInternalForSave(u), delete u.subGridOpts, s.content && (u.content = s.content, delete s.content), Z.addRemoveCB ? d = Z.addRemoveCB(this.el, u, !0, !1) : (d = b.createDiv(["grid-stack-item"]), d.appendChild(c), c = b.createDiv(["grid-stack-item-content"], s.el)), this.prepareDragDrop(s.el)), n) {
2521
+ const p = l ? t.column : s.w, g = s.h + n.h, x = s.el.style;
2522
+ x.transition = "none", this.update(s.el, { w: p, h: g }), setTimeout(() => x.transition = null);
2523
2523
  }
2524
2524
  const h = s.subGrid = Z.addGrid(c, t);
2525
- return n?._moving && (h._isTemp = !0), l && (h._autoColumn = !0), i && h.makeWidget(d, u), n && (n._moving ? window.setTimeout(() => y.simulateMouseEvent(n._event, "mouseenter", h.el), 0) : h.makeWidget(s.el, s)), this.resizeToContentCheck(!1, s), h;
2525
+ return n?._moving && (h._isTemp = !0), l && (h._autoColumn = !0), i && h.makeWidget(d, u), n && (n._moving ? window.setTimeout(() => b.simulateMouseEvent(n._event, "mouseenter", h.el), 0) : h.makeWidget(s.el, s)), this.resizeToContentCheck(!1, s), h;
2526
2526
  }
2527
2527
  /**
2528
2528
  * called when an item was converted into a nested grid to accommodate a dragged over item, but then item leaves - return back
@@ -2532,7 +2532,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2532
2532
  const t = this.parentGridNode?.grid;
2533
2533
  t && (t.batchUpdate(), t.removeWidget(this.parentGridNode.el, !0, !0), this.engine.nodes.forEach((n) => {
2534
2534
  n.x += this.parentGridNode.x, n.y += this.parentGridNode.y, t.makeWidget(n.el, n);
2535
- }), t.batchUpdate(!1), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, e && window.setTimeout(() => y.simulateMouseEvent(e._event, "mouseenter", t.el), 0));
2535
+ }), t.batchUpdate(!1), this.parentGridNode && delete this.parentGridNode.subGrid, delete this.parentGridNode, e && window.setTimeout(() => b.simulateMouseEvent(e._event, "mouseenter", t.el), 0));
2536
2536
  }
2537
2537
  /**
2538
2538
  * saves the current layout returning a list of widgets for serialization which might include any nested grids.
@@ -2559,10 +2559,10 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2559
2559
  }
2560
2560
  delete a.el;
2561
2561
  }), t) {
2562
- const a = y.cloneDeep(this.opts);
2562
+ const a = b.cloneDeep(this.opts);
2563
2563
  a.marginBottom === a.marginTop && a.marginRight === a.marginLeft && a.marginTop === a.marginRight && (a.margin = a.marginTop, delete a.marginTop, delete a.marginRight, delete a.marginBottom, delete a.marginLeft), a.rtl === (this.el.style.direction === "rtl") && (a.rtl = "auto"), this._isAutoCellHeight && (a.cellHeight = "auto"), this._autoColumn && (a.column = "auto");
2564
2564
  const o = a._alwaysShowResizeHandle;
2565
- return delete a._alwaysShowResizeHandle, o !== void 0 ? a.alwaysShowResizeHandle = o : delete a.alwaysShowResizeHandle, y.removeInternalAndSame(a, Ke), a.children = s, a;
2565
+ return delete a._alwaysShowResizeHandle, o !== void 0 ? a.alwaysShowResizeHandle = o : delete a.alwaysShowResizeHandle, b.removeInternalAndSame(a, Ye), a.children = s, a;
2566
2566
  }
2567
2567
  return s;
2568
2568
  }
@@ -2602,11 +2602,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2602
2602
  * @see {@link http://gridstackjs.com/demo/serialization.html} for complete example
2603
2603
  */
2604
2604
  load(e, t = Z.addRemoveCB || !0) {
2605
- e = y.cloneDeep(e);
2605
+ e = b.cloneDeep(e);
2606
2606
  const n = this.getColumn();
2607
2607
  e.forEach((d) => {
2608
2608
  d.w = d.w || d.minW || 1, d.h = d.h || d.minH || 1;
2609
- }), e = y.sort(e), this.engine.skipCacheUpdate = this._ignoreLayoutsNodeChange = !0;
2609
+ }), e = b.sort(e), this.engine.skipCacheUpdate = this._ignoreLayoutsNodeChange = !0;
2610
2610
  let i = 0;
2611
2611
  e.forEach((d) => {
2612
2612
  i = Math.max(i, (d.x || 0) + d.w);
@@ -2619,13 +2619,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2619
2619
  l && this.setAnimation(!1), !o && t && [...this.engine.nodes].forEach((u) => {
2620
2620
  if (!u.id)
2621
2621
  return;
2622
- y.find(e, u.id) || (Z.addRemoveCB && Z.addRemoveCB(this.el, u, !1, !1), a.push(u), this.removeWidget(u.el, !0, !1));
2622
+ b.find(e, u.id) || (Z.addRemoveCB && Z.addRemoveCB(this.el, u, !1, !1), a.push(u), this.removeWidget(u.el, !0, !1));
2623
2623
  }), this.engine._loading = !0;
2624
2624
  const c = [];
2625
- return this.engine.nodes = this.engine.nodes.filter((d) => y.find(e, d.id) ? (c.push(d), !1) : !0), e.forEach((d) => {
2626
- const u = y.find(c, d.id);
2625
+ return this.engine.nodes = this.engine.nodes.filter((d) => b.find(e, d.id) ? (c.push(d), !1) : !0), e.forEach((d) => {
2626
+ const u = b.find(c, d.id);
2627
2627
  if (u) {
2628
- if (y.shouldSizeToContent(u) && (d.h = u.h), this.engine.nodeBoundFix(d), (d.autoPosition || d.x === void 0 || d.y === void 0) && (d.w = d.w || u.w, d.h = d.h || u.h, this.engine.findEmptyPosition(d)), this.engine.nodes.push(u), y.samePos(u, d) && this.engine.nodes.length > 1 && (this.moveNode(u, { ...d, forceCollide: !0 }), y.copyPos(d, u)), this.update(u.el, d), d.subGridOpts?.children) {
2628
+ if (b.shouldSizeToContent(u) && (d.h = u.h), this.engine.nodeBoundFix(d), (d.autoPosition || d.x === void 0 || d.y === void 0) && (d.w = d.w || u.w, d.h = d.h || u.h, this.engine.findEmptyPosition(d)), this.engine.nodes.push(u), b.samePos(u, d) && this.engine.nodes.length > 1 && (this.moveNode(u, { ...d, forceCollide: !0 }), b.copyPos(d, u)), this.update(u.el, d), d.subGridOpts?.children) {
2629
2629
  const h = u.el.querySelector(".grid-stack");
2630
2630
  h && h.gridstack && h.gridstack.load(d.subGridOpts.children);
2631
2631
  }
@@ -2665,7 +2665,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2665
2665
  return this.opts.cellHeight * (96 / 2.54) / 10;
2666
2666
  const t = this.el.querySelector("." + this.opts.itemClass);
2667
2667
  if (t) {
2668
- const i = y.toNumber(t.getAttribute("gs-h")) || 1;
2668
+ const i = b.toNumber(t.getAttribute("gs-h")) || 1;
2669
2669
  return Math.round(t.offsetHeight / i);
2670
2670
  }
2671
2671
  const n = parseInt(this.el.getAttribute("gs-current-row"));
@@ -2693,7 +2693,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
2693
2693
  const n = -this.opts.marginRight - this.opts.marginLeft + this.opts.marginTop + this.opts.marginBottom;
2694
2694
  e = this.cellWidth() + n;
2695
2695
  }
2696
- const t = y.parseHeight(e);
2696
+ const t = b.parseHeight(e);
2697
2697
  return this.opts.cellHeightUnit === t.unit && this.opts.cellHeight === t.h ? this : (this.opts.cellHeightUnit = t.unit, this.opts.cellHeight = t.h, this.el.style.setProperty("--gs-cell-height", `${this.opts.cellHeight}${this.opts.cellHeightUnit}`), this._updateContainerHeight(), this.resizeToContentCheck(), this);
2698
2698
  }
2699
2699
  /** Gets current cell width. */
@@ -3065,7 +3065,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3065
3065
  const i = n?.gridstackNode;
3066
3066
  if (!i)
3067
3067
  return;
3068
- const s = { ...y.copyPos({}, i), ...y.cloneDeep(t) };
3068
+ const s = { ...b.copyPos({}, i), ...b.cloneDeep(t) };
3069
3069
  this.engine.nodeBoundFix(s), delete s.autoPosition;
3070
3070
  const a = ["x", "y", "w", "h"];
3071
3071
  let o;
@@ -3078,7 +3078,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3078
3078
  let l = !1, c = !1;
3079
3079
  for (const d in s)
3080
3080
  d[0] !== "_" && i[d] !== s[d] && (i[d] = s[d], l = !0, c = c || !this.opts.staticGrid && (d === "noResize" || d === "noMove" || d === "locked"));
3081
- if (y.sanitizeMinMax(i), o) {
3081
+ if (b.sanitizeMinMax(i), o) {
3082
3082
  const d = o.w !== void 0 && o.w !== i.w;
3083
3083
  this.moveNode(i, o), d && i.subGrid ? i.subGrid.onResize(this.hasAnimationCSS() ? i.w : void 0) : this.resizeToContentCheck(d, i), delete i._orig;
3084
3084
  }
@@ -3169,7 +3169,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3169
3169
  rotate(e, t) {
3170
3170
  return Z.getElements(e).forEach((n) => {
3171
3171
  const i = n.gridstackNode;
3172
- if (!y.canBeRotated(i))
3172
+ if (!b.canBeRotated(i))
3173
3173
  return;
3174
3174
  const s = { w: i.h, h: i.w, minH: i.minW, minW: i.minH, maxH: i.maxW, maxW: i.maxH };
3175
3175
  if (t) {
@@ -3200,7 +3200,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3200
3200
  */
3201
3201
  margin(e) {
3202
3202
  if (!(typeof e == "string" && e.split(" ").length > 1)) {
3203
- const n = y.parseHeight(e);
3203
+ const n = b.parseHeight(e);
3204
3204
  if (this.opts.marginUnit === n.unit && this.opts.margin === n.h)
3205
3205
  return;
3206
3206
  }
@@ -3292,19 +3292,19 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3292
3292
  if (!n)
3293
3293
  return this;
3294
3294
  if (!e && !this.opts.minRow) {
3295
- const s = y.parseHeight(getComputedStyle(this.el).minHeight);
3295
+ const s = b.parseHeight(getComputedStyle(this.el).minHeight);
3296
3296
  if (s.h > 0 && s.unit === i) {
3297
3297
  const a = Math.floor(s.h / n);
3298
3298
  t < a && (t = a);
3299
3299
  }
3300
3300
  }
3301
- return this.el.setAttribute("gs-current-row", String(t)), this.el.style.removeProperty("min-height"), this.el.style.removeProperty("height"), t && (this.el.style[e ? "minHeight" : "height"] = t * n + i), e && y.shouldSizeToContent(e) && e.grid.resizeToContentCBCheck(e.el), this;
3301
+ return this.el.setAttribute("gs-current-row", String(t)), this.el.style.removeProperty("min-height"), this.el.style.removeProperty("height"), t && (this.el.style[e ? "minHeight" : "height"] = t * n + i), e && b.shouldSizeToContent(e) && e.grid.resizeToContentCBCheck(e.el), this;
3302
3302
  }
3303
3303
  /** @internal */
3304
3304
  _prepareElement(e, t = !1, n) {
3305
- n = n || this._readAttr(e), e.gridstackNode = n, n.el = e, n.grid = this, n = this.engine.addNode(n, t), this._writeAttr(e, n), e.classList.add(Ke.itemClass, this.opts.itemClass);
3306
- const i = y.shouldSizeToContent(n);
3307
- return i ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), i && this.resizeToContentCheck(!1, n), y.lazyLoad(n) || this.prepareDragDrop(n.el), this;
3305
+ n = n || this._readAttr(e), e.gridstackNode = n, n.el = e, n.grid = this, n = this.engine.addNode(n, t), this._writeAttr(e, n), e.classList.add(Ye.itemClass, this.opts.itemClass);
3306
+ const i = b.shouldSizeToContent(n);
3307
+ return i ? e.classList.add("size-to-content") : e.classList.remove("size-to-content"), i && this.resizeToContentCheck(!1, n), b.lazyLoad(n) || this.prepareDragDrop(n.el), this;
3308
3308
  }
3309
3309
  /** @internal write position CSS vars and x,y,w,h attributes (not used for CSS but by users) back to element */
3310
3310
  _writePosAttr(e, t) {
@@ -3330,9 +3330,9 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3330
3330
  /** @internal call to read any default attributes from element */
3331
3331
  _readAttr(e, t = !0) {
3332
3332
  const n = {};
3333
- n.x = y.toNumber(e.getAttribute("gs-x")), n.y = y.toNumber(e.getAttribute("gs-y")), n.w = y.toNumber(e.getAttribute("gs-w")), n.h = y.toNumber(e.getAttribute("gs-h")), n.autoPosition = y.toBool(e.getAttribute("gs-auto-position")), n.noResize = y.toBool(e.getAttribute("gs-no-resize")), n.noMove = y.toBool(e.getAttribute("gs-no-move")), n.locked = y.toBool(e.getAttribute("gs-locked"));
3333
+ n.x = b.toNumber(e.getAttribute("gs-x")), n.y = b.toNumber(e.getAttribute("gs-y")), n.w = b.toNumber(e.getAttribute("gs-w")), n.h = b.toNumber(e.getAttribute("gs-h")), n.autoPosition = b.toBool(e.getAttribute("gs-auto-position")), n.noResize = b.toBool(e.getAttribute("gs-no-resize")), n.noMove = b.toBool(e.getAttribute("gs-no-move")), n.locked = b.toBool(e.getAttribute("gs-locked"));
3334
3334
  const i = e.getAttribute("gs-size-to-content");
3335
- i && (i === "true" || i === "false" ? n.sizeToContent = y.toBool(i) : n.sizeToContent = parseInt(i, 10)), n.id = e.getAttribute("gs-id"), n.maxW = y.toNumber(e.getAttribute("gs-max-w")), n.minW = y.toNumber(e.getAttribute("gs-min-w")), n.maxH = y.toNumber(e.getAttribute("gs-max-h")), n.minH = y.toNumber(e.getAttribute("gs-min-h")), t && (n.w === 1 && e.removeAttribute("gs-w"), n.h === 1 && e.removeAttribute("gs-h"), n.maxW && e.removeAttribute("gs-max-w"), n.minW && e.removeAttribute("gs-min-w"), n.maxH && e.removeAttribute("gs-max-h"), n.minH && e.removeAttribute("gs-min-h"));
3335
+ i && (i === "true" || i === "false" ? n.sizeToContent = b.toBool(i) : n.sizeToContent = parseInt(i, 10)), n.id = e.getAttribute("gs-id"), n.maxW = b.toNumber(e.getAttribute("gs-max-w")), n.minW = b.toNumber(e.getAttribute("gs-min-w")), n.maxH = b.toNumber(e.getAttribute("gs-max-h")), n.minH = b.toNumber(e.getAttribute("gs-min-h")), t && (n.w === 1 && e.removeAttribute("gs-w"), n.h === 1 && e.removeAttribute("gs-h"), n.maxW && e.removeAttribute("gs-max-w"), n.minW && e.removeAttribute("gs-min-w"), n.maxH && e.removeAttribute("gs-max-h"), n.minH && e.removeAttribute("gs-min-h"));
3336
3336
  for (const s in n) {
3337
3337
  if (!n.hasOwnProperty(s))
3338
3338
  return;
@@ -3365,11 +3365,11 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3365
3365
  if (e && this.hasAnimationCSS())
3366
3366
  return setTimeout(() => this.resizeToContentCheck(!1, t), this.animationDelay);
3367
3367
  if (t)
3368
- y.shouldSizeToContent(t) && this.resizeToContentCBCheck(t.el);
3369
- else if (this.engine.nodes.some((n) => y.shouldSizeToContent(n))) {
3368
+ b.shouldSizeToContent(t) && this.resizeToContentCBCheck(t.el);
3369
+ else if (this.engine.nodes.some((n) => b.shouldSizeToContent(n))) {
3370
3370
  const n = [...this.engine.nodes];
3371
3371
  this.batchUpdate(), n.forEach((i) => {
3372
- y.shouldSizeToContent(i) && this.resizeToContentCBCheck(i.el);
3372
+ b.shouldSizeToContent(i) && this.resizeToContentCBCheck(i.el);
3373
3373
  }), this._ignoreLayoutsNodeChange = !0, this.batchUpdate(!1), this._ignoreLayoutsNodeChange = !1;
3374
3374
  }
3375
3375
  this._gsEventHandler.resizecontent && this._gsEventHandler.resizecontent(null, t ? [t] : this.engine.nodes);
@@ -3378,15 +3378,15 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3378
3378
  /** add or remove the grid element size event handler */
3379
3379
  _updateResizeEvent(e = !1) {
3380
3380
  const t = !this.parentGridNode && (this._isAutoCellHeight || this.opts.sizeToContent || this.opts.columnOpts || this.engine.nodes.find((n) => n.sizeToContent));
3381
- return !e && t && !this.resizeObserver ? (this._sizeThrottle = y.throttle(() => this.onResize(), this.opts.cellHeightThrottle), this.resizeObserver = new ResizeObserver(() => this._sizeThrottle()), this.resizeObserver.observe(this.el), this._skipInitialResize = !0) : (e || !t) && this.resizeObserver && (this.resizeObserver.disconnect(), delete this.resizeObserver, delete this._sizeThrottle), this;
3381
+ return !e && t && !this.resizeObserver ? (this._sizeThrottle = b.throttle(() => this.onResize(), this.opts.cellHeightThrottle), this.resizeObserver = new ResizeObserver(() => this._sizeThrottle()), this.resizeObserver.observe(this.el), this._skipInitialResize = !0) : (e || !t) && this.resizeObserver && (this.resizeObserver.disconnect(), delete this.resizeObserver, delete this._sizeThrottle), this;
3382
3382
  }
3383
3383
  /** @internal convert a potential selector into actual element */
3384
3384
  static getElement(e = ".grid-stack-item") {
3385
- return y.getElement(e);
3385
+ return b.getElement(e);
3386
3386
  }
3387
3387
  /** @internal */
3388
3388
  static getElements(e = ".grid-stack-item") {
3389
- return y.getElements(e);
3389
+ return b.getElements(e);
3390
3390
  }
3391
3391
  /** @internal */
3392
3392
  static getGridElement(e) {
@@ -3394,13 +3394,13 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3394
3394
  }
3395
3395
  /** @internal */
3396
3396
  static getGridElements(e) {
3397
- return y.getElements(e);
3397
+ return b.getElements(e);
3398
3398
  }
3399
3399
  /** @internal initialize margin top/bottom/left/right and units */
3400
3400
  _initMargin() {
3401
3401
  let e, t = 0, n = [];
3402
- typeof this.opts.margin == "string" && (n = this.opts.margin.split(" ")), n.length === 2 ? (this.opts.marginTop = this.opts.marginBottom = n[0], this.opts.marginLeft = this.opts.marginRight = n[1]) : n.length === 4 ? (this.opts.marginTop = n[0], this.opts.marginRight = n[1], this.opts.marginBottom = n[2], this.opts.marginLeft = n[3]) : (e = y.parseHeight(this.opts.margin), this.opts.marginUnit = e.unit, t = this.opts.margin = e.h), ["marginTop", "marginRight", "marginBottom", "marginLeft"].forEach((a) => {
3403
- this.opts[a] === void 0 ? this.opts[a] = t : (e = y.parseHeight(this.opts[a]), this.opts[a] = e.h, delete this.opts.margin);
3402
+ typeof this.opts.margin == "string" && (n = this.opts.margin.split(" ")), n.length === 2 ? (this.opts.marginTop = this.opts.marginBottom = n[0], this.opts.marginLeft = this.opts.marginRight = n[1]) : n.length === 4 ? (this.opts.marginTop = n[0], this.opts.marginRight = n[1], this.opts.marginBottom = n[2], this.opts.marginLeft = n[3]) : (e = b.parseHeight(this.opts.margin), this.opts.marginUnit = e.unit, t = this.opts.margin = e.h), ["marginTop", "marginRight", "marginBottom", "marginLeft"].forEach((a) => {
3403
+ this.opts[a] === void 0 ? this.opts[a] = t : (e = b.parseHeight(this.opts[a]), this.opts[a] = e.h, delete this.opts.margin);
3404
3404
  }), this.opts.marginUnit = e.unit, this.opts.marginTop === this.opts.marginBottom && this.opts.marginLeft === this.opts.marginRight && this.opts.marginTop === this.opts.marginRight && (this.opts.margin = this.opts.marginTop);
3405
3405
  const s = this.el.style;
3406
3406
  return s.setProperty("--gs-item-margin-top", `${this.opts.marginTop}${this.opts.marginUnit}`), s.setProperty("--gs-item-margin-bottom", `${this.opts.marginBottom}${this.opts.marginUnit}`), s.setProperty("--gs-item-margin-right", `${this.opts.marginRight}${this.opts.marginUnit}`), s.setProperty("--gs-item-margin-left", `${this.opts.marginLeft}${this.opts.marginUnit}`), this;
@@ -3433,7 +3433,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3433
3433
  * @param root optional root which defaults to document (for shadow dom pass the parent HTMLDocument)
3434
3434
  */
3435
3435
  static setupDragIn(e, t, n, i = document) {
3436
- t?.pause !== void 0 && (K.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? y.getElements(e, i) : e).forEach((a, o) => {
3436
+ t?.pause !== void 0 && (Y.pauseDrag = t.pause), t = { appendTo: "body", helper: "clone", ...t || {} }, (typeof e == "string" ? b.getElements(e, i) : e).forEach((a, o) => {
3437
3437
  Fe.isDraggable(a) || Fe.dragIn(a, t), n?.[o] && (a.gridstackNode = n[o]);
3438
3438
  });
3439
3439
  }
@@ -3617,7 +3617,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3617
3617
  Fe.off(s, "drag");
3618
3618
  return;
3619
3619
  }
3620
- o._willFitPos && (y.copyPos(o, o._willFitPos), delete o._willFitPos);
3620
+ o._willFitPos && (b.copyPos(o, o._willFitPos), delete o._willFitPos);
3621
3621
  }
3622
3622
  this._onStartMoving(a, i, u, o, t, e);
3623
3623
  } else
@@ -3680,7 +3680,7 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3680
3680
  if (!o || (l && (this.engine.cleanupNode(o), o.grid = this), delete o.grid?._isTemp, Fe.off(s, "drag"), a !== s ? (a.remove(), s = a) : s.remove(), this._removeDD(s), !l))
3681
3681
  return !1;
3682
3682
  const u = o.subGrid?.el?.gridstack;
3683
- return y.copyPos(o, this._readAttr(this.placeholder)), y.removePositioningStyles(s), c && (o.content || o.subGridOpts || Z.addRemoveCB) ? (delete o.el, s = this.addWidget(o)) : (this._prepareElement(s, !0, o), this.el.appendChild(s), this.resizeToContentCheck(!1, o), u && (u.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...i, type: "dropped" }, d && d.grid ? d : void 0, o), !1;
3683
+ return b.copyPos(o, this._readAttr(this.placeholder)), b.removePositioningStyles(s), c && (o.content || o.subGridOpts || Z.addRemoveCB) ? (delete o.el, s = this.addWidget(o)) : (this._prepareElement(s, !0, o), this.el.appendChild(s), this.resizeToContentCheck(!1, o), u && (u.parentGridNode = o), this._updateContainerHeight()), this.engine.addedNodes.push(o), this._triggerAddEvent(), this._triggerChangeEvent(), this.engine.endUpdate(), this._gsEventHandler.dropped && this._gsEventHandler.dropped({ ...i, type: "dropped" }, d && d.grid ? d : void 0, o), !1;
3684
3684
  }), this;
3685
3685
  }
3686
3686
  /** @internal mark item for removal */
@@ -3720,10 +3720,10 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3720
3720
  const p = n.w !== n._orig.w, g = h.target;
3721
3721
  if (!(!g.gridstackNode || g.gridstackNode.grid !== this)) {
3722
3722
  if (n.el = g, n._isAboutToRemove) {
3723
- const b = e.gridstackNode.grid;
3724
- b._gsEventHandler[h.type] && b._gsEventHandler[h.type](h, g), b.engine.nodes.push(n), b.removeWidget(e, !0, !0);
3723
+ const x = e.gridstackNode.grid;
3724
+ x._gsEventHandler[h.type] && x._gsEventHandler[h.type](h, g), x.engine.nodes.push(n), x.removeWidget(e, !0, !0);
3725
3725
  } else
3726
- y.removePositioningStyles(g), n._temporaryRemoved ? (this._writePosAttr(g, n), this.engine.addNode(n)) : this._writePosAttr(g, n), this.triggerEvent(h, g);
3726
+ b.removePositioningStyles(g), n._temporaryRemoved ? (this._writePosAttr(g, n), this.engine.addNode(n)) : this._writePosAttr(g, n), this.triggerEvent(h, g);
3727
3727
  this._extraDragRow = 0, this._updateContainerHeight(), this._triggerChangeEvent(), this.engine.endUpdate(), h.type === "resizestop" && (Number.isInteger(n.sizeToContent) && (n.sizeToContent = n.h), this.resizeToContentCheck(p, n));
3728
3728
  }
3729
3729
  };
@@ -3742,10 +3742,10 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3742
3742
  /** @internal handles actual drag/resize start */
3743
3743
  _onStartMoving(e, t, n, i, s, a) {
3744
3744
  if (this.engine.cleanNodes().beginUpdate(i), this._writePosAttr(this.placeholder, i), this.el.appendChild(this.placeholder), this.placeholder.gridstackNode = i, i.grid?.el)
3745
- this.dragTransform = y.getValuesFromTransformedElement(e);
3745
+ this.dragTransform = b.getValuesFromTransformedElement(e);
3746
3746
  else if (this.placeholder && this.placeholder.closest(".grid-stack")) {
3747
3747
  const o = this.placeholder.closest(".grid-stack");
3748
- this.dragTransform = y.getValuesFromTransformedElement(o);
3748
+ this.dragTransform = b.getValuesFromTransformedElement(o);
3749
3749
  } else
3750
3750
  this.dragTransform = {
3751
3751
  xScale: 1,
@@ -3766,36 +3766,36 @@ Note: ".grid-stack" is required for proper CSS styling and drag/drop, and is the
3766
3766
  if (c = Math.min(c, g), d = Math.min(d, g), u = Math.min(u, p), h = Math.min(h, p), t.type === "drag") {
3767
3767
  if (i._temporaryRemoved)
3768
3768
  return;
3769
- const _ = n.position.top - i._prevYPix;
3770
- i._prevYPix = n.position.top, this.opts.draggable.scroll !== !1 && y.updateScrollPosition(e, n.position, _);
3771
- const O = n.position.left + (n.position.left > i._lastUiPosition.left ? -d : c), D = n.position.top + (n.position.top > i._lastUiPosition.top ? -h : u);
3772
- o.x = Math.round(O / s), o.y = Math.round(D / a);
3769
+ const k = n.position.top - i._prevYPix;
3770
+ i._prevYPix = n.position.top, this.opts.draggable.scroll !== !1 && b.updateScrollPosition(e, n.position, k);
3771
+ const T = n.position.left + (n.position.left > i._lastUiPosition.left ? -d : c), D = n.position.top + (n.position.top > i._lastUiPosition.top ? -h : u);
3772
+ o.x = Math.round(T / s), o.y = Math.round(D / a);
3773
3773
  const S = this._extraDragRow;
3774
3774
  if (this.engine.collide(i, o)) {
3775
3775
  const I = this.getRow();
3776
- let x = Math.max(0, o.y + i.h - I);
3777
- this.opts.maxRow && I + x > this.opts.maxRow && (x = Math.max(0, this.opts.maxRow - I)), this._extraDragRow = x;
3776
+ let y = Math.max(0, o.y + i.h - I);
3777
+ this.opts.maxRow && I + y > this.opts.maxRow && (y = Math.max(0, this.opts.maxRow - I)), this._extraDragRow = y;
3778
3778
  } else
3779
3779
  this._extraDragRow = 0;
3780
3780
  if (this._extraDragRow !== S && this._updateContainerHeight(), i.x === o.x && i.y === o.y)
3781
3781
  return;
3782
3782
  } else if (t.type === "resize") {
3783
- if (o.x < 0 || (y.updateScrollResize(t, e, a), o.w = Math.round((n.size.width - c) / s), o.h = Math.round((n.size.height - u) / a), i.w === o.w && i.h === o.h) || i._lastTried && i._lastTried.w === o.w && i._lastTried.h === o.h)
3783
+ if (o.x < 0 || (b.updateScrollResize(t, e, a), o.w = Math.round((n.size.width - c) / s), o.h = Math.round((n.size.height - u) / a), i.w === o.w && i.h === o.h) || i._lastTried && i._lastTried.w === o.w && i._lastTried.h === o.h)
3784
3784
  return;
3785
- const _ = n.position.left + c, O = n.position.top + u;
3786
- o.x = Math.round(_ / s), o.y = Math.round(O / a), l = !0;
3785
+ const k = n.position.left + c, T = n.position.top + u;
3786
+ o.x = Math.round(k / s), o.y = Math.round(T / a), l = !0;
3787
3787
  }
3788
3788
  i._event = t, i._lastTried = o;
3789
- const b = {
3789
+ const x = {
3790
3790
  x: n.position.left + c,
3791
3791
  y: n.position.top + u,
3792
3792
  w: (n.size ? n.size.width : i.w * s) - c - d,
3793
3793
  h: (n.size ? n.size.height : i.h * a) - u - h
3794
3794
  };
3795
- if (this.engine.moveNodeCheck(i, { ...o, cellWidth: s, cellHeight: a, rect: b, resizing: l })) {
3795
+ if (this.engine.moveNodeCheck(i, { ...o, cellWidth: s, cellHeight: a, rect: x, resizing: l })) {
3796
3796
  i._lastUiPosition = n.position, this.engine.cacheRects(s, a, u, d, h, c), delete i._skipDown, l && i.subGrid && i.subGrid.onResize(), this._extraDragRow = 0, this._updateContainerHeight();
3797
- const _ = t.target;
3798
- i._sidebarOrig || this._writePosAttr(_, i), this.triggerEvent(t, _);
3797
+ const k = t.target;
3798
+ i._sidebarOrig || this._writePosAttr(k, i), this.triggerEvent(t, k);
3799
3799
  }
3800
3800
  }
3801
3801
  /** call given event callback on our main top-most grid (if we're nested) */
@@ -3827,15 +3827,15 @@ Z.renderCB = (r, e) => {
3827
3827
  r && e?.content && (r.textContent = e.content);
3828
3828
  };
3829
3829
  Z.resizeToContentParent = ".grid-stack-item-content";
3830
- Z.Utils = y;
3830
+ Z.Utils = b;
3831
3831
  Z.Engine = Dt;
3832
3832
  Z.GDRev = "12.3.2";
3833
- const Yr = /* @__PURE__ */ new WeakMap();
3833
+ const Kr = /* @__PURE__ */ new WeakMap();
3834
3834
  function wd({ children: r }) {
3835
- const { _gridStack: { value: e, set: t }, options: n } = Ea(), i = Y(/* @__PURE__ */ new Map()), s = Y(null), a = Y(n), o = de((d, u) => {
3835
+ const { _gridStack: { value: e, set: t }, options: n } = Ea(), i = K(/* @__PURE__ */ new Map()), s = K(null), a = K(n), o = de((d, u) => {
3836
3836
  if (u.id && u.grid) {
3837
- let h = Yr.get(u.grid);
3838
- h || (h = /* @__PURE__ */ new Map(), Yr.set(u.grid, h)), h.set(u.id, d), i.current.set(u.id, d);
3837
+ let h = Kr.get(u.grid);
3838
+ h || (h = /* @__PURE__ */ new Map(), Kr.set(u.grid, h)), h.set(u.id, d), i.current.set(u.id, d);
3839
3839
  }
3840
3840
  }, []), l = de(() => {
3841
3841
  if (s.current) {
@@ -3845,13 +3845,13 @@ function wd({ children: r }) {
3845
3845
  }
3846
3846
  return null;
3847
3847
  }, [o]), c = (d, u) => {
3848
- const { children: h, ...p } = d, { children: g, ...b } = u;
3849
- return ua(p, b);
3848
+ const { children: h, ...p } = d, { children: g, ...x } = u;
3849
+ return ua(p, x);
3850
3850
  };
3851
3851
  return ni(() => {
3852
3852
  if (!c(n, a.current) && e)
3853
3853
  try {
3854
- e.removeAll(!1), e.destroy(!1), i.current.clear(), Yr.delete(e), a.current = n, t(null);
3854
+ e.removeAll(!1), e.destroy(!1), i.current.clear(), Kr.delete(e), a.current = n, t(null);
3855
3855
  } catch (d) {
3856
3856
  console.error("Error destroying gridstack", d);
3857
3857
  }
@@ -3867,7 +3867,7 @@ function wd({ children: r }) {
3867
3867
  value: q(() => ({
3868
3868
  getWidgetContainer: (d) => {
3869
3869
  if (e) {
3870
- const u = Yr.get(e);
3870
+ const u = Kr.get(e);
3871
3871
  if (u?.has(d))
3872
3872
  return u.get(d) || null;
3873
3873
  }
@@ -3899,8 +3899,8 @@ const Ci = ({ options: r, widgets: e, onChange: t, className: n }) => {
3899
3899
  }), [r, i, n]), a = (l, c, d) => {
3900
3900
  let u = d[0], h = 1 / 0;
3901
3901
  for (const p of d) {
3902
- const g = p.w - l, b = p.h - c, _ = g * g + b * b;
3903
- _ < h && (h = _, u = p);
3902
+ const g = p.w - l, x = p.h - c, k = g * g + x * x;
3903
+ k < h && (h = k, u = p);
3904
3904
  }
3905
3905
  return u;
3906
3906
  };
@@ -3930,7 +3930,7 @@ const _d = (r, e, t) => f("div", {
3930
3930
  children: r
3931
3931
  }), Nn = ({ widgets: r = [], editMode: e = !1, onChange: t = () => {
3932
3932
  }, WidgetWrapper: n = _d, main: i = !1, deps: s }) => {
3933
- const a = de((x, E, C) => f(bi.div, {
3933
+ const a = de((y, C, _) => f(bi.div, {
3934
3934
  className: "h-full w-full",
3935
3935
  initial: {
3936
3936
  opacity: 0,
@@ -3958,7 +3958,7 @@ const _d = (r, e, t) => f("div", {
3958
3958
  ease: [0.33, 1, 0.68, 1]
3959
3959
  }
3960
3960
  },
3961
- children: n(x, E, C)
3961
+ children: n(y, C, _)
3962
3962
  }), [n]), o = q(() => ({
3963
3963
  acceptWidgets: !0,
3964
3964
  margin: 8,
@@ -3981,75 +3981,75 @@ const _d = (r, e, t) => f("div", {
3981
3981
  }],
3982
3982
  columnMax: 4
3983
3983
  }
3984
- }), []), l = (x, E) => {
3985
- if (typeof x.content == "function" && x.deps && E) {
3986
- const C = {};
3987
- return x.deps.forEach((N) => {
3988
- typeof N == "string" && E[N] !== void 0 && (C[N] = E[N]);
3989
- }), x.content(C);
3984
+ }), []), l = (y, C) => {
3985
+ if (typeof y.content == "function" && y.deps && C) {
3986
+ const _ = {};
3987
+ return y.deps.forEach((N) => {
3988
+ typeof N == "string" && C[N] !== void 0 && (_[N] = C[N]);
3989
+ }), y.content(_);
3990
3990
  }
3991
- return typeof x.content == "function" ? null : x.content;
3992
- }, c = (x, E, C) => x.map((N) => {
3993
- const $ = l(N, C), z = {
3991
+ return typeof y.content == "function" ? null : y.content;
3992
+ }, c = (y, C, _) => y.map((N) => {
3993
+ const $ = l(N, _), z = {
3994
3994
  id: N.id,
3995
3995
  h: N.h ?? 1,
3996
3996
  w: N.w ?? 1,
3997
3997
  allowedSizes: N.availableSizes,
3998
- noMove: !E,
3999
- noResize: !E,
3998
+ noMove: !C,
3999
+ noResize: !C,
4000
4000
  locked: N.locked,
4001
4001
  meta: N.meta,
4002
4002
  _originalContent: $,
4003
- content: a($, N.meta, E)
4003
+ content: a($, N.meta, C)
4004
4004
  };
4005
4005
  return N.x !== void 0 && (z.x = N.x), N.y !== void 0 && (z.y = N.y), z;
4006
- }), [d, u] = re(c(r, e)), h = Y(e), p = Y(r), g = Y(!1), b = Y(/* @__PURE__ */ new Map()), _ = Y(r);
4007
- _.current = r;
4008
- const O = Y(s), D = q(() => {
4009
- const x = /* @__PURE__ */ new Map();
4010
- return !s || Object.keys(s).length === 0 || r.forEach((E) => {
4011
- if (E.deps && E.deps.length > 0) {
4012
- const C = E.deps.map((N) => typeof N == "string" && s[N] !== void 0 ? s[N] : N).filter((N) => N !== null);
4013
- x.set(E.id, C);
4006
+ }), [d, u] = re(c(r, e)), h = K(e), p = K(r), g = K(!1), x = K(/* @__PURE__ */ new Map()), k = K(r);
4007
+ k.current = r;
4008
+ const T = K(s), D = q(() => {
4009
+ const y = /* @__PURE__ */ new Map();
4010
+ return !s || Object.keys(s).length === 0 || r.forEach((C) => {
4011
+ if (C.deps && C.deps.length > 0) {
4012
+ const _ = C.deps.map((N) => typeof N == "string" && s[N] !== void 0 ? s[N] : N).filter((N) => N !== null);
4013
+ y.set(C.id, _);
4014
4014
  }
4015
- }), x;
4016
- }, [r, s]), S = de((x) => {
4017
- u(x), g.current || t(x.map((E) => {
4018
- const C = _.current.find((N) => N.id === E.id);
4015
+ }), y;
4016
+ }, [r, s]), S = de((y) => {
4017
+ u(y), g.current || t(y.map((C) => {
4018
+ const _ = k.current.find((N) => N.id === C.id);
4019
4019
  return {
4020
- id: E.id,
4021
- w: E.w ?? 1,
4022
- h: E.h ?? 1,
4023
- allowedSizes: E.allowedSizes,
4024
- meta: E.meta,
4025
- content: typeof C?.content == "function" ? C.content : E._originalContent,
4026
- x: E.x ?? 0,
4027
- y: E.y ?? 0,
4028
- locked: E.locked,
4029
- deps: C?.deps
4020
+ id: C.id,
4021
+ w: C.w ?? 1,
4022
+ h: C.h ?? 1,
4023
+ allowedSizes: C.allowedSizes,
4024
+ meta: C.meta,
4025
+ content: typeof _?.content == "function" ? _.content : C._originalContent,
4026
+ x: C.x ?? 0,
4027
+ y: C.y ?? 0,
4028
+ locked: C.locked,
4029
+ deps: _?.deps
4030
4030
  };
4031
4031
  })), g.current = !1;
4032
- }, [t]), I = (x, E) => !x && !E ? !1 : !x || !E || x.length !== E.length ? !0 : x.some((C, N) => C !== E[N]);
4032
+ }, [t]), I = (y, C) => !y && !C ? !1 : !y || !C || y.length !== C.length ? !0 : y.some((_, N) => _ !== C[N]);
4033
4033
  return J(() => {
4034
- const x = h.current !== e, E = p.current !== r, C = O.current !== s && (O.current === void 0 || s === void 0 || Object.keys(O.current).length !== Object.keys(s).length || Object.keys(s).some((R) => O.current?.[R] !== s[R])), N = /* @__PURE__ */ new Map();
4034
+ const y = h.current !== e, C = p.current !== r, _ = T.current !== s && (T.current === void 0 || s === void 0 || Object.keys(T.current).length !== Object.keys(s).length || Object.keys(s).some((R) => T.current?.[R] !== s[R])), N = /* @__PURE__ */ new Map();
4035
4035
  r.forEach((R) => {
4036
4036
  if (R.deps && R.deps.length > 0) {
4037
- const k = b.current.get(R.id), A = D.get(R.id);
4038
- N.set(R.id, I(k, A)), A ? b.current.set(R.id, A) : b.current.delete(R.id);
4037
+ const E = x.current.get(R.id), A = D.get(R.id);
4038
+ N.set(R.id, I(E, A)), A ? x.current.set(R.id, A) : x.current.delete(R.id);
4039
4039
  }
4040
4040
  });
4041
4041
  const $ = new Set(r.map((R) => R.id));
4042
- b.current.forEach((R, k) => {
4043
- $.has(k) || b.current.delete(k);
4042
+ x.current.forEach((R, E) => {
4043
+ $.has(E) || x.current.delete(E);
4044
4044
  });
4045
- const z = Array.from(N.values()).some((R) => R) || C;
4046
- x && !E && !z ? (g.current = !0, u((R) => R.map((k) => {
4047
- const A = r.find((ie) => ie.id === k.id);
4045
+ const z = Array.from(N.values()).some((R) => R) || _;
4046
+ y && !C && !z ? (g.current = !0, u((R) => R.map((E) => {
4047
+ const A = r.find((ie) => ie.id === E.id);
4048
4048
  if (!A)
4049
- return k;
4049
+ return E;
4050
4050
  const W = l(A, s);
4051
4051
  return {
4052
- ...k,
4052
+ ...E,
4053
4053
  noMove: !e,
4054
4054
  noResize: !e,
4055
4055
  locked: A.locked,
@@ -4057,10 +4057,10 @@ const _d = (r, e, t) => f("div", {
4057
4057
  _originalContent: W,
4058
4058
  content: a(W, A.meta, e)
4059
4059
  };
4060
- }))) : (E || z) && u((R) => {
4061
- const k = new Map(R.map((A) => [A.id, A]));
4060
+ }))) : (C || z) && u((R) => {
4061
+ const E = new Map(R.map((A) => [A.id, A]));
4062
4062
  return r.map((A) => {
4063
- const W = k.get(A.id), ie = N.get(A.id) ?? !1;
4063
+ const W = E.get(A.id), ie = N.get(A.id) ?? !1;
4064
4064
  let ce;
4065
4065
  ie || !W ? ce = l(A, s) : ce = W._originalContent ?? l(A, s);
4066
4066
  const ne = {
@@ -4077,7 +4077,7 @@ const _d = (r, e, t) => f("div", {
4077
4077
  }, ve = W?.x ?? A.x, X = W?.y ?? A.y;
4078
4078
  return ve !== void 0 && (ne.x = ve), X !== void 0 && (ne.y = X), ne;
4079
4079
  });
4080
- }), h.current = e, p.current = r, O.current = s;
4080
+ }), h.current = e, p.current = r, T.current = s;
4081
4081
  }, [r, e, a, D, s]), f(Ci, {
4082
4082
  className: se(i && "h-full flex-1 overflow-auto"),
4083
4083
  options: o,
@@ -4230,16 +4230,16 @@ const Vp = [
4230
4230
  "file",
4231
4231
  "flag"
4232
4232
  ], Aa = ({ title: r, draggable: e = !1, onDragStart: t, onDragEnd: n, isDragging: i = !1, AIButton: s, actions: a, children: o, selected: l = !1 }) => {
4233
- const [c, d] = re(!1), [u, h] = re(!1), p = zr(), g = (_) => {
4234
- d(_);
4235
- }, b = u || c;
4233
+ const [c, d] = re(!1), [u, h] = re(!1), p = zr(), g = (k) => {
4234
+ d(k);
4235
+ }, x = u || c;
4236
4236
  return J(() => {
4237
4237
  if (!i || !n) return;
4238
- const _ = () => {
4238
+ const k = () => {
4239
4239
  n();
4240
4240
  };
4241
- return document.addEventListener("mouseup", _), () => {
4242
- document.removeEventListener("mouseup", _);
4241
+ return document.addEventListener("mouseup", k), () => {
4242
+ document.removeEventListener("mouseup", k);
4243
4243
  };
4244
4244
  }, [i, n]), V("div", {
4245
4245
  className: se("group relative flex h-full w-full flex-col overflow-hidden rounded-xl border border-solid border-f1-border bg-f1-background transition-all duration-200", e && c ? "border-f1-border-hover" : e && "hover:border-f1-border-hover", l && "border-f1-border-selected-bold shadow-[0_0_0_4px_hsl(var(--selected-50)/0.1)]", i && "cursor-grabbing border-f1-border-hover shadow-[0_6px_12px_0_hsl(var(--shadow)/0.06),0_16px_24px_-12px_hsl(var(--shadow)/0.05)]"),
@@ -4266,7 +4266,7 @@ const Vp = [
4266
4266
  })
4267
4267
  })]
4268
4268
  }), f(vl, {
4269
- children: (s || a) && b && V(bi.div, {
4269
+ children: (s || a) && x && V(bi.div, {
4270
4270
  className: se("flex shrink-0 items-center gap-0.5 pr-2", !a && "pr-4"),
4271
4271
  initial: {
4272
4272
  opacity: 0
@@ -4337,7 +4337,7 @@ const Vp = [
4337
4337
  })]
4338
4338
  });
4339
4339
  Aa.displayName = "F0Widget";
4340
- const Nd = Ks(Aa, Rd), Ad = ({ children: r, title: e, draggable: t = !1, actions: n, aiButton: i }) => f(Nd, {
4340
+ const Nd = Ys(Aa, Rd), Ad = ({ children: r, title: e, draggable: t = !1, actions: n, aiButton: i }) => f(Nd, {
4341
4341
  title: e,
4342
4342
  draggable: t,
4343
4343
  actions: n,
@@ -4390,7 +4390,7 @@ const Td = Ed("Dashboard", Ta), jp = it("Dashboard", Td), Od = Vt({
4390
4390
  ...c,
4391
4391
  children: [p && V("div", {
4392
4392
  className: "absolute right-0 top-0 flex items-center justify-end gap-2 p-4",
4393
- children: [!!l && l, h.length > 0 && f(fc, {
4393
+ children: [!!l && l, h.length > 0 && f(dc, {
4394
4394
  items: Md(u)
4395
4395
  })]
4396
4396
  }), f("div", {
@@ -4444,7 +4444,7 @@ const Ld = ({ title: r = "", description: e, titleLevel: t = "h2", children: n,
4444
4444
  }, [i, e]), f("div", {
4445
4445
  ref: n,
4446
4446
  ...t,
4447
- children: i.map((a, o) => f(ac, {
4447
+ children: i.map((a, o) => f(nc, {
4448
4448
  children: a
4449
4449
  }, o))
4450
4450
  });
@@ -4492,7 +4492,7 @@ function ur(r) {
4492
4492
  }
4493
4493
  const ft = Tn ? ni : J;
4494
4494
  function On(r) {
4495
- const e = Y(r);
4495
+ const e = K(r);
4496
4496
  return ft(() => {
4497
4497
  e.current = r;
4498
4498
  }), de(function() {
@@ -4502,7 +4502,7 @@ function On(r) {
4502
4502
  }, []);
4503
4503
  }
4504
4504
  function Hd() {
4505
- const r = Y(null), e = de((n, i) => {
4505
+ const r = K(null), e = de((n, i) => {
4506
4506
  r.current = setInterval(n, i);
4507
4507
  }, []), t = de(() => {
4508
4508
  r.current !== null && (clearInterval(r.current), r.current = null);
@@ -4511,13 +4511,13 @@ function Hd() {
4511
4511
  }
4512
4512
  function Ar(r, e) {
4513
4513
  e === void 0 && (e = [r]);
4514
- const t = Y(r);
4514
+ const t = K(r);
4515
4515
  return ft(() => {
4516
4516
  t.current !== r && (t.current = r);
4517
4517
  }, e), t;
4518
4518
  }
4519
4519
  function Hr(r, e) {
4520
- const t = Y();
4520
+ const t = K();
4521
4521
  return q(
4522
4522
  () => {
4523
4523
  const n = r(t.current);
@@ -4528,7 +4528,7 @@ function Hr(r, e) {
4528
4528
  );
4529
4529
  }
4530
4530
  function ln(r) {
4531
- const e = On(r), t = Y(null), n = de(
4531
+ const e = On(r), t = K(null), n = de(
4532
4532
  (i) => {
4533
4533
  i !== t.current && e?.(i, t.current), t.current = i;
4534
4534
  },
@@ -4538,7 +4538,7 @@ function ln(r) {
4538
4538
  return [t, n];
4539
4539
  }
4540
4540
  function cn(r) {
4541
- const e = Y();
4541
+ const e = K();
4542
4542
  return J(() => {
4543
4543
  e.current = r;
4544
4544
  }, [r]), e.current;
@@ -4717,7 +4717,7 @@ function qd(r) {
4717
4717
  return e(r);
4718
4718
  }, [r, e]);
4719
4719
  }
4720
- function Yd() {
4720
+ function Kd() {
4721
4721
  const [r] = re(() => /* @__PURE__ */ new Set()), e = de((n) => (r.add(n), () => r.delete(n)), [r]);
4722
4722
  return [de((n) => {
4723
4723
  let {
@@ -4730,7 +4730,7 @@ function Yd() {
4730
4730
  });
4731
4731
  }, [r]), e];
4732
4732
  }
4733
- const Kd = {
4733
+ const Yd = {
4734
4734
  draggable: `
4735
4735
  To pick up a draggable item, press the space bar.
4736
4736
  While dragging, use the arrow keys to move the item.
@@ -4769,7 +4769,7 @@ function Jd(r) {
4769
4769
  announcements: e = Xd,
4770
4770
  container: t,
4771
4771
  hiddenTextDescribedById: n,
4772
- screenReaderInstructions: i = Kd
4772
+ screenReaderInstructions: i = Yd
4773
4773
  } = r;
4774
4774
  const {
4775
4775
  announce: s,
@@ -5197,11 +5197,11 @@ function gu(r, e, t, n, i) {
5197
5197
  }, g = {
5198
5198
  x: 0,
5199
5199
  y: 0
5200
- }, b = {
5200
+ }, x = {
5201
5201
  height: e.height * i.y,
5202
5202
  width: e.width * i.x
5203
5203
  };
5204
- return !c && s <= e.top + b.height ? (p.y = Ne.Backward, g.y = n * Math.abs((e.top + b.height - s) / b.height)) : !d && l >= e.bottom - b.height && (p.y = Ne.Forward, g.y = n * Math.abs((e.bottom - b.height - l) / b.height)), !h && o >= e.right - b.width ? (p.x = Ne.Forward, g.x = n * Math.abs((e.right - b.width - o) / b.width)) : !u && a <= e.left + b.width && (p.x = Ne.Backward, g.x = n * Math.abs((e.left + b.width - a) / b.width)), {
5204
+ return !c && s <= e.top + x.height ? (p.y = Ne.Backward, g.y = n * Math.abs((e.top + x.height - s) / x.height)) : !d && l >= e.bottom - x.height && (p.y = Ne.Forward, g.y = n * Math.abs((e.bottom - x.height - l) / x.height)), !h && o >= e.right - x.width ? (p.x = Ne.Forward, g.x = n * Math.abs((e.right - x.width - o) / x.width)) : !u && a <= e.left + x.width && (p.x = Ne.Backward, g.x = n * Math.abs((e.left + x.width - a) / x.width)), {
5205
5205
  direction: p,
5206
5206
  speed: g
5207
5207
  };
@@ -5410,42 +5410,42 @@ class Ni {
5410
5410
  }, {
5411
5411
  scrollableAncestors: g
5412
5412
  } = n.current;
5413
- for (const b of g) {
5414
- const _ = e.code, {
5415
- isTop: O,
5413
+ for (const x of g) {
5414
+ const k = e.code, {
5415
+ isTop: T,
5416
5416
  isRight: D,
5417
5417
  isLeft: S,
5418
5418
  isBottom: I,
5419
- maxScroll: x,
5420
- minScroll: E
5421
- } = $a(b), C = vu(b), N = {
5422
- x: Math.min(_ === oe.Right ? C.right - C.width / 2 : C.right, Math.max(_ === oe.Right ? C.left : C.left + C.width / 2, u.x)),
5423
- y: Math.min(_ === oe.Down ? C.bottom - C.height / 2 : C.bottom, Math.max(_ === oe.Down ? C.top : C.top + C.height / 2, u.y))
5424
- }, $ = _ === oe.Right && !D || _ === oe.Left && !S, z = _ === oe.Down && !I || _ === oe.Up && !O;
5419
+ maxScroll: y,
5420
+ minScroll: C
5421
+ } = $a(x), _ = vu(x), N = {
5422
+ x: Math.min(k === oe.Right ? _.right - _.width / 2 : _.right, Math.max(k === oe.Right ? _.left : _.left + _.width / 2, u.x)),
5423
+ y: Math.min(k === oe.Down ? _.bottom - _.height / 2 : _.bottom, Math.max(k === oe.Down ? _.top : _.top + _.height / 2, u.y))
5424
+ }, $ = k === oe.Right && !D || k === oe.Left && !S, z = k === oe.Down && !I || k === oe.Up && !T;
5425
5425
  if ($ && N.x !== u.x) {
5426
- const R = b.scrollLeft + h.x, k = _ === oe.Right && R <= x.x || _ === oe.Left && R >= E.x;
5427
- if (k && !h.y) {
5428
- b.scrollTo({
5426
+ const R = x.scrollLeft + h.x, E = k === oe.Right && R <= y.x || k === oe.Left && R >= C.x;
5427
+ if (E && !h.y) {
5428
+ x.scrollTo({
5429
5429
  left: R,
5430
5430
  behavior: o
5431
5431
  });
5432
5432
  return;
5433
5433
  }
5434
- k ? p.x = b.scrollLeft - R : p.x = _ === oe.Right ? b.scrollLeft - x.x : b.scrollLeft - E.x, p.x && b.scrollBy({
5434
+ E ? p.x = x.scrollLeft - R : p.x = k === oe.Right ? x.scrollLeft - y.x : x.scrollLeft - C.x, p.x && x.scrollBy({
5435
5435
  left: -p.x,
5436
5436
  behavior: o
5437
5437
  });
5438
5438
  break;
5439
5439
  } else if (z && N.y !== u.y) {
5440
- const R = b.scrollTop + h.y, k = _ === oe.Down && R <= x.y || _ === oe.Up && R >= E.y;
5441
- if (k && !h.x) {
5442
- b.scrollTo({
5440
+ const R = x.scrollTop + h.y, E = k === oe.Down && R <= y.y || k === oe.Up && R >= C.y;
5441
+ if (E && !h.x) {
5442
+ x.scrollTo({
5443
5443
  top: R,
5444
5444
  behavior: o
5445
5445
  });
5446
5446
  return;
5447
5447
  }
5448
- k ? p.y = b.scrollTop - R : p.y = _ === oe.Down ? b.scrollTop - x.y : b.scrollTop - E.y, p.y && b.scrollBy({
5448
+ E ? p.y = x.scrollTop - R : p.y = k === oe.Down ? x.scrollTop - y.y : x.scrollTop - C.y, p.y && x.scrollBy({
5449
5449
  top: -p.y,
5450
5450
  behavior: o
5451
5451
  });
@@ -5679,7 +5679,7 @@ Su.activators = [{
5679
5679
  }), !0);
5680
5680
  }
5681
5681
  }];
5682
- const Yn = {
5682
+ const Kn = {
5683
5683
  cancel: {
5684
5684
  name: "touchcancel"
5685
5685
  },
@@ -5692,14 +5692,14 @@ const Yn = {
5692
5692
  };
5693
5693
  class Du extends Ai {
5694
5694
  constructor(e) {
5695
- super(e, Yn);
5695
+ super(e, Kn);
5696
5696
  }
5697
5697
  static setup() {
5698
- return window.addEventListener(Yn.move.name, e, {
5698
+ return window.addEventListener(Kn.move.name, e, {
5699
5699
  capture: !1,
5700
5700
  passive: !1
5701
5701
  }), function() {
5702
- window.removeEventListener(Yn.move.name, e);
5702
+ window.removeEventListener(Kn.move.name, e);
5703
5703
  };
5704
5704
  function e() {
5705
5705
  }
@@ -5747,10 +5747,10 @@ function Ru(r) {
5747
5747
  const p = Au({
5748
5748
  delta: u,
5749
5749
  disabled: !s
5750
- }), [g, b] = Hd(), _ = Y({
5750
+ }), [g, x] = Hd(), k = K({
5751
5751
  x: 0,
5752
5752
  y: 0
5753
- }), O = Y({
5753
+ }), T = K({
5754
5754
  x: 0,
5755
5755
  y: 0
5756
5756
  }), D = q(() => {
@@ -5765,50 +5765,50 @@ function Ru(r) {
5765
5765
  case _r.DraggableRect:
5766
5766
  return i;
5767
5767
  }
5768
- }, [t, i, l]), S = Y(null), I = de(() => {
5769
- const E = S.current;
5770
- if (!E)
5768
+ }, [t, i, l]), S = K(null), I = de(() => {
5769
+ const C = S.current;
5770
+ if (!C)
5771
5771
  return;
5772
- const C = _.current.x * O.current.x, N = _.current.y * O.current.y;
5773
- E.scrollBy(C, N);
5774
- }, []), x = q(() => o === hn.TreeOrder ? [...c].reverse() : c, [o, c]);
5772
+ const _ = k.current.x * T.current.x, N = k.current.y * T.current.y;
5773
+ C.scrollBy(_, N);
5774
+ }, []), y = q(() => o === hn.TreeOrder ? [...c].reverse() : c, [o, c]);
5775
5775
  J(
5776
5776
  () => {
5777
5777
  if (!s || !c.length || !D) {
5778
- b();
5778
+ x();
5779
5779
  return;
5780
5780
  }
5781
- for (const E of x) {
5782
- if (n?.(E) === !1)
5781
+ for (const C of y) {
5782
+ if (n?.(C) === !1)
5783
5783
  continue;
5784
- const C = c.indexOf(E), N = d[C];
5784
+ const _ = c.indexOf(C), N = d[_];
5785
5785
  if (!N)
5786
5786
  continue;
5787
5787
  const {
5788
5788
  direction: $,
5789
5789
  speed: z
5790
- } = gu(E, N, D, e, h);
5790
+ } = gu(C, N, D, e, h);
5791
5791
  for (const R of ["x", "y"])
5792
5792
  p[R][$[R]] || (z[R] = 0, $[R] = 0);
5793
5793
  if (z.x > 0 || z.y > 0) {
5794
- b(), S.current = E, g(I, a), _.current = z, O.current = $;
5794
+ x(), S.current = C, g(I, a), k.current = z, T.current = $;
5795
5795
  return;
5796
5796
  }
5797
5797
  }
5798
- _.current = {
5798
+ k.current = {
5799
5799
  x: 0,
5800
5800
  y: 0
5801
- }, O.current = {
5801
+ }, T.current = {
5802
5802
  x: 0,
5803
5803
  y: 0
5804
- }, b();
5804
+ }, x();
5805
5805
  },
5806
5806
  // eslint-disable-next-line react-hooks/exhaustive-deps
5807
5807
  [
5808
5808
  e,
5809
5809
  I,
5810
5810
  n,
5811
- b,
5811
+ x,
5812
5812
  s,
5813
5813
  a,
5814
5814
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -5817,7 +5817,7 @@ function Ru(r) {
5817
5817
  JSON.stringify(p),
5818
5818
  g,
5819
5819
  c,
5820
- x,
5820
+ y,
5821
5821
  d,
5822
5822
  // eslint-disable-next-line react-hooks/exhaustive-deps
5823
5823
  JSON.stringify(h)
@@ -5896,12 +5896,12 @@ function Mu(r, e) {
5896
5896
  frequency: o,
5897
5897
  measure: l,
5898
5898
  strategy: c
5899
- } = i, d = Y(r), u = _(), h = Ar(u), p = de(function(O) {
5900
- O === void 0 && (O = []), !h.current && a((D) => D === null ? O : D.concat(O.filter((S) => !D.includes(S))));
5901
- }, [h]), g = Y(null), b = Hr((O) => {
5899
+ } = i, d = K(r), u = k(), h = Ar(u), p = de(function(T) {
5900
+ T === void 0 && (T = []), !h.current && a((D) => D === null ? T : D.concat(T.filter((S) => !D.includes(S))));
5901
+ }, [h]), g = K(null), x = Hr((T) => {
5902
5902
  if (u && !t)
5903
5903
  return cs;
5904
- if (!O || O === cs || d.current !== r || s != null) {
5904
+ if (!T || T === cs || d.current !== r || s != null) {
5905
5905
  const D = /* @__PURE__ */ new Map();
5906
5906
  for (let S of r) {
5907
5907
  if (!S)
@@ -5910,12 +5910,12 @@ function Mu(r, e) {
5910
5910
  D.set(S.id, S.rect.current);
5911
5911
  continue;
5912
5912
  }
5913
- const I = S.node.current, x = I ? new Ri(l(I), I) : null;
5914
- S.rect.current = x, x && D.set(S.id, x);
5913
+ const I = S.node.current, y = I ? new Ri(l(I), I) : null;
5914
+ S.rect.current = y, y && D.set(S.id, y);
5915
5915
  }
5916
5916
  return D;
5917
5917
  }
5918
- return O;
5918
+ return T;
5919
5919
  }, [r, s, t, u, l]);
5920
5920
  return J(() => {
5921
5921
  d.current = r;
@@ -5940,11 +5940,11 @@ function Mu(r, e) {
5940
5940
  // eslint-disable-next-line react-hooks/exhaustive-deps
5941
5941
  [o, u, p, ...n]
5942
5942
  ), {
5943
- droppableRects: b,
5943
+ droppableRects: x,
5944
5944
  measureDroppableContainers: p,
5945
5945
  measuringScheduled: s != null
5946
5946
  };
5947
- function _() {
5947
+ function k() {
5948
5948
  switch (c) {
5949
5949
  case Or.Always:
5950
5950
  return !1;
@@ -6043,13 +6043,13 @@ function zu(r) {
6043
6043
  }
6044
6044
  const us = [];
6045
6045
  function Fu(r) {
6046
- const e = Y(r), t = Hr((n) => r ? n && n !== us && r && e.current && r.parentNode === e.current.parentNode ? n : In(r) : us, [r]);
6046
+ const e = K(r), t = Hr((n) => r ? n && n !== us && r && e.current && r.parentNode === e.current.parentNode ? n : In(r) : us, [r]);
6047
6047
  return J(() => {
6048
6048
  e.current = r;
6049
6049
  }, [r]), t;
6050
6050
  }
6051
6051
  function Bu(r) {
6052
- const [e, t] = re(null), n = Y(r), i = de((s) => {
6052
+ const [e, t] = re(null), n = K(r), i = de((s) => {
6053
6053
  const a = Zn(s.target);
6054
6054
  a && t((o) => o ? (o.set(a, si(a)), new Map(o)) : null);
6055
6055
  }, []);
@@ -6078,7 +6078,7 @@ function Bu(r) {
6078
6078
  }
6079
6079
  function hs(r, e) {
6080
6080
  e === void 0 && (e = []);
6081
- const t = Y(null);
6081
+ const t = K(null);
6082
6082
  return J(
6083
6083
  () => {
6084
6084
  t.current = null;
@@ -6249,7 +6249,7 @@ const Uu = {
6249
6249
  measureDroppableContainers: un,
6250
6250
  windowRect: null,
6251
6251
  measuringScheduled: !1
6252
- }, Ya = {
6252
+ }, Ka = {
6253
6253
  activatorEvent: null,
6254
6254
  activators: [],
6255
6255
  active: null,
@@ -6261,7 +6261,7 @@ const Uu = {
6261
6261
  draggableNodes: /* @__PURE__ */ new Map(),
6262
6262
  over: null,
6263
6263
  measureDroppableContainers: un
6264
- }, jr = /* @__PURE__ */ Ct(Ya), Ka = /* @__PURE__ */ Ct(Uu);
6264
+ }, jr = /* @__PURE__ */ Ct(Ka), Ya = /* @__PURE__ */ Ct(Uu);
6265
6265
  function Zu() {
6266
6266
  return {
6267
6267
  draggable: {
@@ -6374,7 +6374,7 @@ function qu(r, e) {
6374
6374
  return r;
6375
6375
  }
6376
6376
  }
6377
- function Yu(r) {
6377
+ function Ku(r) {
6378
6378
  let {
6379
6379
  disabled: e
6380
6380
  } = r;
@@ -6420,7 +6420,7 @@ function Xa(r, e) {
6420
6420
  ...n
6421
6421
  }), t) : t;
6422
6422
  }
6423
- function Ku(r) {
6423
+ function Yu(r) {
6424
6424
  return q(
6425
6425
  () => ({
6426
6426
  draggable: {
@@ -6447,7 +6447,7 @@ function Xu(r) {
6447
6447
  initialRect: n,
6448
6448
  config: i = !0
6449
6449
  } = r;
6450
- const s = Y(!1), {
6450
+ const s = K(!1), {
6451
6451
  x: a,
6452
6452
  y: o
6453
6453
  } = typeof i == "boolean" ? {
@@ -6483,7 +6483,7 @@ var Mt;
6483
6483
  (function(r) {
6484
6484
  r[r.Uninitialized = 0] = "Uninitialized", r[r.Initializing = 1] = "Initializing", r[r.Initialized = 2] = "Initialized";
6485
6485
  })(Mt || (Mt = {}));
6486
- const Ju = /* @__PURE__ */ oc(function(e) {
6486
+ const Ju = /* @__PURE__ */ ic(function(e) {
6487
6487
  var t, n, i, s;
6488
6488
  let {
6489
6489
  id: a,
@@ -6496,42 +6496,42 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6496
6496
  modifiers: p,
6497
6497
  ...g
6498
6498
  } = e;
6499
- const b = lc(qu, void 0, Zu), [_, O] = b, [D, S] = Yd(), [I, x] = re(Mt.Uninitialized), E = I === Mt.Initialized, {
6499
+ const x = sc(qu, void 0, Zu), [k, T] = x, [D, S] = Kd(), [I, y] = re(Mt.Uninitialized), C = I === Mt.Initialized, {
6500
6500
  draggable: {
6501
- active: C,
6501
+ active: _,
6502
6502
  nodes: N,
6503
6503
  translate: $
6504
6504
  },
6505
6505
  droppable: {
6506
6506
  containers: z
6507
6507
  }
6508
- } = _, R = C != null ? N.get(C) : null, k = Y({
6508
+ } = k, R = _ != null ? N.get(_) : null, E = K({
6509
6509
  initial: null,
6510
6510
  translated: null
6511
6511
  }), A = q(() => {
6512
6512
  var Le;
6513
- return C != null ? {
6514
- id: C,
6513
+ return _ != null ? {
6514
+ id: _,
6515
6515
  // It's possible for the active node to unmount while dragging
6516
6516
  data: (Le = R?.data) != null ? Le : Gu,
6517
- rect: k
6517
+ rect: E
6518
6518
  } : null;
6519
- }, [C, R]), W = Y(null), [ie, ce] = re(null), [ne, ve] = re(null), X = Ar(g, Object.values(g)), xe = Vr("DndDescribedBy", a), Ge = q(() => z.getEnabled(), [z]), ye = Ku(h), {
6519
+ }, [_, R]), W = K(null), [ie, ce] = re(null), [ne, ve] = re(null), X = Ar(g, Object.values(g)), xe = Vr("DndDescribedBy", a), Ge = q(() => z.getEnabled(), [z]), ye = Yu(h), {
6520
6520
  droppableRects: Pe,
6521
6521
  measureDroppableContainers: Re,
6522
6522
  measuringScheduled: Te
6523
6523
  } = Mu(Ge, {
6524
- dragging: E,
6524
+ dragging: C,
6525
6525
  dependencies: [$.x, $.y],
6526
6526
  config: ye.droppable
6527
- }), Ee = Tu(N, C), Ve = q(() => ne ? dn(ne) : null, [ne]), me = fl(), we = Iu(Ee, ye.draggable.measure);
6527
+ }), Ee = Tu(N, _), Ve = q(() => ne ? dn(ne) : null, [ne]), me = fl(), we = Iu(Ee, ye.draggable.measure);
6528
6528
  Xu({
6529
- activeNode: C != null ? N.get(C) : null,
6529
+ activeNode: _ != null ? N.get(_) : null,
6530
6530
  config: me.layoutShiftCompensation,
6531
6531
  initialRect: we,
6532
6532
  measure: ye.draggable.measure
6533
6533
  });
6534
- const le = ds(Ee, ye.draggable.measure, we), Je = ds(Ee ? Ee.parentElement : null), Oe = Y({
6534
+ const le = ds(Ee, ye.draggable.measure, we), Je = ds(Ee ? Ee.parentElement : null), Oe = K({
6535
6535
  activatorEvent: null,
6536
6536
  active: null,
6537
6537
  activeNode: Ee,
@@ -6547,7 +6547,7 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6547
6547
  scrollAdjustedTranslate: null
6548
6548
  }), Me = z.getNodeFor((t = Oe.current.over) == null ? void 0 : t.id), Ie = $u({
6549
6549
  measure: ye.dragOverlay.measure
6550
- }), Ue = (n = Ie.nodeRef.current) != null ? n : Ee, lt = E ? (i = Ie.rect) != null ? i : le : null, Et = !!(Ie.nodeRef.current && Ie.rect), m = zu(Et ? null : le), v = Za(Ue ? He(Ue) : null), w = Fu(E ? Me ?? Ee : null), M = ju(w), L = Xa(p, {
6550
+ }), Ue = (n = Ie.nodeRef.current) != null ? n : Ee, lt = C ? (i = Ie.rect) != null ? i : le : null, Et = !!(Ie.nodeRef.current && Ie.rect), m = zu(Et ? null : le), v = Za(Ue ? He(Ue) : null), w = Fu(C ? Me ?? Ee : null), M = ju(w), L = Xa(p, {
6551
6551
  transform: {
6552
6552
  x: $.x - m.x,
6553
6553
  y: $.y - m.y,
@@ -6564,13 +6564,13 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6564
6564
  scrollableAncestors: w,
6565
6565
  scrollableAncestorRects: M,
6566
6566
  windowRect: v
6567
- }), T = Ve ? nr(Ve, $) : null, j = Bu(w), Q = hs(j), be = hs(j, [le]), pe = nr(L, Q), ze = lt ? cu(lt, L) : null, Wt = A && ze ? u({
6567
+ }), O = Ve ? nr(Ve, $) : null, j = Bu(w), Q = hs(j), be = hs(j, [le]), pe = nr(L, Q), ze = lt ? cu(lt, L) : null, Wt = A && ze ? u({
6568
6568
  active: A,
6569
6569
  collisionRect: ze,
6570
6570
  droppableRects: Pe,
6571
6571
  droppableContainers: Ge,
6572
- pointerCoordinates: T
6573
- }) : null, qt = Pa(Wt, "id"), [Qe, Gr] = re(null), Ur = Et ? L : nr(L, be), Vn = ou(Ur, (s = Qe?.rect) != null ? s : null, le), Yt = Y(null), Gi = de(
6572
+ pointerCoordinates: O
6573
+ }) : null, qt = Pa(Wt, "id"), [Qe, Gr] = re(null), Ur = Et ? L : nr(L, be), Vn = ou(Ur, (s = Qe?.rect) != null ? s : null, le), Kt = K(null), Gi = de(
6574
6574
  (Le, Ze) => {
6575
6575
  let {
6576
6576
  sensor: qe,
@@ -6581,10 +6581,10 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6581
6581
  const et = N.get(W.current);
6582
6582
  if (!et)
6583
6583
  return;
6584
- const Ye = Le.nativeEvent, gt = new qe({
6584
+ const Ke = Le.nativeEvent, gt = new qe({
6585
6585
  active: W.current,
6586
6586
  activeNode: et,
6587
- event: Ye,
6587
+ event: Ke,
6588
6588
  options: Nt,
6589
6589
  // Sensors need to be instantiated with refs for arguments that change over time
6590
6590
  // otherwise they are frozen in time with the stale arguments
@@ -6628,35 +6628,35 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6628
6628
  const {
6629
6629
  onDragStart: kt
6630
6630
  } = X.current, fr = {
6631
- activatorEvent: Ye,
6631
+ activatorEvent: Ke,
6632
6632
  active: {
6633
6633
  id: At,
6634
6634
  data: vt.data,
6635
- rect: k
6635
+ rect: E
6636
6636
  }
6637
6637
  };
6638
6638
  Zr(() => {
6639
- kt?.(fr), x(Mt.Initializing), O({
6639
+ kt?.(fr), y(Mt.Initializing), T({
6640
6640
  type: De.DragStart,
6641
6641
  initialCoordinates: Ae,
6642
6642
  active: At
6643
6643
  }), D({
6644
6644
  type: "onDragStart",
6645
6645
  event: fr
6646
- }), ce(Yt.current), ve(Ye);
6646
+ }), ce(Kt.current), ve(Ke);
6647
6647
  });
6648
6648
  },
6649
6649
  onMove(Ae) {
6650
- O({
6650
+ T({
6651
6651
  type: De.DragMove,
6652
6652
  coordinates: Ae
6653
6653
  });
6654
6654
  },
6655
- onEnd: Kt(De.DragEnd),
6656
- onCancel: Kt(De.DragCancel)
6655
+ onEnd: Yt(De.DragEnd),
6656
+ onCancel: Yt(De.DragCancel)
6657
6657
  });
6658
- Yt.current = gt;
6659
- function Kt(Ae) {
6658
+ Kt.current = gt;
6659
+ function Yt(Ae) {
6660
6660
  return async function() {
6661
6661
  const {
6662
6662
  active: vt,
@@ -6670,7 +6670,7 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6670
6670
  cancelDrop: pr
6671
6671
  } = X.current;
6672
6672
  Tt = {
6673
- activatorEvent: Ye,
6673
+ activatorEvent: Ke,
6674
6674
  active: vt,
6675
6675
  collisions: kt,
6676
6676
  delta: mr,
@@ -6678,9 +6678,9 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6678
6678
  }, Ae === De.DragEnd && typeof pr == "function" && await Promise.resolve(pr(Tt)) && (Ae = De.DragCancel);
6679
6679
  }
6680
6680
  W.current = null, Zr(() => {
6681
- O({
6681
+ T({
6682
6682
  type: Ae
6683
- }), x(Mt.Uninitialized), Gr(null), ce(null), ve(null), Yt.current = null;
6683
+ }), y(Mt.Uninitialized), Gr(null), ce(null), ve(null), Kt.current = null;
6684
6684
  const pr = Ae === De.DragEnd ? "onDragEnd" : "onDragCancel";
6685
6685
  if (Tt) {
6686
6686
  const jn = X.current[pr];
@@ -6696,23 +6696,23 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6696
6696
  // eslint-disable-next-line react-hooks/exhaustive-deps
6697
6697
  [N]
6698
6698
  ), dl = de((Le, Ze) => (qe, Nt) => {
6699
- const et = qe.nativeEvent, Ye = N.get(Nt);
6699
+ const et = qe.nativeEvent, Ke = N.get(Nt);
6700
6700
  if (
6701
6701
  // Another sensor is already instantiating
6702
6702
  W.current !== null || // No active draggable
6703
- !Ye || // Event has already been captured
6703
+ !Ke || // Event has already been captured
6704
6704
  et.dndKit || et.defaultPrevented
6705
6705
  )
6706
6706
  return;
6707
6707
  const gt = {
6708
- active: Ye
6708
+ active: Ke
6709
6709
  };
6710
6710
  Le(qe, Ze.options, gt) === !0 && (et.dndKit = {
6711
6711
  capturedBy: Ze.sensor
6712
6712
  }, W.current = Nt, Gi(qe, Ze));
6713
6713
  }, [N, Gi]), Ui = Ou(d, dl);
6714
6714
  Hu(d), ft(() => {
6715
- le && I === Mt.Initializing && x(Mt.Initialized);
6715
+ le && I === Mt.Initializing && y(Mt.Initialized);
6716
6716
  }, [le, I]), J(
6717
6717
  () => {
6718
6718
  const {
@@ -6725,7 +6725,7 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6725
6725
  } = Oe.current;
6726
6726
  if (!Ze || !qe)
6727
6727
  return;
6728
- const Ye = {
6728
+ const Ke = {
6729
6729
  active: Ze,
6730
6730
  activatorEvent: qe,
6731
6731
  collisions: Nt,
@@ -6736,9 +6736,9 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6736
6736
  over: et
6737
6737
  };
6738
6738
  Zr(() => {
6739
- Le?.(Ye), D({
6739
+ Le?.(Ke), D({
6740
6740
  type: "onDragMove",
6741
- event: Ye
6741
+ event: Ke
6742
6742
  });
6743
6743
  });
6744
6744
  },
@@ -6756,8 +6756,8 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6756
6756
  if (!Le || W.current == null || !Ze || !et)
6757
6757
  return;
6758
6758
  const {
6759
- onDragOver: Ye
6760
- } = X.current, gt = Nt.get(qt), Kt = gt && gt.rect.current ? {
6759
+ onDragOver: Ke
6760
+ } = X.current, gt = Nt.get(qt), Yt = gt && gt.rect.current ? {
6761
6761
  id: gt.id,
6762
6762
  rect: gt.rect.current,
6763
6763
  data: gt.data,
@@ -6770,10 +6770,10 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6770
6770
  x: et.x,
6771
6771
  y: et.y
6772
6772
  },
6773
- over: Kt
6773
+ over: Yt
6774
6774
  };
6775
6775
  Zr(() => {
6776
- Gr(Kt), Ye?.(Ae), D({
6776
+ Gr(Yt), Ke?.(Ae), D({
6777
6777
  type: "onDragOver",
6778
6778
  event: Ae
6779
6779
  });
@@ -6796,7 +6796,7 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6796
6796
  over: Qe,
6797
6797
  scrollableAncestors: w,
6798
6798
  scrollAdjustedTranslate: pe
6799
- }, k.current = {
6799
+ }, E.current = {
6800
6800
  initial: lt,
6801
6801
  translated: ze
6802
6802
  };
@@ -6804,7 +6804,7 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6804
6804
  ...me,
6805
6805
  delta: $,
6806
6806
  draggingRect: ze,
6807
- pointerCoordinates: T,
6807
+ pointerCoordinates: O,
6808
6808
  scrollableAncestors: w,
6809
6809
  scrollableAncestorRects: M
6810
6810
  });
@@ -6834,27 +6834,27 @@ const Ju = /* @__PURE__ */ oc(function(e) {
6834
6834
  ariaDescribedById: {
6835
6835
  draggable: xe
6836
6836
  },
6837
- dispatch: O,
6837
+ dispatch: T,
6838
6838
  draggableNodes: N,
6839
6839
  over: Qe,
6840
6840
  measureDroppableContainers: Re
6841
- }), [ne, Ui, A, le, O, xe, N, Qe, Re]);
6841
+ }), [ne, Ui, A, le, T, xe, N, Qe, Re]);
6842
6842
  return B.createElement(La.Provider, {
6843
6843
  value: S
6844
6844
  }, B.createElement(jr.Provider, {
6845
6845
  value: hl
6846
- }, B.createElement(Ka.Provider, {
6846
+ }, B.createElement(Ya.Provider, {
6847
6847
  value: ul
6848
6848
  }, B.createElement(Pn.Provider, {
6849
6849
  value: Vn
6850
- }, c)), B.createElement(Yu, {
6850
+ }, c)), B.createElement(Ku, {
6851
6851
  disabled: o?.restoreFocus === !1
6852
6852
  })), B.createElement(Jd, {
6853
6853
  ...o,
6854
6854
  hiddenTextDescribedById: xe
6855
6855
  }));
6856
6856
  function fl() {
6857
- const Le = ie?.autoScrollEnabled === !1, Ze = typeof l == "object" ? l.enabled === !1 : l === !1, qe = E && !Le && !Ze;
6857
+ const Le = ie?.autoScrollEnabled === !1, Ze = typeof l == "object" ? l.enabled === !1 : l === !1, qe = C && !Le && !Ze;
6858
6858
  return typeof l == "object" ? {
6859
6859
  ...l,
6860
6860
  enabled: qe
@@ -6881,15 +6881,15 @@ function th(r) {
6881
6881
  } = ht(jr), {
6882
6882
  role: p = ms,
6883
6883
  roleDescription: g = "draggable",
6884
- tabIndex: b = 0
6885
- } = i ?? {}, _ = l?.id === e, O = ht(_ ? Pn : Qu), [D, S] = ln(), [I, x] = ln(), E = Vu(a, e), C = Ar(t);
6884
+ tabIndex: x = 0
6885
+ } = i ?? {}, k = l?.id === e, T = ht(k ? Pn : Qu), [D, S] = ln(), [I, y] = ln(), C = Vu(a, e), _ = Ar(t);
6886
6886
  ft(
6887
6887
  () => (u.set(e, {
6888
6888
  id: e,
6889
6889
  key: s,
6890
6890
  node: D,
6891
6891
  activatorNode: I,
6892
- data: C
6892
+ data: _
6893
6893
  }), () => {
6894
6894
  const $ = u.get(e);
6895
6895
  $ && $.key === s && u.delete(e);
@@ -6899,28 +6899,28 @@ function th(r) {
6899
6899
  );
6900
6900
  const N = q(() => ({
6901
6901
  role: p,
6902
- tabIndex: b,
6902
+ tabIndex: x,
6903
6903
  "aria-disabled": n,
6904
- "aria-pressed": _ && p === ms ? !0 : void 0,
6904
+ "aria-pressed": k && p === ms ? !0 : void 0,
6905
6905
  "aria-roledescription": g,
6906
6906
  "aria-describedby": d.draggable
6907
- }), [n, p, b, _, g, d.draggable]);
6907
+ }), [n, p, x, k, g, d.draggable]);
6908
6908
  return {
6909
6909
  active: l,
6910
6910
  activatorEvent: o,
6911
6911
  activeNodeRect: c,
6912
6912
  attributes: N,
6913
- isDragging: _,
6914
- listeners: n ? void 0 : E,
6913
+ isDragging: k,
6914
+ listeners: n ? void 0 : C,
6915
6915
  node: D,
6916
6916
  over: h,
6917
6917
  setNodeRef: S,
6918
- setActivatorNodeRef: x,
6919
- transform: O
6918
+ setActivatorNodeRef: y,
6919
+ transform: T
6920
6920
  };
6921
6921
  }
6922
6922
  function Ja() {
6923
- return ht(Ka);
6923
+ return ht(Ya);
6924
6924
  }
6925
6925
  const rh = "Droppable", nh = {
6926
6926
  timeout: 25
@@ -6937,45 +6937,45 @@ function ih(r) {
6937
6937
  dispatch: o,
6938
6938
  over: l,
6939
6939
  measureDroppableContainers: c
6940
- } = ht(jr), d = Y({
6940
+ } = ht(jr), d = K({
6941
6941
  disabled: t
6942
- }), u = Y(!1), h = Y(null), p = Y(null), {
6942
+ }), u = K(!1), h = K(null), p = K(null), {
6943
6943
  disabled: g,
6944
- updateMeasurementsFor: b,
6945
- timeout: _
6944
+ updateMeasurementsFor: x,
6945
+ timeout: k
6946
6946
  } = {
6947
6947
  ...nh,
6948
6948
  ...i
6949
- }, O = Ar(b ?? n), D = de(
6949
+ }, T = Ar(x ?? n), D = de(
6950
6950
  () => {
6951
6951
  if (!u.current) {
6952
6952
  u.current = !0;
6953
6953
  return;
6954
6954
  }
6955
6955
  p.current != null && clearTimeout(p.current), p.current = setTimeout(() => {
6956
- c(Array.isArray(O.current) ? O.current : [O.current]), p.current = null;
6957
- }, _);
6956
+ c(Array.isArray(T.current) ? T.current : [T.current]), p.current = null;
6957
+ }, k);
6958
6958
  },
6959
6959
  //eslint-disable-next-line react-hooks/exhaustive-deps
6960
- [_]
6960
+ [k]
6961
6961
  ), S = Ln({
6962
6962
  callback: D,
6963
6963
  disabled: g || !a
6964
6964
  }), I = de((N, $) => {
6965
6965
  S && ($ && (S.unobserve($), u.current = !1), N && S.observe(N));
6966
- }, [S]), [x, E] = ln(I), C = Ar(e);
6966
+ }, [S]), [y, C] = ln(I), _ = Ar(e);
6967
6967
  return J(() => {
6968
- !S || !x.current || (S.disconnect(), u.current = !1, S.observe(x.current));
6969
- }, [x, S]), J(
6968
+ !S || !y.current || (S.disconnect(), u.current = !1, S.observe(y.current));
6969
+ }, [y, S]), J(
6970
6970
  () => (o({
6971
6971
  type: De.RegisterDroppable,
6972
6972
  element: {
6973
6973
  id: n,
6974
6974
  key: s,
6975
6975
  disabled: t,
6976
- node: x,
6976
+ node: y,
6977
6977
  rect: h,
6978
- data: C
6978
+ data: _
6979
6979
  }
6980
6980
  }), () => o({
6981
6981
  type: De.UnregisterDroppable,
@@ -6995,9 +6995,9 @@ function ih(r) {
6995
6995
  active: a,
6996
6996
  rect: h,
6997
6997
  isOver: l?.id === n,
6998
- node: x,
6998
+ node: y,
6999
6999
  over: l,
7000
- setNodeRef: E
7000
+ setNodeRef: C
7001
7001
  };
7002
7002
  }
7003
7003
  function sh(r) {
@@ -7017,7 +7017,7 @@ function sh(r) {
7017
7017
  Promise.resolve(e(c, s)).then(() => {
7018
7018
  i(null);
7019
7019
  });
7020
- }, [e, n, s]), B.createElement(B.Fragment, null, t, n ? cc(n, {
7020
+ }, [e, n, s]), B.createElement(B.Fragment, null, t, n ? ac(n, {
7021
7021
  ref: a
7022
7022
  }) : null);
7023
7023
  }
@@ -7032,7 +7032,7 @@ function oh(r) {
7032
7032
  children: e
7033
7033
  } = r;
7034
7034
  return B.createElement(jr.Provider, {
7035
- value: Ya
7035
+ value: Ka
7036
7036
  }, B.createElement(Pn.Provider, {
7037
7037
  value: ah
7038
7038
  }, e));
@@ -7198,21 +7198,21 @@ function ph(r) {
7198
7198
  initial: l,
7199
7199
  final: h
7200
7200
  }
7201
- }), [g] = p, b = p[p.length - 1];
7202
- if (JSON.stringify(g) === JSON.stringify(b))
7201
+ }), [g] = p, x = p[p.length - 1];
7202
+ if (JSON.stringify(g) === JSON.stringify(x))
7203
7203
  return;
7204
- const _ = n?.({
7204
+ const k = n?.({
7205
7205
  active: a,
7206
7206
  dragOverlay: o,
7207
7207
  ...c
7208
- }), O = o.node.animate(p, {
7208
+ }), T = o.node.animate(p, {
7209
7209
  duration: e,
7210
7210
  easing: t,
7211
7211
  fill: "forwards"
7212
7212
  });
7213
7213
  return new Promise((D) => {
7214
- O.onfinish = () => {
7215
- _?.(), D();
7214
+ T.onfinish = () => {
7215
+ k?.(), D();
7216
7216
  };
7217
7217
  });
7218
7218
  };
@@ -7242,35 +7242,35 @@ const vh = /* @__PURE__ */ B.memo((r) => {
7242
7242
  activeNodeRect: h,
7243
7243
  containerNodeRect: p,
7244
7244
  draggableNodes: g,
7245
- droppableContainers: b,
7246
- dragOverlay: _,
7247
- over: O,
7245
+ droppableContainers: x,
7246
+ dragOverlay: k,
7247
+ over: T,
7248
7248
  measuringConfiguration: D,
7249
7249
  scrollableAncestors: S,
7250
7250
  scrollableAncestorRects: I,
7251
- windowRect: x
7252
- } = Ja(), E = ht(Pn), C = gh(u?.id), N = Xa(a, {
7251
+ windowRect: y
7252
+ } = Ja(), C = ht(Pn), _ = gh(u?.id), N = Xa(a, {
7253
7253
  activatorEvent: d,
7254
7254
  active: u,
7255
7255
  activeNodeRect: h,
7256
7256
  containerNodeRect: p,
7257
- draggingNodeRect: _.rect,
7258
- over: O,
7259
- overlayNodeRect: _.rect,
7257
+ draggingNodeRect: k.rect,
7258
+ over: T,
7259
+ overlayNodeRect: k.rect,
7260
7260
  scrollableAncestors: S,
7261
7261
  scrollableAncestorRects: I,
7262
- transform: E,
7263
- windowRect: x
7262
+ transform: C,
7263
+ windowRect: y
7264
7264
  }), $ = Oi(h), z = mh({
7265
7265
  config: n,
7266
7266
  draggableNodes: g,
7267
- droppableContainers: b,
7267
+ droppableContainers: x,
7268
7268
  measuringConfiguration: D
7269
- }), R = $ ? _.setRef : void 0;
7269
+ }), R = $ ? k.setRef : void 0;
7270
7270
  return B.createElement(oh, null, B.createElement(sh, {
7271
7271
  animation: z
7272
- }, u && C ? B.createElement(dh, {
7273
- key: C,
7272
+ }, u && _ ? B.createElement(dh, {
7273
+ key: _,
7274
7274
  id: u.id,
7275
7275
  ref: R,
7276
7276
  as: o,
@@ -7296,7 +7296,7 @@ function yh(r, e) {
7296
7296
  return s && (t[i] = s), t;
7297
7297
  }, Array(r.length));
7298
7298
  }
7299
- function Kr(r) {
7299
+ function Yr(r) {
7300
7300
  return r !== null && r >= 0;
7301
7301
  }
7302
7302
  function bh(r, e) {
@@ -7357,29 +7357,29 @@ function wh(r) {
7357
7357
  droppableRects: l,
7358
7358
  over: c,
7359
7359
  measureDroppableContainers: d
7360
- } = Ja(), u = Vr(eo, t), h = o.rect !== null, p = q(() => n.map((E) => typeof E == "object" && "id" in E ? E.id : E), [n]), g = a != null, b = a ? p.indexOf(a.id) : -1, _ = c ? p.indexOf(c.id) : -1, O = Y(p), D = !bh(p, O.current), S = _ !== -1 && b === -1 || D, I = xh(s);
7360
+ } = Ja(), u = Vr(eo, t), h = o.rect !== null, p = q(() => n.map((C) => typeof C == "object" && "id" in C ? C.id : C), [n]), g = a != null, x = a ? p.indexOf(a.id) : -1, k = c ? p.indexOf(c.id) : -1, T = K(p), D = !bh(p, T.current), S = k !== -1 && x === -1 || D, I = xh(s);
7361
7361
  ft(() => {
7362
7362
  D && g && d(p);
7363
7363
  }, [D, p, g, d]), J(() => {
7364
- O.current = p;
7364
+ T.current = p;
7365
7365
  }, [p]);
7366
- const x = q(
7366
+ const y = q(
7367
7367
  () => ({
7368
- activeIndex: b,
7368
+ activeIndex: x,
7369
7369
  containerId: u,
7370
7370
  disabled: I,
7371
7371
  disableTransforms: S,
7372
7372
  items: p,
7373
- overIndex: _,
7373
+ overIndex: k,
7374
7374
  useDragOverlay: h,
7375
7375
  sortedRects: yh(p, l),
7376
7376
  strategy: i
7377
7377
  }),
7378
7378
  // eslint-disable-next-line react-hooks/exhaustive-deps
7379
- [b, u, I.draggable, I.droppable, S, p, _, l, h, i]
7379
+ [x, u, I.draggable, I.droppable, S, p, k, l, h, i]
7380
7380
  );
7381
7381
  return B.createElement(to.Provider, {
7382
- value: x
7382
+ value: y
7383
7383
  }, e);
7384
7384
  }
7385
7385
  const _h = (r) => {
@@ -7420,7 +7420,7 @@ function Dh(r) {
7420
7420
  node: n,
7421
7421
  rect: i
7422
7422
  } = r;
7423
- const [s, a] = re(null), o = Y(t);
7423
+ const [s, a] = re(null), o = K(t);
7424
7424
  return ft(() => {
7425
7425
  if (!e && t !== o.current && n.current) {
7426
7426
  const l = i.current;
@@ -7459,33 +7459,33 @@ function Rh(r) {
7459
7459
  activeIndex: h,
7460
7460
  disabled: p,
7461
7461
  disableTransforms: g,
7462
- sortedRects: b,
7463
- overIndex: _,
7464
- useDragOverlay: O,
7462
+ sortedRects: x,
7463
+ overIndex: k,
7464
+ useDragOverlay: T,
7465
7465
  strategy: D
7466
- } = ht(to), S = Nh(n, p), I = d.indexOf(a), x = q(() => ({
7466
+ } = ht(to), S = Nh(n, p), I = d.indexOf(a), y = q(() => ({
7467
7467
  sortable: {
7468
7468
  containerId: u,
7469
7469
  index: I,
7470
7470
  items: d
7471
7471
  },
7472
7472
  ...i
7473
- }), [u, i, I, d]), E = q(() => d.slice(d.indexOf(a)), [d, a]), {
7474
- rect: C,
7473
+ }), [u, i, I, d]), C = q(() => d.slice(d.indexOf(a)), [d, a]), {
7474
+ rect: _,
7475
7475
  node: N,
7476
7476
  isOver: $,
7477
7477
  setNodeRef: z
7478
7478
  } = ih({
7479
7479
  id: a,
7480
- data: x,
7480
+ data: y,
7481
7481
  disabled: S.droppable,
7482
7482
  resizeObserverConfig: {
7483
- updateMeasurementsFor: E,
7483
+ updateMeasurementsFor: C,
7484
7484
  ...l
7485
7485
  }
7486
7486
  }), {
7487
7487
  active: R,
7488
- activatorEvent: k,
7488
+ activatorEvent: E,
7489
7489
  activeNodeRect: A,
7490
7490
  attributes: W,
7491
7491
  setNodeRef: ie,
@@ -7496,24 +7496,24 @@ function Rh(r) {
7496
7496
  transform: xe
7497
7497
  } = th({
7498
7498
  id: a,
7499
- data: x,
7499
+ data: y,
7500
7500
  attributes: {
7501
7501
  ...Sh,
7502
7502
  ...t
7503
7503
  },
7504
7504
  disabled: S.draggable
7505
- }), Ge = Bd(z, ie), ye = !!R, Pe = ye && !g && Kr(h) && Kr(_), Re = !O && ne, Te = Re && Pe ? xe : null, Ve = Pe ? Te ?? (o ?? D)({
7506
- rects: b,
7505
+ }), Ge = Bd(z, ie), ye = !!R, Pe = ye && !g && Yr(h) && Yr(k), Re = !T && ne, Te = Re && Pe ? xe : null, Ve = Pe ? Te ?? (o ?? D)({
7506
+ rects: x,
7507
7507
  activeNodeRect: A,
7508
7508
  activeIndex: h,
7509
- overIndex: _,
7509
+ overIndex: k,
7510
7510
  index: I
7511
- }) : null, me = Kr(h) && Kr(_) ? s({
7511
+ }) : null, me = Yr(h) && Yr(k) ? s({
7512
7512
  id: a,
7513
7513
  items: d,
7514
7514
  activeIndex: h,
7515
- overIndex: _
7516
- }) : I, we = R?.id, le = Y({
7515
+ overIndex: k
7516
+ }) : I, we = R?.id, le = K({
7517
7517
  activeId: we,
7518
7518
  items: d,
7519
7519
  newIndex: me,
@@ -7535,7 +7535,7 @@ function Rh(r) {
7535
7535
  disabled: !Oe,
7536
7536
  index: I,
7537
7537
  node: N,
7538
- rect: C
7538
+ rect: _
7539
7539
  });
7540
7540
  return J(() => {
7541
7541
  ye && le.current.newIndex !== me && (le.current.newIndex = me), u !== le.current.containerId && (le.current.containerId = u), d !== le.current.items && (le.current.items = d);
@@ -7554,8 +7554,8 @@ function Rh(r) {
7554
7554
  active: R,
7555
7555
  activeIndex: h,
7556
7556
  attributes: W,
7557
- data: x,
7558
- rect: C,
7557
+ data: y,
7558
+ rect: _,
7559
7559
  index: I,
7560
7560
  newIndex: me,
7561
7561
  items: d,
@@ -7564,7 +7564,7 @@ function Rh(r) {
7564
7564
  isDragging: ne,
7565
7565
  listeners: ce,
7566
7566
  node: N,
7567
- overIndex: _,
7567
+ overIndex: k,
7568
7568
  over: ve,
7569
7569
  setNodeRef: Ge,
7570
7570
  setActivatorNodeRef: X,
@@ -7580,7 +7580,7 @@ function Rh(r) {
7580
7580
  Je && le.current.newIndex === I
7581
7581
  )
7582
7582
  return kh;
7583
- if (!(Re && !Mn(k) || !c) && (ye || Oe))
7583
+ if (!(Re && !Mn(E) || !c) && (ye || Oe))
7584
7584
  return Ft.Transition.toString({
7585
7585
  ...c,
7586
7586
  property: ro
@@ -7648,7 +7648,7 @@ const Ah = [oe.Down, oe.Right, oe.Up, oe.Left], Th = (r, e) => {
7648
7648
  if (d === a?.id && c.length > 1 && (d = c[1].id), d != null) {
7649
7649
  const u = s.get(t.id), h = s.get(d), p = h ? i.get(h.id) : null, g = h?.node.current;
7650
7650
  if (g && p && u && h) {
7651
- const _ = In(g).some((E, C) => o[C] !== E), O = no(u, h), D = Oh(u, h), S = _ || !O ? {
7651
+ const k = In(g).some((C, _) => o[_] !== C), T = no(u, h), D = Oh(u, h), S = k || !T ? {
7652
7652
  x: 0,
7653
7653
  y: 0
7654
7654
  } : {
@@ -7689,7 +7689,7 @@ const gs = ({ id: r, children: e }) => {
7689
7689
  }, Ii = ({ blocks: r, sortable: e = !1, onSort: t = () => {
7690
7690
  }, main: n = !1 }) => {
7691
7691
  const [i, s] = re([]);
7692
- Ys(() => {
7692
+ Ks(() => {
7693
7693
  s(r.map((u, h) => ({
7694
7694
  id: u.id ?? h.toString(),
7695
7695
  render: u.render
@@ -7702,8 +7702,8 @@ const gs = ({ id: r, children: e }) => {
7702
7702
  }, d = (u) => {
7703
7703
  const { active: h, over: p } = u;
7704
7704
  o(null), p && h.id !== p.id && s((g) => {
7705
- const b = g.findIndex((O) => O.id === h.id), _ = g.findIndex((O) => O.id === p.id);
7706
- return Mi(g, b, _);
7705
+ const x = g.findIndex((T) => T.id === h.id), k = g.findIndex((T) => T.id === p.id);
7706
+ return Mi(g, x, k);
7707
7707
  });
7708
7708
  };
7709
7709
  return f("div", {
@@ -7896,13 +7896,13 @@ function Wh(r, e) {
7896
7896
  }
7897
7897
  function Gh(r) {
7898
7898
  var e = r.option, t = r.isActive, n = $h(r, jh);
7899
- return typeof e == "string" ? /* @__PURE__ */ B.createElement(Yi, Er({
7900
- option: /* @__PURE__ */ B.createElement(mc, Er({
7899
+ return typeof e == "string" ? /* @__PURE__ */ B.createElement(Ki, Er({
7900
+ option: /* @__PURE__ */ B.createElement(uc, Er({
7901
7901
  type: e
7902
7902
  }, n)),
7903
7903
  isActive: t,
7904
7904
  shapeType: "symbols"
7905
- }, n)) : /* @__PURE__ */ B.createElement(Yi, Er({
7905
+ }, n)) : /* @__PURE__ */ B.createElement(Ki, Er({
7906
7906
  option: e,
7907
7907
  isActive: t,
7908
7908
  shapeType: "symbols"
@@ -7961,16 +7961,16 @@ function Zh(r, e, t) {
7961
7961
  return e && ys(r.prototype, e), t && ys(r, t), Object.defineProperty(r, "prototype", { writable: !1 }), r;
7962
7962
  }
7963
7963
  function qh(r, e, t) {
7964
- return e = pn(e), Yh(r, oo() ? Reflect.construct(e, t || [], pn(r).constructor) : e.apply(r, t));
7964
+ return e = pn(e), Kh(r, oo() ? Reflect.construct(e, t || [], pn(r).constructor) : e.apply(r, t));
7965
7965
  }
7966
- function Yh(r, e) {
7966
+ function Kh(r, e) {
7967
7967
  if (e && (sr(e) === "object" || typeof e == "function"))
7968
7968
  return e;
7969
7969
  if (e !== void 0)
7970
7970
  throw new TypeError("Derived constructors may only return object or undefined");
7971
- return Kh(r);
7971
+ return Yh(r);
7972
7972
  }
7973
- function Kh(r) {
7973
+ function Yh(r) {
7974
7974
  if (r === void 0)
7975
7975
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
7976
7976
  return r;
@@ -8033,7 +8033,7 @@ var $r = /* @__PURE__ */ (function(r) {
8033
8033
  t.setState({
8034
8034
  isAnimationFinished: !1
8035
8035
  });
8036
- }), Pt(t, "id", wc("recharts-scatter-")), t;
8036
+ }), Pt(t, "id", yc("recharts-scatter-")), t;
8037
8037
  }
8038
8038
  return Xh(e, r), Zh(e, [{
8039
8039
  key: "renderSymbolsStatically",
@@ -8044,7 +8044,7 @@ var $r = /* @__PURE__ */ (function(r) {
8044
8044
  return /* @__PURE__ */ B.createElement(gr, kr({
8045
8045
  className: "recharts-scatter-symbol",
8046
8046
  key: "symbol-".concat(d?.cx, "-").concat(d?.cy, "-").concat(d?.size, "-").concat(u)
8047
- }, pc(i.props, d, u), {
8047
+ }, hc(i.props, d, u), {
8048
8048
  role: "img"
8049
8049
  }), /* @__PURE__ */ B.createElement(Gh, kr({
8050
8050
  option: p,
@@ -8057,7 +8057,7 @@ var $r = /* @__PURE__ */ (function(r) {
8057
8057
  key: "renderSymbolsWithAnimation",
8058
8058
  value: function() {
8059
8059
  var n = this, i = this.props, s = i.points, a = i.isAnimationActive, o = i.animationBegin, l = i.animationDuration, c = i.animationEasing, d = i.animationId, u = this.state.prevPoints;
8060
- return /* @__PURE__ */ B.createElement(gc, {
8060
+ return /* @__PURE__ */ B.createElement(fc, {
8061
8061
  begin: o,
8062
8062
  duration: l,
8063
8063
  isActive: a,
@@ -8072,19 +8072,19 @@ var $r = /* @__PURE__ */ (function(r) {
8072
8072
  onAnimationEnd: this.handleAnimationEnd,
8073
8073
  onAnimationStart: this.handleAnimationStart
8074
8074
  }, function(h) {
8075
- var p = h.t, g = s.map(function(b, _) {
8076
- var O = u && u[_];
8077
- if (O) {
8078
- var D = qr(O.cx, b.cx), S = qr(O.cy, b.cy), I = qr(O.size, b.size);
8079
- return tt(tt({}, b), {}, {
8075
+ var p = h.t, g = s.map(function(x, k) {
8076
+ var T = u && u[k];
8077
+ if (T) {
8078
+ var D = qr(T.cx, x.cx), S = qr(T.cy, x.cy), I = qr(T.size, x.size);
8079
+ return tt(tt({}, x), {}, {
8080
8080
  cx: D(p),
8081
8081
  cy: S(p),
8082
8082
  size: I(p)
8083
8083
  });
8084
8084
  }
8085
- var x = qr(0, b.size);
8086
- return tt(tt({}, b), {}, {
8087
- size: x(p)
8085
+ var y = qr(0, x.size);
8086
+ return tt(tt({}, x), {}, {
8087
+ size: y(p)
8088
8088
  });
8089
8089
  });
8090
8090
  return /* @__PURE__ */ B.createElement(gr, null, n.renderSymbolsStatically(g));
@@ -8102,7 +8102,7 @@ var $r = /* @__PURE__ */ (function(r) {
8102
8102
  var n = this.props.isAnimationActive;
8103
8103
  if (n && !this.state.isAnimationFinished)
8104
8104
  return null;
8105
- var i = this.props, s = i.points, a = i.xAxis, o = i.yAxis, l = i.children, c = ha(l, vc);
8105
+ var i = this.props, s = i.points, a = i.xAxis, o = i.yAxis, l = i.children, c = ha(l, mc);
8106
8106
  return c ? c.map(function(d, u) {
8107
8107
  var h = d.props, p = h.direction, g = h.dataKey;
8108
8108
  return /* @__PURE__ */ B.cloneElement(d, {
@@ -8111,12 +8111,12 @@ var $r = /* @__PURE__ */ (function(r) {
8111
8111
  xAxis: a,
8112
8112
  yAxis: o,
8113
8113
  layout: p === "x" ? "vertical" : "horizontal",
8114
- dataPointFormatter: function(_, O) {
8114
+ dataPointFormatter: function(k, T) {
8115
8115
  return {
8116
- x: _.cx,
8117
- y: _.cy,
8118
- value: p === "x" ? +_.node.x : +_.node.y,
8119
- errorVal: Xr(_, O)
8116
+ x: k.cx,
8117
+ y: k.cy,
8118
+ value: p === "x" ? +k.node.x : +k.node.y,
8119
+ errorVal: Xr(k, T)
8120
8120
  };
8121
8121
  }
8122
8122
  });
@@ -8134,15 +8134,15 @@ var $r = /* @__PURE__ */ (function(r) {
8134
8134
  };
8135
8135
  });
8136
8136
  else if (a === "fitting") {
8137
- var h = yc(i), p = h.xmin, g = h.xmax, b = h.a, _ = h.b, O = function(I) {
8138
- return b * I + _;
8137
+ var h = pc(i), p = h.xmin, g = h.xmax, x = h.a, k = h.b, T = function(I) {
8138
+ return x * I + k;
8139
8139
  };
8140
8140
  d = [{
8141
8141
  x: p,
8142
- y: O(p)
8142
+ y: T(p)
8143
8143
  }, {
8144
8144
  x: g,
8145
- y: O(g)
8145
+ y: T(g)
8146
8146
  }];
8147
8147
  }
8148
8148
  var D = tt(tt(tt({}, l), {}, {
@@ -8151,7 +8151,7 @@ var $r = /* @__PURE__ */ (function(r) {
8151
8151
  }, c), {}, {
8152
8152
  points: d
8153
8153
  });
8154
- return /* @__PURE__ */ B.isValidElement(s) ? u = /* @__PURE__ */ B.cloneElement(s, D) : bc(s) ? u = s(D) : u = /* @__PURE__ */ B.createElement(xc, kr({}, D, {
8154
+ return /* @__PURE__ */ B.isValidElement(s) ? u = /* @__PURE__ */ B.cloneElement(s, D) : gc(s) ? u = s(D) : u = /* @__PURE__ */ B.createElement(vc, kr({}, D, {
8155
8155
  type: o
8156
8156
  })), /* @__PURE__ */ B.createElement(gr, {
8157
8157
  className: "recharts-scatter-line",
@@ -8161,15 +8161,15 @@ var $r = /* @__PURE__ */ (function(r) {
8161
8161
  }, {
8162
8162
  key: "render",
8163
8163
  value: function() {
8164
- var n = this.props, i = n.hide, s = n.points, a = n.line, o = n.className, l = n.xAxis, c = n.yAxis, d = n.left, u = n.top, h = n.width, p = n.height, g = n.id, b = n.isAnimationActive;
8164
+ var n = this.props, i = n.hide, s = n.points, a = n.line, o = n.className, l = n.xAxis, c = n.yAxis, d = n.left, u = n.top, h = n.width, p = n.height, g = n.id, x = n.isAnimationActive;
8165
8165
  if (i || !s || !s.length)
8166
8166
  return null;
8167
- var _ = this.state.isAnimationFinished, O = xl("recharts-scatter", o), D = l && l.allowDataOverflow, S = c && c.allowDataOverflow, I = D || S, x = Qt(g) ? this.id : g;
8167
+ var k = this.state.isAnimationFinished, T = xl("recharts-scatter", o), D = l && l.allowDataOverflow, S = c && c.allowDataOverflow, I = D || S, y = Qt(g) ? this.id : g;
8168
8168
  return /* @__PURE__ */ B.createElement(gr, {
8169
- className: O,
8170
- clipPath: I ? "url(#clipPath-".concat(x, ")") : null
8169
+ className: T,
8170
+ clipPath: I ? "url(#clipPath-".concat(y, ")") : null
8171
8171
  }, D || S ? /* @__PURE__ */ B.createElement("defs", null, /* @__PURE__ */ B.createElement("clipPath", {
8172
- id: "clipPath-".concat(x)
8172
+ id: "clipPath-".concat(y)
8173
8173
  }, /* @__PURE__ */ B.createElement("rect", {
8174
8174
  x: D ? d : d - h / 2,
8175
8175
  y: S ? u : u - p / 2,
@@ -8177,7 +8177,7 @@ var $r = /* @__PURE__ */ (function(r) {
8177
8177
  height: S ? p : p * 2
8178
8178
  }))) : null, a && this.renderLine(), this.renderErrorBar(), /* @__PURE__ */ B.createElement(gr, {
8179
8179
  key: "recharts-scatter-symbols"
8180
- }, this.renderSymbols()), (!b || _) && fa.renderCallByParent(this.props, s));
8180
+ }, this.renderSymbols()), (!x || k) && fa.renderCallByParent(this.props, s));
8181
8181
  }
8182
8182
  }], [{
8183
8183
  key: "getDerivedStateFromProps",
@@ -8191,7 +8191,7 @@ var $r = /* @__PURE__ */ (function(r) {
8191
8191
  } : null;
8192
8192
  }
8193
8193
  }]);
8194
- })(dc);
8194
+ })(oc);
8195
8195
  Pt($r, "displayName", "Scatter");
8196
8196
  Pt($r, "defaultProps", {
8197
8197
  xAxisId: 0,
@@ -8203,66 +8203,66 @@ Pt($r, "defaultProps", {
8203
8203
  data: [],
8204
8204
  shape: "circle",
8205
8205
  hide: !1,
8206
- isAnimationActive: !_c.isSsr,
8206
+ isAnimationActive: !bc.isSsr,
8207
8207
  animationBegin: 0,
8208
8208
  animationDuration: 400,
8209
8209
  animationEasing: "linear"
8210
8210
  });
8211
8211
  Pt($r, "getComposedData", function(r) {
8212
- var e = r.xAxis, t = r.yAxis, n = r.zAxis, i = r.item, s = r.displayedData, a = r.xAxisTicks, o = r.yAxisTicks, l = r.offset, c = i.props.tooltipType, d = ha(i.props.children, Cc), u = Qt(e.dataKey) ? i.props.dataKey : e.dataKey, h = Qt(t.dataKey) ? i.props.dataKey : t.dataKey, p = n && n.dataKey, g = n ? n.range : zn.defaultProps.range, b = g && g[0], _ = e.scale.bandwidth ? e.scale.bandwidth() : 0, O = t.scale.bandwidth ? t.scale.bandwidth() : 0, D = s.map(function(S, I) {
8213
- var x = Xr(S, u), E = Xr(S, h), C = !Qt(p) && Xr(S, p) || "-", N = [{
8212
+ var e = r.xAxis, t = r.yAxis, n = r.zAxis, i = r.item, s = r.displayedData, a = r.xAxisTicks, o = r.yAxisTicks, l = r.offset, c = i.props.tooltipType, d = ha(i.props.children, xc), u = Qt(e.dataKey) ? i.props.dataKey : e.dataKey, h = Qt(t.dataKey) ? i.props.dataKey : t.dataKey, p = n && n.dataKey, g = n ? n.range : zn.defaultProps.range, x = g && g[0], k = e.scale.bandwidth ? e.scale.bandwidth() : 0, T = t.scale.bandwidth ? t.scale.bandwidth() : 0, D = s.map(function(S, I) {
8213
+ var y = Xr(S, u), C = Xr(S, h), _ = !Qt(p) && Xr(S, p) || "-", N = [{
8214
8214
  name: Qt(e.dataKey) ? i.props.name : e.name || e.dataKey,
8215
8215
  unit: e.unit || "",
8216
- value: x,
8216
+ value: y,
8217
8217
  payload: S,
8218
8218
  dataKey: u,
8219
8219
  type: c
8220
8220
  }, {
8221
8221
  name: Qt(t.dataKey) ? i.props.name : t.name || t.dataKey,
8222
8222
  unit: t.unit || "",
8223
- value: E,
8223
+ value: C,
8224
8224
  payload: S,
8225
8225
  dataKey: h,
8226
8226
  type: c
8227
8227
  }];
8228
- C !== "-" && N.push({
8228
+ _ !== "-" && N.push({
8229
8229
  name: n.name || n.dataKey,
8230
8230
  unit: n.unit || "",
8231
- value: C,
8231
+ value: _,
8232
8232
  payload: S,
8233
8233
  dataKey: p,
8234
8234
  type: c
8235
8235
  });
8236
- var $ = Ki({
8236
+ var $ = Yi({
8237
8237
  axis: e,
8238
8238
  ticks: a,
8239
- bandSize: _,
8239
+ bandSize: k,
8240
8240
  entry: S,
8241
8241
  index: I,
8242
8242
  dataKey: u
8243
- }), z = Ki({
8243
+ }), z = Yi({
8244
8244
  axis: t,
8245
8245
  ticks: o,
8246
- bandSize: O,
8246
+ bandSize: T,
8247
8247
  entry: S,
8248
8248
  index: I,
8249
8249
  dataKey: h
8250
- }), R = C !== "-" ? n.scale(C) : b, k = Math.sqrt(Math.max(R, 0) / Math.PI);
8250
+ }), R = _ !== "-" ? n.scale(_) : x, E = Math.sqrt(Math.max(R, 0) / Math.PI);
8251
8251
  return tt(tt({}, S), {}, {
8252
8252
  cx: $,
8253
8253
  cy: z,
8254
- x: $ - k,
8255
- y: z - k,
8254
+ x: $ - E,
8255
+ y: z - E,
8256
8256
  xAxis: e,
8257
8257
  yAxis: t,
8258
8258
  zAxis: n,
8259
- width: 2 * k,
8260
- height: 2 * k,
8259
+ width: 2 * E,
8260
+ height: 2 * E,
8261
8261
  size: R,
8262
8262
  node: {
8263
- x,
8264
- y: E,
8265
- z: C
8263
+ x: y,
8264
+ y: C,
8265
+ z: _
8266
8266
  },
8267
8267
  tooltipPayload: N,
8268
8268
  tooltipPosition: {
@@ -8276,9 +8276,9 @@ Pt($r, "getComposedData", function(r) {
8276
8276
  points: D
8277
8277
  }, l);
8278
8278
  });
8279
- var Qh = Ec({
8279
+ var Qh = wc({
8280
8280
  chartName: "ComposedChart",
8281
- GraphicalChild: [ma, kc, pa, $r],
8281
+ GraphicalChild: [ma, _c, pa, $r],
8282
8282
  axisComponents: [{
8283
8283
  axisType: "xAxis",
8284
8284
  AxisComp: ga
@@ -8289,7 +8289,7 @@ var Qh = Ec({
8289
8289
  axisType: "zAxis",
8290
8290
  AxisComp: zn
8291
8291
  }],
8292
- formatAxisMap: Sc
8292
+ formatAxisMap: Cc
8293
8293
  });
8294
8294
  const ef = (r) => {
8295
8295
  const e = (t) => {
@@ -8318,14 +8318,14 @@ const ef = (r) => {
8318
8318
  }, tf = ({ dataConfig: r, data: e, xAxis: t, yAxis: n = {
8319
8319
  hide: !0
8320
8320
  }, label: i = !1, hideTooltip: s = !1, hideGrid: a = !1, aspect: o, legend: l, showValueUnderLabel: c = !1, bar: d, line: u, scatter: h, onClick: p }, g) => {
8321
- const b = Dc(e), _ = d?.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], O = u?.categories ? Array.isArray(u.categories) ? u.categories : [u.categories] : [], D = h?.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], S = [..._, ...O, ...D], I = Math.max(...b.flatMap((C) => S.map((N) => Rc(n?.tickFormatter ? n.tickFormatter(`${C[N]}`) : `${C[N]}`)))), x = [d, u, h].filter((C) => C?.axisPosition === "left"), E = [d, u, h].filter((C) => C?.axisPosition === "right");
8322
- return f(Nc, {
8321
+ const x = Ec(e), k = d?.categories ? Array.isArray(d.categories) ? d.categories : [d.categories] : [], T = u?.categories ? Array.isArray(u.categories) ? u.categories : [u.categories] : [], D = h?.categories ? Array.isArray(h.categories) ? h.categories : [h.categories] : [], S = [...k, ...T, ...D], I = Math.max(...x.flatMap((_) => S.map((N) => kc(n?.tickFormatter ? n.tickFormatter(`${_[N]}`) : `${_[N]}`)))), y = [d, u, h].filter((_) => _?.axisPosition === "left"), C = [d, u, h].filter((_) => _?.axisPosition === "right");
8322
+ return f(Sc, {
8323
8323
  config: r,
8324
8324
  ref: g,
8325
8325
  aspect: o,
8326
8326
  children: V(Qh, {
8327
8327
  accessibilityLayer: !0,
8328
- data: b,
8328
+ data: x,
8329
8329
  margin: {
8330
8330
  left: n && !n.hide ? 0 : 12,
8331
8331
  right: 12,
@@ -8333,51 +8333,51 @@ const ef = (r) => {
8333
8333
  bottom: c ? 24 : 12
8334
8334
  },
8335
8335
  stackOffset: void 0,
8336
- onClick: (C) => {
8337
- if (!p || !C.activeLabel || !C.activePayload)
8336
+ onClick: (_) => {
8337
+ if (!p || !_.activeLabel || !_.activePayload)
8338
8338
  return;
8339
8339
  const N = {
8340
- label: C.activeLabel,
8340
+ label: _.activeLabel,
8341
8341
  values: {}
8342
8342
  };
8343
- for (const $ of C.activePayload)
8343
+ for (const $ of _.activePayload)
8344
8344
  N.values[$.name] = $.value;
8345
8345
  p(N);
8346
8346
  },
8347
- children: [!s && f(Ac, {
8348
- ...Tc(),
8349
- content: f(Oc, {
8347
+ children: [!s && f(Dc, {
8348
+ ...Rc(),
8349
+ content: f(Nc, {
8350
8350
  yAxisFormatter: n.tickFormatter
8351
8351
  })
8352
- }), !a && f(Mc, {
8353
- ...Ic()
8354
- }), x.length > 0 && f(ii, {
8352
+ }), !a && f(Ac, {
8353
+ ...Tc()
8354
+ }), y.length > 0 && f(ii, {
8355
8355
  ...Xi(n),
8356
8356
  tick: !0,
8357
- width: n.width ?? I + 20 + (E.length > 0 && x[0]?.axisLabel ? 20 : 0),
8358
- hide: n.hide || x.some((C) => C?.hideAxis),
8359
- label: x[0]?.axisLabel ? {
8360
- value: x[0].axisLabel,
8357
+ width: n.width ?? I + 20 + (C.length > 0 && y[0]?.axisLabel ? 20 : 0),
8358
+ hide: n.hide || y.some((_) => _?.hideAxis),
8359
+ label: y[0]?.axisLabel ? {
8360
+ value: y[0].axisLabel,
8361
8361
  angle: -90,
8362
8362
  position: "insideLeft"
8363
8363
  } : void 0
8364
- }), E.length > 0 && f(ii, {
8364
+ }), C.length > 0 && f(ii, {
8365
8365
  ...Xi(n),
8366
8366
  yAxisId: "right",
8367
8367
  orientation: "right",
8368
8368
  tick: !0,
8369
- width: n.width ?? I + 20 + (x.length > 0 && E[0]?.axisLabel ? 20 : 0),
8370
- hide: n.hide || E.some((C) => C?.hideAxis),
8371
- label: E[0]?.axisLabel ? {
8372
- value: E[0].axisLabel,
8369
+ width: n.width ?? I + 20 + (y.length > 0 && C[0]?.axisLabel ? 20 : 0),
8370
+ hide: n.hide || C.some((_) => _?.hideAxis),
8371
+ label: C[0]?.axisLabel ? {
8372
+ value: C[0].axisLabel,
8373
8373
  angle: 90,
8374
8374
  position: "insideRight"
8375
8375
  } : void 0
8376
8376
  }), f(ga, {
8377
- ...Lc(t),
8377
+ ...Oc(t),
8378
8378
  hide: t?.hide,
8379
- tick: c ? (C) => {
8380
- const { x: N, y: $, payload: z } = C, R = e.find((W) => W.label === z.value)?.values || "", k = Object.keys(R).length === 1 ? Object.values(R)?.[0] : void 0, A = k !== void 0 && n.tickFormatter ? n.tickFormatter(`${k}`) : k.toLocaleString();
8379
+ tick: c ? (_) => {
8380
+ const { x: N, y: $, payload: z } = _, R = e.find((W) => W.label === z.value)?.values || "", E = Object.keys(R).length === 1 ? Object.values(R)?.[0] : void 0, A = E !== void 0 && n.tickFormatter ? n.tickFormatter(`${E}`) : E.toLocaleString();
8381
8381
  return V("g", {
8382
8382
  transform: `translate(${N},${$})`,
8383
8383
  children: [f("text", {
@@ -8387,7 +8387,7 @@ const ef = (r) => {
8387
8387
  textAnchor: "middle",
8388
8388
  className: "text-sm font-medium !text-f1-foreground-secondary",
8389
8389
  children: z.value
8390
- }), !!k && f("text", {
8390
+ }), !!E && f("text", {
8391
8391
  x: 0,
8392
8392
  y: 0,
8393
8393
  dy: 28,
@@ -8397,10 +8397,10 @@ const ef = (r) => {
8397
8397
  })]
8398
8398
  });
8399
8399
  } : void 0
8400
- }), _.map((C, N) => f(pa, {
8400
+ }), k.map((_, N) => f(pa, {
8401
8401
  isAnimationActive: !1,
8402
- dataKey: String(C),
8403
- fill: r[C].color ? xr(r[C].color) : Wn(N),
8402
+ dataKey: String(_),
8403
+ fill: r[_].color ? xr(r[_].color) : Wn(N),
8404
8404
  radius: 4,
8405
8405
  maxBarSize: 32,
8406
8406
  children: i && f(fa, {
@@ -8408,24 +8408,24 @@ const ef = (r) => {
8408
8408
  offset: 10,
8409
8409
  className: "fill-f1-foreground",
8410
8410
  fontSize: 12
8411
- }, `label-${String(C)}`)
8412
- }, `bar-${String(C)}`)), O.map((C, N) => f(ma, {
8411
+ }, `label-${String(_)}`)
8412
+ }, `bar-${String(_)}`)), T.map((_, N) => f(ma, {
8413
8413
  type: u?.lineType ?? "natural",
8414
- dataKey: String(C),
8415
- stroke: r[C].color ? xr(r[C].color) : Wn(_.length + N),
8414
+ dataKey: String(_),
8415
+ stroke: r[_].color ? xr(r[_].color) : Wn(k.length + N),
8416
8416
  strokeWidth: 2,
8417
8417
  dot: u?.dot ?? !1,
8418
8418
  isAnimationActive: !1,
8419
8419
  yAxisId: u?.axisPosition === "right" ? "right" : void 0
8420
- }, `line-${String(C)}`)), D.map((C, N) => f($r, {
8421
- dataKey: String(C),
8422
- fill: r[C].color ? xr(r[C].color) : Wn(_.length + O.length + N),
8420
+ }, `line-${String(_)}`)), D.map((_, N) => f($r, {
8421
+ dataKey: String(_),
8422
+ fill: r[_].color ? xr(r[_].color) : Wn(k.length + T.length + N),
8423
8423
  r: 4,
8424
8424
  isAnimationActive: !1,
8425
8425
  yAxisId: h?.axisPosition === "right" ? "right" : void 0,
8426
- shape: ef(String(C))
8427
- }, `scatter-${String(C)}`)), l && f(Pc, {
8428
- content: f(zc, {
8426
+ shape: ef(String(_))
8427
+ }, `scatter-${String(_)}`)), l && f(Mc, {
8428
+ content: f(Ic, {
8429
8429
  nameKey: "label"
8430
8430
  }),
8431
8431
  align: "center",
@@ -8442,7 +8442,7 @@ const ef = (r) => {
8442
8442
  "aria-live": "polite",
8443
8443
  children: [f("div", {
8444
8444
  className: "flex-grow",
8445
- children: f(Fc, {
8445
+ children: f(Lc, {
8446
8446
  color: s,
8447
8447
  value: a,
8448
8448
  className: "w-full",
@@ -8461,37 +8461,37 @@ const ef = (r) => {
8461
8461
  name: "AreaChart",
8462
8462
  type: "info"
8463
8463
  },
8464
- Bc
8464
+ Pc
8465
8465
  ), qp = at(
8466
8466
  {
8467
8467
  name: "BarChart",
8468
8468
  type: "info"
8469
8469
  },
8470
- Hc
8471
- ), Yp = at(
8470
+ zc
8471
+ ), Kp = at(
8472
8472
  {
8473
8473
  name: "CategoryBarChart",
8474
8474
  type: "info"
8475
8475
  },
8476
- Vc
8477
- ), Kp = at(
8476
+ Fc
8477
+ ), Yp = at(
8478
8478
  {
8479
8479
  name: "LineChart",
8480
8480
  type: "info"
8481
8481
  },
8482
- jc
8482
+ Bc
8483
8483
  ), Xp = at(
8484
8484
  {
8485
8485
  name: "PieChart",
8486
8486
  type: "info"
8487
8487
  },
8488
- $c
8488
+ Hc
8489
8489
  ), Jp = at(
8490
8490
  {
8491
8491
  name: "VerticalBarChart",
8492
8492
  type: "info"
8493
8493
  },
8494
- Wc
8494
+ Vc
8495
8495
  ), Qp = at(
8496
8496
  {
8497
8497
  name: "ProgressBarChart",
@@ -8511,11 +8511,11 @@ const ef = (r) => {
8511
8511
  show: r.show ?? !0,
8512
8512
  invertStatus: r.invertStatus ?? !1
8513
8513
  }, co = ({ label: r, ...e }) => {
8514
- const t = Gc(), n = t(e.value, {
8514
+ const t = jc(), n = t(e.value, {
8515
8515
  formatterOptions: {
8516
8516
  decimalPlaces: 2
8517
8517
  }
8518
- }), i = af(e.trend), s = t(e.comparison), a = Uc(n.numericValue, n.formatterOptions), o = Ji(s.numericValue), l = Ji(n.numericValue), c = q(() => {
8518
+ }), i = af(e.trend), s = t(e.comparison), a = $c(n.numericValue, n.formatterOptions), o = Ji(s.numericValue), l = Ji(n.numericValue), c = q(() => {
8519
8519
  if (!(!o || !i.show) && !(!o || !l))
8520
8520
  return (l - o) / o * 100;
8521
8521
  }, [l, o, i.show]);
@@ -8528,7 +8528,7 @@ const ef = (r) => {
8528
8528
  children: [f("span", {
8529
8529
  className: "font-bold text-2xl",
8530
8530
  children: a
8531
- }), o !== void 0 && f(Zc, {
8531
+ }), o !== void 0 && f(Wc, {
8532
8532
  percentage: c,
8533
8533
  amount: s,
8534
8534
  invertStatus: i.invertStatus,
@@ -8550,7 +8550,7 @@ const ef = (r) => {
8550
8550
  })]
8551
8551
  });
8552
8552
  co.displayName = "F0BigNumber";
8553
- const lf = Ks(co, of), tg = it("F0BigNumber", lf), uo = {
8553
+ const lf = Ys(co, of), tg = it("F0BigNumber", lf), uo = {
8554
8554
  background: {
8555
8555
  transparent: "bg-transparent",
8556
8556
  primary: "bg-f1-background",
@@ -9412,8 +9412,8 @@ const Ef = Vt({
9412
9412
  ...cf,
9413
9413
  ...bf
9414
9414
  }
9415
- }), kf = ["sm", "md", "lg", "xl"], wo = We(({ display: r, position: e, padding: t, paddingX: n, paddingY: i, paddingTop: s, paddingBottom: a, paddingLeft: o, paddingRight: l, margin: c, marginX: d, marginY: u, marginTop: h, marginBottom: p, marginLeft: g, marginRight: b, gap: _, columns: O, rows: D, colSpan: S, colStart: I, rowSpan: x, width: E, height: C, minWidth: N, minHeight: $, maxWidth: z, maxHeight: R, background: k, borderColor: A, border: W, borderTop: ie, borderBottom: ce, borderLeft: ne, borderRight: ve, borderRadius: X, borderRadiusTopLeft: xe, borderRadiusTopRight: Ge, borderRadiusBottomLeft: ye, borderRadiusBottomRight: Pe, borderStyle: Re, overflow: Te, overflowX: Ee, overflowY: Ve, divider: me, dividerColor: we, alignItems: le, justifyContent: Je, flexDirection: Oe, flexWrap: Me, grow: Ie, shrink: Ue, sm: lt, md: Et, lg: m, xl: v, ...w }, M) => {
9416
- const L = ie && ie !== "none" || ce && ce !== "none" || ne && ne !== "none" || ve && ve !== "none", T = W && W !== "none" || L, j = {
9415
+ }), kf = ["sm", "md", "lg", "xl"], wo = We(({ display: r, position: e, padding: t, paddingX: n, paddingY: i, paddingTop: s, paddingBottom: a, paddingLeft: o, paddingRight: l, margin: c, marginX: d, marginY: u, marginTop: h, marginBottom: p, marginLeft: g, marginRight: x, gap: k, columns: T, rows: D, colSpan: S, colStart: I, rowSpan: y, width: C, height: _, minWidth: N, minHeight: $, maxWidth: z, maxHeight: R, background: E, borderColor: A, border: W, borderTop: ie, borderBottom: ce, borderLeft: ne, borderRight: ve, borderRadius: X, borderRadiusTopLeft: xe, borderRadiusTopRight: Ge, borderRadiusBottomLeft: ye, borderRadiusBottomRight: Pe, borderStyle: Re, overflow: Te, overflowX: Ee, overflowY: Ve, divider: me, dividerColor: we, alignItems: le, justifyContent: Je, flexDirection: Oe, flexWrap: Me, grow: Ie, shrink: Ue, sm: lt, md: Et, lg: m, xl: v, ...w }, M) => {
9416
+ const L = ie && ie !== "none" || ce && ce !== "none" || ne && ne !== "none" || ve && ve !== "none", O = W && W !== "none" || L, j = {
9417
9417
  sm: lt,
9418
9418
  md: Et,
9419
9419
  lg: m,
@@ -9440,20 +9440,20 @@ const Ef = Vt({
9440
9440
  marginTop: h,
9441
9441
  marginBottom: p,
9442
9442
  marginLeft: g,
9443
- marginRight: b,
9444
- gap: _,
9445
- columns: O,
9443
+ marginRight: x,
9444
+ gap: k,
9445
+ columns: T,
9446
9446
  rows: D,
9447
9447
  colSpan: S,
9448
9448
  colStart: I,
9449
- rowSpan: x,
9450
- width: E,
9451
- height: C,
9449
+ rowSpan: y,
9450
+ width: C,
9451
+ height: _,
9452
9452
  minWidth: N,
9453
9453
  minHeight: $,
9454
9454
  maxWidth: z,
9455
9455
  maxHeight: R,
9456
- background: k,
9456
+ background: E,
9457
9457
  borderColor: A,
9458
9458
  border: W,
9459
9459
  borderTop: ie,
@@ -9477,7 +9477,7 @@ const Ef = Vt({
9477
9477
  flexWrap: Me,
9478
9478
  grow: Ie,
9479
9479
  shrink: Ue
9480
- }), Q, T && !A && "border-f1-border", me && !we && "divide-f1-border", "scrollbar-macos"),
9480
+ }), Q, O && !A && "border-f1-border", me && !we && "divide-f1-border", "scrollbar-macos"),
9481
9481
  ...w
9482
9482
  });
9483
9483
  });
@@ -9588,7 +9588,7 @@ const ug = it("F0ChipList", _o), hg = El, Sf = Vt({
9588
9588
  variant: "info"
9589
9589
  }
9590
9590
  }), fg = ({ title: r, description: e, action: t, link: n, icon: i, variant: s = "neutral" }) => {
9591
- const a = Y(null);
9591
+ const a = K(null);
9592
9592
  return f("div", {
9593
9593
  ref: a,
9594
9594
  className: "@container",
@@ -9605,7 +9605,7 @@ const ug = it("F0ChipList", _o), hg = El, Sf = Vt({
9605
9605
  children: s === "neutral" ? f(kl, {
9606
9606
  icon: i || Sl,
9607
9607
  size: "sm"
9608
- }) : f(qc, {
9608
+ }) : f(Gc, {
9609
9609
  type: s,
9610
9610
  size: "sm"
9611
9611
  })
@@ -9642,35 +9642,35 @@ const ug = it("F0ChipList", _o), hg = El, Sf = Vt({
9642
9642
  });
9643
9643
  }, Rf = 388;
9644
9644
  function Nf({ filters: r, value: e, onChange: t, height: n, width: i = 600, className: s, showApplyButton: a = !0, applyButtonLabel: o }) {
9645
- const l = zr(), [c, d] = re(null), [u, h] = re(e);
9645
+ const l = zr(), c = Object.keys(r)[0] ?? null, [d, u] = re(c), [h, p] = re(e);
9646
9646
  J(() => {
9647
- h(e);
9647
+ p(e);
9648
9648
  }, [e]), J(() => {
9649
- if (!c && r) {
9650
- const _ = Object.keys(r);
9651
- if (_.length > 0) {
9652
- const O = _.find((D) => {
9653
- const S = u[D], I = Zi(r[D].type);
9654
- return S !== void 0 && !I.isEmpty(S, {
9655
- schema: r[D],
9649
+ if (!d && r) {
9650
+ const T = Object.keys(r);
9651
+ if (T.length > 0) {
9652
+ const D = T.find((S) => {
9653
+ const I = h[S], y = Zi(r[S].type);
9654
+ return I !== void 0 && !y.isEmpty(I, {
9655
+ schema: r[S],
9656
9656
  i18n: l
9657
9657
  });
9658
9658
  });
9659
- d(O ?? _[0]);
9659
+ u(D ?? T[0]);
9660
9660
  }
9661
9661
  }
9662
- }, [r, c, u, l]);
9663
- const p = (_, O) => {
9664
- const D = {
9665
- ...u,
9666
- [_]: O
9662
+ }, [r, d, h, l]);
9663
+ const g = (T, D) => {
9664
+ const S = {
9665
+ ...h,
9666
+ [T]: D
9667
9667
  };
9668
- h(D), a || t(D);
9669
- }, g = () => {
9670
- t(u);
9671
- }, b = q(() => n || Object.entries(r).reduce((O, [D, S]) => {
9672
- const I = Zi(S.type);
9673
- return Math.max(O, I?.formHeight || Rf);
9668
+ p(S), a || t(S);
9669
+ }, x = () => {
9670
+ t(h);
9671
+ }, k = q(() => n || Object.entries(r).reduce((D, [S, I]) => {
9672
+ const y = Zi(I.type);
9673
+ return Math.max(D, y?.formHeight || Rf);
9674
9674
  }, 0), [r, n]);
9675
9675
  return !r || Object.keys(r).length === 0 ? null : f("div", {
9676
9676
  className: se("overflow-hidden rounded-xl border border-solid border-f1-border-secondary bg-f1-background", s),
@@ -9679,12 +9679,12 @@ function Nf({ filters: r, value: e, onChange: t, height: n, width: i = 600, clas
9679
9679
  },
9680
9680
  children: f(Rl, {
9681
9681
  filters: r,
9682
- tempFilters: u,
9683
- selectedFilterKey: c,
9684
- onFilterSelect: d,
9685
- onFilterChange: p,
9686
- onApply: g,
9687
- height: b,
9682
+ tempFilters: h,
9683
+ selectedFilterKey: d,
9684
+ onFilterSelect: u,
9685
+ onFilterChange: g,
9686
+ onApply: x,
9687
+ height: k,
9688
9688
  showApplyButton: a,
9689
9689
  applyButtonLabel: o
9690
9690
  })
@@ -9891,9 +9891,9 @@ function Lf(r) {
9891
9891
  i._fields
9892
9892
  ]);
9893
9893
  return B.useEffect(() => {
9894
- const h = i._options.shouldUnregister || s, p = (g, b) => {
9895
- const _ = F(i._fields, g);
9896
- _ && _._f && (_._f.mount = b);
9894
+ const h = i._options.shouldUnregister || s, p = (g, x) => {
9895
+ const k = F(i._fields, g);
9896
+ k && k._f && (k._f.mount = x);
9897
9897
  };
9898
9898
  if (p(t, !0), h) {
9899
9899
  const g = je(F(i._options.defaultValues, t));
@@ -9991,85 +9991,85 @@ var Xt = (r) => Ce(r) && !yn(r) ? r : {
9991
9991
  value: r,
9992
9992
  message: ""
9993
9993
  }, ks = async (r, e, t, n, i, s) => {
9994
- const { ref: a, refs: o, required: l, maxLength: c, minLength: d, min: u, max: h, pattern: p, validate: g, name: b, valueAsNumber: _, mount: O } = r._f, D = F(t, b);
9995
- if (!O || e.has(b))
9994
+ const { ref: a, refs: o, required: l, maxLength: c, minLength: d, min: u, max: h, pattern: p, validate: g, name: x, valueAsNumber: k, mount: T } = r._f, D = F(t, x);
9995
+ if (!T || e.has(x))
9996
9996
  return {};
9997
- const S = o ? o[0] : a, I = (k) => {
9998
- i && S.reportValidity && (S.setCustomValidity(nt(k) ? "" : k || ""), S.reportValidity());
9999
- }, x = {}, E = Bi(a), C = Wr(a), N = E || C, $ = (_ || Fi(a)) && _e(a.value) && _e(D) || vn(a) && a.value === "" || D === "" || Array.isArray(D) && !D.length, z = Oo.bind(null, b, n, x), R = (k, A, W, ie = St.maxLength, ce = St.minLength) => {
10000
- const ne = k ? A : W;
10001
- x[b] = {
10002
- type: k ? ie : ce,
9997
+ const S = o ? o[0] : a, I = (E) => {
9998
+ i && S.reportValidity && (S.setCustomValidity(nt(E) ? "" : E || ""), S.reportValidity());
9999
+ }, y = {}, C = Bi(a), _ = Wr(a), N = C || _, $ = (k || Fi(a)) && _e(a.value) && _e(D) || vn(a) && a.value === "" || D === "" || Array.isArray(D) && !D.length, z = Oo.bind(null, x, n, y), R = (E, A, W, ie = St.maxLength, ce = St.minLength) => {
10000
+ const ne = E ? A : W;
10001
+ y[x] = {
10002
+ type: E ? ie : ce,
10003
10003
  message: ne,
10004
10004
  ref: a,
10005
- ...z(k ? ie : ce, ne)
10005
+ ...z(E ? ie : ce, ne)
10006
10006
  };
10007
10007
  };
10008
- if (s ? !Array.isArray(D) || !D.length : l && (!N && ($ || Be(D)) || nt(D) && !D || C && !Mo(o).isValid || E && !Io(o).isValid)) {
10009
- const { value: k, message: A } = Qr(l) ? { value: !!l, message: l } : Xt(l);
10010
- if (k && (x[b] = {
10008
+ if (s ? !Array.isArray(D) || !D.length : l && (!N && ($ || Be(D)) || nt(D) && !D || _ && !Mo(o).isValid || C && !Io(o).isValid)) {
10009
+ const { value: E, message: A } = Qr(l) ? { value: !!l, message: l } : Xt(l);
10010
+ if (E && (y[x] = {
10011
10011
  type: St.required,
10012
10012
  message: A,
10013
10013
  ref: S,
10014
10014
  ...z(St.required, A)
10015
10015
  }, !n))
10016
- return I(A), x;
10016
+ return I(A), y;
10017
10017
  }
10018
10018
  if (!$ && (!Be(u) || !Be(h))) {
10019
- let k, A;
10019
+ let E, A;
10020
10020
  const W = Xt(h), ie = Xt(u);
10021
10021
  if (!Be(D) && !isNaN(D)) {
10022
10022
  const ce = a.valueAsNumber || D && +D;
10023
- Be(W.value) || (k = ce > W.value), Be(ie.value) || (A = ce < ie.value);
10023
+ Be(W.value) || (E = ce > W.value), Be(ie.value) || (A = ce < ie.value);
10024
10024
  } else {
10025
10025
  const ce = a.valueAsDate || new Date(D), ne = (xe) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + xe), ve = a.type == "time", X = a.type == "week";
10026
- wt(W.value) && D && (k = ve ? ne(D) > ne(W.value) : X ? D > W.value : ce > new Date(W.value)), wt(ie.value) && D && (A = ve ? ne(D) < ne(ie.value) : X ? D < ie.value : ce < new Date(ie.value));
10026
+ wt(W.value) && D && (E = ve ? ne(D) > ne(W.value) : X ? D > W.value : ce > new Date(W.value)), wt(ie.value) && D && (A = ve ? ne(D) < ne(ie.value) : X ? D < ie.value : ce < new Date(ie.value));
10027
10027
  }
10028
- if ((k || A) && (R(!!k, W.message, ie.message, St.max, St.min), !n))
10029
- return I(x[b].message), x;
10028
+ if ((E || A) && (R(!!E, W.message, ie.message, St.max, St.min), !n))
10029
+ return I(y[x].message), y;
10030
10030
  }
10031
10031
  if ((c || d) && !$ && (wt(D) || s && Array.isArray(D))) {
10032
- const k = Xt(c), A = Xt(d), W = !Be(k.value) && D.length > +k.value, ie = !Be(A.value) && D.length < +A.value;
10033
- if ((W || ie) && (R(W, k.message, A.message), !n))
10034
- return I(x[b].message), x;
10032
+ const E = Xt(c), A = Xt(d), W = !Be(E.value) && D.length > +E.value, ie = !Be(A.value) && D.length < +A.value;
10033
+ if ((W || ie) && (R(W, E.message, A.message), !n))
10034
+ return I(y[x].message), y;
10035
10035
  }
10036
10036
  if (p && !$ && wt(D)) {
10037
- const { value: k, message: A } = Xt(p);
10038
- if (yn(k) && !D.match(k) && (x[b] = {
10037
+ const { value: E, message: A } = Xt(p);
10038
+ if (yn(E) && !D.match(E) && (y[x] = {
10039
10039
  type: St.pattern,
10040
10040
  message: A,
10041
10041
  ref: a,
10042
10042
  ...z(St.pattern, A)
10043
10043
  }, !n))
10044
- return I(A), x;
10044
+ return I(A), y;
10045
10045
  }
10046
10046
  if (g) {
10047
10047
  if (xt(g)) {
10048
- const k = await g(D, t), A = Es(k, S);
10049
- if (A && (x[b] = {
10048
+ const E = await g(D, t), A = Es(E, S);
10049
+ if (A && (y[x] = {
10050
10050
  ...A,
10051
10051
  ...z(St.validate, A.message)
10052
10052
  }, !n))
10053
- return I(A.message), x;
10053
+ return I(A.message), y;
10054
10054
  } else if (Ce(g)) {
10055
- let k = {};
10055
+ let E = {};
10056
10056
  for (const A in g) {
10057
- if (!$e(k) && !n)
10057
+ if (!$e(E) && !n)
10058
10058
  break;
10059
10059
  const W = Es(await g[A](D, t), S, A);
10060
- W && (k = {
10060
+ W && (E = {
10061
10061
  ...W,
10062
10062
  ...z(A, W.message)
10063
- }, I(W.message), n && (x[b] = k));
10063
+ }, I(W.message), n && (y[x] = E));
10064
10064
  }
10065
- if (!$e(k) && (x[b] = {
10065
+ if (!$e(E) && (y[x] = {
10066
10066
  ref: S,
10067
- ...k
10067
+ ...E
10068
10068
  }, !n))
10069
- return x;
10069
+ return y;
10070
10070
  }
10071
10071
  }
10072
- return I(!0), x;
10072
+ return I(!0), y;
10073
10073
  };
10074
10074
  function Ff(r, e) {
10075
10075
  const t = e.slice(0, -1).length;
@@ -10088,7 +10088,7 @@ function Se(r, e) {
10088
10088
  const t = Array.isArray(e) ? e : Pi(e) ? [e] : So(e), n = t.length === 1 ? r : Ff(r, t), i = t.length - 1, s = t[i];
10089
10089
  return n && delete n[s], i !== 0 && (Ce(n) && $e(n) || Array.isArray(n) && Bf(n)) && Se(r, t.slice(0, -1)), r;
10090
10090
  }
10091
- var Kn = () => {
10091
+ var Yn = () => {
10092
10092
  let r = [];
10093
10093
  return {
10094
10094
  get observers() {
@@ -10235,42 +10235,42 @@ function Zf(r = {}) {
10235
10235
  isValid: !1,
10236
10236
  errors: !1
10237
10237
  }, u = {
10238
- values: Kn(),
10239
- array: Kn(),
10240
- state: Kn()
10241
- }, h = bs(e.mode), p = bs(e.reValidateMode), g = e.criteriaMode === ct.all, b = (m) => (v) => {
10238
+ values: Yn(),
10239
+ array: Yn(),
10240
+ state: Yn()
10241
+ }, h = bs(e.mode), p = bs(e.reValidateMode), g = e.criteriaMode === ct.all, x = (m) => (v) => {
10242
10242
  clearTimeout(c), c = setTimeout(m, v);
10243
- }, _ = async (m) => {
10243
+ }, k = async (m) => {
10244
10244
  if (!e.disabled && (d.isValid || m)) {
10245
10245
  const v = e.resolver ? $e((await N()).errors) : await z(n, !0);
10246
10246
  v !== t.isValid && u.state.next({
10247
10247
  isValid: v
10248
10248
  });
10249
10249
  }
10250
- }, O = (m, v) => {
10250
+ }, T = (m, v) => {
10251
10251
  !e.disabled && (d.isValidating || d.validatingFields) && ((m || Array.from(o.mount)).forEach((w) => {
10252
10252
  w && (v ? fe(t.validatingFields, w, v) : Se(t.validatingFields, w));
10253
10253
  }), u.state.next({
10254
10254
  validatingFields: t.validatingFields,
10255
10255
  isValidating: !$e(t.validatingFields)
10256
10256
  }));
10257
- }, D = (m, v = [], w, M, L = !0, T = !0) => {
10257
+ }, D = (m, v = [], w, M, L = !0, O = !0) => {
10258
10258
  if (M && w && !e.disabled) {
10259
- if (a.action = !0, T && Array.isArray(F(n, m))) {
10259
+ if (a.action = !0, O && Array.isArray(F(n, m))) {
10260
10260
  const j = w(F(n, m), M.argA, M.argB);
10261
10261
  L && fe(n, m, j);
10262
10262
  }
10263
- if (T && Array.isArray(F(t.errors, m))) {
10263
+ if (O && Array.isArray(F(t.errors, m))) {
10264
10264
  const j = w(F(t.errors, m), M.argA, M.argB);
10265
10265
  L && fe(t.errors, m, j), Gf(t.errors, m);
10266
10266
  }
10267
- if (d.touchedFields && T && Array.isArray(F(t.touchedFields, m))) {
10267
+ if (d.touchedFields && O && Array.isArray(F(t.touchedFields, m))) {
10268
10268
  const j = w(F(t.touchedFields, m), M.argA, M.argB);
10269
10269
  L && fe(t.touchedFields, m, j);
10270
10270
  }
10271
10271
  d.dirtyFields && (t.dirtyFields = vr(i, s)), u.state.next({
10272
10272
  name: m,
10273
- isDirty: k(m, v),
10273
+ isDirty: E(m, v),
10274
10274
  dirtyFields: t.dirtyFields,
10275
10275
  errors: t.errors,
10276
10276
  isValid: t.isValid
@@ -10286,37 +10286,37 @@ function Zf(r = {}) {
10286
10286
  errors: t.errors,
10287
10287
  isValid: !1
10288
10288
  });
10289
- }, x = (m, v, w, M) => {
10289
+ }, y = (m, v, w, M) => {
10290
10290
  const L = F(n, m);
10291
10291
  if (L) {
10292
- const T = F(s, m, _e(w) ? F(i, m) : w);
10293
- _e(T) || M && M.defaultChecked || v ? fe(s, m, v ? T : Jn(L._f)) : ie(m, T), a.mount && _();
10292
+ const O = F(s, m, _e(w) ? F(i, m) : w);
10293
+ _e(O) || M && M.defaultChecked || v ? fe(s, m, v ? O : Jn(L._f)) : ie(m, O), a.mount && k();
10294
10294
  }
10295
- }, E = (m, v, w, M, L) => {
10296
- let T = !1, j = !1;
10295
+ }, C = (m, v, w, M, L) => {
10296
+ let O = !1, j = !1;
10297
10297
  const Q = {
10298
10298
  name: m
10299
10299
  };
10300
10300
  if (!e.disabled) {
10301
10301
  const be = !!(F(n, m) && F(n, m)._f && F(n, m)._f.disabled);
10302
10302
  if (!w || M) {
10303
- d.isDirty && (j = t.isDirty, t.isDirty = Q.isDirty = k(), T = j !== Q.isDirty);
10303
+ d.isDirty && (j = t.isDirty, t.isDirty = Q.isDirty = E(), O = j !== Q.isDirty);
10304
10304
  const pe = be || Lt(F(i, m), v);
10305
- j = !!(!be && F(t.dirtyFields, m)), pe || be ? Se(t.dirtyFields, m) : fe(t.dirtyFields, m, !0), Q.dirtyFields = t.dirtyFields, T = T || d.dirtyFields && j !== !pe;
10305
+ j = !!(!be && F(t.dirtyFields, m)), pe || be ? Se(t.dirtyFields, m) : fe(t.dirtyFields, m, !0), Q.dirtyFields = t.dirtyFields, O = O || d.dirtyFields && j !== !pe;
10306
10306
  }
10307
10307
  if (w) {
10308
10308
  const pe = F(t.touchedFields, m);
10309
- pe || (fe(t.touchedFields, m, w), Q.touchedFields = t.touchedFields, T = T || d.touchedFields && pe !== w);
10309
+ pe || (fe(t.touchedFields, m, w), Q.touchedFields = t.touchedFields, O = O || d.touchedFields && pe !== w);
10310
10310
  }
10311
- T && L && u.state.next(Q);
10311
+ O && L && u.state.next(Q);
10312
10312
  }
10313
- return T ? Q : {};
10314
- }, C = (m, v, w, M) => {
10315
- const L = F(t.errors, m), T = d.isValid && nt(v) && t.isValid !== v;
10316
- if (e.delayError && w ? (l = b(() => S(m, w)), l(e.delayError)) : (clearTimeout(c), l = null, w ? fe(t.errors, m, w) : Se(t.errors, m)), (w ? !Lt(L, w) : L) || !$e(M) || T) {
10313
+ return O ? Q : {};
10314
+ }, _ = (m, v, w, M) => {
10315
+ const L = F(t.errors, m), O = d.isValid && nt(v) && t.isValid !== v;
10316
+ if (e.delayError && w ? (l = x(() => S(m, w)), l(e.delayError)) : (clearTimeout(c), l = null, w ? fe(t.errors, m, w) : Se(t.errors, m)), (w ? !Lt(L, w) : L) || !$e(M) || O) {
10317
10317
  const j = {
10318
10318
  ...M,
10319
- ...T && nt(v) ? { isValid: v } : {},
10319
+ ...O && nt(v) ? { isValid: v } : {},
10320
10320
  errors: t.errors,
10321
10321
  name: m
10322
10322
  };
@@ -10326,9 +10326,9 @@ function Zf(r = {}) {
10326
10326
  }, u.state.next(j);
10327
10327
  }
10328
10328
  }, N = async (m) => {
10329
- O(m, !0);
10329
+ T(m, !0);
10330
10330
  const v = await e.resolver(s, e.context, Vf(m || o.mount, n, e.criteriaMode, e.shouldUseNativeValidation));
10331
- return O(m), v;
10331
+ return T(m), v;
10332
10332
  }, $ = async (m) => {
10333
10333
  const { errors: v } = await N(m);
10334
10334
  if (m)
@@ -10345,14 +10345,14 @@ function Zf(r = {}) {
10345
10345
  for (const M in m) {
10346
10346
  const L = m[M];
10347
10347
  if (L) {
10348
- const { _f: T, ...j } = L;
10349
- if (T) {
10350
- const Q = o.array.has(T.name), be = L._f && jf(L._f);
10351
- be && d.validatingFields && O([M], !0);
10348
+ const { _f: O, ...j } = L;
10349
+ if (O) {
10350
+ const Q = o.array.has(O.name), be = L._f && jf(L._f);
10351
+ be && d.validatingFields && T([M], !0);
10352
10352
  const pe = await ks(L, o.disabled, s, g, e.shouldUseNativeValidation && !v, Q);
10353
- if (be && d.validatingFields && O([M]), pe[T.name] && (w.valid = !1, v))
10353
+ if (be && d.validatingFields && T([M]), pe[O.name] && (w.valid = !1, v))
10354
10354
  break;
10355
- !v && (F(pe, T.name) ? Q ? zf(t.errors, pe, T.name) : fe(t.errors, T.name, pe[T.name]) : Se(t.errors, T.name));
10355
+ !v && (F(pe, O.name) ? Q ? zf(t.errors, pe, O.name) : fe(t.errors, O.name, pe[O.name]) : Se(t.errors, O.name));
10356
10356
  }
10357
10357
  !$e(j) && await z(j, v, w);
10358
10358
  }
@@ -10364,34 +10364,34 @@ function Zf(r = {}) {
10364
10364
  v && (v._f.refs ? v._f.refs.every((w) => !Xn(w)) : !Xn(v._f.ref)) && Ee(m);
10365
10365
  }
10366
10366
  o.unMount = /* @__PURE__ */ new Set();
10367
- }, k = (m, v) => !e.disabled && (m && v && fe(s, m, v), !Lt(Ge(), i)), A = (m, v, w) => To(m, o, {
10367
+ }, E = (m, v) => !e.disabled && (m && v && fe(s, m, v), !Lt(Ge(), i)), A = (m, v, w) => To(m, o, {
10368
10368
  ...a.mount ? s : _e(v) ? i : wt(m) ? { [m]: v } : v
10369
10369
  }, w, v), W = (m) => Fn(F(a.mount ? s : i, m, e.shouldUnregister ? F(i, m, []) : [])), ie = (m, v, w = {}) => {
10370
10370
  const M = F(n, m);
10371
10371
  let L = v;
10372
10372
  if (M) {
10373
- const T = M._f;
10374
- T && (!T.disabled && fe(s, m, Fo(v, T)), L = vn(T.ref) && Be(v) ? "" : v, Lo(T.ref) ? [...T.ref.options].forEach((j) => j.selected = L.includes(j.value)) : T.refs ? Wr(T.ref) ? T.refs.length > 1 ? T.refs.forEach((j) => (!j.defaultChecked || !j.disabled) && (j.checked = Array.isArray(L) ? !!L.find((Q) => Q === j.value) : L === j.value)) : T.refs[0] && (T.refs[0].checked = !!L) : T.refs.forEach((j) => j.checked = j.value === L) : Fi(T.ref) ? T.ref.value = "" : (T.ref.value = L, T.ref.type || u.values.next({
10373
+ const O = M._f;
10374
+ O && (!O.disabled && fe(s, m, Fo(v, O)), L = vn(O.ref) && Be(v) ? "" : v, Lo(O.ref) ? [...O.ref.options].forEach((j) => j.selected = L.includes(j.value)) : O.refs ? Wr(O.ref) ? O.refs.length > 1 ? O.refs.forEach((j) => (!j.defaultChecked || !j.disabled) && (j.checked = Array.isArray(L) ? !!L.find((Q) => Q === j.value) : L === j.value)) : O.refs[0] && (O.refs[0].checked = !!L) : O.refs.forEach((j) => j.checked = j.value === L) : Fi(O.ref) ? O.ref.value = "" : (O.ref.value = L, O.ref.type || u.values.next({
10375
10375
  name: m,
10376
10376
  values: { ...s }
10377
10377
  })));
10378
10378
  }
10379
- (w.shouldDirty || w.shouldTouch) && E(m, L, w.shouldTouch, w.shouldDirty, !0), w.shouldValidate && xe(m);
10379
+ (w.shouldDirty || w.shouldTouch) && C(m, L, w.shouldTouch, w.shouldDirty, !0), w.shouldValidate && xe(m);
10380
10380
  }, ce = (m, v, w) => {
10381
10381
  for (const M in v) {
10382
- const L = v[M], T = `${m}.${M}`, j = F(n, T);
10383
- (o.array.has(m) || Ce(L) || j && !j._f) && !Gt(L) ? ce(T, L, w) : ie(T, L, w);
10382
+ const L = v[M], O = `${m}.${M}`, j = F(n, O);
10383
+ (o.array.has(m) || Ce(L) || j && !j._f) && !Gt(L) ? ce(O, L, w) : ie(O, L, w);
10384
10384
  }
10385
10385
  }, ne = (m, v, w = {}) => {
10386
- const M = F(n, m), L = o.array.has(m), T = je(v);
10387
- fe(s, m, T), L ? (u.array.next({
10386
+ const M = F(n, m), L = o.array.has(m), O = je(v);
10387
+ fe(s, m, O), L ? (u.array.next({
10388
10388
  name: m,
10389
10389
  values: { ...s }
10390
10390
  }), (d.isDirty || d.dirtyFields) && w.shouldDirty && u.state.next({
10391
10391
  name: m,
10392
10392
  dirtyFields: vr(i, s),
10393
- isDirty: k(m, T)
10394
- })) : M && !M._f && !Be(T) ? ce(m, T, w) : ie(m, T, w), xs(m, o) && u.state.next({ ...t }), u.values.next({
10393
+ isDirty: E(m, O)
10394
+ })) : M && !M._f && !Be(O) ? ce(m, O, w) : ie(m, O, w), xs(m, o) && u.state.next({ ...t }), u.values.next({
10395
10395
  name: a.mount ? m : void 0,
10396
10396
  values: { ...s }
10397
10397
  });
@@ -10399,29 +10399,29 @@ function Zf(r = {}) {
10399
10399
  a.mount = !0;
10400
10400
  const v = m.target;
10401
10401
  let w = v.name, M = !0;
10402
- const L = F(n, w), T = () => v.type ? Jn(L._f) : Eo(m), j = (Q) => {
10402
+ const L = F(n, w), O = () => v.type ? Jn(L._f) : Eo(m), j = (Q) => {
10403
10403
  M = Number.isNaN(Q) || Gt(Q) && isNaN(Q.getTime()) || Lt(Q, F(s, w, Q));
10404
10404
  };
10405
10405
  if (L) {
10406
10406
  let Q, be;
10407
- const pe = T(), ze = m.type === gn.BLUR || m.type === gn.FOCUS_OUT, Wt = !$f(L._f) && !e.resolver && !F(t.errors, w) && !L._f.deps || Wf(ze, F(t.touchedFields, w), t.isSubmitted, p, h), qt = xs(w, o, ze);
10407
+ const pe = O(), ze = m.type === gn.BLUR || m.type === gn.FOCUS_OUT, Wt = !$f(L._f) && !e.resolver && !F(t.errors, w) && !L._f.deps || Wf(ze, F(t.touchedFields, w), t.isSubmitted, p, h), qt = xs(w, o, ze);
10408
10408
  fe(s, w, pe), ze ? (L._f.onBlur && L._f.onBlur(m), l && l(0)) : L._f.onChange && L._f.onChange(m);
10409
- const Qe = E(w, pe, ze, !1), Gr = !$e(Qe) || qt;
10409
+ const Qe = C(w, pe, ze, !1), Gr = !$e(Qe) || qt;
10410
10410
  if (!ze && u.values.next({
10411
10411
  name: w,
10412
10412
  type: m.type,
10413
10413
  values: { ...s }
10414
10414
  }), Wt)
10415
- return d.isValid && (e.mode === "onBlur" && ze ? _() : ze || _()), Gr && u.state.next({ name: w, ...qt ? {} : Qe });
10415
+ return d.isValid && (e.mode === "onBlur" && ze ? k() : ze || k()), Gr && u.state.next({ name: w, ...qt ? {} : Qe });
10416
10416
  if (!ze && qt && u.state.next({ ...t }), e.resolver) {
10417
10417
  const { errors: Ur } = await N([w]);
10418
10418
  if (j(pe), M) {
10419
- const Vn = Ds(t.errors, n, w), Yt = Ds(Ur, n, Vn.name || w);
10420
- Q = Yt.error, w = Yt.name, be = $e(Ur);
10419
+ const Vn = Ds(t.errors, n, w), Kt = Ds(Ur, n, Vn.name || w);
10420
+ Q = Kt.error, w = Kt.name, be = $e(Ur);
10421
10421
  }
10422
10422
  } else
10423
- O([w], !0), Q = (await ks(L, o.disabled, s, g, e.shouldUseNativeValidation))[w], O([w]), j(pe), M && (Q ? be = !1 : d.isValid && (be = await z(n, !0)));
10424
- M && (L._f.deps && xe(L._f.deps), C(w, be, Q, Qe));
10423
+ T([w], !0), Q = (await ks(L, o.disabled, s, g, e.shouldUseNativeValidation))[w], T([w]), j(pe), M && (Q ? be = !1 : d.isValid && (be = await z(n, !0)));
10424
+ M && (L._f.deps && xe(L._f.deps), _(w, be, Q, Qe));
10425
10425
  }
10426
10426
  }, X = (m, v) => {
10427
10427
  if (F(t.errors, v) && m.focus)
@@ -10430,12 +10430,12 @@ function Zf(r = {}) {
10430
10430
  let w, M;
10431
10431
  const L = Sr(m);
10432
10432
  if (e.resolver) {
10433
- const T = await $(_e(m) ? m : L);
10434
- w = $e(T), M = m ? !L.some((j) => F(T, j)) : w;
10435
- } else m ? (M = (await Promise.all(L.map(async (T) => {
10436
- const j = F(n, T);
10437
- return await z(j && j._f ? { [T]: j } : j);
10438
- }))).every(Boolean), !(!M && !t.isValid) && _()) : M = w = await z(n);
10433
+ const O = await $(_e(m) ? m : L);
10434
+ w = $e(O), M = m ? !L.some((j) => F(O, j)) : w;
10435
+ } else m ? (M = (await Promise.all(L.map(async (O) => {
10436
+ const j = F(n, O);
10437
+ return await z(j && j._f ? { [O]: j } : j);
10438
+ }))).every(Boolean), !(!M && !t.isValid) && k()) : M = w = await z(n);
10439
10439
  return u.state.next({
10440
10440
  ...!wt(m) || d.isValid && w !== t.isValid ? {} : { name: m },
10441
10441
  ...e.resolver || !m ? { isValid: w } : {},
@@ -10457,7 +10457,7 @@ function Zf(r = {}) {
10457
10457
  errors: m ? t.errors : {}
10458
10458
  });
10459
10459
  }, Re = (m, v, w) => {
10460
- const M = (F(n, m, { _f: {} })._f || {}).ref, L = F(t.errors, m) || {}, { ref: T, message: j, type: Q, ...be } = L;
10460
+ const M = (F(n, m, { _f: {} })._f || {}).ref, L = F(t.errors, m) || {}, { ref: O, message: j, type: Q, ...be } = L;
10461
10461
  fe(t.errors, m, {
10462
10462
  ...be,
10463
10463
  ...v,
@@ -10476,10 +10476,10 @@ function Zf(r = {}) {
10476
10476
  values: { ...s }
10477
10477
  }), u.state.next({
10478
10478
  ...t,
10479
- ...v.keepDirty ? { isDirty: k() } : {}
10480
- }), !v.keepIsValid && _();
10479
+ ...v.keepDirty ? { isDirty: E() } : {}
10480
+ }), !v.keepIsValid && k();
10481
10481
  }, Ve = ({ disabled: m, name: v, field: w, fields: M }) => {
10482
- (nt(m) && a.mount || m || o.disabled.has(v)) && (m ? o.disabled.add(v) : o.disabled.delete(v), E(v, Jn(w ? w._f : F(M, v)._f), !1, !1, !0));
10482
+ (nt(m) && a.mount || m || o.disabled.has(v)) && (m ? o.disabled.add(v) : o.disabled.delete(v), C(v, Jn(w ? w._f : F(M, v)._f), !1, !1, !0));
10483
10483
  }, me = (m, v = {}) => {
10484
10484
  let w = F(n, m);
10485
10485
  const M = nt(v.disabled) || nt(e.disabled);
@@ -10495,7 +10495,7 @@ function Zf(r = {}) {
10495
10495
  field: w,
10496
10496
  disabled: nt(v.disabled) ? v.disabled : e.disabled,
10497
10497
  name: m
10498
- }) : x(m, !0, v.value), {
10498
+ }) : y(m, !0, v.value), {
10499
10499
  ...M ? { disabled: v.disabled || e.disabled } : {},
10500
10500
  ...e.progressive ? {
10501
10501
  required: !!v.required,
@@ -10511,8 +10511,8 @@ function Zf(r = {}) {
10511
10511
  ref: (L) => {
10512
10512
  if (L) {
10513
10513
  me(m, v), w = F(n, m);
10514
- const T = _e(L.value) && L.querySelectorAll && L.querySelectorAll("input,select,textarea")[0] || L, j = Hf(T), Q = w._f.refs || [];
10515
- if (j ? Q.find((be) => be === T) : T === w._f.ref)
10514
+ const O = _e(L.value) && L.querySelectorAll && L.querySelectorAll("input,select,textarea")[0] || L, j = Hf(O), Q = w._f.refs || [];
10515
+ if (j ? Q.find((be) => be === O) : O === w._f.ref)
10516
10516
  return;
10517
10517
  fe(n, m, {
10518
10518
  _f: {
@@ -10520,13 +10520,13 @@ function Zf(r = {}) {
10520
10520
  ...j ? {
10521
10521
  refs: [
10522
10522
  ...Q.filter(Xn),
10523
- T,
10523
+ O,
10524
10524
  ...Array.isArray(F(i, m)) ? [{}] : []
10525
10525
  ],
10526
- ref: { type: T.type, name: m }
10527
- } : { ref: T }
10526
+ ref: { type: O.type, name: m }
10527
+ } : { ref: O }
10528
10528
  }
10529
- }), x(m, !1, void 0, T);
10529
+ }), y(m, !1, void 0, O);
10530
10530
  } else
10531
10531
  w = F(n, m, {}), w._f && (w._f.mount = !1), (e.shouldUnregister || v.shouldUnregister) && !(ko(o.array, m) && a.action) && o.unMount.add(m);
10532
10532
  }
@@ -10543,13 +10543,13 @@ function Zf(r = {}) {
10543
10543
  w && (w.preventDefault && w.preventDefault(), w.persist && w.persist());
10544
10544
  let L = je(s);
10545
10545
  if (o.disabled.size)
10546
- for (const T of o.disabled)
10547
- fe(L, T, void 0);
10546
+ for (const O of o.disabled)
10547
+ fe(L, O, void 0);
10548
10548
  if (u.state.next({
10549
10549
  isSubmitting: !0
10550
10550
  }), e.resolver) {
10551
- const { errors: T, values: j } = await N();
10552
- t.errors = T, L = j;
10551
+ const { errors: O, values: j } = await N();
10552
+ t.errors = O, L = j;
10553
10553
  } else
10554
10554
  await z(n);
10555
10555
  if (Se(t.errors, "root"), $e(t.errors)) {
@@ -10558,8 +10558,8 @@ function Zf(r = {}) {
10558
10558
  });
10559
10559
  try {
10560
10560
  await m(L, w);
10561
- } catch (T) {
10562
- M = T;
10561
+ } catch (O) {
10562
+ M = O;
10563
10563
  }
10564
10564
  } else
10565
10565
  v && await v({ ...t.errors }, w), we(), setTimeout(we);
@@ -10572,9 +10572,9 @@ function Zf(r = {}) {
10572
10572
  }), M)
10573
10573
  throw M;
10574
10574
  }, Oe = (m, v = {}) => {
10575
- F(n, m) && (_e(v.defaultValue) ? ne(m, je(F(i, m))) : (ne(m, v.defaultValue), fe(i, m, je(v.defaultValue))), v.keepTouched || Se(t.touchedFields, m), v.keepDirty || (Se(t.dirtyFields, m), t.isDirty = v.defaultValue ? k(m, je(F(i, m))) : k()), v.keepError || (Se(t.errors, m), d.isValid && _()), u.state.next({ ...t }));
10575
+ F(n, m) && (_e(v.defaultValue) ? ne(m, je(F(i, m))) : (ne(m, v.defaultValue), fe(i, m, je(v.defaultValue))), v.keepTouched || Se(t.touchedFields, m), v.keepDirty || (Se(t.dirtyFields, m), t.isDirty = v.defaultValue ? E(m, je(F(i, m))) : E()), v.keepError || (Se(t.errors, m), d.isValid && k()), u.state.next({ ...t }));
10576
10576
  }, Me = (m, v = {}) => {
10577
- const w = m ? je(m) : i, M = je(w), L = $e(m), T = L ? i : M;
10577
+ const w = m ? je(m) : i, M = je(w), L = $e(m), O = L ? i : M;
10578
10578
  if (v.keepDefaultValues || (i = w), !v.keepValues) {
10579
10579
  if (v.keepDirtyValues) {
10580
10580
  const j = /* @__PURE__ */ new Set([
@@ -10582,7 +10582,7 @@ function Zf(r = {}) {
10582
10582
  ...Object.keys(vr(i, s))
10583
10583
  ]);
10584
10584
  for (const Q of Array.from(j))
10585
- F(t.dirtyFields, Q) ? fe(T, Q, F(s, Q)) : ne(Q, F(T, Q));
10585
+ F(t.dirtyFields, Q) ? fe(O, Q, F(s, Q)) : ne(Q, F(O, Q));
10586
10586
  } else {
10587
10587
  if (Li && _e(m))
10588
10588
  for (const j of o.mount) {
@@ -10600,10 +10600,10 @@ function Zf(r = {}) {
10600
10600
  }
10601
10601
  n = {};
10602
10602
  }
10603
- s = e.shouldUnregister ? v.keepDefaultValues ? je(i) : {} : je(T), u.array.next({
10604
- values: { ...T }
10603
+ s = e.shouldUnregister ? v.keepDefaultValues ? je(i) : {} : je(O), u.array.next({
10604
+ values: { ...O }
10605
10605
  }), u.values.next({
10606
- values: { ...T }
10606
+ values: { ...O }
10607
10607
  });
10608
10608
  }
10609
10609
  o = {
@@ -10634,8 +10634,8 @@ function Zf(r = {}) {
10634
10634
  setError: Re,
10635
10635
  _executeSchema: N,
10636
10636
  _getWatch: A,
10637
- _getDirty: k,
10638
- _updateValid: _,
10637
+ _getDirty: E,
10638
+ _updateValid: k,
10639
10639
  _removeUnmounted: R,
10640
10640
  _updateFieldArray: D,
10641
10641
  _updateDisabledField: Ve,
@@ -10760,7 +10760,7 @@ function qf(r = {}) {
10760
10760
  });
10761
10761
  }, [r.shouldUnregister, s]), e.current.formState = Ro(n, s), e.current;
10762
10762
  }
10763
- var Yf = "Label", Bo = st.forwardRef((r, e) => /* @__PURE__ */ f(
10763
+ var Kf = "Label", Bo = st.forwardRef((r, e) => /* @__PURE__ */ f(
10764
10764
  Nl.label,
10765
10765
  {
10766
10766
  ...r,
@@ -10770,7 +10770,7 @@ var Yf = "Label", Bo = st.forwardRef((r, e) => /* @__PURE__ */ f(
10770
10770
  }
10771
10771
  }
10772
10772
  ));
10773
- Bo.displayName = Yf;
10773
+ Bo.displayName = Kf;
10774
10774
  var Ho = Bo;
10775
10775
  const xn = st.forwardRef(({ className: r, ...e }, t) => f(Ho, {
10776
10776
  ref: t,
@@ -10778,7 +10778,7 @@ const xn = st.forwardRef(({ className: r, ...e }, t) => f(Ho, {
10778
10778
  ...e
10779
10779
  }));
10780
10780
  xn.displayName = Ho.displayName;
10781
- const Kf = Of, Vo = st.createContext({}), Rs = ({ ...r }) => {
10781
+ const Yf = Of, Vo = st.createContext({}), Rs = ({ ...r }) => {
10782
10782
  const { formState: e } = jt();
10783
10783
  return f(Vo.Provider, {
10784
10784
  value: {
@@ -10864,7 +10864,7 @@ const Uo = st.forwardRef(({ className: r, children: e, fallback: t, ...n }, i) =
10864
10864
  }) : null;
10865
10865
  });
10866
10866
  Uo.displayName = "FormMessage";
10867
- function Jf({ isActionBar: r, isDirty: e, actionBarStatus: t, hasErrors: n, errorCount: i, resolvedActionBarLabel: s, centerActionBarInFrameContent: a, submitLabel: o, submitIcon: l, discardableChanges: c, discardLabel: d, discardIcon: u, issuesOneLabel: h, issuesOtherLabel: p, onSubmit: g, onDiscard: b, goToPreviousError: _, goToNextError: O }) {
10867
+ function Jf({ isActionBar: r, isDirty: e, actionBarStatus: t, hasErrors: n, errorCount: i, resolvedActionBarLabel: s, centerActionBarInFrameContent: a, submitLabel: o, submitIcon: l, discardableChanges: c, discardLabel: d, discardIcon: u, issuesOneLabel: h, issuesOtherLabel: p, onSubmit: g, onDiscard: x, goToPreviousError: k, goToNextError: T }) {
10868
10868
  return r ? f(Qi, {
10869
10869
  isOpen: e || t === "loading" || t === "success",
10870
10870
  variant: "light",
@@ -10887,13 +10887,13 @@ function Jf({ isActionBar: r, isDirty: e, actionBarStatus: t, hasErrors: n, erro
10887
10887
  className: "flex items-center gap-2",
10888
10888
  children: [f(ut, {
10889
10889
  icon: Tl,
10890
- onClick: _,
10890
+ onClick: k,
10891
10891
  variant: "outline",
10892
10892
  label: "Go to previous error",
10893
10893
  hideLabel: !0
10894
10894
  }), f(ut, {
10895
10895
  icon: Ol,
10896
- onClick: O,
10896
+ onClick: T,
10897
10897
  variant: "outline",
10898
10898
  label: "Go to next error",
10899
10899
  hideLabel: !0
@@ -10909,7 +10909,7 @@ function Jf({ isActionBar: r, isDirty: e, actionBarStatus: t, hasErrors: n, erro
10909
10909
  secondaryActions: c ? [{
10910
10910
  label: d,
10911
10911
  icon: u,
10912
- onClick: b
10912
+ onClick: x
10913
10913
  }] : []
10914
10914
  }) : f(Qi, {
10915
10915
  isOpen: t === "loading" || t === "success",
@@ -10919,7 +10919,7 @@ function Jf({ isActionBar: r, isDirty: e, actionBarStatus: t, hasErrors: n, erro
10919
10919
  });
10920
10920
  }
10921
10921
  const Zo = "gap-4", Qf = "mt-6", em = "max-w-[720px]", $t = "md", qo = Ct(null);
10922
- function Yo() {
10922
+ function Ko() {
10923
10923
  const r = ht(qo);
10924
10924
  if (!r)
10925
10925
  throw new Error("useF0FormContext must be used within a F0Form");
@@ -10935,15 +10935,15 @@ function ge(r, e) {
10935
10935
  function Hi(r) {
10936
10936
  return ge(r, "ZodEffects") ? r._def.schema : r;
10937
10937
  }
10938
- const Ko = /* @__PURE__ */ new WeakMap();
10938
+ const Yo = /* @__PURE__ */ new WeakMap();
10939
10939
  function mg(r, e) {
10940
- Ko.set(r, e);
10940
+ Yo.set(r, e);
10941
10941
  const t = r;
10942
10942
  return t._f0Config = e, t._innerSchema = r, t;
10943
10943
  }
10944
10944
  function Vi(r) {
10945
10945
  const e = r;
10946
- return e._f0Config ? e._f0Config : Ko.get(r);
10946
+ return e._f0Config ? e._f0Config : Yo.get(r);
10947
10947
  }
10948
10948
  function pg(r) {
10949
10949
  return Vi(r) !== void 0;
@@ -11259,7 +11259,7 @@ function mm({ field: r, formField: e, error: t, loading: n }) {
11259
11259
  });
11260
11260
  }
11261
11261
  function pm({ field: r, formField: e, error: t, loading: n }) {
11262
- return f(Yc, {
11262
+ return f(Uc, {
11263
11263
  ...e,
11264
11264
  label: r.label,
11265
11265
  placeholder: r.placeholder,
@@ -11279,7 +11279,7 @@ function pm({ field: r, formField: e, error: t, loading: n }) {
11279
11279
  }
11280
11280
  function gm({ field: r, formField: e }) {
11281
11281
  const t = e.value;
11282
- return f(Kc, {
11282
+ return f(Zc, {
11283
11283
  title: r.label,
11284
11284
  placeholder: r.placeholder ?? "",
11285
11285
  maxCharacters: r.maxCharacters,
@@ -11413,7 +11413,7 @@ function Em({ field: r, formField: e, error: t, loading: n }) {
11413
11413
  });
11414
11414
  }
11415
11415
  function km({ field: r, formField: e, error: t, loading: n }) {
11416
- return f(Xc, {
11416
+ return f(qc, {
11417
11417
  ...e,
11418
11418
  label: r.label,
11419
11419
  placeholder: r.placeholder,
@@ -11550,7 +11550,7 @@ function Sm({ field: r, formField: e, fieldState: t, isSubmitting: n, isRequired
11550
11550
  }
11551
11551
  }
11552
11552
  function $i({ field: r, sectionId: e }) {
11553
- const t = jt(), n = t.watch(), { isSubmitting: i } = t.formState, { formName: s } = Yo(), { forms: a } = zr(), o = ji(r.disabled, n), l = Y(o);
11553
+ const t = jt(), n = t.watch(), { isSubmitting: i } = t.formState, { formName: s } = Ko(), { forms: a } = zr(), o = ji(r.disabled, n), l = K(o);
11554
11554
  J(() => {
11555
11555
  const p = l.current;
11556
11556
  if (l.current = o, !p && o && r.resetOnDisable) {
@@ -11612,16 +11612,16 @@ function Dm(r) {
11612
11612
  return ge(e, "ZodLiteral") && e._def.value === !0;
11613
11613
  }
11614
11614
  function rl({ fields: r }) {
11615
- const e = jt(), { watch: t, setValue: n } = e, { isSubmitting: i } = e.formState, s = t(), a = q(() => r.filter((h) => !h.renderIf || Hn(h.renderIf, s)), [r, s]), o = q(() => Object.fromEntries(a.map((h) => [h.id, ji(h.disabled, s) || i])), [a, i, s]), l = Y({});
11615
+ const e = jt(), { watch: t, setValue: n } = e, { isSubmitting: i } = e.formState, s = t(), a = q(() => r.filter((h) => !h.renderIf || Hn(h.renderIf, s)), [r, s]), o = q(() => Object.fromEntries(a.map((h) => [h.id, ji(h.disabled, s) || i])), [a, i, s]), l = K({});
11616
11616
  J(() => {
11617
11617
  const h = l.current, p = e.formState.defaultValues ?? {};
11618
11618
  for (const g of a) {
11619
11619
  if (!(g.id in h))
11620
11620
  continue;
11621
- const b = h[g.id], _ = o[g.id] ?? !1;
11622
- if (!b && _ && g.resetOnDisable) {
11623
- const O = p[g.id] ?? !1;
11624
- n(g.id, O, {
11621
+ const x = h[g.id], k = o[g.id] ?? !1;
11622
+ if (!x && k && g.resetOnDisable) {
11623
+ const T = p[g.id] ?? !1;
11624
+ n(g.id, T, {
11625
11625
  shouldValidate: !1
11626
11626
  });
11627
11627
  }
@@ -11637,7 +11637,7 @@ function rl({ fields: r }) {
11637
11637
  disabled: o[h.id] ?? !1,
11638
11638
  required: !!(h.validation && Dm(h.validation))
11639
11639
  })), [a, o]), d = q(() => a.filter((h) => s[h.id]).map((h) => h.id), [a, s]);
11640
- return a.length === 0 ? null : f(Jc, {
11640
+ return a.length === 0 ? null : f(Kc, {
11641
11641
  multiple: !0,
11642
11642
  isToggle: !0,
11643
11643
  grouped: !0,
@@ -11645,8 +11645,8 @@ function rl({ fields: r }) {
11645
11645
  value: d,
11646
11646
  onChange: (h) => {
11647
11647
  for (const p of a) {
11648
- const g = h.includes(p.id), b = !!s[p.id];
11649
- g !== b && n(p.id, g, {
11648
+ const g = h.includes(p.id), x = !!s[p.id];
11649
+ g !== x && n(p.id, g, {
11650
11650
  shouldValidate: !0
11651
11651
  });
11652
11652
  }
@@ -11674,7 +11674,7 @@ function Rm(r) {
11674
11674
  }), n(), e;
11675
11675
  }
11676
11676
  function Nm({ section: r }) {
11677
- const t = jt().watch(), { formName: n } = Yo(), { title: i, description: s, renderIf: a, action: o, fields: l } = r.section, c = r.id;
11677
+ const t = jt().watch(), { formName: n } = Ko(), { title: i, description: s, renderIf: a, action: o, fields: l } = r.section, c = r.id;
11678
11678
  if (a && !Hn(a, t))
11679
11679
  return null;
11680
11680
  const d = Rm(l), u = Mr(n, c);
@@ -11683,7 +11683,7 @@ function Nm({ section: r }) {
11683
11683
  className: "flex flex-col scroll-mt-4",
11684
11684
  children: [V("div", {
11685
11685
  className: se("flex items-start justify-between py-5", "[&>div]:px-0.5 [&>div]:mx-0 [&>div]:border-0"),
11686
- children: [f(Qc, {
11686
+ children: [f(Yc, {
11687
11687
  title: i,
11688
11688
  description: s ?? ""
11689
11689
  }), o && f(ut, {
@@ -12341,7 +12341,7 @@ class ue {
12341
12341
  }
12342
12342
  const zm = /^c[^\s-]{8,}$/i, Fm = /^[0-9a-z]+$/, Bm = /^[0-9A-HJKMNP-TV-Z]{26}$/i, Hm = /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i, Vm = /^[a-z0-9_-]{21}$/i, jm = /^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/, $m = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, Wm = /^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i, Gm = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
12343
12343
  let ei;
12344
- const Um = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Zm = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, qm = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Ym = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Km = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Xm = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, il = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Jm = new RegExp(`^${il}$`);
12344
+ const Um = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Zm = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/, qm = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/, Km = /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Ym = /^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/, Xm = /^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/, il = "((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))", Jm = new RegExp(`^${il}$`);
12345
12345
  function sl(r) {
12346
12346
  let e = "[0-5]\\d";
12347
12347
  r.precision ? e = `${e}\\.\\d{${r.precision}}` : r.precision == null && (e = `${e}(\\.\\d+)?`);
@@ -12373,7 +12373,7 @@ function rp(r, e) {
12373
12373
  }
12374
12374
  }
12375
12375
  function np(r, e) {
12376
- return !!((e === "v4" || !e) && Zm.test(r) || (e === "v6" || !e) && Ym.test(r));
12376
+ return !!((e === "v4" || !e) && Zm.test(r) || (e === "v6" || !e) && Km.test(r));
12377
12377
  }
12378
12378
  class Ut extends ue {
12379
12379
  _parse(e) {
@@ -12519,7 +12519,7 @@ class Ut extends ue {
12519
12519
  validation: "cidr",
12520
12520
  code: P.invalid_string,
12521
12521
  message: s.message
12522
- }), n.dirty()) : s.kind === "base64" ? Km.test(e.data) || (i = this._getOrReturnCtx(e, i), H(i, {
12522
+ }), n.dirty()) : s.kind === "base64" ? Ym.test(e.data) || (i = this._getOrReturnCtx(e, i), H(i, {
12523
12523
  validation: "base64",
12524
12524
  code: P.invalid_string,
12525
12525
  message: s.message
@@ -14413,16 +14413,16 @@ function dp({
14413
14413
  formName: r,
14414
14414
  errors: e
14415
14415
  }) {
14416
- const t = Object.keys(e).filter((h) => h !== "root"), n = t.length > 0, i = t.length, [s, a] = re(0), o = Y([]);
14416
+ const t = Object.keys(e).filter((h) => h !== "root"), n = t.length > 0, i = t.length, [s, a] = re(0), o = K([]);
14417
14417
  J(() => {
14418
14418
  const h = t, p = o.current, g = h.find(
14419
- (b) => !p.includes(b)
14419
+ (x) => !p.includes(x)
14420
14420
  );
14421
14421
  if (g) {
14422
- const b = Mr(r, void 0, g);
14423
- Gs(b);
14424
- const _ = h.indexOf(g);
14425
- _ !== -1 && a(_);
14422
+ const x = Mr(r, void 0, g);
14423
+ Gs(x);
14424
+ const k = h.indexOf(g);
14425
+ k !== -1 && a(k);
14426
14426
  }
14427
14427
  o.current = h;
14428
14428
  }, [t, r]);
@@ -14431,8 +14431,8 @@ function dp({
14431
14431
  if (t.length === 0) return;
14432
14432
  const p = (h % t.length + t.length) % t.length;
14433
14433
  a(p);
14434
- const g = t[p], b = Mr(r, void 0, g);
14435
- Gs(b);
14434
+ const g = t[p], x = Mr(r, void 0, g);
14435
+ Gs(x);
14436
14436
  },
14437
14437
  [t, r]
14438
14438
  ), c = de(() => {
@@ -14862,10 +14862,10 @@ const yp = {
14862
14862
  "on-submit": "onSubmit"
14863
14863
  };
14864
14864
  function bp(r) {
14865
- const e = zr(), { forms: t } = e, { name: n, schema: i, sections: s, defaultValues: a, onSubmit: o, submitConfig: l, className: c, errorTriggerMode: d = "on-blur", styling: u, formRef: h } = r, p = u?.showSectionsSidepanel ?? !1, g = l?.type === "action-bar", b = l?.label ?? "Submit", _ = l?.icon === null ? void 0 : l?.icon ?? Fl, O = l?.type !== "action-bar" && l?.hideSubmitButton, D = !g && !O, S = l?.type === "action-bar" && l?.discardable, I = g ? l?.discardConfig : void 0, x = I?.label ?? t.actionBar.discard, E = I?.icon === null ? void 0 : I?.icon ?? Bl, C = g ? l?.actionBarLabel ?? t.actionBar.unsavedChanges : t.actionBar.unsavedChanges, N = l?.savingMessage ?? t.actionBar.saving, $ = g && !!l?.centerActionBarInFrameContent, z = pp(i, s), R = q(() => z.filter((M) => M.type === "section").map((M) => M.id), [z]), [k, A] = re(R[0]), W = de((M) => {
14865
+ const e = zr(), { forms: t } = e, { name: n, schema: i, sections: s, defaultValues: a, onSubmit: o, submitConfig: l, className: c, errorTriggerMode: d = "on-blur", styling: u, formRef: h } = r, p = u?.showSectionsSidepanel ?? !1, g = l?.type === "action-bar", x = l?.label ?? "Submit", k = l?.icon === null ? void 0 : l?.icon ?? Fl, T = l?.type !== "action-bar" && l?.hideSubmitButton, D = !g && !T, S = l?.type === "action-bar" && l?.discardable, I = g ? l?.discardConfig : void 0, y = I?.label ?? t.actionBar.discard, C = I?.icon === null ? void 0 : I?.icon ?? Bl, _ = g ? l?.actionBarLabel ?? t.actionBar.unsavedChanges : t.actionBar.unsavedChanges, N = l?.savingMessage ?? t.actionBar.saving, $ = g && !!l?.centerActionBarInFrameContent, z = pp(i, s), R = q(() => z.filter((M) => M.type === "section").map((M) => M.id), [z]), [E, A] = re(R[0]), W = de((M) => {
14866
14866
  A(M);
14867
- const L = Mr(n, M), T = document.getElementById(L);
14868
- T && T.scrollIntoView({
14867
+ const L = Mr(n, M), O = document.getElementById(L);
14868
+ O && O.scrollIntoView({
14869
14869
  behavior: "smooth",
14870
14870
  block: "start"
14871
14871
  });
@@ -14879,14 +14879,14 @@ function bp(r) {
14879
14879
  resolver: ve,
14880
14880
  mode: ne,
14881
14881
  defaultValues: a
14882
- }), xe = X.formState.errors.root, { isDirty: Ge, isSubmitting: ye, errors: Pe } = X.formState, [Re, Te] = re("idle"), [Ee, Ve] = re(), me = Y(null), { hasErrors: we, errorCount: le, goToPreviousError: Je, goToNextError: Oe, resetErrorNavigation: Me } = dp({
14882
+ }), xe = X.formState.errors.root, { isDirty: Ge, isSubmitting: ye, errors: Pe } = X.formState, [Re, Te] = re("idle"), [Ee, Ve] = re(), me = K(null), { hasErrors: we, errorCount: le, goToPreviousError: Je, goToNextError: Oe, resetErrorNavigation: Me } = dp({
14883
14883
  formName: n,
14884
14884
  errors: Pe
14885
14885
  }), Ie = (() => {
14886
14886
  if (!we)
14887
- return Re === "loading" ? N : Re === "success" ? Ee ?? t.actionBar.saved : C;
14887
+ return Re === "loading" ? N : Re === "success" ? Ee ?? t.actionBar.saved : _;
14888
14888
  })(), Ue = async (M) => {
14889
- me.current && (clearTimeout(me.current), me.current = null), uc(() => {
14889
+ me.current && (clearTimeout(me.current), me.current = null), lc(() => {
14890
14890
  Te("loading");
14891
14891
  });
14892
14892
  const L = {
@@ -14894,15 +14894,15 @@ function bp(r) {
14894
14894
  };
14895
14895
  for (const j of Object.keys(L))
14896
14896
  L[j] === null && (L[j] = void 0);
14897
- const T = await o(L);
14898
- T.success ? (X.reset(M), Me(), Ve(T.message), Te("success"), me.current = setTimeout(() => {
14897
+ const O = await o(L);
14898
+ O.success ? (X.reset(M), Me(), Ve(O.message), Te("success"), me.current = setTimeout(() => {
14899
14899
  Te("idle"), Ve(void 0), me.current = null;
14900
- }, 3e3)) : (Te("idle"), T.errors && Object.entries(T.errors).forEach(([j, Q]) => {
14900
+ }, 3e3)) : (Te("idle"), O.errors && Object.entries(O.errors).forEach(([j, Q]) => {
14901
14901
  X.setError(j, {
14902
14902
  message: Q
14903
14903
  });
14904
- }), T.rootMessage && X.setError("root", {
14905
- message: T.rootMessage
14904
+ }), O.rootMessage && X.setError("root", {
14905
+ message: O.rootMessage
14906
14906
  }));
14907
14907
  };
14908
14908
  J(() => () => {
@@ -14912,15 +14912,15 @@ function bp(r) {
14912
14912
  }, [Ge, Re]);
14913
14913
  const lt = () => {
14914
14914
  X.reset(), Me(), Te("idle"), Ve(void 0), me.current && (clearTimeout(me.current), me.current = null);
14915
- }, Et = Y(null);
14915
+ }, Et = K(null);
14916
14916
  J(() => {
14917
14917
  if (h) {
14918
14918
  const M = {
14919
- submit: () => new Promise((L, T) => {
14919
+ submit: () => new Promise((L, O) => {
14920
14920
  X.handleSubmit(async (j) => {
14921
14921
  await Ue(j), L();
14922
14922
  }, () => {
14923
- T(new Error("Form validation failed"));
14923
+ O(new Error("Form validation failed"));
14924
14924
  })();
14925
14925
  }),
14926
14926
  reset: () => {
@@ -14948,25 +14948,25 @@ function bp(r) {
14948
14948
  onSubmit: X.handleSubmit(Ue),
14949
14949
  className: se("flex flex-col", em, c),
14950
14950
  children: [m.map((M, L) => {
14951
- const T = L !== 0 && M.type !== "section" ? "mt-4" : "";
14951
+ const O = L !== 0 && M.type !== "section" ? "mt-4" : "";
14952
14952
  switch (M.type) {
14953
14953
  case "switchGroup":
14954
14954
  return f("div", {
14955
- className: T,
14955
+ className: O,
14956
14956
  children: f(rl, {
14957
14957
  fields: M.fields
14958
14958
  })
14959
14959
  }, `switch-group-${L}`);
14960
14960
  case "field":
14961
14961
  return f("div", {
14962
- className: T,
14962
+ className: O,
14963
14963
  children: f($i, {
14964
14964
  field: M.item.field
14965
14965
  })
14966
14966
  }, M.item.field.id);
14967
14967
  case "row":
14968
14968
  return f("div", {
14969
- className: T,
14969
+ className: O,
14970
14970
  children: f(tl, {
14971
14971
  row: M.item
14972
14972
  })
@@ -14988,8 +14988,8 @@ function bp(r) {
14988
14988
  className: "mt-4",
14989
14989
  children: f(ut, {
14990
14990
  type: "submit",
14991
- label: b,
14992
- icon: _,
14991
+ label: x,
14992
+ icon: k,
14993
14993
  loading: ye,
14994
14994
  disabled: we
14995
14995
  })
@@ -14997,7 +14997,7 @@ function bp(r) {
14997
14997
  });
14998
14998
  return f(qo.Provider, {
14999
14999
  value: v,
15000
- children: V(Kf, {
15000
+ children: V(Yf, {
15001
15001
  ...X,
15002
15002
  children: [p && ie.length > 0 ? V("div", {
15003
15003
  className: "flex w-full gap-4",
@@ -15005,7 +15005,7 @@ function bp(r) {
15005
15005
  className: "sticky top-4 h-fit shrink-0 self-start pt-3",
15006
15006
  children: f(ba, {
15007
15007
  items: ie,
15008
- activeItem: k,
15008
+ activeItem: E,
15009
15009
  scrollable: !1
15010
15010
  })
15011
15011
  }), f("div", {
@@ -15022,11 +15022,11 @@ function bp(r) {
15022
15022
  errorCount: le,
15023
15023
  resolvedActionBarLabel: Ie,
15024
15024
  centerActionBarInFrameContent: $,
15025
- submitLabel: b,
15026
- submitIcon: _,
15025
+ submitLabel: x,
15026
+ submitIcon: k,
15027
15027
  discardableChanges: S,
15028
- discardLabel: x,
15029
- discardIcon: E,
15028
+ discardLabel: y,
15029
+ discardIcon: C,
15030
15030
  issuesOneLabel: t.actionBar.issues.one,
15031
15031
  issuesOtherLabel: t.actionBar.issues.other,
15032
15032
  onSubmit: X.handleSubmit(Ue),
@@ -15038,9 +15038,9 @@ function bp(r) {
15038
15038
  });
15039
15039
  }
15040
15040
  function vg() {
15041
- const [r, e] = re(!1), [t, n] = re(!1), i = Y((d) => {
15041
+ const [r, e] = re(!1), [t, n] = re(!1), i = K((d) => {
15042
15042
  e(d.isSubmitting), n(d.hasErrors);
15043
- }), s = Y(null), a = Y({
15043
+ }), s = K(null), a = K({
15044
15044
  get current() {
15045
15045
  return s.current;
15046
15046
  },
@@ -15159,7 +15159,7 @@ const Ep = 300, kp = 0, Sp = Vt({
15159
15159
  }
15160
15160
  });
15161
15161
  function Dp({ title: r, items: e, className: t, activeItem: n, collapsible: i = !1, showChildrenCounter: s = !1, barsAlign: a = "left", size: o = "md", variant: l = "light" }) {
15162
- const [c, d] = re(!1), u = Y(!1), h = (g) => {
15162
+ const [c, d] = re(!1), u = K(!1), h = (g) => {
15163
15163
  g && !c && (u.current = !0), d(g);
15164
15164
  }, p = de((g) => {
15165
15165
  !g || !u.current || (u.current = !1, requestAnimationFrame(() => {
@@ -15169,12 +15169,12 @@ function Dp({ title: r, items: e, className: t, activeItem: n, collapsible: i =
15169
15169
  });
15170
15170
  }));
15171
15171
  }, []);
15172
- return V(Hl, {
15172
+ return V(Xc, {
15173
15173
  open: c,
15174
15174
  onOpenChange: h,
15175
15175
  openDelay: kp,
15176
15176
  closeDelay: Ep,
15177
- children: [f(Vl, {
15177
+ children: [f(Jc, {
15178
15178
  asChild: !0,
15179
15179
  children: f("button", {
15180
15180
  className: se(ea(), "flex cursor-pointer items-center rounded-md px-1.5 py-1", t),
@@ -15186,7 +15186,7 @@ function Dp({ title: r, items: e, className: t, activeItem: n, collapsible: i =
15186
15186
  variant: l
15187
15187
  })
15188
15188
  })
15189
- }), f(jl, {
15189
+ }), f(Qc, {
15190
15190
  ref: p,
15191
15191
  side: a === "left" ? "right" : "left",
15192
15192
  align: "center",
@@ -15216,7 +15216,7 @@ const xg = it(
15216
15216
  }), Np = ({ text: r }) => V("div", {
15217
15217
  className: "flex flex-row items-start gap-2",
15218
15218
  children: [f(Dn, {
15219
- icon: Wl,
15219
+ icon: Vl,
15220
15220
  size: "md",
15221
15221
  className: "text-f1-icon-positive"
15222
15222
  }), f("span", {
@@ -15248,7 +15248,7 @@ const xg = it(
15248
15248
  })]
15249
15249
  }), (o || l) && V("div", {
15250
15250
  className: "flex justify-start gap-2",
15251
- children: [o && f($l, {
15251
+ children: [o && f(Hl, {
15252
15252
  icon: o.icon,
15253
15253
  text: o.label
15254
15254
  }), l && f(ed, {
@@ -15273,18 +15273,18 @@ function Ap({ isOpen: r, onClose: e, title: t, children: n, module: i, portalCon
15273
15273
  const [a, o] = re(r);
15274
15274
  return J(() => {
15275
15275
  o(r);
15276
- }, [r]), f(Gl, {
15276
+ }, [r]), f(jl, {
15277
15277
  open: a,
15278
15278
  onOpenChange: (c) => {
15279
15279
  o(c), c || e();
15280
15280
  },
15281
15281
  modal: !0,
15282
- children: V(Ul, {
15282
+ children: V($l, {
15283
15283
  className: "max-h-[620px] w-[760px] overflow-y-auto overflow-x-hidden bg-f1-background",
15284
15284
  container: s,
15285
15285
  children: [V("div", {
15286
15286
  className: "flex flex-row items-center justify-between px-4 py-4",
15287
- children: [V(Zl, {
15287
+ children: [V(Wl, {
15288
15288
  className: "flex flex-row items-center gap-2 text-lg font-semibold text-f1-foreground",
15289
15289
  children: [i && f(aa, {
15290
15290
  module: i,
@@ -15307,21 +15307,21 @@ function Ap({ isOpen: r, onClose: e, title: t, children: n, module: i, portalCon
15307
15307
  })
15308
15308
  });
15309
15309
  }
15310
- function wg({ isOpen: r, onClose: e, title: t, image: n, benefits: i, errorMessage: s, successMessage: a, loadingState: o, nextSteps: l, closeLabel: c, primaryAction: d, modalTitle: u, modalModule: h, secondaryAction: p, portalContainer: g, tag: b, promoTag: _, showResponseDialog: O = !0 }) {
15311
- const [D, S] = re(r), [I, x] = re(null), [E, C] = re(!1), N = async () => {
15310
+ function wg({ isOpen: r, onClose: e, title: t, image: n, benefits: i, errorMessage: s, successMessage: a, loadingState: o, nextSteps: l, closeLabel: c, primaryAction: d, modalTitle: u, modalModule: h, secondaryAction: p, portalContainer: g, tag: x, promoTag: k, showResponseDialog: T = !0 }) {
15311
+ const [D, S] = re(r), [I, y] = re(null), [C, _] = re(!1), N = async () => {
15312
15312
  if (d?.onClick) {
15313
- C(!0);
15313
+ _(!0);
15314
15314
  try {
15315
- await d.onClick(), S(!1), O && x("success");
15315
+ await d.onClick(), S(!1), T && y("success");
15316
15316
  } catch {
15317
- O && x("error");
15317
+ T && y("error");
15318
15318
  } finally {
15319
- C(!1);
15319
+ _(!1);
15320
15320
  }
15321
15321
  }
15322
15322
  }, $ = () => {
15323
15323
  S(!1), e?.();
15324
- }, z = E;
15324
+ }, z = C;
15325
15325
  return V(Fr, {
15326
15326
  children: [f(Ap, {
15327
15327
  isOpen: D,
@@ -15336,8 +15336,8 @@ function wg({ isOpen: r, onClose: e, title: t, image: n, benefits: i, errorMessa
15336
15336
  image: n,
15337
15337
  benefits: i,
15338
15338
  withShadow: !1,
15339
- tag: b,
15340
- promoTag: _,
15339
+ tag: x,
15340
+ promoTag: k,
15341
15341
  actions: V("div", {
15342
15342
  className: "flex gap-3",
15343
15343
  children: [d && f(ut, {
@@ -15357,10 +15357,10 @@ function wg({ isOpen: r, onClose: e, title: t, image: n, benefits: i, errorMessa
15357
15357
  })
15358
15358
  })
15359
15359
  })
15360
- }), I && O && f(xa, {
15360
+ }), I && T && f(xa, {
15361
15361
  open: !0,
15362
15362
  onClose: () => {
15363
- $(), x(null);
15363
+ $(), y(null);
15364
15364
  },
15365
15365
  success: I === "success",
15366
15366
  errorMessage: s,
@@ -15380,12 +15380,12 @@ function Tp({ mediaUrl: r, title: e, description: t, onClose: n, dismissible: i,
15380
15380
  }, [a, c]);
15381
15381
  const h = r?.includes(".mp4");
15382
15382
  return f(Fr, {
15383
- children: c ? null : V(ql, {
15383
+ children: c ? null : V(Gl, {
15384
15384
  style: {
15385
15385
  width: s
15386
15386
  },
15387
15387
  className: "relative bg-f1-background p-1",
15388
- children: [V(Yl, {
15388
+ children: [V(Ul, {
15389
15389
  children: [i && f("div", {
15390
15390
  className: "absolute right-2 top-2 z-10",
15391
15391
  children: f(ut, {
@@ -15421,7 +15421,7 @@ function Tp({ mediaUrl: r, title: e, description: t, onClose: n, dismissible: i,
15421
15421
  })]
15422
15422
  })]
15423
15423
  })]
15424
- }), o && f(Kl, {
15424
+ }), o && f(Zl, {
15425
15425
  className: "p-3",
15426
15426
  children: o.map((p) => p.type === "upsell" ? f(wa, {
15427
15427
  label: p.label,
@@ -15472,28 +15472,28 @@ const Op = We(function({ primaryAction: e, secondaryAction: t, ...n }, i) {
15472
15472
  });
15473
15473
  });
15474
15474
  Op.displayName = "UpsellingBanner";
15475
- function _g({ isOpen: r, setIsOpen: e, label: t, variant: n = "promote", size: i = "md", showIcon: s = !0, side: a = "right", align: o = "center", icon: l = Xl, mediaUrl: c, title: d, description: u, width: h = "300px", trackVisibility: p, actions: g, onClick: b, hideLabel: _ = !1 }) {
15476
- const [O, D] = re(!1), [S, I] = re(null), [x, E] = re(null), C = (k) => {
15477
- e(k), b && b();
15478
- }, N = async (k) => {
15479
- if (k.type === "upsell") {
15480
- E(k);
15475
+ function _g({ isOpen: r, setIsOpen: e, label: t, variant: n = "promote", size: i = "md", showIcon: s = !0, side: a = "right", align: o = "center", icon: l = ql, mediaUrl: c, title: d, description: u, width: h = "300px", trackVisibility: p, actions: g, onClick: x, hideLabel: k = !1 }) {
15476
+ const [T, D] = re(!1), [S, I] = re(null), [y, C] = re(null), _ = (E) => {
15477
+ e(E), x && x();
15478
+ }, N = async (E) => {
15479
+ if (E.type === "upsell") {
15480
+ C(E);
15481
15481
  try {
15482
- await k.onClick(), k.showConfirmation && (D(!0), I("success"));
15482
+ await E.onClick(), E.showConfirmation && (D(!0), I("success"));
15483
15483
  } catch {
15484
15484
  D(!0), I("error");
15485
15485
  }
15486
15486
  }
15487
15487
  }, $ = () => {
15488
- I(null), D(!1), E(null), e(!1);
15489
- }, z = r && !O, R = g?.map((k) => k.type === "upsell" ? {
15490
- ...k,
15491
- onClick: () => N(k)
15492
- } : k);
15488
+ I(null), D(!1), C(null), e(!1);
15489
+ }, z = r && !T, R = g?.map((E) => E.type === "upsell" ? {
15490
+ ...E,
15491
+ onClick: () => N(E)
15492
+ } : E);
15493
15493
  return V(Fr, {
15494
15494
  children: [V(Js, {
15495
15495
  open: z,
15496
- onOpenChange: C,
15496
+ onOpenChange: _,
15497
15497
  children: [f(Qs, {
15498
15498
  asChild: !0,
15499
15499
  children: f(ut, {
@@ -15502,7 +15502,7 @@ function _g({ isOpen: r, setIsOpen: e, label: t, variant: n = "promote", size: i
15502
15502
  size: i,
15503
15503
  icon: s ? l : void 0,
15504
15504
  onClick: () => e(r),
15505
- hideLabel: _
15505
+ hideLabel: k
15506
15506
  })
15507
15507
  }), f(ta, {
15508
15508
  side: a,
@@ -15520,21 +15520,21 @@ function _g({ isOpen: r, setIsOpen: e, label: t, variant: n = "promote", size: i
15520
15520
  showConfirmation: !1
15521
15521
  })
15522
15522
  })]
15523
- }), x?.type === "upsell" && x.showConfirmation && S && f(xa, {
15523
+ }), y?.type === "upsell" && y.showConfirmation && S && f(xa, {
15524
15524
  open: !0,
15525
15525
  onClose: $,
15526
15526
  success: S === "success",
15527
- errorMessage: x.errorMessage,
15528
- successMessage: x.successMessage,
15529
- nextSteps: x.nextSteps,
15530
- closeLabel: x.closeLabel,
15527
+ errorMessage: y.errorMessage,
15528
+ successMessage: y.successMessage,
15529
+ nextSteps: y.nextSteps,
15530
+ closeLabel: y.closeLabel,
15531
15531
  portalContainer: null
15532
15532
  })]
15533
15533
  });
15534
15534
  }
15535
15535
  const Mp = Ct(null), Ip = ({ children: r, fullScreen: e = !0 }) => {
15536
- const t = Y(null), [n, i] = re(t.current);
15537
- return ic(() => {
15536
+ const t = K(null), [n, i] = re(t.current);
15537
+ return tc(() => {
15538
15538
  i(t.current);
15539
15539
  }, []), f(Mp.Provider, {
15540
15540
  value: {
@@ -15553,21 +15553,21 @@ const Mp = Ct(null), Ip = ({ children: r, fullScreen: e = !0 }) => {
15553
15553
  reducedMotion: "user",
15554
15554
  children: r
15555
15555
  }), Cg = ({ children: r, layout: e, link: t, privacyModeInitiallyEnabled: n, image: i, i18n: s, l10n: a, isDev: o = !1, dataCollectionStorageHandler: l, showExperimentalWarnings: c = !1 }) => f(Lp, {
15556
- children: f(Jl, {
15556
+ children: f(Kl, {
15557
15557
  isDev: o,
15558
15558
  showExperimentalWarnings: c,
15559
- children: f(Ql, {
15559
+ children: f(Yl, {
15560
15560
  ...a,
15561
- children: f(ec, {
15561
+ children: f(Xl, {
15562
15562
  ...s,
15563
- children: f(tc, {
15563
+ children: f(Jl, {
15564
15564
  ...t,
15565
15565
  children: f(Ip, {
15566
15566
  ...e,
15567
- children: f(rc, {
15567
+ children: f(Ql, {
15568
15568
  children: f(rd, {
15569
15569
  initiallyEnabled: n,
15570
- children: f(nc, {
15570
+ children: f(ec, {
15571
15571
  ...i,
15572
15572
  children: f(nd, {
15573
15573
  handler: l,
@@ -15596,7 +15596,7 @@ export {
15596
15596
  Rg as Await,
15597
15597
  qp as BarChart,
15598
15598
  Ng as Blockquote,
15599
- Yp as CategoryBarChart,
15599
+ Kp as CategoryBarChart,
15600
15600
  Ag as ChatSpinner,
15601
15601
  eg as ComboChart,
15602
15602
  jp as Dashboard,
@@ -15612,7 +15612,7 @@ export {
15612
15612
  fg as F0Alert,
15613
15613
  uy as F0AuraVoiceAnimation,
15614
15614
  Bg as F0Avatar,
15615
- qc as F0AvatarAlert,
15615
+ Gc as F0AvatarAlert,
15616
15616
  Hg as F0AvatarCompany,
15617
15617
  $v as F0AvatarDate,
15618
15618
  Vg as F0AvatarEmoji,
@@ -15633,8 +15633,8 @@ export {
15633
15633
  ya as F0DatePicker,
15634
15634
  Zg as F0Dialog,
15635
15635
  qg as F0DialogContext,
15636
- Yg as F0DialogProvider,
15637
- Kg as F0EventCatcherProvider,
15636
+ Kg as F0DialogProvider,
15637
+ Yg as F0EventCatcherProvider,
15638
15638
  Nf as F0FilterPickerContent,
15639
15639
  yg as F0Form,
15640
15640
  bg as F0GridStack,
@@ -15649,14 +15649,14 @@ export {
15649
15649
  rr as F0Select,
15650
15650
  xg as F0TableOfContentPopover,
15651
15651
  Uv as F0TagAlert,
15652
- Zc as F0TagBalance,
15652
+ Wc as F0TagBalance,
15653
15653
  Zv as F0TagCompany,
15654
15654
  ev as F0TagDot,
15655
15655
  qv as F0TagList,
15656
- Yv as F0TagPerson,
15657
- $l as F0TagRaw,
15656
+ Kv as F0TagPerson,
15657
+ Hl as F0TagRaw,
15658
15658
  ed as F0TagStatus,
15659
- Kv as F0TagTeam,
15659
+ Yv as F0TagTeam,
15660
15660
  Na as F0Text,
15661
15661
  tv as F0Thinking,
15662
15662
  rv as FullscreenChatContext,
@@ -15669,7 +15669,7 @@ export {
15669
15669
  lv as Image,
15670
15670
  $p as Layout,
15671
15671
  cv as Li,
15672
- Kp as LineChart,
15672
+ Yp as LineChart,
15673
15673
  dv as Ol,
15674
15674
  uv as OneFilterPicker,
15675
15675
  hv as P,