@gouvfr-lasuite/ui-kit 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as x from "react";
2
- import j, { useRef as V, useCallback as Z, useState as oe, useContext as ae, useEffect as J, createContext as ce, useMemo as X, cloneElement as Co, forwardRef as ft, useId as sh, Fragment as uh, Children as ch, memo as da, createElement as _i, PureComponent as dh, isValidElement as fh, useLayoutEffect as xu, useImperativeHandle as hh } from "react";
2
+ import F, { useRef as G, useCallback as Q, useState as ae, useContext as le, useEffect as Z, createContext as ce, useMemo as X, cloneElement as Co, forwardRef as ft, useId as sh, Fragment as uh, Children as ch, memo as da, createElement as _i, PureComponent as dh, isValidElement as fh, useLayoutEffect as xu, useImperativeHandle as hh } from "react";
3
3
  import { CunninghamProvider as ph, Button as fa, useCunningham as Tu } from "@openfun/cunningham-react";
4
4
  import * as gh from "react-dom";
5
5
  import Cu, { flushSync as Du, createPortal as Pu } from "react-dom";
@@ -65,7 +65,7 @@ function yh() {
65
65
  return "Profiler";
66
66
  case D:
67
67
  return "StrictMode";
68
- case H:
68
+ case z:
69
69
  return "Suspense";
70
70
  case w:
71
71
  return "SuspenseList";
@@ -78,12 +78,12 @@ function yh() {
78
78
  return (E.displayName || "Context") + ".Provider";
79
79
  case _:
80
80
  return (E._context.displayName || "Context") + ".Consumer";
81
- case k:
81
+ case N:
82
82
  var q = E.render;
83
83
  return E = E.displayName, E || (E = q.displayName || q.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
84
84
  case O:
85
85
  return q = E.displayName || null, q !== null ? q : t(E.type) || "Memo";
86
- case z:
86
+ case j:
87
87
  q = E._payload, E = E._init;
88
88
  try {
89
89
  return t(E(q));
@@ -115,8 +115,8 @@ function yh() {
115
115
  function r() {
116
116
  }
117
117
  function i() {
118
- if (L === 0) {
119
- M = console.log, W = console.info, U = console.warn, K = console.error, Q = console.group, ie = console.groupCollapsed, ye = console.groupEnd;
118
+ if (K === 0) {
119
+ M = console.log, W = console.info, U = console.warn, L = console.error, ee = console.group, oe = console.groupCollapsed, ye = console.groupEnd;
120
120
  var E = {
121
121
  configurable: !0,
122
122
  enumerable: !0,
@@ -133,22 +133,22 @@ function yh() {
133
133
  groupEnd: E
134
134
  });
135
135
  }
136
- L++;
136
+ K++;
137
137
  }
138
138
  function o() {
139
- if (L--, L === 0) {
139
+ if (K--, K === 0) {
140
140
  var E = { configurable: !0, enumerable: !0, writable: !0 };
141
141
  Object.defineProperties(console, {
142
- log: ue({}, E, { value: M }),
143
- info: ue({}, E, { value: W }),
144
- warn: ue({}, E, { value: U }),
145
- error: ue({}, E, { value: K }),
146
- group: ue({}, E, { value: Q }),
147
- groupCollapsed: ue({}, E, { value: ie }),
148
- groupEnd: ue({}, E, { value: ye })
142
+ log: ne({}, E, { value: M }),
143
+ info: ne({}, E, { value: W }),
144
+ warn: ne({}, E, { value: U }),
145
+ error: ne({}, E, { value: L }),
146
+ group: ne({}, E, { value: ee }),
147
+ groupCollapsed: ne({}, E, { value: oe }),
148
+ groupEnd: ne({}, E, { value: ye })
149
149
  });
150
150
  }
151
- 0 > L && console.error(
151
+ 0 > K && console.error(
152
152
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
153
153
  );
154
154
  }
@@ -166,11 +166,11 @@ function yh() {
166
166
  }
167
167
  function l(E, q) {
168
168
  if (!E || Ee) return "";
169
- var Y = se.get(E);
169
+ var Y = ue.get(E);
170
170
  if (Y !== void 0) return Y;
171
171
  Ee = !0, Y = Error.prepareStackTrace, Error.prepareStackTrace = void 0;
172
172
  var de = null;
173
- de = G.H, G.H = null, i();
173
+ de = H.H, H.H = null, i();
174
174
  try {
175
175
  var De = {
176
176
  DetermineComponentFrameRoot: function() {
@@ -224,42 +224,42 @@ function yh() {
224
224
  "name",
225
225
  { value: "DetermineComponentFrameRoot" }
226
226
  );
227
- var ne = De.DetermineComponentFrameRoot(), rt = ne[0], Yt = ne[1];
227
+ var re = De.DetermineComponentFrameRoot(), rt = re[0], Yt = re[1];
228
228
  if (rt && Yt) {
229
229
  var Ie = rt.split(`
230
230
  `), Ct = Yt.split(`
231
231
  `);
232
- for (ne = pe = 0; pe < Ie.length && !Ie[pe].includes(
232
+ for (re = pe = 0; pe < Ie.length && !Ie[pe].includes(
233
233
  "DetermineComponentFrameRoot"
234
234
  ); )
235
235
  pe++;
236
- for (; ne < Ct.length && !Ct[ne].includes(
236
+ for (; re < Ct.length && !Ct[re].includes(
237
237
  "DetermineComponentFrameRoot"
238
238
  ); )
239
- ne++;
240
- if (pe === Ie.length || ne === Ct.length)
241
- for (pe = Ie.length - 1, ne = Ct.length - 1; 1 <= pe && 0 <= ne && Ie[pe] !== Ct[ne]; )
242
- ne--;
243
- for (; 1 <= pe && 0 <= ne; pe--, ne--)
244
- if (Ie[pe] !== Ct[ne]) {
245
- if (pe !== 1 || ne !== 1)
239
+ re++;
240
+ if (pe === Ie.length || re === Ct.length)
241
+ for (pe = Ie.length - 1, re = Ct.length - 1; 1 <= pe && 0 <= re && Ie[pe] !== Ct[re]; )
242
+ re--;
243
+ for (; 1 <= pe && 0 <= re; pe--, re--)
244
+ if (Ie[pe] !== Ct[re]) {
245
+ if (pe !== 1 || re !== 1)
246
246
  do
247
- if (pe--, ne--, 0 > ne || Ie[pe] !== Ct[ne]) {
247
+ if (pe--, re--, 0 > re || Ie[pe] !== Ct[re]) {
248
248
  var Nn = `
249
249
  ` + Ie[pe].replace(
250
250
  " at new ",
251
251
  " at "
252
252
  );
253
- return E.displayName && Nn.includes("<anonymous>") && (Nn = Nn.replace("<anonymous>", E.displayName)), typeof E == "function" && se.set(E, Nn), Nn;
253
+ return E.displayName && Nn.includes("<anonymous>") && (Nn = Nn.replace("<anonymous>", E.displayName)), typeof E == "function" && ue.set(E, Nn), Nn;
254
254
  }
255
- while (1 <= pe && 0 <= ne);
255
+ while (1 <= pe && 0 <= re);
256
256
  break;
257
257
  }
258
258
  }
259
259
  } finally {
260
- Ee = !1, G.H = de, o(), Error.prepareStackTrace = Y;
260
+ Ee = !1, H.H = de, o(), Error.prepareStackTrace = Y;
261
261
  }
262
- return Ie = (Ie = E ? E.displayName || E.name : "") ? a(Ie) : "", typeof E == "function" && se.set(E, Ie), Ie;
262
+ return Ie = (Ie = E ? E.displayName || E.name : "") ? a(Ie) : "", typeof E == "function" && ue.set(E, Ie), Ie;
263
263
  }
264
264
  function s(E) {
265
265
  if (E == null) return "";
@@ -272,18 +272,18 @@ function yh() {
272
272
  }
273
273
  if (typeof E == "string") return a(E);
274
274
  switch (E) {
275
- case H:
275
+ case z:
276
276
  return a("Suspense");
277
277
  case w:
278
278
  return a("SuspenseList");
279
279
  }
280
280
  if (typeof E == "object")
281
281
  switch (E.$$typeof) {
282
- case k:
282
+ case N:
283
283
  return E = l(E.render, !1), E;
284
284
  case O:
285
285
  return s(E.type);
286
- case z:
286
+ case j:
287
287
  q = E._payload, E = E._init;
288
288
  try {
289
289
  return s(E(q));
@@ -293,11 +293,11 @@ function yh() {
293
293
  return "";
294
294
  }
295
295
  function u() {
296
- var E = G.A;
296
+ var E = H.A;
297
297
  return E === null ? null : E.getOwner();
298
298
  }
299
299
  function c(E) {
300
- if (te.call(E, "key")) {
300
+ if (J.call(E, "key")) {
301
301
  var q = Object.getOwnPropertyDescriptor(E, "key").get;
302
302
  if (q && q.isReactWarning) return !1;
303
303
  }
@@ -344,31 +344,31 @@ function yh() {
344
344
  }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
345
345
  }
346
346
  function m(E, q, Y, de, De, pe) {
347
- if (typeof E == "string" || typeof E == "function" || E === C || E === y || E === D || E === H || E === w || E === R || typeof E == "object" && E !== null && (E.$$typeof === z || E.$$typeof === O || E.$$typeof === B || E.$$typeof === _ || E.$$typeof === k || E.$$typeof === A || E.getModuleId !== void 0)) {
348
- var ne = q.children;
349
- if (ne !== void 0)
347
+ if (typeof E == "string" || typeof E == "function" || E === C || E === y || E === D || E === z || E === w || E === V || typeof E == "object" && E !== null && (E.$$typeof === j || E.$$typeof === O || E.$$typeof === B || E.$$typeof === _ || E.$$typeof === N || E.$$typeof === R || E.getModuleId !== void 0)) {
348
+ var re = q.children;
349
+ if (re !== void 0)
350
350
  if (de)
351
- if (N(ne)) {
352
- for (de = 0; de < ne.length; de++)
353
- d(ne[de], E);
354
- Object.freeze && Object.freeze(ne);
351
+ if (k(re)) {
352
+ for (de = 0; de < re.length; de++)
353
+ d(re[de], E);
354
+ Object.freeze && Object.freeze(re);
355
355
  } else
356
356
  console.error(
357
357
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
358
358
  );
359
- else d(ne, E);
359
+ else d(re, E);
360
360
  } else
361
- ne = "", (E === void 0 || typeof E == "object" && E !== null && Object.keys(E).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), E === null ? de = "null" : N(E) ? de = "array" : E !== void 0 && E.$$typeof === P ? (de = "<" + (t(E.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : de = typeof E, console.error(
361
+ re = "", (E === void 0 || typeof E == "object" && E !== null && Object.keys(E).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), E === null ? de = "null" : k(E) ? de = "array" : E !== void 0 && E.$$typeof === P ? (de = "<" + (t(E.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : de = typeof E, console.error(
362
362
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
363
363
  de,
364
- ne
364
+ re
365
365
  );
366
- if (te.call(q, "key")) {
367
- ne = t(E);
366
+ if (J.call(q, "key")) {
367
+ re = t(E);
368
368
  var rt = Object.keys(q).filter(function(Ie) {
369
369
  return Ie !== "key";
370
370
  });
371
- de = 0 < rt.length ? "{key: someKey, " + rt.join(": ..., ") + ": ...}" : "{key: someKey}", kn[ne + de] || (rt = 0 < rt.length ? "{" + rt.join(": ..., ") + ": ...}" : "{}", console.error(
371
+ de = 0 < rt.length ? "{key: someKey, " + rt.join(": ..., ") + ": ...}" : "{key: someKey}", kn[re + de] || (rt = 0 < rt.length ? "{" + rt.join(": ..., ") + ": ...}" : "{}", console.error(
372
372
  `A props object containing a "key" prop is being spread into JSX:
373
373
  let props = %s;
374
374
  <%s {...props} />
@@ -376,31 +376,31 @@ React keys must be passed directly to JSX without using spread:
376
376
  let props = %s;
377
377
  <%s key={someKey} {...props} />`,
378
378
  de,
379
- ne,
379
+ re,
380
380
  rt,
381
- ne
382
- ), kn[ne + de] = !0);
381
+ re
382
+ ), kn[re + de] = !0);
383
383
  }
384
- if (ne = null, Y !== void 0 && (n(Y), ne = "" + Y), c(q) && (n(q.key), ne = "" + q.key), "key" in q) {
384
+ if (re = null, Y !== void 0 && (n(Y), re = "" + Y), c(q) && (n(q.key), re = "" + q.key), "key" in q) {
385
385
  Y = {};
386
386
  for (var Yt in q)
387
387
  Yt !== "key" && (Y[Yt] = q[Yt]);
388
388
  } else Y = q;
389
- return ne && h(
389
+ return re && h(
390
390
  Y,
391
391
  typeof E == "function" ? E.displayName || E.name || "Unknown" : E
392
- ), f(E, ne, pe, De, u(), Y);
392
+ ), f(E, re, pe, De, u(), Y);
393
393
  }
394
394
  function d(E, q) {
395
395
  if (typeof E == "object" && E && E.$$typeof !== Ze) {
396
- if (N(E))
396
+ if (k(E))
397
397
  for (var Y = 0; Y < E.length; Y++) {
398
398
  var de = E[Y];
399
399
  g(de) && v(de, q);
400
400
  }
401
401
  else if (g(E))
402
402
  E._store && (E._store.validated = 1);
403
- else if (E === null || typeof E != "object" ? Y = null : (Y = F && E[F] || E["@@iterator"], Y = typeof Y == "function" ? Y : null), typeof Y == "function" && Y !== E.entries && (Y = Y.call(E), Y !== E))
403
+ else if (E === null || typeof E != "object" ? Y = null : (Y = A && E[A] || E["@@iterator"], Y = typeof Y == "function" ? Y : null), typeof Y == "function" && Y !== E.entries && (Y = Y.call(E), Y !== E))
404
404
  for (; !(E = Y.next()).done; )
405
405
  g(E.value) && v(E.value, q);
406
406
  }
@@ -413,15 +413,15 @@ React keys must be passed directly to JSX without using spread:
413
413
  fr[q] = !0;
414
414
  var Y = "";
415
415
  E && E._owner != null && E._owner !== u() && (Y = null, typeof E._owner.tag == "number" ? Y = t(E._owner.type) : typeof E._owner.name == "string" && (Y = E._owner.name), Y = " It was passed a child from " + Y + ".");
416
- var de = G.getCurrentStack;
417
- G.getCurrentStack = function() {
416
+ var de = H.getCurrentStack;
417
+ H.getCurrentStack = function() {
418
418
  var De = s(E.type);
419
419
  return de && (De += de() || ""), De;
420
420
  }, console.error(
421
421
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
422
422
  q,
423
423
  Y
424
- ), G.getCurrentStack = de;
424
+ ), H.getCurrentStack = de;
425
425
  }
426
426
  }
427
427
  function b(E) {
@@ -432,9 +432,9 @@ Check the render method of \`` + Y + "`."), q || (E = t(E)) && (q = `
432
432
 
433
433
  Check the top-level render call using <` + E + ">."), q;
434
434
  }
435
- var S = j, P = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), B = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), z = Symbol.for("react.lazy"), R = Symbol.for("react.offscreen"), F = Symbol.iterator, I = Symbol.for("react.client.reference"), G = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, te = Object.prototype.hasOwnProperty, ue = Object.assign, A = Symbol.for("react.client.reference"), N = Array.isArray, L = 0, M, W, U, K, Q, ie, ye;
435
+ var S = F, P = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), C = Symbol.for("react.fragment"), D = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), B = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), j = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), A = Symbol.iterator, I = Symbol.for("react.client.reference"), H = S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, J = Object.prototype.hasOwnProperty, ne = Object.assign, R = Symbol.for("react.client.reference"), k = Array.isArray, K = 0, M, W, U, L, ee, oe, ye;
436
436
  r.__reactDisabledLog = !0;
437
- var me, fe, Ee = !1, se = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ze = Symbol.for("react.client.reference"), pt, $e = {}, kn = {}, fr = {};
437
+ var me, fe, Ee = !1, ue = new (typeof WeakMap == "function" ? WeakMap : Map)(), Ze = Symbol.for("react.client.reference"), pt, $e = {}, kn = {}, fr = {};
438
438
  An.Fragment = C, An.jsx = function(E, q, Y, de, De) {
439
439
  return m(E, q, Y, !1, de, De);
440
440
  }, An.jsxs = function(E, q, Y, de, De) {
@@ -482,21 +482,21 @@ const Rx = (t) => {
482
482
  className: "pro-connect-button",
483
483
  onClick: e
484
484
  }
485
- ), we = typeof document < "u" ? j.useLayoutEffect : () => {
485
+ ), we = typeof document < "u" ? F.useLayoutEffect : () => {
486
486
  };
487
487
  function Re(t) {
488
- const e = V(null);
488
+ const e = G(null);
489
489
  return we(() => {
490
490
  e.current = t;
491
491
  }, [
492
492
  t
493
- ]), Z((...n) => {
493
+ ]), Q((...n) => {
494
494
  const r = e.current;
495
495
  return r == null ? void 0 : r(...n);
496
496
  }, []);
497
497
  }
498
498
  function Dh(t) {
499
- let [e, n] = oe(t), r = V(null), i = Re(() => {
499
+ let [e, n] = ae(t), r = G(null), i = Re(() => {
500
500
  if (!r.current) return;
501
501
  let a = r.current.next();
502
502
  if (a.done) {
@@ -519,13 +519,13 @@ function Dh(t) {
519
519
  const Yr = {
520
520
  prefix: String(Math.round(Math.random() * 1e10)),
521
521
  current: 0
522
- }, Ou = /* @__PURE__ */ j.createContext(Yr), Ph = /* @__PURE__ */ j.createContext(!1);
522
+ }, Ou = /* @__PURE__ */ F.createContext(Yr), Ph = /* @__PURE__ */ F.createContext(!1);
523
523
  let Oh = !!(typeof window < "u" && window.document && window.document.createElement), Ni = /* @__PURE__ */ new WeakMap();
524
524
  function Ih(t = !1) {
525
- let e = ae(Ou), n = V(null);
525
+ let e = le(Ou), n = G(null);
526
526
  if (n.current === null && !t) {
527
527
  var r, i;
528
- let o = (i = j.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || i === void 0 || (r = i.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
528
+ let o = (i = F.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || i === void 0 || (r = i.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
529
529
  if (o) {
530
530
  let a = Ni.get(o);
531
531
  a == null ? Ni.set(o, {
@@ -538,16 +538,16 @@ function Ih(t = !1) {
538
538
  return n.current;
539
539
  }
540
540
  function _h(t) {
541
- let e = ae(Ou);
541
+ let e = le(Ou);
542
542
  e === Yr && !Oh && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
543
543
  let n = Ih(!!t), r = e === Yr && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
544
544
  return t || `${r}-${n}`;
545
545
  }
546
546
  function kh(t) {
547
- let e = j.useId(), [n] = oe(Pn()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Yr.prefix}`;
547
+ let e = F.useId(), [n] = ae(Pn()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${Yr.prefix}`;
548
548
  return t || `${r}-${e}`;
549
549
  }
550
- const Nh = typeof j.useId == "function" ? kh : _h;
550
+ const Nh = typeof F.useId == "function" ? kh : _h;
551
551
  function Rh() {
552
552
  return !1;
553
553
  }
@@ -559,11 +559,11 @@ function Mh(t) {
559
559
  };
560
560
  }
561
561
  function Pn() {
562
- return typeof j.useSyncExternalStore == "function" ? j.useSyncExternalStore(Mh, Rh, Ah) : ae(Ph);
562
+ return typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore(Mh, Rh, Ah) : le(Ph);
563
563
  }
564
564
  let Kh = !!(typeof window < "u" && window.document && window.document.createElement), bt = /* @__PURE__ */ new Map();
565
565
  function ar(t) {
566
- let [e, n] = oe(t), r = V(null), i = Nh(e), o = Z((a) => {
566
+ let [e, n] = ae(t), r = G(null), i = Nh(e), o = Q((a) => {
567
567
  r.current = a;
568
568
  }, []);
569
569
  return Kh && (bt.has(i) && !bt.get(i).includes(o) ? bt.set(i, [
@@ -578,7 +578,7 @@ function ar(t) {
578
578
  };
579
579
  }, [
580
580
  i
581
- ]), J(() => {
581
+ ]), Z(() => {
582
582
  let a = r.current;
583
583
  a && (r.current = null, n(a));
584
584
  }), i;
@@ -592,7 +592,7 @@ function Lh(t, e) {
592
592
  return r ? (r.forEach((i) => i(t)), t) : e;
593
593
  }
594
594
  function Ri(t = []) {
595
- let e = ar(), [n, r] = Dh(e), i = Z(() => {
595
+ let e = ar(), [n, r] = Dh(e), i = Q(() => {
596
596
  r(function* () {
597
597
  yield e, yield document.getElementById(e) ? e : void 0;
598
598
  });
@@ -750,7 +750,7 @@ const Mt = ht(function() {
750
750
  useHref: (t) => t
751
751
  });
752
752
  function pi() {
753
- return ae(Xh);
753
+ return le(Xh);
754
754
  }
755
755
  function Kt(t, e, n = !0) {
756
756
  var r, i;
@@ -825,7 +825,7 @@ function Qh(t) {
825
825
  });
826
826
  }
827
827
  function Mu() {
828
- let t = V(/* @__PURE__ */ new Map()), e = Z((i, o, a, l) => {
828
+ let t = G(/* @__PURE__ */ new Map()), e = Q((i, o, a, l) => {
829
829
  let s = l != null && l.once ? (...u) => {
830
830
  t.current.delete(a), a(...u);
831
831
  } : a;
@@ -835,18 +835,18 @@ function Mu() {
835
835
  fn: s,
836
836
  options: l
837
837
  }), i.addEventListener(o, s, l);
838
- }, []), n = Z((i, o, a, l) => {
838
+ }, []), n = Q((i, o, a, l) => {
839
839
  var s;
840
840
  let u = ((s = t.current.get(a)) === null || s === void 0 ? void 0 : s.fn) || a;
841
841
  i.removeEventListener(o, u, l), t.current.delete(a);
842
- }, []), r = Z(() => {
842
+ }, []), r = Q(() => {
843
843
  t.current.forEach((i, o) => {
844
844
  n(i.eventTarget, i.type, o, i.options);
845
845
  });
846
846
  }, [
847
847
  n
848
848
  ]);
849
- return J(() => r, [
849
+ return Z(() => r, [
850
850
  r
851
851
  ]), {
852
852
  addGlobalListener: e,
@@ -868,7 +868,7 @@ function pa(t, e) {
868
868
  };
869
869
  }
870
870
  function On(t) {
871
- const e = V(null);
871
+ const e = G(null);
872
872
  return X(() => ({
873
873
  get current() {
874
874
  return e.current;
@@ -881,7 +881,7 @@ function On(t) {
881
881
  ]);
882
882
  }
883
883
  function el(t, e) {
884
- const n = V(!0), r = V(null);
884
+ const n = G(!0), r = G(null);
885
885
  we(() => (n.current = !0, () => {
886
886
  n.current = !1;
887
887
  }), []), we(() => {
@@ -893,7 +893,7 @@ function ep() {
893
893
  }
894
894
  function tl(t) {
895
895
  const { ref: e, box: n, onResize: r } = t;
896
- J(() => {
896
+ Z(() => {
897
897
  let i = e == null ? void 0 : e.current;
898
898
  if (i)
899
899
  if (ep()) {
@@ -942,7 +942,7 @@ function np(t, e) {
942
942
  let rp = 0;
943
943
  const Ai = /* @__PURE__ */ new Map();
944
944
  function ip(t) {
945
- let [e, n] = oe();
945
+ let [e, n] = ae();
946
946
  return we(() => {
947
947
  if (!t) return;
948
948
  let r = Ai.get(t);
@@ -968,7 +968,7 @@ function ip(t) {
968
968
  }
969
969
  function vr(t, e, n, r) {
970
970
  let i = Re(n), o = n == null;
971
- J(() => {
971
+ Z(() => {
972
972
  if (o || !t.current) return;
973
973
  let a = t.current;
974
974
  return a.addEventListener(e, i, r), () => {
@@ -1034,17 +1034,17 @@ function cn(t) {
1034
1034
  return Mt() ? t.metaKey : t.ctrlKey;
1035
1035
  }
1036
1036
  function sp(t, e = !0) {
1037
- let [n, r] = oe(!0), i = n && e;
1037
+ let [n, r] = ae(!0), i = n && e;
1038
1038
  return we(() => {
1039
1039
  if (i && t.current && "getAnimations" in t.current)
1040
1040
  for (let o of t.current.getAnimations()) o instanceof CSSTransition && o.cancel();
1041
1041
  }, [
1042
1042
  t,
1043
1043
  i
1044
- ]), ju(t, i, Z(() => r(!1), [])), i;
1044
+ ]), ju(t, i, Q(() => r(!1), [])), i;
1045
1045
  }
1046
1046
  function up(t, e) {
1047
- let [n, r] = oe(e ? "open" : "closed");
1047
+ let [n, r] = ae(e ? "open" : "closed");
1048
1048
  switch (n) {
1049
1049
  case "open":
1050
1050
  e || r("exiting");
@@ -1055,7 +1055,7 @@ function up(t, e) {
1055
1055
  break;
1056
1056
  }
1057
1057
  let i = n === "exiting";
1058
- return ju(t, i, Z(() => {
1058
+ return ju(t, i, Q(() => {
1059
1059
  r((o) => o === "exiting" ? "closed" : o);
1060
1060
  }, [])), i;
1061
1061
  }
@@ -1088,14 +1088,14 @@ function ju(t, e, n) {
1088
1088
  ]);
1089
1089
  }
1090
1090
  function lr(t, e, n) {
1091
- let [r, i] = oe(t || e), o = V(t !== void 0), a = t !== void 0;
1092
- J(() => {
1091
+ let [r, i] = ae(t || e), o = G(t !== void 0), a = t !== void 0;
1092
+ Z(() => {
1093
1093
  let u = o.current;
1094
1094
  u !== a && console.warn(`WARN: A component changed from ${u ? "controlled" : "uncontrolled"} to ${a ? "controlled" : "uncontrolled"}.`), o.current = a;
1095
1095
  }, [
1096
1096
  a
1097
1097
  ]);
1098
- let l = a ? t : r, s = Z((u, ...c) => {
1098
+ let l = a ? t : r, s = Q((u, ...c) => {
1099
1099
  let h = (p, ...f) => {
1100
1100
  n && (Object.is(l, p) || n(p, ...f)), a || (l = p);
1101
1101
  };
@@ -1119,7 +1119,7 @@ function Oo(t, e = -1 / 0, n = 1 / 0) {
1119
1119
  const il = Symbol("default");
1120
1120
  function sr({ values: t, children: e }) {
1121
1121
  for (let [n, r] of t)
1122
- e = /* @__PURE__ */ j.createElement(n.Provider, {
1122
+ e = /* @__PURE__ */ F.createElement(n.Provider, {
1123
1123
  value: r
1124
1124
  }, e);
1125
1125
  return e;
@@ -1157,7 +1157,7 @@ function Tt(t) {
1157
1157
  ]);
1158
1158
  }
1159
1159
  function ga(t, e) {
1160
- let n = ae(t);
1160
+ let n = le(t);
1161
1161
  if (e === null)
1162
1162
  return null;
1163
1163
  if (n && typeof n == "object" && "slots" in n && n.slots) {
@@ -1196,7 +1196,7 @@ function ur(t, e, n) {
1196
1196
  ];
1197
1197
  }
1198
1198
  function cp() {
1199
- let [t, e] = oe(!0), n = V(!1), r = Z((i) => {
1199
+ let [t, e] = ae(!0), n = G(!1), r = Q((i) => {
1200
1200
  n.current = !0, e(!!i);
1201
1201
  }, []);
1202
1202
  return we(() => {
@@ -1549,24 +1549,24 @@ if (typeof HTMLTemplateElement < "u") {
1549
1549
  }
1550
1550
  const Xr = /* @__PURE__ */ ce(!1), fp = typeof DocumentFragment < "u" ? new DocumentFragment() : null;
1551
1551
  function hp(t) {
1552
- let e = ae(Xr), n = Pn();
1552
+ let e = le(Xr), n = Pn();
1553
1553
  if (e)
1554
- return /* @__PURE__ */ j.createElement(j.Fragment, null, t.children);
1555
- let r = /* @__PURE__ */ j.createElement(Xr.Provider, {
1554
+ return /* @__PURE__ */ F.createElement(F.Fragment, null, t.children);
1555
+ let r = /* @__PURE__ */ F.createElement(Xr.Provider, {
1556
1556
  value: !0
1557
1557
  }, t.children);
1558
- return n ? /* @__PURE__ */ j.createElement("template", {
1558
+ return n ? /* @__PURE__ */ F.createElement("template", {
1559
1559
  "data-react-aria-hidden": !0
1560
1560
  }, r) : /* @__PURE__ */ Pu(r, fp);
1561
1561
  }
1562
1562
  function pp(t) {
1563
- let e = (n, r) => ae(Xr) ? null : t(n, r);
1563
+ let e = (n, r) => le(Xr) ? null : t(n, r);
1564
1564
  return e.displayName = t.displayName || t.name, ft(e);
1565
1565
  }
1566
1566
  function gp() {
1567
- return ae(Xr);
1567
+ return le(Xr);
1568
1568
  }
1569
- const vp = typeof document < "u" ? j.useLayoutEffect : () => {
1569
+ const vp = typeof document < "u" ? F.useLayoutEffect : () => {
1570
1570
  };
1571
1571
  var mr = { exports: {} }, Mi = {};
1572
1572
  /**
@@ -1582,7 +1582,7 @@ var ol;
1582
1582
  function mp() {
1583
1583
  if (ol) return Mi;
1584
1584
  ol = 1;
1585
- var t = j;
1585
+ var t = F;
1586
1586
  function e(h, p) {
1587
1587
  return h === p && (h !== 0 || 1 / h === 1 / p) || h !== h && p !== p;
1588
1588
  }
@@ -1678,7 +1678,7 @@ function yp() {
1678
1678
  return m();
1679
1679
  }
1680
1680
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1681
- var i = j, o = typeof Object.is == "function" ? Object.is : t, a = i.useState, l = i.useEffect, s = i.useLayoutEffect, u = i.useDebugValue, c = !1, h = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
1681
+ var i = F, o = typeof Object.is == "function" ? Object.is : t, a = i.useState, l = i.useEffect, s = i.useLayoutEffect, u = i.useDebugValue, c = !1, h = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : e;
1682
1682
  Ki.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1683
1683
  }()), Ki;
1684
1684
  }
@@ -1689,12 +1689,12 @@ function bp() {
1689
1689
  var ya = bp();
1690
1690
  const Bu = /* @__PURE__ */ ce(!1), er = /* @__PURE__ */ ce(null);
1691
1691
  function Wu(t) {
1692
- if (ae(er))
1692
+ if (le(er))
1693
1693
  return t.content;
1694
1694
  let { collection: n, document: r } = $p(t.createCollection);
1695
- return /* @__PURE__ */ j.createElement(j.Fragment, null, /* @__PURE__ */ j.createElement(hp, null, /* @__PURE__ */ j.createElement(er.Provider, {
1695
+ return /* @__PURE__ */ F.createElement(F.Fragment, null, /* @__PURE__ */ F.createElement(hp, null, /* @__PURE__ */ F.createElement(er.Provider, {
1696
1696
  value: r
1697
- }, t.content)), /* @__PURE__ */ j.createElement(Sp, {
1697
+ }, t.content)), /* @__PURE__ */ F.createElement(Sp, {
1698
1698
  render: t.children,
1699
1699
  collection: n
1700
1700
  }));
@@ -1703,24 +1703,24 @@ function Sp({ collection: t, render: e }) {
1703
1703
  return e(t);
1704
1704
  }
1705
1705
  function wp(t, e, n) {
1706
- let r = Pn(), i = V(r);
1706
+ let r = Pn(), i = G(r);
1707
1707
  i.current = r;
1708
- let o = Z(() => i.current ? n() : e(), [
1708
+ let o = Q(() => i.current ? n() : e(), [
1709
1709
  e,
1710
1710
  n
1711
1711
  ]);
1712
1712
  return ya.useSyncExternalStore(t, o);
1713
1713
  }
1714
- const Ep = typeof j.useSyncExternalStore == "function" ? j.useSyncExternalStore : wp;
1714
+ const Ep = typeof F.useSyncExternalStore == "function" ? F.useSyncExternalStore : wp;
1715
1715
  function $p(t) {
1716
- let [e] = oe(() => new dp((t == null ? void 0 : t()) || new ma())), n = Z((a) => e.subscribe(a), [
1716
+ let [e] = ae(() => new dp((t == null ? void 0 : t()) || new ma())), n = Q((a) => e.subscribe(a), [
1717
1717
  e
1718
- ]), r = Z(() => {
1718
+ ]), r = Q(() => {
1719
1719
  let a = e.getCollection();
1720
1720
  return e.isSSR && e.resetAfterSSR(), a;
1721
1721
  }, [
1722
1722
  e
1723
- ]), i = Z(() => (e.isSSR = !0, e.getCollection()), [
1723
+ ]), i = Q(() => (e.isSSR = !0, e.getCollection()), [
1724
1724
  e
1725
1725
  ]), o = Ep(n, r, i);
1726
1726
  return vp(() => (e.isMounted = !0, () => {
@@ -1734,31 +1734,31 @@ function $p(t) {
1734
1734
  }
1735
1735
  const Io = /* @__PURE__ */ ce(null);
1736
1736
  function xp(t, e, n, r, i, o) {
1737
- let a = Z((s) => {
1737
+ let a = Q((s) => {
1738
1738
  s == null || s.setProps(e, n, r, o);
1739
1739
  }, [
1740
1740
  e,
1741
1741
  n,
1742
1742
  r,
1743
1743
  o
1744
- ]), l = ae(Io);
1744
+ ]), l = le(Io);
1745
1745
  if (l) {
1746
1746
  let s = l.ownerDocument.nodesByProps.get(e);
1747
- return s || (s = l.ownerDocument.createElement(t), s.setProps(e, n, r, o), l.appendChild(s), l.ownerDocument.updateCollection(), l.ownerDocument.nodesByProps.set(e, s)), i ? /* @__PURE__ */ j.createElement(Io.Provider, {
1747
+ return s || (s = l.ownerDocument.createElement(t), s.setProps(e, n, r, o), l.appendChild(s), l.ownerDocument.updateCollection(), l.ownerDocument.nodesByProps.set(e, s)), i ? /* @__PURE__ */ F.createElement(Io.Provider, {
1748
1748
  value: s
1749
1749
  }, i) : null;
1750
1750
  }
1751
- return /* @__PURE__ */ j.createElement(t, {
1751
+ return /* @__PURE__ */ F.createElement(t, {
1752
1752
  ref: a
1753
1753
  }, i);
1754
1754
  }
1755
1755
  function ba(t, e) {
1756
1756
  let n = ({ node: i }) => e(i.props, i.props.ref, i), r = ft((i, o) => {
1757
- if (!ae(Bu)) {
1757
+ if (!le(Bu)) {
1758
1758
  if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
1759
1759
  return e(i, o);
1760
1760
  }
1761
- return xp(t, i, o, "children" in i ? i.children : null, null, (l) => /* @__PURE__ */ j.createElement(n, {
1761
+ return xp(t, i, o, "children" in i ? i.children : null, null, (l) => /* @__PURE__ */ F.createElement(n, {
1762
1762
  node: l
1763
1763
  }));
1764
1764
  });
@@ -1772,42 +1772,42 @@ function Tp(t) {
1772
1772
  }
1773
1773
  const sl = /* @__PURE__ */ ce(null);
1774
1774
  function Uu(t) {
1775
- let e = ae(sl), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), i = Tp({
1775
+ let e = le(sl), n = ((e == null ? void 0 : e.dependencies) || []).concat(t.dependencies), r = t.idScope || (e == null ? void 0 : e.idScope), i = Tp({
1776
1776
  ...t,
1777
1777
  idScope: r,
1778
1778
  dependencies: n
1779
1779
  });
1780
- return ae(er) && (i = /* @__PURE__ */ j.createElement(Cp, null, i)), e = X(() => ({
1780
+ return le(er) && (i = /* @__PURE__ */ F.createElement(Cp, null, i)), e = X(() => ({
1781
1781
  dependencies: n,
1782
1782
  idScope: r
1783
1783
  }), [
1784
1784
  r,
1785
1785
  ...n
1786
- ]), /* @__PURE__ */ j.createElement(sl.Provider, {
1786
+ ]), /* @__PURE__ */ F.createElement(sl.Provider, {
1787
1787
  value: e
1788
1788
  }, i);
1789
1789
  }
1790
1790
  function Cp({ children: t }) {
1791
- let e = ae(er), n = X(() => /* @__PURE__ */ j.createElement(er.Provider, {
1791
+ let e = le(er), n = X(() => /* @__PURE__ */ F.createElement(er.Provider, {
1792
1792
  value: null
1793
- }, /* @__PURE__ */ j.createElement(Bu.Provider, {
1793
+ }, /* @__PURE__ */ F.createElement(Bu.Provider, {
1794
1794
  value: !0
1795
1795
  }, t)), [
1796
1796
  t
1797
1797
  ]);
1798
- return Pn() ? /* @__PURE__ */ j.createElement(Io.Provider, {
1798
+ return Pn() ? /* @__PURE__ */ F.createElement(Io.Provider, {
1799
1799
  value: e
1800
1800
  }, n) : /* @__PURE__ */ Pu(n, e);
1801
1801
  }
1802
- const Ae = typeof document < "u" ? j.useLayoutEffect : () => {
1802
+ const Ae = typeof document < "u" ? F.useLayoutEffect : () => {
1803
1803
  };
1804
1804
  function Dp(t) {
1805
- const e = V(null);
1805
+ const e = G(null);
1806
1806
  return Ae(() => {
1807
1807
  e.current = t;
1808
1808
  }, [
1809
1809
  t
1810
- ]), Z((...n) => {
1810
+ ]), Q((...n) => {
1811
1811
  const r = e.current;
1812
1812
  return r == null ? void 0 : r(...n);
1813
1813
  }, []);
@@ -1958,7 +1958,7 @@ let zp = class {
1958
1958
  }
1959
1959
  };
1960
1960
  function Yu(t) {
1961
- let e = V({
1961
+ let e = G({
1962
1962
  isFocused: !1,
1963
1963
  observer: null
1964
1964
  });
@@ -1971,7 +1971,7 @@ function Yu(t) {
1971
1971
  let n = Dp((r) => {
1972
1972
  t == null || t(r);
1973
1973
  });
1974
- return Z((r) => {
1974
+ return Q((r) => {
1975
1975
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
1976
1976
  e.current.isFocused = !0;
1977
1977
  let i = r.target, o = (a) => {
@@ -2004,13 +2004,13 @@ function Yu(t) {
2004
2004
  }
2005
2005
  function Hp(t) {
2006
2006
  let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: i } = t;
2007
- const o = Z((s) => {
2007
+ const o = Q((s) => {
2008
2008
  if (s.target === s.currentTarget)
2009
2009
  return r && r(s), i && i(!1), !0;
2010
2010
  }, [
2011
2011
  r,
2012
2012
  i
2013
- ]), a = Yu(o), l = Z((s) => {
2013
+ ]), a = Yu(o), l = Q((s) => {
2014
2014
  const u = xe(s.target);
2015
2015
  s.target === s.currentTarget && u.activeElement === s.target && (n && n(s), i && i(!0), a(s));
2016
2016
  }, [
@@ -2100,7 +2100,7 @@ function Gp(t, e, n) {
2100
2100
  return t = t || (n == null ? void 0 : n.target) instanceof i && !Vp.has(n == null || (r = n.target) === null || r === void 0 ? void 0 : r.type) || (n == null ? void 0 : n.target) instanceof o || (n == null ? void 0 : n.target) instanceof a && (n == null ? void 0 : n.target.isContentEditable), !(t && e === "keyboard" && n instanceof l && !Bp[n.key]);
2101
2101
  }
2102
2102
  function qp(t, e, n) {
2103
- Ro(), J(() => {
2103
+ Ro(), Z(() => {
2104
2104
  let r = (i, o) => {
2105
2105
  Gp(!!(n != null && n.isTextInput), i, o) && t(ec());
2106
2106
  };
@@ -2110,15 +2110,15 @@ function qp(t, e, n) {
2110
2110
  }, e);
2111
2111
  }
2112
2112
  function Yp(t) {
2113
- let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = V({
2113
+ let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = G({
2114
2114
  isFocusWithin: !1
2115
- }), a = Z((u) => {
2115
+ }), a = Q((u) => {
2116
2116
  o.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (o.current.isFocusWithin = !1, n && n(u), i && i(!1));
2117
2117
  }, [
2118
2118
  n,
2119
2119
  i,
2120
2120
  o
2121
- ]), l = Yu(a), s = Z((u) => {
2121
+ ]), l = Yu(a), s = Q((u) => {
2122
2122
  !o.current.isFocusWithin && document.activeElement === u.target && (r && r(u), i && i(!0), o.current.isFocusWithin = !0, l(u));
2123
2123
  }, [
2124
2124
  r,
@@ -2165,10 +2165,10 @@ function Jp(t, e) {
2165
2165
  function nc(t, e) {
2166
2166
  return t.nodeName !== "#comment" && Xp(t) && Jp(t, e) && (!t.parentElement || nc(t.parentElement, t));
2167
2167
  }
2168
- const fl = /* @__PURE__ */ j.createContext(null), Ao = "react-aria-focus-scope-restore";
2168
+ const fl = /* @__PURE__ */ F.createContext(null), Ao = "react-aria-focus-scope-restore";
2169
2169
  let he = null;
2170
2170
  function rc(t) {
2171
- let { children: e, contain: n, restoreFocus: r, autoFocus: i } = t, o = V(null), a = V(null), l = V([]), { parentNode: s } = ae(fl) || {}, u = X(() => new Ko({
2171
+ let { children: e, contain: n, restoreFocus: r, autoFocus: i } = t, o = G(null), a = G(null), l = G([]), { parentNode: s } = le(fl) || {}, u = X(() => new Ko({
2172
2172
  scopeRef: l
2173
2173
  }), [
2174
2174
  l
@@ -2198,7 +2198,7 @@ function rc(t) {
2198
2198
  };
2199
2199
  }, [
2200
2200
  e
2201
- ]), ig(l, r, n), tg(l, n), og(l, r, n), rg(l, i), J(() => {
2201
+ ]), ig(l, r, n), tg(l, n), og(l, r, n), rg(l, i), Z(() => {
2202
2202
  const p = xe(l.current ? l.current[0] : void 0).activeElement;
2203
2203
  let f = null;
2204
2204
  if (We(p, l.current)) {
@@ -2221,13 +2221,13 @@ function rc(t) {
2221
2221
  u,
2222
2222
  c
2223
2223
  ]);
2224
- return /* @__PURE__ */ j.createElement(fl.Provider, {
2224
+ return /* @__PURE__ */ F.createElement(fl.Provider, {
2225
2225
  value: h
2226
- }, /* @__PURE__ */ j.createElement("span", {
2226
+ }, /* @__PURE__ */ F.createElement("span", {
2227
2227
  "data-focus-scope-start": !0,
2228
2228
  hidden: !0,
2229
2229
  ref: o
2230
- }), e, /* @__PURE__ */ j.createElement("span", {
2230
+ }), e, /* @__PURE__ */ F.createElement("span", {
2231
2231
  "data-focus-scope-end": !0,
2232
2232
  hidden: !0,
2233
2233
  ref: a
@@ -2302,7 +2302,7 @@ function Hn(t) {
2302
2302
  return !0;
2303
2303
  }
2304
2304
  function tg(t, e) {
2305
- let n = V(void 0), r = V(void 0);
2305
+ let n = G(void 0), r = G(void 0);
2306
2306
  Ae(() => {
2307
2307
  let i = t.current;
2308
2308
  if (!e) {
@@ -2393,8 +2393,8 @@ function Mo(t, e = !0) {
2393
2393
  ct(oc(t, e));
2394
2394
  }
2395
2395
  function rg(t, e) {
2396
- const n = j.useRef(e);
2397
- J(() => {
2396
+ const n = F.useRef(e);
2397
+ Z(() => {
2398
2398
  if (n.current) {
2399
2399
  he = t;
2400
2400
  const r = xe(t.current ? t.current[0] : void 0);
@@ -2432,7 +2432,7 @@ function hl(t) {
2432
2432
  return (e == null ? void 0 : e.scopeRef) === t;
2433
2433
  }
2434
2434
  function og(t, e, n) {
2435
- const r = V(typeof document < "u" ? xe(t.current ? t.current[0] : void 0).activeElement : null);
2435
+ const r = G(typeof document < "u" ? xe(t.current ? t.current[0] : void 0).activeElement : null);
2436
2436
  Ae(() => {
2437
2437
  let i = t.current;
2438
2438
  const o = xe(i ? i[0] : void 0);
@@ -2587,10 +2587,10 @@ class Ko {
2587
2587
  }
2588
2588
  let ve = new $a();
2589
2589
  function gi(t = {}) {
2590
- let { autoFocus: e = !1, isTextInput: n, within: r } = t, i = V({
2590
+ let { autoFocus: e = !1, isTextInput: n, within: r } = t, i = G({
2591
2591
  isFocused: !1,
2592
2592
  isFocusVisible: e || ec()
2593
- }), [o, a] = oe(!1), [l, s] = oe(() => i.current.isFocused && i.current.isFocusVisible), u = Z(() => s(i.current.isFocused && i.current.isFocusVisible), []), c = Z((f) => {
2593
+ }), [o, a] = ae(!1), [l, s] = ae(() => i.current.isFocused && i.current.isFocusVisible), u = Q(() => s(i.current.isFocused && i.current.isFocusVisible), []), c = Q((f) => {
2594
2594
  i.current.isFocused = f, a(f), u();
2595
2595
  }, [
2596
2596
  u
@@ -2614,7 +2614,7 @@ function gi(t = {}) {
2614
2614
  };
2615
2615
  }
2616
2616
  function ag(t, e) {
2617
- let n = e == null ? void 0 : e.isDisabled, [r, i] = oe(!1);
2617
+ let n = e == null ? void 0 : e.isDisabled, [r, i] = ae(!1);
2618
2618
  return Ae(() => {
2619
2619
  if (t != null && t.current && !n) {
2620
2620
  let o = () => {
@@ -2667,13 +2667,13 @@ function br(t) {
2667
2667
  t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), Kr.delete(t);
2668
2668
  }
2669
2669
  }
2670
- const xa = j.createContext({
2670
+ const xa = F.createContext({
2671
2671
  register: () => {
2672
2672
  }
2673
2673
  });
2674
2674
  xa.displayName = "PressResponderContext";
2675
2675
  function lg(t) {
2676
- let e = ae(xa);
2676
+ let e = le(xa);
2677
2677
  if (e) {
2678
2678
  let { register: n, ...r } = e;
2679
2679
  t = Te(r, t), n();
@@ -2716,7 +2716,7 @@ function Ta(t) {
2716
2716
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2717
2717
  ref: h,
2718
2718
  ...p
2719
- } = lg(t), [f, m] = oe(!1), d = V({
2719
+ } = lg(t), [f, m] = ae(!1), d = G({
2720
2720
  isPressed: !1,
2721
2721
  ignoreEmulatedMouseEvents: !1,
2722
2722
  ignoreClickAfterPress: !1,
@@ -2729,33 +2729,33 @@ function Ta(t) {
2729
2729
  }), { addGlobalListener: g, removeAllGlobalListeners: v } = Mu(), b = Re((y, _) => {
2730
2730
  let B = d.current;
2731
2731
  if (a || B.didFirePressStart) return !1;
2732
- let k = !0;
2732
+ let N = !0;
2733
2733
  if (B.isTriggeringEvent = !0, r) {
2734
- let H = new wr("pressstart", _, y);
2735
- r(H), k = H.shouldStopPropagation;
2734
+ let z = new wr("pressstart", _, y);
2735
+ r(z), N = z.shouldStopPropagation;
2736
2736
  }
2737
- return n && n(!0), B.isTriggeringEvent = !1, B.didFirePressStart = !0, m(!0), k;
2737
+ return n && n(!0), B.isTriggeringEvent = !1, B.didFirePressStart = !0, m(!0), N;
2738
2738
  }), S = Re((y, _, B = !0) => {
2739
- let k = d.current;
2740
- if (!k.didFirePressStart) return !1;
2741
- k.ignoreClickAfterPress = !0, k.didFirePressStart = !1, k.isTriggeringEvent = !0;
2742
- let H = !0;
2739
+ let N = d.current;
2740
+ if (!N.didFirePressStart) return !1;
2741
+ N.ignoreClickAfterPress = !0, N.didFirePressStart = !1, N.isTriggeringEvent = !0;
2742
+ let z = !0;
2743
2743
  if (i) {
2744
2744
  let w = new wr("pressend", _, y);
2745
- i(w), H = w.shouldStopPropagation;
2745
+ i(w), z = w.shouldStopPropagation;
2746
2746
  }
2747
2747
  if (n && n(!1), m(!1), e && B && !a) {
2748
2748
  let w = new wr("press", _, y);
2749
- e(w), H && (H = w.shouldStopPropagation);
2749
+ e(w), z && (z = w.shouldStopPropagation);
2750
2750
  }
2751
- return k.isTriggeringEvent = !1, H;
2751
+ return N.isTriggeringEvent = !1, z;
2752
2752
  }), P = Re((y, _) => {
2753
2753
  let B = d.current;
2754
2754
  if (a) return !1;
2755
2755
  if (o) {
2756
2756
  B.isTriggeringEvent = !0;
2757
- let k = new wr("pressup", _, y);
2758
- return o(k), B.isTriggeringEvent = !1, k.shouldStopPropagation;
2757
+ let N = new wr("pressup", _, y);
2758
+ return o(N), B.isTriggeringEvent = !1, N.shouldStopPropagation;
2759
2759
  }
2760
2760
  return !0;
2761
2761
  }), $ = Re((y) => {
@@ -2765,44 +2765,44 @@ function Ta(t) {
2765
2765
  u && $(y);
2766
2766
  }), D = X(() => {
2767
2767
  let y = d.current, _ = {
2768
- onKeyDown(k) {
2769
- if (Li(k.nativeEvent, k.currentTarget) && k.currentTarget.contains(k.target)) {
2770
- var H;
2771
- yl(k.target, k.key) && k.preventDefault();
2768
+ onKeyDown(N) {
2769
+ if (Li(N.nativeEvent, N.currentTarget) && N.currentTarget.contains(N.target)) {
2770
+ var z;
2771
+ yl(N.target, N.key) && N.preventDefault();
2772
2772
  let w = !0;
2773
- if (!y.isPressed && !k.repeat) {
2774
- y.target = k.currentTarget, y.isPressed = !0, w = b(k, "keyboard");
2775
- let O = k.currentTarget, z = (R) => {
2776
- Li(R, O) && !R.repeat && O.contains(R.target) && y.target && P(ot(y.target, R), "keyboard");
2773
+ if (!y.isPressed && !N.repeat) {
2774
+ y.target = N.currentTarget, y.isPressed = !0, w = b(N, "keyboard");
2775
+ let O = N.currentTarget, j = (V) => {
2776
+ Li(V, O) && !V.repeat && O.contains(V.target) && y.target && P(ot(y.target, V), "keyboard");
2777
2777
  };
2778
- g(Be(k.currentTarget), "keyup", Jn(z, B), !0);
2778
+ g(Be(N.currentTarget), "keyup", Jn(j, B), !0);
2779
2779
  }
2780
- w && k.stopPropagation(), k.metaKey && Mt() && ((H = y.metaKeyEvents) === null || H === void 0 || H.set(k.key, k.nativeEvent));
2781
- } else k.key === "Meta" && (y.metaKeyEvents = /* @__PURE__ */ new Map());
2780
+ w && N.stopPropagation(), N.metaKey && Mt() && ((z = y.metaKeyEvents) === null || z === void 0 || z.set(N.key, N.nativeEvent));
2781
+ } else N.key === "Meta" && (y.metaKeyEvents = /* @__PURE__ */ new Map());
2782
2782
  },
2783
- onClick(k) {
2784
- if (!(k && !k.currentTarget.contains(k.target)) && k && k.button === 0 && !y.isTriggeringEvent && !Kt.isOpening) {
2785
- let H = !0;
2786
- if (a && k.preventDefault(), !y.ignoreClickAfterPress && !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" || Po(k.nativeEvent))) {
2787
- !a && !s && It(k.currentTarget);
2788
- let w = b(k, "virtual"), O = P(k, "virtual"), z = S(k, "virtual");
2789
- H = w && O && z;
2783
+ onClick(N) {
2784
+ if (!(N && !N.currentTarget.contains(N.target)) && N && N.button === 0 && !y.isTriggeringEvent && !Kt.isOpening) {
2785
+ let z = !0;
2786
+ if (a && N.preventDefault(), !y.ignoreClickAfterPress && !y.ignoreEmulatedMouseEvents && !y.isPressed && (y.pointerType === "virtual" || Po(N.nativeEvent))) {
2787
+ !a && !s && It(N.currentTarget);
2788
+ let w = b(N, "virtual"), O = P(N, "virtual"), j = S(N, "virtual");
2789
+ z = w && O && j;
2790
2790
  }
2791
- y.ignoreEmulatedMouseEvents = !1, y.ignoreClickAfterPress = !1, H && k.stopPropagation();
2791
+ y.ignoreEmulatedMouseEvents = !1, y.ignoreClickAfterPress = !1, z && N.stopPropagation();
2792
2792
  }
2793
2793
  }
2794
- }, B = (k) => {
2795
- var H;
2796
- if (y.isPressed && y.target && Li(k, y.target)) {
2794
+ }, B = (N) => {
2795
+ var z;
2796
+ if (y.isPressed && y.target && Li(N, y.target)) {
2797
2797
  var w;
2798
- yl(k.target, k.key) && k.preventDefault();
2799
- let z = k.target;
2800
- S(ot(y.target, k), "keyboard", y.target.contains(z)), v(), k.key !== "Enter" && Ca(y.target) && y.target.contains(z) && !k[vl] && (k[vl] = !0, Kt(y.target, k, !1)), y.isPressed = !1, (w = y.metaKeyEvents) === null || w === void 0 || w.delete(k.key);
2801
- } else if (k.key === "Meta" && (!((H = y.metaKeyEvents) === null || H === void 0) && H.size)) {
2798
+ yl(N.target, N.key) && N.preventDefault();
2799
+ let j = N.target;
2800
+ S(ot(y.target, N), "keyboard", y.target.contains(j)), v(), N.key !== "Enter" && Ca(y.target) && y.target.contains(j) && !N[vl] && (N[vl] = !0, Kt(y.target, N, !1)), y.isPressed = !1, (w = y.metaKeyEvents) === null || w === void 0 || w.delete(N.key);
2801
+ } else if (N.key === "Meta" && (!((z = y.metaKeyEvents) === null || z === void 0) && z.size)) {
2802
2802
  var O;
2803
- let z = y.metaKeyEvents;
2803
+ let j = y.metaKeyEvents;
2804
2804
  y.metaKeyEvents = void 0;
2805
- for (let R of z.values()) (O = y.target) === null || O === void 0 || O.dispatchEvent(new KeyboardEvent("keyup", R));
2805
+ for (let V of j.values()) (O = y.target) === null || O === void 0 || O.dispatchEvent(new KeyboardEvent("keyup", V));
2806
2806
  }
2807
2807
  };
2808
2808
  if (typeof PointerEvent < "u") {
@@ -2813,13 +2813,13 @@ function Ta(t) {
2813
2813
  return;
2814
2814
  }
2815
2815
  ji(O.currentTarget) && O.preventDefault(), y.pointerType = O.pointerType;
2816
- let z = !0;
2816
+ let j = !0;
2817
2817
  if (!y.isPressed) {
2818
- y.isPressed = !0, y.isOverTarget = !0, y.activePointerId = O.pointerId, y.target = O.currentTarget, !a && !s && It(O.currentTarget), c || gl(y.target), z = b(O, y.pointerType);
2819
- let R = O.target;
2820
- "releasePointerCapture" in R && R.releasePointerCapture(O.pointerId), g(Be(O.currentTarget), "pointerup", k, !1), g(Be(O.currentTarget), "pointercancel", w, !1);
2818
+ y.isPressed = !0, y.isOverTarget = !0, y.activePointerId = O.pointerId, y.target = O.currentTarget, !a && !s && It(O.currentTarget), c || gl(y.target), j = b(O, y.pointerType);
2819
+ let V = O.target;
2820
+ "releasePointerCapture" in V && V.releasePointerCapture(O.pointerId), g(Be(O.currentTarget), "pointerup", N, !1), g(Be(O.currentTarget), "pointercancel", w, !1);
2821
2821
  }
2822
- z && O.stopPropagation();
2822
+ j && O.stopPropagation();
2823
2823
  }, _.onMouseDown = (O) => {
2824
2824
  O.currentTarget.contains(O.target) && O.button === 0 && (ji(O.currentTarget) && O.preventDefault(), O.stopPropagation());
2825
2825
  }, _.onPointerUp = (O) => {
@@ -2829,11 +2829,11 @@ function Ta(t) {
2829
2829
  }, _.onPointerLeave = (O) => {
2830
2830
  O.pointerId === y.activePointerId && y.target && y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, S(ot(y.target, O), y.pointerType, !1), C(O));
2831
2831
  };
2832
- let k = (O) => {
2833
- O.pointerId === y.activePointerId && y.isPressed && O.button === 0 && y.target && (y.target.contains(O.target) && y.pointerType != null ? S(ot(y.target, O), y.pointerType) : y.isOverTarget && y.pointerType != null && S(ot(y.target, O), y.pointerType, !1), y.isPressed = !1, y.isOverTarget = !1, y.activePointerId = null, y.pointerType = null, v(), c || br(y.target), "ontouchend" in y.target && O.pointerType !== "mouse" && g(y.target, "touchend", H, {
2832
+ let N = (O) => {
2833
+ O.pointerId === y.activePointerId && y.isPressed && O.button === 0 && y.target && (y.target.contains(O.target) && y.pointerType != null ? S(ot(y.target, O), y.pointerType) : y.isOverTarget && y.pointerType != null && S(ot(y.target, O), y.pointerType, !1), y.isPressed = !1, y.isOverTarget = !1, y.activePointerId = null, y.pointerType = null, v(), c || br(y.target), "ontouchend" in y.target && O.pointerType !== "mouse" && g(y.target, "touchend", z, {
2834
2834
  once: !0
2835
2835
  }));
2836
- }, H = (O) => {
2836
+ }, z = (O) => {
2837
2837
  ac(O.currentTarget) && O.preventDefault();
2838
2838
  }, w = (O) => {
2839
2839
  $(O);
@@ -2848,7 +2848,7 @@ function Ta(t) {
2848
2848
  w.stopPropagation();
2849
2849
  return;
2850
2850
  }
2851
- y.isPressed = !0, y.isOverTarget = !0, y.target = w.currentTarget, y.pointerType = Po(w.nativeEvent) ? "virtual" : "mouse", !a && !s && It(w.currentTarget), b(w, y.pointerType) && w.stopPropagation(), g(Be(w.currentTarget), "mouseup", k, !1);
2851
+ y.isPressed = !0, y.isOverTarget = !0, y.target = w.currentTarget, y.pointerType = Po(w.nativeEvent) ? "virtual" : "mouse", !a && !s && It(w.currentTarget), b(w, y.pointerType) && w.stopPropagation(), g(Be(w.currentTarget), "mouseup", N, !1);
2852
2852
  }, _.onMouseEnter = (w) => {
2853
2853
  if (!w.currentTarget.contains(w.target)) return;
2854
2854
  let O = !0;
@@ -2860,7 +2860,7 @@ function Ta(t) {
2860
2860
  }, _.onMouseUp = (w) => {
2861
2861
  w.currentTarget.contains(w.target) && !y.ignoreEmulatedMouseEvents && w.button === 0 && P(w, y.pointerType || "mouse");
2862
2862
  };
2863
- let k = (w) => {
2863
+ let N = (w) => {
2864
2864
  if (w.button === 0) {
2865
2865
  if (y.isPressed = !1, v(), y.ignoreEmulatedMouseEvents) {
2866
2866
  y.ignoreEmulatedMouseEvents = !1;
@@ -2873,27 +2873,27 @@ function Ta(t) {
2873
2873
  if (!w.currentTarget.contains(w.target)) return;
2874
2874
  let O = sg(w.nativeEvent);
2875
2875
  if (!O) return;
2876
- y.activePointerId = O.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, y.target = w.currentTarget, y.pointerType = "touch", !a && !s && It(w.currentTarget), c || gl(y.target), b(vt(y.target, w), y.pointerType) && w.stopPropagation(), g($n(w.currentTarget), "scroll", H, !0);
2876
+ y.activePointerId = O.identifier, y.ignoreEmulatedMouseEvents = !0, y.isOverTarget = !0, y.isPressed = !0, y.target = w.currentTarget, y.pointerType = "touch", !a && !s && It(w.currentTarget), c || gl(y.target), b(vt(y.target, w), y.pointerType) && w.stopPropagation(), g($n(w.currentTarget), "scroll", z, !0);
2877
2877
  }, _.onTouchMove = (w) => {
2878
2878
  if (!w.currentTarget.contains(w.target)) return;
2879
2879
  if (!y.isPressed) {
2880
2880
  w.stopPropagation();
2881
2881
  return;
2882
2882
  }
2883
- let O = ml(w.nativeEvent, y.activePointerId), z = !0;
2884
- O && Fi(O, w.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, z = b(vt(y.target, w), y.pointerType)) : y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, z = S(vt(y.target, w), y.pointerType, !1), C(vt(y.target, w))), z && w.stopPropagation();
2883
+ let O = ml(w.nativeEvent, y.activePointerId), j = !0;
2884
+ O && Fi(O, w.currentTarget) ? !y.isOverTarget && y.pointerType != null && (y.isOverTarget = !0, j = b(vt(y.target, w), y.pointerType)) : y.isOverTarget && y.pointerType != null && (y.isOverTarget = !1, j = S(vt(y.target, w), y.pointerType, !1), C(vt(y.target, w))), j && w.stopPropagation();
2885
2885
  }, _.onTouchEnd = (w) => {
2886
2886
  if (!w.currentTarget.contains(w.target)) return;
2887
2887
  if (!y.isPressed) {
2888
2888
  w.stopPropagation();
2889
2889
  return;
2890
2890
  }
2891
- let O = ml(w.nativeEvent, y.activePointerId), z = !0;
2892
- O && Fi(O, w.currentTarget) && y.pointerType != null ? (P(vt(y.target, w), y.pointerType), z = S(vt(y.target, w), y.pointerType)) : y.isOverTarget && y.pointerType != null && (z = S(vt(y.target, w), y.pointerType, !1)), z && w.stopPropagation(), y.isPressed = !1, y.activePointerId = null, y.isOverTarget = !1, y.ignoreEmulatedMouseEvents = !0, y.target && !c && br(y.target), v();
2891
+ let O = ml(w.nativeEvent, y.activePointerId), j = !0;
2892
+ O && Fi(O, w.currentTarget) && y.pointerType != null ? (P(vt(y.target, w), y.pointerType), j = S(vt(y.target, w), y.pointerType)) : y.isOverTarget && y.pointerType != null && (j = S(vt(y.target, w), y.pointerType, !1)), j && w.stopPropagation(), y.isPressed = !1, y.activePointerId = null, y.isOverTarget = !1, y.ignoreEmulatedMouseEvents = !0, y.target && !c && br(y.target), v();
2893
2893
  }, _.onTouchCancel = (w) => {
2894
2894
  w.currentTarget.contains(w.target) && (w.stopPropagation(), y.isPressed && $(vt(y.target, w)));
2895
2895
  };
2896
- let H = (w) => {
2896
+ let z = (w) => {
2897
2897
  y.isPressed && w.target.contains(y.target) && $({
2898
2898
  currentTarget: y.target,
2899
2899
  shiftKey: !1,
@@ -2919,7 +2919,7 @@ function Ta(t) {
2919
2919
  b,
2920
2920
  P
2921
2921
  ]);
2922
- return J(() => () => {
2922
+ return Z(() => () => {
2923
2923
  var y;
2924
2924
  c || br((y = d.current.target) !== null && y !== void 0 ? y : void 0);
2925
2925
  }, [
@@ -3017,7 +3017,7 @@ function fg({ children: t }) {
3017
3017
  register: () => {
3018
3018
  }
3019
3019
  }), []);
3020
- return /* @__PURE__ */ j.createElement(xa.Provider, {
3020
+ return /* @__PURE__ */ F.createElement(xa.Provider, {
3021
3021
  value: e
3022
3022
  }, t);
3023
3023
  }
@@ -3041,7 +3041,7 @@ class hg {
3041
3041
  }
3042
3042
  }
3043
3043
  function sc(t) {
3044
- let e = V({
3044
+ let e = G({
3045
3045
  isFocused: !1,
3046
3046
  observer: null
3047
3047
  });
@@ -3054,7 +3054,7 @@ function sc(t) {
3054
3054
  let n = Re((r) => {
3055
3055
  t == null || t(r);
3056
3056
  });
3057
- return Z((r) => {
3057
+ return Q((r) => {
3058
3058
  if (r.target instanceof HTMLButtonElement || r.target instanceof HTMLInputElement || r.target instanceof HTMLTextAreaElement || r.target instanceof HTMLSelectElement) {
3059
3059
  e.current.isFocused = !0;
3060
3060
  let i = r.target, o = (a) => {
@@ -3087,13 +3087,13 @@ function sc(t) {
3087
3087
  }
3088
3088
  function pg(t) {
3089
3089
  let { isDisabled: e, onFocus: n, onBlur: r, onFocusChange: i } = t;
3090
- const o = Z((s) => {
3090
+ const o = Q((s) => {
3091
3091
  if (s.target === s.currentTarget)
3092
3092
  return r && r(s), i && i(!1), !0;
3093
3093
  }, [
3094
3094
  r,
3095
3095
  i
3096
- ]), a = sc(o), l = Z((s) => {
3096
+ ]), a = sc(o), l = Q((s) => {
3097
3097
  const u = Be(s.target);
3098
3098
  s.target === s.currentTarget && u.activeElement === s.target && (n && n(s), i && i(!0), a(s));
3099
3099
  }, [
@@ -3163,15 +3163,15 @@ function Sl() {
3163
3163
  return _n;
3164
3164
  }
3165
3165
  function hc(t) {
3166
- let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = V({
3166
+ let { isDisabled: e, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: i } = t, o = G({
3167
3167
  isFocusWithin: !1
3168
- }), a = Z((u) => {
3168
+ }), a = Q((u) => {
3169
3169
  o.current.isFocusWithin && !u.currentTarget.contains(u.relatedTarget) && (o.current.isFocusWithin = !1, n && n(u), i && i(!1));
3170
3170
  }, [
3171
3171
  n,
3172
3172
  i,
3173
3173
  o
3174
- ]), l = sc(a), s = Z((u) => {
3174
+ ]), l = sc(a), s = Q((u) => {
3175
3175
  !o.current.isFocusWithin && document.activeElement === u.target && (r && r(u), i && i(!0), o.current.isFocusWithin = !0, l(u));
3176
3176
  }, [
3177
3177
  r,
@@ -3207,13 +3207,13 @@ function bg() {
3207
3207
  };
3208
3208
  }
3209
3209
  function Pa(t) {
3210
- let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, a] = oe(!1), l = V({
3210
+ let { onHoverStart: e, onHoverChange: n, onHoverEnd: r, isDisabled: i } = t, [o, a] = ae(!1), l = G({
3211
3211
  isHovered: !1,
3212
3212
  ignoreEmulatedMouseEvents: !1,
3213
3213
  pointerType: "",
3214
3214
  target: null
3215
3215
  }).current;
3216
- J(bg, []);
3216
+ Z(bg, []);
3217
3217
  let { hoverProps: s, triggerHoverEnd: u } = X(() => {
3218
3218
  let c = (f, m) => {
3219
3219
  if (l.pointerType = m, i || m === "touch" || l.isHovered || !f.currentTarget.contains(f.target)) return;
@@ -3255,7 +3255,7 @@ function Pa(t) {
3255
3255
  i,
3256
3256
  l
3257
3257
  ]);
3258
- return J(() => {
3258
+ return Z(() => {
3259
3259
  i && u({
3260
3260
  currentTarget: l.target
3261
3261
  }, l.pointerType);
@@ -3267,7 +3267,7 @@ function Pa(t) {
3267
3267
  };
3268
3268
  }
3269
3269
  function Sg(t) {
3270
- let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = t, o = V({
3270
+ let { ref: e, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: i } = t, o = G({
3271
3271
  isPointerDown: !1,
3272
3272
  ignoreEmulatedMouseEvents: !1
3273
3273
  }), a = Re((s) => {
@@ -3275,7 +3275,7 @@ function Sg(t) {
3275
3275
  }), l = Re((s) => {
3276
3276
  n && n(s);
3277
3277
  });
3278
- J(() => {
3278
+ Z(() => {
3279
3279
  let s = o.current;
3280
3280
  if (r) return;
3281
3281
  const u = e.current, c = Be(u);
@@ -3347,7 +3347,7 @@ function wg(t) {
3347
3347
  const Eg = 500;
3348
3348
  function $g(t) {
3349
3349
  let { isDisabled: e, onLongPressStart: n, onLongPressEnd: r, onLongPress: i, threshold: o = Eg, accessibilityDescription: a } = t;
3350
- const l = V(void 0);
3350
+ const l = G(void 0);
3351
3351
  let { addGlobalListener: s, removeGlobalListener: u } = Mu(), { pressProps: c } = Ta({
3352
3352
  isDisabled: e,
3353
3353
  onPressStart(p) {
@@ -3449,18 +3449,18 @@ function $l() {
3449
3449
  for (let t of Bn) t(zo);
3450
3450
  }
3451
3451
  function Pg() {
3452
- let t = Pn(), [e, n] = oe(zo);
3453
- return J(() => (Bn.size === 0 && window.addEventListener("languagechange", $l), Bn.add(n), () => {
3452
+ let t = Pn(), [e, n] = ae(zo);
3453
+ return Z(() => (Bn.size === 0 && window.addEventListener("languagechange", $l), Bn.add(n), () => {
3454
3454
  Bn.delete(n), Bn.size === 0 && window.removeEventListener("languagechange", $l);
3455
3455
  }), []), t ? {
3456
3456
  locale: "en-US",
3457
3457
  direction: "ltr"
3458
3458
  } : e;
3459
3459
  }
3460
- const Og = /* @__PURE__ */ j.createContext(null);
3460
+ const Og = /* @__PURE__ */ F.createContext(null);
3461
3461
  function cr() {
3462
3462
  let t = Pg();
3463
- return ae(Og) || t;
3463
+ return le(Og) || t;
3464
3464
  }
3465
3465
  var et = function() {
3466
3466
  return et = Object.assign || function(e) {
@@ -3592,7 +3592,7 @@ const Dl = {
3592
3592
  whiteSpace: "nowrap"
3593
3593
  };
3594
3594
  function jg(t = {}) {
3595
- let { style: e, isFocusable: n } = t, [r, i] = oe(!1), { focusWithinProps: o } = hc({
3595
+ let { style: e, isFocusable: n } = t, [r, i] = ae(!1), { focusWithinProps: o } = hc({
3596
3596
  isDisabled: !n,
3597
3597
  onFocusWithinChange: (l) => i(l)
3598
3598
  }), a = X(() => r ? e : e ? {
@@ -3610,7 +3610,7 @@ function jg(t = {}) {
3610
3610
  }
3611
3611
  function zg(t) {
3612
3612
  let { children: e, elementType: n = "div", isFocusable: r, style: i, ...o } = t, { visuallyHiddenProps: a } = jg(t);
3613
- return /* @__PURE__ */ j.createElement(n, Te(o, a), e);
3613
+ return /* @__PURE__ */ F.createElement(n, Te(o, a), e);
3614
3614
  }
3615
3615
  const nt = {
3616
3616
  top: "top",
@@ -3733,24 +3733,24 @@ function _l(t, e, n, r, i, o) {
3733
3733
  function Vg(t, e, n, r, i, o, a, l, s, u, c, h, p, f, m, d) {
3734
3734
  let g = Il(t), { size: v, crossAxis: b, crossSize: S, placement: P, crossPlacement: $ } = g, C = Bi(e, l, n, g, c, h, u, p, m, d), D = c, y = _l(l, u, e, i, o + c, g);
3735
3735
  if (a && r[v] > y) {
3736
- let L = Il(`${ni[P]} ${$}`), M = Bi(e, l, n, L, c, h, u, p, m, d);
3737
- _l(l, u, e, i, o + c, L) > y && (g = L, C = M, D = c);
3736
+ let K = Il(`${ni[P]} ${$}`), M = Bi(e, l, n, K, c, h, u, p, m, d);
3737
+ _l(l, u, e, i, o + c, K) > y && (g = K, C = M, D = c);
3738
3738
  }
3739
3739
  let _ = "bottom";
3740
3740
  g.axis === "top" ? g.placement === "top" ? _ = "top" : g.placement === "bottom" && (_ = "bottom") : g.crossAxis === "top" && (g.crossPlacement === "top" ? _ = "bottom" : g.crossPlacement === "bottom" && (_ = "top"));
3741
3741
  let B = Ol(b, C[b], n[S], l, s, o, u);
3742
3742
  C[b] += B;
3743
- let k = Ug(C, l, u, p, i, o, n.height, _);
3744
- f && f < k && (k = f), n.height = Math.min(n.height, k), C = Bi(e, l, n, g, D, h, u, p, m, d), B = Ol(b, C[b], n[S], l, s, o, u), C[b] += B;
3745
- let H = {}, w = e[b] + 0.5 * e[S] - C[b] - i[nt[b]];
3743
+ let N = Ug(C, l, u, p, i, o, n.height, _);
3744
+ f && f < N && (N = f), n.height = Math.min(n.height, N), C = Bi(e, l, n, g, D, h, u, p, m, d), B = Ol(b, C[b], n[S], l, s, o, u), C[b] += B;
3745
+ let z = {}, w = e[b] + 0.5 * e[S] - C[b] - i[nt[b]];
3746
3746
  const O = m / 2 + d;
3747
- var z, R, F, I;
3748
- const G = nt[b] === "left" ? ((z = i.left) !== null && z !== void 0 ? z : 0) + ((R = i.right) !== null && R !== void 0 ? R : 0) : ((F = i.top) !== null && F !== void 0 ? F : 0) + ((I = i.bottom) !== null && I !== void 0 ? I : 0), te = n[S] - G - m / 2 - d, ue = e[b] + m / 2 - (C[b] + i[nt[b]]), A = e[b] + e[S] - m / 2 - (C[b] + i[nt[b]]), N = Oo(w, ue, A);
3749
- return H[b] = Oo(N, O, te), {
3747
+ var j, V, A, I;
3748
+ const H = nt[b] === "left" ? ((j = i.left) !== null && j !== void 0 ? j : 0) + ((V = i.right) !== null && V !== void 0 ? V : 0) : ((A = i.top) !== null && A !== void 0 ? A : 0) + ((I = i.bottom) !== null && I !== void 0 ? I : 0), J = n[S] - H - m / 2 - d, ne = e[b] + m / 2 - (C[b] + i[nt[b]]), R = e[b] + e[S] - m / 2 - (C[b] + i[nt[b]]), k = Oo(w, ne, R);
3749
+ return z[b] = Oo(k, O, J), {
3750
3750
  position: C,
3751
- maxHeight: k,
3752
- arrowOffsetLeft: H.left,
3753
- arrowOffsetTop: H.top,
3751
+ maxHeight: N,
3752
+ arrowOffsetLeft: z.left,
3753
+ arrowOffsetTop: z.top,
3754
3754
  placement: g.placement
3755
3755
  };
3756
3756
  }
@@ -3759,16 +3759,16 @@ function Gg(t) {
3759
3759
  const d = window.getComputedStyle(f).position;
3760
3760
  let g = !!d && d !== "static", v = m ? bn(n) : kl(n, f);
3761
3761
  if (!m) {
3762
- let { marginTop: H, marginLeft: w } = window.getComputedStyle(n);
3763
- v.top += parseInt(H, 10) || 0, v.left += parseInt(w, 10) || 0;
3762
+ let { marginTop: z, marginLeft: w } = window.getComputedStyle(n);
3763
+ v.top += parseInt(z, 10) || 0, v.left += parseInt(w, 10) || 0;
3764
3764
  }
3765
3765
  let b = bn(r), S = Wg(r);
3766
3766
  var P, $;
3767
3767
  b.width += ((P = S.left) !== null && P !== void 0 ? P : 0) + (($ = S.right) !== null && $ !== void 0 ? $ : 0);
3768
3768
  var C, D;
3769
3769
  b.height += ((C = S.top) !== null && C !== void 0 ? C : 0) + ((D = S.bottom) !== null && D !== void 0 ? D : 0);
3770
- let y = Bg(i), _ = Pl(l), B = Pl(f), k = l.tagName === "BODY" ? bn(f) : kl(f, l);
3771
- return f.tagName === "HTML" && l.tagName === "BODY" && (B.scroll.top = 0, B.scroll.left = 0), Vg(e, v, b, y, S, o, a, _, B, k, s, u, g, c, h, p);
3770
+ let y = Bg(i), _ = Pl(l), B = Pl(f), N = l.tagName === "BODY" ? bn(f) : kl(f, l);
3771
+ return f.tagName === "HTML" && l.tagName === "BODY" && (B.scroll.top = 0, B.scroll.left = 0), Vg(e, v, b, y, S, o, a, _, B, N, s, u, g, c, h, p);
3772
3772
  }
3773
3773
  function bn(t) {
3774
3774
  let { top: e, left: n, width: r, height: i } = t.getBoundingClientRect(), { scrollTop: o, scrollLeft: a, clientTop: l, clientLeft: s } = document.documentElement;
@@ -3809,7 +3809,7 @@ function Nl(t) {
3809
3809
  const Yg = /* @__PURE__ */ new WeakMap();
3810
3810
  function Xg(t) {
3811
3811
  let { triggerRef: e, isOpen: n, onClose: r } = t;
3812
- J(() => {
3812
+ Z(() => {
3813
3813
  if (!n || r === null) return;
3814
3814
  let i = (o) => {
3815
3815
  let a = o.target;
@@ -3828,7 +3828,7 @@ function Xg(t) {
3828
3828
  }
3829
3829
  let ge = typeof document < "u" ? window.visualViewport : null;
3830
3830
  function Jg(t) {
3831
- let { direction: e } = cr(), { arrowSize: n = 0, targetRef: r, overlayRef: i, scrollRef: o = i, placement: a = "bottom", containerPadding: l = 12, shouldFlip: s = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: h = 0, shouldUpdatePosition: p = !0, isOpen: f = !0, onClose: m, maxHeight: d, arrowBoundaryOffset: g = 0 } = t, [v, b] = oe(null), S = [
3831
+ let { direction: e } = cr(), { arrowSize: n = 0, targetRef: r, overlayRef: i, scrollRef: o = i, placement: a = "bottom", containerPadding: l = 12, shouldFlip: s = !0, boundaryElement: u = typeof document < "u" ? document.body : null, offset: c = 0, crossOffset: h = 0, shouldUpdatePosition: p = !0, isOpen: f = !0, onClose: m, maxHeight: d, arrowBoundaryOffset: g = 0 } = t, [v, b] = ae(null), S = [
3832
3832
  p,
3833
3833
  a,
3834
3834
  i.current,
@@ -3844,36 +3844,36 @@ function Jg(t) {
3844
3844
  d,
3845
3845
  g,
3846
3846
  n
3847
- ], P = V(ge == null ? void 0 : ge.scale);
3848
- J(() => {
3847
+ ], P = G(ge == null ? void 0 : ge.scale);
3848
+ Z(() => {
3849
3849
  f && (P.current = ge == null ? void 0 : ge.scale);
3850
3850
  }, [
3851
3851
  f
3852
3852
  ]);
3853
- let $ = Z(() => {
3853
+ let $ = Q(() => {
3854
3854
  if (p === !1 || !f || !i.current || !r.current || !u || (ge == null ? void 0 : ge.scale) !== P.current) return;
3855
3855
  let B = null;
3856
3856
  if (o.current && o.current.contains(document.activeElement)) {
3857
- var k;
3858
- let I = (k = document.activeElement) === null || k === void 0 ? void 0 : k.getBoundingClientRect(), G = o.current.getBoundingClientRect();
3859
- var H;
3857
+ var N;
3858
+ let I = (N = document.activeElement) === null || N === void 0 ? void 0 : N.getBoundingClientRect(), H = o.current.getBoundingClientRect();
3859
+ var z;
3860
3860
  if (B = {
3861
3861
  type: "top",
3862
- offset: ((H = I == null ? void 0 : I.top) !== null && H !== void 0 ? H : 0) - G.top
3863
- }, B.offset > G.height / 2) {
3862
+ offset: ((z = I == null ? void 0 : I.top) !== null && z !== void 0 ? z : 0) - H.top
3863
+ }, B.offset > H.height / 2) {
3864
3864
  B.type = "bottom";
3865
3865
  var w;
3866
- B.offset = ((w = I == null ? void 0 : I.bottom) !== null && w !== void 0 ? w : 0) - G.bottom;
3866
+ B.offset = ((w = I == null ? void 0 : I.bottom) !== null && w !== void 0 ? w : 0) - H.bottom;
3867
3867
  }
3868
3868
  }
3869
3869
  let O = i.current;
3870
3870
  if (!d && i.current) {
3871
- var z;
3871
+ var j;
3872
3872
  O.style.top = "0px", O.style.bottom = "";
3873
- var R;
3874
- O.style.maxHeight = ((R = (z = window.visualViewport) === null || z === void 0 ? void 0 : z.height) !== null && R !== void 0 ? R : window.innerHeight) + "px";
3873
+ var V;
3874
+ O.style.maxHeight = ((V = (j = window.visualViewport) === null || j === void 0 ? void 0 : j.height) !== null && V !== void 0 ? V : window.innerHeight) + "px";
3875
3875
  }
3876
- let F = Gg({
3876
+ let A = Gg({
3877
3877
  placement: Qg(a, e),
3878
3878
  overlayNode: i.current,
3879
3879
  targetNode: r.current,
@@ -3887,12 +3887,12 @@ function Jg(t) {
3887
3887
  arrowSize: n,
3888
3888
  arrowBoundaryOffset: g
3889
3889
  });
3890
- if (F.position) {
3891
- if (O.style.top = "", O.style.bottom = "", O.style.left = "", O.style.right = "", Object.keys(F.position).forEach((I) => O.style[I] = F.position[I] + "px"), O.style.maxHeight = F.maxHeight != null ? F.maxHeight + "px" : "", B && document.activeElement && o.current) {
3892
- let I = document.activeElement.getBoundingClientRect(), G = o.current.getBoundingClientRect(), te = I[B.type] - G[B.type];
3893
- o.current.scrollTop += te - B.offset;
3890
+ if (A.position) {
3891
+ if (O.style.top = "", O.style.bottom = "", O.style.left = "", O.style.right = "", Object.keys(A.position).forEach((I) => O.style[I] = A.position[I] + "px"), O.style.maxHeight = A.maxHeight != null ? A.maxHeight + "px" : "", B && document.activeElement && o.current) {
3892
+ let I = document.activeElement.getBoundingClientRect(), H = o.current.getBoundingClientRect(), J = I[B.type] - H[B.type];
3893
+ o.current.scrollTop += J - B.offset;
3894
3894
  }
3895
- b(F);
3895
+ b(A);
3896
3896
  }
3897
3897
  }, S);
3898
3898
  we($, S), Zg($), tl({
@@ -3902,22 +3902,22 @@ function Jg(t) {
3902
3902
  ref: r,
3903
3903
  onResize: $
3904
3904
  });
3905
- let C = V(!1);
3905
+ let C = G(!1);
3906
3906
  we(() => {
3907
- let B, k = () => {
3907
+ let B, N = () => {
3908
3908
  C.current = !0, clearTimeout(B), B = setTimeout(() => {
3909
3909
  C.current = !1;
3910
3910
  }, 500), $();
3911
- }, H = () => {
3912
- C.current && k();
3911
+ }, z = () => {
3912
+ C.current && N();
3913
3913
  };
3914
- return ge == null || ge.addEventListener("resize", k), ge == null || ge.addEventListener("scroll", H), () => {
3915
- ge == null || ge.removeEventListener("resize", k), ge == null || ge.removeEventListener("scroll", H);
3914
+ return ge == null || ge.addEventListener("resize", N), ge == null || ge.addEventListener("scroll", z), () => {
3915
+ ge == null || ge.removeEventListener("resize", N), ge == null || ge.removeEventListener("scroll", z);
3916
3916
  };
3917
3917
  }, [
3918
3918
  $
3919
3919
  ]);
3920
- let D = Z(() => {
3920
+ let D = Q(() => {
3921
3921
  C.current || m == null || m();
3922
3922
  }, [
3923
3923
  m,
@@ -3963,7 +3963,7 @@ function Qg(t, e) {
3963
3963
  const at = [];
3964
3964
  function ev(t, e) {
3965
3965
  let { onClose: n, shouldCloseOnBlur: r, isOpen: i, isDismissable: o = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: l } = t;
3966
- J(() => (i && at.push(e), () => {
3966
+ Z(() => (i && at.push(e), () => {
3967
3967
  let m = at.indexOf(e);
3968
3968
  m >= 0 && at.splice(m, 1);
3969
3969
  }), [
@@ -4275,7 +4275,7 @@ function Al(t) {
4275
4275
  let { onDismiss: e, ...n } = t, r = Lg(av(Jc), "@react-aria/overlays"), i = pa(n, r.format("dismiss")), o = () => {
4276
4276
  e && e();
4277
4277
  };
4278
- return /* @__PURE__ */ j.createElement(zg, null, /* @__PURE__ */ j.createElement("button", {
4278
+ return /* @__PURE__ */ F.createElement(zg, null, /* @__PURE__ */ F.createElement("button", {
4279
4279
  ...i,
4280
4280
  tabIndex: -1,
4281
4281
  onClick: o,
@@ -4379,11 +4379,11 @@ function sv(t, e) {
4379
4379
  const uv = /* @__PURE__ */ ce({});
4380
4380
  function cv() {
4381
4381
  var t;
4382
- return (t = ae(uv)) !== null && t !== void 0 ? t : {};
4382
+ return (t = le(uv)) !== null && t !== void 0 ? t : {};
4383
4383
  }
4384
- const dv = /* @__PURE__ */ j.createContext(null);
4384
+ const dv = /* @__PURE__ */ F.createContext(null);
4385
4385
  function fv(t) {
4386
- let e = Pn(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [i, o] = oe(!1), a = X(() => ({
4386
+ let e = Pn(), { portalContainer: n = e ? null : document.body, isExiting: r } = t, [i, o] = ae(!1), a = X(() => ({
4387
4387
  contain: i,
4388
4388
  setContain: o
4389
4389
  }), [
@@ -4392,19 +4392,19 @@ function fv(t) {
4392
4392
  ]), { getContainer: l } = cv();
4393
4393
  if (!t.portalContainer && l && (n = l()), !n) return null;
4394
4394
  let s = t.children;
4395
- return t.disableFocusManagement || (s = /* @__PURE__ */ j.createElement(rc, {
4395
+ return t.disableFocusManagement || (s = /* @__PURE__ */ F.createElement(rc, {
4396
4396
  restoreFocus: !0,
4397
4397
  contain: i && !r
4398
- }, s)), s = /* @__PURE__ */ j.createElement(dv.Provider, {
4398
+ }, s)), s = /* @__PURE__ */ F.createElement(dv.Provider, {
4399
4399
  value: a
4400
- }, /* @__PURE__ */ j.createElement(fg, null, s)), /* @__PURE__ */ Cu.createPortal(s, n);
4400
+ }, /* @__PURE__ */ F.createElement(fg, null, s)), /* @__PURE__ */ Cu.createPortal(s, n);
4401
4401
  }
4402
4402
  function Bo(t) {
4403
4403
  return Gh() ? t.altKey : t.ctrlKey;
4404
4404
  }
4405
4405
  const hv = 1e3;
4406
4406
  function pv(t) {
4407
- let { keyboardDelegate: e, selectionManager: n, onTypeSelect: r } = t, i = V({
4407
+ let { keyboardDelegate: e, selectionManager: n, onTypeSelect: r } = t, i = G({
4408
4408
  search: "",
4409
4409
  timeout: void 0
4410
4410
  }).current, o = (a) => {
@@ -4434,76 +4434,76 @@ function Zc(t) {
4434
4434
  let { selectionManager: e, keyboardDelegate: n, ref: r, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: a = !1, disallowSelectAll: l = !1, selectOnFocus: s = e.selectionBehavior === "replace", disallowTypeAhead: u = !1, shouldUseVirtualFocus: c, allowsTabNavigation: h = !1, isVirtualized: p, scrollRef: f = r, linkBehavior: m = "action" } = t, { direction: d } = cr(), g = pi(), v = (w) => {
4435
4435
  var O;
4436
4436
  if (w.altKey && w.key === "Tab" && w.preventDefault(), !(!((O = r.current) === null || O === void 0) && O.contains(w.target))) return;
4437
- const z = (K, Q) => {
4438
- if (K != null) {
4439
- if (e.isLink(K) && m === "selection" && s && !Bo(w)) {
4440
- var ie;
4437
+ const j = (L, ee) => {
4438
+ if (L != null) {
4439
+ if (e.isLink(L) && m === "selection" && s && !Bo(w)) {
4440
+ var oe;
4441
4441
  Du(() => {
4442
- e.setFocusedKey(K, Q);
4442
+ e.setFocusedKey(L, ee);
4443
4443
  });
4444
- let ye = (ie = f.current) === null || ie === void 0 ? void 0 : ie.querySelector(`[data-key="${CSS.escape(K.toString())}"]`), me = e.getItemProps(K);
4444
+ let ye = (oe = f.current) === null || oe === void 0 ? void 0 : oe.querySelector(`[data-key="${CSS.escape(L.toString())}"]`), me = e.getItemProps(L);
4445
4445
  ye && g.open(ye, w, me.href, me.routerOptions);
4446
4446
  return;
4447
4447
  }
4448
- if (e.setFocusedKey(K, Q), e.isLink(K) && m === "override") return;
4449
- w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(K) : s && !Bo(w) && e.replaceSelection(K);
4448
+ if (e.setFocusedKey(L, ee), e.isLink(L) && m === "override") return;
4449
+ w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(L) : s && !Bo(w) && e.replaceSelection(L);
4450
4450
  }
4451
4451
  };
4452
4452
  switch (w.key) {
4453
4453
  case "ArrowDown":
4454
4454
  if (n.getKeyBelow) {
4455
- var R, F, I;
4456
- let K = e.focusedKey != null ? (R = n.getKeyBelow) === null || R === void 0 ? void 0 : R.call(n, e.focusedKey) : (F = n.getFirstKey) === null || F === void 0 ? void 0 : F.call(n);
4457
- K == null && o && (K = (I = n.getFirstKey) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey)), K != null && (w.preventDefault(), z(K));
4455
+ var V, A, I;
4456
+ let L = e.focusedKey != null ? (V = n.getKeyBelow) === null || V === void 0 ? void 0 : V.call(n, e.focusedKey) : (A = n.getFirstKey) === null || A === void 0 ? void 0 : A.call(n);
4457
+ L == null && o && (L = (I = n.getFirstKey) === null || I === void 0 ? void 0 : I.call(n, e.focusedKey)), L != null && (w.preventDefault(), j(L));
4458
4458
  }
4459
4459
  break;
4460
4460
  case "ArrowUp":
4461
4461
  if (n.getKeyAbove) {
4462
- var G, te, ue;
4463
- let K = e.focusedKey != null ? (G = n.getKeyAbove) === null || G === void 0 ? void 0 : G.call(n, e.focusedKey) : (te = n.getLastKey) === null || te === void 0 ? void 0 : te.call(n);
4464
- K == null && o && (K = (ue = n.getLastKey) === null || ue === void 0 ? void 0 : ue.call(n, e.focusedKey)), K != null && (w.preventDefault(), z(K));
4462
+ var H, J, ne;
4463
+ let L = e.focusedKey != null ? (H = n.getKeyAbove) === null || H === void 0 ? void 0 : H.call(n, e.focusedKey) : (J = n.getLastKey) === null || J === void 0 ? void 0 : J.call(n);
4464
+ L == null && o && (L = (ne = n.getLastKey) === null || ne === void 0 ? void 0 : ne.call(n, e.focusedKey)), L != null && (w.preventDefault(), j(L));
4465
4465
  }
4466
4466
  break;
4467
4467
  case "ArrowLeft":
4468
4468
  if (n.getKeyLeftOf) {
4469
- var A, N, L;
4470
- let K = e.focusedKey != null ? (A = n.getKeyLeftOf) === null || A === void 0 ? void 0 : A.call(n, e.focusedKey) : null;
4471
- K == null && o && (K = d === "rtl" ? (N = n.getFirstKey) === null || N === void 0 ? void 0 : N.call(n, e.focusedKey) : (L = n.getLastKey) === null || L === void 0 ? void 0 : L.call(n, e.focusedKey)), K != null && (w.preventDefault(), z(K, d === "rtl" ? "first" : "last"));
4469
+ var R, k, K;
4470
+ let L = e.focusedKey != null ? (R = n.getKeyLeftOf) === null || R === void 0 ? void 0 : R.call(n, e.focusedKey) : null;
4471
+ L == null && o && (L = d === "rtl" ? (k = n.getFirstKey) === null || k === void 0 ? void 0 : k.call(n, e.focusedKey) : (K = n.getLastKey) === null || K === void 0 ? void 0 : K.call(n, e.focusedKey)), L != null && (w.preventDefault(), j(L, d === "rtl" ? "first" : "last"));
4472
4472
  }
4473
4473
  break;
4474
4474
  case "ArrowRight":
4475
4475
  if (n.getKeyRightOf) {
4476
4476
  var M, W, U;
4477
- let K = e.focusedKey != null ? (M = n.getKeyRightOf) === null || M === void 0 ? void 0 : M.call(n, e.focusedKey) : null;
4478
- K == null && o && (K = d === "rtl" ? (W = n.getLastKey) === null || W === void 0 ? void 0 : W.call(n, e.focusedKey) : (U = n.getFirstKey) === null || U === void 0 ? void 0 : U.call(n, e.focusedKey)), K != null && (w.preventDefault(), z(K, d === "rtl" ? "last" : "first"));
4477
+ let L = e.focusedKey != null ? (M = n.getKeyRightOf) === null || M === void 0 ? void 0 : M.call(n, e.focusedKey) : null;
4478
+ L == null && o && (L = d === "rtl" ? (W = n.getLastKey) === null || W === void 0 ? void 0 : W.call(n, e.focusedKey) : (U = n.getFirstKey) === null || U === void 0 ? void 0 : U.call(n, e.focusedKey)), L != null && (w.preventDefault(), j(L, d === "rtl" ? "last" : "first"));
4479
4479
  }
4480
4480
  break;
4481
4481
  case "Home":
4482
4482
  if (n.getFirstKey) {
4483
4483
  if (e.focusedKey === null && w.shiftKey) return;
4484
4484
  w.preventDefault();
4485
- let K = n.getFirstKey(e.focusedKey, cn(w));
4486
- e.setFocusedKey(K), K != null && (cn(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(K) : s && e.replaceSelection(K));
4485
+ let L = n.getFirstKey(e.focusedKey, cn(w));
4486
+ e.setFocusedKey(L), L != null && (cn(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(L) : s && e.replaceSelection(L));
4487
4487
  }
4488
4488
  break;
4489
4489
  case "End":
4490
4490
  if (n.getLastKey) {
4491
4491
  if (e.focusedKey === null && w.shiftKey) return;
4492
4492
  w.preventDefault();
4493
- let K = n.getLastKey(e.focusedKey, cn(w));
4494
- e.setFocusedKey(K), K != null && (cn(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(K) : s && e.replaceSelection(K));
4493
+ let L = n.getLastKey(e.focusedKey, cn(w));
4494
+ e.setFocusedKey(L), L != null && (cn(w) && w.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(L) : s && e.replaceSelection(L));
4495
4495
  }
4496
4496
  break;
4497
4497
  case "PageDown":
4498
4498
  if (n.getKeyPageBelow && e.focusedKey != null) {
4499
- let K = n.getKeyPageBelow(e.focusedKey);
4500
- K != null && (w.preventDefault(), z(K));
4499
+ let L = n.getKeyPageBelow(e.focusedKey);
4500
+ L != null && (w.preventDefault(), j(L));
4501
4501
  }
4502
4502
  break;
4503
4503
  case "PageUp":
4504
4504
  if (n.getKeyPageAbove && e.focusedKey != null) {
4505
- let K = n.getKeyPageAbove(e.focusedKey);
4506
- K != null && (w.preventDefault(), z(K));
4505
+ let L = n.getKeyPageAbove(e.focusedKey);
4506
+ L != null && (w.preventDefault(), j(L));
4507
4507
  }
4508
4508
  break;
4509
4509
  case "a":
@@ -4516,26 +4516,26 @@ function Zc(t) {
4516
4516
  if (!h) {
4517
4517
  if (w.shiftKey) r.current.focus();
4518
4518
  else {
4519
- let K = tt(r.current, {
4519
+ let L = tt(r.current, {
4520
4520
  tabbable: !0
4521
- }), Q, ie;
4521
+ }), ee, oe;
4522
4522
  do
4523
- ie = K.lastChild(), ie && (Q = ie);
4524
- while (ie);
4525
- Q && !Q.contains(document.activeElement) && It(Q);
4523
+ oe = L.lastChild(), oe && (ee = oe);
4524
+ while (oe);
4525
+ ee && !ee.contains(document.activeElement) && It(ee);
4526
4526
  }
4527
4527
  break;
4528
4528
  }
4529
4529
  }
4530
- }, b = V({
4530
+ }, b = G({
4531
4531
  top: 0,
4532
4532
  left: 0
4533
4533
  });
4534
4534
  vr(f, "scroll", p ? void 0 : () => {
4535
- var w, O, z, R;
4535
+ var w, O, j, V;
4536
4536
  b.current = {
4537
- top: (z = (w = f.current) === null || w === void 0 ? void 0 : w.scrollTop) !== null && z !== void 0 ? z : 0,
4538
- left: (R = (O = f.current) === null || O === void 0 ? void 0 : O.scrollLeft) !== null && R !== void 0 ? R : 0
4537
+ top: (j = (w = f.current) === null || w === void 0 ? void 0 : w.scrollTop) !== null && j !== void 0 ? j : 0,
4538
+ left: (V = (O = f.current) === null || O === void 0 ? void 0 : O.scrollLeft) !== null && V !== void 0 ? V : 0
4539
4539
  };
4540
4540
  });
4541
4541
  let S = (w) => {
@@ -4545,12 +4545,12 @@ function Zc(t) {
4545
4545
  }
4546
4546
  if (w.currentTarget.contains(w.target)) {
4547
4547
  if (e.setFocused(!0), e.focusedKey == null) {
4548
- var O, z;
4549
- let I = (te) => {
4550
- te != null && (e.setFocusedKey(te), s && e.replaceSelection(te));
4551
- }, G = w.relatedTarget;
4552
- var R, F;
4553
- G && w.currentTarget.compareDocumentPosition(G) & Node.DOCUMENT_POSITION_FOLLOWING ? I((R = e.lastSelectedKey) !== null && R !== void 0 ? R : (O = n.getLastKey) === null || O === void 0 ? void 0 : O.call(n)) : I((F = e.firstSelectedKey) !== null && F !== void 0 ? F : (z = n.getFirstKey) === null || z === void 0 ? void 0 : z.call(n));
4548
+ var O, j;
4549
+ let I = (J) => {
4550
+ J != null && (e.setFocusedKey(J), s && e.replaceSelection(J));
4551
+ }, H = w.relatedTarget;
4552
+ var V, A;
4553
+ H && w.currentTarget.compareDocumentPosition(H) & Node.DOCUMENT_POSITION_FOLLOWING ? I((V = e.lastSelectedKey) !== null && V !== void 0 ? V : (O = n.getLastKey) === null || O === void 0 ? void 0 : O.call(n)) : I((A = e.firstSelectedKey) !== null && A !== void 0 ? A : (j = n.getFirstKey) === null || j === void 0 ? void 0 : j.call(n));
4554
4554
  } else !p && f.current && (f.current.scrollTop = b.current.top, f.current.scrollLeft = b.current.left);
4555
4555
  if (e.focusedKey != null && f.current) {
4556
4556
  let I = f.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
@@ -4561,22 +4561,22 @@ function Zc(t) {
4561
4561
  }
4562
4562
  }, P = (w) => {
4563
4563
  w.currentTarget.contains(w.relatedTarget) || e.setFocused(!1);
4564
- }, $ = V(!1);
4564
+ }, $ = G(!1);
4565
4565
  vr(r, lp, c ? (w) => {
4566
4566
  let { detail: O } = w;
4567
4567
  w.stopPropagation(), e.setFocused(!0), (O == null ? void 0 : O.focusStrategy) === "first" && ($.current = !0);
4568
4568
  } : void 0);
4569
4569
  let C = Re(() => {
4570
4570
  var w, O;
4571
- let z = (O = (w = n.getFirstKey) === null || w === void 0 ? void 0 : w.call(n)) !== null && O !== void 0 ? O : null;
4572
- if (z == null) {
4573
- var R;
4574
- (R = r.current) === null || R === void 0 || R.dispatchEvent(new CustomEvent(Fu, {
4571
+ let j = (O = (w = n.getFirstKey) === null || w === void 0 ? void 0 : w.call(n)) !== null && O !== void 0 ? O : null;
4572
+ if (j == null) {
4573
+ var V;
4574
+ (V = r.current) === null || V === void 0 || V.dispatchEvent(new CustomEvent(Fu, {
4575
4575
  cancelable: !0,
4576
4576
  bubbles: !0
4577
4577
  })), e.collection.size > 0 && ($.current = !1);
4578
4578
  } else
4579
- e.setFocusedKey(z), $.current = !1;
4579
+ e.setFocusedKey(j), $.current = !1;
4580
4580
  });
4581
4581
  el(() => {
4582
4582
  $.current && C();
@@ -4595,27 +4595,27 @@ function Zc(t) {
4595
4595
  ]), vr(r, ap, c ? (w) => {
4596
4596
  w.stopPropagation(), e.setFocused(!1), e.setFocusedKey(null);
4597
4597
  } : void 0);
4598
- const y = V(i);
4599
- J(() => {
4598
+ const y = G(i);
4599
+ Z(() => {
4600
4600
  if (y.current) {
4601
4601
  var w, O;
4602
- let F = null;
4603
- var z;
4604
- i === "first" && (F = (z = (w = n.getFirstKey) === null || w === void 0 ? void 0 : w.call(n)) !== null && z !== void 0 ? z : null);
4605
- var R;
4606
- i === "last" && (F = (R = (O = n.getLastKey) === null || O === void 0 ? void 0 : O.call(n)) !== null && R !== void 0 ? R : null);
4602
+ let A = null;
4603
+ var j;
4604
+ i === "first" && (A = (j = (w = n.getFirstKey) === null || w === void 0 ? void 0 : w.call(n)) !== null && j !== void 0 ? j : null);
4605
+ var V;
4606
+ i === "last" && (A = (V = (O = n.getLastKey) === null || O === void 0 ? void 0 : O.call(n)) !== null && V !== void 0 ? V : null);
4607
4607
  let I = e.selectedKeys;
4608
4608
  if (I.size) {
4609
- for (let G of I) if (e.canSelectItem(G)) {
4610
- F = G;
4609
+ for (let H of I) if (e.canSelectItem(H)) {
4610
+ A = H;
4611
4611
  break;
4612
4612
  }
4613
4613
  }
4614
- e.setFocused(!0), e.setFocusedKey(F), F == null && !c && r.current && Zr(r.current);
4614
+ e.setFocused(!0), e.setFocusedKey(A), A == null && !c && r.current && Zr(r.current);
4615
4615
  }
4616
4616
  }, []);
4617
- let _ = V(e.focusedKey);
4618
- J(() => {
4617
+ let _ = G(e.focusedKey);
4618
+ Z(() => {
4619
4619
  if (e.isFocused && e.focusedKey != null && (e.focusedKey !== _.current || y.current) && f.current && r.current) {
4620
4620
  let w = Sl(), O = r.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
4621
4621
  if (!O)
@@ -4635,16 +4635,16 @@ function Zc(t) {
4635
4635
  onMouseDown(w) {
4636
4636
  f.current === w.target && w.preventDefault();
4637
4637
  }
4638
- }, { typeSelectProps: k } = pv({
4638
+ }, { typeSelectProps: N } = pv({
4639
4639
  keyboardDelegate: n,
4640
4640
  selectionManager: e
4641
4641
  });
4642
- u || (B = Te(k, B));
4643
- let H;
4644
- return c ? H = -1 : H = e.focusedKey == null ? 0 : -1, {
4642
+ u || (B = Te(N, B));
4643
+ let z;
4644
+ return c ? z = -1 : z = e.focusedKey == null ? 0 : -1, {
4645
4645
  collectionProps: {
4646
4646
  ...B,
4647
- tabIndex: H
4647
+ tabIndex: z
4648
4648
  }
4649
4649
  };
4650
4650
  }
@@ -4657,25 +4657,25 @@ function Qc(t) {
4657
4657
  if (n.selectionMode === "none") return;
4658
4658
  if (n.isLink(r)) {
4659
4659
  if (h === "selection" && i.current) {
4660
- let G = n.getItemProps(r);
4661
- p.open(i.current, I, G.href, G.routerOptions), n.setSelectedKeys(n.selectedKeys);
4660
+ let H = n.getItemProps(r);
4661
+ p.open(i.current, I, H.href, H.routerOptions), n.setSelectedKeys(n.selectedKeys);
4662
4662
  return;
4663
4663
  } else if (h === "override" || h === "none") return;
4664
4664
  }
4665
4665
  n.selectionMode === "single" ? n.isSelected(r) && !n.disallowEmptySelection ? n.toggleSelection(r) : n.replaceSelection(r) : I && I.shiftKey ? n.extendSelection(r) : n.selectionBehavior === "toggle" || I && (cn(I) || I.pointerType === "touch" || I.pointerType === "virtual") ? n.toggleSelection(r) : n.replaceSelection(r);
4666
4666
  }
4667
4667
  };
4668
- J(() => {
4668
+ Z(() => {
4669
4669
  if (r === n.focusedKey && n.isFocused)
4670
4670
  if (!a)
4671
4671
  l ? l() : document.activeElement !== i.current && i.current && Zr(i.current);
4672
4672
  else {
4673
- var G;
4674
- let te = new CustomEvent(Fu, {
4673
+ var H;
4674
+ let J = new CustomEvent(Fu, {
4675
4675
  cancelable: !0,
4676
4676
  bubbles: !0
4677
4677
  });
4678
- (G = i.current) === null || G === void 0 || G.dispatchEvent(te);
4678
+ (H = i.current) === null || H === void 0 || H.dispatchEvent(J);
4679
4679
  }
4680
4680
  }, [
4681
4681
  i,
@@ -4694,45 +4694,45 @@ function Qc(t) {
4694
4694
  } : s && (m.onMouseDown = (I) => {
4695
4695
  I.preventDefault();
4696
4696
  });
4697
- let d = n.isLink(r) && h === "override", g = n.isLink(r) && h !== "selection" && h !== "none", v = !s && n.canSelectItem(r) && !d, b = (u || g) && !s, S = b && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), P = b && v && n.selectionBehavior === "replace", $ = S || P, C = V(null), D = $ && v, y = V(!1), _ = V(!1), B = (I) => {
4697
+ let d = n.isLink(r) && h === "override", g = n.isLink(r) && h !== "selection" && h !== "none", v = !s && n.canSelectItem(r) && !d, b = (u || g) && !s, S = b && (n.selectionBehavior === "replace" ? !v : !v || n.isEmpty), P = b && v && n.selectionBehavior === "replace", $ = S || P, C = G(null), D = $ && v, y = G(!1), _ = G(!1), B = (I) => {
4698
4698
  if (u && u(), g && i.current) {
4699
- let G = n.getItemProps(r);
4700
- p.open(i.current, I, G.href, G.routerOptions);
4699
+ let H = n.getItemProps(r);
4700
+ p.open(i.current, I, H.href, H.routerOptions);
4701
4701
  }
4702
- }, k = {};
4703
- o ? (k.onPressStart = (I) => {
4702
+ }, N = {};
4703
+ o ? (N.onPressStart = (I) => {
4704
4704
  C.current = I.pointerType, y.current = D, I.pointerType === "keyboard" && (!$ || Kl()) && f(I);
4705
- }, c ? (k.onPressUp = S ? void 0 : (I) => {
4705
+ }, c ? (N.onPressUp = S ? void 0 : (I) => {
4706
4706
  I.pointerType === "mouse" && v && f(I);
4707
- }, k.onPress = S ? B : (I) => {
4707
+ }, N.onPress = S ? B : (I) => {
4708
4708
  I.pointerType !== "keyboard" && I.pointerType !== "mouse" && v && f(I);
4709
- }) : k.onPress = (I) => {
4709
+ }) : N.onPress = (I) => {
4710
4710
  if (S || P && I.pointerType !== "mouse") {
4711
4711
  if (I.pointerType === "keyboard" && !Ml()) return;
4712
4712
  B(I);
4713
4713
  } else I.pointerType !== "keyboard" && v && f(I);
4714
- }) : (k.onPressStart = (I) => {
4714
+ }) : (N.onPressStart = (I) => {
4715
4715
  C.current = I.pointerType, y.current = D, _.current = S, v && (I.pointerType === "mouse" && !S || I.pointerType === "keyboard" && (!b || Kl())) && f(I);
4716
- }, k.onPress = (I) => {
4716
+ }, N.onPress = (I) => {
4717
4717
  (I.pointerType === "touch" || I.pointerType === "pen" || I.pointerType === "virtual" || I.pointerType === "keyboard" && $ && Ml() || I.pointerType === "mouse" && _.current) && ($ ? B(I) : v && f(I));
4718
- }), m["data-key"] = r, k.preventFocusOnPress = a;
4719
- let { pressProps: H, isPressed: w } = Ta(k), O = P ? (I) => {
4718
+ }), m["data-key"] = r, N.preventFocusOnPress = a;
4719
+ let { pressProps: z, isPressed: w } = Ta(N), O = P ? (I) => {
4720
4720
  C.current === "mouse" && (I.stopPropagation(), I.preventDefault(), B(I));
4721
- } : void 0, { longPressProps: z } = $g({
4721
+ } : void 0, { longPressProps: j } = $g({
4722
4722
  isDisabled: !D,
4723
4723
  onLongPress(I) {
4724
4724
  I.pointerType === "touch" && (f(I), n.setSelectionBehavior("toggle"));
4725
4725
  }
4726
- }), R = (I) => {
4726
+ }), V = (I) => {
4727
4727
  C.current === "touch" && y.current && I.preventDefault();
4728
- }, F = n.isLink(r) ? (I) => {
4728
+ }, A = n.isLink(r) ? (I) => {
4729
4729
  Kt.isOpening || I.preventDefault();
4730
4730
  } : void 0;
4731
4731
  return {
4732
- itemProps: Te(m, v || S ? H : {}, D ? z : {}, {
4732
+ itemProps: Te(m, v || S ? z : {}, D ? j : {}, {
4733
4733
  onDoubleClick: O,
4734
- onDragStartCapture: R,
4735
- onClick: F,
4734
+ onDragStartCapture: V,
4735
+ onClick: A,
4736
4736
  id: e
4737
4737
  }),
4738
4738
  isPressed: w,
@@ -5006,40 +5006,40 @@ function Ev(t, e, n) {
5006
5006
  var y;
5007
5007
  let _ = (y = t.isDisabled) !== null && y !== void 0 ? y : $.isDisabled(i);
5008
5008
  var B;
5009
- let k = (B = t.isSelected) !== null && B !== void 0 ? B : $.isSelected(i), H = td.get(e), w = e.collection.getItem(i), O = t.onClose || H.onClose, z = pi(), R = (se) => {
5009
+ let N = (B = t.isSelected) !== null && B !== void 0 ? B : $.isSelected(i), z = td.get(e), w = e.collection.getItem(i), O = t.onClose || z.onClose, j = pi(), V = (ue) => {
5010
5010
  var Ze;
5011
5011
  if (!C) {
5012
- if (!(w == null || (Ze = w.props) === null || Ze === void 0) && Ze.onAction ? w.props.onAction() : t.onAction && t.onAction(i), H.onAction) {
5013
- let pt = H.onAction;
5012
+ if (!(w == null || (Ze = w.props) === null || Ze === void 0) && Ze.onAction ? w.props.onAction() : t.onAction && t.onAction(i), z.onAction) {
5013
+ let pt = z.onAction;
5014
5014
  pt(i);
5015
5015
  }
5016
- se.target instanceof HTMLAnchorElement && w && z.open(se.target, se, w.props.href, w.props.routerOptions);
5016
+ ue.target instanceof HTMLAnchorElement && w && j.open(ue.target, ue, w.props.href, w.props.routerOptions);
5017
5017
  }
5018
- }, F = "menuitem";
5019
- C || ($.selectionMode === "single" ? F = "menuitemradio" : $.selectionMode === "multiple" && (F = "menuitemcheckbox"));
5020
- let I = Ri(), G = Ri(), te = Ri(), ue = {
5018
+ }, A = "menuitem";
5019
+ C || ($.selectionMode === "single" ? A = "menuitemradio" : $.selectionMode === "multiple" && (A = "menuitemcheckbox"));
5020
+ let I = Ri(), H = Ri(), J = Ri(), ne = {
5021
5021
  id: r,
5022
5022
  "aria-disabled": _ || void 0,
5023
- role: F,
5023
+ role: A,
5024
5024
  "aria-label": t["aria-label"],
5025
5025
  "aria-labelledby": I,
5026
5026
  "aria-describedby": [
5027
- G,
5028
- te
5027
+ H,
5028
+ J
5029
5029
  ].filter(Boolean).join(" ") || void 0,
5030
5030
  "aria-controls": t["aria-controls"],
5031
5031
  "aria-haspopup": l,
5032
5032
  "aria-expanded": t["aria-expanded"]
5033
5033
  };
5034
- $.selectionMode !== "none" && !C && (ue["aria-checked"] = k), a && (ue["aria-posinset"] = w == null ? void 0 : w.index, ue["aria-setsize"] = Sv(e.collection));
5035
- let A = (se) => {
5036
- se.pointerType === "keyboard" && R(se), s == null || s(se);
5037
- }, N = () => {
5034
+ $.selectionMode !== "none" && !C && (ne["aria-checked"] = N), a && (ne["aria-posinset"] = w == null ? void 0 : w.index, ne["aria-setsize"] = Sv(e.collection));
5035
+ let R = (ue) => {
5036
+ ue.pointerType === "keyboard" && V(ue), s == null || s(ue);
5037
+ }, k = () => {
5038
5038
  !C && O && (o ?? ($.selectionMode !== "multiple" || $.isLink(i))) && O();
5039
- }, L = (se) => {
5040
- se.pointerType === "mouse" && (R(se), N()), u == null || u(se);
5041
- }, M = (se) => {
5042
- se.pointerType !== "keyboard" && se.pointerType !== "mouse" && (R(se), N()), c == null || c(se);
5039
+ }, K = (ue) => {
5040
+ ue.pointerType === "mouse" && (V(ue), k()), u == null || u(ue);
5041
+ }, M = (ue) => {
5042
+ ue.pointerType !== "keyboard" && ue.pointerType !== "mouse" && (V(ue), k()), c == null || c(ue);
5043
5043
  }, { itemProps: W, isFocused: U } = Qc({
5044
5044
  id: r,
5045
5045
  selectionManager: $,
@@ -5052,28 +5052,28 @@ function Ev(t, e, n) {
5052
5052
  // is slightly different from other collections because
5053
5053
  // actions are performed on key down rather than key up.
5054
5054
  linkBehavior: "none",
5055
- shouldUseVirtualFocus: H.shouldUseVirtualFocus
5056
- }), { pressProps: K, isPressed: Q } = Ta({
5057
- onPressStart: A,
5055
+ shouldUseVirtualFocus: z.shouldUseVirtualFocus
5056
+ }), { pressProps: L, isPressed: ee } = Ta({
5057
+ onPressStart: R,
5058
5058
  onPress: M,
5059
- onPressUp: L,
5059
+ onPressUp: K,
5060
5060
  onPressChange: h,
5061
5061
  onPressEnd: p,
5062
5062
  isDisabled: _
5063
- }), { hoverProps: ie } = Pa({
5063
+ }), { hoverProps: oe } = Pa({
5064
5064
  isDisabled: _,
5065
- onHoverStart(se) {
5066
- !yg() && !(D && l === "dialog") && ($.setFocused(!0), $.setFocusedKey(i)), f == null || f(se);
5065
+ onHoverStart(ue) {
5066
+ !yg() && !(D && l === "dialog") && ($.setFocused(!0), $.setFocusedKey(i)), f == null || f(ue);
5067
5067
  },
5068
5068
  onHoverChange: m,
5069
5069
  onHoverEnd: d
5070
5070
  }), { keyboardProps: ye } = wg({
5071
- onKeyDown: (se) => {
5072
- if (se.repeat) {
5073
- se.continuePropagation();
5071
+ onKeyDown: (ue) => {
5072
+ if (ue.repeat) {
5073
+ ue.continuePropagation();
5074
5074
  return;
5075
5075
  }
5076
- switch (se.key) {
5076
+ switch (ue.key) {
5077
5077
  case " ":
5078
5078
  !_ && $.selectionMode === "none" && !C && o !== !1 && O && O();
5079
5079
  break;
@@ -5081,7 +5081,7 @@ function Ev(t, e, n) {
5081
5081
  !_ && o !== !1 && !C && O && O();
5082
5082
  break;
5083
5083
  default:
5084
- C || se.continuePropagation(), g == null || g(se);
5084
+ C || ue.continuePropagation(), g == null || g(ue);
5085
5085
  break;
5086
5086
  }
5087
5087
  },
@@ -5095,11 +5095,11 @@ function Ev(t, e, n) {
5095
5095
  let Ee = Au(w == null ? void 0 : w.props);
5096
5096
  return {
5097
5097
  menuItemProps: {
5098
- ...ue,
5098
+ ...ne,
5099
5099
  ...Te(fe, Ee, C ? {
5100
5100
  onFocus: W.onFocus,
5101
5101
  "data-key": W["data-key"]
5102
- } : W, K, ie, ye, me),
5102
+ } : W, L, oe, ye, me),
5103
5103
  // 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.
5104
5104
  tabIndex: W.tabIndex != null && D ? -1 : W.tabIndex
5105
5105
  },
@@ -5107,14 +5107,14 @@ function Ev(t, e, n) {
5107
5107
  id: I
5108
5108
  },
5109
5109
  descriptionProps: {
5110
- id: G
5110
+ id: H
5111
5111
  },
5112
5112
  keyboardShortcutProps: {
5113
- id: te
5113
+ id: J
5114
5114
  },
5115
5115
  isFocused: U,
5116
- isSelected: k,
5117
- isPressed: Q,
5116
+ isSelected: N,
5117
+ isPressed: ee,
5118
5118
  isDisabled: _
5119
5119
  };
5120
5120
  }
@@ -5273,15 +5273,15 @@ function Pv(t, e, n) {
5273
5273
  const Ov = /* @__PURE__ */ ce({});
5274
5274
  function Iv(t) {
5275
5275
  let [e, n] = lr(t.isOpen, t.defaultOpen || !1, t.onOpenChange);
5276
- const r = Z(() => {
5276
+ const r = Q(() => {
5277
5277
  n(!0);
5278
5278
  }, [
5279
5279
  n
5280
- ]), i = Z(() => {
5280
+ ]), i = Q(() => {
5281
5281
  n(!1);
5282
5282
  }, [
5283
5283
  n
5284
- ]), o = Z(() => {
5284
+ ]), o = Q(() => {
5285
5285
  n(!e);
5286
5286
  }, [
5287
5287
  n,
@@ -5301,7 +5301,7 @@ class _v {
5301
5301
  }
5302
5302
  *iterateCollection(e) {
5303
5303
  let { children: n, items: r } = e;
5304
- if (j.isValidElement(n) && n.type === j.Fragment) yield* this.iterateCollection({
5304
+ if (F.isValidElement(n) && n.type === F.Fragment) yield* this.iterateCollection({
5305
5305
  children: n.props.children,
5306
5306
  items: r
5307
5307
  });
@@ -5317,7 +5317,7 @@ class _v {
5317
5317
  }), i++;
5318
5318
  } else {
5319
5319
  let i = [];
5320
- j.Children.forEach(n, (a) => {
5320
+ F.Children.forEach(n, (a) => {
5321
5321
  a && i.push(a);
5322
5322
  });
5323
5323
  let o = 0;
@@ -5349,9 +5349,9 @@ class _v {
5349
5349
  };
5350
5350
  }
5351
5351
  *getFullNode(e, n, r, i) {
5352
- if (j.isValidElement(e.element) && e.element.type === j.Fragment) {
5352
+ if (F.isValidElement(e.element) && e.element.type === F.Fragment) {
5353
5353
  let g = [];
5354
- j.Children.forEach(e.element.props.children, (b) => {
5354
+ F.Children.forEach(e.element.props.children, (b) => {
5355
5355
  g.push(b);
5356
5356
  });
5357
5357
  var o;
@@ -5371,7 +5371,7 @@ class _v {
5371
5371
  }
5372
5372
  a = n.renderer(e.value);
5373
5373
  }
5374
- if (j.isValidElement(a)) {
5374
+ if (F.isValidElement(a)) {
5375
5375
  let g = a.type;
5376
5376
  if (typeof g != "function" && typeof g.getCollectionNode != "function") {
5377
5377
  let P = a.type;
@@ -5510,7 +5510,7 @@ function Mv(t) {
5510
5510
  let { initialItems: e = [], initialSelectedKeys: n, getKey: r = (d) => {
5511
5511
  var g;
5512
5512
  return (g = d.id) !== null && g !== void 0 ? g : d.key;
5513
- }, getChildren: i = (d) => d.children } = t, [o, a] = oe(() => h(e, /* @__PURE__ */ new Map())), { items: l, nodeMap: s } = o, [u, c] = oe(new Set(n || []));
5513
+ }, getChildren: i = (d) => d.children } = t, [o, a] = ae(() => h(e, /* @__PURE__ */ new Map())), { items: l, nodeMap: s } = o, [u, c] = ae(new Set(n || []));
5514
5514
  function h(d = [], g, v) {
5515
5515
  return d == null && (d = []), {
5516
5516
  items: d.map((b) => {
@@ -5730,16 +5730,16 @@ function Kv(t, e) {
5730
5730
  return !0;
5731
5731
  }
5732
5732
  function od(t) {
5733
- let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a = V(!1), [, l] = oe(!1), s = V(null), u = V(null), [, c] = oe(null), h = X(() => Wl(t.selectedKeys), [
5733
+ let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a = G(!1), [, l] = ae(!1), s = G(null), u = G(null), [, c] = ae(null), h = X(() => Wl(t.selectedKeys), [
5734
5734
  t.selectedKeys
5735
5735
  ]), p = X(() => Wl(t.defaultSelectedKeys, new st()), [
5736
5736
  t.defaultSelectedKeys
5737
5737
  ]), [f, m] = lr(h, p, t.onSelectionChange), d = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
5738
5738
  t.disabledKeys
5739
- ]), [g, v] = oe(i);
5739
+ ]), [g, v] = ae(i);
5740
5740
  i === "replace" && g === "toggle" && typeof f == "object" && f.size === 0 && v("replace");
5741
- let b = V(i);
5742
- return J(() => {
5741
+ let b = G(i);
5742
+ return Z(() => {
5743
5743
  i !== b.current && (v(i), b.current = i);
5744
5744
  }, [
5745
5745
  i
@@ -6050,7 +6050,7 @@ let ad = class {
6050
6050
  function Lv(t) {
6051
6051
  let { filter: e, layoutDelegate: n } = t, r = od(t), i = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
6052
6052
  t.disabledKeys
6053
- ]), o = Z((c) => e ? new Bl(e(c)) : new Bl(c), [
6053
+ ]), o = Q((c) => e ? new Bl(e(c)) : new Bl(c), [
6054
6054
  e
6055
6055
  ]), a = X(() => ({
6056
6056
  suppressTextValueWarning: t.suppressTextValueWarning
@@ -6063,8 +6063,8 @@ function Lv(t) {
6063
6063
  r,
6064
6064
  n
6065
6065
  ]);
6066
- const u = V(null);
6067
- return J(() => {
6066
+ const u = G(null);
6067
+ return Z(() => {
6068
6068
  if (r.focusedKey != null && !l.getItem(r.focusedKey) && u.current) {
6069
6069
  const v = u.current.getItem(r.focusedKey), b = [
6070
6070
  ...u.current.getKeys()
@@ -6141,8 +6141,8 @@ function jv(t) {
6141
6141
  ...t,
6142
6142
  suppressTextValueWarning: !0,
6143
6143
  defaultSelectedKey: (n = (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : Ul(t.collection, t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set())) !== null && n !== void 0 ? n : void 0
6144
- }), { selectionManager: i, collection: o, selectedKey: a } = r, l = V(a);
6145
- return J(() => {
6144
+ }), { selectionManager: i, collection: o, selectedKey: a } = r, l = G(a);
6145
+ return Z(() => {
6146
6146
  let s = a;
6147
6147
  (i.isEmpty || s == null || !o.getItem(s)) && (s = Ul(o, r.disabledKeys), s != null && i.setSelectedKeys([
6148
6148
  s
@@ -6213,12 +6213,12 @@ class zv {
6213
6213
  function Hv(t) {
6214
6214
  let { onExpandedChange: e } = t, [n, r] = lr(t.expandedKeys ? new Set(t.expandedKeys) : void 0, t.defaultExpandedKeys ? new Set(t.defaultExpandedKeys) : /* @__PURE__ */ new Set(), e), i = od(t), o = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
6215
6215
  t.disabledKeys
6216
- ]), a = rd(t, Z((s) => new zv(s, {
6216
+ ]), a = rd(t, Q((s) => new zv(s, {
6217
6217
  expandedKeys: n
6218
6218
  }), [
6219
6219
  n
6220
6220
  ]), null);
6221
- return J(() => {
6221
+ return Z(() => {
6222
6222
  i.focusedKey != null && !a.getItem(i.focusedKey) && i.setFocusedKey(null);
6223
6223
  }, [
6224
6224
  a,
@@ -6257,7 +6257,7 @@ function Vl(t, e, n) {
6257
6257
  let o = r.render(r);
6258
6258
  if (!n || r.type !== "item") return o;
6259
6259
  let a = r.key, l = t.getKeyAfter(a);
6260
- return /* @__PURE__ */ j.createElement(j.Fragment, null, n({
6260
+ return /* @__PURE__ */ F.createElement(F.Fragment, null, n({
6261
6261
  type: "item",
6262
6262
  key: a,
6263
6263
  dropPosition: "before"
@@ -6285,7 +6285,7 @@ const Vv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Gv = /* @__PURE_
6285
6285
  elementType: r,
6286
6286
  orientation: i
6287
6287
  });
6288
- return /* @__PURE__ */ j.createElement(l, {
6288
+ return /* @__PURE__ */ F.createElement(l, {
6289
6289
  ...Xe(e),
6290
6290
  ...s,
6291
6291
  style: o,
@@ -6297,7 +6297,7 @@ const Vv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Gv = /* @__PURE_
6297
6297
  placement: "bottom"
6298
6298
  }), Yv = /* @__PURE__ */ ce(null), Xv = /* @__PURE__ */ ft(function(e, n) {
6299
6299
  [e, n] = ur(e, n, Yv);
6300
- let r = ae(cm), i = Iv(e), o = e.isOpen != null || e.defaultOpen != null || !r ? i : r, a = up(n, o.isOpen) || e.isExiting || !1;
6300
+ let r = le(cm), i = Iv(e), o = e.isOpen != null || e.defaultOpen != null || !r ? i : r, a = up(n, o.isOpen) || e.isExiting || !1;
6301
6301
  if (gp()) {
6302
6302
  let s = e.children;
6303
6303
  return typeof s == "function" && (s = s({
@@ -6306,9 +6306,9 @@ const Vv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Gv = /* @__PURE_
6306
6306
  isEntering: !1,
6307
6307
  isExiting: !1,
6308
6308
  defaultChildren: null
6309
- })), /* @__PURE__ */ j.createElement(j.Fragment, null, s);
6309
+ })), /* @__PURE__ */ F.createElement(F.Fragment, null, s);
6310
6310
  }
6311
- return o && !o.isOpen && !a ? null : /* @__PURE__ */ j.createElement(Jv, {
6311
+ return o && !o.isOpen && !a ? null : /* @__PURE__ */ F.createElement(Jv, {
6312
6312
  ...e,
6313
6313
  triggerRef: e.triggerRef,
6314
6314
  state: o,
@@ -6317,7 +6317,7 @@ const Vv = /* @__PURE__ */ ce({}), ud = /* @__PURE__ */ ce({}), Gv = /* @__PURE_
6317
6317
  });
6318
6318
  });
6319
6319
  function Jv({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
6320
- let i = V(null), [o, a] = oe(0);
6320
+ let i = G(null), [o, a] = ae(0);
6321
6321
  we(() => {
6322
6322
  i.current && t.isOpen && a(i.current.getBoundingClientRect().width);
6323
6323
  }, [
@@ -6342,18 +6342,18 @@ function Jv({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
6342
6342
  ...s.style,
6343
6343
  ...m.style
6344
6344
  };
6345
- return /* @__PURE__ */ j.createElement(fv, {
6345
+ return /* @__PURE__ */ F.createElement(fv, {
6346
6346
  ...r,
6347
6347
  isExiting: e,
6348
6348
  portalContainer: n
6349
- }, !r.isNonModal && t.isOpen && /* @__PURE__ */ j.createElement("div", {
6349
+ }, !r.isNonModal && t.isOpen && /* @__PURE__ */ F.createElement("div", {
6350
6350
  "data-testid": "underlay",
6351
6351
  ...u,
6352
6352
  style: {
6353
6353
  position: "fixed",
6354
6354
  inset: 0
6355
6355
  }
6356
- }), /* @__PURE__ */ j.createElement("div", {
6356
+ }), /* @__PURE__ */ F.createElement("div", {
6357
6357
  ...Te(Xe(r), s),
6358
6358
  ...m,
6359
6359
  ref: p,
@@ -6363,15 +6363,15 @@ function Jv({ state: t, isExiting: e, UNSTABLE_portalContainer: n, ...r }) {
6363
6363
  "data-placement": h,
6364
6364
  "data-entering": f || void 0,
6365
6365
  "data-exiting": e || void 0
6366
- }, !r.isNonModal && /* @__PURE__ */ j.createElement(Al, {
6366
+ }, !r.isNonModal && /* @__PURE__ */ F.createElement(Al, {
6367
6367
  onDismiss: t.close
6368
- }), /* @__PURE__ */ j.createElement(qv.Provider, {
6368
+ }), /* @__PURE__ */ F.createElement(qv.Provider, {
6369
6369
  value: {
6370
6370
  ...c,
6371
6371
  placement: h,
6372
6372
  ref: i
6373
6373
  }
6374
- }, m.children), /* @__PURE__ */ j.createElement(Al, {
6374
+ }, m.children), /* @__PURE__ */ F.createElement(Al, {
6375
6375
  onDismiss: t.close
6376
6376
  })));
6377
6377
  }
@@ -6388,16 +6388,16 @@ function Qv(t, e) {
6388
6388
  return !0;
6389
6389
  }
6390
6390
  function em(t) {
6391
- let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a = V(!1), [, l] = oe(!1), s = V(null), u = V(null), [, c] = oe(null), h = X(() => Gl(t.selectedKeys), [
6391
+ let { selectionMode: e = "none", disallowEmptySelection: n = !1, allowDuplicateSelectionEvents: r, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, a = G(!1), [, l] = ae(!1), s = G(null), u = G(null), [, c] = ae(null), h = X(() => Gl(t.selectedKeys), [
6392
6392
  t.selectedKeys
6393
6393
  ]), p = X(() => Gl(t.defaultSelectedKeys, new Ge()), [
6394
6394
  t.defaultSelectedKeys
6395
6395
  ]), [f, m] = lr(h, p, t.onSelectionChange), d = X(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
6396
6396
  t.disabledKeys
6397
- ]), [g, v] = oe(i);
6397
+ ]), [g, v] = ae(i);
6398
6398
  i === "replace" && g === "toggle" && typeof f == "object" && f.size === 0 && v("replace");
6399
- let b = V(i);
6400
- return J(() => {
6399
+ let b = G(i);
6400
+ return Z(() => {
6401
6401
  i !== b.current && (v(i), b.current = i);
6402
6402
  }, [
6403
6403
  i
@@ -6706,16 +6706,16 @@ class tm {
6706
6706
  }
6707
6707
  }
6708
6708
  const nm = /* @__PURE__ */ ce(null), Oa = /* @__PURE__ */ ce(null), rm = /* @__PURE__ */ ce(null), ii = /* @__PURE__ */ ce(null), im = /* @__PURE__ */ ce(null), om = /* @__PURE__ */ ft(function(e, n) {
6709
- return [e, n] = ur(e, n, nm), /* @__PURE__ */ j.createElement(Wu, {
6710
- content: /* @__PURE__ */ j.createElement(Uu, e)
6711
- }, (r) => r.size > 0 && /* @__PURE__ */ j.createElement(am, {
6709
+ return [e, n] = ur(e, n, nm), /* @__PURE__ */ F.createElement(Wu, {
6710
+ content: /* @__PURE__ */ F.createElement(Uu, e)
6711
+ }, (r) => r.size > 0 && /* @__PURE__ */ F.createElement(am, {
6712
6712
  props: e,
6713
6713
  collection: r,
6714
6714
  menuRef: n
6715
6715
  }));
6716
6716
  });
6717
6717
  function am({ props: t, collection: e, menuRef: n }) {
6718
- let { filterFn: r, collectionProps: i, collectionRef: o } = ae(Wv) || {};
6718
+ let { filterFn: r, collectionProps: i, collectionRef: o } = le(Wv) || {};
6719
6719
  n = On(X(() => _u(n, o !== void 0 ? o : null), [
6720
6720
  o,
6721
6721
  n
@@ -6727,7 +6727,7 @@ function am({ props: t, collection: e, menuRef: n }) {
6727
6727
  ...t,
6728
6728
  collection: a,
6729
6729
  children: void 0
6730
- }), s = ae(rm), { isVirtualized: u, CollectionRoot: c } = ae(mi), { menuProps: h } = wv({
6730
+ }), s = le(rm), { isVirtualized: u, CollectionRoot: c } = le(mi), { menuProps: h } = wv({
6731
6731
  ...t,
6732
6732
  ...i,
6733
6733
  isVirtualized: u,
@@ -6738,14 +6738,14 @@ function am({ props: t, collection: e, menuRef: n }) {
6738
6738
  style: t.style,
6739
6739
  values: {}
6740
6740
  });
6741
- return /* @__PURE__ */ j.createElement(rc, null, /* @__PURE__ */ j.createElement("div", {
6741
+ return /* @__PURE__ */ F.createElement(rc, null, /* @__PURE__ */ F.createElement("div", {
6742
6742
  ...Xe(t),
6743
6743
  ...h,
6744
6744
  ...p,
6745
6745
  ref: n,
6746
6746
  slot: t.slot || void 0,
6747
6747
  onScroll: t.onScroll
6748
- }, /* @__PURE__ */ j.createElement(sr, {
6748
+ }, /* @__PURE__ */ F.createElement(sr, {
6749
6749
  values: [
6750
6750
  [
6751
6751
  Oa,
@@ -6779,7 +6779,7 @@ function am({ props: t, collection: e, menuRef: n }) {
6779
6779
  l.selectionManager
6780
6780
  ]
6781
6781
  ]
6782
- }, /* @__PURE__ */ j.createElement(c, {
6782
+ }, /* @__PURE__ */ F.createElement(c, {
6783
6783
  collection: l.collection,
6784
6784
  persistedKeys: sd(l.selectionManager.focusedKey),
6785
6785
  scrollRef: n
@@ -6807,7 +6807,7 @@ class lm extends tm {
6807
6807
  }
6808
6808
  function sm(t, e, n, r = "react-aria-MenuSection") {
6809
6809
  var i, o;
6810
- let a = ae(Oa), { CollectionBranch: l } = ae(mi), [s, u] = cp();
6810
+ let a = le(Oa), { CollectionBranch: l } = le(mi), [s, u] = cp();
6811
6811
  var c;
6812
6812
  let { headingProps: h, groupProps: p } = $v({
6813
6813
  heading: u,
@@ -6817,13 +6817,13 @@ function sm(t, e, n, r = "react-aria-MenuSection") {
6817
6817
  className: (i = n.props) === null || i === void 0 ? void 0 : i.className,
6818
6818
  style: (o = n.props) === null || o === void 0 ? void 0 : o.style,
6819
6819
  values: {}
6820
- }), m = ae(ii), d = em(t), g = t.selectionMode != null ? new lm(m, d) : m;
6821
- return /* @__PURE__ */ j.createElement("section", {
6820
+ }), m = le(ii), d = em(t), g = t.selectionMode != null ? new lm(m, d) : m;
6821
+ return /* @__PURE__ */ F.createElement("section", {
6822
6822
  ...Xe(t),
6823
6823
  ...p,
6824
6824
  ...f,
6825
6825
  ref: e
6826
- }, /* @__PURE__ */ j.createElement(sr, {
6826
+ }, /* @__PURE__ */ F.createElement(sr, {
6827
6827
  values: [
6828
6828
  [
6829
6829
  Vv,
@@ -6837,7 +6837,7 @@ function sm(t, e, n, r = "react-aria-MenuSection") {
6837
6837
  g
6838
6838
  ]
6839
6839
  ]
6840
- }, /* @__PURE__ */ j.createElement(l, {
6840
+ }, /* @__PURE__ */ F.createElement(l, {
6841
6841
  collection: a.collection,
6842
6842
  parent: n
6843
6843
  })));
@@ -6845,7 +6845,7 @@ function sm(t, e, n, r = "react-aria-MenuSection") {
6845
6845
  const Wo = /* @__PURE__ */ ce(null), um = /* @__PURE__ */ ba("item", function(e, n, r) {
6846
6846
  var i;
6847
6847
  [e, n] = ur(e, n, Wo);
6848
- let o = (i = ga(Wo)) === null || i === void 0 ? void 0 : i.id, a = ae(Oa), l = On(n), s = ae(ii), { menuItemProps: u, labelProps: c, descriptionProps: h, keyboardShortcutProps: p, ...f } = Ev({
6848
+ let o = (i = ga(Wo)) === null || i === void 0 ? void 0 : i.id, a = le(Oa), l = On(n), s = le(ii), { menuItemProps: u, labelProps: c, descriptionProps: h, keyboardShortcutProps: p, ...f } = Ev({
6849
6849
  ...e,
6850
6850
  id: o,
6851
6851
  key: r.key,
@@ -6867,7 +6867,7 @@ const Wo = /* @__PURE__ */ ce(null), um = /* @__PURE__ */ ba("item", function(e,
6867
6867
  isOpen: e["aria-expanded"] === "true"
6868
6868
  }
6869
6869
  }), S = e.href ? "a" : "div";
6870
- return /* @__PURE__ */ j.createElement(S, {
6870
+ return /* @__PURE__ */ F.createElement(S, {
6871
6871
  ...Te(u, d, g),
6872
6872
  ...b,
6873
6873
  ref: l,
@@ -6880,7 +6880,7 @@ const Wo = /* @__PURE__ */ ce(null), um = /* @__PURE__ */ ba("item", function(e,
6880
6880
  "data-selection-mode": s.selectionMode === "none" ? void 0 : s.selectionMode,
6881
6881
  "data-has-submenu": !!e["aria-haspopup"] || void 0,
6882
6882
  "data-open": e["aria-expanded"] === "true" || void 0
6883
- }, /* @__PURE__ */ j.createElement(sr, {
6883
+ }, /* @__PURE__ */ F.createElement(sr, {
6884
6884
  values: [
6885
6885
  [
6886
6886
  Ov,
@@ -6906,9 +6906,9 @@ const Wo = /* @__PURE__ */ ce(null), um = /* @__PURE__ */ ba("item", function(e,
6906
6906
  }) : r, [
6907
6907
  r,
6908
6908
  i
6909
- ]), /* @__PURE__ */ j.createElement(Wu, {
6909
+ ]), /* @__PURE__ */ F.createElement(Wu, {
6910
6910
  content: r
6911
- }, (o) => /* @__PURE__ */ j.createElement(fm, {
6911
+ }, (o) => /* @__PURE__ */ F.createElement(fm, {
6912
6912
  props: e,
6913
6913
  collection: o,
6914
6914
  tabsRef: n
@@ -6934,7 +6934,7 @@ function fm({ props: t, tabsRef: e, collection: n }) {
6934
6934
  defaultClassName: "react-aria-Tabs",
6935
6935
  values: s
6936
6936
  });
6937
- return /* @__PURE__ */ j.createElement("div", {
6937
+ return /* @__PURE__ */ F.createElement("div", {
6938
6938
  ...Xe(t),
6939
6939
  ...o,
6940
6940
  ...u,
@@ -6944,7 +6944,7 @@ function fm({ props: t, tabsRef: e, collection: n }) {
6944
6944
  "data-orientation": r,
6945
6945
  "data-focus-visible": l || void 0,
6946
6946
  "data-disabled": i.isDisabled || void 0
6947
- }, /* @__PURE__ */ j.createElement(sr, {
6947
+ }, /* @__PURE__ */ F.createElement(sr, {
6948
6948
  values: [
6949
6949
  [
6950
6950
  yi,
@@ -6958,13 +6958,13 @@ function fm({ props: t, tabsRef: e, collection: n }) {
6958
6958
  }, u.children));
6959
6959
  }
6960
6960
  const hm = /* @__PURE__ */ ft(function(e, n) {
6961
- return ae(xn) ? /* @__PURE__ */ j.createElement(pm, {
6961
+ return le(xn) ? /* @__PURE__ */ F.createElement(pm, {
6962
6962
  props: e,
6963
6963
  forwardedRef: n
6964
- }) : /* @__PURE__ */ j.createElement(Uu, e);
6964
+ }) : /* @__PURE__ */ F.createElement(Uu, e);
6965
6965
  });
6966
6966
  function pm({ props: t, forwardedRef: e }) {
6967
- let n = ae(xn), { CollectionRoot: r } = ae(mi), { orientation: i = "horizontal", keyboardActivation: o = "automatic" } = ga(yi), a = On(e), { tabListProps: l } = Pv({
6967
+ let n = le(xn), { CollectionRoot: r } = le(mi), { orientation: i = "horizontal", keyboardActivation: o = "automatic" } = ga(yi), a = On(e), { tabListProps: l } = Pv({
6968
6968
  ...t,
6969
6969
  orientation: i,
6970
6970
  keyboardActivation: o
@@ -6977,19 +6977,19 @@ function pm({ props: t, forwardedRef: e }) {
6977
6977
  state: n
6978
6978
  }
6979
6979
  }), u = Xe(t);
6980
- return delete u.id, /* @__PURE__ */ j.createElement("div", {
6980
+ return delete u.id, /* @__PURE__ */ F.createElement("div", {
6981
6981
  ...u,
6982
6982
  ...l,
6983
6983
  ref: a,
6984
6984
  ...s,
6985
6985
  "data-orientation": i || void 0
6986
- }, /* @__PURE__ */ j.createElement(r, {
6986
+ }, /* @__PURE__ */ F.createElement(r, {
6987
6987
  collection: n.collection,
6988
6988
  persistedKeys: sd(n.selectionManager.focusedKey)
6989
6989
  }));
6990
6990
  }
6991
6991
  const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
6992
- let r = ae(xn), i = On(e), { tabProps: o, isSelected: a, isDisabled: l, isPressed: s } = Tv({
6992
+ let r = le(xn), i = On(e), { tabProps: o, isSelected: a, isDisabled: l, isPressed: s } = Tv({
6993
6993
  key: n.key,
6994
6994
  ...t
6995
6995
  }, r, i), { focusProps: u, isFocused: c, isFocusVisible: h } = gi(), { hoverProps: p, isHovered: f } = Pa({
@@ -7010,7 +7010,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7010
7010
  isHovered: f
7011
7011
  }
7012
7012
  }), d = n.props.href ? "a" : "div";
7013
- return /* @__PURE__ */ j.createElement(d, {
7013
+ return /* @__PURE__ */ F.createElement(d, {
7014
7014
  ...Te(o, u, p, m),
7015
7015
  ref: i,
7016
7016
  "data-selected": a || void 0,
@@ -7021,7 +7021,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7021
7021
  "data-hovered": f || void 0
7022
7022
  });
7023
7023
  }), vm = /* @__PURE__ */ pp(function(e, n) {
7024
- const r = ae(xn);
7024
+ const r = le(xn);
7025
7025
  let i = On(n), { tabPanelProps: o } = Cv(e, r, i), { focusProps: a, isFocused: l, isFocusVisible: s } = gi(), u = r.selectedKey === e.id, c = Tt({
7026
7026
  ...e,
7027
7027
  defaultClassName: "react-aria-TabPanel",
@@ -7036,7 +7036,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7036
7036
  let h = Xe(e);
7037
7037
  delete h.id;
7038
7038
  let p = u ? Te(h, o, a, c) : c;
7039
- return /* @__PURE__ */ j.createElement("div", {
7039
+ return /* @__PURE__ */ F.createElement("div", {
7040
7040
  ...p,
7041
7041
  ref: i,
7042
7042
  "data-focused": l || void 0,
@@ -7044,7 +7044,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7044
7044
  // @ts-ignore
7045
7045
  inert: u ? void 0 : "true",
7046
7046
  "data-inert": u ? void 0 : "true"
7047
- }, /* @__PURE__ */ j.createElement(sr, {
7047
+ }, /* @__PURE__ */ F.createElement(sr, {
7048
7048
  values: [
7049
7049
  [
7050
7050
  yi,
@@ -7055,7 +7055,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7055
7055
  null
7056
7056
  ]
7057
7057
  ]
7058
- }, /* @__PURE__ */ j.createElement(mi.Provider, {
7058
+ }, /* @__PURE__ */ F.createElement(mi.Provider, {
7059
7059
  value: ld
7060
7060
  }, c.children)));
7061
7061
  }), mm = ({
@@ -7068,7 +7068,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7068
7068
  }) => {
7069
7069
  const a = sh(), l = (u) => {
7070
7070
  n == null || n(u);
7071
- }, s = V(null);
7071
+ }, s = G(null);
7072
7072
  return /* @__PURE__ */ T.jsxs(T.Fragment, { children: [
7073
7073
  /* @__PURE__ */ T.jsx(
7074
7074
  "div",
@@ -7123,7 +7123,7 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7123
7123
  )
7124
7124
  ] });
7125
7125
  }, ym = () => {
7126
- const [t, e] = oe(!1);
7126
+ const [t, e] = ae(!1);
7127
7127
  return { isOpen: t, setIsOpen: e };
7128
7128
  }, bm = ({ languages: t }) => {
7129
7129
  const { isOpen: e, setIsOpen: n } = ym();
@@ -7461,14 +7461,14 @@ const gm = /* @__PURE__ */ ba("item", (t, e, n) => {
7461
7461
  }
7462
7462
  }
7463
7463
  }, Ia = () => {
7464
- const [t, e] = oe(window.innerWidth), n = parseInt(
7464
+ const [t, e] = ae(window.innerWidth), n = parseInt(
7465
7465
  ql.themes.default.theme.breakpoints.mobile.replace("px", "")
7466
7466
  ), r = parseInt(
7467
7467
  ql.themes.default.theme.breakpoints.tablet.replace("px", "")
7468
7468
  ), i = () => {
7469
7469
  e(window.innerWidth);
7470
7470
  };
7471
- J(() => (window.addEventListener("resize", i), () => {
7471
+ Z(() => (window.addEventListener("resize", i), () => {
7472
7472
  window.removeEventListener("resize", i);
7473
7473
  }), []);
7474
7474
  const o = t <= n, a = t <= r, l = t > r;
@@ -7540,7 +7540,7 @@ function hd({
7540
7540
  registerPanel: y,
7541
7541
  resizePanel: _,
7542
7542
  unregisterPanel: B
7543
- } = g, k = _a(a), H = ke({
7543
+ } = g, N = _a(a), z = ke({
7544
7544
  callbacks: {
7545
7545
  onCollapse: u,
7546
7546
  onExpand: c,
@@ -7553,7 +7553,7 @@ function hd({
7553
7553
  maxSize: l,
7554
7554
  minSize: s
7555
7555
  },
7556
- id: k,
7556
+ id: N,
7557
7557
  idIsFromProps: a !== void 0,
7558
7558
  order: p
7559
7559
  });
@@ -7562,40 +7562,40 @@ function hd({
7562
7562
  }), Rt(() => {
7563
7563
  const {
7564
7564
  callbacks: O,
7565
- constraints: z
7566
- } = H.current, R = {
7567
- ...z
7565
+ constraints: j
7566
+ } = z.current, V = {
7567
+ ...j
7568
7568
  };
7569
- H.current.id = k, H.current.idIsFromProps = a !== void 0, H.current.order = p, O.onCollapse = u, O.onExpand = c, O.onResize = h, z.collapsedSize = n, z.collapsible = r, z.defaultSize = i, z.maxSize = l, z.minSize = s, (R.collapsedSize !== z.collapsedSize || R.collapsible !== z.collapsible || R.maxSize !== z.maxSize || R.minSize !== z.minSize) && D(H.current, R);
7569
+ z.current.id = N, z.current.idIsFromProps = a !== void 0, z.current.order = p, O.onCollapse = u, O.onExpand = c, O.onResize = h, j.collapsedSize = n, j.collapsible = r, j.defaultSize = i, j.maxSize = l, j.minSize = s, (V.collapsedSize !== j.collapsedSize || V.collapsible !== j.collapsible || V.maxSize !== j.maxSize || V.minSize !== j.minSize) && D(z.current, V);
7570
7570
  }), Rt(() => {
7571
- const O = H.current;
7571
+ const O = z.current;
7572
7572
  return y(O), () => {
7573
7573
  B(O);
7574
7574
  };
7575
- }, [p, k, y, B]), fd(o, () => ({
7575
+ }, [p, N, y, B]), fd(o, () => ({
7576
7576
  collapse: () => {
7577
- v(H.current);
7577
+ v(z.current);
7578
7578
  },
7579
7579
  expand: (O) => {
7580
- b(H.current, O);
7580
+ b(z.current, O);
7581
7581
  },
7582
7582
  getId() {
7583
- return k;
7583
+ return N;
7584
7584
  },
7585
7585
  getSize() {
7586
- return S(H.current);
7586
+ return S(z.current);
7587
7587
  },
7588
7588
  isCollapsed() {
7589
- return C(H.current);
7589
+ return C(z.current);
7590
7590
  },
7591
7591
  isExpanded() {
7592
- return !C(H.current);
7592
+ return !C(z.current);
7593
7593
  },
7594
7594
  resize: (O) => {
7595
- _(H.current, O);
7595
+ _(z.current, O);
7596
7596
  }
7597
- }), [v, b, S, C, k, _]);
7598
- const w = P(H.current, i);
7597
+ }), [v, b, S, C, N, _]);
7598
+ const w = P(z.current, i);
7599
7599
  return Tn(m, {
7600
7600
  ...d,
7601
7601
  children: t,
@@ -7609,7 +7609,7 @@ function hd({
7609
7609
  "data-panel": "",
7610
7610
  "data-panel-collapsible": r || void 0,
7611
7611
  "data-panel-group-id": $,
7612
- "data-panel-id": k,
7612
+ "data-panel-id": N,
7613
7613
  "data-panel-size": parseFloat("" + w.flexGrow).toFixed(1)
7614
7614
  });
7615
7615
  }
@@ -7690,7 +7690,7 @@ function km(t, e) {
7690
7690
  let r;
7691
7691
  for (; n.a.at(-1) === n.b.at(-1); )
7692
7692
  t = n.a.pop(), e = n.b.pop(), r = t;
7693
- re(r, "Stacking order can only be calculated for elements with a common ancestor");
7693
+ ie(r, "Stacking order can only be calculated for elements with a common ancestor");
7694
7694
  const i = {
7695
7695
  a: Jl(Xl(n.a)),
7696
7696
  b: Jl(Xl(n.b))
@@ -7723,7 +7723,7 @@ function Xl(t) {
7723
7723
  let e = t.length;
7724
7724
  for (; e--; ) {
7725
7725
  const n = t[e];
7726
- if (re(n, "Missing node"), Am(n)) return n;
7726
+ if (ie(n, "Missing node"), Am(n)) return n;
7727
7727
  }
7728
7728
  return null;
7729
7729
  }
@@ -7893,7 +7893,7 @@ function Lm() {
7893
7893
  const [t, e] = Sn(0);
7894
7894
  return _e(() => e((n) => n + 1), []);
7895
7895
  }
7896
- function re(t, e) {
7896
+ function ie(t, e) {
7897
7897
  if (!t)
7898
7898
  throw console.error(e), Error(e);
7899
7899
  }
@@ -7923,7 +7923,7 @@ function mn({
7923
7923
  size: n
7924
7924
  }) {
7925
7925
  const r = t[e];
7926
- re(r != null, `Panel constraints not found for index ${e}`);
7926
+ ie(r != null, `Panel constraints not found for index ${e}`);
7927
7927
  let {
7928
7928
  collapsedSize: i = 0,
7929
7929
  collapsible: o,
@@ -7949,12 +7949,12 @@ function Wn({
7949
7949
  if (Ne(t, 0))
7950
7950
  return e;
7951
7951
  const a = [...e], [l, s] = r;
7952
- re(l != null, "Invalid first pivot index"), re(s != null, "Invalid second pivot index");
7952
+ ie(l != null, "Invalid first pivot index"), ie(s != null, "Invalid second pivot index");
7953
7953
  let u = 0;
7954
7954
  if (o === "keyboard") {
7955
7955
  {
7956
7956
  const h = t < 0 ? s : l, p = n[h];
7957
- re(p, `Panel constraints not found for index ${h}`);
7957
+ ie(p, `Panel constraints not found for index ${h}`);
7958
7958
  const {
7959
7959
  collapsedSize: f = 0,
7960
7960
  collapsible: m,
@@ -7962,7 +7962,7 @@ function Wn({
7962
7962
  } = p;
7963
7963
  if (m) {
7964
7964
  const g = e[h];
7965
- if (re(g != null, `Previous layout not found for panel index ${h}`), Ne(g, f)) {
7965
+ if (ie(g != null, `Previous layout not found for panel index ${h}`), Ne(g, f)) {
7966
7966
  const v = d - g;
7967
7967
  jt(v, Math.abs(t)) > 0 && (t = t < 0 ? 0 - v : v);
7968
7968
  }
@@ -7970,7 +7970,7 @@ function Wn({
7970
7970
  }
7971
7971
  {
7972
7972
  const h = t < 0 ? l : s, p = n[h];
7973
- re(p, `No panel constraints found for index ${h}`);
7973
+ ie(p, `No panel constraints found for index ${h}`);
7974
7974
  const {
7975
7975
  collapsedSize: f = 0,
7976
7976
  collapsible: m,
@@ -7978,7 +7978,7 @@ function Wn({
7978
7978
  } = p;
7979
7979
  if (m) {
7980
7980
  const g = e[h];
7981
- if (re(g != null, `Previous layout not found for panel index ${h}`), Ne(g, d)) {
7981
+ if (ie(g != null, `Previous layout not found for panel index ${h}`), Ne(g, d)) {
7982
7982
  const v = g - f;
7983
7983
  jt(v, Math.abs(t)) > 0 && (t = t < 0 ? 0 - v : v);
7984
7984
  }
@@ -7990,7 +7990,7 @@ function Wn({
7990
7990
  let p = t < 0 ? s : l, f = 0;
7991
7991
  for (; ; ) {
7992
7992
  const d = e[p];
7993
- re(d != null, `Previous layout not found for panel index ${p}`);
7993
+ ie(d != null, `Previous layout not found for panel index ${p}`);
7994
7994
  const v = mn({
7995
7995
  panelConstraints: n,
7996
7996
  panelIndex: p,
@@ -8006,7 +8006,7 @@ function Wn({
8006
8006
  let p = t < 0 ? l : s;
8007
8007
  for (; p >= 0 && p < n.length; ) {
8008
8008
  const f = Math.abs(t) - Math.abs(u), m = e[p];
8009
- re(m != null, `Previous layout not found for panel index ${p}`);
8009
+ ie(m != null, `Previous layout not found for panel index ${p}`);
8010
8010
  const d = m - f, g = mn({
8011
8011
  panelConstraints: n,
8012
8012
  panelIndex: p,
@@ -8023,7 +8023,7 @@ function Wn({
8023
8023
  return i;
8024
8024
  {
8025
8025
  const h = t < 0 ? s : l, p = e[h];
8026
- re(p != null, `Previous layout not found for panel index ${h}`);
8026
+ ie(p != null, `Previous layout not found for panel index ${h}`);
8027
8027
  const f = p + u, m = mn({
8028
8028
  panelConstraints: n,
8029
8029
  panelIndex: h,
@@ -8033,7 +8033,7 @@ function Wn({
8033
8033
  let d = f - m, v = t < 0 ? s : l;
8034
8034
  for (; v >= 0 && v < n.length; ) {
8035
8035
  const b = a[v];
8036
- re(b != null, `Previous layout not found for panel index ${v}`);
8036
+ ie(b != null, `Previous layout not found for panel index ${v}`);
8037
8037
  const S = b + d, P = mn({
8038
8038
  panelConstraints: n,
8039
8039
  panelIndex: v,
@@ -8055,7 +8055,7 @@ function jm({
8055
8055
  }) {
8056
8056
  let r = 0, i = 100, o = 0, a = 0;
8057
8057
  const l = n[0];
8058
- re(l != null, "No pivot index found"), e.forEach((h, p) => {
8058
+ ie(l != null, "No pivot index found"), e.forEach((h, p) => {
8059
8059
  const {
8060
8060
  constraints: f
8061
8061
  } = h, {
@@ -8125,7 +8125,7 @@ function Hm({
8125
8125
  }), p = l[s];
8126
8126
  if (p != null) {
8127
8127
  const f = i[s];
8128
- re(f, `No panel data found for index "${s}"`), p.setAttribute("aria-controls", f.id), p.setAttribute("aria-valuemax", "" + Math.round(u)), p.setAttribute("aria-valuemin", "" + Math.round(c)), p.setAttribute("aria-valuenow", h != null ? "" + Math.round(h) : "");
8128
+ ie(f, `No panel data found for index "${s}"`), p.setAttribute("aria-controls", f.id), p.setAttribute("aria-valuemax", "" + Math.round(u)), p.setAttribute("aria-valuemin", "" + Math.round(c)), p.setAttribute("aria-valuenow", h != null ? "" + Math.round(h) : "");
8129
8129
  }
8130
8130
  }
8131
8131
  return () => {
@@ -8137,16 +8137,16 @@ function Hm({
8137
8137
  if (!o)
8138
8138
  return;
8139
8139
  const l = e.current;
8140
- re(l, "Eager values not found");
8140
+ ie(l, "Eager values not found");
8141
8141
  const {
8142
8142
  panelDataArray: s
8143
8143
  } = l, u = xd(n, o);
8144
- re(u != null, `No group found for id "${n}"`);
8144
+ ie(u != null, `No group found for id "${n}"`);
8145
8145
  const c = nr(n, o);
8146
- re(c, `No resize handles found for group id "${n}"`);
8146
+ ie(c, `No resize handles found for group id "${n}"`);
8147
8147
  const h = c.map((p) => {
8148
8148
  const f = p.getAttribute("data-panel-resize-handle-id");
8149
- re(f, "Resize handle element has no handle id attribute");
8149
+ ie(f, "Resize handle element has no handle id attribute");
8150
8150
  const [m, d] = zm(n, f, s, o);
8151
8151
  if (m == null || d == null)
8152
8152
  return () => {
@@ -8159,7 +8159,7 @@ function Hm({
8159
8159
  const b = s.findIndex((S) => S.id === m);
8160
8160
  if (b >= 0) {
8161
8161
  const S = s[b];
8162
- re(S, `No panel data found for index ${b}`);
8162
+ ie(S, `No panel data found for index ${b}`);
8163
8163
  const P = r[b], {
8164
8164
  collapsedSize: $ = 0,
8165
8165
  collapsible: C,
@@ -8207,14 +8207,14 @@ function Td(t, e) {
8207
8207
  }
8208
8208
  function Bm(t, e, n, r, i) {
8209
8209
  const o = n === "horizontal", a = Ei(e, i);
8210
- re(a, `No resize handle element found for id "${e}"`);
8210
+ ie(a, `No resize handle element found for id "${e}"`);
8211
8211
  const l = a.getAttribute("data-panel-group-id");
8212
- re(l, "Resize handle element has no group id attribute");
8212
+ ie(l, "Resize handle element has no group id attribute");
8213
8213
  let {
8214
8214
  initialCursorPosition: s
8215
8215
  } = r;
8216
8216
  const u = Td(n, t), c = xd(l, i);
8217
- re(c, `No group element found for id "${l}"`);
8217
+ ie(c, `No group element found for id "${l}"`);
8218
8218
  const h = c.getBoundingClientRect(), p = o ? h.width : h.height;
8219
8219
  return (u - s) / p * 100;
8220
8220
  }
@@ -8255,7 +8255,7 @@ function Um({
8255
8255
  let r = 0, i = 100;
8256
8256
  for (let o = 0; o < t.length; o++) {
8257
8257
  const a = n[o];
8258
- re(a, `Panel constraints not found for index ${o}`);
8258
+ ie(a, `Panel constraints not found for index ${o}`);
8259
8259
  const {
8260
8260
  defaultSize: l
8261
8261
  } = a;
@@ -8263,7 +8263,7 @@ function Um({
8263
8263
  }
8264
8264
  for (let o = 0; o < t.length; o++) {
8265
8265
  const a = n[o];
8266
- re(a, `Panel constraints not found for index ${o}`);
8266
+ ie(a, `Panel constraints not found for index ${o}`);
8267
8267
  const {
8268
8268
  defaultSize: l
8269
8269
  } = a;
@@ -8277,7 +8277,7 @@ function Um({
8277
8277
  function Zt(t, e, n) {
8278
8278
  e.forEach((r, i) => {
8279
8279
  const o = t[i];
8280
- re(o, `Panel data not found for index ${i}`);
8280
+ ie(o, `Panel data not found for index ${i}`);
8281
8281
  const {
8282
8282
  callbacks: a,
8283
8283
  constraints: l,
@@ -8401,14 +8401,14 @@ function ns({
8401
8401
  if (!Ne(r, 100) && n.length > 0)
8402
8402
  for (let o = 0; o < e.length; o++) {
8403
8403
  const a = n[o];
8404
- re(a != null, `No layout data found for index ${o}`);
8404
+ ie(a != null, `No layout data found for index ${o}`);
8405
8405
  const l = 100 / r * a;
8406
8406
  n[o] = l;
8407
8407
  }
8408
8408
  let i = 0;
8409
8409
  for (let o = 0; o < e.length; o++) {
8410
8410
  const a = n[o];
8411
- re(a != null, `No layout data found for index ${o}`);
8411
+ ie(a != null, `No layout data found for index ${o}`);
8412
8412
  const l = mn({
8413
8413
  panelConstraints: e,
8414
8414
  panelIndex: o,
@@ -8419,7 +8419,7 @@ function ns({
8419
8419
  if (!Ne(i, 0))
8420
8420
  for (let o = 0; o < e.length; o++) {
8421
8421
  const a = n[o];
8422
- re(a != null, `No layout data found for index ${o}`);
8422
+ ie(a != null, `No layout data found for index ${o}`);
8423
8423
  const l = a + i, s = mn({
8424
8424
  panelConstraints: e,
8425
8425
  panelIndex: o,
@@ -8471,21 +8471,21 @@ function Od({
8471
8471
  getId: () => C.current.id,
8472
8472
  getLayout: () => {
8473
8473
  const {
8474
- layout: N
8474
+ layout: k
8475
8475
  } = D.current;
8476
- return N;
8476
+ return k;
8477
8477
  },
8478
- setLayout: (N) => {
8478
+ setLayout: (k) => {
8479
8479
  const {
8480
- onLayout: L
8480
+ onLayout: K
8481
8481
  } = C.current, {
8482
8482
  layout: M,
8483
8483
  panelDataArray: W
8484
8484
  } = D.current, U = ns({
8485
- layout: N,
8486
- panelConstraints: W.map((K) => K.constraints)
8485
+ layout: k,
8486
+ panelConstraints: W.map((L) => L.constraints)
8487
8487
  });
8488
- es(M, U) || (v(U), D.current.layout = U, L && L(U), Zt(W, U, S.current));
8488
+ es(M, U) || (v(U), D.current.layout = U, K && K(U), Zt(W, U, S.current));
8489
8489
  }
8490
8490
  }), []), Rt(() => {
8491
8491
  C.current.autoSaveId = t, C.current.direction = r, C.current.dragState = m, C.current.id = p, C.current.onLayout = a, C.current.storage = s;
@@ -8499,63 +8499,63 @@ function Od({
8499
8499
  panelGroupElement: f.current
8500
8500
  }), Nt(() => {
8501
8501
  const {
8502
- panelDataArray: N
8502
+ panelDataArray: k
8503
8503
  } = D.current;
8504
8504
  if (t) {
8505
- if (g.length === 0 || g.length !== N.length)
8505
+ if (g.length === 0 || g.length !== k.length)
8506
8506
  return;
8507
- let L = rs[t];
8508
- L == null && (L = Gm(Ym, Xm), rs[t] = L);
8509
- const M = [...N], W = new Map(P.current);
8510
- L(t, M, W, g, s);
8507
+ let K = rs[t];
8508
+ K == null && (K = Gm(Ym, Xm), rs[t] = K);
8509
+ const M = [...k], W = new Map(P.current);
8510
+ K(t, M, W, g, s);
8511
8511
  }
8512
8512
  }, [t, g, s]), Nt(() => {
8513
8513
  });
8514
- const y = _e((N) => {
8514
+ const y = _e((k) => {
8515
8515
  const {
8516
- onLayout: L
8516
+ onLayout: K
8517
8517
  } = C.current, {
8518
8518
  layout: M,
8519
8519
  panelDataArray: W
8520
8520
  } = D.current;
8521
- if (N.constraints.collapsible) {
8521
+ if (k.constraints.collapsible) {
8522
8522
  const U = W.map((ye) => ye.constraints), {
8523
- collapsedSize: K = 0,
8524
- panelSize: Q,
8525
- pivotIndices: ie
8526
- } = Dt(W, N, M);
8527
- if (re(Q != null, `Panel size not found for panel "${N.id}"`), !ut(Q, K)) {
8528
- P.current.set(N.id, Q);
8529
- const me = fn(W, N) === W.length - 1 ? Q - K : K - Q, fe = Wn({
8523
+ collapsedSize: L = 0,
8524
+ panelSize: ee,
8525
+ pivotIndices: oe
8526
+ } = Dt(W, k, M);
8527
+ if (ie(ee != null, `Panel size not found for panel "${k.id}"`), !ut(ee, L)) {
8528
+ P.current.set(k.id, ee);
8529
+ const me = fn(W, k) === W.length - 1 ? ee - L : L - ee, fe = Wn({
8530
8530
  delta: me,
8531
8531
  initialLayout: M,
8532
8532
  panelConstraints: U,
8533
- pivotIndices: ie,
8533
+ pivotIndices: oe,
8534
8534
  prevLayout: M,
8535
8535
  trigger: "imperative-api"
8536
8536
  });
8537
- Tr(M, fe) || (v(fe), D.current.layout = fe, L && L(fe), Zt(W, fe, S.current));
8537
+ Tr(M, fe) || (v(fe), D.current.layout = fe, K && K(fe), Zt(W, fe, S.current));
8538
8538
  }
8539
8539
  }
8540
- }, []), _ = _e((N, L) => {
8540
+ }, []), _ = _e((k, K) => {
8541
8541
  const {
8542
8542
  onLayout: M
8543
8543
  } = C.current, {
8544
8544
  layout: W,
8545
8545
  panelDataArray: U
8546
8546
  } = D.current;
8547
- if (N.constraints.collapsible) {
8548
- const K = U.map((Ee) => Ee.constraints), {
8549
- collapsedSize: Q = 0,
8550
- panelSize: ie = 0,
8547
+ if (k.constraints.collapsible) {
8548
+ const L = U.map((Ee) => Ee.constraints), {
8549
+ collapsedSize: ee = 0,
8550
+ panelSize: oe = 0,
8551
8551
  minSize: ye = 0,
8552
8552
  pivotIndices: me
8553
- } = Dt(U, N, W), fe = L ?? ye;
8554
- if (ut(ie, Q)) {
8555
- const Ee = P.current.get(N.id), se = Ee != null && Ee >= fe ? Ee : fe, pt = fn(U, N) === U.length - 1 ? ie - se : se - ie, $e = Wn({
8553
+ } = Dt(U, k, W), fe = K ?? ye;
8554
+ if (ut(oe, ee)) {
8555
+ const Ee = P.current.get(k.id), ue = Ee != null && Ee >= fe ? Ee : fe, pt = fn(U, k) === U.length - 1 ? oe - ue : ue - oe, $e = Wn({
8556
8556
  delta: pt,
8557
8557
  initialLayout: W,
8558
- panelConstraints: K,
8558
+ panelConstraints: L,
8559
8559
  pivotIndices: me,
8560
8560
  prevLayout: W,
8561
8561
  trigger: "imperative-api"
@@ -8563,109 +8563,109 @@ function Od({
8563
8563
  Tr(W, $e) || (v($e), D.current.layout = $e, M && M($e), Zt(U, $e, S.current));
8564
8564
  }
8565
8565
  }
8566
- }, []), B = _e((N) => {
8566
+ }, []), B = _e((k) => {
8567
8567
  const {
8568
- layout: L,
8568
+ layout: K,
8569
8569
  panelDataArray: M
8570
8570
  } = D.current, {
8571
8571
  panelSize: W
8572
- } = Dt(M, N, L);
8573
- return re(W != null, `Panel size not found for panel "${N.id}"`), W;
8574
- }, []), k = _e((N, L) => {
8572
+ } = Dt(M, k, K);
8573
+ return ie(W != null, `Panel size not found for panel "${k.id}"`), W;
8574
+ }, []), N = _e((k, K) => {
8575
8575
  const {
8576
8576
  panelDataArray: M
8577
- } = D.current, W = fn(M, N);
8577
+ } = D.current, W = fn(M, k);
8578
8578
  return Vm({
8579
- defaultSize: L,
8579
+ defaultSize: K,
8580
8580
  dragState: m,
8581
8581
  layout: g,
8582
8582
  panelData: M,
8583
8583
  panelIndex: W
8584
8584
  });
8585
- }, [m, g]), H = _e((N) => {
8585
+ }, [m, g]), z = _e((k) => {
8586
8586
  const {
8587
- layout: L,
8587
+ layout: K,
8588
8588
  panelDataArray: M
8589
8589
  } = D.current, {
8590
8590
  collapsedSize: W = 0,
8591
8591
  collapsible: U,
8592
- panelSize: K
8593
- } = Dt(M, N, L);
8594
- return re(K != null, `Panel size not found for panel "${N.id}"`), U === !0 && ut(K, W);
8595
- }, []), w = _e((N) => {
8592
+ panelSize: L
8593
+ } = Dt(M, k, K);
8594
+ return ie(L != null, `Panel size not found for panel "${k.id}"`), U === !0 && ut(L, W);
8595
+ }, []), w = _e((k) => {
8596
8596
  const {
8597
- layout: L,
8597
+ layout: K,
8598
8598
  panelDataArray: M
8599
8599
  } = D.current, {
8600
8600
  collapsedSize: W = 0,
8601
8601
  collapsible: U,
8602
- panelSize: K
8603
- } = Dt(M, N, L);
8604
- return re(K != null, `Panel size not found for panel "${N.id}"`), !U || jt(K, W) > 0;
8605
- }, []), O = _e((N) => {
8602
+ panelSize: L
8603
+ } = Dt(M, k, K);
8604
+ return ie(L != null, `Panel size not found for panel "${k.id}"`), !U || jt(L, W) > 0;
8605
+ }, []), O = _e((k) => {
8606
8606
  const {
8607
- panelDataArray: L
8607
+ panelDataArray: K
8608
8608
  } = D.current;
8609
- L.push(N), L.sort((M, W) => {
8610
- const U = M.order, K = W.order;
8611
- return U == null && K == null ? 0 : U == null ? -1 : K == null ? 1 : U - K;
8609
+ K.push(k), K.sort((M, W) => {
8610
+ const U = M.order, L = W.order;
8611
+ return U == null && L == null ? 0 : U == null ? -1 : L == null ? 1 : U - L;
8612
8612
  }), D.current.panelDataArrayChanged = !0, b();
8613
8613
  }, [b]);
8614
8614
  Rt(() => {
8615
8615
  if (D.current.panelDataArrayChanged) {
8616
8616
  D.current.panelDataArrayChanged = !1;
8617
8617
  const {
8618
- autoSaveId: N,
8619
- onLayout: L,
8618
+ autoSaveId: k,
8619
+ onLayout: K,
8620
8620
  storage: M
8621
8621
  } = C.current, {
8622
8622
  layout: W,
8623
8623
  panelDataArray: U
8624
8624
  } = D.current;
8625
- let K = null;
8626
- if (N) {
8627
- const ie = qm(N, U, M);
8628
- ie && (P.current = new Map(Object.entries(ie.expandToSizes)), K = ie.layout);
8625
+ let L = null;
8626
+ if (k) {
8627
+ const oe = qm(k, U, M);
8628
+ oe && (P.current = new Map(Object.entries(oe.expandToSizes)), L = oe.layout);
8629
8629
  }
8630
- K == null && (K = Um({
8630
+ L == null && (L = Um({
8631
8631
  panelDataArray: U
8632
8632
  }));
8633
- const Q = ns({
8634
- layout: K,
8635
- panelConstraints: U.map((ie) => ie.constraints)
8633
+ const ee = ns({
8634
+ layout: L,
8635
+ panelConstraints: U.map((oe) => oe.constraints)
8636
8636
  });
8637
- es(W, Q) || (v(Q), D.current.layout = Q, L && L(Q), Zt(U, Q, S.current));
8637
+ es(W, ee) || (v(ee), D.current.layout = ee, K && K(ee), Zt(U, ee, S.current));
8638
8638
  }
8639
8639
  }), Rt(() => {
8640
- const N = D.current;
8640
+ const k = D.current;
8641
8641
  return () => {
8642
- N.layout = [];
8642
+ k.layout = [];
8643
8643
  };
8644
8644
  }, []);
8645
- const z = _e((N) => {
8646
- let L = !1;
8645
+ const j = _e((k) => {
8646
+ let K = !1;
8647
8647
  const M = f.current;
8648
- return M && window.getComputedStyle(M, null).getPropertyValue("direction") === "rtl" && (L = !0), function(U) {
8648
+ return M && window.getComputedStyle(M, null).getPropertyValue("direction") === "rtl" && (K = !0), function(U) {
8649
8649
  U.preventDefault();
8650
- const K = f.current;
8651
- if (!K)
8650
+ const L = f.current;
8651
+ if (!L)
8652
8652
  return () => null;
8653
8653
  const {
8654
- direction: Q,
8655
- dragState: ie,
8654
+ direction: ee,
8655
+ dragState: oe,
8656
8656
  id: ye,
8657
8657
  keyboardResizeBy: me,
8658
8658
  onLayout: fe
8659
8659
  } = C.current, {
8660
8660
  layout: Ee,
8661
- panelDataArray: se
8661
+ panelDataArray: ue
8662
8662
  } = D.current, {
8663
8663
  initialLayout: Ze
8664
- } = ie ?? {}, pt = $d(ye, N, K);
8665
- let $e = Wm(U, N, Q, ie, me, K);
8666
- const kn = Q === "horizontal";
8667
- kn && L && ($e = -$e);
8668
- const fr = se.map((Y) => Y.constraints), E = Wn({
8664
+ } = oe ?? {}, pt = $d(ye, k, L);
8665
+ let $e = Wm(U, k, ee, oe, me, L);
8666
+ const kn = ee === "horizontal";
8667
+ kn && K && ($e = -$e);
8668
+ const fr = ue.map((Y) => Y.constraints), E = Wn({
8669
8669
  delta: $e,
8670
8670
  initialLayout: Ze ?? Ee,
8671
8671
  panelConstraints: fr,
@@ -8673,45 +8673,45 @@ function Od({
8673
8673
  prevLayout: Ee,
8674
8674
  trigger: pd(U) ? "keyboard" : "mouse-or-touch"
8675
8675
  }), q = !Tr(Ee, E);
8676
- (gd(U) || vd(U)) && $.current != $e && ($.current = $e, !q && $e !== 0 ? kn ? Xi(N, $e < 0 ? yd : bd) : Xi(N, $e < 0 ? Sd : wd) : Xi(N, 0)), q && (v(E), D.current.layout = E, fe && fe(E), Zt(se, E, S.current));
8676
+ (gd(U) || vd(U)) && $.current != $e && ($.current = $e, !q && $e !== 0 ? kn ? Xi(k, $e < 0 ? yd : bd) : Xi(k, $e < 0 ? Sd : wd) : Xi(k, 0)), q && (v(E), D.current.layout = E, fe && fe(E), Zt(ue, E, S.current));
8677
8677
  };
8678
- }, []), R = _e((N, L) => {
8678
+ }, []), V = _e((k, K) => {
8679
8679
  const {
8680
8680
  onLayout: M
8681
8681
  } = C.current, {
8682
8682
  layout: W,
8683
8683
  panelDataArray: U
8684
- } = D.current, K = U.map((Ee) => Ee.constraints), {
8685
- panelSize: Q,
8686
- pivotIndices: ie
8687
- } = Dt(U, N, W);
8688
- re(Q != null, `Panel size not found for panel "${N.id}"`);
8689
- const me = fn(U, N) === U.length - 1 ? Q - L : L - Q, fe = Wn({
8684
+ } = D.current, L = U.map((Ee) => Ee.constraints), {
8685
+ panelSize: ee,
8686
+ pivotIndices: oe
8687
+ } = Dt(U, k, W);
8688
+ ie(ee != null, `Panel size not found for panel "${k.id}"`);
8689
+ const me = fn(U, k) === U.length - 1 ? ee - K : K - ee, fe = Wn({
8690
8690
  delta: me,
8691
8691
  initialLayout: W,
8692
- panelConstraints: K,
8693
- pivotIndices: ie,
8692
+ panelConstraints: L,
8693
+ pivotIndices: oe,
8694
8694
  prevLayout: W,
8695
8695
  trigger: "imperative-api"
8696
8696
  });
8697
8697
  Tr(W, fe) || (v(fe), D.current.layout = fe, M && M(fe), Zt(U, fe, S.current));
8698
- }, []), F = _e((N, L) => {
8698
+ }, []), A = _e((k, K) => {
8699
8699
  const {
8700
8700
  layout: M,
8701
8701
  panelDataArray: W
8702
8702
  } = D.current, {
8703
8703
  collapsedSize: U = 0,
8704
- collapsible: K
8705
- } = L, {
8706
- collapsedSize: Q = 0,
8707
- collapsible: ie,
8704
+ collapsible: L
8705
+ } = K, {
8706
+ collapsedSize: ee = 0,
8707
+ collapsible: oe,
8708
8708
  maxSize: ye = 100,
8709
8709
  minSize: me = 0
8710
- } = N.constraints, {
8710
+ } = k.constraints, {
8711
8711
  panelSize: fe
8712
- } = Dt(W, N, M);
8713
- fe != null && (K && ie && ut(fe, U) ? ut(U, Q) || R(N, Q) : fe < me ? R(N, me) : fe > ye && R(N, ye));
8714
- }, [R]), I = _e((N, L) => {
8712
+ } = Dt(W, k, M);
8713
+ fe != null && (L && oe && ut(fe, U) ? ut(U, ee) || V(k, ee) : fe < me ? V(k, me) : fe > ye && V(k, ye));
8714
+ }, [V]), I = _e((k, K) => {
8715
8715
  const {
8716
8716
  direction: M
8717
8717
  } = C.current, {
@@ -8719,41 +8719,41 @@ function Od({
8719
8719
  } = D.current;
8720
8720
  if (!f.current)
8721
8721
  return;
8722
- const U = Ei(N, f.current);
8723
- re(U, `Drag handle element not found for id "${N}"`);
8724
- const K = Td(M, L);
8722
+ const U = Ei(k, f.current);
8723
+ ie(U, `Drag handle element not found for id "${k}"`);
8724
+ const L = Td(M, K);
8725
8725
  d({
8726
- dragHandleId: N,
8726
+ dragHandleId: k,
8727
8727
  dragHandleRect: U.getBoundingClientRect(),
8728
- initialCursorPosition: K,
8728
+ initialCursorPosition: L,
8729
8729
  initialLayout: W
8730
8730
  });
8731
- }, []), G = _e(() => {
8731
+ }, []), H = _e(() => {
8732
8732
  d(null);
8733
- }, []), te = _e((N) => {
8733
+ }, []), J = _e((k) => {
8734
8734
  const {
8735
- panelDataArray: L
8736
- } = D.current, M = fn(L, N);
8737
- M >= 0 && (L.splice(M, 1), delete S.current[N.id], D.current.panelDataArrayChanged = !0, b());
8738
- }, [b]), ue = xm(() => ({
8735
+ panelDataArray: K
8736
+ } = D.current, M = fn(K, k);
8737
+ M >= 0 && (K.splice(M, 1), delete S.current[k.id], D.current.panelDataArrayChanged = !0, b());
8738
+ }, [b]), ne = xm(() => ({
8739
8739
  collapsePanel: y,
8740
8740
  direction: r,
8741
8741
  dragState: m,
8742
8742
  expandPanel: _,
8743
8743
  getPanelSize: B,
8744
- getPanelStyle: k,
8744
+ getPanelStyle: N,
8745
8745
  groupId: p,
8746
- isPanelCollapsed: H,
8746
+ isPanelCollapsed: z,
8747
8747
  isPanelExpanded: w,
8748
- reevaluatePanelConstraints: F,
8748
+ reevaluatePanelConstraints: A,
8749
8749
  registerPanel: O,
8750
- registerResizeHandle: z,
8751
- resizePanel: R,
8750
+ registerResizeHandle: j,
8751
+ resizePanel: V,
8752
8752
  startDragging: I,
8753
- stopDragging: G,
8754
- unregisterPanel: te,
8753
+ stopDragging: H,
8754
+ unregisterPanel: J,
8755
8755
  panelGroupElement: f.current
8756
- }), [y, m, r, _, B, k, p, H, w, F, O, z, R, I, G, te]), A = {
8756
+ }), [y, m, r, _, B, N, p, z, w, A, O, j, V, I, H, J]), R = {
8757
8757
  display: "flex",
8758
8758
  flexDirection: r === "horizontal" ? "row" : "column",
8759
8759
  height: "100%",
@@ -8761,7 +8761,7 @@ function Od({
8761
8761
  width: "100%"
8762
8762
  };
8763
8763
  return Tn(bi.Provider, {
8764
- value: ue
8764
+ value: ne
8765
8765
  }, Tn(c, {
8766
8766
  ...h,
8767
8767
  children: e,
@@ -8769,7 +8769,7 @@ function Od({
8769
8769
  id: o,
8770
8770
  ref: f,
8771
8771
  style: {
8772
- ...A,
8772
+ ...R,
8773
8773
  ...u
8774
8774
  },
8775
8775
  // CSS selectors
@@ -8822,9 +8822,9 @@ function Jm({
8822
8822
  case "F6": {
8823
8823
  a.preventDefault();
8824
8824
  const l = i.getAttribute("data-panel-group-id");
8825
- re(l, `No group element found for id "${l}"`);
8825
+ ie(l, `No group element found for id "${l}"`);
8826
8826
  const s = nr(l, r), u = Ed(l, e, r);
8827
- re(u !== null, `No resize element found for id "${e}"`);
8827
+ ie(u !== null, `No resize element found for id "${e}"`);
8828
8828
  const c = a.shiftKey ? u > 0 ? u - 1 : s.length - 1 : u + 1 < s.length ? u + 1 : 0;
8829
8829
  s[c].focus();
8830
8830
  break;
@@ -8867,7 +8867,7 @@ function _d({
8867
8867
  startDragging: P,
8868
8868
  stopDragging: $,
8869
8869
  panelGroupElement: C
8870
- } = g, D = _a(i), [y, _] = Sn("inactive"), [B, k] = Sn(!1), [H, w] = Sn(null), O = ke({
8870
+ } = g, D = _a(i), [y, _] = Sn("inactive"), [B, N] = Sn(!1), [z, w] = Sn(null), O = ke({
8871
8871
  state: y
8872
8872
  });
8873
8873
  Rt(() => {
@@ -8880,48 +8880,48 @@ function _d({
8880
8880
  w(() => I);
8881
8881
  }
8882
8882
  }, [n, D, S]);
8883
- const z = (p = r == null ? void 0 : r.coarse) !== null && p !== void 0 ? p : 15, R = (f = r == null ? void 0 : r.fine) !== null && f !== void 0 ? f : 5;
8883
+ const j = (p = r == null ? void 0 : r.coarse) !== null && p !== void 0 ? p : 15, V = (f = r == null ? void 0 : r.fine) !== null && f !== void 0 ? f : 5;
8884
8884
  return Nt(() => {
8885
- if (n || H == null)
8885
+ if (n || z == null)
8886
8886
  return;
8887
8887
  const I = m.current;
8888
- return re(I, "Element ref not attached"), Km(D, I, v, {
8889
- coarse: z,
8890
- fine: R
8891
- }, (te, ue, A) => {
8892
- if (ue)
8893
- switch (te) {
8888
+ return ie(I, "Element ref not attached"), Km(D, I, v, {
8889
+ coarse: j,
8890
+ fine: V
8891
+ }, (J, ne, R) => {
8892
+ if (ne)
8893
+ switch (J) {
8894
8894
  case "down": {
8895
- _("drag"), re(A, 'Expected event to be defined for "down" action'), P(D, A);
8895
+ _("drag"), ie(R, 'Expected event to be defined for "down" action'), P(D, R);
8896
8896
  const {
8897
- onDragging: N
8897
+ onDragging: k
8898
8898
  } = d.current;
8899
- N && N(!0);
8899
+ k && k(!0);
8900
8900
  break;
8901
8901
  }
8902
8902
  case "move": {
8903
8903
  const {
8904
- state: N
8904
+ state: k
8905
8905
  } = O.current;
8906
- N !== "drag" && _("hover"), re(A, 'Expected event to be defined for "move" action'), H(A);
8906
+ k !== "drag" && _("hover"), ie(R, 'Expected event to be defined for "move" action'), z(R);
8907
8907
  break;
8908
8908
  }
8909
8909
  case "up": {
8910
8910
  _("hover"), $();
8911
8911
  const {
8912
- onDragging: N
8912
+ onDragging: k
8913
8913
  } = d.current;
8914
- N && N(!1);
8914
+ k && k(!1);
8915
8915
  break;
8916
8916
  }
8917
8917
  }
8918
8918
  else
8919
8919
  _("inactive");
8920
8920
  });
8921
- }, [z, v, n, R, S, D, H, P, $]), Jm({
8921
+ }, [j, v, n, V, S, D, z, P, $]), Jm({
8922
8922
  disabled: n,
8923
8923
  handleId: D,
8924
- resizeHandler: H,
8924
+ resizeHandler: z,
8925
8925
  panelGroupElement: C
8926
8926
  }), Tn(c, {
8927
8927
  ...h,
@@ -8929,10 +8929,10 @@ function _d({
8929
8929
  className: e,
8930
8930
  id: i,
8931
8931
  onBlur: () => {
8932
- k(!1), o == null || o();
8932
+ N(!1), o == null || o();
8933
8933
  },
8934
8934
  onFocus: () => {
8935
- k(!0), l == null || l();
8935
+ N(!0), l == null || l();
8936
8936
  },
8937
8937
  ref: m,
8938
8938
  role: "separator",
@@ -8963,14 +8963,14 @@ const Fx = ({
8963
8963
  languages: i,
8964
8964
  enableResize: o = !1
8965
8965
  }) => {
8966
- const [a, l] = oe(!1), { isDesktop: s } = Ia(), [u, c] = oe(
8966
+ const [a, l] = ae(!1), { isDesktop: s } = Ia(), [u, c] = ae(
8967
8967
  Cr(300, s)
8968
- ), [h, p] = oe(
8968
+ ), [h, p] = ae(
8969
8969
  Cr(450, s)
8970
8970
  ), f = () => {
8971
8971
  l(!a);
8972
8972
  };
8973
- return J(() => {
8973
+ return Z(() => {
8974
8974
  const m = () => {
8975
8975
  const d = Cr(300, s), g = Math.min(Cr(450, s), 40);
8976
8976
  c(s ? d : 0), p(o ? g : d);
@@ -9596,7 +9596,7 @@ function no(t, e) {
9596
9596
  return typeof t == "function" ? t(e) : t && (t.current = e), t;
9597
9597
  }
9598
9598
  function By(t, e) {
9599
- var n = oe(function() {
9599
+ var n = ae(function() {
9600
9600
  return {
9601
9601
  // value
9602
9602
  value: t,
@@ -10311,81 +10311,81 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
10311
10311
  }, [r, t, e]), null;
10312
10312
  }, Lb = Xd, Fb = Qd, jb = ef, zb = tf, Fn = '[cmdk-group=""]', ao = '[cmdk-group-items=""]', Hb = '[cmdk-group-heading=""]', ja = '[cmdk-item=""]', bs = `${ja}:not([aria-disabled="true"])`, Jo = "cmdk-item-select", Pt = "data-value", Bb = (t, e, n) => ly(t, e, n), sf = x.createContext(void 0), dr = () => x.useContext(sf), uf = x.createContext(void 0), za = () => x.useContext(uf), cf = x.createContext(void 0), df = x.forwardRef((t, e) => {
10313
10313
  let n = hn(() => {
10314
- var A, N;
10315
- return { search: "", value: (N = (A = t.value) != null ? A : t.defaultValue) != null ? N : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
10314
+ var R, k;
10315
+ return { search: "", value: (k = (R = t.value) != null ? R : t.defaultValue) != null ? k : "", filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
10316
10316
  }), r = hn(() => /* @__PURE__ */ new Set()), i = hn(() => /* @__PURE__ */ new Map()), o = hn(() => /* @__PURE__ */ new Map()), a = hn(() => /* @__PURE__ */ new Set()), l = ff(t), { label: s, children: u, value: c, onValueChange: h, filter: p, shouldFilter: f, loop: m, disablePointerSelection: d = !1, vimBindings: g = !0, ...v } = t, b = dt(), S = dt(), P = dt(), $ = x.useRef(null), C = eS();
10317
10317
  Bt(() => {
10318
10318
  if (c !== void 0) {
10319
- let A = c.trim();
10320
- n.current.value = A, D.emit();
10319
+ let R = c.trim();
10320
+ n.current.value = R, D.emit();
10321
10321
  }
10322
10322
  }, [c]), Bt(() => {
10323
10323
  C(6, w);
10324
10324
  }, []);
10325
- let D = x.useMemo(() => ({ subscribe: (A) => (a.current.add(A), () => a.current.delete(A)), snapshot: () => n.current, setState: (A, N, L) => {
10325
+ let D = x.useMemo(() => ({ subscribe: (R) => (a.current.add(R), () => a.current.delete(R)), snapshot: () => n.current, setState: (R, k, K) => {
10326
10326
  var M, W, U;
10327
- if (!Object.is(n.current[A], N)) {
10328
- if (n.current[A] = N, A === "search") H(), B(), C(1, k);
10329
- else if (A === "value" && (L || C(5, w), ((M = l.current) == null ? void 0 : M.value) !== void 0)) {
10330
- let K = N ?? "";
10331
- (U = (W = l.current).onValueChange) == null || U.call(W, K);
10327
+ if (!Object.is(n.current[R], k)) {
10328
+ if (n.current[R] = k, R === "search") z(), B(), C(1, N);
10329
+ else if (R === "value" && (K || C(5, w), ((M = l.current) == null ? void 0 : M.value) !== void 0)) {
10330
+ let L = k ?? "";
10331
+ (U = (W = l.current).onValueChange) == null || U.call(W, L);
10332
10332
  return;
10333
10333
  }
10334
10334
  D.emit();
10335
10335
  }
10336
10336
  }, emit: () => {
10337
- a.current.forEach((A) => A());
10338
- } }), []), y = x.useMemo(() => ({ value: (A, N, L) => {
10337
+ a.current.forEach((R) => R());
10338
+ } }), []), y = x.useMemo(() => ({ value: (R, k, K) => {
10339
10339
  var M;
10340
- N !== ((M = o.current.get(A)) == null ? void 0 : M.value) && (o.current.set(A, { value: N, keywords: L }), n.current.filtered.items.set(A, _(N, L)), C(2, () => {
10340
+ k !== ((M = o.current.get(R)) == null ? void 0 : M.value) && (o.current.set(R, { value: k, keywords: K }), n.current.filtered.items.set(R, _(k, K)), C(2, () => {
10341
10341
  B(), D.emit();
10342
10342
  }));
10343
- }, item: (A, N) => (r.current.add(A), N && (i.current.has(N) ? i.current.get(N).add(A) : i.current.set(N, /* @__PURE__ */ new Set([A]))), C(3, () => {
10344
- H(), B(), n.current.value || k(), D.emit();
10343
+ }, item: (R, k) => (r.current.add(R), k && (i.current.has(k) ? i.current.get(k).add(R) : i.current.set(k, /* @__PURE__ */ new Set([R]))), C(3, () => {
10344
+ z(), B(), n.current.value || N(), D.emit();
10345
10345
  }), () => {
10346
- o.current.delete(A), r.current.delete(A), n.current.filtered.items.delete(A);
10347
- let L = O();
10346
+ o.current.delete(R), r.current.delete(R), n.current.filtered.items.delete(R);
10347
+ let K = O();
10348
10348
  C(4, () => {
10349
- H(), (L == null ? void 0 : L.getAttribute("id")) === A && k(), D.emit();
10349
+ z(), (K == null ? void 0 : K.getAttribute("id")) === R && N(), D.emit();
10350
10350
  });
10351
- }), group: (A) => (i.current.has(A) || i.current.set(A, /* @__PURE__ */ new Set()), () => {
10352
- o.current.delete(A), i.current.delete(A);
10351
+ }), group: (R) => (i.current.has(R) || i.current.set(R, /* @__PURE__ */ new Set()), () => {
10352
+ o.current.delete(R), i.current.delete(R);
10353
10353
  }), filter: () => l.current.shouldFilter, label: s || t["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: b, inputId: P, labelId: S, listInnerRef: $ }), []);
10354
- function _(A, N) {
10355
- var L, M;
10356
- let W = (M = (L = l.current) == null ? void 0 : L.filter) != null ? M : Bb;
10357
- return A ? W(A, n.current.search, N) : 0;
10354
+ function _(R, k) {
10355
+ var K, M;
10356
+ let W = (M = (K = l.current) == null ? void 0 : K.filter) != null ? M : Bb;
10357
+ return R ? W(R, n.current.search, k) : 0;
10358
10358
  }
10359
10359
  function B() {
10360
10360
  if (!n.current.search || l.current.shouldFilter === !1) return;
10361
- let A = n.current.filtered.items, N = [];
10361
+ let R = n.current.filtered.items, k = [];
10362
10362
  n.current.filtered.groups.forEach((M) => {
10363
10363
  let W = i.current.get(M), U = 0;
10364
- W.forEach((K) => {
10365
- let Q = A.get(K);
10366
- U = Math.max(Q, U);
10367
- }), N.push([M, U]);
10364
+ W.forEach((L) => {
10365
+ let ee = R.get(L);
10366
+ U = Math.max(ee, U);
10367
+ }), k.push([M, U]);
10368
10368
  });
10369
- let L = $.current;
10370
- z().sort((M, W) => {
10371
- var U, K;
10372
- let Q = M.getAttribute("id"), ie = W.getAttribute("id");
10373
- return ((U = A.get(ie)) != null ? U : 0) - ((K = A.get(Q)) != null ? K : 0);
10369
+ let K = $.current;
10370
+ j().sort((M, W) => {
10371
+ var U, L;
10372
+ let ee = M.getAttribute("id"), oe = W.getAttribute("id");
10373
+ return ((U = R.get(oe)) != null ? U : 0) - ((L = R.get(ee)) != null ? L : 0);
10374
10374
  }).forEach((M) => {
10375
10375
  let W = M.closest(ao);
10376
- W ? W.appendChild(M.parentElement === W ? M : M.closest(`${ao} > *`)) : L.appendChild(M.parentElement === L ? M : M.closest(`${ao} > *`));
10377
- }), N.sort((M, W) => W[1] - M[1]).forEach((M) => {
10376
+ W ? W.appendChild(M.parentElement === W ? M : M.closest(`${ao} > *`)) : K.appendChild(M.parentElement === K ? M : M.closest(`${ao} > *`));
10377
+ }), k.sort((M, W) => W[1] - M[1]).forEach((M) => {
10378
10378
  var W;
10379
10379
  let U = (W = $.current) == null ? void 0 : W.querySelector(`${Fn}[${Pt}="${encodeURIComponent(M[0])}"]`);
10380
10380
  U == null || U.parentElement.appendChild(U);
10381
10381
  });
10382
10382
  }
10383
- function k() {
10384
- let A = z().find((L) => L.getAttribute("aria-disabled") !== "true"), N = A == null ? void 0 : A.getAttribute(Pt);
10385
- D.setState("value", N || void 0);
10383
+ function N() {
10384
+ let R = j().find((K) => K.getAttribute("aria-disabled") !== "true"), k = R == null ? void 0 : R.getAttribute(Pt);
10385
+ D.setState("value", k || void 0);
10386
10386
  }
10387
- function H() {
10388
- var A, N, L, M;
10387
+ function z() {
10388
+ var R, k, K, M;
10389
10389
  if (!n.current.search || l.current.shouldFilter === !1) {
10390
10390
  n.current.filtered.count = r.current.size;
10391
10391
  return;
@@ -10393,87 +10393,87 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
10393
10393
  n.current.filtered.groups = /* @__PURE__ */ new Set();
10394
10394
  let W = 0;
10395
10395
  for (let U of r.current) {
10396
- let K = (N = (A = o.current.get(U)) == null ? void 0 : A.value) != null ? N : "", Q = (M = (L = o.current.get(U)) == null ? void 0 : L.keywords) != null ? M : [], ie = _(K, Q);
10397
- n.current.filtered.items.set(U, ie), ie > 0 && W++;
10396
+ let L = (k = (R = o.current.get(U)) == null ? void 0 : R.value) != null ? k : "", ee = (M = (K = o.current.get(U)) == null ? void 0 : K.keywords) != null ? M : [], oe = _(L, ee);
10397
+ n.current.filtered.items.set(U, oe), oe > 0 && W++;
10398
10398
  }
10399
- for (let [U, K] of i.current) for (let Q of K) if (n.current.filtered.items.get(Q) > 0) {
10399
+ for (let [U, L] of i.current) for (let ee of L) if (n.current.filtered.items.get(ee) > 0) {
10400
10400
  n.current.filtered.groups.add(U);
10401
10401
  break;
10402
10402
  }
10403
10403
  n.current.filtered.count = W;
10404
10404
  }
10405
10405
  function w() {
10406
- var A, N, L;
10406
+ var R, k, K;
10407
10407
  let M = O();
10408
- M && (((A = M.parentElement) == null ? void 0 : A.firstChild) === M && ((L = (N = M.closest(Fn)) == null ? void 0 : N.querySelector(Hb)) == null || L.scrollIntoView({ block: "nearest" })), M.scrollIntoView({ block: "nearest" }));
10408
+ M && (((R = M.parentElement) == null ? void 0 : R.firstChild) === M && ((K = (k = M.closest(Fn)) == null ? void 0 : k.querySelector(Hb)) == null || K.scrollIntoView({ block: "nearest" })), M.scrollIntoView({ block: "nearest" }));
10409
10409
  }
10410
10410
  function O() {
10411
- var A;
10412
- return (A = $.current) == null ? void 0 : A.querySelector(`${ja}[aria-selected="true"]`);
10413
- }
10414
- function z() {
10415
- var A;
10416
- return Array.from(((A = $.current) == null ? void 0 : A.querySelectorAll(bs)) || []);
10417
- }
10418
- function R(A) {
10419
- let N = z()[A];
10420
- N && D.setState("value", N.getAttribute(Pt));
10421
- }
10422
- function F(A) {
10423
- var N;
10424
- let L = O(), M = z(), W = M.findIndex((K) => K === L), U = M[W + A];
10425
- (N = l.current) != null && N.loop && (U = W + A < 0 ? M[M.length - 1] : W + A === M.length ? M[0] : M[W + A]), U && D.setState("value", U.getAttribute(Pt));
10426
- }
10427
- function I(A) {
10428
- let N = O(), L = N == null ? void 0 : N.closest(Fn), M;
10429
- for (; L && !M; ) L = A > 0 ? Zb(L, Fn) : Qb(L, Fn), M = L == null ? void 0 : L.querySelector(bs);
10430
- M ? D.setState("value", M.getAttribute(Pt)) : F(A);
10431
- }
10432
- let G = () => R(z().length - 1), te = (A) => {
10433
- A.preventDefault(), A.metaKey ? G() : A.altKey ? I(1) : F(1);
10434
- }, ue = (A) => {
10435
- A.preventDefault(), A.metaKey ? R(0) : A.altKey ? I(-1) : F(-1);
10411
+ var R;
10412
+ return (R = $.current) == null ? void 0 : R.querySelector(`${ja}[aria-selected="true"]`);
10413
+ }
10414
+ function j() {
10415
+ var R;
10416
+ return Array.from(((R = $.current) == null ? void 0 : R.querySelectorAll(bs)) || []);
10417
+ }
10418
+ function V(R) {
10419
+ let k = j()[R];
10420
+ k && D.setState("value", k.getAttribute(Pt));
10421
+ }
10422
+ function A(R) {
10423
+ var k;
10424
+ let K = O(), M = j(), W = M.findIndex((L) => L === K), U = M[W + R];
10425
+ (k = l.current) != null && k.loop && (U = W + R < 0 ? M[M.length - 1] : W + R === M.length ? M[0] : M[W + R]), U && D.setState("value", U.getAttribute(Pt));
10426
+ }
10427
+ function I(R) {
10428
+ let k = O(), K = k == null ? void 0 : k.closest(Fn), M;
10429
+ for (; K && !M; ) K = R > 0 ? Zb(K, Fn) : Qb(K, Fn), M = K == null ? void 0 : K.querySelector(bs);
10430
+ M ? D.setState("value", M.getAttribute(Pt)) : A(R);
10431
+ }
10432
+ let H = () => V(j().length - 1), J = (R) => {
10433
+ R.preventDefault(), R.metaKey ? H() : R.altKey ? I(1) : A(1);
10434
+ }, ne = (R) => {
10435
+ R.preventDefault(), R.metaKey ? V(0) : R.altKey ? I(-1) : A(-1);
10436
10436
  };
10437
- return x.createElement(Ce.div, { ref: e, tabIndex: -1, ...v, "cmdk-root": "", onKeyDown: (A) => {
10438
- var N;
10439
- if ((N = v.onKeyDown) == null || N.call(v, A), !A.defaultPrevented) switch (A.key) {
10437
+ return x.createElement(Ce.div, { ref: e, tabIndex: -1, ...v, "cmdk-root": "", onKeyDown: (R) => {
10438
+ var k;
10439
+ if ((k = v.onKeyDown) == null || k.call(v, R), !R.defaultPrevented) switch (R.key) {
10440
10440
  case "n":
10441
10441
  case "j": {
10442
- g && A.ctrlKey && te(A);
10442
+ g && R.ctrlKey && J(R);
10443
10443
  break;
10444
10444
  }
10445
10445
  case "ArrowDown": {
10446
- te(A);
10446
+ J(R);
10447
10447
  break;
10448
10448
  }
10449
10449
  case "p":
10450
10450
  case "k": {
10451
- g && A.ctrlKey && ue(A);
10451
+ g && R.ctrlKey && ne(R);
10452
10452
  break;
10453
10453
  }
10454
10454
  case "ArrowUp": {
10455
- ue(A);
10455
+ ne(R);
10456
10456
  break;
10457
10457
  }
10458
10458
  case "Home": {
10459
- A.preventDefault(), R(0);
10459
+ R.preventDefault(), V(0);
10460
10460
  break;
10461
10461
  }
10462
10462
  case "End": {
10463
- A.preventDefault(), G();
10463
+ R.preventDefault(), H();
10464
10464
  break;
10465
10465
  }
10466
10466
  case "Enter":
10467
- if (!A.nativeEvent.isComposing && A.keyCode !== 229) {
10468
- A.preventDefault();
10469
- let L = O();
10470
- if (L) {
10467
+ if (!R.nativeEvent.isComposing && R.keyCode !== 229) {
10468
+ R.preventDefault();
10469
+ let K = O();
10470
+ if (K) {
10471
10471
  let M = new Event(Jo);
10472
- L.dispatchEvent(M);
10472
+ K.dispatchEvent(M);
10473
10473
  }
10474
10474
  }
10475
10475
  }
10476
- } }, x.createElement("label", { "cmdk-label": "", htmlFor: y.inputId, id: y.labelId, style: nS }, s), Ti(t, (A) => x.createElement(uf.Provider, { value: D }, x.createElement(sf.Provider, { value: y }, A))));
10476
+ } }, x.createElement("label", { "cmdk-label": "", htmlFor: y.inputId, id: y.labelId, style: nS }, s), Ti(t, (R) => x.createElement(uf.Provider, { value: D }, x.createElement(sf.Provider, { value: y }, R))));
10477
10477
  }), Wb = x.forwardRef((t, e) => {
10478
10478
  var n, r;
10479
10479
  let i = dt(), o = x.useRef(null), a = x.useContext(cf), l = dr(), s = ff(t), u = (r = (n = s.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
@@ -10657,7 +10657,7 @@ const Ss = ({ withPadding: t = !0 }) => /* @__PURE__ */ T.jsx(
10657
10657
  placeholder: a,
10658
10658
  children: l
10659
10659
  }) => {
10660
- const s = V(null);
10660
+ const s = G(null);
10661
10661
  return /* @__PURE__ */ T.jsx(T.Fragment, { children: /* @__PURE__ */ T.jsx("div", { className: "quick-search-container", children: /* @__PURE__ */ T.jsxs(rr, { label: o, shouldFilter: !1, ref: s, children: [
10662
10662
  i && /* @__PURE__ */ T.jsx(
10663
10663
  rS,
@@ -10758,28 +10758,28 @@ const Ss = ({ withPadding: t = !0 }) => /* @__PURE__ */ T.jsx(
10758
10758
  }
10759
10759
  ), pf = ce(null);
10760
10760
  function Me() {
10761
- const t = ae(pf);
10761
+ const t = le(pf);
10762
10762
  if (t === null)
10763
10763
  throw new Error("No Tree Api Provided");
10764
10764
  return t;
10765
10765
  }
10766
10766
  const gf = ce(null);
10767
10767
  function oS() {
10768
- const t = ae(gf);
10768
+ const t = le(gf);
10769
10769
  if (t === null)
10770
10770
  throw new Error("Provide a NodesContext");
10771
10771
  return t;
10772
10772
  }
10773
10773
  const vf = ce(null);
10774
10774
  function aS() {
10775
- const t = ae(vf);
10775
+ const t = le(vf);
10776
10776
  if (t === null)
10777
10777
  throw new Error("Provide a DnDContext");
10778
10778
  return t;
10779
10779
  }
10780
10780
  const mf = ce(0);
10781
10781
  function yf() {
10782
- ae(mf);
10782
+ le(mf);
10783
10783
  }
10784
10784
  function jr(t, e, n) {
10785
10785
  return Math.max(Math.min(t, n), e);
@@ -10929,7 +10929,7 @@ const dS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10929
10929
  height: "4px",
10930
10930
  boxShadow: "0 0 0 3px #4B91E2",
10931
10931
  borderRadius: "50%"
10932
- }, gS = j.memo(function({ top: e, left: n, indent: r }) {
10932
+ }, gS = F.memo(function({ top: e, left: n, indent: r }) {
10933
10933
  const i = {
10934
10934
  position: "absolute",
10935
10935
  pointerEvents: "none",
@@ -10951,8 +10951,8 @@ function yS(t) {
10951
10951
  return T.jsx(T.Fragment, { children: T.jsx("span", { children: t.node.data.name }) });
10952
10952
  }
10953
10953
  function bS({ node: t }) {
10954
- const e = V();
10955
- return J(() => {
10954
+ const e = G();
10955
+ return Z(() => {
10956
10956
  var n, r;
10957
10957
  (n = e.current) === null || n === void 0 || n.focus(), (r = e.current) === null || r === void 0 || r.select();
10958
10958
  }, []), T.jsx("input", {
@@ -11423,11 +11423,11 @@ function jS(t) {
11423
11423
  if ($.hasOwnProperty(g))
11424
11424
  C = $[g];
11425
11425
  else {
11426
- var D = n(d.props, g, d._instanceProps), y = i(d.props, g, d._instanceProps), _ = b === "horizontal" || P === "horizontal", B = b === "rtl", k = _ ? D : 0;
11426
+ var D = n(d.props, g, d._instanceProps), y = i(d.props, g, d._instanceProps), _ = b === "horizontal" || P === "horizontal", B = b === "rtl", N = _ ? D : 0;
11427
11427
  $[g] = C = {
11428
11428
  position: "absolute",
11429
- left: B ? void 0 : k,
11430
- right: B ? k : void 0,
11429
+ left: B ? void 0 : N,
11430
+ right: B ? N : void 0,
11431
11431
  top: _ ? 0 : D,
11432
11432
  height: _ ? "100%" : y,
11433
11433
  width: _ ? y : "100%"
@@ -11540,36 +11540,36 @@ function jS(t) {
11540
11540
  }, f.componentWillUnmount = function() {
11541
11541
  this._resetIsScrollingTimeoutId !== null && Cs(this._resetIsScrollingTimeoutId);
11542
11542
  }, f.render = function() {
11543
- var d = this.props, g = d.children, v = d.className, b = d.direction, S = d.height, P = d.innerRef, $ = d.innerElementType, C = d.innerTagName, D = d.itemCount, y = d.itemData, _ = d.itemKey, B = _ === void 0 ? FS : _, k = d.layout, H = d.outerElementType, w = d.outerTagName, O = d.style, z = d.useIsScrolling, R = d.width, F = this.state.isScrolling, I = b === "horizontal" || k === "horizontal", G = I ? this._onScrollHorizontal : this._onScrollVertical, te = this._getRangeToRender(), ue = te[0], A = te[1], N = [];
11543
+ var d = this.props, g = d.children, v = d.className, b = d.direction, S = d.height, P = d.innerRef, $ = d.innerElementType, C = d.innerTagName, D = d.itemCount, y = d.itemData, _ = d.itemKey, B = _ === void 0 ? FS : _, N = d.layout, z = d.outerElementType, w = d.outerTagName, O = d.style, j = d.useIsScrolling, V = d.width, A = this.state.isScrolling, I = b === "horizontal" || N === "horizontal", H = I ? this._onScrollHorizontal : this._onScrollVertical, J = this._getRangeToRender(), ne = J[0], R = J[1], k = [];
11544
11544
  if (D > 0)
11545
- for (var L = ue; L <= A; L++)
11546
- N.push(_i(g, {
11545
+ for (var K = ne; K <= R; K++)
11546
+ k.push(_i(g, {
11547
11547
  data: y,
11548
- key: B(L, y),
11549
- index: L,
11550
- isScrolling: z ? F : void 0,
11551
- style: this._getItemStyle(L)
11548
+ key: B(K, y),
11549
+ index: K,
11550
+ isScrolling: j ? A : void 0,
11551
+ style: this._getItemStyle(K)
11552
11552
  }));
11553
11553
  var M = r(this.props, this._instanceProps);
11554
- return _i(H || w || "div", {
11554
+ return _i(z || w || "div", {
11555
11555
  className: v,
11556
- onScroll: G,
11556
+ onScroll: H,
11557
11557
  ref: this._outerRefSetter,
11558
11558
  style: Qo({
11559
11559
  position: "relative",
11560
11560
  height: S,
11561
- width: R,
11561
+ width: V,
11562
11562
  overflow: "auto",
11563
11563
  WebkitOverflowScrolling: "touch",
11564
11564
  willChange: "transform",
11565
11565
  direction: b
11566
11566
  }, O)
11567
11567
  }, _i($ || C || "div", {
11568
- children: N,
11568
+ children: k,
11569
11569
  ref: P,
11570
11570
  style: {
11571
11571
  height: I ? "100%" : M,
11572
- pointerEvents: F ? "none" : void 0,
11572
+ pointerEvents: A ? "none" : void 0,
11573
11573
  width: I ? M : "100%"
11574
11574
  }
11575
11575
  }));
@@ -11733,7 +11733,7 @@ var Nf = ce({
11733
11733
  (function(t) {
11734
11734
  t.SOURCE = "SOURCE", t.TARGET = "TARGET";
11735
11735
  })(He || (He = {}));
11736
- function ee(t, e) {
11736
+ function te(t, e) {
11737
11737
  for (var n = arguments.length, r = new Array(n > 2 ? n - 2 : 0), i = 2; i < n; i++)
11738
11738
  r[i - 2] = arguments[i];
11739
11739
  if (process.env.NODE_ENV !== "production" && e === void 0)
@@ -11841,15 +11841,15 @@ function ew(t) {
11841
11841
  };
11842
11842
  }
11843
11843
  function tw(t, e, n) {
11844
- ee(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(r) {
11845
- ee(n.getSource(r), "Expected sourceIds to be registered.");
11844
+ te(!e.isDragging(), "Cannot call beginDrag while dragging."), t.forEach(function(r) {
11845
+ te(n.getSource(r), "Expected sourceIds to be registered.");
11846
11846
  });
11847
11847
  }
11848
11848
  function nw(t) {
11849
- ee(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
11849
+ te(typeof t == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
11850
11850
  }
11851
11851
  function rw(t) {
11852
- ee(Rf(t), "Item must be an object.");
11852
+ te(Rf(t), "Item must be an object.");
11853
11853
  }
11854
11854
  function iw(t, e) {
11855
11855
  for (var n = null, r = t.length - 1; r >= 0; r--)
@@ -11890,15 +11890,15 @@ function aw(t) {
11890
11890
  };
11891
11891
  }
11892
11892
  function lw(t) {
11893
- ee(Array.isArray(t), "Expected targetIds to be an array.");
11893
+ te(Array.isArray(t), "Expected targetIds to be an array.");
11894
11894
  }
11895
11895
  function sw(t, e, n) {
11896
- ee(e.isDragging(), "Cannot call hover while not dragging."), ee(!e.didDrop(), "Cannot call hover after drop.");
11896
+ te(e.isDragging(), "Cannot call hover while not dragging."), te(!e.didDrop(), "Cannot call hover after drop.");
11897
11897
  for (var r = 0; r < t.length; r++) {
11898
11898
  var i = t[r];
11899
- ee(t.lastIndexOf(i) === r, "Expected targetIds to be unique in the passed array.");
11899
+ te(t.lastIndexOf(i) === r, "Expected targetIds to be unique in the passed array.");
11900
11900
  var o = n.getTarget(i);
11901
- ee(o, "Expected targetIds to be registered.");
11901
+ te(o, "Expected targetIds to be registered.");
11902
11902
  }
11903
11903
  }
11904
11904
  function uw(t, e, n) {
@@ -11954,14 +11954,14 @@ function fw(t) {
11954
11954
  };
11955
11955
  }
11956
11956
  function hw(t) {
11957
- ee(t.isDragging(), "Cannot call drop while not dragging."), ee(!t.didDrop(), "Cannot call drop twice during one drag operation.");
11957
+ te(t.isDragging(), "Cannot call drop while not dragging."), te(!t.didDrop(), "Cannot call drop twice during one drag operation.");
11958
11958
  }
11959
11959
  function pw(t, e, n, r) {
11960
11960
  var i = n.getTarget(t), o = i ? i.drop(r, t) : void 0;
11961
11961
  return gw(o), typeof o > "u" && (o = e === 0 ? {} : r.getDropResult()), o;
11962
11962
  }
11963
11963
  function gw(t) {
11964
- ee(typeof t > "u" || Rf(t), "Drop result must either be an object or undefined.");
11964
+ te(typeof t > "u" || Rf(t), "Drop result must either be an object or undefined.");
11965
11965
  }
11966
11966
  function vw(t) {
11967
11967
  var e = t.getTargetIds().filter(t.canDropOnTarget, t);
@@ -11982,7 +11982,7 @@ function mw(t) {
11982
11982
  };
11983
11983
  }
11984
11984
  function yw(t) {
11985
- ee(t.isDragging(), "Cannot call endDrag while not dragging.");
11985
+ te(t.isDragging(), "Cannot call endDrag while not dragging.");
11986
11986
  }
11987
11987
  function bw(t) {
11988
11988
  return {
@@ -12530,7 +12530,7 @@ var Qw = /* @__PURE__ */ function() {
12530
12530
  var r = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
12531
12531
  handlerIds: void 0
12532
12532
  }, o = i.handlerIds;
12533
- ee(typeof n == "function", "listener must be a function."), ee(typeof o > "u" || Array.isArray(o), "handlerIds, when specified, must be an array of strings.");
12533
+ te(typeof n == "function", "listener must be a function."), te(typeof o > "u" || Array.isArray(o), "handlerIds, when specified, must be an array of strings.");
12534
12534
  var a = this.store.getState().stateId, l = function() {
12535
12535
  var u = r.store.getState(), c = u.stateId;
12536
12536
  try {
@@ -12546,7 +12546,7 @@ var Qw = /* @__PURE__ */ function() {
12546
12546
  key: "subscribeToOffsetChange",
12547
12547
  value: function(n) {
12548
12548
  var r = this;
12549
- ee(typeof n == "function", "listener must be a function.");
12549
+ te(typeof n == "function", "listener must be a function.");
12550
12550
  var i = this.store.getState().dragOffset, o = function() {
12551
12551
  var l = r.store.getState().dragOffset;
12552
12552
  l !== i && (i = l, n());
@@ -12559,7 +12559,7 @@ var Qw = /* @__PURE__ */ function() {
12559
12559
  if (!n)
12560
12560
  return !1;
12561
12561
  var r = this.registry.getSource(n);
12562
- return ee(r, "Expected to find a valid source. sourceId=".concat(n)), this.isDragging() ? !1 : r.canDrag(this, n);
12562
+ return te(r, "Expected to find a valid source. sourceId=".concat(n)), this.isDragging() ? !1 : r.canDrag(this, n);
12563
12563
  }
12564
12564
  }, {
12565
12565
  key: "canDropOnTarget",
@@ -12567,7 +12567,7 @@ var Qw = /* @__PURE__ */ function() {
12567
12567
  if (!n)
12568
12568
  return !1;
12569
12569
  var r = this.registry.getTarget(n);
12570
- if (ee(r, "Expected to find a valid target. targetId=".concat(n)), !this.isDragging() || this.didDrop())
12570
+ if (te(r, "Expected to find a valid target. targetId=".concat(n)), !this.isDragging() || this.didDrop())
12571
12571
  return !1;
12572
12572
  var i = this.registry.getTargetType(n), o = this.getItemType();
12573
12573
  return ta(i, o) && r.canDrop(this, n);
@@ -12583,7 +12583,7 @@ var Qw = /* @__PURE__ */ function() {
12583
12583
  if (!n)
12584
12584
  return !1;
12585
12585
  var r = this.registry.getSource(n, !0);
12586
- if (ee(r, "Expected to find a valid source. sourceId=".concat(n)), !this.isDragging() || !this.isSourcePublic())
12586
+ if (te(r, "Expected to find a valid source. sourceId=".concat(n)), !this.isDragging() || !this.isSourcePublic())
12587
12587
  return !1;
12588
12588
  var i = this.registry.getSourceType(n), o = this.getItemType();
12589
12589
  return i !== o ? !1 : r.isDragging(this, n);
@@ -12682,10 +12682,10 @@ function Wr(t) {
12682
12682
  }, Wr(t);
12683
12683
  }
12684
12684
  function n0(t) {
12685
- ee(typeof t.canDrag == "function", "Expected canDrag to be a function."), ee(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), ee(typeof t.endDrag == "function", "Expected endDrag to be a function.");
12685
+ te(typeof t.canDrag == "function", "Expected canDrag to be a function."), te(typeof t.beginDrag == "function", "Expected beginDrag to be a function."), te(typeof t.endDrag == "function", "Expected endDrag to be a function.");
12686
12686
  }
12687
12687
  function r0(t) {
12688
- ee(typeof t.canDrop == "function", "Expected canDrop to be a function."), ee(typeof t.hover == "function", "Expected hover to be a function."), ee(typeof t.drop == "function", "Expected beginDrag to be a function.");
12688
+ te(typeof t.canDrop == "function", "Expected canDrop to be a function."), te(typeof t.hover == "function", "Expected hover to be a function."), te(typeof t.drop == "function", "Expected beginDrag to be a function.");
12689
12689
  }
12690
12690
  function na(t, e) {
12691
12691
  if (e && Array.isArray(t)) {
@@ -12694,7 +12694,7 @@ function na(t, e) {
12694
12694
  });
12695
12695
  return;
12696
12696
  }
12697
- ee(typeof t == "string" || Wr(t) === "symbol", e ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
12697
+ te(typeof t == "string" || Wr(t) === "symbol", e ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
12698
12698
  }
12699
12699
  const zs = typeof global < "u" ? global : self, Kf = zs.MutationObserver || zs.WebKitMutationObserver;
12700
12700
  function Lf(t) {
@@ -12895,7 +12895,7 @@ function Bs(t) {
12895
12895
  case "T":
12896
12896
  return He.TARGET;
12897
12897
  default:
12898
- ee(!1, "Cannot parse handler ID: ".concat(t));
12898
+ te(!1, "Cannot parse handler ID: ".concat(t));
12899
12899
  }
12900
12900
  }
12901
12901
  function Ws(t, e) {
@@ -12935,24 +12935,24 @@ var S0 = /* @__PURE__ */ function() {
12935
12935
  key: "getSource",
12936
12936
  value: function(n) {
12937
12937
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
12938
- ee(this.isSourceId(n), "Expected a valid source ID.");
12938
+ te(this.isSourceId(n), "Expected a valid source ID.");
12939
12939
  var i = r && n === this.pinnedSourceId, o = i ? this.pinnedSource : this.dragSources.get(n);
12940
12940
  return o;
12941
12941
  }
12942
12942
  }, {
12943
12943
  key: "getTarget",
12944
12944
  value: function(n) {
12945
- return ee(this.isTargetId(n), "Expected a valid target ID."), this.dropTargets.get(n);
12945
+ return te(this.isTargetId(n), "Expected a valid target ID."), this.dropTargets.get(n);
12946
12946
  }
12947
12947
  }, {
12948
12948
  key: "getSourceType",
12949
12949
  value: function(n) {
12950
- return ee(this.isSourceId(n), "Expected a valid source ID."), this.types.get(n);
12950
+ return te(this.isSourceId(n), "Expected a valid source ID."), this.types.get(n);
12951
12951
  }
12952
12952
  }, {
12953
12953
  key: "getTargetType",
12954
12954
  value: function(n) {
12955
- return ee(this.isTargetId(n), "Expected a valid target ID."), this.types.get(n);
12955
+ return te(this.isTargetId(n), "Expected a valid target ID."), this.types.get(n);
12956
12956
  }
12957
12957
  }, {
12958
12958
  key: "isSourceId",
@@ -12970,25 +12970,25 @@ var S0 = /* @__PURE__ */ function() {
12970
12970
  key: "removeSource",
12971
12971
  value: function(n) {
12972
12972
  var r = this;
12973
- ee(this.getSource(n), "Expected an existing source."), this.store.dispatch(Mw(n)), c0(function() {
12973
+ te(this.getSource(n), "Expected an existing source."), this.store.dispatch(Mw(n)), c0(function() {
12974
12974
  r.dragSources.delete(n), r.types.delete(n);
12975
12975
  });
12976
12976
  }
12977
12977
  }, {
12978
12978
  key: "removeTarget",
12979
12979
  value: function(n) {
12980
- ee(this.getTarget(n), "Expected an existing target."), this.store.dispatch(Kw(n)), this.dropTargets.delete(n), this.types.delete(n);
12980
+ te(this.getTarget(n), "Expected an existing target."), this.store.dispatch(Kw(n)), this.dropTargets.delete(n), this.types.delete(n);
12981
12981
  }
12982
12982
  }, {
12983
12983
  key: "pinSource",
12984
12984
  value: function(n) {
12985
12985
  var r = this.getSource(n);
12986
- ee(r, "Expected an existing source."), this.pinnedSourceId = n, this.pinnedSource = r;
12986
+ te(r, "Expected an existing source."), this.pinnedSourceId = n, this.pinnedSource = r;
12987
12987
  }
12988
12988
  }, {
12989
12989
  key: "unpinSource",
12990
12990
  value: function() {
12991
- ee(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
12991
+ te(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
12992
12992
  }
12993
12993
  }, {
12994
12994
  key: "addHandler",
@@ -13072,7 +13072,7 @@ function I0(t, e) {
13072
13072
  }
13073
13073
  var Vs = 0, Ur = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__"), _0 = da(function(e) {
13074
13074
  var n = e.children, r = O0(e, $0), i = k0(r), o = x0(i, 2), a = o[0], l = o[1];
13075
- return J(function() {
13075
+ return Z(function() {
13076
13076
  if (l) {
13077
13077
  var s = jf();
13078
13078
  return ++Vs, function() {
@@ -13137,7 +13137,7 @@ var ho = !1, po = !1, K0 = /* @__PURE__ */ function() {
13137
13137
  }, {
13138
13138
  key: "canDrag",
13139
13139
  value: function() {
13140
- ee(!ho, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
13140
+ te(!ho, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
13141
13141
  try {
13142
13142
  return ho = !0, this.internalMonitor.canDragSource(this.sourceId);
13143
13143
  } finally {
@@ -13149,7 +13149,7 @@ var ho = !1, po = !1, K0 = /* @__PURE__ */ function() {
13149
13149
  value: function() {
13150
13150
  if (!this.sourceId)
13151
13151
  return !1;
13152
- ee(!po, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
13152
+ te(!po, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
13153
13153
  try {
13154
13154
  return po = !0, this.internalMonitor.isDraggingSource(this.sourceId);
13155
13155
  } finally {
@@ -13288,7 +13288,7 @@ var go = !1, z0 = /* @__PURE__ */ function() {
13288
13288
  value: function() {
13289
13289
  if (!this.targetId)
13290
13290
  return !1;
13291
- ee(!go, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
13291
+ te(!go, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
13292
13292
  try {
13293
13293
  return go = !0, this.internalMonitor.canDropOnTarget(this.targetId);
13294
13294
  } finally {
@@ -13387,7 +13387,7 @@ function Ys(t, e) {
13387
13387
  }
13388
13388
  function W0(t, e) {
13389
13389
  var n = t.ref;
13390
- return ee(typeof n != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), n ? Co(t, {
13390
+ return te(typeof n != "string", "Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://reactjs.org/docs/refs-and-the-dom.html#callback-refs"), n ? Co(t, {
13391
13391
  ref: function(i) {
13392
13392
  Ys(n, i), Ys(e, i);
13393
13393
  }
@@ -13671,7 +13671,7 @@ function eE(t, e, n) {
13671
13671
  return r.removeSource(i);
13672
13672
  }];
13673
13673
  }
13674
- var Ut = typeof window < "u" ? xu : J;
13674
+ var Ut = typeof window < "u" ? xu : Z;
13675
13675
  function Gr(t) {
13676
13676
  "@babel/helpers - typeof";
13677
13677
  return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Gr = function(n) {
@@ -13730,18 +13730,18 @@ function oE(t, e, n) {
13730
13730
  var r = X(function() {
13731
13731
  return new iE(t, e, n);
13732
13732
  }, [e, n]);
13733
- return J(function() {
13733
+ return Z(function() {
13734
13734
  r.spec = t;
13735
13735
  }, [t]), r;
13736
13736
  }
13737
13737
  function qt() {
13738
- var t = ae(Nf), e = t.dragDropManager;
13739
- return ee(e != null, "Expected drag drop context"), e;
13738
+ var t = le(Nf), e = t.dragDropManager;
13739
+ return te(e != null, "Expected drag drop context"), e;
13740
13740
  }
13741
13741
  function aE(t) {
13742
13742
  return X(function() {
13743
13743
  var e = t.type;
13744
- return ee(e != null, "spec.type must be defined"), e;
13744
+ return te(e != null, "spec.type must be defined"), e;
13745
13745
  }, [t]);
13746
13746
  }
13747
13747
  function lE(t, e) {
@@ -13923,9 +13923,9 @@ function DE(t) {
13923
13923
  if (Array.isArray(t)) return t;
13924
13924
  }
13925
13925
  function Bf(t, e, n) {
13926
- var r = oe(function() {
13926
+ var r = ae(function() {
13927
13927
  return e(t);
13928
- }), i = $E(r, 2), o = i[0], a = i[1], l = Z(function() {
13928
+ }), i = $E(r, 2), o = i[0], a = i[1], l = Q(function() {
13929
13929
  var s = e(t);
13930
13930
  EE(o, s) || (a(s), n && n());
13931
13931
  }, [o, t, n]);
@@ -14003,14 +14003,14 @@ function AE(t) {
14003
14003
  }
14004
14004
  function ME(t, e) {
14005
14005
  var n = Hf(t, e);
14006
- ee(!n.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
14006
+ te(!n.begin, "useDrag::spec.begin was deprecated in v14. Replace spec.begin() with spec.item(). (see more here - https://react-dnd.github.io/react-dnd/docs/api/use-drag)");
14007
14007
  var r = yE(), i = bE(n.options, n.previewOptions);
14008
14008
  return fE(n, r, i), [Wf(n.collect, r, i), RE(i), AE(i)];
14009
14009
  }
14010
14010
  function KE(t) {
14011
14011
  var e = t.accept;
14012
14012
  return X(function() {
14013
- return ee(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [e];
14013
+ return te(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [e];
14014
14014
  }, [e]);
14015
14015
  }
14016
14016
  function LE(t, e) {
@@ -14058,7 +14058,7 @@ function HE(t, e) {
14058
14058
  var n = X(function() {
14059
14059
  return new zE(t, e);
14060
14060
  }, [e]);
14061
- return J(function() {
14061
+ return Z(function() {
14062
14062
  n.spec = t;
14063
14063
  }, [t]), n;
14064
14064
  }
@@ -14184,9 +14184,9 @@ function n$(t) {
14184
14184
  }
14185
14185
  function r$(t) {
14186
14186
  var e = qt(), n = e.getMonitor(), r = Bf(n, t), i = ZE(r, 2), o = i[0], a = i[1];
14187
- return J(function() {
14187
+ return Z(function() {
14188
14188
  return n.subscribeToOffsetChange(a);
14189
- }), J(function() {
14189
+ }), Z(function() {
14190
14190
  return n.subscribeToStateChange(a);
14191
14191
  }), o;
14192
14192
  }
@@ -14583,7 +14583,7 @@ function su(t) {
14583
14583
  for (var e = 1; e < arguments.length; e++) {
14584
14584
  var n = arguments[e] != null ? arguments[e] : {};
14585
14585
  e % 2 ? lu(Object(n), !0).forEach(function(r) {
14586
- le(t, r, n[r]);
14586
+ se(t, r, n[r]);
14587
14587
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n)) : lu(Object(n)).forEach(function(r) {
14588
14588
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(n, r));
14589
14589
  });
@@ -14603,25 +14603,25 @@ function P$(t, e) {
14603
14603
  function O$(t, e, n) {
14604
14604
  return P$(t.prototype, e), t;
14605
14605
  }
14606
- function le(t, e, n) {
14606
+ function se(t, e, n) {
14607
14607
  return e in t ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = n, t;
14608
14608
  }
14609
14609
  var I$ = /* @__PURE__ */ function() {
14610
14610
  function t(e, n, r) {
14611
14611
  var i = this;
14612
- D$(this, t), le(this, "options", void 0), le(this, "actions", void 0), le(this, "monitor", void 0), le(this, "registry", void 0), le(this, "enterLeaveCounter", void 0), le(this, "sourcePreviewNodes", /* @__PURE__ */ new Map()), le(this, "sourcePreviewNodeOptions", /* @__PURE__ */ new Map()), le(this, "sourceNodes", /* @__PURE__ */ new Map()), le(this, "sourceNodeOptions", /* @__PURE__ */ new Map()), le(this, "dragStartSourceIds", null), le(this, "dropTargetIds", []), le(this, "dragEnterTargetIds", []), le(this, "currentNativeSource", null), le(this, "currentNativeHandle", null), le(this, "currentDragSourceNode", null), le(this, "altKeyPressed", !1), le(this, "mouseMoveTimeoutTimer", null), le(this, "asyncEndDragFrameId", null), le(this, "dragOverTargetIds", null), le(this, "lastClientOffset", null), le(this, "hoverRafId", null), le(this, "getSourceClientOffset", function(o) {
14612
+ D$(this, t), se(this, "options", void 0), se(this, "actions", void 0), se(this, "monitor", void 0), se(this, "registry", void 0), se(this, "enterLeaveCounter", void 0), se(this, "sourcePreviewNodes", /* @__PURE__ */ new Map()), se(this, "sourcePreviewNodeOptions", /* @__PURE__ */ new Map()), se(this, "sourceNodes", /* @__PURE__ */ new Map()), se(this, "sourceNodeOptions", /* @__PURE__ */ new Map()), se(this, "dragStartSourceIds", null), se(this, "dropTargetIds", []), se(this, "dragEnterTargetIds", []), se(this, "currentNativeSource", null), se(this, "currentNativeHandle", null), se(this, "currentDragSourceNode", null), se(this, "altKeyPressed", !1), se(this, "mouseMoveTimeoutTimer", null), se(this, "asyncEndDragFrameId", null), se(this, "dragOverTargetIds", null), se(this, "lastClientOffset", null), se(this, "hoverRafId", null), se(this, "getSourceClientOffset", function(o) {
14613
14613
  var a = i.sourceNodes.get(o);
14614
14614
  return a && qf(a) || null;
14615
- }), le(this, "endDragNativeItem", function() {
14615
+ }), se(this, "endDragNativeItem", function() {
14616
14616
  i.isDraggingNativeItem() && (i.actions.endDrag(), i.currentNativeHandle && i.registry.removeSource(i.currentNativeHandle), i.currentNativeHandle = null, i.currentNativeSource = null);
14617
- }), le(this, "isNodeInDocument", function(o) {
14617
+ }), se(this, "isNodeInDocument", function(o) {
14618
14618
  return !!(o && i.document && i.document.body && i.document.body.contains(o));
14619
- }), le(this, "endDragIfSourceWasRemovedFromDOM", function() {
14619
+ }), se(this, "endDragIfSourceWasRemovedFromDOM", function() {
14620
14620
  var o = i.currentDragSourceNode;
14621
14621
  o == null || i.isNodeInDocument(o) || i.clearCurrentDragSourceNode() && i.monitor.isDragging() && i.actions.endDrag();
14622
- }), le(this, "handleTopDragStartCapture", function() {
14622
+ }), se(this, "handleTopDragStartCapture", function() {
14623
14623
  i.clearCurrentDragSourceNode(), i.dragStartSourceIds = [];
14624
- }), le(this, "handleTopDragStart", function(o) {
14624
+ }), se(this, "handleTopDragStart", function(o) {
14625
14625
  if (!o.defaultPrevented) {
14626
14626
  var a = i.dragStartSourceIds;
14627
14627
  i.dragStartSourceIds = null;
@@ -14663,16 +14663,16 @@ var I$ = /* @__PURE__ */ function() {
14663
14663
  o.preventDefault();
14664
14664
  }
14665
14665
  }
14666
- }), le(this, "handleTopDragEndCapture", function() {
14666
+ }), se(this, "handleTopDragEndCapture", function() {
14667
14667
  i.clearCurrentDragSourceNode() && i.monitor.isDragging() && i.actions.endDrag();
14668
- }), le(this, "handleTopDragEnterCapture", function(o) {
14668
+ }), se(this, "handleTopDragEnterCapture", function(o) {
14669
14669
  i.dragEnterTargetIds = [];
14670
14670
  var a = i.enterLeaveCounter.enter(o.target);
14671
14671
  if (!(!a || i.monitor.isDragging())) {
14672
14672
  var l = o.dataTransfer, s = bo(l);
14673
14673
  s && i.beginDragNativeItem(s, l);
14674
14674
  }
14675
- }), le(this, "handleTopDragEnter", function(o) {
14675
+ }), se(this, "handleTopDragEnter", function(o) {
14676
14676
  var a = i.dragEnterTargetIds;
14677
14677
  if (i.dragEnterTargetIds = [], !!i.monitor.isDragging()) {
14678
14678
  i.altKeyPressed = o.altKey, a.length > 0 && i.actions.hover(a, {
@@ -14683,9 +14683,9 @@ var I$ = /* @__PURE__ */ function() {
14683
14683
  });
14684
14684
  l && (o.preventDefault(), o.dataTransfer && (o.dataTransfer.dropEffect = i.getCurrentDropEffect()));
14685
14685
  }
14686
- }), le(this, "handleTopDragOverCapture", function() {
14686
+ }), se(this, "handleTopDragOverCapture", function() {
14687
14687
  i.dragOverTargetIds = [];
14688
- }), le(this, "handleTopDragOver", function(o) {
14688
+ }), se(this, "handleTopDragOver", function(o) {
14689
14689
  var a = i.dragOverTargetIds;
14690
14690
  if (i.dragOverTargetIds = [], !i.monitor.isDragging()) {
14691
14691
  o.preventDefault(), o.dataTransfer && (o.dataTransfer.dropEffect = "none");
@@ -14700,26 +14700,26 @@ var I$ = /* @__PURE__ */ function() {
14700
14700
  return i.monitor.canDropOnTarget(s);
14701
14701
  });
14702
14702
  l ? (o.preventDefault(), o.dataTransfer && (o.dataTransfer.dropEffect = i.getCurrentDropEffect())) : i.isDraggingNativeItem() ? o.preventDefault() : (o.preventDefault(), o.dataTransfer && (o.dataTransfer.dropEffect = "none"));
14703
- }), le(this, "handleTopDragLeaveCapture", function(o) {
14703
+ }), se(this, "handleTopDragLeaveCapture", function(o) {
14704
14704
  i.isDraggingNativeItem() && o.preventDefault();
14705
14705
  var a = i.enterLeaveCounter.leave(o.target);
14706
14706
  a && i.isDraggingNativeItem() && setTimeout(function() {
14707
14707
  return i.endDragNativeItem();
14708
14708
  }, 0);
14709
- }), le(this, "handleTopDropCapture", function(o) {
14709
+ }), se(this, "handleTopDropCapture", function(o) {
14710
14710
  if (i.dropTargetIds = [], i.isDraggingNativeItem()) {
14711
14711
  var a;
14712
14712
  o.preventDefault(), (a = i.currentNativeSource) === null || a === void 0 || a.loadDataTransfer(o.dataTransfer);
14713
14713
  } else bo(o.dataTransfer) && o.preventDefault();
14714
14714
  i.enterLeaveCounter.reset();
14715
- }), le(this, "handleTopDrop", function(o) {
14715
+ }), se(this, "handleTopDrop", function(o) {
14716
14716
  var a = i.dropTargetIds;
14717
14717
  i.dropTargetIds = [], i.actions.hover(a, {
14718
14718
  clientOffset: kr(o)
14719
14719
  }), i.actions.drop({
14720
14720
  dropEffect: i.getCurrentDropEffect()
14721
14721
  }), i.isDraggingNativeItem() ? i.endDragNativeItem() : i.monitor.isDragging() && i.actions.endDrag();
14722
- }), le(this, "handleSelectStart", function(o) {
14722
+ }), se(this, "handleSelectStart", function(o) {
14723
14723
  var a = o.target;
14724
14724
  typeof a.dragDrop == "function" && (a.tagName === "INPUT" || a.tagName === "SELECT" || a.tagName === "TEXTAREA" || a.isContentEditable || (o.preventDefault(), a.dragDrop()));
14725
14725
  }), this.options = new C$(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new u$(this.isNodeInDocument);
@@ -14922,7 +14922,7 @@ function N$(t) {
14922
14922
  e.hideCursor(), e.dispatch(Dn.dragEnd());
14923
14923
  }
14924
14924
  }), [n, t]);
14925
- return J(() => {
14925
+ return Z(() => {
14926
14926
  o(_$());
14927
14927
  }, [o]), i;
14928
14928
  }
@@ -15042,9 +15042,9 @@ function L$(t) {
15042
15042
  return e.visibleNodes[t] = r, r;
15043
15043
  }, [...Object.values(n.state), n]);
15044
15044
  }
15045
- const F$ = j.memo(function({ index: e, style: n }) {
15045
+ const F$ = F.memo(function({ index: e, style: n }) {
15046
15046
  yf(), oS();
15047
- const r = Me(), i = L$(e), o = V(null), a = N$(i), l = K$(o, i), s = Z((d) => {
15047
+ const r = Me(), i = L$(e), o = G(null), a = N$(i), l = K$(o, i), s = Q((d) => {
15048
15048
  o.current = d, l(d);
15049
15049
  }, [l]), u = r.indent * i.level, c = X(() => ({ paddingLeft: u }), [u]), h = X(() => {
15050
15050
  var d, g;
@@ -15058,7 +15058,7 @@ const F$ = j.memo(function({ index: e, style: n }) {
15058
15058
  tabIndex: -1,
15059
15059
  className: r.props.rowClassName
15060
15060
  };
15061
- J(() => {
15061
+ Z(() => {
15062
15062
  var d;
15063
15063
  !i.isEditing && i.isFocused && ((d = o.current) === null || d === void 0 || d.focus({ preventScroll: !0 }));
15064
15064
  }, [i.isEditing, i.isFocused, o.current]);
@@ -15945,15 +15945,15 @@ const J$ = pu({
15945
15945
  dnd: TS
15946
15946
  }), Z$ = Cn();
15947
15947
  function Q$({ treeProps: t, imperativeHandle: e, children: n }) {
15948
- const r = V(null), i = V(null), o = V(
15948
+ const r = G(null), i = G(null), o = G(
15949
15949
  // @ts-ignore
15950
15950
  rh(J$, Cn(t))
15951
- ), a = ya.useSyncExternalStore(o.current.subscribe, o.current.getState, () => Z$), l = X(() => new Yn(o.current, t, r, i), []), s = V(0);
15951
+ ), a = ya.useSyncExternalStore(o.current.subscribe, o.current.getState, () => Z$), l = X(() => new Yn(o.current, t, r, i), []), s = G(0);
15952
15952
  return X(() => {
15953
15953
  s.current += 1, l.update(t);
15954
- }, [...Object.values(t), a.nodes.open]), hh(e, () => l), J(() => {
15954
+ }, [...Object.values(t), a.nodes.open]), hh(e, () => l), Z(() => {
15955
15955
  l.props.selection ? l.select(l.props.selection, { focus: !1 }) : l.deselectAll();
15956
- }, [l.props.selection]), J(() => {
15956
+ }, [l.props.selection]), Z(() => {
15957
15957
  l.props.searchTerm || o.current.dispatch(Zo.clear(!0));
15958
15958
  }, [l.props.searchTerm]), T.jsx(pf.Provider, { value: l, children: T.jsx(mf.Provider, { value: s.current, children: T.jsx(gf.Provider, { value: a.nodes, children: T.jsx(vf.Provider, { value: a.dnd, children: T.jsx(_0, Object.assign({ backend: k$, options: { rootElement: l.props.dndRootElement || void 0 } }, t.dndManager && { manager: t.dndManager }, { children: n })) }) }) }) });
15959
15959
  }
@@ -16077,7 +16077,7 @@ class ih {
16077
16077
  }
16078
16078
  let ax = 0;
16079
16079
  function lx(t) {
16080
- const [e, n] = oe(t), r = X(() => new ix(e), [e]);
16080
+ const [e, n] = ae(t), r = X(() => new ix(e), [e]);
16081
16081
  return [e, { onMove: (u) => {
16082
16082
  for (const c of u.dragIds)
16083
16083
  r.move({ id: c, parentId: u.parentId, index: u.index });
@@ -16112,19 +16112,19 @@ const cx = ft(ux), dx = ({ top: t, left: e }) => /* @__PURE__ */ T.jsx(
16112
16112
  {
16113
16113
  className: "c__tree-view__cursor",
16114
16114
  style: {
16115
- top: t,
16115
+ top: t - 2,
16116
16116
  left: e + 10
16117
16117
  }
16118
16118
  }
16119
16119
  );
16120
16120
  function fx(t, e) {
16121
- var n = V(null), r = V(null);
16121
+ var n = G(null), r = G(null);
16122
16122
  r.current = e;
16123
- var i = V(null);
16124
- J(function() {
16123
+ var i = G(null);
16124
+ Z(function() {
16125
16125
  o();
16126
16126
  });
16127
- var o = Z(function() {
16127
+ var o = Q(function() {
16128
16128
  var a = i.current, l = r.current, s = a || (l ? l instanceof Element ? l : l.current : null);
16129
16129
  n.current && n.current.element === s && n.current.subscriber === t || (n.current && n.current.cleanup && n.current.cleanup(), n.current = {
16130
16130
  element: s,
@@ -16134,11 +16134,11 @@ function fx(t, e) {
16134
16134
  cleanup: s ? t(s) : void 0
16135
16135
  });
16136
16136
  }, [t]);
16137
- return J(function() {
16137
+ return Z(function() {
16138
16138
  return function() {
16139
16139
  n.current && n.current.cleanup && (n.current.cleanup(), n.current = null);
16140
16140
  };
16141
- }, []), Z(function(a) {
16141
+ }, []), Q(function(a) {
16142
16142
  i.current = a, o();
16143
16143
  }, [o]);
16144
16144
  }
@@ -16152,21 +16152,21 @@ function gu(t, e, n) {
16152
16152
  }
16153
16153
  function hx(t) {
16154
16154
  t === void 0 && (t = {});
16155
- var e = t.onResize, n = V(void 0);
16155
+ var e = t.onResize, n = G(void 0);
16156
16156
  n.current = e;
16157
- var r = t.round || Math.round, i = V(), o = oe({
16157
+ var r = t.round || Math.round, i = G(), o = ae({
16158
16158
  width: void 0,
16159
16159
  height: void 0
16160
- }), a = o[0], l = o[1], s = V(!1);
16161
- J(function() {
16160
+ }), a = o[0], l = o[1], s = G(!1);
16161
+ Z(function() {
16162
16162
  return s.current = !1, function() {
16163
16163
  s.current = !0;
16164
16164
  };
16165
16165
  }, []);
16166
- var u = V({
16166
+ var u = G({
16167
16167
  width: void 0,
16168
16168
  height: void 0
16169
- }), c = fx(Z(function(h) {
16169
+ }), c = fx(Q(function(h) {
16170
16170
  return (!i.current || i.current.box !== t.box || i.current.round !== r) && (i.current = {
16171
16171
  box: t.box,
16172
16172
  round: r,
@@ -16206,20 +16206,20 @@ const la = (t) => t ? t.type === qe.SEPARATOR : !1, sa = (t) => t ? t.type === q
16206
16206
  canDrag: l
16207
16207
  }) => {
16208
16208
  const { ref: s, width: u, height: c } = hx(), h = (f) => {
16209
- var O, z, R, F;
16210
- const m = JSON.parse(JSON.stringify(t)), d = f.dragNodes[0], g = f.parentId ? ((O = f.parentNode) == null ? void 0 : O.data.children) ?? [] : m, v = f.dragNodes[0].data.value.id, b = f.dragNodes[0].data, S = (z = f.parentNode) == null ? void 0 : z.data;
16209
+ var O, j, V, A;
16210
+ const m = JSON.parse(JSON.stringify(t)), d = f.dragNodes[0], g = f.parentId ? ((O = f.parentNode) == null ? void 0 : O.data.children) ?? [] : m, v = f.dragNodes[0].data.value.id, b = f.dragNodes[0].data, S = (j = f.parentNode) == null ? void 0 : j.data;
16211
16211
  if ((S == null ? void 0 : S.value.type) === qe.TITLE || (S == null ? void 0 : S.value.type) === qe.SEPARATOR)
16212
16212
  return null;
16213
16213
  const P = b.parentKey ?? r, $ = f.parentId ?? r;
16214
16214
  let C = f.index + 0, D = null, y = $;
16215
- const _ = ((F = (R = d.parent) == null ? void 0 : R.children) == null ? void 0 : F.findIndex((I) => I.data.value.id === v)) ?? 0;
16215
+ const _ = ((A = (V = d.parent) == null ? void 0 : V.children) == null ? void 0 : A.findIndex((I) => I.data.value.id === v)) ?? 0;
16216
16216
  if (P === $) {
16217
16217
  if (_ === C)
16218
16218
  return null;
16219
16219
  C = C < _ ? C : C - 1;
16220
16220
  }
16221
- const B = f.index - 1, k = g[B], H = f.index, w = g[H];
16222
- return f.index === 0 ? (y = f.parentId ?? r, D = pn.FIRST_CHILD) : !S && f.index === 1 && !Mr(k.value) ? (y = r, C = 1, D = pn.FIRST_CHILD) : f.index === g.length ? (y = y ?? r, D = pn.LAST_CHILD) : k && Mr(k.value) ? (y = k.value.id, D = pn.RIGHT) : w && Mr(w.value) && (D = pn.LEFT, y = w.value.id), D && y ? {
16221
+ const B = f.index - 1, N = g[B], z = f.index, w = g[z];
16222
+ return f.index === 0 ? (y = f.parentId ?? r, D = pn.FIRST_CHILD) : !S && f.index === 1 && !Mr(N.value) ? (y = r, C = 1, D = pn.FIRST_CHILD) : f.index === g.length ? (y = y ?? r, D = pn.LAST_CHILD) : N && Mr(N.value) ? (y = N.value.id, D = pn.RIGHT) : w && Mr(w.value) && (D = pn.LEFT, y = w.value.id), D && y ? {
16223
16223
  targetModeId: y,
16224
16224
  mode: D,
16225
16225
  oldParentId: P,
@@ -16249,8 +16249,8 @@ const la = (t) => t ? t.type === qe.SEPARATOR : !1, sa = (t) => t ? t.type === q
16249
16249
  if (((S = f.data.value) == null ? void 0 : S.type) === qe.TITLE || ((P = f.data.value) == null ? void 0 : P.type) === qe.SEPARATOR)
16250
16250
  return !0;
16251
16251
  if (f.id === "__REACT_ARBORIST_INTERNAL_ROOT__") {
16252
- const $ = t[d - 1], C = t[d], D = t[d + 1], y = la($ == null ? void 0 : $.value), _ = la(C == null ? void 0 : C.value), B = sa($ == null ? void 0 : $.value), k = sa(C == null ? void 0 : C.value), H = Mr(D == null ? void 0 : D.value);
16253
- return !!(d === 0 && (_ || k) || y && k && H || B && _ && H);
16252
+ const $ = t[d - 1], C = t[d], D = t[d + 1], y = la($ == null ? void 0 : $.value), _ = la(C == null ? void 0 : C.value), B = sa($ == null ? void 0 : $.value), N = sa(C == null ? void 0 : C.value), z = Mr(D == null ? void 0 : D.value);
16253
+ return !!(d === 0 && (_ || N) || y && N && z || B && _ && z);
16254
16254
  }
16255
16255
  const g = f == null ? void 0 : f.isOpen, v = (f == null ? void 0 : f.data.value.childrenCount) && f.data.value.childrenCount > 0 || (f == null ? void 0 : f.data.children) && f.data.children.length > 0;
16256
16256
  if (!v)
@@ -16306,12 +16306,12 @@ function mx(t) {
16306
16306
  var e, n;
16307
16307
  return t ? gx(t) ? t : vx(t) && (e = (n = t.ownerDocument) == null ? void 0 : n.defaultView) != null ? e : window : window;
16308
16308
  }
16309
- const oh = px ? xu : J;
16309
+ const oh = px ? xu : Z;
16310
16310
  function ah(t) {
16311
- const e = V(t);
16311
+ const e = G(t);
16312
16312
  return oh(() => {
16313
16313
  e.current = t;
16314
- }), Z(function() {
16314
+ }), Q(function() {
16315
16315
  for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++)
16316
16316
  r[i] = arguments[i];
16317
16317
  return e.current == null ? void 0 : e.current(...r);
@@ -16319,13 +16319,13 @@ function ah(t) {
16319
16319
  }
16320
16320
  function vu(t, e) {
16321
16321
  e === void 0 && (e = [t]);
16322
- const n = V(t);
16322
+ const n = G(t);
16323
16323
  return oh(() => {
16324
16324
  n.current !== t && (n.current = t);
16325
16325
  }, e), n;
16326
16326
  }
16327
16327
  function yx(t) {
16328
- const e = ah(t), n = V(null), r = Z(
16328
+ const e = ah(t), n = G(null), r = Q(
16329
16329
  (i) => {
16330
16330
  i !== n.current && (e == null || e(i, n.current)), n.current = i;
16331
16331
  },
@@ -16476,7 +16476,7 @@ function xx(t) {
16476
16476
  // eslint-disable-next-line react-hooks/exhaustive-deps
16477
16477
  [n]
16478
16478
  );
16479
- return J(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
16479
+ return Z(() => () => i == null ? void 0 : i.disconnect(), [i]), i;
16480
16480
  }
16481
16481
  ua.WhileDragging, ca.Optimized;
16482
16482
  const Tx = {
@@ -16514,16 +16514,16 @@ function Ox(t) {
16514
16514
  dispatch: l,
16515
16515
  over: s,
16516
16516
  measureDroppableContainers: u
16517
- } = ae(Cx), c = V({
16517
+ } = le(Cx), c = G({
16518
16518
  disabled: n
16519
- }), h = V(!1), p = V(null), f = V(null), {
16519
+ }), h = G(!1), p = G(null), f = G(null), {
16520
16520
  disabled: m,
16521
16521
  updateMeasurementsFor: d,
16522
16522
  timeout: g
16523
16523
  } = {
16524
16524
  ...Px,
16525
16525
  ...i
16526
- }, v = vu(d ?? r), b = Z(
16526
+ }, v = vu(d ?? r), b = Q(
16527
16527
  () => {
16528
16528
  if (!h.current) {
16529
16529
  h.current = !0;
@@ -16538,12 +16538,12 @@ function Ox(t) {
16538
16538
  ), S = xx({
16539
16539
  callback: b,
16540
16540
  disabled: m || !a
16541
- }), P = Z((y, _) => {
16541
+ }), P = Q((y, _) => {
16542
16542
  S && (_ && (S.unobserve(_), h.current = !1), y && S.observe(y));
16543
16543
  }, [S]), [$, C] = yx(P), D = vu(e);
16544
- return J(() => {
16544
+ return Z(() => {
16545
16545
  !S || !$.current || (S.disconnect(), h.current = !1, S.observe($.current));
16546
- }, [$, S]), J(
16546
+ }, [$, S]), Z(
16547
16547
  () => (l({
16548
16548
  type: Xn.RegisterDroppable,
16549
16549
  element: {
@@ -16561,7 +16561,7 @@ function Ox(t) {
16561
16561
  })),
16562
16562
  // eslint-disable-next-line react-hooks/exhaustive-deps
16563
16563
  [r]
16564
- ), J(() => {
16564
+ ), Z(() => {
16565
16565
  n !== c.current.disabled && (l({
16566
16566
  type: Xn.SetDroppableDisabled,
16567
16567
  id: r,
@@ -16582,7 +16582,7 @@ const Ix = (t) => {
16582
16582
  id: t.id,
16583
16583
  data: t.data
16584
16584
  });
16585
- return J(() => {
16585
+ return Z(() => {
16586
16586
  var r;
16587
16587
  (r = t.onOver) == null || r.call(t, e, t.data);
16588
16588
  }, [e, t.data, t.onOver]), /* @__PURE__ */ T.jsx("div", { ref: n, children: t.children });
@@ -16596,7 +16596,7 @@ const Ix = (t) => {
16596
16596
  forceLoading: a
16597
16597
  }) => {
16598
16598
  var S, P;
16599
- const l = V(null), [s, u] = oe(!1), [c, h] = oe(!1), p = a ?? s, f = n.willReceiveDrop || c, m = n.data.value.childrenCount !== void 0 && n.data.value.childrenCount > 0 || (((S = n.data.children) == null ? void 0 : S.length) ?? 0) > 0, d = ((P = n.children) == null ? void 0 : P.length) ?? !1, g = n.isLeaf || !m, v = Z(async () => {
16599
+ const l = G(null), [s, u] = ae(!1), [c, h] = ae(!1), p = a ?? s, f = n.willReceiveDrop || c, m = n.data.value.childrenCount !== void 0 && n.data.value.childrenCount > 0 || (((S = n.data.children) == null ? void 0 : S.length) ?? 0) > 0, d = ((P = n.children) == null ? void 0 : P.length) ?? !1, g = n.isLeaf || !m, v = Q(async () => {
16600
16600
  if (!g) {
16601
16601
  if (d || n.data.value.hasLoadedChildren) {
16602
16602
  n.toggle();
@@ -16604,7 +16604,7 @@ const Ix = (t) => {
16604
16604
  }
16605
16605
  u(!0), await (o == null ? void 0 : o(n.data.value)), u(!1), n.open();
16606
16606
  }
16607
- }, [d, o, n, g]), b = Z(
16607
+ }, [d, o, n, g]), b = Q(
16608
16608
  ($) => {
16609
16609
  $ && !n.isOpen && !n.isDragging && (l.current = setTimeout(() => {
16610
16610
  v();
@@ -16612,7 +16612,7 @@ const Ix = (t) => {
16612
16612
  },
16613
16613
  [v, n.isOpen, n.isDragging]
16614
16614
  );
16615
- return J(() => {
16615
+ return Z(() => {
16616
16616
  b(f);
16617
16617
  }, [f, b]), n.data.value.type === qe.SEPARATOR ? /* @__PURE__ */ T.jsx("div", { className: "c__tree-view--node__separator" }) : n.data.value.type === qe.TITLE ? /* @__PURE__ */ T.jsx("div", { className: "c__tree-view--node__title", children: n.data.value.title }) : /* @__PURE__ */ T.jsx(
16618
16618
  Ix,
@@ -16668,127 +16668,141 @@ const Ix = (t) => {
16668
16668
  initialItems: JSON.parse(
16669
16669
  JSON.stringify(t)
16670
16670
  ),
16671
- getKey: (R) => R.id,
16672
- getChildren: (R) => R.children || []
16673
- }), [f, m] = oe(), d = (R = []) => {
16674
- const F = p.map((G) => G.key);
16675
- r(...F);
16676
- const I = JSON.parse(JSON.stringify(R));
16677
- I.length > 0 && o(null, 0, ...I), m(void 0);
16678
- }, g = (R, F) => {
16679
- var I;
16680
- if (R) {
16681
- const G = c(R);
16682
- G && (o(R, ((I = G.children) == null ? void 0 : I.length) ?? 0, F), k(R, F));
16671
+ getKey: (A) => A.id,
16672
+ getChildren: (A) => A.children || []
16673
+ }), [f, m] = ae(), d = (A = []) => {
16674
+ const I = p.map((J) => J.key);
16675
+ r(...I);
16676
+ const H = JSON.parse(JSON.stringify(A));
16677
+ H.length > 0 && o(null, 0, ...H), m(void 0);
16678
+ }, g = (A, I) => {
16679
+ var H;
16680
+ if (A) {
16681
+ const J = c(A);
16682
+ J && (o(A, ((H = J.children) == null ? void 0 : H.length) ?? 0, I), z(A, I));
16683
16683
  } else
16684
- o(null, p.length, F);
16685
- }, v = (R, F) => {
16686
- const I = c(R);
16687
- if (!I) {
16684
+ o(null, p.length, I);
16685
+ }, v = (A, I) => {
16686
+ const H = c(A);
16687
+ if (!H) {
16688
16688
  console.error("No item found");
16689
16689
  return;
16690
16690
  }
16691
- let G = I.value.children ?? null;
16692
- F.children && (G = [...G ?? [], ...F.children]);
16693
- const te = {
16694
- ...I.value,
16695
- ...F,
16696
- children: G,
16697
- childrenCount: (G == null ? void 0 : G.length) ?? I.value.childrenCount
16691
+ let J = H.value.children ?? null;
16692
+ I.children && (J = [...J ?? [], ...I.children]);
16693
+ const ne = {
16694
+ ...H.value,
16695
+ ...I,
16696
+ children: J,
16697
+ childrenCount: (J == null ? void 0 : J.length) ?? H.value.childrenCount
16698
+ };
16699
+ i(A, ne), H.parentKey && S(H.parentKey, A, I);
16700
+ }, b = (A) => {
16701
+ const I = c(A), H = I == null ? void 0 : I.parentKey;
16702
+ H && I && N(H, I.value.id), r(A);
16703
+ }, S = (A, I, H) => {
16704
+ const J = c(A);
16705
+ if (!J)
16706
+ return;
16707
+ const ne = J.value.children ?? [], R = ne.findIndex(
16708
+ (K) => K.id === I
16709
+ );
16710
+ if (R === -1)
16711
+ return;
16712
+ const k = {
16713
+ ...ne[R],
16714
+ ...H
16698
16715
  };
16699
- i(R, te);
16700
- }, b = (R) => {
16701
- const F = c(R), I = F == null ? void 0 : F.parentKey;
16702
- I && F && B(I, F.value.id), r(R);
16703
- }, S = async (R) => {
16716
+ ne[R] = k;
16717
+ }, P = async (A) => {
16704
16718
  if (!e) {
16705
16719
  console.error("No refresh callback provided");
16706
16720
  return;
16707
16721
  }
16708
16722
  try {
16709
- const F = await e(R);
16710
- v(R, F);
16711
- } catch (F) {
16712
- console.error("error while refreshing node:", F);
16713
- }
16714
- }, P = (R) => {
16715
- o(null, p.length, R);
16716
- }, $ = (R, F) => {
16717
- const I = c(R);
16718
- if (!I) {
16723
+ const I = await e(A);
16724
+ v(A, I);
16725
+ } catch (I) {
16726
+ console.error("error while refreshing node:", I);
16727
+ }
16728
+ }, $ = (A) => {
16729
+ o(null, p.length, A);
16730
+ }, C = (A, I) => {
16731
+ const H = c(A);
16732
+ if (!H) {
16719
16733
  console.error("No item found");
16720
16734
  return;
16721
16735
  }
16722
- const G = {
16723
- ...I.value,
16724
- children: F,
16725
- childrenCount: F.length
16736
+ const J = {
16737
+ ...H.value,
16738
+ children: I,
16739
+ childrenCount: I.length
16726
16740
  };
16727
- i(R, G);
16728
- }, C = (R, F) => {
16729
- a(R, F);
16730
- }, D = (R, F) => {
16731
- l(R, F);
16732
- }, y = (R, F) => {
16733
- s(R, F);
16734
- }, _ = (R, F) => {
16735
- u(R, F);
16736
- }, B = (R, F) => {
16737
- const I = c(R);
16738
- if (!I)
16741
+ i(A, J);
16742
+ }, D = (A, I) => {
16743
+ a(A, I);
16744
+ }, y = (A, I) => {
16745
+ l(A, I);
16746
+ }, _ = (A, I) => {
16747
+ s(A, I);
16748
+ }, B = (A, I) => {
16749
+ u(A, I);
16750
+ }, N = (A, I) => {
16751
+ const H = c(A);
16752
+ if (!H)
16739
16753
  return;
16740
- const te = (I.value.children ?? []).filter((ue) => ue.id !== F);
16741
- I.value.children = te, I.value.childrenCount = te.length;
16742
- }, k = (R, F) => {
16743
- const I = c(R);
16744
- if (!I)
16754
+ const ne = (H.value.children ?? []).filter((R) => R.id !== I);
16755
+ H.value.children = ne, H.value.childrenCount = ne.length;
16756
+ }, z = (A, I) => {
16757
+ const H = c(A);
16758
+ if (!H)
16745
16759
  return;
16746
- const te = [...I.value.children ?? [], F];
16747
- I.value.children = te, I.value.childrenCount = te.length;
16748
- }, H = (R) => {
16749
- const F = c(R);
16750
- F && m(F.value);
16751
- }, w = (R, F, I, G) => {
16752
- var ue;
16753
- const te = (ue = c(R)) == null ? void 0 : ue.value;
16754
- h(R, F, I), F && te && k(F, te), G && B(G, R);
16760
+ const ne = [...H.value.children ?? [], I];
16761
+ H.value.children = ne, H.value.childrenCount = ne.length;
16762
+ }, w = (A) => {
16763
+ const I = c(A);
16764
+ I && m(I.value);
16765
+ }, O = (A, I, H, J) => {
16766
+ var R;
16767
+ const ne = (R = c(A)) == null ? void 0 : R.value;
16768
+ h(A, I, H), I && ne && z(I, ne), J && N(J, A);
16755
16769
  };
16756
16770
  return {
16757
16771
  nodes: p,
16758
16772
  addChild: g,
16759
16773
  updateNode: v,
16760
16774
  deleteNode: b,
16761
- addRootNode: P,
16775
+ addRootNode: $,
16762
16776
  selectedNode: f,
16763
16777
  setSelectedNode: m,
16764
- refreshNode: S,
16765
- setChildren: $,
16766
- insertBeforeNode: C,
16767
- insertAfterNode: D,
16768
- handleMove: (R) => {
16769
- w(
16770
- R.sourceId,
16771
- R.newParentId,
16772
- R.index,
16773
- R.oldParentId
16778
+ refreshNode: P,
16779
+ setChildren: C,
16780
+ insertBeforeNode: D,
16781
+ insertAfterNode: y,
16782
+ handleMove: (A) => {
16783
+ O(
16784
+ A.sourceId,
16785
+ A.newParentId,
16786
+ A.index,
16787
+ A.oldParentId
16774
16788
  );
16775
16789
  },
16776
- prependToNode: _,
16777
- moveNode: w,
16778
- appendToNode: y,
16790
+ prependToNode: B,
16791
+ moveNode: O,
16792
+ appendToNode: _,
16779
16793
  move: h,
16780
16794
  resetTree: d,
16781
- handleLoadChildren: async (R) => {
16795
+ handleLoadChildren: async (A) => {
16782
16796
  if (!n)
16783
16797
  return [];
16784
- const F = await n(R);
16785
- return v(R, {
16786
- children: F,
16798
+ const I = await n(A);
16799
+ return v(A, {
16800
+ children: I,
16787
16801
  hasLoadedChildren: !0,
16788
- childrenCount: F.length
16789
- }), F;
16802
+ childrenCount: I.length
16803
+ }), I;
16790
16804
  },
16791
- selectNodeById: H
16805
+ selectNodeById: w
16792
16806
  };
16793
16807
  };
16794
16808
  export {