@openpawlabs/diy-guides-ui 1.7.3 → 1.7.4

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.
@@ -3,7 +3,7 @@ var ii = (t) => {
3
3
  };
4
4
  var li = (t, e, n) => e.has(t) || ii("Cannot " + n);
5
5
  var si = (t, e, n) => (li(t, e, "read from private field"), n ? n.call(t) : e.get(t)), ai = (t, e, n) => e.has(t) ? ii("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), mr = (t, e, n, r) => (li(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n);
6
- import T, { useContext as _, createContext as j, useState as W, useRef as A, useCallback as X, useEffect as Y, useMemo as J, forwardRef as xe, useReducer as Fl, cloneElement as pt, isValidElement as vt, useLayoutEffect as vo, Children as Nt, useId as uu } from "react";
6
+ import M, { useContext as _, createContext as j, useState as W, useRef as K, useCallback as X, useEffect as Y, useMemo as J, forwardRef as xe, useReducer as Fl, cloneElement as pt, isValidElement as vt, useLayoutEffect as vo, Children as Nt, useId as uu } from "react";
7
7
  import { jsx as b, Fragment as lt, jsxs as z } from "react/jsx-runtime";
8
8
  import du, { flushSync as $o, createPortal as fu } from "react-dom";
9
9
  const rt = {
@@ -183,19 +183,19 @@ function Hl(t, e, n, r) {
183
183
  !e.isNative && t.currentTarget instanceof HTMLAnchorElement && t.currentTarget.href && // If props are applied to a router Link component, it may have already prevented default.
184
184
  !t.isDefaultPrevented() && Su(t.currentTarget, t) && n && (t.preventDefault(), e.open(t.currentTarget, t, n, r));
185
185
  }
186
- const le = typeof document < "u" ? T.useLayoutEffect : () => {
186
+ const le = typeof document < "u" ? M.useLayoutEffect : () => {
187
187
  }, An = {
188
188
  prefix: String(Math.round(Math.random() * 1e10)),
189
189
  current: 0
190
- }, Ul = /* @__PURE__ */ T.createContext(An), ku = /* @__PURE__ */ T.createContext(!1);
190
+ }, Ul = /* @__PURE__ */ M.createContext(An), ku = /* @__PURE__ */ M.createContext(!1);
191
191
  let Tu = !!(typeof window < "u" && window.document && window.document.createElement), gr = /* @__PURE__ */ new WeakMap();
192
192
  function Mu(t = !1) {
193
193
  var r, o;
194
- let e = _(Ul), n = A(null);
194
+ let e = _(Ul), n = K(null);
195
195
  if (n.current === null && !t) {
196
196
  let i = (
197
197
  // @ts-ignore
198
- (o = (r = T.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : r.ReactCurrentOwner) == null ? void 0 : o.current
198
+ (o = (r = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) == null ? void 0 : r.ReactCurrentOwner) == null ? void 0 : o.current
199
199
  );
200
200
  if (i) {
201
201
  let l = gr.get(i);
@@ -215,10 +215,10 @@ function Du(t) {
215
215
  return t || `${r}-${n}`;
216
216
  }
217
217
  function Nu(t) {
218
- let e = T.useId(), [n] = W(st()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${An.prefix}`;
218
+ let e = M.useId(), [n] = W(st()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${An.prefix}`;
219
219
  return t || `${r}-${e}`;
220
220
  }
221
- const Iu = typeof T.useId == "function" ? Nu : Du;
221
+ const Iu = typeof M.useId == "function" ? Nu : Du;
222
222
  function Lu() {
223
223
  return !1;
224
224
  }
@@ -230,10 +230,10 @@ function Ku(t) {
230
230
  };
231
231
  }
232
232
  function st() {
233
- return typeof T.useSyncExternalStore == "function" ? T.useSyncExternalStore(Ku, Lu, Ru) : _(ku);
233
+ return typeof M.useSyncExternalStore == "function" ? M.useSyncExternalStore(Ku, Lu, Ru) : _(ku);
234
234
  }
235
235
  function Au(t) {
236
- let [e, n] = W(t), r = A(e), o = A(null), i = A(() => {
236
+ let [e, n] = W(t), r = K(e), o = K(null), i = K(() => {
237
237
  if (!o.current) return;
238
238
  let s = o.current.next();
239
239
  if (s.done) {
@@ -260,7 +260,7 @@ typeof FinalizationRegistry < "u" && (Gt = new FinalizationRegistry((t) => {
260
260
  Tt.delete(t);
261
261
  }));
262
262
  function we(t) {
263
- let [e, n] = W(t), r = A(null), o = Iu(e), i = A(null);
263
+ let [e, n] = W(t), r = K(null), o = Iu(e), i = K(null);
264
264
  if (Gt && Gt.register(i, o), Ou) {
265
265
  const l = Tt.get(o);
266
266
  l && !l.includes(r) ? l.push(r) : Tt.set(o, [
@@ -619,7 +619,7 @@ function jl(t) {
619
619
  });
620
620
  }
621
621
  function tr() {
622
- let t = A(/* @__PURE__ */ new Map()), e = X((o, i, l, s) => {
622
+ let t = K(/* @__PURE__ */ new Map()), e = X((o, i, l, s) => {
623
623
  let a = s != null && s.once ? (...c) => {
624
624
  t.current.delete(l), l(...c);
625
625
  } : l;
@@ -662,7 +662,7 @@ function ql(t, e) {
662
662
  };
663
663
  }
664
664
  function at(t) {
665
- const e = A(null), n = A(void 0), r = X((o) => {
665
+ const e = K(null), n = K(void 0), r = X((o) => {
666
666
  if (typeof t == "function") {
667
667
  const i = t, l = i(o);
668
668
  return () => {
@@ -686,9 +686,9 @@ function at(t) {
686
686
  r
687
687
  ]);
688
688
  }
689
- const Xu = T.useInsertionEffect ?? le;
689
+ const Xu = M.useInsertionEffect ?? le;
690
690
  function Ke(t) {
691
- const e = A(null);
691
+ const e = K(null);
692
692
  return Xu(() => {
693
693
  e.current = t;
694
694
  }, [
@@ -699,7 +699,7 @@ function Ke(t) {
699
699
  }, []);
700
700
  }
701
701
  function fi(t, e) {
702
- const n = A(!0), r = A(null);
702
+ const n = K(!0), r = K(null);
703
703
  le(() => (n.current = !0, () => {
704
704
  n.current = !1;
705
705
  }), []), le(() => {
@@ -855,21 +855,21 @@ function Wt(t, e, n, r) {
855
855
  function In(t, e, n = {}) {
856
856
  let { block: r = "nearest", inline: o = "nearest" } = n;
857
857
  if (t === e) return;
858
- let i = t.scrollTop, l = t.scrollLeft, s = e.getBoundingClientRect(), a = t.getBoundingClientRect(), c = window.getComputedStyle(e), u = window.getComputedStyle(t), d = document.scrollingElement || document.documentElement, h = t === d, f = t === d ? 0 : a.top, m = t === d ? t.clientHeight : a.bottom, g = t === d ? 0 : a.left, y = t === d ? t.clientWidth : a.right, x = parseFloat(c.scrollMarginTop) || 0, v = parseFloat(c.scrollMarginBottom) || 0, C = parseFloat(c.scrollMarginLeft) || 0, M = parseFloat(c.scrollMarginRight) || 0, w = parseFloat(u.scrollPaddingTop) || 0, L = parseFloat(u.scrollPaddingBottom) || 0, D = parseFloat(u.scrollPaddingLeft) || 0, I = parseFloat(u.scrollPaddingRight) || 0, K = parseFloat(u.borderTopWidth) || 0, S = parseFloat(u.borderBottomWidth) || 0, O = parseFloat(u.borderLeftWidth) || 0, G = parseFloat(u.borderRightWidth) || 0, B = s.top - x, p = s.bottom + v, E = s.left - C, R = s.right + M, P = t === d ? 0 : O + G, N = t === d ? 0 : K + S, $ = t === d ? 0 : t.offsetWidth - t.clientWidth - P, k = t === d ? 0 : t.offsetHeight - t.clientHeight - N, F = f + (h ? 0 : K) + w, Q = m - (h ? 0 : S) - L - k, ee = g + (h ? 0 : O) + D, te = y - (h ? 0 : G) - I;
858
+ let i = t.scrollTop, l = t.scrollLeft, s = e.getBoundingClientRect(), a = t.getBoundingClientRect(), c = window.getComputedStyle(e), u = window.getComputedStyle(t), d = document.scrollingElement || document.documentElement, h = t === d, f = t === d ? 0 : a.top, m = t === d ? t.clientHeight : a.bottom, g = t === d ? 0 : a.left, y = t === d ? t.clientWidth : a.right, x = parseFloat(c.scrollMarginTop) || 0, v = parseFloat(c.scrollMarginBottom) || 0, k = parseFloat(c.scrollMarginLeft) || 0, T = parseFloat(c.scrollMarginRight) || 0, E = parseFloat(u.scrollPaddingTop) || 0, R = parseFloat(u.scrollPaddingBottom) || 0, D = parseFloat(u.scrollPaddingLeft) || 0, I = parseFloat(u.scrollPaddingRight) || 0, F = parseFloat(u.borderTopWidth) || 0, P = parseFloat(u.borderBottomWidth) || 0, O = parseFloat(u.borderLeftWidth) || 0, G = parseFloat(u.borderRightWidth) || 0, B = s.top - x, p = s.bottom + v, w = s.left - k, L = s.right + T, S = t === d ? 0 : O + G, N = t === d ? 0 : F + P, $ = t === d ? 0 : t.offsetWidth - t.clientWidth - S, C = t === d ? 0 : t.offsetHeight - t.clientHeight - N, A = f + (h ? 0 : F) + E, Q = m - (h ? 0 : P) - R - C, ee = g + (h ? 0 : O) + D, te = y - (h ? 0 : G) - I;
859
859
  u.direction === "rtl" && !mt() ? ee += $ : te -= $;
860
- let ae = B < F || p > Q, pe = E < ee || R > te;
861
- if (ae && r === "start") i += B - F;
862
- else if (ae && r === "center") i += (B + p) / 2 - (F + Q) / 2;
860
+ let ae = B < A || p > Q, pe = w < ee || L > te;
861
+ if (ae && r === "start") i += B - A;
862
+ else if (ae && r === "center") i += (B + p) / 2 - (A + Q) / 2;
863
863
  else if (ae && r === "end") i += p - Q;
864
864
  else if (ae && r === "nearest") {
865
- let ie = B - F, Se = p - Q;
865
+ let ie = B - A, Se = p - Q;
866
866
  i += Math.abs(ie) <= Math.abs(Se) ? ie : Se;
867
867
  }
868
- if (pe && o === "start") l += E - ee;
869
- else if (pe && o === "center") l += (E + R) / 2 - (ee + te) / 2;
870
- else if (pe && o === "end") l += R - te;
868
+ if (pe && o === "start") l += w - ee;
869
+ else if (pe && o === "center") l += (w + L) / 2 - (ee + te) / 2;
870
+ else if (pe && o === "end") l += L - te;
871
871
  else if (pe && o === "nearest") {
872
- let ie = E - ee, Se = R - te;
872
+ let ie = w - ee, Se = L - te;
873
873
  l += Math.abs(ie) <= Math.abs(Se) ? ie : Se;
874
874
  }
875
875
  if (process.env.NODE_ENV === "test") {
@@ -1055,7 +1055,7 @@ function cd(t, e, n) {
1055
1055
  const {
1056
1056
  render: r,
1057
1057
  ...o
1058
- } = e, i = A(null), l = J(() => $t(n, i), [n, i]);
1058
+ } = e, i = K(null), l = J(() => $t(n, i), [n, i]);
1059
1059
  le(() => {
1060
1060
  var a;
1061
1061
  typeof process < "u" && ((a = process.env) == null ? void 0 : a.NODE_ENV) !== "production" && r && (i.current || console.warn("Ref was not connected to DOM element returned by custom `render` function. Did you forget to pass through or merge the `ref`?"));
@@ -1194,9 +1194,9 @@ var Ue = bd(), md = (t) => {
1194
1194
  }, x = g ? y : hd(
1195
1195
  { ...i == null ? void 0 : i.slots },
1196
1196
  Ce(y) ? { base: r == null ? void 0 : r.base } : y
1197
- ), v = Ce(i == null ? void 0 : i.compoundVariants) ? a : ts(i == null ? void 0 : i.compoundVariants, a), C = (w) => {
1197
+ ), v = Ce(i == null ? void 0 : i.compoundVariants) ? a : ts(i == null ? void 0 : i.compoundVariants, a), k = (E) => {
1198
1198
  if (Ce(f) && Ce(l) && g)
1199
- return t(h, w == null ? void 0 : w.class, w == null ? void 0 : w.className)(d);
1199
+ return t(h, E == null ? void 0 : E.class, E == null ? void 0 : E.className)(d);
1200
1200
  if (v && !Array.isArray(v))
1201
1201
  throw new TypeError(
1202
1202
  `The "compoundVariants" prop must be an array. Received: ${typeof v}`
@@ -1205,57 +1205,57 @@ var Ue = bd(), md = (t) => {
1205
1205
  throw new TypeError(
1206
1206
  `The "compoundSlots" prop must be an array. Received: ${typeof c}`
1207
1207
  );
1208
- const L = (p, E = f, R = null, P = null) => {
1209
- const N = E[p];
1208
+ const R = (p, w = f, L = null, S = null) => {
1209
+ const N = w[p];
1210
1210
  if (!N || Ce(N))
1211
1211
  return null;
1212
- const $ = (P == null ? void 0 : P[p]) ?? (w == null ? void 0 : w[p]);
1212
+ const $ = (S == null ? void 0 : S[p]) ?? (E == null ? void 0 : E[p]);
1213
1213
  if ($ === null) return null;
1214
- const k = mi($);
1215
- if (typeof k == "object")
1214
+ const C = mi($);
1215
+ if (typeof C == "object")
1216
1216
  return null;
1217
- const F = m == null ? void 0 : m[p], Q = k ?? mi(F);
1217
+ const A = m == null ? void 0 : m[p], Q = C ?? mi(A);
1218
1218
  return N[Q || "false"];
1219
1219
  }, D = () => {
1220
1220
  if (!f) return null;
1221
- const p = Object.keys(f), E = [];
1222
- for (let R = 0; R < p.length; R++) {
1223
- const P = L(p[R], f);
1224
- P && E.push(P);
1221
+ const p = Object.keys(f), w = [];
1222
+ for (let L = 0; L < p.length; L++) {
1223
+ const S = R(p[L], f);
1224
+ S && w.push(S);
1225
1225
  }
1226
- return E;
1227
- }, I = (p, E) => {
1226
+ return w;
1227
+ }, I = (p, w) => {
1228
1228
  if (!f || typeof f != "object") return null;
1229
- const R = [];
1230
- for (const P in f) {
1231
- const N = L(P, f, p, E), $ = p === "base" && typeof N == "string" ? N : N && N[p];
1232
- $ && R.push($);
1229
+ const L = [];
1230
+ for (const S in f) {
1231
+ const N = R(S, f, p, w), $ = p === "base" && typeof N == "string" ? N : N && N[p];
1232
+ $ && L.push($);
1233
1233
  }
1234
- return R;
1235
- }, K = {};
1236
- for (const p in w) {
1237
- const E = w[p];
1238
- E !== void 0 && (K[p] = E);
1234
+ return L;
1235
+ }, F = {};
1236
+ for (const p in E) {
1237
+ const w = E[p];
1238
+ w !== void 0 && (F[p] = w);
1239
1239
  }
1240
- const S = (p, E) => {
1241
- var P;
1242
- const R = typeof (w == null ? void 0 : w[p]) == "object" ? {
1243
- [p]: (P = w[p]) == null ? void 0 : P.initial
1240
+ const P = (p, w) => {
1241
+ var S;
1242
+ const L = typeof (E == null ? void 0 : E[p]) == "object" ? {
1243
+ [p]: (S = E[p]) == null ? void 0 : S.initial
1244
1244
  } : {};
1245
1245
  return {
1246
1246
  ...m,
1247
- ...K,
1248
- ...R,
1249
- ...E
1247
+ ...F,
1248
+ ...L,
1249
+ ...w
1250
1250
  };
1251
- }, O = (p = [], E) => {
1252
- const R = [], P = p.length;
1253
- for (let N = 0; N < P; N++) {
1254
- const { class: $, className: k, ...F } = p[N];
1251
+ }, O = (p = [], w) => {
1252
+ const L = [], S = p.length;
1253
+ for (let N = 0; N < S; N++) {
1254
+ const { class: $, className: C, ...A } = p[N];
1255
1255
  let Q = !0;
1256
- const ee = S(null, E);
1257
- for (const te in F) {
1258
- const ae = F[te], pe = ee[te];
1256
+ const ee = P(null, w);
1257
+ for (const te in A) {
1258
+ const ae = A[te], pe = ee[te];
1259
1259
  if (Array.isArray(ae)) {
1260
1260
  if (!ae.includes(pe)) {
1261
1261
  Q = !1;
@@ -1270,36 +1270,36 @@ var Ue = bd(), md = (t) => {
1270
1270
  }
1271
1271
  }
1272
1272
  }
1273
- Q && ($ && R.push($), k && R.push(k));
1273
+ Q && ($ && L.push($), C && L.push(C));
1274
1274
  }
1275
- return R;
1275
+ return L;
1276
1276
  }, G = (p) => {
1277
- const E = O(v, p);
1278
- if (!Array.isArray(E)) return E;
1279
- const R = {}, P = t;
1280
- for (let N = 0; N < E.length; N++) {
1281
- const $ = E[N];
1277
+ const w = O(v, p);
1278
+ if (!Array.isArray(w)) return w;
1279
+ const L = {}, S = t;
1280
+ for (let N = 0; N < w.length; N++) {
1281
+ const $ = w[N];
1282
1282
  if (typeof $ == "string")
1283
- R.base = P(R.base, $)(d);
1283
+ L.base = S(L.base, $)(d);
1284
1284
  else if (typeof $ == "object")
1285
- for (const k in $)
1286
- R[k] = P(R[k], $[k])(d);
1285
+ for (const C in $)
1286
+ L[C] = S(L[C], $[C])(d);
1287
1287
  }
1288
- return R;
1288
+ return L;
1289
1289
  }, B = (p) => {
1290
1290
  if (c.length < 1) return null;
1291
- const E = {}, R = S(null, p);
1292
- for (let P = 0; P < c.length; P++) {
1291
+ const w = {}, L = P(null, p);
1292
+ for (let S = 0; S < c.length; S++) {
1293
1293
  const {
1294
1294
  slots: N = [],
1295
1295
  class: $,
1296
- className: k,
1297
- ...F
1298
- } = c[P];
1299
- if (!Ce(F)) {
1296
+ className: C,
1297
+ ...A
1298
+ } = c[S];
1299
+ if (!Ce(A)) {
1300
1300
  let Q = !0;
1301
- for (const ee in F) {
1302
- const te = R[ee], ae = F[ee];
1301
+ for (const ee in A) {
1302
+ const te = L[ee], ae = A[ee];
1303
1303
  if (te === void 0 || (Array.isArray(ae) ? !ae.includes(te) : ae !== te)) {
1304
1304
  Q = !1;
1305
1305
  break;
@@ -1309,25 +1309,25 @@ var Ue = bd(), md = (t) => {
1309
1309
  }
1310
1310
  for (let Q = 0; Q < N.length; Q++) {
1311
1311
  const ee = N[Q];
1312
- E[ee] || (E[ee] = []), E[ee].push([$, k]);
1312
+ w[ee] || (w[ee] = []), w[ee].push([$, C]);
1313
1313
  }
1314
1314
  }
1315
- return E;
1315
+ return w;
1316
1316
  };
1317
1317
  if (!Ce(l) || !g) {
1318
1318
  const p = {};
1319
1319
  if (typeof x == "object" && !Ce(x)) {
1320
- const E = t;
1321
- for (const R in x)
1322
- p[R] = (P) => {
1323
- const N = G(P), $ = B(P);
1324
- return E(
1325
- x[R],
1326
- I(R, P),
1327
- N ? N[R] : void 0,
1328
- $ ? $[R] : void 0,
1329
- P == null ? void 0 : P.class,
1330
- P == null ? void 0 : P.className
1320
+ const w = t;
1321
+ for (const L in x)
1322
+ p[L] = (S) => {
1323
+ const N = G(S), $ = B(S);
1324
+ return w(
1325
+ x[L],
1326
+ I(L, S),
1327
+ N ? N[L] : void 0,
1328
+ $ ? $[L] : void 0,
1329
+ S == null ? void 0 : S.class,
1330
+ S == null ? void 0 : S.className
1331
1331
  )(d);
1332
1332
  };
1333
1333
  }
@@ -1337,14 +1337,14 @@ var Ue = bd(), md = (t) => {
1337
1337
  h,
1338
1338
  D(),
1339
1339
  O(v),
1340
- w == null ? void 0 : w.class,
1341
- w == null ? void 0 : w.className
1340
+ E == null ? void 0 : E.class,
1341
+ E == null ? void 0 : E.className
1342
1342
  )(d);
1343
- }, M = () => {
1343
+ }, T = () => {
1344
1344
  if (!(!f || typeof f != "object"))
1345
1345
  return Object.keys(f);
1346
1346
  };
1347
- return C.variantKeys = M(), C.extend = i, C.base = h, C.slots = x, C.variants = f, C.defaultVariants = m, C.compoundSlots = c, C.compoundVariants = v, C;
1347
+ return k.variantKeys = T(), k.extend = i, k.base = h, k.slots = x, k.variants = f, k.defaultVariants = m, k.compoundSlots = c, k.compoundVariants = v, k;
1348
1348
  };
1349
1349
  return {
1350
1350
  tv: e,
@@ -1585,14 +1585,14 @@ const gd = (t, e) => {
1585
1585
  }
1586
1586
  y = !1;
1587
1587
  }
1588
- const v = h.length === 0 ? "" : h.length === 1 ? h[0] : i(h).join(":"), C = f ? v + Hr : v, M = C + x;
1589
- if (l.indexOf(M) > -1)
1588
+ const v = h.length === 0 ? "" : h.length === 1 ? h[0] : i(h).join(":"), k = f ? v + Hr : v, T = k + x;
1589
+ if (l.indexOf(T) > -1)
1590
1590
  continue;
1591
- l.push(M);
1592
- const w = o(x, y);
1593
- for (let L = 0; L < w.length; ++L) {
1594
- const D = w[L];
1595
- l.push(C + D);
1591
+ l.push(T);
1592
+ const E = o(x, y);
1593
+ for (let R = 0; R < E.length; ++R) {
1594
+ const D = E[R];
1595
+ l.push(k + D);
1596
1596
  }
1597
1597
  a = u + (a.length > 0 ? " " + a : a);
1598
1598
  }
@@ -1637,7 +1637,7 @@ const gd = (t, e) => {
1637
1637
  const r = ss.exec(t);
1638
1638
  return r ? r[1] ? e(r[1]) : n : !1;
1639
1639
  }, cs = (t) => t === "position" || t === "percentage", us = (t) => t === "image" || t === "url", ds = (t) => t === "length" || t === "size" || t === "bg-size", fs = (t) => t === "length", ef = (t) => t === "number", tf = (t) => t === "family-name", hs = (t) => t === "shadow", Gr = () => {
1640
- const t = ye("color"), e = ye("font"), n = ye("text"), r = ye("font-weight"), o = ye("tracking"), i = ye("leading"), l = ye("breakpoint"), s = ye("container"), a = ye("spacing"), c = ye("radius"), u = ye("shadow"), d = ye("inset-shadow"), h = ye("text-shadow"), f = ye("drop-shadow"), m = ye("blur"), g = ye("perspective"), y = ye("aspect"), x = ye("ease"), v = ye("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], M = () => [
1640
+ const t = ye("color"), e = ye("font"), n = ye("text"), r = ye("font-weight"), o = ye("tracking"), i = ye("leading"), l = ye("breakpoint"), s = ye("container"), a = ye("spacing"), c = ye("radius"), u = ye("shadow"), d = ye("inset-shadow"), h = ye("text-shadow"), f = ye("drop-shadow"), m = ye("blur"), g = ye("perspective"), y = ye("aspect"), x = ye("ease"), v = ye("animate"), k = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], T = () => [
1641
1641
  "center",
1642
1642
  "top",
1643
1643
  "bottom",
@@ -1655,13 +1655,13 @@ const gd = (t, e) => {
1655
1655
  "bottom-left",
1656
1656
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
1657
1657
  "left-bottom"
1658
- ], w = () => [...M(), U, H], L = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], I = () => [U, H, a], K = () => [wt, "full", "auto", ...I()], S = () => [Je, "none", "subgrid", U, H], O = () => ["auto", {
1658
+ ], E = () => [...T(), U, H], R = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], I = () => [U, H, a], F = () => [wt, "full", "auto", ...I()], P = () => [Je, "none", "subgrid", U, H], O = () => ["auto", {
1659
1659
  span: ["full", Je, U, H]
1660
- }, Je, U, H], G = () => [Je, "auto", U, H], B = () => ["auto", "min", "max", "fr", U, H], p = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], E = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], R = () => ["auto", ...I()], P = () => [wt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], N = () => [t, U, H], $ = () => [...M(), xi, $i, {
1660
+ }, Je, U, H], G = () => [Je, "auto", U, H], B = () => ["auto", "min", "max", "fr", U, H], p = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], w = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...I()], S = () => [wt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], N = () => [t, U, H], $ = () => [...T(), xi, $i, {
1661
1661
  position: [U, H]
1662
- }], k = () => ["no-repeat", {
1662
+ }], C = () => ["no-repeat", {
1663
1663
  repeat: ["", "x", "y", "space", "round"]
1664
- }], F = () => ["auto", "cover", "contain", Jd, Yd, {
1664
+ }], A = () => ["auto", "cover", "contain", Jd, Yd, {
1665
1665
  size: [U, H]
1666
1666
  }], Q = () => [wr, Vt, dt], ee = () => [
1667
1667
  // Deprecated since Tailwind CSS v4.0.0
@@ -1731,14 +1731,14 @@ const gd = (t, e) => {
1731
1731
  * @see https://tailwindcss.com/docs/break-after
1732
1732
  */
1733
1733
  "break-after": [{
1734
- "break-after": C()
1734
+ "break-after": k()
1735
1735
  }],
1736
1736
  /**
1737
1737
  * Break Before
1738
1738
  * @see https://tailwindcss.com/docs/break-before
1739
1739
  */
1740
1740
  "break-before": [{
1741
- "break-before": C()
1741
+ "break-before": k()
1742
1742
  }],
1743
1743
  /**
1744
1744
  * Break Inside
@@ -1802,28 +1802,28 @@ const gd = (t, e) => {
1802
1802
  * @see https://tailwindcss.com/docs/object-position
1803
1803
  */
1804
1804
  "object-position": [{
1805
- object: w()
1805
+ object: E()
1806
1806
  }],
1807
1807
  /**
1808
1808
  * Overflow
1809
1809
  * @see https://tailwindcss.com/docs/overflow
1810
1810
  */
1811
1811
  overflow: [{
1812
- overflow: L()
1812
+ overflow: R()
1813
1813
  }],
1814
1814
  /**
1815
1815
  * Overflow X
1816
1816
  * @see https://tailwindcss.com/docs/overflow
1817
1817
  */
1818
1818
  "overflow-x": [{
1819
- "overflow-x": L()
1819
+ "overflow-x": R()
1820
1820
  }],
1821
1821
  /**
1822
1822
  * Overflow Y
1823
1823
  * @see https://tailwindcss.com/docs/overflow
1824
1824
  */
1825
1825
  "overflow-y": [{
1826
- "overflow-y": L()
1826
+ "overflow-y": R()
1827
1827
  }],
1828
1828
  /**
1829
1829
  * Overscroll Behavior
@@ -1856,63 +1856,63 @@ const gd = (t, e) => {
1856
1856
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1857
1857
  */
1858
1858
  inset: [{
1859
- inset: K()
1859
+ inset: F()
1860
1860
  }],
1861
1861
  /**
1862
1862
  * Right / Left
1863
1863
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1864
1864
  */
1865
1865
  "inset-x": [{
1866
- "inset-x": K()
1866
+ "inset-x": F()
1867
1867
  }],
1868
1868
  /**
1869
1869
  * Top / Bottom
1870
1870
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1871
1871
  */
1872
1872
  "inset-y": [{
1873
- "inset-y": K()
1873
+ "inset-y": F()
1874
1874
  }],
1875
1875
  /**
1876
1876
  * Start
1877
1877
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1878
1878
  */
1879
1879
  start: [{
1880
- start: K()
1880
+ start: F()
1881
1881
  }],
1882
1882
  /**
1883
1883
  * End
1884
1884
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1885
1885
  */
1886
1886
  end: [{
1887
- end: K()
1887
+ end: F()
1888
1888
  }],
1889
1889
  /**
1890
1890
  * Top
1891
1891
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1892
1892
  */
1893
1893
  top: [{
1894
- top: K()
1894
+ top: F()
1895
1895
  }],
1896
1896
  /**
1897
1897
  * Right
1898
1898
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1899
1899
  */
1900
1900
  right: [{
1901
- right: K()
1901
+ right: F()
1902
1902
  }],
1903
1903
  /**
1904
1904
  * Bottom
1905
1905
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1906
1906
  */
1907
1907
  bottom: [{
1908
- bottom: K()
1908
+ bottom: F()
1909
1909
  }],
1910
1910
  /**
1911
1911
  * Left
1912
1912
  * @see https://tailwindcss.com/docs/top-right-bottom-left
1913
1913
  */
1914
1914
  left: [{
1915
- left: K()
1915
+ left: F()
1916
1916
  }],
1917
1917
  /**
1918
1918
  * Visibility
@@ -1983,7 +1983,7 @@ const gd = (t, e) => {
1983
1983
  * @see https://tailwindcss.com/docs/grid-template-columns
1984
1984
  */
1985
1985
  "grid-cols": [{
1986
- "grid-cols": S()
1986
+ "grid-cols": P()
1987
1987
  }],
1988
1988
  /**
1989
1989
  * Grid Column Start / End
@@ -2011,7 +2011,7 @@ const gd = (t, e) => {
2011
2011
  * @see https://tailwindcss.com/docs/grid-template-rows
2012
2012
  */
2013
2013
  "grid-rows": [{
2014
- "grid-rows": S()
2014
+ "grid-rows": P()
2015
2015
  }],
2016
2016
  /**
2017
2017
  * Grid Row Start / End
@@ -2088,14 +2088,14 @@ const gd = (t, e) => {
2088
2088
  * @see https://tailwindcss.com/docs/justify-items
2089
2089
  */
2090
2090
  "justify-items": [{
2091
- "justify-items": [...E(), "normal"]
2091
+ "justify-items": [...w(), "normal"]
2092
2092
  }],
2093
2093
  /**
2094
2094
  * Justify Self
2095
2095
  * @see https://tailwindcss.com/docs/justify-self
2096
2096
  */
2097
2097
  "justify-self": [{
2098
- "justify-self": ["auto", ...E()]
2098
+ "justify-self": ["auto", ...w()]
2099
2099
  }],
2100
2100
  /**
2101
2101
  * Align Content
@@ -2109,7 +2109,7 @@ const gd = (t, e) => {
2109
2109
  * @see https://tailwindcss.com/docs/align-items
2110
2110
  */
2111
2111
  "align-items": [{
2112
- items: [...E(), {
2112
+ items: [...w(), {
2113
2113
  baseline: ["", "last"]
2114
2114
  }]
2115
2115
  }],
@@ -2118,7 +2118,7 @@ const gd = (t, e) => {
2118
2118
  * @see https://tailwindcss.com/docs/align-self
2119
2119
  */
2120
2120
  "align-self": [{
2121
- self: ["auto", ...E(), {
2121
+ self: ["auto", ...w(), {
2122
2122
  baseline: ["", "last"]
2123
2123
  }]
2124
2124
  }],
@@ -2134,14 +2134,14 @@ const gd = (t, e) => {
2134
2134
  * @see https://tailwindcss.com/docs/place-items
2135
2135
  */
2136
2136
  "place-items": [{
2137
- "place-items": [...E(), "baseline"]
2137
+ "place-items": [...w(), "baseline"]
2138
2138
  }],
2139
2139
  /**
2140
2140
  * Place Self
2141
2141
  * @see https://tailwindcss.com/docs/place-self
2142
2142
  */
2143
2143
  "place-self": [{
2144
- "place-self": ["auto", ...E()]
2144
+ "place-self": ["auto", ...w()]
2145
2145
  }],
2146
2146
  // Spacing
2147
2147
  /**
@@ -2212,63 +2212,63 @@ const gd = (t, e) => {
2212
2212
  * @see https://tailwindcss.com/docs/margin
2213
2213
  */
2214
2214
  m: [{
2215
- m: R()
2215
+ m: L()
2216
2216
  }],
2217
2217
  /**
2218
2218
  * Margin X
2219
2219
  * @see https://tailwindcss.com/docs/margin
2220
2220
  */
2221
2221
  mx: [{
2222
- mx: R()
2222
+ mx: L()
2223
2223
  }],
2224
2224
  /**
2225
2225
  * Margin Y
2226
2226
  * @see https://tailwindcss.com/docs/margin
2227
2227
  */
2228
2228
  my: [{
2229
- my: R()
2229
+ my: L()
2230
2230
  }],
2231
2231
  /**
2232
2232
  * Margin Start
2233
2233
  * @see https://tailwindcss.com/docs/margin
2234
2234
  */
2235
2235
  ms: [{
2236
- ms: R()
2236
+ ms: L()
2237
2237
  }],
2238
2238
  /**
2239
2239
  * Margin End
2240
2240
  * @see https://tailwindcss.com/docs/margin
2241
2241
  */
2242
2242
  me: [{
2243
- me: R()
2243
+ me: L()
2244
2244
  }],
2245
2245
  /**
2246
2246
  * Margin Top
2247
2247
  * @see https://tailwindcss.com/docs/margin
2248
2248
  */
2249
2249
  mt: [{
2250
- mt: R()
2250
+ mt: L()
2251
2251
  }],
2252
2252
  /**
2253
2253
  * Margin Right
2254
2254
  * @see https://tailwindcss.com/docs/margin
2255
2255
  */
2256
2256
  mr: [{
2257
- mr: R()
2257
+ mr: L()
2258
2258
  }],
2259
2259
  /**
2260
2260
  * Margin Bottom
2261
2261
  * @see https://tailwindcss.com/docs/margin
2262
2262
  */
2263
2263
  mb: [{
2264
- mb: R()
2264
+ mb: L()
2265
2265
  }],
2266
2266
  /**
2267
2267
  * Margin Left
2268
2268
  * @see https://tailwindcss.com/docs/margin
2269
2269
  */
2270
2270
  ml: [{
2271
- ml: R()
2271
+ ml: L()
2272
2272
  }],
2273
2273
  /**
2274
2274
  * Space Between X
@@ -2302,14 +2302,14 @@ const gd = (t, e) => {
2302
2302
  * @see https://tailwindcss.com/docs/width#setting-both-width-and-height
2303
2303
  */
2304
2304
  size: [{
2305
- size: P()
2305
+ size: S()
2306
2306
  }],
2307
2307
  /**
2308
2308
  * Width
2309
2309
  * @see https://tailwindcss.com/docs/width
2310
2310
  */
2311
2311
  w: [{
2312
- w: [s, "screen", ...P()]
2312
+ w: [s, "screen", ...S()]
2313
2313
  }],
2314
2314
  /**
2315
2315
  * Min-Width
@@ -2321,7 +2321,7 @@ const gd = (t, e) => {
2321
2321
  "screen",
2322
2322
  /** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
2323
2323
  "none",
2324
- ...P()
2324
+ ...S()
2325
2325
  ]
2326
2326
  }],
2327
2327
  /**
@@ -2339,7 +2339,7 @@ const gd = (t, e) => {
2339
2339
  {
2340
2340
  screen: [l]
2341
2341
  },
2342
- ...P()
2342
+ ...S()
2343
2343
  ]
2344
2344
  }],
2345
2345
  /**
@@ -2347,21 +2347,21 @@ const gd = (t, e) => {
2347
2347
  * @see https://tailwindcss.com/docs/height
2348
2348
  */
2349
2349
  h: [{
2350
- h: ["screen", "lh", ...P()]
2350
+ h: ["screen", "lh", ...S()]
2351
2351
  }],
2352
2352
  /**
2353
2353
  * Min-Height
2354
2354
  * @see https://tailwindcss.com/docs/min-height
2355
2355
  */
2356
2356
  "min-h": [{
2357
- "min-h": ["screen", "lh", "none", ...P()]
2357
+ "min-h": ["screen", "lh", "none", ...S()]
2358
2358
  }],
2359
2359
  /**
2360
2360
  * Max-Height
2361
2361
  * @see https://tailwindcss.com/docs/max-height
2362
2362
  */
2363
2363
  "max-h": [{
2364
- "max-h": ["screen", "lh", ...P()]
2364
+ "max-h": ["screen", "lh", ...S()]
2365
2365
  }],
2366
2366
  // ------------------
2367
2367
  // --- Typography ---
@@ -2637,14 +2637,14 @@ const gd = (t, e) => {
2637
2637
  * @see https://tailwindcss.com/docs/background-repeat
2638
2638
  */
2639
2639
  "bg-repeat": [{
2640
- bg: k()
2640
+ bg: C()
2641
2641
  }],
2642
2642
  /**
2643
2643
  * Background Size
2644
2644
  * @see https://tailwindcss.com/docs/background-size
2645
2645
  */
2646
2646
  "bg-size": [{
2647
- bg: F()
2647
+ bg: A()
2648
2648
  }],
2649
2649
  /**
2650
2650
  * Background Image
@@ -3271,7 +3271,7 @@ const gd = (t, e) => {
3271
3271
  }]
3272
3272
  }],
3273
3273
  "mask-image-radial-pos": [{
3274
- "mask-radial-at": M()
3274
+ "mask-radial-at": T()
3275
3275
  }],
3276
3276
  "mask-image-conic-pos": [{
3277
3277
  "mask-conic": [oe]
@@ -3314,14 +3314,14 @@ const gd = (t, e) => {
3314
3314
  * @see https://tailwindcss.com/docs/mask-repeat
3315
3315
  */
3316
3316
  "mask-repeat": [{
3317
- mask: k()
3317
+ mask: C()
3318
3318
  }],
3319
3319
  /**
3320
3320
  * Mask Size
3321
3321
  * @see https://tailwindcss.com/docs/mask-size
3322
3322
  */
3323
3323
  "mask-size": [{
3324
- mask: F()
3324
+ mask: A()
3325
3325
  }],
3326
3326
  /**
3327
3327
  * Mask Type
@@ -3618,7 +3618,7 @@ const gd = (t, e) => {
3618
3618
  * @see https://tailwindcss.com/docs/perspective-origin
3619
3619
  */
3620
3620
  "perspective-origin": [{
3621
- "perspective-origin": w()
3621
+ "perspective-origin": E()
3622
3622
  }],
3623
3623
  /**
3624
3624
  * Rotate
@@ -3714,7 +3714,7 @@ const gd = (t, e) => {
3714
3714
  * @see https://tailwindcss.com/docs/transform-origin
3715
3715
  */
3716
3716
  "transform-origin": [{
3717
- origin: w()
3717
+ origin: E()
3718
3718
  }],
3719
3719
  /**
3720
3720
  * Transform Style
@@ -4493,7 +4493,7 @@ const af = Me({
4493
4493
  }), _n = Symbol("default");
4494
4494
  function Ze({ values: t, children: e }) {
4495
4495
  for (let [n, r] of t)
4496
- e = /* @__PURE__ */ T.createElement(n.Provider, {
4496
+ e = /* @__PURE__ */ M.createElement(n.Provider, {
4497
4497
  value: r
4498
4498
  }, e);
4499
4499
  return e;
@@ -4575,7 +4575,7 @@ function Fe(t, e, n) {
4575
4575
  ];
4576
4576
  }
4577
4577
  function ms(t = !0) {
4578
- let [e, n] = W(t), r = A(!1), o = X((i) => {
4578
+ let [e, n] = W(t), r = K(!1), o = X((i) => {
4579
4579
  r.current = !0, n(!!i);
4580
4580
  }, []);
4581
4581
  return le(() => {
@@ -4592,7 +4592,7 @@ function $f(t) {
4592
4592
  return n;
4593
4593
  }
4594
4594
  function xf(t, e, n) {
4595
- let { render: r, ...o } = e, i = A(null), l = J(() => $t(n, i), [
4595
+ let { render: r, ...o } = e, i = K(null), l = J(() => $t(n, i), [
4596
4596
  n,
4597
4597
  i
4598
4598
  ]);
@@ -4606,7 +4606,7 @@ function xf(t, e, n) {
4606
4606
  ...o,
4607
4607
  ref: l
4608
4608
  };
4609
- return r ? r(s, void 0) : /* @__PURE__ */ T.createElement(t, s);
4609
+ return r ? r(s, void 0) : /* @__PURE__ */ M.createElement(t, s);
4610
4610
  }
4611
4611
  const wi = {}, Ee = new Proxy({}, {
4612
4612
  get(t, e) {
@@ -4643,11 +4643,11 @@ typeof HTMLTemplateElement < "u" && (Object.defineProperty(HTMLTemplateElement.p
4643
4643
  const Bn = /* @__PURE__ */ j(!1);
4644
4644
  function wf(t) {
4645
4645
  if (_(Bn))
4646
- return /* @__PURE__ */ T.createElement(T.Fragment, null, t.children);
4647
- let n = /* @__PURE__ */ T.createElement(Bn.Provider, {
4646
+ return /* @__PURE__ */ M.createElement(M.Fragment, null, t.children);
4647
+ let n = /* @__PURE__ */ M.createElement(Bn.Provider, {
4648
4648
  value: !0
4649
4649
  }, t.children);
4650
- return /* @__PURE__ */ T.createElement("template", null, n);
4650
+ return /* @__PURE__ */ M.createElement("template", null, n);
4651
4651
  }
4652
4652
  function Ef(t) {
4653
4653
  let e = (n, r) => _(Bn) ? null : t(n, r);
@@ -4749,7 +4749,7 @@ function Mf() {
4749
4749
  direction: "ltr"
4750
4750
  } : e;
4751
4751
  }
4752
- const Df = /* @__PURE__ */ T.createContext(null);
4752
+ const Df = /* @__PURE__ */ M.createContext(null);
4753
4753
  function xt() {
4754
4754
  let t = Mf();
4755
4755
  return _(Df) || t;
@@ -4933,11 +4933,11 @@ const xs = /* @__PURE__ */ j(null), Of = /* @__PURE__ */ xe(function(e, n) {
4933
4933
  }), f = me(e, {
4934
4934
  global: !0
4935
4935
  });
4936
- return /* @__PURE__ */ T.createElement(Ee.div, {
4936
+ return /* @__PURE__ */ M.createElement(Ee.div, {
4937
4937
  ...re(f, h, c),
4938
4938
  ref: n,
4939
4939
  slot: e.slot || void 0
4940
- }, /* @__PURE__ */ T.createElement(Sf.Provider, {
4940
+ }, /* @__PURE__ */ M.createElement(Sf.Provider, {
4941
4941
  value: {
4942
4942
  ...u,
4943
4943
  ref: s,
@@ -5002,7 +5002,7 @@ function Es(t, e) {
5002
5002
  });
5003
5003
  }
5004
5004
  function Ss(t) {
5005
- let e = A({
5005
+ let e = K({
5006
5006
  isFocused: !1,
5007
5007
  observer: null
5008
5008
  });
@@ -5243,7 +5243,7 @@ function Ds(t) {
5243
5243
  }
5244
5244
  };
5245
5245
  }
5246
- let Xr = /* @__PURE__ */ T.createContext(null);
5246
+ let Xr = /* @__PURE__ */ M.createContext(null);
5247
5247
  function Wf(t) {
5248
5248
  let e = _(Xr) || {};
5249
5249
  So(e, t);
@@ -5251,7 +5251,7 @@ function Wf(t) {
5251
5251
  return r;
5252
5252
  }
5253
5253
  function fn(t, e) {
5254
- let { focusProps: n } = Ms(t), { keyboardProps: r } = Ds(t), o = re(n, r), i = Wf(e), l = t.isDisabled ? {} : i, s = A(t.autoFocus);
5254
+ let { focusProps: n } = Ms(t), { keyboardProps: r } = Ds(t), o = re(n, r), i = Wf(e), l = t.isDisabled ? {} : i, s = K(t.autoFocus);
5255
5255
  Y(() => {
5256
5256
  s.current && e.current && ot(e.current), s.current = !1;
5257
5257
  }, [
@@ -5294,7 +5294,7 @@ function Pr(t) {
5294
5294
  t.style[n] === "none" && (t.style[n] = e), t.getAttribute("style") === "" && t.removeAttribute("style"), Ln.delete(t);
5295
5295
  }
5296
5296
  }
5297
- const on = T.createContext({
5297
+ const on = M.createContext({
5298
5298
  register: () => {
5299
5299
  }
5300
5300
  });
@@ -5327,7 +5327,7 @@ class xn {
5327
5327
  Dt = new WeakMap();
5328
5328
  const Ti = Symbol("linkClicked"), Mi = "react-aria-pressable-style", Di = "data-react-aria-pressable";
5329
5329
  function it(t) {
5330
- let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: o, onPressUp: i, onClick: l, isDisabled: s, isPressed: a, preventFocusOnPress: c, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: h, ...f } = jf(t), [m, g] = W(!1), y = A({
5330
+ let { onPress: e, onPressChange: n, onPressStart: r, onPressEnd: o, onPressUp: i, onClick: l, isDisabled: s, isPressed: a, preventFocusOnPress: c, shouldCancelOnPointerExit: u, allowTextSelectionOnPress: d, ref: h, ...f } = jf(t), [m, g] = W(!1), y = K({
5331
5331
  isPressed: !1,
5332
5332
  ignoreEmulatedMouseEvents: !1,
5333
5333
  didFirePressStart: !1,
@@ -5337,64 +5337,64 @@ function it(t) {
5337
5337
  isOverTarget: !1,
5338
5338
  pointerType: null,
5339
5339
  disposables: []
5340
- }), { addGlobalListener: x, removeAllGlobalListeners: v } = tr(), C = X((p, E) => {
5341
- let R = y.current;
5342
- if (s || R.didFirePressStart) return !1;
5343
- let P = !0;
5344
- if (R.isTriggeringEvent = !0, r) {
5345
- let N = new xn("pressstart", E, p);
5346
- r(N), P = N.shouldStopPropagation;
5347
- }
5348
- return n && n(!0), R.isTriggeringEvent = !1, R.didFirePressStart = !0, g(!0), P;
5340
+ }), { addGlobalListener: x, removeAllGlobalListeners: v } = tr(), k = X((p, w) => {
5341
+ let L = y.current;
5342
+ if (s || L.didFirePressStart) return !1;
5343
+ let S = !0;
5344
+ if (L.isTriggeringEvent = !0, r) {
5345
+ let N = new xn("pressstart", w, p);
5346
+ r(N), S = N.shouldStopPropagation;
5347
+ }
5348
+ return n && n(!0), L.isTriggeringEvent = !1, L.didFirePressStart = !0, g(!0), S;
5349
5349
  }, [
5350
5350
  s,
5351
5351
  r,
5352
5352
  n
5353
- ]), M = X((p, E, R = !0) => {
5354
- let P = y.current;
5355
- if (!P.didFirePressStart) return !1;
5356
- P.didFirePressStart = !1, P.isTriggeringEvent = !0;
5353
+ ]), T = X((p, w, L = !0) => {
5354
+ let S = y.current;
5355
+ if (!S.didFirePressStart) return !1;
5356
+ S.didFirePressStart = !1, S.isTriggeringEvent = !0;
5357
5357
  let N = !0;
5358
5358
  if (o) {
5359
- let $ = new xn("pressend", E, p);
5359
+ let $ = new xn("pressend", w, p);
5360
5360
  o($), N = $.shouldStopPropagation;
5361
5361
  }
5362
- if (n && n(!1), g(!1), e && R && !s) {
5363
- let $ = new xn("press", E, p);
5362
+ if (n && n(!1), g(!1), e && L && !s) {
5363
+ let $ = new xn("press", w, p);
5364
5364
  e($), N && (N = $.shouldStopPropagation);
5365
5365
  }
5366
- return P.isTriggeringEvent = !1, N;
5366
+ return S.isTriggeringEvent = !1, N;
5367
5367
  }, [
5368
5368
  s,
5369
5369
  o,
5370
5370
  n,
5371
5371
  e
5372
- ]), w = Ke(M), L = X((p, E) => {
5373
- let R = y.current;
5372
+ ]), E = Ke(T), R = X((p, w) => {
5373
+ let L = y.current;
5374
5374
  if (s) return !1;
5375
5375
  if (i) {
5376
- R.isTriggeringEvent = !0;
5377
- let P = new xn("pressup", E, p);
5378
- return i(P), R.isTriggeringEvent = !1, P.shouldStopPropagation;
5376
+ L.isTriggeringEvent = !0;
5377
+ let S = new xn("pressup", w, p);
5378
+ return i(S), L.isTriggeringEvent = !1, S.shouldStopPropagation;
5379
5379
  }
5380
5380
  return !0;
5381
5381
  }, [
5382
5382
  s,
5383
5383
  i
5384
- ]), D = Ke(L), I = X((p) => {
5385
- let E = y.current;
5386
- if (E.isPressed && E.target) {
5387
- E.didFirePressStart && E.pointerType != null && M(ft(E.target, p), E.pointerType, !1), E.isPressed = !1, E.isOverTarget = !1, E.activePointerId = null, E.pointerType = null, v(), d || Pr(E.target);
5388
- for (let R of E.disposables) R();
5389
- E.disposables = [];
5384
+ ]), D = Ke(R), I = X((p) => {
5385
+ let w = y.current;
5386
+ if (w.isPressed && w.target) {
5387
+ w.didFirePressStart && w.pointerType != null && T(ft(w.target, p), w.pointerType, !1), w.isPressed = !1, w.isOverTarget = !1, w.activePointerId = null, w.pointerType = null, v(), d || Pr(w.target);
5388
+ for (let L of w.disposables) L();
5389
+ w.disposables = [];
5390
5390
  }
5391
5391
  }, [
5392
5392
  d,
5393
5393
  v,
5394
- M
5395
- ]), K = Ke(I);
5394
+ T
5395
+ ]), F = Ke(I);
5396
5396
  Y(() => {
5397
- s && y.current.isPressed && K({
5397
+ s && y.current.isPressed && F({
5398
5398
  currentTarget: y.current.target,
5399
5399
  shiftKey: !1,
5400
5400
  ctrlKey: !1,
@@ -5404,7 +5404,7 @@ function it(t) {
5404
5404
  }, [
5405
5405
  s
5406
5406
  ]);
5407
- let S = X((p) => {
5407
+ let P = X((p) => {
5408
5408
  u && I(p);
5409
5409
  }, [
5410
5410
  u,
@@ -5414,158 +5414,158 @@ function it(t) {
5414
5414
  }, [
5415
5415
  s,
5416
5416
  l
5417
- ]), G = X((p, E) => {
5417
+ ]), G = X((p, w) => {
5418
5418
  if (!s && l) {
5419
- let R = new MouseEvent("click", p);
5420
- Es(R, E), l(Io(R));
5419
+ let L = new MouseEvent("click", p);
5420
+ Es(L, w), l(Io(L));
5421
5421
  }
5422
5422
  }, [
5423
5423
  s,
5424
5424
  l
5425
5425
  ]), B = J(() => {
5426
- let p = y.current, E = {
5427
- onKeyDown(P) {
5426
+ let p = y.current, w = {
5427
+ onKeyDown(S) {
5428
5428
  var N;
5429
- if (Cr(P.nativeEvent, P.currentTarget) && Z(P.currentTarget, V(P))) {
5430
- Li(V(P), P.key) && P.preventDefault();
5429
+ if (Cr(S.nativeEvent, S.currentTarget) && Z(S.currentTarget, V(S))) {
5430
+ Li(V(S), S.key) && S.preventDefault();
5431
5431
  let $ = !0;
5432
- !p.isPressed && !P.repeat && (p.target = P.currentTarget, p.isPressed = !0, p.pointerType = "keyboard", $ = C(P, "keyboard"));
5433
- let k = P.currentTarget, F = (Q) => {
5434
- Cr(Q, k) && !Q.repeat && Z(k, V(Q)) && p.target && D(ft(p.target, Q), "keyboard");
5432
+ !p.isPressed && !S.repeat && (p.target = S.currentTarget, p.isPressed = !0, p.pointerType = "keyboard", $ = k(S, "keyboard"));
5433
+ let C = S.currentTarget, A = (Q) => {
5434
+ Cr(Q, C) && !Q.repeat && Z(C, V(Q)) && p.target && D(ft(p.target, Q), "keyboard");
5435
5435
  };
5436
- x(se(P.currentTarget), "keyup", un(F, R), !0), $ && P.stopPropagation(), P.metaKey && bt() && ((N = p.metaKeyEvents) == null || N.set(P.key, P.nativeEvent));
5437
- } else P.key === "Meta" && (p.metaKeyEvents = /* @__PURE__ */ new Map());
5436
+ x(se(S.currentTarget), "keyup", un(A, L), !0), $ && S.stopPropagation(), S.metaKey && bt() && ((N = p.metaKeyEvents) == null || N.set(S.key, S.nativeEvent));
5437
+ } else S.key === "Meta" && (p.metaKeyEvents = /* @__PURE__ */ new Map());
5438
5438
  },
5439
- onClick(P) {
5440
- if (!(P && !Z(P.currentTarget, V(P))) && P && P.button === 0 && !p.isTriggeringEvent && !qe.isOpening) {
5439
+ onClick(S) {
5440
+ if (!(S && !Z(S.currentTarget, V(S))) && S && S.button === 0 && !p.isTriggeringEvent && !qe.isOpening) {
5441
5441
  let N = !0;
5442
- if (s && P.preventDefault(), !p.ignoreEmulatedMouseEvents && !p.isPressed && (p.pointerType === "virtual" || Br(P.nativeEvent))) {
5443
- let $ = C(P, "virtual"), k = D(P, "virtual"), F = w(P, "virtual");
5444
- O(P), N = $ && k && F;
5442
+ if (s && S.preventDefault(), !p.ignoreEmulatedMouseEvents && !p.isPressed && (p.pointerType === "virtual" || Br(S.nativeEvent))) {
5443
+ let $ = k(S, "virtual"), C = D(S, "virtual"), A = E(S, "virtual");
5444
+ O(S), N = $ && C && A;
5445
5445
  } else if (p.isPressed && p.pointerType !== "keyboard") {
5446
- let $ = p.pointerType || P.nativeEvent.pointerType || "virtual", k = D(ft(P.currentTarget, P), $), F = w(ft(P.currentTarget, P), $, !0);
5447
- N = k && F, p.isOverTarget = !1, O(P), K(P);
5446
+ let $ = p.pointerType || S.nativeEvent.pointerType || "virtual", C = D(ft(S.currentTarget, S), $), A = E(ft(S.currentTarget, S), $, !0);
5447
+ N = C && A, p.isOverTarget = !1, O(S), F(S);
5448
5448
  }
5449
- p.ignoreEmulatedMouseEvents = !1, N && P.stopPropagation();
5449
+ p.ignoreEmulatedMouseEvents = !1, N && S.stopPropagation();
5450
5450
  }
5451
5451
  }
5452
- }, R = (P) => {
5453
- var N, $, k;
5454
- if (p.isPressed && p.target && Cr(P, p.target)) {
5455
- Li(V(P), P.key) && P.preventDefault();
5456
- let F = V(P), Q = Z(p.target, F);
5457
- w(ft(p.target, P), "keyboard", Q), Q && G(P, p.target), v(), P.key !== "Enter" && Lo(p.target) && Z(p.target, F) && !P[Ti] && (P[Ti] = !0, qe(p.target, P, !1)), p.isPressed = !1, (N = p.metaKeyEvents) == null || N.delete(P.key);
5458
- } else if (P.key === "Meta" && (($ = p.metaKeyEvents) != null && $.size)) {
5459
- let F = p.metaKeyEvents;
5452
+ }, L = (S) => {
5453
+ var N, $, C;
5454
+ if (p.isPressed && p.target && Cr(S, p.target)) {
5455
+ Li(V(S), S.key) && S.preventDefault();
5456
+ let A = V(S), Q = Z(p.target, A);
5457
+ E(ft(p.target, S), "keyboard", Q), Q && G(S, p.target), v(), S.key !== "Enter" && Lo(p.target) && Z(p.target, A) && !S[Ti] && (S[Ti] = !0, qe(p.target, S, !1)), p.isPressed = !1, (N = p.metaKeyEvents) == null || N.delete(S.key);
5458
+ } else if (S.key === "Meta" && (($ = p.metaKeyEvents) != null && $.size)) {
5459
+ let A = p.metaKeyEvents;
5460
5460
  p.metaKeyEvents = void 0;
5461
- for (let Q of F.values()) (k = p.target) == null || k.dispatchEvent(new KeyboardEvent("keyup", Q));
5461
+ for (let Q of A.values()) (C = p.target) == null || C.dispatchEvent(new KeyboardEvent("keyup", Q));
5462
5462
  }
5463
5463
  };
5464
5464
  if (typeof PointerEvent < "u") {
5465
- E.onPointerDown = ($) => {
5465
+ w.onPointerDown = ($) => {
5466
5466
  if ($.button !== 0 || !Z($.currentTarget, V($))) return;
5467
5467
  if (nd($.nativeEvent)) {
5468
5468
  p.pointerType = "virtual";
5469
5469
  return;
5470
5470
  }
5471
5471
  p.pointerType = $.pointerType;
5472
- let k = !0;
5472
+ let C = !0;
5473
5473
  if (!p.isPressed) {
5474
- p.isPressed = !0, p.isOverTarget = !0, p.activePointerId = $.pointerId, p.target = $.currentTarget, d || ki(p.target), k = C($, p.pointerType);
5475
- let F = V($);
5476
- "releasePointerCapture" in F && ("hasPointerCapture" in F ? F.hasPointerCapture($.pointerId) && F.releasePointerCapture($.pointerId) : F.releasePointerCapture($.pointerId)), x(se($.currentTarget), "pointerup", P, !1), x(se($.currentTarget), "pointercancel", N, !1);
5474
+ p.isPressed = !0, p.isOverTarget = !0, p.activePointerId = $.pointerId, p.target = $.currentTarget, d || ki(p.target), C = k($, p.pointerType);
5475
+ let A = V($);
5476
+ "releasePointerCapture" in A && ("hasPointerCapture" in A ? A.hasPointerCapture($.pointerId) && A.releasePointerCapture($.pointerId) : A.releasePointerCapture($.pointerId)), x(se($.currentTarget), "pointerup", S, !1), x(se($.currentTarget), "pointercancel", N, !1);
5477
5477
  }
5478
- k && $.stopPropagation();
5479
- }, E.onMouseDown = ($) => {
5478
+ C && $.stopPropagation();
5479
+ }, w.onMouseDown = ($) => {
5480
5480
  if (Z($.currentTarget, V($)) && $.button === 0) {
5481
5481
  if (c) {
5482
- let k = Pi($.target);
5483
- k && p.disposables.push(k);
5482
+ let C = Pi($.target);
5483
+ C && p.disposables.push(C);
5484
5484
  }
5485
5485
  $.stopPropagation();
5486
5486
  }
5487
- }, E.onPointerUp = ($) => {
5487
+ }, w.onPointerUp = ($) => {
5488
5488
  !Z($.currentTarget, V($)) || p.pointerType === "virtual" || $.button === 0 && !p.isPressed && D($, p.pointerType || $.pointerType);
5489
- }, E.onPointerEnter = ($) => {
5490
- $.pointerId === p.activePointerId && p.target && !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, C(ft(p.target, $), p.pointerType));
5491
- }, E.onPointerLeave = ($) => {
5492
- $.pointerId === p.activePointerId && p.target && p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, w(ft(p.target, $), p.pointerType, !1), S($));
5489
+ }, w.onPointerEnter = ($) => {
5490
+ $.pointerId === p.activePointerId && p.target && !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, k(ft(p.target, $), p.pointerType));
5491
+ }, w.onPointerLeave = ($) => {
5492
+ $.pointerId === p.activePointerId && p.target && p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, E(ft(p.target, $), p.pointerType, !1), P($));
5493
5493
  };
5494
- let P = ($) => {
5494
+ let S = ($) => {
5495
5495
  if ($.pointerId === p.activePointerId && p.isPressed && $.button === 0 && p.target) {
5496
5496
  if (Z(p.target, V($)) && p.pointerType != null) {
5497
- let k = !1, F = setTimeout(() => {
5498
- p.isPressed && p.target instanceof HTMLElement && (k ? K($) : (ve(p.target), p.target.click()));
5497
+ let C = !1, A = setTimeout(() => {
5498
+ p.isPressed && p.target instanceof HTMLElement && (C ? F($) : (ve(p.target), p.target.click()));
5499
5499
  }, 80);
5500
- x($.currentTarget, "click", () => k = !0, !0), p.disposables.push(() => clearTimeout(F));
5500
+ x($.currentTarget, "click", () => C = !0, !0), p.disposables.push(() => clearTimeout(A));
5501
5501
  } else
5502
- K($);
5502
+ F($);
5503
5503
  p.isOverTarget = !1;
5504
5504
  }
5505
5505
  }, N = ($) => {
5506
- K($);
5506
+ F($);
5507
5507
  };
5508
- E.onDragStart = ($) => {
5509
- Z($.currentTarget, V($)) && K($);
5508
+ w.onDragStart = ($) => {
5509
+ Z($.currentTarget, V($)) && F($);
5510
5510
  };
5511
5511
  } else if (process.env.NODE_ENV === "test") {
5512
- E.onMouseDown = ($) => {
5512
+ w.onMouseDown = ($) => {
5513
5513
  if ($.button !== 0 || !Z($.currentTarget, V($))) return;
5514
5514
  if (p.ignoreEmulatedMouseEvents) {
5515
5515
  $.stopPropagation();
5516
5516
  return;
5517
5517
  }
5518
- if (p.isPressed = !0, p.isOverTarget = !0, p.target = $.currentTarget, p.pointerType = Br($.nativeEvent) ? "virtual" : "mouse", $o(() => C($, p.pointerType)) && $.stopPropagation(), c) {
5519
- let F = Pi($.target);
5520
- F && p.disposables.push(F);
5518
+ if (p.isPressed = !0, p.isOverTarget = !0, p.target = $.currentTarget, p.pointerType = Br($.nativeEvent) ? "virtual" : "mouse", $o(() => k($, p.pointerType)) && $.stopPropagation(), c) {
5519
+ let A = Pi($.target);
5520
+ A && p.disposables.push(A);
5521
5521
  }
5522
- x(se($.currentTarget), "mouseup", P, !1);
5523
- }, E.onMouseEnter = ($) => {
5522
+ x(se($.currentTarget), "mouseup", S, !1);
5523
+ }, w.onMouseEnter = ($) => {
5524
5524
  if (!Z($.currentTarget, V($))) return;
5525
- let k = !0;
5526
- p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !0, k = C($, p.pointerType)), k && $.stopPropagation();
5527
- }, E.onMouseLeave = ($) => {
5525
+ let C = !0;
5526
+ p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !0, C = k($, p.pointerType)), C && $.stopPropagation();
5527
+ }, w.onMouseLeave = ($) => {
5528
5528
  if (!Z($.currentTarget, V($))) return;
5529
- let k = !0;
5530
- p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !1, k = w($, p.pointerType, !1), S($)), k && $.stopPropagation();
5531
- }, E.onMouseUp = ($) => {
5529
+ let C = !0;
5530
+ p.isPressed && !p.ignoreEmulatedMouseEvents && p.pointerType != null && (p.isOverTarget = !1, C = E($, p.pointerType, !1), P($)), C && $.stopPropagation();
5531
+ }, w.onMouseUp = ($) => {
5532
5532
  Z($.currentTarget, V($)) && !p.ignoreEmulatedMouseEvents && $.button === 0 && !p.isPressed && D($, p.pointerType || "mouse");
5533
5533
  };
5534
- let P = ($) => {
5534
+ let S = ($) => {
5535
5535
  if ($.button === 0) {
5536
5536
  if (p.ignoreEmulatedMouseEvents) {
5537
5537
  p.ignoreEmulatedMouseEvents = !1;
5538
5538
  return;
5539
5539
  }
5540
- p.target && Z(p.target, V($)) && p.pointerType != null || K($), p.isOverTarget = !1;
5540
+ p.target && Z(p.target, V($)) && p.pointerType != null || F($), p.isOverTarget = !1;
5541
5541
  }
5542
5542
  };
5543
- E.onTouchStart = ($) => {
5543
+ w.onTouchStart = ($) => {
5544
5544
  if (!Z($.currentTarget, V($))) return;
5545
- let k = qf($.nativeEvent);
5546
- if (!k) return;
5547
- p.activePointerId = k.identifier, p.ignoreEmulatedMouseEvents = !0, p.isOverTarget = !0, p.isPressed = !0, p.target = $.currentTarget, p.pointerType = "touch", d || ki(p.target), C(Qe(p.target, $), p.pointerType) && $.stopPropagation(), x($e($.currentTarget), "scroll", N, !0);
5548
- }, E.onTouchMove = ($) => {
5545
+ let C = qf($.nativeEvent);
5546
+ if (!C) return;
5547
+ p.activePointerId = C.identifier, p.ignoreEmulatedMouseEvents = !0, p.isOverTarget = !0, p.isPressed = !0, p.target = $.currentTarget, p.pointerType = "touch", d || ki(p.target), k(Qe(p.target, $), p.pointerType) && $.stopPropagation(), x($e($.currentTarget), "scroll", N, !0);
5548
+ }, w.onTouchMove = ($) => {
5549
5549
  if (!Z($.currentTarget, V($))) return;
5550
5550
  if (!p.isPressed) {
5551
5551
  $.stopPropagation();
5552
5552
  return;
5553
5553
  }
5554
- let k = Ni($.nativeEvent, p.activePointerId), F = !0;
5555
- k && Ii(k, $.currentTarget) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, F = C(Qe(p.target, $), p.pointerType)) : p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, F = w(Qe(p.target, $), p.pointerType, !1), S(Qe(p.target, $))), F && $.stopPropagation();
5556
- }, E.onTouchEnd = ($) => {
5554
+ let C = Ni($.nativeEvent, p.activePointerId), A = !0;
5555
+ C && Ii(C, $.currentTarget) ? !p.isOverTarget && p.pointerType != null && (p.isOverTarget = !0, A = k(Qe(p.target, $), p.pointerType)) : p.isOverTarget && p.pointerType != null && (p.isOverTarget = !1, A = E(Qe(p.target, $), p.pointerType, !1), P(Qe(p.target, $))), A && $.stopPropagation();
5556
+ }, w.onTouchEnd = ($) => {
5557
5557
  if (!Z($.currentTarget, V($))) return;
5558
5558
  if (!p.isPressed) {
5559
5559
  $.stopPropagation();
5560
5560
  return;
5561
5561
  }
5562
- let k = Ni($.nativeEvent, p.activePointerId), F = !0;
5563
- k && Ii(k, $.currentTarget) && p.pointerType != null ? (D(Qe(p.target, $), p.pointerType), F = w(Qe(p.target, $), p.pointerType), G($.nativeEvent, p.target)) : p.isOverTarget && p.pointerType != null && (F = w(Qe(p.target, $), p.pointerType, !1)), F && $.stopPropagation(), p.isPressed = !1, p.activePointerId = null, p.isOverTarget = !1, p.ignoreEmulatedMouseEvents = !0, p.target && !d && Pr(p.target), v();
5564
- }, E.onTouchCancel = ($) => {
5565
- Z($.currentTarget, V($)) && ($.stopPropagation(), p.isPressed && K(Qe(p.target, $)));
5562
+ let C = Ni($.nativeEvent, p.activePointerId), A = !0;
5563
+ C && Ii(C, $.currentTarget) && p.pointerType != null ? (D(Qe(p.target, $), p.pointerType), A = E(Qe(p.target, $), p.pointerType), G($.nativeEvent, p.target)) : p.isOverTarget && p.pointerType != null && (A = E(Qe(p.target, $), p.pointerType, !1)), A && $.stopPropagation(), p.isPressed = !1, p.activePointerId = null, p.isOverTarget = !1, p.ignoreEmulatedMouseEvents = !0, p.target && !d && Pr(p.target), v();
5564
+ }, w.onTouchCancel = ($) => {
5565
+ Z($.currentTarget, V($)) && ($.stopPropagation(), p.isPressed && F(Qe(p.target, $)));
5566
5566
  };
5567
5567
  let N = ($) => {
5568
- p.isPressed && Z(V($), p.target) && K({
5568
+ p.isPressed && Z(V($), p.target) && F({
5569
5569
  currentTarget: p.target,
5570
5570
  shiftKey: !1,
5571
5571
  ctrlKey: !1,
@@ -5573,19 +5573,19 @@ function it(t) {
5573
5573
  altKey: !1
5574
5574
  });
5575
5575
  };
5576
- E.onDragStart = ($) => {
5577
- Z($.currentTarget, V($)) && K($);
5576
+ w.onDragStart = ($) => {
5577
+ Z($.currentTarget, V($)) && F($);
5578
5578
  };
5579
5579
  }
5580
- return E;
5580
+ return w;
5581
5581
  }, [
5582
5582
  x,
5583
5583
  s,
5584
5584
  c,
5585
5585
  v,
5586
5586
  d,
5587
- S,
5588
- C,
5587
+ P,
5588
+ k,
5589
5589
  O,
5590
5590
  G
5591
5591
  ]);
@@ -5593,23 +5593,23 @@ function it(t) {
5593
5593
  if (!h || process.env.NODE_ENV === "test") return;
5594
5594
  const p = se(h.current);
5595
5595
  if (!p || !p.head || p.getElementById(Mi)) return;
5596
- const E = p.createElement("style");
5597
- E.id = Mi;
5598
- let R = Ql(p);
5599
- R && (E.nonce = R), E.textContent = `
5596
+ const w = p.createElement("style");
5597
+ w.id = Mi;
5598
+ let L = Ql(p);
5599
+ L && (w.nonce = L), w.textContent = `
5600
5600
  @layer {
5601
5601
  [${Di}] {
5602
5602
  touch-action: pan-x pan-y pinch-zoom;
5603
5603
  }
5604
5604
  }
5605
- `.trim(), p.head.prepend(E);
5605
+ `.trim(), p.head.prepend(w);
5606
5606
  }, [
5607
5607
  h
5608
5608
  ]), Y(() => {
5609
5609
  let p = y.current;
5610
5610
  return () => {
5611
5611
  d || Pr(p.target ?? void 0);
5612
- for (let E of p.disposables) E();
5612
+ for (let w of p.disposables) w();
5613
5613
  p.disposables = [];
5614
5614
  };
5615
5615
  }, [
@@ -5734,14 +5734,14 @@ function Qf(t, e) {
5734
5734
  isDisabled: r,
5735
5735
  preventFocusOnPress: c,
5736
5736
  ref: e
5737
- }), { focusableProps: C } = fn(t, e);
5738
- u && (C.tabIndex = r ? -1 : C.tabIndex);
5739
- let M = re(C, x, me(t, {
5737
+ }), { focusableProps: k } = fn(t, e);
5738
+ u && (k.tabIndex = r ? -1 : k.tabIndex);
5739
+ let T = re(k, x, me(t, {
5740
5740
  labelable: !0
5741
5741
  }));
5742
5742
  return {
5743
5743
  isPressed: v,
5744
- buttonProps: re(y, M, {
5744
+ buttonProps: re(y, T, {
5745
5745
  "aria-haspopup": t["aria-haspopup"],
5746
5746
  "aria-expanded": t["aria-expanded"],
5747
5747
  "aria-controls": t["aria-controls"],
@@ -5752,7 +5752,7 @@ function Qf(t, e) {
5752
5752
  };
5753
5753
  }
5754
5754
  function Ro(t) {
5755
- let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = t, i = A({
5755
+ let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = t, i = K({
5756
5756
  isFocusWithin: !1
5757
5757
  }), { addGlobalListener: l, removeAllGlobalListeners: s } = tr(), a = X((d) => {
5758
5758
  Z(d.currentTarget, V(d)) && i.current.isFocusWithin && !Z(d.currentTarget, d.relatedTarget) && (i.current.isFocusWithin = !1, s(), n && n(d), o && o(!1));
@@ -5775,8 +5775,8 @@ function Ro(t) {
5775
5775
  relatedTarget: x
5776
5776
  });
5777
5777
  Es(v, g);
5778
- let C = Io(v);
5779
- a(C);
5778
+ let k = Io(v);
5779
+ a(k);
5780
5780
  }
5781
5781
  }, {
5782
5782
  capture: !0
@@ -5803,7 +5803,7 @@ function Ro(t) {
5803
5803
  };
5804
5804
  }
5805
5805
  function Ko(t = {}) {
5806
- let { autoFocus: e = !1, isTextInput: n, within: r } = t, o = A({
5806
+ let { autoFocus: e = !1, isTextInput: n, within: r } = t, o = K({
5807
5807
  isFocused: !1,
5808
5808
  isFocusVisible: e || nn()
5809
5809
  }), [i, l] = W(!1), [s, a] = W(() => o.current.isFocused && o.current.isFocusVisible), c = X(() => a(o.current.isFocused && o.current.isFocusVisible), []), u = X((f) => {
@@ -5850,7 +5850,7 @@ function eh() {
5850
5850
  };
5851
5851
  }
5852
5852
  function hn(t) {
5853
- let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: o } = t, [i, l] = W(!1), s = A({
5853
+ let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: o } = t, [i, l] = W(!1), s = K({
5854
5854
  isHovered: !1,
5855
5855
  ignoreEmulatedMouseEvents: !1,
5856
5856
  pointerType: "",
@@ -5933,12 +5933,12 @@ const Is = /* @__PURE__ */ j({}), Ao = /* @__PURE__ */ Ef(function(e, n) {
5933
5933
  defaultClassName: "react-aria-Button"
5934
5934
  }), m = we(i.id), g = we(), y = i["aria-labelledby"];
5935
5935
  o && (y ? y = `${y} ${g}` : i["aria-label"] && (y = `${m} ${g}`));
5936
- let x = A(o);
5936
+ let x = K(o);
5937
5937
  Y(() => {
5938
- let C = {
5938
+ let k = {
5939
5939
  "aria-labelledby": y || m
5940
5940
  };
5941
- (!x.current && a && o || x.current && a && !o) && Si(C, "assertive"), x.current = o;
5941
+ (!x.current && a && o || x.current && a && !o) && Si(k, "assertive"), x.current = o;
5942
5942
  }, [
5943
5943
  o,
5944
5944
  a,
@@ -5948,7 +5948,7 @@ const Is = /* @__PURE__ */ j({}), Ao = /* @__PURE__ */ Ef(function(e, n) {
5948
5948
  let v = me(e, {
5949
5949
  global: !0
5950
5950
  });
5951
- return delete v.onClick, /* @__PURE__ */ T.createElement(Ee.button, {
5951
+ return delete v.onClick, /* @__PURE__ */ M.createElement(Ee.button, {
5952
5952
  ...re(v, f, i, s, u),
5953
5953
  // When the button is in a pending state, we want to stop implicit form submission (ie. when the user presses enter on a text input).
5954
5954
  // We do this by changing the button's type to button.
@@ -5964,7 +5964,7 @@ const Is = /* @__PURE__ */ j({}), Ao = /* @__PURE__ */ Ef(function(e, n) {
5964
5964
  "data-focused": a || void 0,
5965
5965
  "data-pending": o || void 0,
5966
5966
  "data-focus-visible": c || void 0
5967
- }, /* @__PURE__ */ T.createElement(xs.Provider, {
5967
+ }, /* @__PURE__ */ M.createElement(xs.Provider, {
5968
5968
  value: {
5969
5969
  id: g
5970
5970
  }
@@ -5977,10 +5977,10 @@ function nh(t, e) {
5977
5977
  }
5978
5978
  return t;
5979
5979
  }
5980
- const rh = typeof document < "u" ? T.useInsertionEffect ?? T.useLayoutEffect : () => {
5980
+ const rh = typeof document < "u" ? M.useInsertionEffect ?? M.useLayoutEffect : () => {
5981
5981
  };
5982
5982
  function rr(t, e, n) {
5983
- let [r, o] = W(t || e), i = A(r), l = A(t !== void 0), s = t !== void 0;
5983
+ let [r, o] = W(t || e), i = K(r), l = K(t !== void 0), s = t !== void 0;
5984
5984
  Y(() => {
5985
5985
  let d = l.current;
5986
5986
  d !== s && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${d ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), l.current = s;
@@ -6005,7 +6005,7 @@ function rr(t, e, n) {
6005
6005
  const Ls = /* @__PURE__ */ j({}), oh = /* @__PURE__ */ xe(function(e, n) {
6006
6006
  [e, n] = Fe(e, n, Ls);
6007
6007
  let { children: r, level: o = 3, className: i, ...l } = e, s = Ee[`h${o}`];
6008
- return /* @__PURE__ */ T.createElement(s, {
6008
+ return /* @__PURE__ */ M.createElement(s, {
6009
6009
  ...l,
6010
6010
  ref: n,
6011
6011
  className: i ?? "react-aria-Heading"
@@ -6155,19 +6155,19 @@ function Rs(t, e) {
6155
6155
  }
6156
6156
  }
6157
6157
  let d = (y) => {
6158
- for (let M of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(M);
6159
- let x = (M) => {
6160
- if (s.has(M) || l.has(M) || M.parentElement && s.has(M.parentElement) && M.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
6161
- for (let w of l)
6162
- if (Z(M, w)) return NodeFilter.FILTER_SKIP;
6158
+ for (let T of y.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(T);
6159
+ let x = (T) => {
6160
+ if (s.has(T) || l.has(T) || T.parentElement && s.has(T.parentElement) && T.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
6161
+ for (let E of l)
6162
+ if (Z(T, E)) return NodeFilter.FILTER_SKIP;
6163
6163
  return NodeFilter.FILTER_ACCEPT;
6164
6164
  }, v = Gl(se(y), y, NodeFilter.SHOW_ELEMENT, {
6165
6165
  acceptNode: x
6166
- }), C = x(y);
6167
- if (C === NodeFilter.FILTER_ACCEPT && h(y), C !== NodeFilter.FILTER_REJECT) {
6168
- let M = v.nextNode();
6169
- for (; M != null; )
6170
- h(M), M = v.nextNode();
6166
+ }), k = x(y);
6167
+ if (k === NodeFilter.FILTER_ACCEPT && h(y), k !== NodeFilter.FILTER_REJECT) {
6168
+ let T = v.nextNode();
6169
+ for (; T != null; )
6170
+ h(T), T = v.nextNode();
6171
6171
  }
6172
6172
  }, h = (y) => {
6173
6173
  let x = zt.get(y) ?? 0;
@@ -6197,15 +6197,15 @@ function Rs(t, e) {
6197
6197
  let m = /* @__PURE__ */ new Set();
6198
6198
  if (Ge()) for (let y of u) {
6199
6199
  let x = new MutationObserver((v) => {
6200
- for (let C of v)
6201
- if (C.type === "childList") {
6202
- if (C.target.isConnected && ![
6200
+ for (let k of v)
6201
+ if (k.type === "childList") {
6202
+ if (k.target.isConnected && ![
6203
6203
  ...l,
6204
6204
  ...s
6205
- ].some((M) => Z(M, C.target))) for (let M of C.addedNodes)
6206
- (M instanceof HTMLElement || M instanceof SVGElement) && Ai(M) ? l.add(M) : M instanceof Element && d(M);
6205
+ ].some((T) => Z(T, k.target))) for (let T of k.addedNodes)
6206
+ (T instanceof HTMLElement || T instanceof SVGElement) && Ai(T) ? l.add(T) : T instanceof Element && d(T);
6207
6207
  if (Ge()) {
6208
- for (let M of u) if (!M.isConnected) {
6208
+ for (let T of u) if (!T.isConnected) {
6209
6209
  f.disconnect();
6210
6210
  break;
6211
6211
  }
@@ -6322,10 +6322,10 @@ function _i(t) {
6322
6322
  function kr(t, e, n, r, o, i, l, s, a, c, u) {
6323
6323
  let { placement: d, crossPlacement: h, axis: f, crossAxis: m, size: g, crossSize: y } = r, x = {};
6324
6324
  x[m] = t[m] ?? 0, h === "center" ? x[m] += ((t[y] ?? 0) - (n[y] ?? 0)) / 2 : h !== m && (x[m] += (t[y] ?? 0) - (n[y] ?? 0)), x[m] += i;
6325
- const v = t[m] - n[y] + a + c, C = t[m] + t[y] - a - c;
6326
- if (x[m] = zn(x[m], v, C), d === f) {
6327
- let M = s ? u[g] : u[Ks[g]];
6328
- x[jn[f]] = Math.floor(M - t[f] + o);
6325
+ const v = t[m] - n[y] + a + c, k = t[m] + t[y] - a - c;
6326
+ if (x[m] = zn(x[m], v, k), d === f) {
6327
+ let T = s ? u[g] : u[Ks[g]];
6328
+ x[jn[f]] = Math.floor(T - t[f] + o);
6329
6329
  } else x[f] = Math.floor(t[f] + t[g] + o);
6330
6330
  return x;
6331
6331
  }
@@ -6353,30 +6353,30 @@ function Bi(t, e, n, r, o, i, l, s) {
6353
6353
  r[jn[c]] - o) : Math.max(0, t[u] + t[c] + (s ? e[c] : 0) - n[c] - n[u] + (l.scroll[c] ?? 0) - (r[c] ?? 0) - r[jn[c]] - o);
6354
6354
  }
6355
6355
  function $h(t, e, n, r, o, i, l, s, a, c, u, d, h, f, m, g, y, x) {
6356
- let v = _i(t), { size: C, crossAxis: M, crossSize: w, placement: L, crossPlacement: D } = v, I = kr(e, s, n, v, u, d, c, h, m, g, a), K = u, S = Bi(s, c, e, o, i + u, v, a, y);
6357
- if (l && n[C] > S) {
6358
- let ae = _i(`${jn[L]} ${D}`), pe = kr(e, s, n, ae, u, d, c, h, m, g, a);
6359
- Bi(s, c, e, o, i + u, ae, a, y) > S && (v = ae, I = pe, K = u);
6356
+ let v = _i(t), { size: k, crossAxis: T, crossSize: E, placement: R, crossPlacement: D } = v, I = kr(e, s, n, v, u, d, c, h, m, g, a), F = u, P = Bi(s, c, e, o, i + u, v, a, y);
6357
+ if (l && n[k] > P) {
6358
+ let ae = _i(`${jn[R]} ${D}`), pe = kr(e, s, n, ae, u, d, c, h, m, g, a);
6359
+ Bi(s, c, e, o, i + u, ae, a, y) > P && (v = ae, I = pe, F = u);
6360
6360
  }
6361
6361
  let O = "bottom";
6362
6362
  v.axis === "top" ? v.placement === "top" ? O = "top" : v.placement === "bottom" && (O = "bottom") : v.crossAxis === "top" && (v.crossPlacement === "top" ? O = "bottom" : v.crossPlacement === "bottom" && (O = "top"));
6363
- let G = Fi(M, I[M], n[w], s, a, i, c);
6364
- I[M] += G;
6363
+ let G = Fi(T, I[T], n[E], s, a, i, c);
6364
+ I[T] += G;
6365
6365
  let B = vh(I, s, c, h, o, i, n.height, O, a, y, x);
6366
- f && f < B && (B = f), n.height = Math.min(n.height, B), I = kr(e, s, n, v, K, d, c, h, m, g, a), G = Fi(M, I[M], n[w], s, a, i, c), I[M] += G;
6367
- let p = {}, E = e[M] - I[M] - o[Re[M]], R = E + 0.5 * e[w];
6368
- const P = m / 2 + g, N = Re[M] === "left" ? (o.left ?? 0) + (o.right ?? 0) : (o.top ?? 0) + (o.bottom ?? 0), $ = n[w] - N - m / 2 - g, k = e[M] + m / 2 - (I[M] + o[Re[M]]), F = e[M] + e[w] - m / 2 - (I[M] + o[Re[M]]), Q = zn(R, k, F);
6369
- p[M] = zn(Q, P, $), { placement: L, crossPlacement: D } = v, m ? E = p[M] : D === "right" ? E += e[w] : D === "center" && (E += e[w] / 2);
6370
- let ee = L === "left" || L === "top" ? n[C] : 0, te = {
6371
- x: L === "top" || L === "bottom" ? E : ee,
6372
- y: L === "left" || L === "right" ? E : ee
6366
+ f && f < B && (B = f), n.height = Math.min(n.height, B), I = kr(e, s, n, v, F, d, c, h, m, g, a), G = Fi(T, I[T], n[E], s, a, i, c), I[T] += G;
6367
+ let p = {}, w = e[T] - I[T] - o[Re[T]], L = w + 0.5 * e[E];
6368
+ const S = m / 2 + g, N = Re[T] === "left" ? (o.left ?? 0) + (o.right ?? 0) : (o.top ?? 0) + (o.bottom ?? 0), $ = n[E] - N - m / 2 - g, C = e[T] + m / 2 - (I[T] + o[Re[T]]), A = e[T] + e[E] - m / 2 - (I[T] + o[Re[T]]), Q = zn(L, C, A);
6369
+ p[T] = zn(Q, S, $), { placement: R, crossPlacement: D } = v, m ? w = p[T] : D === "right" ? w += e[E] : D === "center" && (w += e[E] / 2);
6370
+ let ee = R === "left" || R === "top" ? n[k] : 0, te = {
6371
+ x: R === "top" || R === "bottom" ? w : ee,
6372
+ y: R === "left" || R === "right" ? w : ee
6373
6373
  };
6374
6374
  return {
6375
6375
  position: I,
6376
6376
  maxHeight: B,
6377
6377
  arrowOffsetLeft: p.left,
6378
6378
  arrowOffsetTop: p.top,
6379
- placement: L,
6379
+ placement: R,
6380
6380
  triggerAnchorPoint: te
6381
6381
  };
6382
6382
  }
@@ -6385,17 +6385,17 @@ function xh(t) {
6385
6385
  const y = window.getComputedStyle(m).position;
6386
6386
  let x = !!y && y !== "static", v = g ? ln(n, !1) : Vi(n, m, !1);
6387
6387
  if (!g) {
6388
- let { marginTop: S, marginLeft: O } = window.getComputedStyle(n);
6389
- v.top += parseInt(S, 10) || 0, v.left += parseInt(O, 10) || 0;
6388
+ let { marginTop: P, marginLeft: O } = window.getComputedStyle(n);
6389
+ v.top += parseInt(P, 10) || 0, v.left += parseInt(O, 10) || 0;
6390
6390
  }
6391
- let C = ln(r, !0), M = yh(r);
6392
- C.width += (M.left ?? 0) + (M.right ?? 0), C.height += (M.top ?? 0) + (M.bottom ?? 0);
6393
- let w = gh(o), L = Oi(s, f), D = Oi(m, f), I;
6391
+ let k = ln(r, !0), T = yh(r);
6392
+ k.width += (T.left ?? 0) + (T.right ?? 0), k.height += (T.top ?? 0) + (T.bottom ?? 0);
6393
+ let E = gh(o), R = Oi(s, f), D = Oi(m, f), I;
6394
6394
  if ((s.tagName === "BODY" || s.tagName === "HTML") && !g) {
6395
- let S = ir(m, !1);
6395
+ let P = ir(m, !1);
6396
6396
  I = {
6397
- top: -(S.top - L.top),
6398
- left: -(S.left - L.left),
6397
+ top: -(P.top - R.top),
6398
+ left: -(P.left - R.left),
6399
6399
  width: 0,
6400
6400
  height: 0
6401
6401
  };
@@ -6405,8 +6405,8 @@ function xh(t) {
6405
6405
  width: 0,
6406
6406
  height: 0
6407
6407
  } : I = Vi(s, m, !1);
6408
- let K = Z(s, m);
6409
- return $h(e, v, C, w, M, i, l, L, D, I, a, c, x, u, d, h, K, f);
6408
+ let F = Z(s, m);
6409
+ return $h(e, v, k, E, T, i, l, R, D, I, a, c, x, u, d, h, F, f);
6410
6410
  }
6411
6411
  function ir(t, e) {
6412
6412
  let { top: n, left: r, width: o, height: i } = t.getBoundingClientRect();
@@ -6468,7 +6468,7 @@ function Eh(t) {
6468
6468
  }
6469
6469
  let be = typeof document < "u" ? window.visualViewport : null;
6470
6470
  function Sh(t) {
6471
- let { direction: e } = xt(), { arrowSize: n, targetRef: r, overlayRef: o, arrowRef: i, scrollRef: l = o, placement: s = "bottom", containerPadding: a = 12, shouldFlip: c = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: h = 0, shouldUpdatePosition: f = !0, isOpen: m = !0, onClose: g, maxHeight: y, arrowBoundaryOffset: x = 0 } = t, [v, C] = W(null), M = [
6471
+ let { direction: e } = xt(), { arrowSize: n, targetRef: r, overlayRef: o, arrowRef: i, scrollRef: l = o, placement: s = "bottom", containerPadding: a = 12, shouldFlip: c = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: d = 0, crossOffset: h = 0, shouldUpdatePosition: f = !0, isOpen: m = !0, onClose: g, maxHeight: y, arrowBoundaryOffset: x = 0 } = t, [v, k] = W(null), T = [
6472
6472
  f,
6473
6473
  s,
6474
6474
  o.current,
@@ -6485,25 +6485,25 @@ function Sh(t) {
6485
6485
  y,
6486
6486
  x,
6487
6487
  n
6488
- ], w = A(be == null ? void 0 : be.scale);
6488
+ ], E = K(be == null ? void 0 : be.scale);
6489
6489
  Y(() => {
6490
- m && (w.current = be == null ? void 0 : be.scale);
6490
+ m && (E.current = be == null ? void 0 : be.scale);
6491
6491
  }, [
6492
6492
  m
6493
6493
  ]);
6494
- let L = X(() => {
6494
+ let R = X(() => {
6495
6495
  var B, p;
6496
- if (f === !1 || !m || !o.current || !r.current || !u || (be == null ? void 0 : be.scale) !== w.current) return;
6497
- let K = null;
6496
+ if (f === !1 || !m || !o.current || !r.current || !u || (be == null ? void 0 : be.scale) !== E.current) return;
6497
+ let F = null;
6498
6498
  if (l.current && Lt(l.current)) {
6499
- let E = (B = ue()) == null ? void 0 : B.getBoundingClientRect(), R = l.current.getBoundingClientRect();
6500
- K = {
6499
+ let w = (B = ue()) == null ? void 0 : B.getBoundingClientRect(), L = l.current.getBoundingClientRect();
6500
+ F = {
6501
6501
  type: "top",
6502
- offset: ((E == null ? void 0 : E.top) ?? 0) - R.top
6503
- }, K.offset > R.height / 2 && (K.type = "bottom", K.offset = ((E == null ? void 0 : E.bottom) ?? 0) - R.bottom);
6502
+ offset: ((w == null ? void 0 : w.top) ?? 0) - L.top
6503
+ }, F.offset > L.height / 2 && (F.type = "bottom", F.offset = ((w == null ? void 0 : w.bottom) ?? 0) - L.bottom);
6504
6504
  }
6505
- let S = o.current;
6506
- !y && o.current && (S.style.top = "0px", S.style.bottom = "", S.style.maxHeight = (((p = window.visualViewport) == null ? void 0 : p.height) ?? window.innerHeight) + "px");
6505
+ let P = o.current;
6506
+ !y && o.current && (P.style.top = "0px", P.style.bottom = "", P.style.maxHeight = (((p = window.visualViewport) == null ? void 0 : p.height) ?? window.innerHeight) + "px");
6507
6507
  let O = xh({
6508
6508
  placement: Ch(s, e),
6509
6509
  overlayNode: o.current,
@@ -6519,35 +6519,35 @@ function Sh(t) {
6519
6519
  arrowBoundaryOffset: x
6520
6520
  });
6521
6521
  if (!O.position) return;
6522
- S.style.top = "", S.style.bottom = "", S.style.left = "", S.style.right = "", Object.keys(O.position).forEach((E) => S.style[E] = O.position[E] + "px"), S.style.maxHeight = O.maxHeight != null ? O.maxHeight + "px" : "";
6522
+ P.style.top = "", P.style.bottom = "", P.style.left = "", P.style.right = "", Object.keys(O.position).forEach((w) => P.style[w] = O.position[w] + "px"), P.style.maxHeight = O.maxHeight != null ? O.maxHeight + "px" : "";
6523
6523
  let G = ue();
6524
- if (K && G && l.current) {
6525
- let E = G.getBoundingClientRect(), R = l.current.getBoundingClientRect(), P = E[K.type] - R[K.type];
6526
- l.current.scrollTop += P - K.offset;
6524
+ if (F && G && l.current) {
6525
+ let w = G.getBoundingClientRect(), L = l.current.getBoundingClientRect(), S = w[F.type] - L[F.type];
6526
+ l.current.scrollTop += S - F.offset;
6527
6527
  }
6528
- C(O);
6529
- }, M);
6530
- le(L, M), Ph(L), On({
6528
+ k(O);
6529
+ }, T);
6530
+ le(R, T), Ph(R), On({
6531
6531
  ref: o,
6532
- onResize: L
6532
+ onResize: R
6533
6533
  }), On({
6534
6534
  ref: r,
6535
- onResize: L
6535
+ onResize: R
6536
6536
  });
6537
- let D = A(!1);
6537
+ let D = K(!1);
6538
6538
  le(() => {
6539
- let K, S = () => {
6540
- D.current = !0, clearTimeout(K), K = setTimeout(() => {
6539
+ let F, P = () => {
6540
+ D.current = !0, clearTimeout(F), F = setTimeout(() => {
6541
6541
  D.current = !1;
6542
- }, 500), L();
6542
+ }, 500), R();
6543
6543
  }, O = () => {
6544
- D.current && S();
6544
+ D.current && P();
6545
6545
  };
6546
- return be == null || be.addEventListener("resize", S), be == null || be.addEventListener("scroll", O), () => {
6547
- be == null || be.removeEventListener("resize", S), be == null || be.removeEventListener("scroll", O);
6546
+ return be == null || be.addEventListener("resize", P), be == null || be.addEventListener("scroll", O), () => {
6547
+ be == null || be.removeEventListener("resize", P), be == null || be.removeEventListener("scroll", O);
6548
6548
  };
6549
6549
  }, [
6550
- L
6550
+ R
6551
6551
  ]);
6552
6552
  let I = X(() => {
6553
6553
  D.current || g == null || g();
@@ -6580,7 +6580,7 @@ function Sh(t) {
6580
6580
  top: v == null ? void 0 : v.arrowOffsetTop
6581
6581
  }
6582
6582
  },
6583
- updatePosition: L
6583
+ updatePosition: R
6584
6584
  };
6585
6585
  }
6586
6586
  function Ph(t) {
@@ -6593,10 +6593,10 @@ function Ph(t) {
6593
6593
  function Ch(t, e) {
6594
6594
  return e === "rtl" ? t.replace("start", "right").replace("end", "left") : t.replace("start", "left").replace("end", "right");
6595
6595
  }
6596
- const Hi = /* @__PURE__ */ T.createContext(null), eo = "react-aria-focus-scope-restore";
6596
+ const Hi = /* @__PURE__ */ M.createContext(null), eo = "react-aria-focus-scope-restore";
6597
6597
  let de = null;
6598
6598
  function Os(t) {
6599
- let { children: e, contain: n, restoreFocus: r, autoFocus: o } = t, i = A(null), l = A(null), s = A([]), { parentNode: a } = _(Hi) || {}, c = J(() => new no({
6599
+ let { children: e, contain: n, restoreFocus: r, autoFocus: o } = t, i = K(null), l = K(null), s = K([]), { parentNode: a } = _(Hi) || {}, c = J(() => new no({
6600
6600
  scopeRef: s
6601
6601
  }), [
6602
6602
  s
@@ -6649,13 +6649,13 @@ function Os(t) {
6649
6649
  c,
6650
6650
  u
6651
6651
  ]);
6652
- return /* @__PURE__ */ T.createElement(Hi.Provider, {
6652
+ return /* @__PURE__ */ M.createElement(Hi.Provider, {
6653
6653
  value: d
6654
- }, /* @__PURE__ */ T.createElement("span", {
6654
+ }, /* @__PURE__ */ M.createElement("span", {
6655
6655
  "data-focus-scope-start": !0,
6656
6656
  hidden: !0,
6657
6657
  ref: i
6658
- }), e, /* @__PURE__ */ T.createElement("span", {
6658
+ }), e, /* @__PURE__ */ M.createElement("span", {
6659
6659
  "data-focus-scope-end": !0,
6660
6660
  hidden: !0,
6661
6661
  ref: l
@@ -6727,7 +6727,7 @@ function Mh(t) {
6727
6727
  return e.length > 0 && !e.some((n) => n.checked);
6728
6728
  }
6729
6729
  function Dh(t, e) {
6730
- let n = A(void 0), r = A(void 0);
6730
+ let n = K(void 0), r = K(void 0);
6731
6731
  le(() => {
6732
6732
  let o = t.current;
6733
6733
  if (!e) {
@@ -6819,7 +6819,7 @@ function to(t, e = !0) {
6819
6819
  We(_s(t, e));
6820
6820
  }
6821
6821
  function Ih(t, e) {
6822
- const n = T.useRef(e);
6822
+ const n = M.useRef(e);
6823
6823
  Y(() => {
6824
6824
  if (n.current) {
6825
6825
  de = t;
@@ -6858,7 +6858,7 @@ function Ui(t) {
6858
6858
  return (e == null ? void 0 : e.scopeRef) === t;
6859
6859
  }
6860
6860
  function Rh(t, e, n) {
6861
- const r = A(typeof document < "u" ? ue(se(t.current ? t.current[0] : void 0)) : null);
6861
+ const r = K(typeof document < "u" ? ue(se(t.current ? t.current[0] : void 0)) : null);
6862
6862
  le(() => {
6863
6863
  let o = t.current;
6864
6864
  const i = se(o ? o[0] : void 0);
@@ -7011,7 +7011,7 @@ class no {
7011
7011
  }
7012
7012
  let ge = new Oo();
7013
7013
  function Kh(t) {
7014
- let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = t, i = A({
7014
+ let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = t, i = K({
7015
7015
  isPointerDown: !1,
7016
7016
  ignoreEmulatedMouseEvents: !1
7017
7017
  }), l = Ke((a) => {
@@ -7056,7 +7056,7 @@ function Sn(t, e) {
7056
7056
  }
7057
7057
  const Ve = [];
7058
7058
  function Bs(t, e) {
7059
- let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: l = !1, shouldCloseOnInteractOutside: s } = t, a = A(void 0);
7059
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: l = !1, shouldCloseOnInteractOutside: s } = t, a = K(void 0);
7060
7060
  Y(() => {
7061
7061
  if (o && !Ve.includes(e))
7062
7062
  return Ve.push(e), () => {
@@ -7532,7 +7532,7 @@ function Wh(t = {}) {
7532
7532
  }
7533
7533
  function Sa(t) {
7534
7534
  let { children: e, elementType: n = "div", isFocusable: r, style: o, ...i } = t, { visuallyHiddenProps: l } = Wh(t);
7535
- return /* @__PURE__ */ T.createElement(n, re(i, l), e);
7535
+ return /* @__PURE__ */ M.createElement(n, re(i, l), e);
7536
7536
  }
7537
7537
  function jh(t) {
7538
7538
  return t && t.__esModule ? t.default : t;
@@ -7541,7 +7541,7 @@ function ro(t) {
7541
7541
  let { onDismiss: e, ...n } = t, r = Ea(jh(wa), "@react-aria/overlays"), o = ql(n, r.format("dismiss")), i = () => {
7542
7542
  e && e();
7543
7543
  };
7544
- return /* @__PURE__ */ T.createElement(Sa, null, /* @__PURE__ */ T.createElement("button", {
7544
+ return /* @__PURE__ */ M.createElement(Sa, null, /* @__PURE__ */ M.createElement("button", {
7545
7545
  ...o,
7546
7546
  tabIndex: -1,
7547
7547
  onClick: i,
@@ -7551,8 +7551,8 @@ function ro(t) {
7551
7551
  }
7552
7552
  }));
7553
7553
  }
7554
- const Pa = /* @__PURE__ */ T.forwardRef(({ children: t, ...e }, n) => {
7555
- let r = A(!1), o = _(on), i = re(o || {}, {
7554
+ const Pa = /* @__PURE__ */ M.forwardRef(({ children: t, ...e }, n) => {
7555
+ let r = K(!1), o = _(on), i = re(o || {}, {
7556
7556
  ...e,
7557
7557
  register() {
7558
7558
  r.current = !0, o && o.register();
@@ -7560,7 +7560,7 @@ const Pa = /* @__PURE__ */ T.forwardRef(({ children: t, ...e }, n) => {
7560
7560
  });
7561
7561
  return i.ref = at(n || (o == null ? void 0 : o.ref)), So(o, i.ref), Y(() => {
7562
7562
  r.current || (process.env.NODE_ENV !== "production" && console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), r.current = !0);
7563
- }, []), /* @__PURE__ */ T.createElement(on.Provider, {
7563
+ }, []), /* @__PURE__ */ M.createElement(on.Provider, {
7564
7564
  value: i
7565
7565
  }, t);
7566
7566
  });
@@ -7569,7 +7569,7 @@ function qh({ children: t }) {
7569
7569
  register: () => {
7570
7570
  }
7571
7571
  }), []);
7572
- return /* @__PURE__ */ T.createElement(on.Provider, {
7572
+ return /* @__PURE__ */ M.createElement(on.Provider, {
7573
7573
  value: e
7574
7574
  }, t);
7575
7575
  }
@@ -7577,7 +7577,7 @@ const Yh = /* @__PURE__ */ j({});
7577
7577
  function Xh() {
7578
7578
  return _(Yh) ?? {};
7579
7579
  }
7580
- const Ca = /* @__PURE__ */ T.createContext(null);
7580
+ const Ca = /* @__PURE__ */ M.createContext(null);
7581
7581
  function oo(t) {
7582
7582
  let e = st(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [o, i] = W(!1), l = J(() => ({
7583
7583
  contain: o,
@@ -7588,12 +7588,12 @@ function oo(t) {
7588
7588
  ]), { getContainer: s } = Xh();
7589
7589
  if (!t.portalContainer && s && (n = s()), !n) return null;
7590
7590
  let a = t.children;
7591
- return t.disableFocusManagement || (a = /* @__PURE__ */ T.createElement(Os, {
7591
+ return t.disableFocusManagement || (a = /* @__PURE__ */ M.createElement(Os, {
7592
7592
  restoreFocus: !0,
7593
7593
  contain: (t.shouldContainFocus || o) && !r
7594
- }, a)), a = /* @__PURE__ */ T.createElement(Ca.Provider, {
7594
+ }, a)), a = /* @__PURE__ */ M.createElement(Ca.Provider, {
7595
7595
  value: l
7596
- }, /* @__PURE__ */ T.createElement(qh, null, a)), /* @__PURE__ */ du.createPortal(a, n);
7596
+ }, /* @__PURE__ */ M.createElement(qh, null, a)), /* @__PURE__ */ du.createPortal(a, n);
7597
7597
  }
7598
7598
  function ka() {
7599
7599
  let t = _(Ca), e = t == null ? void 0 : t.setContain;
@@ -7638,9 +7638,9 @@ const sr = /* @__PURE__ */ j(null), Ji = /* @__PURE__ */ j(null), Zh = /* @__PUR
7638
7638
  isEntering: !1,
7639
7639
  isExiting: !1,
7640
7640
  defaultChildren: null
7641
- })), /* @__PURE__ */ T.createElement(T.Fragment, null, c);
7641
+ })), /* @__PURE__ */ M.createElement(M.Fragment, null, c);
7642
7642
  }
7643
- return i && !i.isOpen && !l ? null : /* @__PURE__ */ T.createElement(Jh, {
7643
+ return i && !i.isOpen && !l ? null : /* @__PURE__ */ M.createElement(Jh, {
7644
7644
  ...e,
7645
7645
  triggerRef: e.triggerRef,
7646
7646
  state: i,
@@ -7650,8 +7650,8 @@ const sr = /* @__PURE__ */ j(null), Ji = /* @__PURE__ */ j(null), Zh = /* @__PUR
7650
7650
  });
7651
7651
  });
7652
7652
  function Jh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts: r, ...o }) {
7653
- var S, O;
7654
- let i = A(null), l = A(null), s = _(Ji), a = s && o.trigger === "SubmenuTrigger", { popoverProps: c, underlayProps: u, arrowProps: d, placement: h, triggerAnchorPoint: f } = Fh({
7653
+ var P, O;
7654
+ let i = K(null), l = K(null), s = _(Ji), a = s && o.trigger === "SubmenuTrigger", { popoverProps: c, underlayProps: u, arrowProps: d, placement: h, triggerAnchorPoint: f } = Fh({
7655
7655
  ...o,
7656
7656
  offset: o.offset ?? 8,
7657
7657
  arrowRef: i,
@@ -7667,9 +7667,9 @@ function Jh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7667
7667
  isEntering: g,
7668
7668
  isExiting: e
7669
7669
  }
7670
- }), x = !o.isNonModal || o.trigger === "SubmenuTrigger", [v, C] = W(!1);
7670
+ }), x = !o.isNonModal || o.trigger === "SubmenuTrigger", [v, k] = W(!1);
7671
7671
  le(() => {
7672
- m.current && C(x && !m.current.querySelector("[role=dialog]"));
7672
+ m.current && k(x && !m.current.querySelector("[role=dialog]"));
7673
7673
  }, [
7674
7674
  m,
7675
7675
  x
@@ -7680,32 +7680,32 @@ function Jh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7680
7680
  m,
7681
7681
  o.trigger
7682
7682
  ]);
7683
- let M = J(() => {
7683
+ let T = J(() => {
7684
7684
  let G = y.children;
7685
- if (r) for (let B of r) G = /* @__PURE__ */ T.createElement(B.Provider, {
7685
+ if (r) for (let B of r) G = /* @__PURE__ */ M.createElement(B.Provider, {
7686
7686
  value: null
7687
7687
  }, G);
7688
7688
  return G;
7689
7689
  }, [
7690
7690
  y.children,
7691
7691
  r
7692
- ]), [w, L] = W(null), D = X(() => {
7693
- o.triggerRef.current && L(o.triggerRef.current.getBoundingClientRect().width + "px");
7692
+ ]), [E, R] = W(null), D = X(() => {
7693
+ o.triggerRef.current && R(o.triggerRef.current.getBoundingClientRect().width + "px");
7694
7694
  }, [
7695
7695
  o.triggerRef
7696
7696
  ]);
7697
7697
  le(D, [
7698
7698
  D
7699
7699
  ]), On({
7700
- ref: (S = y.style) != null && S["--trigger-width"] ? void 0 : o.triggerRef,
7700
+ ref: (P = y.style) != null && P["--trigger-width"] ? void 0 : o.triggerRef,
7701
7701
  onResize: D
7702
7702
  });
7703
7703
  let I = {
7704
7704
  ...c.style,
7705
7705
  "--trigger-anchor-point": f ? `${f.x}px ${f.y}px` : void 0,
7706
7706
  ...y.style,
7707
- "--trigger-width": ((O = y.style) == null ? void 0 : O["--trigger-width"]) || w
7708
- }, K = /* @__PURE__ */ T.createElement(Ee.div, {
7707
+ "--trigger-width": ((O = y.style) == null ? void 0 : O["--trigger-width"]) || E
7708
+ }, F = /* @__PURE__ */ M.createElement(Ee.div, {
7709
7709
  ...re(me(o, {
7710
7710
  global: !0
7711
7711
  }), c),
@@ -7722,42 +7722,42 @@ function Jh({ state: t, isExiting: e, UNSTABLE_portalContainer: n, clearContexts
7722
7722
  "data-placement": h,
7723
7723
  "data-entering": g || void 0,
7724
7724
  "data-exiting": e || void 0
7725
- }, !o.isNonModal && /* @__PURE__ */ T.createElement(ro, {
7725
+ }, !o.isNonModal && /* @__PURE__ */ M.createElement(ro, {
7726
7726
  onDismiss: t.close
7727
- }), /* @__PURE__ */ T.createElement(fh.Provider, {
7727
+ }), /* @__PURE__ */ M.createElement(fh.Provider, {
7728
7728
  value: {
7729
7729
  ...d,
7730
7730
  placement: h,
7731
7731
  ref: i
7732
7732
  }
7733
- }, M), /* @__PURE__ */ T.createElement(ro, {
7733
+ }, T), /* @__PURE__ */ M.createElement(ro, {
7734
7734
  onDismiss: t.close
7735
7735
  }));
7736
- return a ? /* @__PURE__ */ T.createElement(oo, {
7736
+ return a ? /* @__PURE__ */ M.createElement(oo, {
7737
7737
  ...o,
7738
7738
  shouldContainFocus: v,
7739
7739
  isExiting: e,
7740
7740
  portalContainer: n ?? (s == null ? void 0 : s.current) ?? void 0
7741
- }, K) : /* @__PURE__ */ T.createElement(oo, {
7741
+ }, F) : /* @__PURE__ */ M.createElement(oo, {
7742
7742
  ...o,
7743
7743
  shouldContainFocus: v,
7744
7744
  isExiting: e,
7745
7745
  portalContainer: n
7746
- }, !o.isNonModal && t.isOpen && /* @__PURE__ */ T.createElement("div", {
7746
+ }, !o.isNonModal && t.isOpen && /* @__PURE__ */ M.createElement("div", {
7747
7747
  "data-testid": "underlay",
7748
7748
  ...u,
7749
7749
  style: {
7750
7750
  position: "fixed",
7751
7751
  inset: 0
7752
7752
  }
7753
- }), /* @__PURE__ */ T.createElement("div", {
7753
+ }), /* @__PURE__ */ M.createElement("div", {
7754
7754
  ref: l,
7755
7755
  style: {
7756
7756
  display: "contents"
7757
7757
  }
7758
- }, /* @__PURE__ */ T.createElement(Ji.Provider, {
7758
+ }, /* @__PURE__ */ M.createElement(Ji.Provider, {
7759
7759
  value: l
7760
- }, K)));
7760
+ }, F)));
7761
7761
  }
7762
7762
  class Ft {
7763
7763
  constructor(e) {
@@ -8180,7 +8180,7 @@ var tl;
8180
8180
  function np() {
8181
8181
  if (tl) return Dr;
8182
8182
  tl = 1;
8183
- var t = T;
8183
+ var t = M;
8184
8184
  function e(d, h) {
8185
8185
  return d === h && (d !== 0 || 1 / d === 1 / h) || d !== d && h !== h;
8186
8186
  }
@@ -8276,7 +8276,7 @@ function rp() {
8276
8276
  return m();
8277
8277
  }
8278
8278
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
8279
- var o = T, i = typeof Object.is == "function" ? Object.is : t, l = o.useState, s = o.useEffect, a = o.useLayoutEffect, c = o.useDebugValue, u = !1, d = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
8279
+ var o = M, i = typeof Object.is == "function" ? Object.is : t, l = o.useState, s = o.useEffect, a = o.useLayoutEffect, c = o.useDebugValue, u = !1, d = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
8280
8280
  Nr.useSyncExternalStore = o.useSyncExternalStore !== void 0 ? o.useSyncExternalStore : h, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
8281
8281
  })()), Nr;
8282
8282
  }
@@ -8290,9 +8290,9 @@ function lp(t) {
8290
8290
  if (_(sn))
8291
8291
  return t.content;
8292
8292
  let { collection: n, document: r } = up(t.createCollection);
8293
- return /* @__PURE__ */ T.createElement(T.Fragment, null, /* @__PURE__ */ T.createElement(wf, null, /* @__PURE__ */ T.createElement(sn.Provider, {
8293
+ return /* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement(wf, null, /* @__PURE__ */ M.createElement(sn.Provider, {
8294
8294
  value: r
8295
- }, t.content)), /* @__PURE__ */ T.createElement(sp, {
8295
+ }, t.content)), /* @__PURE__ */ M.createElement(sp, {
8296
8296
  render: t.children,
8297
8297
  collection: n
8298
8298
  }));
@@ -8301,7 +8301,7 @@ function sp({ collection: t, render: e }) {
8301
8301
  return e(t);
8302
8302
  }
8303
8303
  function ap(t, e, n) {
8304
- let r = st(), o = A(r);
8304
+ let r = st(), o = K(r);
8305
8305
  o.current = r;
8306
8306
  let i = X(() => o.current ? n() : e(), [
8307
8307
  e,
@@ -8309,7 +8309,7 @@ function ap(t, e, n) {
8309
8309
  ]);
8310
8310
  return ip.useSyncExternalStore(t, i);
8311
8311
  }
8312
- const cp = typeof T.useSyncExternalStore == "function" ? T.useSyncExternalStore : ap;
8312
+ const cp = typeof M.useSyncExternalStore == "function" ? M.useSyncExternalStore : ap;
8313
8313
  function up(t) {
8314
8314
  let [e] = W(() => new ep((t == null ? void 0 : t()) || new Qh())), n = X((l) => e.subscribe(l), [
8315
8315
  e
@@ -8345,11 +8345,11 @@ function La(t, e, n, r, o, i) {
8345
8345
  ]), s = _(so);
8346
8346
  if (s) {
8347
8347
  let a = s.ownerDocument.nodesByProps.get(e);
8348
- return a || (a = s.ownerDocument.createElement(t.type), a.setProps(e, n, t, r, i), s.appendChild(a), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(e, a)), o ? /* @__PURE__ */ T.createElement(so.Provider, {
8348
+ return a || (a = s.ownerDocument.createElement(t.type), a.setProps(e, n, t, r, i), s.appendChild(a), s.ownerDocument.updateCollection(), s.ownerDocument.nodesByProps.set(e, a)), o ? /* @__PURE__ */ M.createElement(so.Provider, {
8349
8349
  value: a
8350
8350
  }, o) : null;
8351
8351
  }
8352
- return /* @__PURE__ */ T.createElement(t.type, {
8352
+ return /* @__PURE__ */ M.createElement(t.type, {
8353
8353
  ref: l
8354
8354
  }, o);
8355
8355
  }
@@ -8362,9 +8362,9 @@ function Ra(t, e) {
8362
8362
  }
8363
8363
  return La(t, o, i, "children" in o ? o.children : null, null, (a) => (
8364
8364
  // Forward FocusableContext to real DOM tree so tooltips work.
8365
- /* @__PURE__ */ T.createElement(Xr.Provider, {
8365
+ /* @__PURE__ */ M.createElement(Xr.Provider, {
8366
8366
  value: l
8367
- }, /* @__PURE__ */ T.createElement(n, {
8367
+ }, /* @__PURE__ */ M.createElement(n, {
8368
8368
  node: a
8369
8369
  }))
8370
8370
  ));
@@ -8374,9 +8374,9 @@ function Ra(t, e) {
8374
8374
  function Ka(t, e, n = Aa) {
8375
8375
  let r = ({ node: i }) => e(i.props, i.props.ref, i), o = xe((i, l) => {
8376
8376
  let s = n(i);
8377
- return La(t, i, l, null, s, (a) => /* @__PURE__ */ T.createElement(r, {
8377
+ return La(t, i, l, null, s, (a) => /* @__PURE__ */ M.createElement(r, {
8378
8378
  node: a
8379
- })) ?? /* @__PURE__ */ T.createElement(T.Fragment, null);
8379
+ })) ?? /* @__PURE__ */ M.createElement(M.Fragment, null);
8380
8380
  });
8381
8381
  return o.displayName = e.name, o;
8382
8382
  }
@@ -8393,7 +8393,7 @@ function fp(t) {
8393
8393
  idScope: r,
8394
8394
  dependencies: n
8395
8395
  });
8396
- return _(sn) && (o = /* @__PURE__ */ T.createElement(hp, null, o)), e = J(
8396
+ return _(sn) && (o = /* @__PURE__ */ M.createElement(hp, null, o)), e = J(
8397
8397
  () => ({
8398
8398
  dependencies: n,
8399
8399
  idScope: r
@@ -8403,19 +8403,19 @@ function fp(t) {
8403
8403
  r,
8404
8404
  ...n
8405
8405
  ]
8406
- ), /* @__PURE__ */ T.createElement(ol.Provider, {
8406
+ ), /* @__PURE__ */ M.createElement(ol.Provider, {
8407
8407
  value: e
8408
8408
  }, o);
8409
8409
  }
8410
8410
  function hp({ children: t }) {
8411
- let e = _(sn), n = J(() => /* @__PURE__ */ T.createElement(sn.Provider, {
8411
+ let e = _(sn), n = J(() => /* @__PURE__ */ M.createElement(sn.Provider, {
8412
8412
  value: null
8413
- }, /* @__PURE__ */ T.createElement(Ia.Provider, {
8413
+ }, /* @__PURE__ */ M.createElement(Ia.Provider, {
8414
8414
  value: !0
8415
8415
  }, t)), [
8416
8416
  t
8417
8417
  ]);
8418
- return st() ? /* @__PURE__ */ T.createElement(so.Provider, {
8418
+ return st() ? /* @__PURE__ */ M.createElement(so.Provider, {
8419
8419
  value: e
8420
8420
  }, n) : /* @__PURE__ */ fu(n, e);
8421
8421
  }
@@ -8434,9 +8434,9 @@ function il(t, e, n) {
8434
8434
  n
8435
8435
  ],
8436
8436
  children(r) {
8437
- if (r.type === "content") return /* @__PURE__ */ T.createElement(T.Fragment, null);
8437
+ if (r.type === "content") return /* @__PURE__ */ M.createElement(M.Fragment, null);
8438
8438
  let o = r.render(r);
8439
- return !n || r.type !== "item" ? o : /* @__PURE__ */ T.createElement(T.Fragment, null, n({
8439
+ return !n || r.type !== "item" ? o : /* @__PURE__ */ M.createElement(M.Fragment, null, n({
8440
8440
  type: "item",
8441
8441
  key: r.key,
8442
8442
  dropPosition: "before"
@@ -8500,8 +8500,8 @@ function vp(t) {
8500
8500
  }
8501
8501
  const ll = /* @__PURE__ */ j(null), $p = /* @__PURE__ */ j(null), xp = /* @__PURE__ */ j({}), wp = /* @__PURE__ */ j({}), Ep = /* @__PURE__ */ j(null);
8502
8502
  function Sp(t) {
8503
- let e = A({});
8504
- return /* @__PURE__ */ T.createElement(Ep.Provider, {
8503
+ let e = K({});
8504
+ return /* @__PURE__ */ M.createElement(Ep.Provider, {
8505
8505
  value: e
8506
8506
  }, t.children);
8507
8507
  }
@@ -8545,7 +8545,7 @@ const kp = /* @__PURE__ */ Ra(ao, function(e, n) {
8545
8545
  }), h = me(e, {
8546
8546
  global: !0
8547
8547
  });
8548
- return /* @__PURE__ */ T.createElement(u, {
8548
+ return /* @__PURE__ */ M.createElement(u, {
8549
8549
  render: e.render,
8550
8550
  ...re(h, d),
8551
8551
  style: i,
@@ -8730,7 +8730,7 @@ $c = {
8730
8730
  const Tp = 500;
8731
8731
  function xc(t) {
8732
8732
  let { isDisabled: e, onLongPressStart: n, onLongPressEnd: r, onLongPress: o, threshold: i = Tp, accessibilityDescription: l } = t;
8733
- const s = A(void 0);
8733
+ const s = K(void 0);
8734
8734
  let { addGlobalListener: a, removeGlobalListener: c } = tr(), { pressProps: u } = it({
8735
8735
  isDisabled: e,
8736
8736
  onPressStart(h) {
@@ -8865,7 +8865,7 @@ function Ip(t) {
8865
8865
  }
8866
8866
  const Lp = 1e3;
8867
8867
  function Rp(t) {
8868
- let { keyboardDelegate: e, selectionManager: n, onTypeSelect: r } = t, o = A({
8868
+ let { keyboardDelegate: e, selectionManager: n, onTypeSelect: r } = t, o = K({
8869
8869
  search: "",
8870
8870
  timeout: void 0
8871
8871
  }).current, i = (l) => {
@@ -8893,9 +8893,9 @@ function Kp(t) {
8893
8893
  }
8894
8894
  function Ap(t) {
8895
8895
  let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: o = !1, shouldFocusWrap: i = !1, disallowEmptySelection: l = !1, disallowSelectAll: s = !1, escapeKeyBehavior: a = "clearSelection", selectOnFocus: c = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: d, allowsTabNavigation: h = !1, scrollRef: f = r, linkBehavior: m = "action" } = t, { direction: g } = xt(), y = cn(), x = (p) => {
8896
- var R, P, N, $, k, F, Q, ee, te, ae, pe, ie, Se, ze;
8896
+ var L, S, N, $, C, A, Q, ee, te, ae, pe, ie, Se, ze;
8897
8897
  if (p.altKey && p.key === "Tab" && p.preventDefault(), !r.current || !Z(r.current, V(p))) return;
8898
- const E = (q, De) => {
8898
+ const w = (q, De) => {
8899
8899
  if (q != null) {
8900
8900
  if (e.isLink(q) && m === "selection" && c && !co(p)) {
8901
8901
  $o(() => {
@@ -8912,26 +8912,26 @@ function Ap(t) {
8912
8912
  switch (p.key) {
8913
8913
  case "ArrowDown":
8914
8914
  if (n.getKeyBelow) {
8915
- let q = e.focusedKey != null ? (R = n.getKeyBelow) == null ? void 0 : R.call(n, e.focusedKey) : (P = n.getFirstKey) == null ? void 0 : P.call(n);
8916
- q == null && i && (q = (N = n.getFirstKey) == null ? void 0 : N.call(n, e.focusedKey)), q != null && (p.preventDefault(), E(q));
8915
+ let q = e.focusedKey != null ? (L = n.getKeyBelow) == null ? void 0 : L.call(n, e.focusedKey) : (S = n.getFirstKey) == null ? void 0 : S.call(n);
8916
+ q == null && i && (q = (N = n.getFirstKey) == null ? void 0 : N.call(n, e.focusedKey)), q != null && (p.preventDefault(), w(q));
8917
8917
  }
8918
8918
  break;
8919
8919
  case "ArrowUp":
8920
8920
  if (n.getKeyAbove) {
8921
- let q = e.focusedKey != null ? ($ = n.getKeyAbove) == null ? void 0 : $.call(n, e.focusedKey) : (k = n.getLastKey) == null ? void 0 : k.call(n);
8922
- q == null && i && (q = (F = n.getLastKey) == null ? void 0 : F.call(n, e.focusedKey)), q != null && (p.preventDefault(), E(q));
8921
+ let q = e.focusedKey != null ? ($ = n.getKeyAbove) == null ? void 0 : $.call(n, e.focusedKey) : (C = n.getLastKey) == null ? void 0 : C.call(n);
8922
+ q == null && i && (q = (A = n.getLastKey) == null ? void 0 : A.call(n, e.focusedKey)), q != null && (p.preventDefault(), w(q));
8923
8923
  }
8924
8924
  break;
8925
8925
  case "ArrowLeft":
8926
8926
  if (n.getKeyLeftOf) {
8927
8927
  let q = e.focusedKey != null ? (Q = n.getKeyLeftOf) == null ? void 0 : Q.call(n, e.focusedKey) : (ee = n.getFirstKey) == null ? void 0 : ee.call(n);
8928
- q == null && i && (q = g === "rtl" ? (te = n.getFirstKey) == null ? void 0 : te.call(n, e.focusedKey) : (ae = n.getLastKey) == null ? void 0 : ae.call(n, e.focusedKey)), q != null && (p.preventDefault(), E(q, g === "rtl" ? "first" : "last"));
8928
+ q == null && i && (q = g === "rtl" ? (te = n.getFirstKey) == null ? void 0 : te.call(n, e.focusedKey) : (ae = n.getLastKey) == null ? void 0 : ae.call(n, e.focusedKey)), q != null && (p.preventDefault(), w(q, g === "rtl" ? "first" : "last"));
8929
8929
  }
8930
8930
  break;
8931
8931
  case "ArrowRight":
8932
8932
  if (n.getKeyRightOf) {
8933
8933
  let q = e.focusedKey != null ? (pe = n.getKeyRightOf) == null ? void 0 : pe.call(n, e.focusedKey) : (ie = n.getFirstKey) == null ? void 0 : ie.call(n);
8934
- q == null && i && (q = g === "rtl" ? (Se = n.getLastKey) == null ? void 0 : Se.call(n, e.focusedKey) : (ze = n.getFirstKey) == null ? void 0 : ze.call(n, e.focusedKey)), q != null && (p.preventDefault(), E(q, g === "rtl" ? "last" : "first"));
8934
+ q == null && i && (q = g === "rtl" ? (Se = n.getLastKey) == null ? void 0 : Se.call(n, e.focusedKey) : (ze = n.getFirstKey) == null ? void 0 : ze.call(n, e.focusedKey)), q != null && (p.preventDefault(), w(q, g === "rtl" ? "last" : "first"));
8935
8935
  }
8936
8936
  break;
8937
8937
  case "Home":
@@ -8953,13 +8953,13 @@ function Ap(t) {
8953
8953
  case "PageDown":
8954
8954
  if (n.getKeyPageBelow && e.focusedKey != null) {
8955
8955
  let q = n.getKeyPageBelow(e.focusedKey);
8956
- q != null && (p.preventDefault(), E(q));
8956
+ q != null && (p.preventDefault(), w(q));
8957
8957
  }
8958
8958
  break;
8959
8959
  case "PageUp":
8960
8960
  if (n.getKeyPageAbove && e.focusedKey != null) {
8961
8961
  let q = n.getKeyPageAbove(e.focusedKey);
8962
- q != null && (p.preventDefault(), E(q));
8962
+ q != null && (p.preventDefault(), w(q));
8963
8963
  }
8964
8964
  break;
8965
8965
  case "a":
@@ -8984,101 +8984,101 @@ function Ap(t) {
8984
8984
  break;
8985
8985
  }
8986
8986
  }
8987
- }, v = A({
8987
+ }, v = K({
8988
8988
  top: 0,
8989
8989
  left: 0
8990
8990
  });
8991
8991
  Wt(f, "scroll", () => {
8992
- var p, E;
8992
+ var p, w;
8993
8993
  v.current = {
8994
8994
  top: ((p = f.current) == null ? void 0 : p.scrollTop) ?? 0,
8995
- left: ((E = f.current) == null ? void 0 : E.scrollLeft) ?? 0
8995
+ left: ((w = f.current) == null ? void 0 : w.scrollLeft) ?? 0
8996
8996
  };
8997
8997
  });
8998
- let C = (p) => {
8999
- var E, R;
8998
+ let k = (p) => {
8999
+ var w, L;
9000
9000
  if (e.isFocused) {
9001
9001
  Z(p.currentTarget, V(p)) || e.setFocused(!1);
9002
9002
  return;
9003
9003
  }
9004
9004
  if (Z(p.currentTarget, V(p))) {
9005
9005
  if (e.setFocused(!0), e.focusedKey == null) {
9006
- let P = ($) => {
9006
+ let S = ($) => {
9007
9007
  $ != null && (e.setFocusedKey($), c && !e.isSelected($) && e.replaceSelection($));
9008
9008
  }, N = p.relatedTarget;
9009
- N && p.currentTarget.compareDocumentPosition(N) & Node.DOCUMENT_POSITION_FOLLOWING ? P(e.lastSelectedKey ?? ((E = n.getLastKey) == null ? void 0 : E.call(n))) : P(e.firstSelectedKey ?? ((R = n.getFirstKey) == null ? void 0 : R.call(n)));
9009
+ N && p.currentTarget.compareDocumentPosition(N) & Node.DOCUMENT_POSITION_FOLLOWING ? S(e.lastSelectedKey ?? ((w = n.getLastKey) == null ? void 0 : w.call(n))) : S(e.firstSelectedKey ?? ((L = n.getFirstKey) == null ? void 0 : L.call(n)));
9010
9010
  } else f.current && (f.current.scrollTop = v.current.top, f.current.scrollLeft = v.current.left);
9011
9011
  if (e.focusedKey != null && f.current) {
9012
- let P = Kn(r, e.focusedKey);
9013
- P instanceof HTMLElement && (!Lt(P) && !d && ve(P), rn() === "keyboard" && hi(P, {
9012
+ let S = Kn(r, e.focusedKey);
9013
+ S instanceof HTMLElement && (!Lt(S) && !d && ve(S), rn() === "keyboard" && hi(S, {
9014
9014
  containingElement: r.current
9015
9015
  }));
9016
9016
  }
9017
9017
  }
9018
- }, M = (p) => {
9018
+ }, T = (p) => {
9019
9019
  Z(p.currentTarget, p.relatedTarget) || e.setFocused(!1);
9020
- }, w = A(!1);
9020
+ }, E = K(!1);
9021
9021
  Wt(r, mu, d ? (p) => {
9022
- let { detail: E } = p;
9023
- p.stopPropagation(), e.setFocused(!0), (E == null ? void 0 : E.focusStrategy) === "first" && (w.current = !0);
9022
+ let { detail: w } = p;
9023
+ p.stopPropagation(), e.setFocused(!0), (w == null ? void 0 : w.focusStrategy) === "first" && (E.current = !0);
9024
9024
  } : void 0), fi(() => {
9025
9025
  var p;
9026
- if (w.current) {
9027
- let E = ((p = n.getFirstKey) == null ? void 0 : p.call(n)) ?? null;
9028
- if (E == null) {
9029
- let R = ue();
9030
- Oa(r.current), Fa(R, null), e.collection.size > 0 && (w.current = !1);
9026
+ if (E.current) {
9027
+ let w = ((p = n.getFirstKey) == null ? void 0 : p.call(n)) ?? null;
9028
+ if (w == null) {
9029
+ let L = ue();
9030
+ Oa(r.current), Fa(L, null), e.collection.size > 0 && (E.current = !1);
9031
9031
  } else
9032
- e.setFocusedKey(E), w.current = !1;
9032
+ e.setFocusedKey(w), E.current = !1;
9033
9033
  }
9034
9034
  }, [
9035
9035
  e.collection
9036
9036
  ]), fi(() => {
9037
- e.collection.size > 0 && (w.current = !1);
9037
+ e.collection.size > 0 && (E.current = !1);
9038
9038
  }, [
9039
9039
  e.focusedKey
9040
9040
  ]), Wt(r, bu, d ? (p) => {
9041
- var E;
9042
- p.stopPropagation(), e.setFocused(!1), (E = p.detail) != null && E.clearFocusKey && e.setFocusedKey(null);
9041
+ var w;
9042
+ p.stopPropagation(), e.setFocused(!1), (w = p.detail) != null && w.clearFocusKey && e.setFocusedKey(null);
9043
9043
  } : void 0);
9044
- const L = A(o), D = A(!1);
9044
+ const R = K(o), D = K(!1);
9045
9045
  Y(() => {
9046
- var p, E;
9047
- if (L.current) {
9048
- let R = null;
9049
- o === "first" && (R = ((p = n.getFirstKey) == null ? void 0 : p.call(n)) ?? null), o === "last" && (R = ((E = n.getLastKey) == null ? void 0 : E.call(n)) ?? null);
9050
- let P = e.selectedKeys;
9051
- if (P.size) {
9052
- for (let N of P) if (e.canSelectItem(N)) {
9053
- R = N;
9046
+ var p, w;
9047
+ if (R.current) {
9048
+ let L = null;
9049
+ o === "first" && (L = ((p = n.getFirstKey) == null ? void 0 : p.call(n)) ?? null), o === "last" && (L = ((w = n.getLastKey) == null ? void 0 : w.call(n)) ?? null);
9050
+ let S = e.selectedKeys;
9051
+ if (S.size) {
9052
+ for (let N of S) if (e.canSelectItem(N)) {
9053
+ L = N;
9054
9054
  break;
9055
9055
  }
9056
9056
  }
9057
- e.setFocused(!0), e.setFocusedKey(R), R == null && !d && r.current && ot(r.current), e.collection.size > 0 && (L.current = !1, D.current = !0);
9057
+ e.setFocused(!0), e.setFocusedKey(L), L == null && !d && r.current && ot(r.current), e.collection.size > 0 && (R.current = !1, D.current = !0);
9058
9058
  }
9059
9059
  });
9060
- let I = A(e.focusedKey), K = A(null);
9060
+ let I = K(e.focusedKey), F = K(null);
9061
9061
  Y(() => {
9062
9062
  if (e.isFocused && e.focusedKey != null && (e.focusedKey !== I.current || D.current) && f.current && r.current) {
9063
- let p = rn(), E = Kn(r, e.focusedKey);
9064
- if (!(E instanceof HTMLElement))
9063
+ let p = rn(), w = Kn(r, e.focusedKey);
9064
+ if (!(w instanceof HTMLElement))
9065
9065
  return;
9066
- (p === "keyboard" || D.current) && (K.current && cancelAnimationFrame(K.current), K.current = requestAnimationFrame(() => {
9067
- f.current && (In(f.current, E), p !== "virtual" && hi(E, {
9066
+ (p === "keyboard" || D.current) && (F.current && cancelAnimationFrame(F.current), F.current = requestAnimationFrame(() => {
9067
+ f.current && (In(f.current, w), p !== "virtual" && hi(w, {
9068
9068
  containingElement: r.current
9069
9069
  }));
9070
9070
  }));
9071
9071
  }
9072
9072
  !d && e.isFocused && e.focusedKey == null && I.current != null && r.current && ot(r.current), I.current = e.focusedKey, D.current = !1;
9073
9073
  }), Y(() => () => {
9074
- K.current && cancelAnimationFrame(K.current);
9074
+ F.current && cancelAnimationFrame(F.current);
9075
9075
  }, []), Wt(r, "react-aria-focus-scope-restore", (p) => {
9076
9076
  p.preventDefault(), e.setFocused(!0);
9077
9077
  });
9078
- let S = {
9078
+ let P = {
9079
9079
  onKeyDown: x,
9080
- onFocus: C,
9081
- onBlur: M,
9080
+ onFocus: k,
9081
+ onBlur: T,
9082
9082
  onMouseDown(p) {
9083
9083
  f.current === V(p) && p.preventDefault();
9084
9084
  }
@@ -9086,12 +9086,12 @@ function Ap(t) {
9086
9086
  keyboardDelegate: n,
9087
9087
  selectionManager: e
9088
9088
  });
9089
- u || (S = re(O, S));
9089
+ u || (P = re(O, P));
9090
9090
  let G;
9091
9091
  d || (G = e.focusedKey == null ? 0 : -1);
9092
9092
  let B = Np(e.collection);
9093
9093
  return {
9094
- collectionProps: re(S, {
9094
+ collectionProps: re(P, {
9095
9095
  tabIndex: G,
9096
9096
  "data-collection": B
9097
9097
  })
@@ -9320,18 +9320,18 @@ function Bp(t, e, n) {
9320
9320
  function Vp(t) {
9321
9321
  let { id: e, selectionManager: n, key: r, ref: o, shouldSelectOnPressUp: i, shouldUseVirtualFocus: l, focus: s, isDisabled: a, onAction: c, allowsDifferentPressOrigin: u, linkBehavior: d = "action" } = t, h = cn();
9322
9322
  e = we(e);
9323
- let f = (k) => {
9324
- if (k.pointerType === "keyboard" && co(k)) n.toggleSelection(r);
9323
+ let f = (C) => {
9324
+ if (C.pointerType === "keyboard" && co(C)) n.toggleSelection(r);
9325
9325
  else {
9326
9326
  if (n.selectionMode === "none") return;
9327
9327
  if (n.isLink(r)) {
9328
9328
  if (d === "selection" && o.current) {
9329
- let F = n.getItemProps(r);
9330
- h.open(o.current, k, F.href, F.routerOptions), n.setSelectedKeys(n.selectedKeys);
9329
+ let A = n.getItemProps(r);
9330
+ h.open(o.current, C, A.href, A.routerOptions), n.setSelectedKeys(n.selectedKeys);
9331
9331
  return;
9332
9332
  } else if (d === "override" || d === "none") return;
9333
9333
  }
9334
- n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : k && k.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || k && (Pt(k) || k.pointerType === "touch" || k.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
9334
+ n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : C && C.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || C && (Pt(C) || C.pointerType === "touch" || C.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
9335
9335
  }
9336
9336
  };
9337
9337
  Y(() => {
@@ -9347,11 +9347,11 @@ function Vp(t) {
9347
9347
  let m = {};
9348
9348
  !l && !a ? m = {
9349
9349
  tabIndex: r === n.focusedKey ? 0 : -1,
9350
- onFocus(k) {
9351
- V(k) === o.current && n.setFocusedKey(r);
9350
+ onFocus(C) {
9351
+ V(C) === o.current && n.setFocusedKey(r);
9352
9352
  }
9353
- } : a && (m.onMouseDown = (k) => {
9354
- k.preventDefault();
9353
+ } : a && (m.onMouseDown = (C) => {
9354
+ C.preventDefault();
9355
9355
  }), Y(() => {
9356
9356
  a && n.focusedKey === r && n.setFocusedKey(null);
9357
9357
  }, [
@@ -9359,79 +9359,79 @@ function Vp(t) {
9359
9359
  a,
9360
9360
  r
9361
9361
  ]);
9362
- let g = n.isLink(r) && d === "override", y = c && t.UNSTABLE_itemBehavior === "action", x = n.isLink(r) && d !== "selection" && d !== "none", v = !a && n.canSelectItem(r) && !g && !y, C = (c || x) && !a, M = C && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), w = C && v && n.selectionBehavior === "replace", L = M || w, D = A(null), I = L && v, K = A(!1), S = A(!1), O = n.getItemProps(r), G = (k) => {
9363
- var F;
9364
- c && (c(), (F = o.current) == null || F.dispatchEvent(new CustomEvent("react-aria-item-action", {
9362
+ let g = n.isLink(r) && d === "override", y = c && t.UNSTABLE_itemBehavior === "action", x = n.isLink(r) && d !== "selection" && d !== "none", v = !a && n.canSelectItem(r) && !g && !y, k = (c || x) && !a, T = k && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), E = k && v && n.selectionBehavior === "replace", R = T || E, D = K(null), I = R && v, F = K(!1), P = K(!1), O = n.getItemProps(r), G = (C) => {
9363
+ var A;
9364
+ c && (c(), (A = o.current) == null || A.dispatchEvent(new CustomEvent("react-aria-item-action", {
9365
9365
  bubbles: !0
9366
- }))), x && o.current && h.open(o.current, k, O.href, O.routerOptions);
9366
+ }))), x && o.current && h.open(o.current, C, O.href, O.routerOptions);
9367
9367
  }, B = {
9368
9368
  ref: o
9369
9369
  };
9370
- if (i ? (B.onPressStart = (k) => {
9371
- D.current = k.pointerType, K.current = I, k.pointerType === "keyboard" && (!L || cl(k.key)) && f(k);
9372
- }, u ? (B.onPressUp = M ? void 0 : (k) => {
9373
- k.pointerType === "mouse" && v && f(k);
9374
- }, B.onPress = M ? G : (k) => {
9375
- k.pointerType !== "keyboard" && k.pointerType !== "mouse" && v && f(k);
9376
- }) : B.onPress = (k) => {
9377
- if (M || w && k.pointerType !== "mouse") {
9378
- if (k.pointerType === "keyboard" && !al(k.key)) return;
9379
- G(k);
9380
- } else k.pointerType !== "keyboard" && v && f(k);
9381
- }) : (B.onPressStart = (k) => {
9382
- D.current = k.pointerType, K.current = I, S.current = M, v && (k.pointerType === "mouse" && !M || k.pointerType === "keyboard" && (!C || cl(k.key))) && f(k);
9383
- }, B.onPress = (k) => {
9384
- (k.pointerType === "touch" || k.pointerType === "pen" || k.pointerType === "virtual" || k.pointerType === "keyboard" && L && al(k.key) || k.pointerType === "mouse" && S.current) && (L ? G(k) : v && f(k));
9370
+ if (i ? (B.onPressStart = (C) => {
9371
+ D.current = C.pointerType, F.current = I, C.pointerType === "keyboard" && (!R || cl(C.key)) && f(C);
9372
+ }, u ? (B.onPressUp = T ? void 0 : (C) => {
9373
+ C.pointerType === "mouse" && v && f(C);
9374
+ }, B.onPress = T ? G : (C) => {
9375
+ C.pointerType !== "keyboard" && C.pointerType !== "mouse" && v && f(C);
9376
+ }) : B.onPress = (C) => {
9377
+ if (T || E && C.pointerType !== "mouse") {
9378
+ if (C.pointerType === "keyboard" && !al(C.key)) return;
9379
+ G(C);
9380
+ } else C.pointerType !== "keyboard" && v && f(C);
9381
+ }) : (B.onPressStart = (C) => {
9382
+ D.current = C.pointerType, F.current = I, P.current = T, v && (C.pointerType === "mouse" && !T || C.pointerType === "keyboard" && (!k || cl(C.key))) && f(C);
9383
+ }, B.onPress = (C) => {
9384
+ (C.pointerType === "touch" || C.pointerType === "pen" || C.pointerType === "virtual" || C.pointerType === "keyboard" && R && al(C.key) || C.pointerType === "mouse" && P.current) && (R ? G(C) : v && f(C));
9385
9385
  }), m["data-collection"] = Ip(n.collection), m["data-key"] = r, B.preventFocusOnPress = l, l && (B = re(B, {
9386
- onPressStart(k) {
9387
- k.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
9386
+ onPressStart(C) {
9387
+ C.pointerType !== "touch" && (n.setFocused(!0), n.setFocusedKey(r));
9388
9388
  },
9389
- onPress(k) {
9390
- k.pointerType === "touch" && (n.setFocused(!0), n.setFocusedKey(r));
9389
+ onPress(C) {
9390
+ C.pointerType === "touch" && (n.setFocused(!0), n.setFocusedKey(r));
9391
9391
  }
9392
9392
  })), O)
9393
- for (let k of [
9393
+ for (let C of [
9394
9394
  "onPressStart",
9395
9395
  "onPressEnd",
9396
9396
  "onPressChange",
9397
9397
  "onPress",
9398
9398
  "onPressUp",
9399
9399
  "onClick"
9400
- ]) O[k] && (B[k] = un(B[k], O[k]));
9401
- let { pressProps: p, isPressed: E } = it(B), R = w ? (k) => {
9402
- D.current === "mouse" && (k.stopPropagation(), k.preventDefault(), G(k));
9403
- } : void 0, { longPressProps: P } = xc({
9400
+ ]) O[C] && (B[C] = un(B[C], O[C]));
9401
+ let { pressProps: p, isPressed: w } = it(B), L = E ? (C) => {
9402
+ D.current === "mouse" && (C.stopPropagation(), C.preventDefault(), G(C));
9403
+ } : void 0, { longPressProps: S } = xc({
9404
9404
  isDisabled: !I,
9405
- onLongPress(k) {
9406
- k.pointerType === "touch" && (f(k), n.setSelectionBehavior("toggle"));
9405
+ onLongPress(C) {
9406
+ C.pointerType === "touch" && (f(C), n.setSelectionBehavior("toggle"));
9407
9407
  }
9408
- }), N = (k) => {
9409
- D.current === "touch" && K.current && k.preventDefault();
9410
- }, $ = d !== "none" && n.isLink(r) ? (k) => {
9411
- qe.isOpening || k.preventDefault();
9408
+ }), N = (C) => {
9409
+ D.current === "touch" && F.current && C.preventDefault();
9410
+ }, $ = d !== "none" && n.isLink(r) ? (C) => {
9411
+ qe.isOpening || C.preventDefault();
9412
9412
  } : void 0;
9413
9413
  return {
9414
9414
  itemProps: re(
9415
9415
  m,
9416
- v || M || l && !a ? p : {},
9417
- I ? P : {},
9416
+ v || T || l && !a ? p : {},
9417
+ I ? S : {},
9418
9418
  {
9419
- onDoubleClick: R,
9419
+ onDoubleClick: L,
9420
9420
  onDragStartCapture: N,
9421
9421
  onClick: $,
9422
9422
  id: e
9423
9423
  },
9424
9424
  // Prevent DOM focus from moving on mouse down when using virtual focus
9425
9425
  l ? {
9426
- onMouseDown: (k) => k.preventDefault()
9426
+ onMouseDown: (C) => C.preventDefault()
9427
9427
  } : void 0
9428
9428
  ),
9429
- isPressed: E,
9429
+ isPressed: w,
9430
9430
  isSelected: n.isSelected(r),
9431
9431
  isFocused: n.isFocused && n.focusedKey === r,
9432
9432
  isDisabled: a,
9433
9433
  allowsSelection: v,
9434
- hasAction: L
9434
+ hasAction: R
9435
9435
  };
9436
9436
  }
9437
9437
  function al(t) {
@@ -9454,42 +9454,42 @@ function Hp(t) {
9454
9454
  return r(t), ul.set(t, n), n;
9455
9455
  }
9456
9456
  function Up(t, e, n) {
9457
- let { id: r, key: o, closeOnSelect: i, shouldCloseOnSelect: l, isVirtualized: s, "aria-haspopup": a, onPressStart: c, onPressUp: u, onPress: d, onPressChange: h, onPressEnd: f, onClick: m, onHoverStart: g, onHoverChange: y, onHoverEnd: x, onKeyDown: v, onKeyUp: C, onFocus: M, onFocusChange: w, onBlur: L, selectionManager: D = e.selectionManager } = t, I = !!a, K = I && t["aria-expanded"] === "true", S = t.isDisabled ?? D.isDisabled(o), O = t.isSelected ?? D.isSelected(o), G = Ec.get(e), B = e.collection.getItem(o), p = t.onClose || G.onClose, E = cn(), R = () => {
9457
+ let { id: r, key: o, closeOnSelect: i, shouldCloseOnSelect: l, isVirtualized: s, "aria-haspopup": a, onPressStart: c, onPressUp: u, onPress: d, onPressChange: h, onPressEnd: f, onClick: m, onHoverStart: g, onHoverChange: y, onHoverEnd: x, onKeyDown: v, onKeyUp: k, onFocus: T, onFocusChange: E, onBlur: R, selectionManager: D = e.selectionManager } = t, I = !!a, F = I && t["aria-expanded"] === "true", P = t.isDisabled ?? D.isDisabled(o), O = t.isSelected ?? D.isSelected(o), G = Ec.get(e), B = e.collection.getItem(o), p = t.onClose || G.onClose, w = cn(), L = () => {
9458
9458
  var ce;
9459
9459
  if (!I && ((ce = B == null ? void 0 : B.props) != null && ce.onAction ? B.props.onAction() : t.onAction && t.onAction(o), G.onAction)) {
9460
9460
  let Bt = G.onAction;
9461
9461
  Bt(o);
9462
9462
  }
9463
- }, P = "menuitem";
9464
- I || (D.selectionMode === "single" ? P = "menuitemradio" : D.selectionMode === "multiple" && (P = "menuitemcheckbox"));
9465
- let N = Nn(), $ = Nn(), k = Nn(), F = {
9463
+ }, S = "menuitem";
9464
+ I || (D.selectionMode === "single" ? S = "menuitemradio" : D.selectionMode === "multiple" && (S = "menuitemcheckbox"));
9465
+ let N = Nn(), $ = Nn(), C = Nn(), A = {
9466
9466
  id: r,
9467
- "aria-disabled": S || void 0,
9468
- role: P,
9467
+ "aria-disabled": P || void 0,
9468
+ role: S,
9469
9469
  "aria-label": t["aria-label"],
9470
9470
  "aria-labelledby": N,
9471
9471
  "aria-describedby": [
9472
9472
  t["aria-describedby"],
9473
9473
  $,
9474
- k
9474
+ C
9475
9475
  ].filter(Boolean).join(" ") || void 0,
9476
9476
  "aria-controls": t["aria-controls"],
9477
9477
  "aria-haspopup": a,
9478
9478
  "aria-expanded": t["aria-expanded"]
9479
9479
  };
9480
- if (D.selectionMode !== "none" && !I && (F["aria-checked"] = O), s) {
9480
+ if (D.selectionMode !== "none" && !I && (A["aria-checked"] = O), s) {
9481
9481
  let ce = Number(B == null ? void 0 : B.index);
9482
- F["aria-posinset"] = Number.isNaN(ce) ? void 0 : ce + 1, F["aria-setsize"] = Hp(e.collection);
9482
+ A["aria-posinset"] = Number.isNaN(ce) ? void 0 : ce + 1, A["aria-setsize"] = Hp(e.collection);
9483
9483
  }
9484
- let Q = A(!1), ee = (ce) => {
9484
+ let Q = K(!1), ee = (ce) => {
9485
9485
  h == null || h(ce), Q.current = ce;
9486
- }, te = A(null), ae = (ce) => {
9486
+ }, te = K(null), ae = (ce) => {
9487
9487
  ce.pointerType !== "keyboard" && (te.current = {
9488
9488
  pointerType: ce.pointerType
9489
9489
  }), ce.pointerType === "mouse" && (Q.current || ce.target.click()), u == null || u(ce);
9490
9490
  }, pe = (ce) => {
9491
9491
  var ri, oi;
9492
- m == null || m(ce), R(), Hl(ce, E, B.props.href, B == null ? void 0 : B.props.routerOptions);
9492
+ m == null || m(ce), L(), Hl(ce, w, B.props.href, B == null ? void 0 : B.props.routerOptions);
9493
9493
  let Bt = ((ri = te.current) == null ? void 0 : ri.pointerType) === "keyboard" ? ((oi = te.current) == null ? void 0 : oi.key) === "Enter" || D.selectionMode === "none" || D.isLink(o) : D.selectionMode !== "multiple" || D.isLink(o);
9494
9494
  Bt = l ?? i ?? Bt, p && !I && Bt && p(), te.current = null;
9495
9495
  }, { itemProps: ie, isFocused: Se } = Vp({
@@ -9511,11 +9511,11 @@ function Up(t, e, n) {
9511
9511
  onPressUp: ae,
9512
9512
  onPressChange: ee,
9513
9513
  onPressEnd: f,
9514
- isDisabled: S
9514
+ isDisabled: P
9515
9515
  }), { hoverProps: De } = hn({
9516
- isDisabled: S,
9516
+ isDisabled: P,
9517
9517
  onHoverStart(ce) {
9518
- !nn() && !(K && a) && (D.setFocused(!0), D.setFocusedKey(o)), g == null || g(ce);
9518
+ !nn() && !(F && a) && (D.setFocused(!0), D.setFocusedKey(o)), g == null || g(ce);
9519
9519
  },
9520
9520
  onHoverChange: y,
9521
9521
  onHoverEnd: x
@@ -9543,17 +9543,17 @@ function Up(t, e, n) {
9543
9543
  break;
9544
9544
  }
9545
9545
  },
9546
- onKeyUp: C
9546
+ onKeyUp: k
9547
9547
  }), { focusableProps: ut } = fn({
9548
- onBlur: L,
9549
- onFocus: M,
9550
- onFocusChange: w
9548
+ onBlur: R,
9549
+ onFocus: T,
9550
+ onFocusChange: E
9551
9551
  }, n), ni = me(B == null ? void 0 : B.props);
9552
9552
  delete ni.id;
9553
9553
  let cu = zl(B == null ? void 0 : B.props);
9554
9554
  return {
9555
9555
  menuItemProps: {
9556
- ...F,
9556
+ ...A,
9557
9557
  ...re(
9558
9558
  ni,
9559
9559
  cu,
@@ -9570,12 +9570,12 @@ function Up(t, e, n) {
9570
9570
  G.shouldUseVirtualFocus || I ? {
9571
9571
  onMouseDown: (ce) => ce.preventDefault()
9572
9572
  } : void 0,
9573
- S ? void 0 : {
9573
+ P ? void 0 : {
9574
9574
  onClick: pe
9575
9575
  }
9576
9576
  ),
9577
9577
  // If a submenu is expanded, set the tabIndex to -1 so that shift tabbing goes out of the menu instead of the parent menu item.
9578
- tabIndex: ie.tabIndex != null && K && !G.shouldUseVirtualFocus ? -1 : ie.tabIndex
9578
+ tabIndex: ie.tabIndex != null && F && !G.shouldUseVirtualFocus ? -1 : ie.tabIndex
9579
9579
  },
9580
9580
  labelProps: {
9581
9581
  id: N
@@ -9584,13 +9584,13 @@ function Up(t, e, n) {
9584
9584
  id: $
9585
9585
  },
9586
9586
  keyboardShortcutProps: {
9587
- id: k
9587
+ id: C
9588
9588
  },
9589
9589
  isFocused: Se,
9590
- isFocusVisible: Se && D.isFocused && nn() && !K,
9590
+ isFocusVisible: Se && D.isFocused && nn() && !F,
9591
9591
  isSelected: O,
9592
9592
  isPressed: q,
9593
- isDisabled: S
9593
+ isDisabled: P
9594
9594
  };
9595
9595
  }
9596
9596
  function Gp(t) {
@@ -9615,7 +9615,7 @@ function Gp(t) {
9615
9615
  }
9616
9616
  const kn = 2, Wp = 50, jp = 1e3, dl = Math.PI / 12;
9617
9617
  function qp(t) {
9618
- let { menuRef: e, submenuRef: n, isOpen: r, isDisabled: o } = t, i = A(void 0), l = A(void 0), s = A(0), a = A(void 0), c = A(void 0), u = A(void 0), d = A(2), [h, f] = W(!1);
9618
+ let { menuRef: e, submenuRef: n, isOpen: r, isDisabled: o } = t, i = K(void 0), l = K(void 0), s = K(0), a = K(void 0), c = K(void 0), u = K(void 0), d = K(2), [h, f] = W(!1);
9619
9619
  On({
9620
9620
  ref: r ? n : void 0,
9621
9621
  onResize: () => {
@@ -9633,18 +9633,18 @@ function qp(t) {
9633
9633
  e,
9634
9634
  h
9635
9635
  ]), le(() => {
9636
- let v = n.current, C = e.current;
9637
- if (o || !v || !r || y !== "pointer" || !C) {
9636
+ let v = n.current, k = e.current;
9637
+ if (o || !v || !r || y !== "pointer" || !k) {
9638
9638
  g();
9639
9639
  return;
9640
9640
  }
9641
9641
  l.current = v.getBoundingClientRect();
9642
- let M = (w) => {
9643
- if (w.pointerType === "touch" || w.pointerType === "pen") return;
9644
- let L = Date.now();
9645
- if (L - s.current < Wp) return;
9642
+ let T = (E) => {
9643
+ if (E.pointerType === "touch" || E.pointerType === "pen") return;
9644
+ let R = Date.now();
9645
+ if (R - s.current < Wp) return;
9646
9646
  clearTimeout(a.current), clearTimeout(c.current);
9647
- let { clientX: D, clientY: I } = w;
9647
+ let { clientX: D, clientY: I } = E;
9648
9648
  if (!i.current) {
9649
9649
  i.current = {
9650
9650
  x: D,
@@ -9653,26 +9653,26 @@ function qp(t) {
9653
9653
  return;
9654
9654
  }
9655
9655
  if (!l.current) return;
9656
- if (u.current || (u.current = D > l.current.right ? "left" : "right"), D < C.getBoundingClientRect().left || D > C.getBoundingClientRect().right || I < C.getBoundingClientRect().top || I > C.getBoundingClientRect().bottom) {
9656
+ if (u.current || (u.current = D > l.current.right ? "left" : "right"), D < k.getBoundingClientRect().left || D > k.getBoundingClientRect().right || I < k.getBoundingClientRect().top || I > k.getBoundingClientRect().bottom) {
9657
9657
  g();
9658
9658
  return;
9659
9659
  }
9660
- let K = i.current.x, S = i.current.y, O = u.current === "right" ? l.current.left - K : K - l.current.right, G = Math.atan2(S - l.current.top, O) + dl, B = Math.atan2(S - l.current.bottom, O) - dl, p = Math.atan2(S - I, u.current === "left" ? -(D - K) : D - K), E = p < G && p > B;
9661
- d.current = E ? Math.min(d.current + 1, kn) : Math.max(d.current - 1, 0), d.current >= kn ? f(!0) : f(!1), s.current = L, i.current = {
9660
+ let F = i.current.x, P = i.current.y, O = u.current === "right" ? l.current.left - F : F - l.current.right, G = Math.atan2(P - l.current.top, O) + dl, B = Math.atan2(P - l.current.bottom, O) - dl, p = Math.atan2(P - I, u.current === "left" ? -(D - F) : D - F), w = p < G && p > B;
9661
+ d.current = w ? Math.min(d.current + 1, kn) : Math.max(d.current - 1, 0), d.current >= kn ? f(!0) : f(!1), s.current = R, i.current = {
9662
9662
  x: D,
9663
9663
  y: I
9664
- }, E && (a.current = setTimeout(() => {
9664
+ }, w && (a.current = setTimeout(() => {
9665
9665
  g(), c.current = setTimeout(() => {
9666
- let R = document.elementFromPoint(D, I);
9667
- R && Z(C, R) && R.dispatchEvent(new PointerEvent("pointerover", {
9666
+ let L = document.elementFromPoint(D, I);
9667
+ L && Z(k, L) && L.dispatchEvent(new PointerEvent("pointerover", {
9668
9668
  bubbles: !0,
9669
9669
  cancelable: !0
9670
9670
  }));
9671
9671
  }, 100);
9672
9672
  }, jp));
9673
9673
  };
9674
- return window.addEventListener("pointermove", M), process.env.NODE_ENV !== "test" && window.addEventListener("pointerdown", x, !0), () => {
9675
- window.removeEventListener("pointermove", M), process.env.NODE_ENV !== "test" && window.removeEventListener("pointerdown", x, !0), clearTimeout(a.current), clearTimeout(c.current), d.current = kn;
9674
+ return window.addEventListener("pointermove", T), process.env.NODE_ENV !== "test" && window.addEventListener("pointerdown", x, !0), () => {
9675
+ window.removeEventListener("pointermove", T), process.env.NODE_ENV !== "test" && window.removeEventListener("pointerdown", x, !0), clearTimeout(a.current), clearTimeout(c.current), d.current = kn;
9676
9676
  };
9677
9677
  }, [
9678
9678
  o,
@@ -9684,7 +9684,7 @@ function qp(t) {
9684
9684
  ]);
9685
9685
  }
9686
9686
  function Yp(t, e, n) {
9687
- let { parentMenuRef: r, submenuRef: o, type: i = "menu", isDisabled: l, delay: s = 200, shouldUseVirtualFocus: a } = t, c = we(), u = we(), { direction: d } = xt(), h = A(void 0), f = X(() => {
9687
+ let { parentMenuRef: r, submenuRef: o, type: i = "menu", isDisabled: l, delay: s = 200, shouldUseVirtualFocus: a } = t, c = we(), u = we(), { direction: d } = xt(), h = K(void 0), f = X(() => {
9688
9688
  h.current && (clearTimeout(h.current), h.current = void 0);
9689
9689
  }, [
9690
9690
  h
@@ -9738,11 +9738,11 @@ function Yp(t, e, n) {
9738
9738
  D.continuePropagation();
9739
9739
  break;
9740
9740
  }
9741
- }, C = (D) => {
9741
+ }, k = (D) => {
9742
9742
  !l && (D.pointerType === "virtual" || D.pointerType === "keyboard") && m("first");
9743
- }, M = (D) => {
9743
+ }, T = (D) => {
9744
9744
  !l && (D.pointerType === "touch" || D.pointerType === "mouse") && m();
9745
- }, w = (D) => {
9745
+ }, E = (D) => {
9746
9746
  l || (D && !e.isOpen ? h.current || (h.current = setTimeout(() => {
9747
9747
  m();
9748
9748
  }, s)) : D || f());
@@ -9750,7 +9750,7 @@ function Yp(t, e, n) {
9750
9750
  Wt(r, "focusin", (D) => {
9751
9751
  e.isOpen && Z(r.current, V(D)) && V(D) !== n.current && g();
9752
9752
  });
9753
- let L = (D) => D !== n.current;
9753
+ let R = (D) => D !== n.current;
9754
9754
  return qp({
9755
9755
  menuRef: r,
9756
9756
  submenuRef: o,
@@ -9762,16 +9762,16 @@ function Yp(t, e, n) {
9762
9762
  "aria-controls": e.isOpen ? u : void 0,
9763
9763
  "aria-haspopup": l ? void 0 : i,
9764
9764
  "aria-expanded": e.isOpen ? "true" : "false",
9765
- onPressStart: C,
9766
- onPress: M,
9767
- onHoverChange: w,
9765
+ onPressStart: k,
9766
+ onPress: T,
9767
+ onHoverChange: E,
9768
9768
  onKeyDown: v,
9769
9769
  isOpen: e.isOpen
9770
9770
  },
9771
9771
  submenuProps: x,
9772
9772
  popoverProps: {
9773
9773
  isNonModal: !0,
9774
- shouldCloseOnInteractOutside: L
9774
+ shouldCloseOnInteractOutside: R
9775
9775
  }
9776
9776
  };
9777
9777
  }
@@ -10207,7 +10207,7 @@ class tb {
10207
10207
  }
10208
10208
  *iterateCollection(e) {
10209
10209
  let { children: n, items: r } = e;
10210
- if (T.isValidElement(n) && n.type === T.Fragment) yield* this.iterateCollection({
10210
+ if (M.isValidElement(n) && n.type === M.Fragment) yield* this.iterateCollection({
10211
10211
  children: n.props.children,
10212
10212
  items: r
10213
10213
  });
@@ -10223,7 +10223,7 @@ class tb {
10223
10223
  }), o++;
10224
10224
  } else {
10225
10225
  let o = [];
10226
- T.Children.forEach(n, (l) => {
10226
+ M.Children.forEach(n, (l) => {
10227
10227
  l && o.push(l);
10228
10228
  });
10229
10229
  let i = 0;
@@ -10254,9 +10254,9 @@ class tb {
10254
10254
  };
10255
10255
  }
10256
10256
  *getFullNode(e, n, r, o) {
10257
- if (T.isValidElement(e.element) && e.element.type === T.Fragment) {
10257
+ if (M.isValidElement(e.element) && e.element.type === M.Fragment) {
10258
10258
  let a = [];
10259
- T.Children.forEach(e.element.props.children, (u) => {
10259
+ M.Children.forEach(e.element.props.children, (u) => {
10260
10260
  a.push(u);
10261
10261
  });
10262
10262
  let c = e.index ?? 0;
@@ -10275,7 +10275,7 @@ class tb {
10275
10275
  }
10276
10276
  i = n.renderer(e.value);
10277
10277
  }
10278
- if (T.isValidElement(i)) {
10278
+ if (M.isValidElement(i)) {
10279
10279
  let a = i.type;
10280
10280
  if (typeof a != "function" && typeof a.getCollectionNode != "function") {
10281
10281
  let h = i.type;
@@ -10382,7 +10382,7 @@ function ob(t, e) {
10382
10382
  return !0;
10383
10383
  }
10384
10384
  function Pc(t) {
10385
- let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: o = "toggle", disabledBehavior: i = "all" } = t, l = A(!1), [, s] = W(!1), a = A(null), c = A(null), [, u] = W(null), d = J(() => pl(t.selectedKeys), [
10385
+ let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: o = "toggle", disabledBehavior: i = "all" } = t, l = K(!1), [, s] = W(!1), a = K(null), c = K(null), [, u] = W(null), d = J(() => pl(t.selectedKeys), [
10386
10386
  t.selectedKeys
10387
10387
  ]), h = J(() => pl(t.defaultSelectedKeys, new _e()), [
10388
10388
  t.defaultSelectedKeys
@@ -10390,7 +10390,7 @@ function Pc(t) {
10390
10390
  t.disabledKeys
10391
10391
  ]), [y, x] = W(o);
10392
10392
  o === "replace" && y === "toggle" && typeof f == "object" && f.size === 0 && x("replace");
10393
- let v = A(o);
10393
+ let v = K(o);
10394
10394
  return Y(() => {
10395
10395
  o !== v.current && (x(o), v.current = o);
10396
10396
  }, [
@@ -10403,8 +10403,8 @@ function Pc(t) {
10403
10403
  get isFocused() {
10404
10404
  return l.current;
10405
10405
  },
10406
- setFocused(C) {
10407
- l.current = C, s(C);
10406
+ setFocused(k) {
10407
+ l.current = k, s(k);
10408
10408
  },
10409
10409
  get focusedKey() {
10410
10410
  return a.current;
@@ -10412,12 +10412,12 @@ function Pc(t) {
10412
10412
  get childFocusStrategy() {
10413
10413
  return c.current;
10414
10414
  },
10415
- setFocusedKey(C, M = "first") {
10416
- a.current = C, c.current = M, u(C);
10415
+ setFocusedKey(k, T = "first") {
10416
+ a.current = k, c.current = T, u(k);
10417
10417
  },
10418
10418
  selectedKeys: f,
10419
- setSelectedKeys(C) {
10420
- (r || !ob(C, f)) && m(C);
10419
+ setSelectedKeys(k) {
10420
+ (r || !ob(k, f)) && m(k);
10421
10421
  },
10422
10422
  disabledKeys: g,
10423
10423
  disabledBehavior: i
@@ -10456,11 +10456,11 @@ function lb(t, e) {
10456
10456
  }
10457
10457
  const Vo = /* @__PURE__ */ j(null), ur = /* @__PURE__ */ j(null), an = /* @__PURE__ */ j(null), Yn = /* @__PURE__ */ j(null);
10458
10458
  function sb(t) {
10459
- let e = Bo(t), n = A(null), { menuTriggerProps: r, menuProps: o } = Dp({
10459
+ let e = Bo(t), n = K(null), { menuTriggerProps: r, menuProps: o } = Dp({
10460
10460
  ...t,
10461
10461
  type: "menu"
10462
- }, e, n), i = A(null);
10463
- return gs() ? null : /* @__PURE__ */ T.createElement(Ze, {
10462
+ }, e, n), i = K(null);
10463
+ return gs() ? null : /* @__PURE__ */ M.createElement(Ze, {
10464
10464
  values: [
10465
10465
  [
10466
10466
  Vo,
@@ -10488,7 +10488,7 @@ function sb(t) {
10488
10488
  }
10489
10489
  ]
10490
10490
  ]
10491
- }, /* @__PURE__ */ T.createElement(Pa, {
10491
+ }, /* @__PURE__ */ M.createElement(Pa, {
10492
10492
  ...r,
10493
10493
  ref: n,
10494
10494
  isPressed: e.isOpen
@@ -10509,13 +10509,13 @@ let uo = ti;
10509
10509
  const ab = /* @__PURE__ */ Ka(uo, (t, e, n) => {
10510
10510
  let { CollectionBranch: r } = _(ar), o = _(ur), i = _(an), l = Xp({
10511
10511
  triggerKey: n.key
10512
- }, i), s = A(null), a = at(e), { parentMenuRef: c, shouldUseVirtualFocus: u } = _(Cc), { submenuTriggerProps: d, submenuProps: h, popoverProps: f } = Yp({
10512
+ }, i), s = K(null), a = at(e), { parentMenuRef: c, shouldUseVirtualFocus: u } = _(Cc), { submenuTriggerProps: d, submenuProps: h, popoverProps: f } = Yp({
10513
10513
  parentMenuRef: c,
10514
10514
  submenuRef: s,
10515
10515
  delay: t.delay,
10516
10516
  shouldUseVirtualFocus: u
10517
10517
  }, l, a);
10518
- return /* @__PURE__ */ T.createElement(Ze, {
10518
+ return /* @__PURE__ */ M.createElement(Ze, {
10519
10519
  values: [
10520
10520
  [
10521
10521
  Rt,
@@ -10547,14 +10547,14 @@ const ab = /* @__PURE__ */ Ka(uo, (t, e, n) => {
10547
10547
  }
10548
10548
  ]
10549
10549
  ]
10550
- }, /* @__PURE__ */ T.createElement(r, {
10550
+ }, /* @__PURE__ */ M.createElement(r, {
10551
10551
  collection: o.collection,
10552
10552
  parent: n
10553
10553
  }), t.children[1]);
10554
10554
  }, (t) => t.children[0]), cb = /* @__PURE__ */ xe(function(e, n) {
10555
- return [e, n] = Fe(e, n, Vo), /* @__PURE__ */ T.createElement(lp, {
10556
- content: /* @__PURE__ */ T.createElement(fp, e)
10557
- }, (r) => /* @__PURE__ */ T.createElement(ub, {
10555
+ return [e, n] = Fe(e, n, Vo), /* @__PURE__ */ M.createElement(lp, {
10556
+ content: /* @__PURE__ */ M.createElement(fp, e)
10557
+ }, (r) => /* @__PURE__ */ M.createElement(ub, {
10558
10558
  props: e,
10559
10559
  collection: r,
10560
10560
  menuRef: n
@@ -10581,7 +10581,7 @@ function ub({ props: t, collection: e, menuRef: n }) {
10581
10581
  isEmpty: l.collection.size === 0
10582
10582
  }
10583
10583
  }), h = null;
10584
- l.collection.size === 0 && t.renderEmptyState && (h = /* @__PURE__ */ T.createElement("div", {
10584
+ l.collection.size === 0 && t.renderEmptyState && (h = /* @__PURE__ */ M.createElement("div", {
10585
10585
  role: "menuitem",
10586
10586
  style: {
10587
10587
  display: "contents"
@@ -10590,13 +10590,13 @@ function ub({ props: t, collection: e, menuRef: n }) {
10590
10590
  let f = me(t, {
10591
10591
  global: !0
10592
10592
  });
10593
- return /* @__PURE__ */ T.createElement(Os, null, /* @__PURE__ */ T.createElement(Ee.div, {
10593
+ return /* @__PURE__ */ M.createElement(Os, null, /* @__PURE__ */ M.createElement(Ee.div, {
10594
10594
  ...re(f, d, u),
10595
10595
  ref: n,
10596
10596
  slot: t.slot || void 0,
10597
10597
  "data-empty": l.collection.size === 0 || void 0,
10598
10598
  onScroll: t.onScroll
10599
- }, /* @__PURE__ */ T.createElement(Ze, {
10599
+ }, /* @__PURE__ */ M.createElement(Ze, {
10600
10600
  values: [
10601
10601
  [
10602
10602
  ur,
@@ -10648,7 +10648,7 @@ function ub({ props: t, collection: e, menuRef: n }) {
10648
10648
  s ?? Bo({})
10649
10649
  ]
10650
10650
  ]
10651
- }, /* @__PURE__ */ T.createElement(Sp, null, /* @__PURE__ */ T.createElement(c, {
10651
+ }, /* @__PURE__ */ M.createElement(Sp, null, /* @__PURE__ */ M.createElement(c, {
10652
10652
  collection: l.collection,
10653
10653
  persistedKeys: gp(l.selectionManager.focusedKey),
10654
10654
  scrollRef: n
@@ -10690,10 +10690,10 @@ function kc(t, e, n, r = "react-aria-MenuSection") {
10690
10690
  }), d = _(Yn), h = Pc(t), f = t.selectionMode != null ? new db(d, h) : d, m = (v = dn(Rt)) == null ? void 0 : v.shouldCloseOnSelect, g = me(t, {
10691
10691
  global: !0
10692
10692
  });
10693
- return delete g.id, /* @__PURE__ */ T.createElement(Ee.section, {
10693
+ return delete g.id, /* @__PURE__ */ M.createElement(Ee.section, {
10694
10694
  ...re(g, u, c),
10695
10695
  ref: e
10696
- }, /* @__PURE__ */ T.createElement(Ze, {
10696
+ }, /* @__PURE__ */ M.createElement(Ze, {
10697
10697
  values: [
10698
10698
  [
10699
10699
  xp,
@@ -10713,15 +10713,15 @@ function kc(t, e, n, r = "react-aria-MenuSection") {
10713
10713
  }
10714
10714
  ]
10715
10715
  ]
10716
- }, /* @__PURE__ */ T.createElement(i, {
10716
+ }, /* @__PURE__ */ M.createElement(i, {
10717
10717
  collection: o.collection,
10718
10718
  parent: n
10719
10719
  })));
10720
10720
  }
10721
10721
  const fb = /* @__PURE__ */ Ka(lo, kc), Rt = /* @__PURE__ */ j(null), hb = /* @__PURE__ */ Ra(io, function(e, n, r) {
10722
- var C;
10722
+ var k;
10723
10723
  [e, n] = Fe(e, n, Rt);
10724
- let o = (C = dn(Rt)) == null ? void 0 : C.id, i = _(ur), l = at(n), s = _(Yn), { isVirtualized: a } = _(ar), { menuItemProps: c, labelProps: u, descriptionProps: d, keyboardShortcutProps: h, ...f } = Up({
10724
+ let o = (k = dn(Rt)) == null ? void 0 : k.id, i = _(ur), l = at(n), s = _(Yn), { isVirtualized: a } = _(ar), { menuItemProps: c, labelProps: u, descriptionProps: d, keyboardShortcutProps: h, ...f } = Up({
10725
10725
  ...e,
10726
10726
  id: o,
10727
10727
  key: r.key,
@@ -10746,7 +10746,7 @@ const fb = /* @__PURE__ */ Ka(lo, kc), Rt = /* @__PURE__ */ j(null), hb = /* @__
10746
10746
  }), x = e.href ? Ee.a : Ee.div, v = me(e, {
10747
10747
  global: !0
10748
10748
  });
10749
- return delete v.id, delete v.onClick, /* @__PURE__ */ T.createElement(x, {
10749
+ return delete v.id, delete v.onClick, /* @__PURE__ */ M.createElement(x, {
10750
10750
  ...re(v, y, c, m),
10751
10751
  ref: l,
10752
10752
  "data-disabled": f.isDisabled || void 0,
@@ -10758,7 +10758,7 @@ const fb = /* @__PURE__ */ Ka(lo, kc), Rt = /* @__PURE__ */ j(null), hb = /* @__
10758
10758
  "data-selection-mode": s.selectionMode === "none" ? void 0 : s.selectionMode,
10759
10759
  "data-has-submenu": !!e["aria-haspopup"] || void 0,
10760
10760
  "data-open": e["aria-expanded"] === "true" || void 0
10761
- }, /* @__PURE__ */ T.createElement(Ze, {
10761
+ }, /* @__PURE__ */ M.createElement(Ze, {
10762
10762
  values: [
10763
10763
  [
10764
10764
  _a,
@@ -10786,7 +10786,7 @@ const fb = /* @__PURE__ */ Ka(lo, kc), Rt = /* @__PURE__ */ j(null), hb = /* @__
10786
10786
  function pb(t, e) {
10787
10787
  let { role: n = "dialog" } = t, r = Nn();
10788
10788
  r = t["aria-label"] ? void 0 : r;
10789
- let o = A(!1);
10789
+ let o = K(!1);
10790
10790
  Y(() => {
10791
10791
  if (e.current && !Lt(e.current)) {
10792
10792
  ot(e.current);
@@ -10800,7 +10800,7 @@ function pb(t, e) {
10800
10800
  }, [
10801
10801
  e
10802
10802
  ]), ka();
10803
- let i = A(!1);
10803
+ let i = K(!1);
10804
10804
  return Y(() => {
10805
10805
  if (process.env.NODE_ENV !== "production" && !i.current && e.current) {
10806
10806
  let l = e.current, s = l.hasAttribute("aria-label"), a = l.hasAttribute("aria-labelledby");
@@ -10828,10 +10828,10 @@ function pb(t, e) {
10828
10828
  }
10829
10829
  const Tc = /* @__PURE__ */ j(null), ct = /* @__PURE__ */ j(null);
10830
10830
  function bb(t) {
10831
- let e = Bo(t), n = A(null), { triggerProps: r, overlayProps: o } = wc({
10831
+ let e = Bo(t), n = K(null), { triggerProps: r, overlayProps: o } = wc({
10832
10832
  type: "dialog"
10833
10833
  }, e, n);
10834
- return r.id = we(), o["aria-labelledby"] = r.id, /* @__PURE__ */ T.createElement(Ze, {
10834
+ return r.id = we(), o["aria-labelledby"] = r.id, /* @__PURE__ */ M.createElement(Ze, {
10835
10835
  values: [
10836
10836
  [
10837
10837
  ct,
@@ -10854,7 +10854,7 @@ function bb(t) {
10854
10854
  }
10855
10855
  ]
10856
10856
  ]
10857
- }, /* @__PURE__ */ T.createElement(Pa, {
10857
+ }, /* @__PURE__ */ M.createElement(Pa, {
10858
10858
  ...r,
10859
10859
  ref: n,
10860
10860
  isPressed: e.isOpen
@@ -10882,12 +10882,12 @@ const mb = /* @__PURE__ */ xe(function(e, n) {
10882
10882
  }), a = me(e, {
10883
10883
  global: !0
10884
10884
  });
10885
- return /* @__PURE__ */ T.createElement(Ee.section, {
10885
+ return /* @__PURE__ */ M.createElement(Ee.section, {
10886
10886
  ...re(a, s, o),
10887
10887
  render: e.render,
10888
10888
  ref: n,
10889
10889
  slot: e.slot || void 0
10890
- }, /* @__PURE__ */ T.createElement(Ze, {
10890
+ }, /* @__PURE__ */ M.createElement(Ze, {
10891
10891
  values: [
10892
10892
  [
10893
10893
  Ls,
@@ -10953,13 +10953,13 @@ const yb = /* @__PURE__ */ j(null), zo = /* @__PURE__ */ j(null), vb = /* @__PUR
10953
10953
  ]), y = Object.keys(e).filter((x) => g.has(x));
10954
10954
  console.warn(`This modal is already wrapped in a ModalOverlay, props [${y.join(", ")}] should be placed on the ModalOverlay instead.`);
10955
10955
  }
10956
- return /* @__PURE__ */ T.createElement(bl, {
10956
+ return /* @__PURE__ */ M.createElement(bl, {
10957
10957
  ...e,
10958
10958
  modalRef: n
10959
10959
  }, e.children);
10960
10960
  }
10961
10961
  let { isDismissable: o, isKeyboardDismissDisabled: i, isOpen: l, defaultOpen: s, onOpenChange: a, children: c, isEntering: u, isExiting: d, UNSTABLE_portalContainer: h, shouldCloseOnInteractOutside: f, ...m } = e;
10962
- return /* @__PURE__ */ T.createElement(Mc, {
10962
+ return /* @__PURE__ */ M.createElement(Mc, {
10963
10963
  isDismissable: o,
10964
10964
  isKeyboardDismissDisabled: i,
10965
10965
  isOpen: l,
@@ -10969,7 +10969,7 @@ const yb = /* @__PURE__ */ j(null), zo = /* @__PURE__ */ j(null), vb = /* @__PUR
10969
10969
  isExiting: d,
10970
10970
  UNSTABLE_portalContainer: h,
10971
10971
  shouldCloseOnInteractOutside: f
10972
- }, /* @__PURE__ */ T.createElement(bl, {
10972
+ }, /* @__PURE__ */ M.createElement(bl, {
10973
10973
  ...m,
10974
10974
  modalRef: n
10975
10975
  }, c));
@@ -10978,8 +10978,8 @@ function $b(t, e) {
10978
10978
  [t, e] = Fe(t, e, yb);
10979
10979
  let n = _(ct), r = Fo(t), o = t.isOpen != null || t.defaultOpen != null || !n ? r : n;
10980
10980
  o === n && process.env.NODE_ENV !== "production" && (t.onOpenChange || t.defaultOpen !== void 0 || t.isOpen !== void 0) && console.warn("This modals state is controlled by a trigger, place onOpenChange on the trigger instead.");
10981
- let i = at(e), l = A(null), s = Vr(i, o.isOpen), a = Vr(l, o.isOpen), c = s || a || t.isExiting || !1, u = st();
10982
- return !o.isOpen && !c || u ? null : /* @__PURE__ */ T.createElement(xb, {
10981
+ let i = at(e), l = K(null), s = Vr(i, o.isOpen), a = Vr(l, o.isOpen), c = s || a || t.isExiting || !1, u = st();
10982
+ return !o.isOpen && !c || u ? null : /* @__PURE__ */ M.createElement(xb, {
10983
10983
  ...t,
10984
10984
  state: o,
10985
10985
  isExiting: c,
@@ -11009,10 +11009,10 @@ function xb({ UNSTABLE_portalContainer: t, ...e }) {
11009
11009
  "--page-width": c !== void 0 ? c + "px" : void 0,
11010
11010
  "--page-height": u !== void 0 ? u + "px" : void 0
11011
11011
  };
11012
- return /* @__PURE__ */ T.createElement(oo, {
11012
+ return /* @__PURE__ */ M.createElement(oo, {
11013
11013
  isExiting: e.isExiting,
11014
11014
  portalContainer: t
11015
- }, /* @__PURE__ */ T.createElement(Ee.div, {
11015
+ }, /* @__PURE__ */ M.createElement(Ee.div, {
11016
11016
  ...re(me(e, {
11017
11017
  global: !0
11018
11018
  }), i),
@@ -11021,7 +11021,7 @@ function xb({ UNSTABLE_portalContainer: t, ...e }) {
11021
11021
  ref: e.overlayRef,
11022
11022
  "data-entering": l || void 0,
11023
11023
  "data-exiting": e.isExiting || void 0
11024
- }, /* @__PURE__ */ T.createElement(Ze, {
11024
+ }, /* @__PURE__ */ M.createElement(Ze, {
11025
11025
  values: [
11026
11026
  [
11027
11027
  zo,
@@ -11052,7 +11052,7 @@ function bl(t) {
11052
11052
  state: i
11053
11053
  }
11054
11054
  });
11055
- return /* @__PURE__ */ T.createElement(Ee.div, {
11055
+ return /* @__PURE__ */ M.createElement(Ee.div, {
11056
11056
  ...re(me(t, {
11057
11057
  global: !0
11058
11058
  }), e),
@@ -11060,16 +11060,16 @@ function bl(t) {
11060
11060
  ref: s,
11061
11061
  "data-entering": a || void 0,
11062
11062
  "data-exiting": r || void 0
11063
- }, o && /* @__PURE__ */ T.createElement(ro, {
11063
+ }, o && /* @__PURE__ */ M.createElement(ro, {
11064
11064
  onDismiss: i.close
11065
11065
  }), c.children);
11066
11066
  }
11067
- const wb = /* @__PURE__ */ T.forwardRef(({ children: t, ...e }, n) => {
11067
+ const wb = /* @__PURE__ */ M.forwardRef(({ children: t, ...e }, n) => {
11068
11068
  n = at(n);
11069
11069
  let { pressProps: r } = it({
11070
11070
  ...e,
11071
11071
  ref: n
11072
- }), { focusableProps: o } = fn(e, n), i = T.Children.only(t);
11072
+ }), { focusableProps: o } = fn(e, n), i = M.Children.only(t);
11073
11073
  Y(() => {
11074
11074
  if (process.env.NODE_ENV === "production") return;
11075
11075
  let s = n.current;
@@ -11092,8 +11092,8 @@ const wb = /* @__PURE__ */ T.forwardRef(({ children: t, ...e }, n) => {
11092
11092
  n,
11093
11093
  e.isDisabled
11094
11094
  ]);
11095
- let l = parseInt(T.version, 10) < 19 ? i.ref : i.props.ref;
11096
- return /* @__PURE__ */ T.cloneElement(i, {
11095
+ let l = parseInt(M.version, 10) < 19 ? i.ref : i.props.ref;
11096
+ return /* @__PURE__ */ M.cloneElement(i, {
11097
11097
  ...re(r, o, i.props),
11098
11098
  // @ts-ignore
11099
11099
  ref: $t(l, n)
@@ -11131,7 +11131,7 @@ function Cb(t, e, n) {
11131
11131
  n.current.setCustomValidity(c), n.current.hasAttribute("title") || (n.current.title = ""), e.realtimeValidation.isInvalid || e.updateValidation(Tb(n.current));
11132
11132
  }
11133
11133
  });
11134
- let i = A(!1), l = Ke(() => {
11134
+ let i = K(!1), l = Ke(() => {
11135
11135
  i.current || e.resetValidation();
11136
11136
  }), s = Ke((c) => {
11137
11137
  var d, h;
@@ -11237,7 +11237,7 @@ const Nb = /* @__PURE__ */ j(null), Ib = /* @__PURE__ */ xe(function(e, n) {
11237
11237
  }), f = me(e, {
11238
11238
  global: !0
11239
11239
  });
11240
- return delete f.onClick, /* @__PURE__ */ T.createElement(l, {
11240
+ return delete f.onClick, /* @__PURE__ */ M.createElement(l, {
11241
11241
  ref: n,
11242
11242
  slot: e.slot || void 0,
11243
11243
  ...re(f, h, o, s, c),
@@ -11253,7 +11253,7 @@ const Nb = /* @__PURE__ */ j(null), Ib = /* @__PURE__ */ xe(function(e, n) {
11253
11253
  className: e,
11254
11254
  ...n
11255
11255
  }) => {
11256
- const r = T.useMemo(() => pf(), []);
11256
+ const r = M.useMemo(() => pf(), []);
11257
11257
  return /* @__PURE__ */ b(Dc, {
11258
11258
  value: {
11259
11259
  slots: r
@@ -11338,7 +11338,7 @@ const Kb = /* @__PURE__ */ j({}), Ab = "__button_group_child", yl = ({
11338
11338
  variant: n = "default",
11339
11339
  ...r
11340
11340
  }) => {
11341
- const o = T.useMemo(() => cf({
11341
+ const o = M.useMemo(() => cf({
11342
11342
  variant: n
11343
11343
  }), [n]), i = /* @__PURE__ */ b(fe.div, {
11344
11344
  className: o.base({
@@ -11435,7 +11435,7 @@ const Kb = /* @__PURE__ */ j({}), Ab = "__button_group_child", yl = ({
11435
11435
  Footer: zb
11436
11436
  }), Hb = /* @__PURE__ */ new WeakMap();
11437
11437
  function Ub(t = !0) {
11438
- let [e, n] = W(t), r = A(!1), o = X((i) => {
11438
+ let [e, n] = W(t), r = K(!1), o = X((i) => {
11439
11439
  r.current = !0, n(!!i);
11440
11440
  }, []);
11441
11441
  return le(() => {
@@ -11495,14 +11495,14 @@ function Wb(t) {
11495
11495
  validationDetails: Ic
11496
11496
  } : null, c = J(() => {
11497
11497
  if (!l || o == null) return null;
11498
- let S = jb(l, o);
11499
- return xl(S);
11498
+ let P = jb(l, o);
11499
+ return xl(P);
11500
11500
  }, [
11501
11501
  l,
11502
11502
  o
11503
11503
  ]);
11504
11504
  i != null && i.validationDetails.valid && (i = void 0);
11505
- let u = _(Gb), d = J(() => r ? Array.isArray(r) ? r.flatMap((S) => fo(u[S])) : fo(u[r]) : [], [
11505
+ let u = _(Gb), d = J(() => r ? Array.isArray(r) ? r.flatMap((P) => fo(u[P])) : fo(u[r]) : [], [
11506
11506
  u,
11507
11507
  r
11508
11508
  ]), [h, f] = W(u), [m, g] = W(!1);
@@ -11510,21 +11510,21 @@ function Wb(t) {
11510
11510
  let y = J(() => xl(m ? [] : d), [
11511
11511
  m,
11512
11512
  d
11513
- ]), x = A(Ct), [v, C] = W(Ct), M = A(Ct), w = () => {
11514
- if (!L) return;
11513
+ ]), x = K(Ct), [v, k] = W(Ct), T = K(Ct), E = () => {
11514
+ if (!R) return;
11515
11515
  D(!1);
11516
- let S = c || i || x.current;
11517
- Kr(S, M.current) || (M.current = S, C(S));
11518
- }, [L, D] = W(!1);
11519
- return Y(w), {
11516
+ let P = c || i || x.current;
11517
+ Kr(P, T.current) || (T.current = P, k(P));
11518
+ }, [R, D] = W(!1);
11519
+ return Y(E), {
11520
11520
  realtimeValidation: a || y || c || i || Ct,
11521
11521
  displayValidation: s === "native" ? a || y || v : a || y || c || i || v,
11522
- updateValidation(S) {
11523
- s === "aria" && !Kr(v, S) ? C(S) : x.current = S;
11522
+ updateValidation(P) {
11523
+ s === "aria" && !Kr(v, P) ? k(P) : x.current = P;
11524
11524
  },
11525
11525
  resetValidation() {
11526
- let S = Ct;
11527
- Kr(S, M.current) || (M.current = S, C(S)), s === "native" && D(!1), g(!0);
11526
+ let P = Ct;
11527
+ Kr(P, T.current) || (T.current = P, k(P)), s === "native" && D(!1), g(!0);
11528
11528
  },
11529
11529
  commitValidation() {
11530
11530
  s === "native" && D(!0), g(!0);
@@ -11554,77 +11554,77 @@ function Kr(t, e) {
11554
11554
  return t === e ? !0 : !!t && !!e && t.isInvalid === e.isInvalid && t.validationErrors.length === e.validationErrors.length && t.validationErrors.every((n, r) => n === e.validationErrors[r]) && Object.entries(t.validationDetails).every(([n, r]) => e.validationDetails[n] === r);
11555
11555
  }
11556
11556
  function qb(t, e, n) {
11557
- let { isDisabled: r = !1, isReadOnly: o = !1, value: i, name: l, form: s, children: a, isRequired: c, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": h, "aria-describedby": f, onPressStart: m, onPressEnd: g, onPressChange: y, onPress: x, onPressUp: v, onClick: C } = t, M = Lc({
11557
+ let { isDisabled: r = !1, isReadOnly: o = !1, value: i, name: l, form: s, children: a, isRequired: c, validationBehavior: u = "aria", "aria-label": d, "aria-labelledby": h, "aria-describedby": f, onPressStart: m, onPressEnd: g, onPressChange: y, onPress: x, onPressUp: v, onClick: k } = t, T = Lc({
11558
11558
  ...t,
11559
11559
  value: e.isSelected
11560
- }), { isInvalid: w, validationErrors: L, validationDetails: D } = M.displayValidation;
11561
- Cb(t, M, n);
11562
- let I = (F) => {
11563
- F.stopPropagation(), e.setSelected(V(F).checked);
11564
- }, K = a != null, S = d != null || h != null;
11565
- !K && !S && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
11560
+ }), { isInvalid: E, validationErrors: R, validationDetails: D } = T.displayValidation;
11561
+ Cb(t, T, n);
11562
+ let I = (A) => {
11563
+ A.stopPropagation(), e.setSelected(V(A).checked);
11564
+ }, F = a != null, P = d != null || h != null;
11565
+ !F && !P && process.env.NODE_ENV !== "production" && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
11566
11566
  let { pressProps: O, isPressed: G } = it({
11567
11567
  onPressStart: m,
11568
11568
  onPressEnd: g,
11569
11569
  onPressChange: y,
11570
11570
  onPress: x,
11571
11571
  onPressUp: v,
11572
- onClick: C,
11572
+ onClick: k,
11573
11573
  isDisabled: r
11574
- }), [B, p] = W(!1), { pressProps: E } = it({
11575
- onPressStart(F) {
11576
- if (F.pointerType === "keyboard" || F.pointerType === "virtual") {
11577
- F.continuePropagation();
11574
+ }), [B, p] = W(!1), { pressProps: w } = it({
11575
+ onPressStart(A) {
11576
+ if (A.pointerType === "keyboard" || A.pointerType === "virtual") {
11577
+ A.continuePropagation();
11578
11578
  return;
11579
11579
  }
11580
- m == null || m(F), y == null || y(!0), p(!0);
11580
+ m == null || m(A), y == null || y(!0), p(!0);
11581
11581
  },
11582
- onPressEnd(F) {
11583
- if (F.pointerType === "keyboard" || F.pointerType === "virtual") {
11584
- F.continuePropagation();
11582
+ onPressEnd(A) {
11583
+ if (A.pointerType === "keyboard" || A.pointerType === "virtual") {
11584
+ A.continuePropagation();
11585
11585
  return;
11586
11586
  }
11587
- g == null || g(F), y == null || y(!1), p(!1);
11587
+ g == null || g(A), y == null || y(!1), p(!1);
11588
11588
  },
11589
- onPressUp(F) {
11590
- if (F.pointerType === "keyboard" || F.pointerType === "virtual") {
11591
- F.continuePropagation();
11589
+ onPressUp(A) {
11590
+ if (A.pointerType === "keyboard" || A.pointerType === "virtual") {
11591
+ A.continuePropagation();
11592
11592
  return;
11593
11593
  }
11594
- v == null || v(F);
11594
+ v == null || v(A);
11595
11595
  },
11596
- onClick: C,
11597
- onPress(F) {
11596
+ onClick: k,
11597
+ onPress(A) {
11598
11598
  var te;
11599
- if (F.pointerType === "keyboard" || F.pointerType === "virtual") {
11600
- F.continuePropagation();
11599
+ if (A.pointerType === "keyboard" || A.pointerType === "virtual") {
11600
+ A.continuePropagation();
11601
11601
  return;
11602
11602
  }
11603
- x == null || x(F), e.toggle(), (te = n.current) == null || te.focus();
11604
- let { [Xn]: Q } = t, { commitValidation: ee } = Q || M;
11603
+ x == null || x(A), e.toggle(), (te = n.current) == null || te.focus();
11604
+ let { [Xn]: Q } = t, { commitValidation: ee } = Q || T;
11605
11605
  ee();
11606
11606
  },
11607
11607
  isDisabled: r || o
11608
- }), { focusableProps: R } = fn(t, n), P = re(O, R), N = me(t, {
11608
+ }), { focusableProps: L } = fn(t, n), S = re(O, L), N = me(t, {
11609
11609
  labelable: !0
11610
11610
  });
11611
11611
  rd(n, e.defaultSelected, e.setSelected);
11612
- let $ = $l(), k = $l();
11612
+ let $ = $l(), C = $l();
11613
11613
  return {
11614
- labelProps: re(E, {
11615
- onClick: (F) => F.preventDefault()
11614
+ labelProps: re(w, {
11615
+ onClick: (A) => A.preventDefault()
11616
11616
  }),
11617
11617
  inputProps: re(N, {
11618
11618
  checked: e.isSelected,
11619
11619
  "aria-required": c && u === "aria" || void 0,
11620
11620
  required: c && u === "native",
11621
- "aria-invalid": w || t.validationState === "invalid" || void 0,
11621
+ "aria-invalid": E || t.validationState === "invalid" || void 0,
11622
11622
  "aria-errormessage": t["aria-errormessage"],
11623
11623
  "aria-controls": t["aria-controls"],
11624
11624
  "aria-readonly": o || void 0,
11625
11625
  "aria-describedby": [
11626
11626
  $.id,
11627
- k.id,
11627
+ C.id,
11628
11628
  f
11629
11629
  ].filter(Boolean).join(" ") || void 0,
11630
11630
  onChange: I,
@@ -11635,16 +11635,16 @@ function qb(t, e, n) {
11635
11635
  name: l,
11636
11636
  form: s,
11637
11637
  type: "checkbox",
11638
- ...P
11638
+ ...S
11639
11639
  }),
11640
11640
  descriptionProps: $,
11641
- errorMessageProps: k,
11641
+ errorMessageProps: C,
11642
11642
  isSelected: e.isSelected,
11643
11643
  isPressed: G || B,
11644
11644
  isDisabled: r,
11645
11645
  isReadOnly: o,
11646
- isInvalid: w || t.validationState === "invalid",
11647
- validationErrors: L,
11646
+ isInvalid: E || t.validationState === "invalid",
11647
+ validationErrors: R,
11648
11648
  validationDetails: D
11649
11649
  };
11650
11650
  }
@@ -11670,10 +11670,10 @@ function Rc(t, e, n) {
11670
11670
  validationDetails: f
11671
11671
  };
11672
11672
  }
11673
- const Yb = typeof document < "u" ? T.useInsertionEffect ?? T.useLayoutEffect : () => {
11673
+ const Yb = typeof document < "u" ? M.useInsertionEffect ?? M.useLayoutEffect : () => {
11674
11674
  };
11675
11675
  function Xb(t, e, n) {
11676
- let [r, o] = W(t || e), i = A(r), l = A(t !== void 0), s = t !== void 0;
11676
+ let [r, o] = W(t || e), i = K(r), l = K(t !== void 0), s = t !== void 0;
11677
11677
  Y(() => {
11678
11678
  let d = l.current;
11679
11679
  d !== s && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${d ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), l.current = s;
@@ -11727,7 +11727,7 @@ function Jb(t, e, n) {
11727
11727
  // Server validation is handled at the group level.
11728
11728
  name: void 0,
11729
11729
  validationBehavior: "aria"
11730
- }), u = A(Ct), d = () => {
11730
+ }), u = K(Ct), d = () => {
11731
11731
  e.setInvalid(t.value, c.isInvalid ? c : u.current);
11732
11732
  };
11733
11733
  Y(d);
@@ -11778,7 +11778,7 @@ const Qb = /* @__PURE__ */ j(null), Kc = /* @__PURE__ */ j(null), Ac = /* @__PUR
11778
11778
  }), x = me(e, {
11779
11779
  global: !0
11780
11780
  });
11781
- return delete x.id, delete x.onClick, /* @__PURE__ */ T.createElement(Ee.div, {
11781
+ return delete x.id, delete x.onClick, /* @__PURE__ */ M.createElement(Ee.div, {
11782
11782
  ...re(x, y),
11783
11783
  ref: n,
11784
11784
  slot: e.slot || void 0,
@@ -11788,7 +11788,7 @@ const Qb = /* @__PURE__ */ j(null), Kc = /* @__PURE__ */ j(null), Ac = /* @__PUR
11788
11788
  "data-readonly": h || void 0,
11789
11789
  "data-invalid": f || void 0,
11790
11790
  "data-required": e.isRequired || void 0
11791
- }, /* @__PURE__ */ T.createElement(Ze, {
11791
+ }, /* @__PURE__ */ M.createElement(Ze, {
11792
11792
  values: [
11793
11793
  [
11794
11794
  Ac,
@@ -11837,17 +11837,17 @@ function tm(t, e) {
11837
11837
  ];
11838
11838
  }
11839
11839
  const nm = /* @__PURE__ */ xe(function(e, n) {
11840
- let { labelProps: r, inputProps: o, isSelected: i, isDisabled: l, isReadOnly: s, isPressed: a, isInvalid: c, inputRef: u, defaultClassName: d, isIndeterminate: h, isRequired: f } = _(Ac), { isFocused: m, isFocusVisible: g, focusProps: y } = Ko(), x = l || s, { hoverProps: v, isHovered: C } = hn({
11840
+ let { labelProps: r, inputProps: o, isSelected: i, isDisabled: l, isReadOnly: s, isPressed: a, isInvalid: c, inputRef: u, defaultClassName: d, isIndeterminate: h, isRequired: f } = _(Ac), { isFocused: m, isFocusVisible: g, focusProps: y } = Ko(), x = l || s, { hoverProps: v, isHovered: k } = hn({
11841
11841
  ...e,
11842
11842
  isDisabled: x
11843
- }), M = Oe({
11843
+ }), T = Oe({
11844
11844
  ...e,
11845
11845
  defaultClassName: d,
11846
11846
  values: {
11847
11847
  isSelected: i,
11848
11848
  isIndeterminate: h || !1,
11849
11849
  isPressed: a,
11850
- isHovered: C,
11850
+ isHovered: k,
11851
11851
  isFocused: m,
11852
11852
  isFocusVisible: g,
11853
11853
  isDisabled: l,
@@ -11855,36 +11855,36 @@ const nm = /* @__PURE__ */ xe(function(e, n) {
11855
11855
  isInvalid: c,
11856
11856
  isRequired: f || !1
11857
11857
  }
11858
- }), w = me(e, {
11858
+ }), E = me(e, {
11859
11859
  global: !0
11860
11860
  });
11861
- return delete w.id, delete w.onClick, /* @__PURE__ */ T.createElement(Ee.label, {
11862
- ...re(w, r, v, M),
11861
+ return delete E.id, delete E.onClick, /* @__PURE__ */ M.createElement(Ee.label, {
11862
+ ...re(E, r, v, T),
11863
11863
  ref: n,
11864
11864
  slot: e.slot || void 0,
11865
11865
  "data-selected": i || void 0,
11866
11866
  "data-indeterminate": h || void 0,
11867
11867
  "data-pressed": a || void 0,
11868
- "data-hovered": C || void 0,
11868
+ "data-hovered": k || void 0,
11869
11869
  "data-focused": m || void 0,
11870
11870
  "data-focus-visible": g || void 0,
11871
11871
  "data-disabled": l || void 0,
11872
11872
  "data-readonly": s || void 0,
11873
11873
  "data-invalid": c || void 0,
11874
11874
  "data-required": f || void 0
11875
- }, /* @__PURE__ */ T.createElement(Sa, {
11875
+ }, /* @__PURE__ */ M.createElement(Sa, {
11876
11876
  elementType: "span"
11877
- }, /* @__PURE__ */ T.createElement("input", {
11877
+ }, /* @__PURE__ */ M.createElement("input", {
11878
11878
  ...re(o, y),
11879
11879
  ref: u
11880
- })), M.children);
11880
+ })), T.children);
11881
11881
  }), rm = /* @__PURE__ */ j({}), dr = /* @__PURE__ */ j({}), ho = ({
11882
11882
  children: t,
11883
11883
  className: e,
11884
11884
  variant: n,
11885
11885
  ...r
11886
11886
  }) => {
11887
- const o = _(rm), i = n ?? o.variant, l = T.useMemo(() => uf({
11887
+ const o = _(rm), i = n ?? o.variant, l = M.useMemo(() => uf({
11888
11888
  variant: i
11889
11889
  }), [i]);
11890
11890
  return /* @__PURE__ */ b(em, {
@@ -11994,11 +11994,11 @@ const Tn = Object.assign(ho, {
11994
11994
  variant: o,
11995
11995
  ...i
11996
11996
  }) => {
11997
- const l = T.useMemo(() => df({
11997
+ const l = M.useMemo(() => df({
11998
11998
  color: n,
11999
11999
  size: r,
12000
12000
  variant: o
12001
- }), [n, r, o]), s = T.useMemo(() => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ b(Vc, {
12001
+ }), [n, r, o]), s = M.useMemo(() => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ b(Vc, {
12002
12002
  children: t
12003
12003
  }) : t, [t]);
12004
12004
  return /* @__PURE__ */ b(Bc, {
@@ -12036,7 +12036,7 @@ const Tn = Object.assign(ho, {
12036
12036
  size: r,
12037
12037
  ...o
12038
12038
  }) => {
12039
- const i = T.useMemo(() => bf({
12039
+ const i = M.useMemo(() => bf({
12040
12040
  color: n,
12041
12041
  size: r
12042
12042
  }), [n, r]);
@@ -12138,7 +12138,7 @@ const Mn = Object.assign(po, {
12138
12138
  status: n,
12139
12139
  ...r
12140
12140
  }) => {
12141
- const o = T.useMemo(() => af({
12141
+ const o = M.useMemo(() => af({
12142
12142
  status: n
12143
12143
  }), [n]);
12144
12144
  return /* @__PURE__ */ b(pn, {
@@ -12252,7 +12252,7 @@ const Mn = Object.assign(po, {
12252
12252
  variant: n,
12253
12253
  ...r
12254
12254
  }) => {
12255
- const o = T.useMemo(() => mf({
12255
+ const o = M.useMemo(() => mf({
12256
12256
  variant: n
12257
12257
  }), [n]);
12258
12258
  return /* @__PURE__ */ b(hb, {
@@ -12338,7 +12338,7 @@ const Mn = Object.assign(po, {
12338
12338
  className: e,
12339
12339
  ...n
12340
12340
  }) => {
12341
- const r = T.useMemo(() => gf({
12341
+ const r = M.useMemo(() => gf({
12342
12342
  class: typeof e == "string" ? e : void 0
12343
12343
  }), [e]);
12344
12344
  return /* @__PURE__ */ b(fb, {
@@ -12350,7 +12350,7 @@ const Mn = Object.assign(po, {
12350
12350
  children: t,
12351
12351
  ...e
12352
12352
  }) => {
12353
- const n = T.useMemo(() => hf(), []);
12353
+ const n = M.useMemo(() => hf(), []);
12354
12354
  return /* @__PURE__ */ b(hr, {
12355
12355
  value: {
12356
12356
  slots: n
@@ -12900,7 +12900,7 @@ function jc(t = {}) {
12900
12900
  observeParent: n = !1,
12901
12901
  remeasureWhenVisible: r = !1,
12902
12902
  layoutSettleKey: o
12903
- } = t, i = A(null), [l, s] = W(null), a = X(() => {
12903
+ } = t, i = K(null), [l, s] = W(null), a = X(() => {
12904
12904
  const u = i.current;
12905
12905
  if (!u)
12906
12906
  return;
@@ -12960,7 +12960,7 @@ function Gm(t) {
12960
12960
  return r <= n ? null : e.slice(r + 1).toLowerCase() || null;
12961
12961
  }
12962
12962
  function Wm({ src: t, modelFileName: e }) {
12963
- const n = A(null);
12963
+ const n = K(null);
12964
12964
  return Y(() => {
12965
12965
  const r = n.current;
12966
12966
  if (!r)
@@ -13020,12 +13020,12 @@ function Go({
13020
13020
  h.height,
13021
13021
  u.width,
13022
13022
  u.height
13023
- ), g = !!m, y = !!(r && h && !m), x = "size-full object-cover object-center", v = (M) => {
13024
- const w = M.currentTarget;
13025
- w.naturalWidth > 0 && w.naturalHeight > 0 && (f({ width: w.naturalWidth, height: w.naturalHeight }), d());
13026
- }, C = (M) => {
13027
- const w = M.currentTarget;
13028
- w.videoWidth > 0 && w.videoHeight > 0 && (f({ width: w.videoWidth, height: w.videoHeight }), d());
13023
+ ), g = !!m, y = !!(r && h && !m), x = "size-full object-cover object-center", v = (T) => {
13024
+ const E = T.currentTarget;
13025
+ E.naturalWidth > 0 && E.naturalHeight > 0 && (f({ width: E.naturalWidth, height: E.naturalHeight }), d());
13026
+ }, k = (T) => {
13027
+ const E = T.currentTarget;
13028
+ E.videoWidth > 0 && E.videoHeight > 0 && (f({ width: E.videoWidth, height: E.videoHeight }), d());
13029
13029
  };
13030
13030
  return Y(() => {
13031
13031
  f(null);
@@ -13043,7 +13043,7 @@ function Go({
13043
13043
  ...g && m ? m : void 0,
13044
13044
  opacity: y ? 0 : 1
13045
13045
  },
13046
- onLoadedMetadata: r ? C : void 0
13046
+ onLoadedMetadata: r ? k : void 0
13047
13047
  }
13048
13048
  ) : /* @__PURE__ */ b(
13049
13049
  "img",
@@ -13147,74 +13147,74 @@ function eg({
13147
13147
  annotations: t,
13148
13148
  editing: e
13149
13149
  }) {
13150
- const { tool: n, color: r, selectedId: o, onSelect: i, onAdd: l, onChange: s, onRemove: a } = e, c = A(null), u = A(!1), [d, h] = W(null), [f, m] = W(null), g = n === "select", y = (S) => {
13150
+ const { tool: n, color: r, selectedId: o, onSelect: i, onAdd: l, onChange: s, onRemove: a } = e, c = K(null), u = K(!1), [d, h] = W(null), [f, m] = W(null), g = n === "select", y = (P) => {
13151
13151
  const O = c.current.getBoundingClientRect();
13152
13152
  return {
13153
- x: Qn((S.clientX - O.left) / O.width * 100, 0, 100),
13154
- y: Qn((S.clientY - O.top) / O.height * 100, 0, 100)
13153
+ x: Qn((P.clientX - O.left) / O.width * 100, 0, 100),
13154
+ y: Qn((P.clientY - O.top) / O.height * 100, 0, 100)
13155
13155
  };
13156
- }, x = (S, O) => {
13156
+ }, x = (P, O) => {
13157
13157
  var G;
13158
- (G = c.current) == null || G.setPointerCapture(S.pointerId), u.current = !1, h(O), m(Ll(O.base));
13159
- }, v = (S) => {
13158
+ (G = c.current) == null || G.setPointerCapture(P.pointerId), u.current = !1, h(O), m(Ll(O.base));
13159
+ }, v = (P) => {
13160
13160
  if (g) {
13161
13161
  i == null || i(null);
13162
13162
  return;
13163
13163
  }
13164
- const O = y(S);
13165
- x(S, {
13164
+ const O = y(P);
13165
+ x(P, {
13166
13166
  mode: Jm(n),
13167
13167
  id: null,
13168
13168
  start: O,
13169
13169
  base: Zm(n, O, r)
13170
13170
  });
13171
- }, C = (S) => {
13171
+ }, k = (P) => {
13172
13172
  if (!d) return;
13173
13173
  const O = c.current.getBoundingClientRect();
13174
- u.current = !0, m(Ll(Qm(d, y(S), O.width / O.height)));
13175
- }, M = (S) => {
13174
+ u.current = !0, m(Ll(Qm(d, y(P), O.width / O.height)));
13175
+ }, T = (P) => {
13176
13176
  var O;
13177
- d && f && ((O = c.current) == null || O.releasePointerCapture(S.pointerId), d.id === null ? l == null || l(f) : u.current && (s == null || s(d.id, f))), h(null), m(null);
13178
- }, w = (S, O, G) => {
13177
+ d && f && ((O = c.current) == null || O.releasePointerCapture(P.pointerId), d.id === null ? l == null || l(f) : u.current && (s == null || s(d.id, f))), h(null), m(null);
13178
+ }, E = (P, O, G) => {
13179
13179
  var B;
13180
- S.stopPropagation(), (B = c.current) == null || B.focus(), i == null || i(O), x(S, { mode: "move", id: O, start: y(S), base: G });
13181
- }, L = (S, O, G) => {
13182
- S.stopPropagation(), x(S, {
13180
+ P.stopPropagation(), (B = c.current) == null || B.focus(), i == null || i(O), x(P, { mode: "move", id: O, start: y(P), base: G });
13181
+ }, R = (P, O, G) => {
13182
+ P.stopPropagation(), x(P, {
13183
13183
  mode: "resize-circle",
13184
13184
  id: O,
13185
- start: y(S),
13185
+ start: y(P),
13186
13186
  base: G
13187
13187
  });
13188
- }, D = (S, O, G, B) => {
13189
- S.stopPropagation(), x(S, {
13188
+ }, D = (P, O, G, B) => {
13189
+ P.stopPropagation(), x(P, {
13190
13190
  mode: "resize-rect",
13191
13191
  id: O,
13192
- start: y(S),
13192
+ start: y(P),
13193
13193
  base: Yc(G),
13194
13194
  corner: B
13195
13195
  });
13196
- }, I = (S) => {
13197
- (S.key === "Delete" || S.key === "Backspace") && o != null && (S.preventDefault(), a == null || a(o));
13198
- }, K = (S, O, G) => {
13199
- const B = G && O === o, p = rt[S.color ?? "GREY"], E = G ? "pointer-events-auto cursor-move" : "pointer-events-none", R = G ? (P) => w(P, O, S) : void 0;
13200
- if (qc(S))
13196
+ }, I = (P) => {
13197
+ (P.key === "Delete" || P.key === "Backspace") && o != null && (P.preventDefault(), a == null || a(o));
13198
+ }, F = (P, O, G) => {
13199
+ const B = G && O === o, p = rt[P.color ?? "GREY"], w = G ? "pointer-events-auto cursor-move" : "pointer-events-none", L = G ? (S) => E(S, O, P) : void 0;
13200
+ if (qc(P))
13201
13201
  return /* @__PURE__ */ z("div", { children: [
13202
13202
  /* @__PURE__ */ b(
13203
13203
  "div",
13204
13204
  {
13205
13205
  role: "img",
13206
- "aria-label": S.title,
13207
- onPointerDown: R,
13206
+ "aria-label": P.title,
13207
+ onPointerDown: L,
13208
13208
  className: ne(
13209
13209
  "absolute rounded-full",
13210
13210
  Jn,
13211
- E,
13211
+ w,
13212
13212
  B && "outline outline-2 outline-offset-2 outline-accent"
13213
13213
  ),
13214
13214
  style: {
13215
- left: `${S.x}%`,
13216
- top: `${S.y}%`,
13217
- width: `${S.radius * 2}%`,
13215
+ left: `${P.x}%`,
13216
+ top: `${P.y}%`,
13217
+ width: `${P.radius * 2}%`,
13218
13218
  aspectRatio: "1",
13219
13219
  transform: "translate(-50%, -50%)",
13220
13220
  borderColor: p,
@@ -13225,50 +13225,50 @@ function eg({
13225
13225
  B && /* @__PURE__ */ b(
13226
13226
  Rl,
13227
13227
  {
13228
- x: S.x + S.radius,
13229
- y: S.y,
13228
+ x: P.x + P.radius,
13229
+ y: P.y,
13230
13230
  cursor: "ew-resize",
13231
- onPointerDown: (P) => L(P, O, S)
13231
+ onPointerDown: (S) => R(S, O, P)
13232
13232
  }
13233
13233
  )
13234
13234
  ] }, O);
13235
- if (bn(S)) {
13236
- const P = Math.min(S.x1, S.x2), N = Math.min(S.y1, S.y2), $ = Math.abs(S.x2 - S.x1), k = Math.abs(S.y2 - S.y1), F = [
13237
- { corner: "nw", x: P, y: N, cursor: "nwse-resize" },
13238
- { corner: "ne", x: P + $, y: N, cursor: "nesw-resize" },
13239
- { corner: "sw", x: P, y: N + k, cursor: "nesw-resize" },
13240
- { corner: "se", x: P + $, y: N + k, cursor: "nwse-resize" }
13235
+ if (bn(P)) {
13236
+ const S = Math.min(P.x1, P.x2), N = Math.min(P.y1, P.y2), $ = Math.abs(P.x2 - P.x1), C = Math.abs(P.y2 - P.y1), A = [
13237
+ { corner: "nw", x: S, y: N, cursor: "nwse-resize" },
13238
+ { corner: "ne", x: S + $, y: N, cursor: "nesw-resize" },
13239
+ { corner: "sw", x: S, y: N + C, cursor: "nesw-resize" },
13240
+ { corner: "se", x: S + $, y: N + C, cursor: "nwse-resize" }
13241
13241
  ];
13242
13242
  return /* @__PURE__ */ z("div", { children: [
13243
13243
  /* @__PURE__ */ b(
13244
13244
  "div",
13245
13245
  {
13246
13246
  role: "img",
13247
- "aria-label": S.title,
13248
- onPointerDown: R,
13247
+ "aria-label": P.title,
13248
+ onPointerDown: L,
13249
13249
  className: ne(
13250
13250
  "absolute",
13251
13251
  Jn,
13252
- E,
13252
+ w,
13253
13253
  B && "outline outline-2 outline-offset-2 outline-accent"
13254
13254
  ),
13255
13255
  style: {
13256
- left: `${P}%`,
13256
+ left: `${S}%`,
13257
13257
  top: `${N}%`,
13258
13258
  width: `${$}%`,
13259
- height: `${k}%`,
13259
+ height: `${C}%`,
13260
13260
  borderColor: p,
13261
13261
  backgroundColor: It(p, 0.1)
13262
13262
  }
13263
13263
  }
13264
13264
  ),
13265
- B && F.map(({ corner: Q, x: ee, y: te, cursor: ae }) => /* @__PURE__ */ b(
13265
+ B && A.map(({ corner: Q, x: ee, y: te, cursor: ae }) => /* @__PURE__ */ b(
13266
13266
  Rl,
13267
13267
  {
13268
13268
  x: ee,
13269
13269
  y: te,
13270
13270
  cursor: ae,
13271
- onPointerDown: (pe) => D(pe, O, S, Q)
13271
+ onPointerDown: (pe) => D(pe, O, P, Q)
13272
13272
  },
13273
13273
  Q
13274
13274
  ))
@@ -13278,20 +13278,20 @@ function eg({
13278
13278
  "span",
13279
13279
  {
13280
13280
  role: "img",
13281
- "aria-label": S.title,
13282
- onPointerDown: R,
13281
+ "aria-label": P.title,
13282
+ onPointerDown: L,
13283
13283
  style: {
13284
- left: `${S.x}%`,
13285
- top: `${S.y}%`,
13284
+ left: `${P.x}%`,
13285
+ top: `${P.y}%`,
13286
13286
  backgroundColor: p,
13287
13287
  color: xo(p)
13288
13288
  },
13289
13289
  className: ne(
13290
13290
  Gc,
13291
- E,
13291
+ w,
13292
13292
  B && "outline outline-2 outline-offset-2 outline-accent"
13293
13293
  ),
13294
- children: S.label
13294
+ children: P.label
13295
13295
  },
13296
13296
  O
13297
13297
  );
@@ -13304,19 +13304,19 @@ function eg({
13304
13304
  role: "application",
13305
13305
  "aria-label": "Annotation editor",
13306
13306
  onPointerDown: v,
13307
- onPointerMove: C,
13308
- onPointerUp: M,
13307
+ onPointerMove: k,
13308
+ onPointerUp: T,
13309
13309
  onKeyDown: I,
13310
13310
  className: ne(
13311
13311
  "absolute inset-0 focus:outline-none",
13312
13312
  g ? "cursor-default" : "cursor-crosshair"
13313
13313
  ),
13314
13314
  children: [
13315
- t.map((S, O) => {
13316
- const G = S.id ?? String(O), B = (d == null ? void 0 : d.id) === G && f ? f : S;
13317
- return K(B, G, g);
13315
+ t.map((P, O) => {
13316
+ const G = P.id ?? String(O), B = (d == null ? void 0 : d.id) === G && f ? f : P;
13317
+ return F(B, G, g);
13318
13318
  }),
13319
- (d == null ? void 0 : d.id) === null && f && K(f, "__draft__", !1)
13319
+ (d == null ? void 0 : d.id) === null && f && F(f, "__draft__", !1)
13320
13320
  ]
13321
13321
  }
13322
13322
  );
@@ -13452,39 +13452,39 @@ function fy({
13452
13452
  onChange: n,
13453
13453
  className: r
13454
13454
  }) {
13455
- const o = A(null), [i, l] = W(
13455
+ const o = K(null), [i, l] = W(
13456
13456
  null
13457
13457
  ), [s, a] = W(null), [c, u] = W(null), d = (v) => {
13458
- const C = v.currentTarget;
13459
- C.naturalWidth > 0 && C.naturalHeight > 0 && l({ width: C.naturalWidth, height: C.naturalHeight });
13458
+ const k = v.currentTarget;
13459
+ k.naturalWidth > 0 && k.naturalHeight > 0 && l({ width: k.naturalWidth, height: k.naturalHeight });
13460
13460
  }, h = c ?? (i ? e ? pr(e, i.width, i.height) : Vm(i.width, i.height) : null), f = (v) => {
13461
- const C = o.current.getBoundingClientRect();
13461
+ const k = o.current.getBoundingClientRect();
13462
13462
  return {
13463
- x: (v.clientX - C.left) / C.width * i.width,
13464
- y: (v.clientY - C.top) / C.height * i.height
13463
+ x: (v.clientX - k.left) / k.width * i.width,
13464
+ y: (v.clientY - k.top) / k.height * i.height
13465
13465
  };
13466
- }, m = (v, C) => {
13467
- var M;
13468
- v.stopPropagation(), (M = o.current) == null || M.setPointerCapture(v.pointerId), a(C), u(C.base);
13466
+ }, m = (v, k) => {
13467
+ var T;
13468
+ v.stopPropagation(), (T = o.current) == null || T.setPointerCapture(v.pointerId), a(k), u(k.base);
13469
13469
  }, g = (v) => {
13470
13470
  if (!s || !i) return;
13471
- const C = f(v), M = s.mode === "move" ? lg(
13471
+ const k = f(v), T = s.mode === "move" ? lg(
13472
13472
  s.base,
13473
- C.x - s.start.x,
13474
- C.y - s.start.y,
13473
+ k.x - s.start.x,
13474
+ k.y - s.start.y,
13475
13475
  i.width,
13476
13476
  i.height
13477
13477
  ) : sg(
13478
13478
  s.base,
13479
13479
  s.corner,
13480
- C,
13480
+ k,
13481
13481
  i.width,
13482
13482
  i.height
13483
13483
  );
13484
- u(M);
13484
+ u(T);
13485
13485
  }, y = (v) => {
13486
- var C;
13487
- s && c && ((C = o.current) == null || C.releasePointerCapture(v.pointerId), n(c)), a(null), u(null);
13486
+ var k;
13487
+ s && c && ((k = o.current) == null || k.releasePointerCapture(v.pointerId), n(c)), a(null), u(null);
13488
13488
  }, x = h && i ? {
13489
13489
  left: h.x / i.width * 100,
13490
13490
  top: h.y / i.height * 100,
@@ -13527,19 +13527,19 @@ function fy({
13527
13527
  boxShadow: "0 0 0 9999px rgba(0, 0, 0, 0.5)"
13528
13528
  },
13529
13529
  onPointerDown: (v) => m(v, { mode: "move", start: f(v), base: h }),
13530
- children: og.map(({ corner: v, cursor: C }) => /* @__PURE__ */ b(
13530
+ children: og.map(({ corner: v, cursor: k }) => /* @__PURE__ */ b(
13531
13531
  "span",
13532
13532
  {
13533
13533
  className: "crop-handle pointer-events-auto absolute size-3 -translate-x-1/2 -translate-y-1/2 rounded-sm border border-background bg-accent shadow",
13534
13534
  style: {
13535
13535
  left: v === "nw" || v === "sw" ? "0%" : "100%",
13536
13536
  top: v === "nw" || v === "ne" ? "0%" : "100%",
13537
- cursor: C
13537
+ cursor: k
13538
13538
  },
13539
- onPointerDown: (M) => m(M, {
13539
+ onPointerDown: (T) => m(T, {
13540
13540
  mode: "resize",
13541
13541
  corner: v,
13542
- start: f(M),
13542
+ start: f(T),
13543
13543
  base: h
13544
13544
  })
13545
13545
  },
@@ -13783,7 +13783,7 @@ function yg({
13783
13783
  menuLabel: o,
13784
13784
  className: i
13785
13785
  }) {
13786
- const l = A(null), [s, a] = W(), [c] = t, u = nt({ variant: e, size: n });
13786
+ const l = K(null), [s, a] = W(), [c] = t, u = nt({ variant: e, size: n });
13787
13787
  return vo(() => {
13788
13788
  const d = l.current;
13789
13789
  if (!d)
@@ -13861,14 +13861,14 @@ function vg({
13861
13861
  editing: i,
13862
13862
  className: l
13863
13863
  }) {
13864
- const [s, a] = W(!1), [c, u] = W(null), [d, h] = W(null), { onAddItem: f, onRemoveItem: m, onReorderItem: g, onSelectItem: y } = i, x = t[0], v = t.slice(1), C = nt({ variant: e, size: n }), M = g != null, w = () => {
13864
+ const [s, a] = W(!1), [c, u] = W(null), [d, h] = W(null), { onAddItem: f, onRemoveItem: m, onReorderItem: g, onSelectItem: y } = i, x = t[0], v = t.slice(1), k = nt({ variant: e, size: n }), T = g != null, E = () => {
13865
13865
  u(null), h(null);
13866
- }, L = (D) => {
13867
- c != null && c !== D && (g == null || g(c, D)), w();
13866
+ }, R = (D) => {
13867
+ c != null && c !== D && (g == null || g(c, D)), E();
13868
13868
  };
13869
13869
  return /* @__PURE__ */ z("div", { className: ne("relative inline-flex flex-col items-start", l), children: [
13870
13870
  /* @__PURE__ */ z("div", { className: Do({ orientation: "horizontal" }).base(), children: [
13871
- /* @__PURE__ */ z("span", { className: ne(C, "cursor-text"), children: [
13871
+ /* @__PURE__ */ z("span", { className: ne(k, "cursor-text"), children: [
13872
13872
  r,
13873
13873
  x ? x.props.children : /* @__PURE__ */ b("span", { className: "opacity-60", children: "Add a link" })
13874
13874
  ] }),
@@ -13911,33 +13911,33 @@ function vg({
13911
13911
  ),
13912
13912
  /* @__PURE__ */ z("div", { className: "absolute left-0 top-full z-50 mt-2 w-64 rounded-lg border border-default-200 bg-background p-2 shadow-lg", children: [
13913
13913
  v.length > 0 ? /* @__PURE__ */ b("ul", { className: "flex flex-col gap-0.5", children: v.map((D, I) => {
13914
- const K = I + 1;
13914
+ const F = I + 1;
13915
13915
  return /* @__PURE__ */ z(
13916
13916
  "li",
13917
13917
  {
13918
- draggable: M || void 0,
13919
- onDragStart: M ? () => u(K) : void 0,
13920
- onDragOver: M ? (S) => {
13921
- S.preventDefault(), h(K);
13918
+ draggable: T || void 0,
13919
+ onDragStart: T ? () => u(F) : void 0,
13920
+ onDragOver: T ? (P) => {
13921
+ P.preventDefault(), h(F);
13922
13922
  } : void 0,
13923
- onDrop: M ? (S) => {
13924
- S.preventDefault(), L(K);
13923
+ onDrop: T ? (P) => {
13924
+ P.preventDefault(), R(F);
13925
13925
  } : void 0,
13926
- onDragEnd: M ? w : void 0,
13926
+ onDragEnd: T ? E : void 0,
13927
13927
  className: ne(
13928
13928
  "flex items-center gap-1.5 rounded-md px-1.5 py-1 transition",
13929
- M && "cursor-grab",
13930
- c === K && "opacity-40",
13931
- d === K && c !== K && "ring-2 ring-accent"
13929
+ T && "cursor-grab",
13930
+ c === F && "opacity-40",
13931
+ d === F && c !== F && "ring-2 ring-accent"
13932
13932
  ),
13933
13933
  children: [
13934
- M && /* @__PURE__ */ b("span", { className: "shrink-0 text-default-400", children: /* @__PURE__ */ b(hg, {}) }),
13934
+ T && /* @__PURE__ */ b("span", { className: "shrink-0 text-default-400", children: /* @__PURE__ */ b(hg, {}) }),
13935
13935
  /* @__PURE__ */ b("span", { className: "min-w-0 flex-1 text-sm", children: D.props.children }),
13936
13936
  g && /* @__PURE__ */ b(
13937
13937
  "button",
13938
13938
  {
13939
13939
  type: "button",
13940
- onClick: () => g(K, 0),
13940
+ onClick: () => g(F, 0),
13941
13941
  "aria-label": "Make default download",
13942
13942
  className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
13943
13943
  children: /* @__PURE__ */ b(dg, {})
@@ -13947,7 +13947,7 @@ function vg({
13947
13947
  "button",
13948
13948
  {
13949
13949
  type: "button",
13950
- onClick: () => y(K),
13950
+ onClick: () => y(F),
13951
13951
  "aria-label": "Edit link",
13952
13952
  className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
13953
13953
  children: /* @__PURE__ */ b(Kl, {})
@@ -13957,7 +13957,7 @@ function vg({
13957
13957
  "button",
13958
13958
  {
13959
13959
  type: "button",
13960
- onClick: () => m(K),
13960
+ onClick: () => m(F),
13961
13961
  "aria-label": "Remove option",
13962
13962
  className: "shrink-0 rounded p-0.5 text-default-500 transition hover:text-danger focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
13963
13963
  children: /* @__PURE__ */ b(fg, {})
@@ -13965,7 +13965,7 @@ function vg({
13965
13965
  )
13966
13966
  ]
13967
13967
  },
13968
- K
13968
+ F
13969
13969
  );
13970
13970
  }) }) : /* @__PURE__ */ b("p", { className: "px-1.5 py-1 text-sm text-default-500", children: "No other options yet." }),
13971
13971
  f && /* @__PURE__ */ b(
@@ -14247,7 +14247,7 @@ function ou(t) {
14247
14247
  }
14248
14248
  ) : null, f = /* @__PURE__ */ b("div", { className: "min-w-0 flex-1", children: s });
14249
14249
  else {
14250
- const C = r ?? Sg[e], M = e === "caution" ? /* @__PURE__ */ b(Pg, {}) : e === "reminder" ? /* @__PURE__ */ b(kg, {}) : /* @__PURE__ */ b(Cg, {});
14250
+ const k = r ?? Sg[e], T = e === "caution" ? /* @__PURE__ */ b(Pg, {}) : e === "reminder" ? /* @__PURE__ */ b(kg, {}) : /* @__PURE__ */ b(Cg, {});
14251
14251
  h = i ? /* @__PURE__ */ b(
14252
14252
  "button",
14253
14253
  {
@@ -14255,12 +14255,12 @@ function ou(t) {
14255
14255
  onClick: i,
14256
14256
  "aria-label": l ?? "Change bullet style",
14257
14257
  className: "shrink-0 cursor-pointer rounded outline-none transition hover:opacity-70 focus-visible:ring-2 focus-visible:ring-accent",
14258
- children: M
14258
+ children: T
14259
14259
  }
14260
- ) : M, f = /* @__PURE__ */ z("span", { className: "flex-1", children: [
14260
+ ) : T, f = /* @__PURE__ */ z("span", { className: "flex-1", children: [
14261
14261
  !o && /* @__PURE__ */ z(lt, { children: [
14262
14262
  /* @__PURE__ */ z("span", { className: "font-semibold", children: [
14263
- C,
14263
+ k,
14264
14264
  ":"
14265
14265
  ] }),
14266
14266
  " "
@@ -14290,14 +14290,14 @@ function ou(t) {
14290
14290
  x && "ring-2 ring-accent"
14291
14291
  ),
14292
14292
  draggable: g && u ? !0 : void 0,
14293
- onDragStart: g ? (C) => {
14294
- C.dataTransfer.effectAllowed = "move", c.onDragStart();
14293
+ onDragStart: g ? (k) => {
14294
+ k.dataTransfer.effectAllowed = "move", c.onDragStart();
14295
14295
  } : void 0,
14296
- onDragOver: g ? (C) => {
14297
- C.preventDefault(), C.dataTransfer.dropEffect = "move", c.onDragOver();
14296
+ onDragOver: g ? (k) => {
14297
+ k.preventDefault(), k.dataTransfer.dropEffect = "move", c.onDragOver();
14298
14298
  } : void 0,
14299
- onDrop: g ? (C) => {
14300
- C.preventDefault(), c.onDrop();
14299
+ onDrop: g ? (k) => {
14300
+ k.preventDefault(), c.onDrop();
14301
14301
  } : void 0,
14302
14302
  onDragEnd: g ? () => {
14303
14303
  d(!1), c.onDragEnd();
@@ -14350,15 +14350,15 @@ function Ag({
14350
14350
  bullets: e,
14351
14351
  mediaEditing: n
14352
14352
  }) {
14353
- const r = n != null, [o, i] = W(0), [l, s] = W(null), [a, c] = W(null), u = (n == null ? void 0 : n.activeIndex) ?? o, d = t[u] ?? t[0], f = ((d == null ? void 0 : d.props.type) ?? "image") === "image", m = (w) => {
14354
- var L;
14355
- i(w), (L = n == null ? void 0 : n.onSelectImage) == null || L.call(n, w);
14353
+ const r = n != null, [o, i] = W(0), [l, s] = W(null), [a, c] = W(null), u = (n == null ? void 0 : n.activeIndex) ?? o, d = t[u] ?? t[0], f = ((d == null ? void 0 : d.props.type) ?? "image") === "image", m = (E) => {
14354
+ var R;
14355
+ i(E), (R = n == null ? void 0 : n.onSelectImage) == null || R.call(n, E);
14356
14356
  }, g = r && (n == null ? void 0 : n.onReorderImage) != null && t.length > 1, y = () => {
14357
14357
  s(null), c(null);
14358
- }, x = (w) => {
14359
- var L;
14360
- l != null && l !== w && ((L = n == null ? void 0 : n.onReorderImage) == null || L.call(n, l, w)), y();
14361
- }, v = r && ((n == null ? void 0 : n.canAddImage) ?? !0) && t.length >= 1 && t.length < Qc, C = r ? t.length >= 1 : t.length > 1, M = "aspect-[4/3] w-28 sm:w-26 lg:w-30";
14358
+ }, x = (E) => {
14359
+ var R;
14360
+ l != null && l !== E && ((R = n == null ? void 0 : n.onReorderImage) == null || R.call(n, l, E)), y();
14361
+ }, v = r && ((n == null ? void 0 : n.canAddImage) ?? !0) && t.length >= 1 && t.length < Qc, k = r ? t.length >= 1 : t.length > 1, T = "aspect-[4/3] w-28 sm:w-26 lg:w-30";
14362
14362
  return /* @__PURE__ */ z("div", { className: "grid grid-cols-1 gap-6 sm:grid-cols-2", children: [
14363
14363
  /* @__PURE__ */ b("div", { className: "min-w-0", children: d ? r ? /* @__PURE__ */ z("div", { className: "group relative", children: [
14364
14364
  pt(d, {
@@ -14371,8 +14371,8 @@ function Ag({
14371
14371
  {
14372
14372
  type: "button",
14373
14373
  onClick: () => {
14374
- var w;
14375
- return (w = n == null ? void 0 : n.onEditAnnotations) == null ? void 0 : w.call(n, u);
14374
+ var E;
14375
+ return (E = n == null ? void 0 : n.onEditAnnotations) == null ? void 0 : E.call(n, u);
14376
14376
  },
14377
14377
  className: "flex items-center gap-1.5 rounded-md bg-background/90 px-2.5 py-1.5 text-sm font-semibold text-foreground shadow transition hover:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
14378
14378
  children: [
@@ -14386,8 +14386,8 @@ function Ag({
14386
14386
  {
14387
14387
  type: "button",
14388
14388
  onClick: () => {
14389
- var w;
14390
- return (w = n == null ? void 0 : n.onEditCrop) == null ? void 0 : w.call(n, u);
14389
+ var E;
14390
+ return (E = n == null ? void 0 : n.onEditCrop) == null ? void 0 : E.call(n, u);
14391
14391
  },
14392
14392
  className: "flex items-center gap-1.5 rounded-md bg-background/90 px-2.5 py-1.5 text-sm font-semibold text-foreground shadow transition hover:bg-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent",
14393
14393
  children: [
@@ -14404,8 +14404,8 @@ function Ag({
14404
14404
  {
14405
14405
  type: "button",
14406
14406
  onClick: () => {
14407
- var w;
14408
- return (w = n == null ? void 0 : n.onAddImage) == null ? void 0 : w.call(n);
14407
+ var E;
14408
+ return (E = n == null ? void 0 : n.onAddImage) == null ? void 0 : E.call(n);
14409
14409
  },
14410
14410
  className: "flex aspect-[4/3] w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed border-default bg-default-soft text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none",
14411
14411
  children: [
@@ -14415,7 +14415,7 @@ function Ag({
14415
14415
  }
14416
14416
  ) }),
14417
14417
  /* @__PURE__ */ z("div", { className: "flex min-w-0 flex-col gap-4", children: [
14418
- (C || v) && /* @__PURE__ */ z(
14418
+ (k || v) && /* @__PURE__ */ z(
14419
14419
  "div",
14420
14420
  {
14421
14421
  className: "flex flex-wrap gap-2",
@@ -14423,24 +14423,24 @@ function Ag({
14423
14423
  "aria-label": "Step images",
14424
14424
  children: [
14425
14425
  t.map(
14426
- (w, L) => r ? /* @__PURE__ */ z(
14426
+ (E, R) => r ? /* @__PURE__ */ z(
14427
14427
  "div",
14428
14428
  {
14429
14429
  className: ne(
14430
14430
  "relative rounded-md transition-shadow",
14431
14431
  g && "cursor-grab",
14432
- l === L && "opacity-40",
14433
- a === L && l !== L && "ring-2 ring-accent ring-offset-2 ring-offset-background"
14432
+ l === R && "opacity-40",
14433
+ a === R && l !== R && "ring-2 ring-accent ring-offset-2 ring-offset-background"
14434
14434
  ),
14435
14435
  draggable: g || void 0,
14436
14436
  onDragStart: g ? (D) => {
14437
- D.dataTransfer.effectAllowed = "move", s(L);
14437
+ D.dataTransfer.effectAllowed = "move", s(R);
14438
14438
  } : void 0,
14439
14439
  onDragOver: g ? (D) => {
14440
- D.preventDefault(), D.dataTransfer.dropEffect = "move", c(L);
14440
+ D.preventDefault(), D.dataTransfer.dropEffect = "move", c(R);
14441
14441
  } : void 0,
14442
14442
  onDrop: g ? (D) => {
14443
- D.preventDefault(), x(L);
14443
+ D.preventDefault(), x(R);
14444
14444
  } : void 0,
14445
14445
  onDragEnd: g ? y : void 0,
14446
14446
  children: [
@@ -14450,12 +14450,12 @@ function Ag({
14450
14450
  type: "button",
14451
14451
  className: ne(
14452
14452
  "block overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",
14453
- L === u ? "border-accent shadow-md" : "border-default opacity-80 hover:opacity-100"
14453
+ R === u ? "border-accent shadow-md" : "border-default opacity-80 hover:opacity-100"
14454
14454
  ),
14455
- onClick: () => m(L),
14456
- "aria-label": `Image ${L + 1}`,
14457
- "aria-pressed": L === u,
14458
- children: Al(w, M)
14455
+ onClick: () => m(R),
14456
+ "aria-label": `Image ${R + 1}`,
14457
+ "aria-pressed": R === u,
14458
+ children: Al(E, T)
14459
14459
  }
14460
14460
  ),
14461
14461
  /* @__PURE__ */ b(
@@ -14464,31 +14464,31 @@ function Ag({
14464
14464
  type: "button",
14465
14465
  onClick: () => {
14466
14466
  var D;
14467
- return (D = n == null ? void 0 : n.onRemoveImage) == null ? void 0 : D.call(n, L);
14467
+ return (D = n == null ? void 0 : n.onRemoveImage) == null ? void 0 : D.call(n, R);
14468
14468
  },
14469
- "aria-label": `Remove image ${L + 1}`,
14469
+ "aria-label": `Remove image ${R + 1}`,
14470
14470
  className: "absolute -right-1.5 -top-1.5 flex size-5 items-center justify-center rounded-full bg-foreground text-background shadow transition hover:bg-danger focus-visible:bg-danger focus-visible:outline-none",
14471
14471
  children: /* @__PURE__ */ b(eu, {})
14472
14472
  }
14473
14473
  )
14474
14474
  ]
14475
14475
  },
14476
- w.key ?? w.props.src ?? L
14476
+ E.key ?? E.props.src ?? R
14477
14477
  ) : /* @__PURE__ */ b(
14478
14478
  "button",
14479
14479
  {
14480
14480
  type: "button",
14481
14481
  className: ne(
14482
14482
  "overflow-hidden rounded-md border-2 transition-[box-shadow,opacity,border-color]",
14483
- L === u ? "border-accent shadow-md" : "border-default opacity-80 hover:opacity-100"
14483
+ R === u ? "border-accent shadow-md" : "border-default opacity-80 hover:opacity-100"
14484
14484
  ),
14485
- onMouseEnter: () => m(L),
14486
- onFocus: () => m(L),
14487
- "aria-label": `Image ${L + 1}`,
14488
- "aria-pressed": L === u,
14489
- children: Al(w, M)
14485
+ onMouseEnter: () => m(R),
14486
+ onFocus: () => m(R),
14487
+ "aria-label": `Image ${R + 1}`,
14488
+ "aria-pressed": R === u,
14489
+ children: Al(E, T)
14490
14490
  },
14491
- w.key ?? w.props.src ?? L
14491
+ E.key ?? E.props.src ?? R
14492
14492
  )
14493
14493
  ),
14494
14494
  v && /* @__PURE__ */ b(
@@ -14496,11 +14496,11 @@ function Ag({
14496
14496
  {
14497
14497
  type: "button",
14498
14498
  onClick: () => {
14499
- var w;
14500
- return (w = n == null ? void 0 : n.onAddImage) == null ? void 0 : w.call(n);
14499
+ var E;
14500
+ return (E = n == null ? void 0 : n.onAddImage) == null ? void 0 : E.call(n);
14501
14501
  },
14502
14502
  "aria-label": "Add image",
14503
- className: ne(M, "flex items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none"),
14503
+ className: ne(T, "flex items-center justify-center rounded-md border-2 border-dashed border-default text-default-500 transition hover:border-accent hover:text-accent focus-visible:border-accent focus-visible:text-accent focus-visible:outline-none"),
14504
14504
  children: /* @__PURE__ */ b(
14505
14505
  "svg",
14506
14506
  {
@@ -14814,53 +14814,53 @@ function ty({
14814
14814
  activeStepMinVisibleRatio: c = 0.2,
14815
14815
  onActiveStepChange: u
14816
14816
  }) {
14817
- const d = A(null), h = A(!1), f = A(!1), m = A(null), g = A(a), y = A(null), x = X(
14818
- (w) => {
14817
+ const d = K(null), h = K(!1), f = K(!1), m = K(null), g = K(a), y = K(null), x = X(
14818
+ (E) => {
14819
14819
  if (typeof window > "u")
14820
14820
  return;
14821
- const L = Jg(window.location.href, w, i, l);
14822
- L !== window.location.href && window.history.replaceState(window.history.state, "", L);
14821
+ const R = Jg(window.location.href, E, i, l);
14822
+ R !== window.location.href && window.history.replaceState(window.history.state, "", R);
14823
14823
  },
14824
14824
  [i, l]
14825
14825
  ), v = X(
14826
- (w, { updateUrl: L }) => {
14827
- d.current !== w && (d.current = w, L && x(w), u == null || u(w));
14826
+ (E, { updateUrl: R }) => {
14827
+ d.current !== E && (d.current = E, R && x(E), u == null || u(E));
14828
14828
  },
14829
14829
  [u, x]
14830
- ), C = X(
14831
- (w) => {
14830
+ ), k = X(
14831
+ (E) => {
14832
14832
  if (typeof window > "u")
14833
14833
  return;
14834
- const L = w != null ? Dn(w) : (n == null ? void 0 : n.current) ?? e.current;
14835
- if (L == null)
14834
+ const R = E != null ? Dn(E) : (n == null ? void 0 : n.current) ?? e.current;
14835
+ if (R == null)
14836
14836
  return;
14837
- const D = w != null ? s : a;
14838
- h.current = !0, m.current != null && clearTimeout(m.current), ey(L, D), v(w, { updateUrl: !1 }), m.current = setTimeout(() => {
14837
+ const D = E != null ? s : a;
14838
+ h.current = !0, m.current != null && clearTimeout(m.current), ey(R, D), v(E, { updateUrl: !1 }), m.current = setTimeout(() => {
14839
14839
  var I;
14840
14840
  h.current = !1, m.current = null, (I = y.current) == null || I.call(y);
14841
14841
  }, Qg);
14842
14842
  },
14843
14843
  [n, a, e, s, v]
14844
- ), M = X(() => {
14844
+ ), T = X(() => {
14845
14845
  if (typeof window > "u")
14846
14846
  return;
14847
- const w = Or(window.location, i, l);
14848
- C(w);
14849
- }, [i, C, l]);
14847
+ const E = Or(window.location, i, l);
14848
+ k(E);
14849
+ }, [i, k, l]);
14850
14850
  Y(() => {
14851
14851
  if (!t || typeof window > "u" || f.current)
14852
14852
  return;
14853
- const w = Or(
14853
+ const E = Or(
14854
14854
  window.location,
14855
14855
  i,
14856
14856
  l
14857
14857
  );
14858
- e.current != null && (w == null || o.includes(w) || o.length > 0) && (w != null && Dn(w) == null || (f.current = !0, M()));
14858
+ e.current != null && (E == null || o.includes(E) || o.length > 0) && (E != null && Dn(E) == null || (f.current = !0, T()));
14859
14859
  }, [
14860
14860
  t,
14861
14861
  i,
14862
14862
  e,
14863
- M,
14863
+ T,
14864
14864
  o.join(","),
14865
14865
  l
14866
14866
  ]), Y(() => {
@@ -14868,56 +14868,56 @@ function ty({
14868
14868
  window.location,
14869
14869
  i,
14870
14870
  l
14871
- ) != null || h.current) || C(null);
14872
- }, [t, i, a, C, l]), Y(() => {
14871
+ ) != null || h.current) || k(null);
14872
+ }, [t, i, a, k, l]), Y(() => {
14873
14873
  if (!t || typeof window > "u")
14874
14874
  return;
14875
- const w = () => {
14876
- M();
14875
+ const E = () => {
14876
+ T();
14877
14877
  };
14878
- return window.addEventListener("hashchange", w), window.addEventListener("popstate", w), () => {
14879
- var L;
14880
- window.removeEventListener("hashchange", w), window.removeEventListener("popstate", w), m.current != null && (clearTimeout(m.current), m.current = null, h.current = !1, (L = y.current) == null || L.call(y));
14878
+ return window.addEventListener("hashchange", E), window.addEventListener("popstate", E), () => {
14879
+ var R;
14880
+ window.removeEventListener("hashchange", E), window.removeEventListener("popstate", E), m.current != null && (clearTimeout(m.current), m.current = null, h.current = !1, (R = y.current) == null || R.call(y));
14881
14881
  };
14882
- }, [t, M]), Y(() => {
14882
+ }, [t, T]), Y(() => {
14883
14883
  if (!t || typeof window > "u" || o.length === 0)
14884
14884
  return;
14885
- const w = () => {
14886
- var p, E;
14885
+ const E = () => {
14886
+ var p, w;
14887
14887
  if (h.current)
14888
14888
  return;
14889
- const S = ((p = n == null ? void 0 : n.current) == null ? void 0 : p.getBoundingClientRect()) ?? null, O = ((E = r == null ? void 0 : r.current) == null ? void 0 : E.getBoundingClientRect()) ?? null, G = Ug(S, O), B = Yg({
14889
+ const P = ((p = n == null ? void 0 : n.current) == null ? void 0 : p.getBoundingClientRect()) ?? null, O = ((w = r == null ? void 0 : r.current) == null ? void 0 : w.getBoundingClientRect()) ?? null, G = Ug(P, O), B = Yg({
14890
14890
  overviewRect: G,
14891
14891
  overviewContentInsetTop: a,
14892
14892
  stepNumbers: o,
14893
- getStepRect: (R) => {
14894
- var P;
14895
- return ((P = Dn(R)) == null ? void 0 : P.getBoundingClientRect()) ?? null;
14893
+ getStepRect: (L) => {
14894
+ var S;
14895
+ return ((S = Dn(L)) == null ? void 0 : S.getBoundingClientRect()) ?? null;
14896
14896
  },
14897
14897
  activeStepMinVisibleRatio: c,
14898
14898
  stepContentInsetTop: s,
14899
14899
  atPageBottom: qg()
14900
14900
  });
14901
14901
  v(B, { updateUrl: !0 });
14902
- }, L = new IntersectionObserver(w, {
14902
+ }, R = new IntersectionObserver(E, {
14903
14903
  root: null,
14904
14904
  rootMargin: `-${s}px 0px 0px 0px`,
14905
14905
  threshold: [0, 0.05, 0.1, 0.2, 0.25, 0.5, 0.75, 0.8, 0.9, 1]
14906
14906
  }), D = [
14907
14907
  n == null ? void 0 : n.current,
14908
14908
  r == null ? void 0 : r.current,
14909
- ...o.map((S) => Dn(S))
14909
+ ...o.map((P) => Dn(P))
14910
14910
  ];
14911
- for (const S of D)
14912
- S != null && L.observe(S);
14911
+ for (const P of D)
14912
+ P != null && R.observe(P);
14913
14913
  let I = 0;
14914
- const K = () => {
14914
+ const F = () => {
14915
14915
  I === 0 && (I = window.requestAnimationFrame(() => {
14916
- I = 0, w();
14916
+ I = 0, E();
14917
14917
  }));
14918
14918
  };
14919
- return y.current = w, w(), window.addEventListener("scroll", K, { passive: !0 }), () => {
14920
- y.current = null, window.removeEventListener("scroll", K), I !== 0 && window.cancelAnimationFrame(I), L.disconnect();
14919
+ return y.current = E, E(), window.addEventListener("scroll", F, { passive: !0 }), () => {
14920
+ y.current = null, window.removeEventListener("scroll", F), I !== 0 && window.cancelAnimationFrame(I), R.disconnect();
14921
14921
  };
14922
14922
  }, [
14923
14923
  c,
@@ -14943,81 +14943,90 @@ function my({
14943
14943
  onActiveStepChange: l,
14944
14944
  scrollMarginTop: s = 0,
14945
14945
  activeStepMinVisibleRatio: a = 0.2,
14946
- className: c
14946
+ completedSteps: c,
14947
+ onCompletedStepsChange: u,
14948
+ className: d
14947
14949
  }) {
14948
- const u = Nt.toArray(t).filter(ny), d = u.length, h = A(null), { ref: f, size: m } = jc({
14950
+ const h = Nt.toArray(t).filter(ny), f = h.length, m = K(null), { ref: g, size: y } = jc({
14949
14951
  settleMs: e ? 250 : 0,
14950
14952
  layoutSettleKey: e
14951
- }), g = Fg(), y = _g(), x = au(), v = J(
14953
+ }), x = Fg(), v = _g(), k = au(), T = J(
14952
14954
  () => jo({
14953
- parentScrollMarginTop: g,
14955
+ parentScrollMarginTop: x,
14954
14956
  additionalParentScrollMarginTop: s
14955
14957
  }),
14956
- [s, g]
14957
- ), C = J(
14958
+ [s, x]
14959
+ ), E = J(
14958
14960
  () => Hg({
14959
- parentScrollMarginTop: g,
14961
+ parentScrollMarginTop: x,
14960
14962
  additionalParentScrollMarginTop: s,
14961
- progressBarHeight: (m == null ? void 0 : m.height) ?? 0,
14962
- includeProgressBar: e && d > 0
14963
+ progressBarHeight: (y == null ? void 0 : y.height) ?? 0,
14964
+ includeProgressBar: e && f > 0
14963
14965
  }),
14964
14966
  [
14965
14967
  s,
14966
- g,
14967
- m == null ? void 0 : m.height,
14968
+ x,
14969
+ y == null ? void 0 : y.height,
14968
14970
  e,
14969
- d
14971
+ f
14970
14972
  ]
14971
- ), M = v;
14973
+ ), R = T;
14972
14974
  vo(() => {
14973
- const K = y == null ? void 0 : y.current;
14974
- K != null && (K.style.scrollMarginTop = `${v}px`);
14975
- }, [y, v]);
14976
- const w = u.map(
14977
- (K, S) => K.props.number ?? S + 1
14978
- ), [L, D] = W(
14975
+ const p = v == null ? void 0 : v.current;
14976
+ p != null && (p.style.scrollMarginTop = `${T}px`);
14977
+ }, [v, T]);
14978
+ const D = h.map(
14979
+ (p, w) => p.props.number ?? w + 1
14980
+ ), [I, F] = W(
14979
14981
  () => Object.fromEntries(
14980
- u.map((K, S) => [
14981
- K.props.number ?? S + 1,
14982
- !!(K.props.defaultCompleted ?? K.props.isCompleted)
14982
+ h.map((p, w) => [
14983
+ p.props.number ?? w + 1,
14984
+ !!(p.props.defaultCompleted ?? p.props.isCompleted)
14983
14985
  ])
14984
14986
  )
14985
- ), I = Object.values(L).filter(Boolean).length;
14987
+ ), P = c != null, O = P ? c : I, G = (p, w) => {
14988
+ const L = { ...O, [p]: w };
14989
+ if (P) {
14990
+ u == null || u(L);
14991
+ return;
14992
+ }
14993
+ F(L);
14994
+ }, B = Object.values(O).filter(Boolean).length;
14986
14995
  return Y(() => {
14987
- n == null || n({ completed: I, total: d });
14988
- }, [I, d, n]), ty({
14996
+ n == null || n({ completed: B, total: f });
14997
+ }, [B, f, n]), ty({
14989
14998
  enabled: r,
14990
- rootRef: h,
14991
- guideTopRef: y,
14992
- guideContentRef: x,
14993
- stepNumbers: w,
14999
+ rootRef: m,
15000
+ guideTopRef: v,
15001
+ guideContentRef: k,
15002
+ stepNumbers: D,
14994
15003
  mode: o,
14995
15004
  stepUrlKey: i,
14996
- scrollMarginTop: C,
14997
- overviewScrollMarginTop: v,
15005
+ scrollMarginTop: E,
15006
+ overviewScrollMarginTop: T,
14998
15007
  activeStepMinVisibleRatio: a,
14999
15008
  onActiveStepChange: l
15000
- }), /* @__PURE__ */ z("div", { ref: h, className: ne("flex flex-col gap-8", c), children: [
15001
- e && d > 0 && /* @__PURE__ */ b(
15009
+ }), /* @__PURE__ */ z("div", { ref: m, className: ne("flex flex-col gap-8", d), children: [
15010
+ e && f > 0 && /* @__PURE__ */ b(
15002
15011
  "div",
15003
15012
  {
15004
- ref: f,
15013
+ ref: g,
15005
15014
  className: "sticky z-10 mx-2",
15006
- style: { top: M },
15015
+ style: { top: R },
15007
15016
  children: /* @__PURE__ */ b(Xt, { className: "w-full px-6 py-4", children: /* @__PURE__ */ z(
15008
15017
  Mn,
15009
15018
  {
15010
- value: I,
15011
- maxValue: d,
15019
+ value: B,
15020
+ maxValue: f,
15012
15021
  "aria-label": "Guide progress",
15013
15022
  className: "flex flex-col gap-1.5",
15014
15023
  children: [
15015
15024
  /* @__PURE__ */ z("div", { className: "flex items-center justify-between text-sm text-default-500", children: [
15016
15025
  /* @__PURE__ */ b("span", { children: "Guide Progress" }),
15017
15026
  /* @__PURE__ */ z(Mn.Output, { children: [
15018
- I,
15027
+ B,
15019
15028
  " / ",
15020
- d,
15029
+ f,
15021
15030
  " steps"
15022
15031
  ] })
15023
15032
  ] }),
@@ -15027,21 +15036,21 @@ function my({
15027
15036
  ) })
15028
15037
  }
15029
15038
  ),
15030
- /* @__PURE__ */ b("ol", { className: "flex flex-col", children: u.map((K, S) => {
15031
- const O = K.props.number ?? S + 1, G = r ? Yo(O) : K.props.id;
15039
+ /* @__PURE__ */ b("ol", { className: "flex flex-col", children: h.map((p, w) => {
15040
+ const L = p.props.number ?? w + 1, S = r ? Yo(L) : p.props.id;
15032
15041
  return /* @__PURE__ */ z("li", { children: [
15033
- pt(K, {
15034
- number: O,
15035
- id: K.props.id ?? G,
15036
- scrollMarginTop: r ? C : void 0,
15037
- isCompleted: L[O] ?? !1,
15038
- onCompletedChange: (B) => {
15039
- var p, E;
15040
- D((R) => ({ ...R, [O]: B })), (E = (p = K.props).onCompletedChange) == null || E.call(p, B);
15042
+ pt(p, {
15043
+ number: L,
15044
+ id: p.props.id ?? S,
15045
+ scrollMarginTop: r ? E : void 0,
15046
+ isCompleted: O[L] ?? !1,
15047
+ onCompletedChange: (N) => {
15048
+ var $, C;
15049
+ G(L, N), (C = ($ = p.props).onCompletedChange) == null || C.call($, N);
15041
15050
  }
15042
15051
  }),
15043
- S < u.length - 1 && /* @__PURE__ */ b(om, { className: "my-8" })
15044
- ] }, K.key ?? O);
15052
+ w < h.length - 1 && /* @__PURE__ */ b(om, { className: "my-8" })
15053
+ ] }, p.key ?? L);
15045
15054
  }) })
15046
15055
  ] });
15047
15056
  }
@@ -15115,7 +15124,7 @@ const gy = Object.assign(
15115
15124
  scrollMarginTop: n = 0,
15116
15125
  className: r
15117
15126
  }) {
15118
- const o = A(null), i = A(null), l = J(
15127
+ const o = K(null), i = K(null), l = J(
15119
15128
  () => jo({
15120
15129
  parentScrollMarginTop: n
15121
15130
  }),