@sps-woodland/tabs 8.7.4 → 8.7.5

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/lib/index.es.js CHANGED
@@ -1,25 +1,82 @@
1
1
  import * as B from "react";
2
- import U, { useState as R, useRef as k, useEffect as z, useCallback as q, useMemo as V, useContext as le, createContext as Ut } from "react";
3
- import { compareNodeOrder as Te, getFirstItem as Wt, getChildNodes as Ht, useCollection as jt } from "@react-stately/collections";
4
- import { flushSync as Vt } from "react-dom";
5
- import { Metadata as ae, modChildren as Gt, cl as ut, Content as Xt, useChildTestIdAttrBuilder as qt } from "@sps-woodland/core";
6
- import { code as He } from "@spscommerce/utils";
2
+ import U, { useState as R, useRef as k, useEffect as z, useCallback as Y, useMemo as G, useContext as oe, createContext as Rt } from "react";
3
+ import { compareNodeOrder as Te, getFirstItem as Ut, getChildNodes as Ht, useCollection as Wt } from "@react-stately/collections";
4
+ import { flushSync as jt } from "react-dom";
5
+ import { Metadata as ce, modChildren as Vt, cl as ut, Content as Gt, useChildTestIdAttrBuilder as Xt } from "@sps-woodland/core";
6
+ import { code as Ve } from "@spscommerce/utils";
7
+ class Ge {
8
+ *[Symbol.iterator]() {
9
+ yield* this.iterable;
10
+ }
11
+ get size() {
12
+ return this.keyMap.size;
13
+ }
14
+ getKeys() {
15
+ return this.keyMap.keys();
16
+ }
17
+ getKeyBefore(e) {
18
+ let r = this.keyMap.get(e);
19
+ return r ? r.prevKey : null;
20
+ }
21
+ getKeyAfter(e) {
22
+ let r = this.keyMap.get(e);
23
+ return r ? r.nextKey : null;
24
+ }
25
+ getFirstKey() {
26
+ return this.firstKey;
27
+ }
28
+ getLastKey() {
29
+ return this.lastKey;
30
+ }
31
+ getItem(e) {
32
+ return this.keyMap.get(e);
33
+ }
34
+ at(e) {
35
+ const r = [
36
+ ...this.getKeys()
37
+ ];
38
+ return this.getItem(r[e]);
39
+ }
40
+ getChildren(e) {
41
+ let r = this.keyMap.get(e);
42
+ return (r == null ? void 0 : r.childNodes) || [];
43
+ }
44
+ constructor(e) {
45
+ this.keyMap = /* @__PURE__ */ new Map(), this.iterable = e;
46
+ let r = (o) => {
47
+ if (this.keyMap.set(o.key, o), o.childNodes && o.type === "section")
48
+ for (let s of o.childNodes)
49
+ r(s);
50
+ };
51
+ for (let o of e)
52
+ r(o);
53
+ let n, i = 0;
54
+ for (let [o, s] of this.keyMap)
55
+ n ? (n.nextKey = o, s.prevKey = n.key) : (this.firstKey = o, s.prevKey = void 0), s.type === "item" && (s.index = i++), n = s, n.nextKey = void 0;
56
+ this.lastKey = n == null ? void 0 : n.key;
57
+ }
58
+ }
59
+ class N extends Set {
60
+ constructor(e, r, n) {
61
+ super(e), e instanceof N ? (this.anchorKey = r || e.anchorKey, this.currentKey = n || e.currentKey) : (this.anchorKey = r, this.currentKey = n);
62
+ }
63
+ }
7
64
  function dt(t, e, r) {
8
65
  let [n, i] = R(t || e), o = k(t !== void 0), s = t !== void 0;
9
66
  z(() => {
10
- let b = o.current;
11
- b !== s && console.warn(`WARN: A component changed from ${b ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), o.current = s;
67
+ let y = o.current;
68
+ y !== s && console.warn(`WARN: A component changed from ${y ? "controlled" : "uncontrolled"} to ${s ? "controlled" : "uncontrolled"}.`), o.current = s;
12
69
  }, [
13
70
  s
14
71
  ]);
15
- let u = s ? t : n, f = q((b, ...v) => {
16
- let T = (h, ...g) => {
17
- r && (Object.is(u, h) || r(h, ...g)), s || (u = h);
72
+ let u = s ? t : n, p = Y((y, ...g) => {
73
+ let T = (h, ...v) => {
74
+ r && (Object.is(u, h) || r(h, ...v)), s || (u = h);
18
75
  };
19
- typeof b == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), i((g, ...L) => {
20
- let P = b(s ? u : g, ...L);
21
- return T(P, ...v), s ? g : P;
22
- })) : (s || i(b), T(b, ...v));
76
+ typeof y == "function" ? (console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"), i((v, ...L) => {
77
+ let S = y(s ? u : v, ...L);
78
+ return T(S, ...g), s ? v : S;
79
+ })) : (s || i(y), T(y, ...g));
23
80
  }, [
24
81
  s,
25
82
  u,
@@ -27,15 +84,10 @@ function dt(t, e, r) {
27
84
  ]);
28
85
  return [
29
86
  u,
30
- f
87
+ p
31
88
  ];
32
89
  }
33
- class N extends Set {
34
- constructor(e, r, n) {
35
- super(e), e instanceof N ? (this.anchorKey = r || e.anchorKey, this.currentKey = n || e.currentKey) : (this.anchorKey = r, this.currentKey = n);
36
- }
37
- }
38
- function Yt(t, e) {
90
+ function qt(t, e) {
39
91
  if (t.size !== e.size)
40
92
  return !1;
41
93
  for (let r of t)
@@ -43,15 +95,15 @@ function Yt(t, e) {
43
95
  return !1;
44
96
  return !0;
45
97
  }
46
- function Jt(t) {
47
- let { selectionMode: e = "none", disallowEmptySelection: r, allowDuplicateSelectionEvents: n, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, s = k(!1), [, u] = R(!1), f = k(null), b = k(null), [, v] = R(null), T = V(() => je(t.selectedKeys), [
98
+ function Yt(t) {
99
+ let { selectionMode: e = "none", disallowEmptySelection: r, allowDuplicateSelectionEvents: n, selectionBehavior: i = "toggle", disabledBehavior: o = "all" } = t, s = k(!1), [, u] = R(!1), p = k(null), y = k(null), [, g] = R(null), T = G(() => Xe(t.selectedKeys), [
48
100
  t.selectedKeys
49
- ]), h = V(() => je(t.defaultSelectedKeys, new N()), [
101
+ ]), h = G(() => Xe(t.defaultSelectedKeys, new N()), [
50
102
  t.defaultSelectedKeys
51
- ]), [g, L] = dt(T, h, t.onSelectionChange), P = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
103
+ ]), [v, L] = dt(T, h, t.onSelectionChange), S = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
52
104
  t.disabledKeys
53
- ]), [K, M] = R(i);
54
- i === "replace" && K === "toggle" && typeof g == "object" && g.size === 0 && M("replace");
105
+ ]), [w, M] = R(i);
106
+ i === "replace" && w === "toggle" && typeof v == "object" && v.size === 0 && M("replace");
55
107
  let x = k(i);
56
108
  return z(() => {
57
109
  i !== x.current && (M(i), x.current = i);
@@ -60,7 +112,7 @@ function Jt(t) {
60
112
  ]), {
61
113
  selectionMode: e,
62
114
  disallowEmptySelection: r,
63
- selectionBehavior: K,
115
+ selectionBehavior: w,
64
116
  setSelectionBehavior: M,
65
117
  get isFocused() {
66
118
  return s.current;
@@ -69,65 +121,106 @@ function Jt(t) {
69
121
  s.current = E, u(E);
70
122
  },
71
123
  get focusedKey() {
72
- return f.current;
124
+ return p.current;
73
125
  },
74
126
  get childFocusStrategy() {
75
- return b.current;
127
+ return y.current;
76
128
  },
77
- setFocusedKey(E, C = "first") {
78
- f.current = E, b.current = C, v(E);
129
+ setFocusedKey(E, I = "first") {
130
+ p.current = E, y.current = I, g(E);
79
131
  },
80
- selectedKeys: g,
132
+ selectedKeys: v,
81
133
  setSelectedKeys(E) {
82
- (n || !Yt(E, g)) && L(E);
134
+ (n || !qt(E, v)) && L(E);
83
135
  },
84
- disabledKeys: P,
136
+ disabledKeys: S,
85
137
  disabledBehavior: o
86
138
  };
87
139
  }
88
- function je(t, e) {
140
+ function Xe(t, e) {
89
141
  return t ? t === "all" ? "all" : new N(t) : e;
90
142
  }
91
- class Zt {
143
+ class _t {
144
+ /**
145
+ * The type of selection that is allowed in the collection.
146
+ */
92
147
  get selectionMode() {
93
148
  return this.state.selectionMode;
94
149
  }
150
+ /**
151
+ * Whether the collection allows empty selection.
152
+ */
95
153
  get disallowEmptySelection() {
96
154
  return this.state.disallowEmptySelection;
97
155
  }
156
+ /**
157
+ * The selection behavior for the collection.
158
+ */
98
159
  get selectionBehavior() {
99
160
  return this.state.selectionBehavior;
100
161
  }
162
+ /**
163
+ * Sets the selection behavior for the collection.
164
+ */
101
165
  setSelectionBehavior(e) {
102
166
  this.state.setSelectionBehavior(e);
103
167
  }
168
+ /**
169
+ * Whether the collection is currently focused.
170
+ */
104
171
  get isFocused() {
105
172
  return this.state.isFocused;
106
173
  }
174
+ /**
175
+ * Sets whether the collection is focused.
176
+ */
107
177
  setFocused(e) {
108
178
  this.state.setFocused(e);
109
179
  }
180
+ /**
181
+ * The current focused key in the collection.
182
+ */
110
183
  get focusedKey() {
111
184
  return this.state.focusedKey;
112
185
  }
186
+ /** Whether the first or last child of the focused key should receive focus. */
113
187
  get childFocusStrategy() {
114
188
  return this.state.childFocusStrategy;
115
189
  }
190
+ /**
191
+ * Sets the focused key.
192
+ */
116
193
  setFocusedKey(e, r) {
117
194
  (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, r);
118
195
  }
196
+ /**
197
+ * The currently selected keys in the collection.
198
+ */
119
199
  get selectedKeys() {
120
200
  return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
121
201
  }
202
+ /**
203
+ * The raw selection value for the collection.
204
+ * Either 'all' for select all, or a set of keys.
205
+ */
122
206
  get rawSelection() {
123
207
  return this.state.selectedKeys;
124
208
  }
209
+ /**
210
+ * Returns whether a key is selected.
211
+ */
125
212
  isSelected(e) {
126
213
  return this.state.selectionMode === "none" ? !1 : (e = this.getKey(e), this.state.selectedKeys === "all" ? this.canSelectItem(e) : this.state.selectedKeys.has(e));
127
214
  }
215
+ /**
216
+ * Whether the selection is empty.
217
+ */
128
218
  get isEmpty() {
129
219
  return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
130
220
  }
221
+ /**
222
+ * Whether all items in the collection are selected.
223
+ */
131
224
  get isSelectAll() {
132
225
  if (this.isEmpty)
133
226
  return !1;
@@ -160,6 +253,9 @@ class Zt {
160
253
  get disabledBehavior() {
161
254
  return this.state.disabledBehavior;
162
255
  }
256
+ /**
257
+ * Extends the selection to the given key.
258
+ */
163
259
  extendSelection(e) {
164
260
  if (this.selectionMode === "none")
165
261
  return;
@@ -205,6 +301,9 @@ class Zt {
205
301
  r = this.collection.getItem(r.parentKey);
206
302
  return !r || r.type !== "item" ? null : r.key;
207
303
  }
304
+ /**
305
+ * Toggles whether the given key is selected.
306
+ */
208
307
  toggleSelection(e) {
209
308
  if (this.selectionMode === "none")
210
309
  return;
@@ -217,6 +316,9 @@ class Zt {
217
316
  let r = new N(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
218
317
  r.has(e) ? r.delete(e) : this.canSelectItem(e) && (r.add(e), r.anchorKey = e, r.currentKey = e), !(this.disallowEmptySelection && r.size === 0) && this.state.setSelectedKeys(r);
219
318
  }
319
+ /**
320
+ * Replaces the selection with only the given key.
321
+ */
220
322
  replaceSelection(e) {
221
323
  if (this.selectionMode === "none" || (e = this.getKey(e), e == null))
222
324
  return;
@@ -225,6 +327,9 @@ class Zt {
225
327
  ], e, e) : new N();
226
328
  this.state.setSelectedKeys(r);
227
329
  }
330
+ /**
331
+ * Replaces the selection with the given keys.
332
+ */
228
333
  setSelectedKeys(e) {
229
334
  if (this.selectionMode === "none")
230
335
  return;
@@ -239,25 +344,37 @@ class Zt {
239
344
  for (; n; ) {
240
345
  if (this.canSelectItem(n)) {
241
346
  let i = this.collection.getItem(n);
242
- i.type === "item" && e.push(n), i.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && r(Wt(Ht(i, this.collection)).key);
347
+ i.type === "item" && e.push(n), i.hasChildNodes && (this.allowsCellSelection || i.type !== "item") && r(Ut(Ht(i, this.collection)).key);
243
348
  }
244
349
  n = this.collection.getKeyAfter(n);
245
350
  }
246
351
  };
247
352
  return r(this.collection.getFirstKey()), e;
248
353
  }
354
+ /**
355
+ * Selects all items in the collection.
356
+ */
249
357
  selectAll() {
250
358
  !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
251
359
  }
360
+ /**
361
+ * Removes all keys from the selection.
362
+ */
252
363
  clearSelection() {
253
364
  !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new N());
254
365
  }
366
+ /**
367
+ * Toggles between select all and an empty selection.
368
+ */
255
369
  toggleSelectAll() {
256
370
  this.isSelectAll ? this.clearSelection() : this.selectAll();
257
371
  }
258
372
  select(e, r) {
259
373
  this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || r && (r.pointerType === "touch" || r.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));
260
374
  }
375
+ /**
376
+ * Returns whether the current selection is equal to the given selection.
377
+ */
261
378
  isSelectionEqual(e) {
262
379
  if (e === this.state.selectedKeys)
263
380
  return !0;
@@ -273,114 +390,68 @@ class Zt {
273
390
  return !0;
274
391
  }
275
392
  canSelectItem(e) {
393
+ var r;
276
394
  if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e))
277
395
  return !1;
278
- let r = this.collection.getItem(e);
279
- return !(!r || r.type === "cell" && !this.allowsCellSelection);
396
+ let n = this.collection.getItem(e);
397
+ return !(!n || !(n == null || (r = n.props) === null || r === void 0) && r.isDisabled || n.type === "cell" && !this.allowsCellSelection);
280
398
  }
281
399
  isDisabled(e) {
282
- return this.state.disabledKeys.has(e) && this.state.disabledBehavior === "all";
400
+ var r, n;
401
+ return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!(!((n = this.collection.getItem(e)) === null || n === void 0 || (r = n.props) === null || r === void 0) && r.isDisabled));
283
402
  }
284
403
  isLink(e) {
285
404
  var r, n;
286
405
  return !!(!((n = this.collection.getItem(e)) === null || n === void 0 || (r = n.props) === null || r === void 0) && r.href);
287
406
  }
407
+ getItemProps(e) {
408
+ var r;
409
+ return (r = this.collection.getItem(e)) === null || r === void 0 ? void 0 : r.props;
410
+ }
288
411
  constructor(e, r, n) {
289
412
  this.collection = e, this.state = r;
290
413
  var i;
291
414
  this.allowsCellSelection = (i = n == null ? void 0 : n.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null;
292
415
  }
293
416
  }
294
- class Ve {
295
- *[Symbol.iterator]() {
296
- yield* this.iterable;
297
- }
298
- get size() {
299
- return this.keyMap.size;
300
- }
301
- getKeys() {
302
- return this.keyMap.keys();
303
- }
304
- getKeyBefore(e) {
305
- let r = this.keyMap.get(e);
306
- return r ? r.prevKey : null;
307
- }
308
- getKeyAfter(e) {
309
- let r = this.keyMap.get(e);
310
- return r ? r.nextKey : null;
311
- }
312
- getFirstKey() {
313
- return this.firstKey;
314
- }
315
- getLastKey() {
316
- return this.lastKey;
317
- }
318
- getItem(e) {
319
- return this.keyMap.get(e);
320
- }
321
- at(e) {
322
- const r = [
323
- ...this.getKeys()
324
- ];
325
- return this.getItem(r[e]);
326
- }
327
- getChildren(e) {
328
- let r = this.keyMap.get(e);
329
- return (r == null ? void 0 : r.childNodes) || [];
330
- }
331
- constructor(e) {
332
- this.keyMap = /* @__PURE__ */ new Map(), this.iterable = e;
333
- let r = (o) => {
334
- if (this.keyMap.set(o.key, o), o.childNodes && o.type === "section")
335
- for (let s of o.childNodes)
336
- r(s);
337
- };
338
- for (let o of e)
339
- r(o);
340
- let n, i = 0;
341
- for (let [o, s] of this.keyMap)
342
- n ? (n.nextKey = o, s.prevKey = n.key) : (this.firstKey = o, s.prevKey = void 0), s.type === "item" && (s.index = i++), n = s, n.nextKey = void 0;
343
- this.lastKey = n == null ? void 0 : n.key;
344
- }
345
- }
346
- function Qt(t) {
347
- let { filter: e } = t, r = Jt(t), n = V(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
417
+ function Jt(t) {
418
+ let { filter: e } = t, r = Yt(t), n = G(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
348
419
  t.disabledKeys
349
- ]), i = q((b) => e ? new Ve(e(b)) : new Ve(b), [
420
+ ]), i = Y((y) => e ? new Ge(e(y)) : new Ge(y), [
350
421
  e
351
- ]), o = V(() => ({
422
+ ]), o = G(() => ({
352
423
  suppressTextValueWarning: t.suppressTextValueWarning
353
424
  }), [
354
425
  t.suppressTextValueWarning
355
- ]), s = jt(t, i, o), u = V(() => new Zt(s, r), [
426
+ ]), s = Wt(t, i, o), u = G(() => new _t(s, r), [
356
427
  s,
357
428
  r
358
429
  ]);
359
- const f = k(null);
430
+ const p = k(null);
360
431
  return z(() => {
361
432
  if (r.focusedKey != null && !s.getItem(r.focusedKey)) {
362
- const b = f.current.getItem(r.focusedKey), v = [
363
- ...f.current.getKeys()
364
- ].map((P) => {
365
- const K = f.current.getItem(P);
366
- return K.type === "item" ? K : null;
367
- }).filter((P) => P !== null), T = [
433
+ const y = p.current.getItem(r.focusedKey), g = [
434
+ ...p.current.getKeys()
435
+ ].map((S) => {
436
+ const w = p.current.getItem(S);
437
+ return w.type === "item" ? w : null;
438
+ }).filter((S) => S !== null), T = [
368
439
  ...s.getKeys()
369
- ].map((P) => {
370
- const K = s.getItem(P);
371
- return K.type === "item" ? K : null;
372
- }).filter((P) => P !== null), h = v.length - T.length;
373
- let g = Math.min(h > 1 ? Math.max(b.index - h + 1, 0) : b.index, T.length - 1), L;
374
- for (; g >= 0; ) {
375
- if (!u.isDisabled(T[g].key)) {
376
- L = T[g];
440
+ ].map((S) => {
441
+ const w = s.getItem(S);
442
+ return w.type === "item" ? w : null;
443
+ }).filter((S) => S !== null), h = g.length - T.length;
444
+ let v = Math.min(h > 1 ? Math.max(y.index - h + 1, 0) : y.index, T.length - 1), L;
445
+ for (; v >= 0; ) {
446
+ if (!u.isDisabled(T[v].key)) {
447
+ L = T[v];
377
448
  break;
378
449
  }
379
- g < T.length - 1 ? g++ : (g > b.index && (g = b.index), g--);
450
+ v < T.length - 1 ? v++ : (v > y.index && (v = y.index), v--);
380
451
  }
381
452
  r.setFocusedKey(L ? L.key : null);
382
453
  }
383
- f.current = s;
454
+ p.current = s;
384
455
  }, [
385
456
  s,
386
457
  u,
@@ -392,43 +463,43 @@ function Qt(t) {
392
463
  selectionManager: u
393
464
  };
394
465
  }
395
- function _t(t) {
466
+ function Zt(t) {
396
467
  var e;
397
- let [r, n] = dt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), i = V(() => r != null ? [
468
+ let [r, n] = dt(t.selectedKey, (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : null, t.onSelectionChange), i = G(() => r != null ? [
398
469
  r
399
470
  ] : [], [
400
471
  r
401
- ]), { collection: o, disabledKeys: s, selectionManager: u } = Qt({
472
+ ]), { collection: o, disabledKeys: s, selectionManager: u } = Jt({
402
473
  ...t,
403
474
  selectionMode: "single",
404
475
  disallowEmptySelection: !0,
405
476
  allowDuplicateSelectionEvents: !0,
406
477
  selectedKeys: i,
407
- onSelectionChange: (b) => {
408
- var v;
409
- let T = (v = b.values().next().value) !== null && v !== void 0 ? v : null;
478
+ onSelectionChange: (y) => {
479
+ var g;
480
+ let T = (g = y.values().next().value) !== null && g !== void 0 ? g : null;
410
481
  T === r && t.onSelectionChange && t.onSelectionChange(T), n(T);
411
482
  }
412
- }), f = r != null ? o.getItem(r) : null;
483
+ }), p = r != null ? o.getItem(r) : null;
413
484
  return {
414
485
  collection: o,
415
486
  disabledKeys: s,
416
487
  selectionManager: u,
417
488
  selectedKey: r,
418
489
  setSelectedKey: n,
419
- selectedItem: f
490
+ selectedItem: p
420
491
  };
421
492
  }
422
- function er(t) {
493
+ function Qt(t) {
423
494
  var e;
424
- let r = _t({
495
+ let r = Zt({
425
496
  ...t,
426
497
  suppressTextValueWarning: !0,
427
- defaultSelectedKey: (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : Ge(t.collection, t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set())
498
+ defaultSelectedKey: (e = t.defaultSelectedKey) !== null && e !== void 0 ? e : qe(t.collection, t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set())
428
499
  }), { selectionManager: n, collection: i, selectedKey: o } = r, s = k(o);
429
500
  return z(() => {
430
501
  let u = o;
431
- (n.isEmpty || !i.getItem(u)) && (u = Ge(i, r.disabledKeys), u != null && n.setSelectedKeys([
502
+ (n.isEmpty || !i.getItem(u)) && (u = qe(i, r.disabledKeys), u != null && n.setSelectedKeys([
432
503
  u
433
504
  ])), (u != null && n.focusedKey == null || !n.isFocused && u !== s.current) && n.setFocusedKey(u), s.current = u;
434
505
  }), {
@@ -436,7 +507,7 @@ function er(t) {
436
507
  isDisabled: t.isDisabled || !1
437
508
  };
438
509
  }
439
- function Ge(t, e) {
510
+ function qe(t, e) {
440
511
  let r = null;
441
512
  if (t) {
442
513
  for (r = t.getFirstKey(); e.has(r) && r !== t.getLastKey(); )
@@ -445,13 +516,30 @@ function Ge(t, e) {
445
516
  }
446
517
  return r;
447
518
  }
448
- const ve = {
519
+ const ft = /* @__PURE__ */ new WeakMap();
520
+ function ge(t, e, r) {
521
+ return typeof e == "string" && (e = e.replace(/\s+/g, "")), `${ft.get(t)}-${r}-${e}`;
522
+ }
523
+ const ue = typeof document < "u" ? U.useLayoutEffect : () => {
524
+ };
525
+ function re(t) {
526
+ const e = k(null);
527
+ return ue(() => {
528
+ e.current = t;
529
+ }, [
530
+ t
531
+ ]), Y((...r) => {
532
+ const n = e.current;
533
+ return n == null ? void 0 : n(...r);
534
+ }, []);
535
+ }
536
+ const he = {
449
537
  prefix: String(Math.round(Math.random() * 1e10)),
450
538
  current: 0
451
- }, ft = /* @__PURE__ */ U.createContext(ve), tr = /* @__PURE__ */ U.createContext(!1);
452
- let rr = Boolean(typeof window < "u" && window.document && window.document.createElement), we = /* @__PURE__ */ new WeakMap();
453
- function nr(t = !1) {
454
- let e = le(ft), r = k(null);
539
+ }, pt = /* @__PURE__ */ U.createContext(he), er = /* @__PURE__ */ U.createContext(!1);
540
+ let tr = !!(typeof window < "u" && window.document && window.document.createElement), we = /* @__PURE__ */ new WeakMap();
541
+ function rr(t = !1) {
542
+ let e = oe(pt), r = k(null);
455
543
  if (r.current === null && !t) {
456
544
  var n, i;
457
545
  let o = (i = U.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || i === void 0 || (n = i.ReactCurrentOwner) === null || n === void 0 ? void 0 : n.current;
@@ -466,71 +554,39 @@ function nr(t = !1) {
466
554
  }
467
555
  return r.current;
468
556
  }
469
- function ir(t) {
470
- let e = le(ft);
471
- e === ve && !rr && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
472
- let r = nr(!!t), n = e === ve && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
557
+ function nr(t) {
558
+ let e = oe(pt);
559
+ e === he && !tr && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
560
+ let r = rr(!!t), n = e === he && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${e.prefix}`;
473
561
  return t || `${n}-${r}`;
474
562
  }
475
- function lr(t) {
476
- let e = U.useId(), [r] = R(pt()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ve.prefix}`;
563
+ function ir(t) {
564
+ let e = U.useId(), [r] = R(bt()), n = r || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${he.prefix}`;
477
565
  return t || `${n}-${e}`;
478
566
  }
479
- const or = typeof U.useId == "function" ? lr : ir;
480
- function sr() {
567
+ const lr = typeof U.useId == "function" ? ir : nr;
568
+ function or() {
481
569
  return !1;
482
570
  }
483
- function ar() {
571
+ function sr() {
484
572
  return !0;
485
573
  }
486
- function cr(t) {
574
+ function ar(t) {
487
575
  return () => {
488
576
  };
489
577
  }
490
- function pt() {
491
- return typeof U.useSyncExternalStore == "function" ? U.useSyncExternalStore(cr, sr, ar) : le(tr);
578
+ function bt() {
579
+ return typeof U.useSyncExternalStore == "function" ? U.useSyncExternalStore(ar, or, sr) : oe(er);
492
580
  }
581
+ let cr = !!(typeof window < "u" && window.document && window.document.createElement), $e = /* @__PURE__ */ new Map();
493
582
  function yt(t) {
494
- var e, r, n = "";
495
- if (typeof t == "string" || typeof t == "number")
496
- n += t;
497
- else if (typeof t == "object")
498
- if (Array.isArray(t)) {
499
- var i = t.length;
500
- for (e = 0; e < i; e++)
501
- t[e] && (r = yt(t[e])) && (n && (n += " "), n += r);
502
- } else
503
- for (r in t)
504
- t[r] && (n && (n += " "), n += r);
505
- return n;
506
- }
507
- function ur() {
508
- for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++)
509
- (t = arguments[r]) && (e = yt(t)) && (n && (n += " "), n += e);
510
- return n;
511
- }
512
- const ce = typeof document < "u" ? U.useLayoutEffect : () => {
513
- };
514
- function te(t) {
515
- const e = k(null);
516
- return ce(() => {
517
- e.current = t;
518
- }, [
519
- t
520
- ]), q((...r) => {
521
- const n = e.current;
522
- return n == null ? void 0 : n(...r);
523
- }, []);
524
- }
525
- let dr = Boolean(typeof window < "u" && window.document && window.document.createElement), ge = /* @__PURE__ */ new Map();
526
- function bt(t) {
527
- let [e, r] = R(t), n = k(null), i = or(e), o = q((s) => {
583
+ let [e, r] = R(t), n = k(null), i = lr(e), o = Y((s) => {
528
584
  n.current = s;
529
585
  }, []);
530
- return dr && ge.set(i, o), ce(() => {
586
+ return cr && $e.set(i, o), ue(() => {
531
587
  let s = i;
532
588
  return () => {
533
- ge.delete(s);
589
+ $e.delete(s);
534
590
  };
535
591
  }, [
536
592
  i
@@ -539,13 +595,13 @@ function bt(t) {
539
595
  s && (n.current = null, r(s));
540
596
  }), i;
541
597
  }
542
- function fr(t, e) {
598
+ function ur(t, e) {
543
599
  if (t === e)
544
600
  return t;
545
- let r = ge.get(t);
601
+ let r = $e.get(t);
546
602
  if (r)
547
603
  return r(e), e;
548
- let n = ge.get(e);
604
+ let n = $e.get(e);
549
605
  return n ? (n(t), t) : e;
550
606
  }
551
607
  function vt(...t) {
@@ -557,8 +613,27 @@ function vt(...t) {
557
613
  const D = (t) => {
558
614
  var e;
559
615
  return (e = t == null ? void 0 : t.ownerDocument) !== null && e !== void 0 ? e : document;
560
- }, Y = (t) => t && "window" in t && t.window === t ? t : D(t).defaultView || window;
561
- function G(...t) {
616
+ }, _ = (t) => t && "window" in t && t.window === t ? t : D(t).defaultView || window;
617
+ function gt(t) {
618
+ var e, r, n = "";
619
+ if (typeof t == "string" || typeof t == "number")
620
+ n += t;
621
+ else if (typeof t == "object")
622
+ if (Array.isArray(t)) {
623
+ var i = t.length;
624
+ for (e = 0; e < i; e++)
625
+ t[e] && (r = gt(t[e])) && (n && (n += " "), n += r);
626
+ } else
627
+ for (r in t)
628
+ t[r] && (n && (n += " "), n += r);
629
+ return n;
630
+ }
631
+ function dr() {
632
+ for (var t, e, r = 0, n = "", i = arguments.length; r < i; r++)
633
+ (t = arguments[r]) && (e = gt(t)) && (n && (n += " "), n += e);
634
+ return n;
635
+ }
636
+ function X(...t) {
562
637
  let e = {
563
638
  ...t[0]
564
639
  };
@@ -566,58 +641,62 @@ function G(...t) {
566
641
  let n = t[r];
567
642
  for (let i in n) {
568
643
  let o = e[i], s = n[i];
569
- typeof o == "function" && typeof s == "function" && i[0] === "o" && i[1] === "n" && i.charCodeAt(2) >= 65 && i.charCodeAt(2) <= 90 ? e[i] = vt(o, s) : (i === "className" || i === "UNSAFE_className") && typeof o == "string" && typeof s == "string" ? e[i] = ur(o, s) : i === "id" && o && s ? e.id = fr(o, s) : e[i] = s !== void 0 ? s : o;
644
+ typeof o == "function" && typeof s == "function" && // This is a lot faster than a regex.
645
+ i[0] === "o" && i[1] === "n" && i.charCodeAt(2) >= /* 'A' */
646
+ 65 && i.charCodeAt(2) <= /* 'Z' */
647
+ 90 ? e[i] = vt(o, s) : (i === "className" || i === "UNSAFE_className") && typeof o == "string" && typeof s == "string" ? e[i] = dr(o, s) : i === "id" && o && s ? e.id = ur(o, s) : e[i] = s !== void 0 ? s : o;
570
648
  }
571
649
  }
572
650
  return e;
573
651
  }
574
- const pr = /* @__PURE__ */ new Set([
652
+ const fr = /* @__PURE__ */ new Set([
575
653
  "id"
576
- ]), yr = /* @__PURE__ */ new Set([
654
+ ]), pr = /* @__PURE__ */ new Set([
577
655
  "aria-label",
578
656
  "aria-labelledby",
579
657
  "aria-describedby",
580
658
  "aria-details"
581
659
  ]), br = /* @__PURE__ */ new Set([
582
660
  "href",
661
+ "hrefLang",
583
662
  "target",
584
663
  "rel",
585
664
  "download",
586
665
  "ping",
587
666
  "referrerPolicy"
588
- ]), vr = /^(data-.*)$/;
589
- function gr(t, e = {}) {
667
+ ]), yr = /^(data-.*)$/;
668
+ function vr(t, e = {}) {
590
669
  let { labelable: r, isLink: n, propNames: i } = e, o = {};
591
670
  for (const s in t)
592
- Object.prototype.hasOwnProperty.call(t, s) && (pr.has(s) || r && yr.has(s) || n && br.has(s) || (i == null ? void 0 : i.has(s)) || vr.test(s)) && (o[s] = t[s]);
671
+ Object.prototype.hasOwnProperty.call(t, s) && (fr.has(s) || r && pr.has(s) || n && br.has(s) || i != null && i.has(s) || yr.test(s)) && (o[s] = t[s]);
593
672
  return o;
594
673
  }
595
- function j(t) {
596
- if (hr())
674
+ function V(t) {
675
+ if (gr())
597
676
  t.focus({
598
677
  preventScroll: !0
599
678
  });
600
679
  else {
601
- let e = $r(t);
602
- t.focus(), mr(e);
680
+ let e = hr(t);
681
+ t.focus(), $r(e);
603
682
  }
604
683
  }
605
- let de = null;
606
- function hr() {
607
- if (de == null) {
608
- de = !1;
684
+ let fe = null;
685
+ function gr() {
686
+ if (fe == null) {
687
+ fe = !1;
609
688
  try {
610
689
  document.createElement("div").focus({
611
690
  get preventScroll() {
612
- return de = !0, !0;
691
+ return fe = !0, !0;
613
692
  }
614
693
  });
615
694
  } catch {
616
695
  }
617
696
  }
618
- return de;
697
+ return fe;
619
698
  }
620
- function $r(t) {
699
+ function hr(t) {
621
700
  let e = t.parentNode, r = [], n = document.scrollingElement || document.documentElement;
622
701
  for (; e instanceof HTMLElement && e !== n; )
623
702
  (e.offsetHeight < e.scrollHeight || e.offsetWidth < e.scrollWidth) && r.push({
@@ -631,11 +710,11 @@ function $r(t) {
631
710
  scrollLeft: n.scrollLeft
632
711
  }), r;
633
712
  }
634
- function mr(t) {
713
+ function $r(t) {
635
714
  for (let { element: e, scrollTop: r, scrollLeft: n } of t)
636
715
  e.scrollTop = r, e.scrollLeft = n;
637
716
  }
638
- function me(t) {
717
+ function Ke(t) {
639
718
  var e;
640
719
  return typeof window > "u" || window.navigator == null ? !1 : ((e = window.navigator.userAgentData) === null || e === void 0 ? void 0 : e.brands.some((r) => t.test(r.brand))) || t.test(window.navigator.userAgent);
641
720
  }
@@ -646,59 +725,61 @@ function Oe(t) {
646
725
  function J() {
647
726
  return Oe(/^Mac/i);
648
727
  }
649
- function Kr() {
728
+ function mr() {
650
729
  return Oe(/^iPhone/i);
651
730
  }
652
- function gt() {
653
- return Oe(/^iPad/i) || J() && navigator.maxTouchPoints > 1;
731
+ function ht() {
732
+ return Oe(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
733
+ J() && navigator.maxTouchPoints > 1;
654
734
  }
655
735
  function ze() {
656
- return Kr() || gt();
736
+ return mr() || ht();
657
737
  }
658
- function Sr() {
738
+ function Kr() {
659
739
  return J() || ze();
660
740
  }
661
- function Tr() {
662
- return me(/AppleWebKit/i) && !wr();
741
+ function Sr() {
742
+ return Ke(/AppleWebKit/i) && !Tr();
663
743
  }
664
- function wr() {
665
- return me(/Chrome/i);
744
+ function Tr() {
745
+ return Ke(/Chrome/i);
666
746
  }
667
- function ht() {
668
- return me(/Android/i);
747
+ function $t() {
748
+ return Ke(/Android/i);
669
749
  }
670
- function Pr() {
671
- return me(/Firefox/i);
750
+ function wr() {
751
+ return Ke(/Firefox/i);
672
752
  }
673
- const Er = /* @__PURE__ */ Ut({
753
+ const Pr = /* @__PURE__ */ Rt({
674
754
  isNative: !0,
675
- open: kr
755
+ open: xr,
756
+ useHref: (t) => t
676
757
  });
677
- function $t() {
678
- return le(Er);
758
+ function Ne() {
759
+ return oe(Pr);
679
760
  }
680
761
  function Z(t, e, r = !0) {
681
762
  var n, i;
682
- let { metaKey: o, ctrlKey: s, altKey: u, shiftKey: f } = e;
683
- Pr() && ((i = window.event) === null || i === void 0 || (n = i.type) === null || n === void 0 ? void 0 : n.startsWith("key")) && t.target === "_blank" && (J() ? o = !0 : s = !0);
684
- let b = Tr() && J() && !gt() ? new KeyboardEvent("keydown", {
763
+ let { metaKey: o, ctrlKey: s, altKey: u, shiftKey: p } = e;
764
+ wr() && (!((i = window.event) === null || i === void 0 || (n = i.type) === null || n === void 0) && n.startsWith("key")) && t.target === "_blank" && (J() ? o = !0 : s = !0);
765
+ let y = Sr() && J() && !ht() ? new KeyboardEvent("keydown", {
685
766
  keyIdentifier: "Enter",
686
767
  metaKey: o,
687
768
  ctrlKey: s,
688
769
  altKey: u,
689
- shiftKey: f
770
+ shiftKey: p
690
771
  }) : new MouseEvent("click", {
691
772
  metaKey: o,
692
773
  ctrlKey: s,
693
774
  altKey: u,
694
- shiftKey: f,
775
+ shiftKey: p,
695
776
  bubbles: !0,
696
777
  cancelable: !0
697
778
  });
698
- Z.isOpening = r, j(t), t.dispatchEvent(b), Z.isOpening = !1;
779
+ Z.isOpening = r, V(t), t.dispatchEvent(y), Z.isOpening = !1;
699
780
  }
700
781
  Z.isOpening = !1;
701
- function xr(t, e) {
782
+ function Er(t, e) {
702
783
  if (t instanceof HTMLAnchorElement)
703
784
  e(t);
704
785
  else if (t.hasAttribute("data-href")) {
@@ -706,11 +787,22 @@ function xr(t, e) {
706
787
  r.href = t.getAttribute("data-href"), t.hasAttribute("data-target") && (r.target = t.getAttribute("data-target")), t.hasAttribute("data-rel") && (r.rel = t.getAttribute("data-rel")), t.hasAttribute("data-download") && (r.download = t.getAttribute("data-download")), t.hasAttribute("data-ping") && (r.ping = t.getAttribute("data-ping")), t.hasAttribute("data-referrer-policy") && (r.referrerPolicy = t.getAttribute("data-referrer-policy")), t.appendChild(r), e(r), t.removeChild(r);
707
788
  }
708
789
  }
709
- function kr(t, e) {
710
- xr(t, (r) => Z(r, e));
790
+ function xr(t, e) {
791
+ Er(t, (r) => Z(r, e));
792
+ }
793
+ function kr(t) {
794
+ let e = Ne();
795
+ return {
796
+ href: t != null && t.href ? e.useHref(t == null ? void 0 : t.href) : void 0,
797
+ target: t == null ? void 0 : t.target,
798
+ rel: t == null ? void 0 : t.rel,
799
+ download: t == null ? void 0 : t.download,
800
+ ping: t == null ? void 0 : t.ping,
801
+ referrerPolicy: t == null ? void 0 : t.referrerPolicy
802
+ };
711
803
  }
712
- let re = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Set();
713
- function Xe() {
804
+ let ne = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Set();
805
+ function Ye() {
714
806
  if (typeof window > "u")
715
807
  return;
716
808
  function t(n) {
@@ -719,15 +811,15 @@ function Xe() {
719
811
  let e = (n) => {
720
812
  if (!t(n) || !n.target)
721
813
  return;
722
- let i = re.get(n.target);
723
- i || (i = /* @__PURE__ */ new Set(), re.set(n.target, i), n.target.addEventListener("transitioncancel", r, {
814
+ let i = ne.get(n.target);
815
+ i || (i = /* @__PURE__ */ new Set(), ne.set(n.target, i), n.target.addEventListener("transitioncancel", r, {
724
816
  once: !0
725
817
  })), i.add(n.propertyName);
726
818
  }, r = (n) => {
727
819
  if (!t(n) || !n.target)
728
820
  return;
729
- let i = re.get(n.target);
730
- if (!!i && (i.delete(n.propertyName), i.size === 0 && (n.target.removeEventListener("transitioncancel", r), re.delete(n.target)), re.size === 0)) {
821
+ let i = ne.get(n.target);
822
+ if (i && (i.delete(n.propertyName), i.size === 0 && (n.target.removeEventListener("transitioncancel", r), ne.delete(n.target)), ne.size === 0)) {
731
823
  for (let o of ke)
732
824
  o();
733
825
  ke.clear();
@@ -735,28 +827,28 @@ function Xe() {
735
827
  };
736
828
  document.body.addEventListener("transitionrun", e), document.body.addEventListener("transitionend", r);
737
829
  }
738
- typeof document < "u" && (document.readyState !== "loading" ? Xe() : document.addEventListener("DOMContentLoaded", Xe));
830
+ typeof document < "u" && (document.readyState !== "loading" ? Ye() : document.addEventListener("DOMContentLoaded", Ye));
739
831
  function mt(t) {
740
832
  requestAnimationFrame(() => {
741
- re.size === 0 ? t() : ke.add(t);
833
+ ne.size === 0 ? t() : ke.add(t);
742
834
  });
743
835
  }
744
836
  function Kt() {
745
- let t = k(/* @__PURE__ */ new Map()), e = q((i, o, s, u) => {
746
- let f = u != null && u.once ? (...b) => {
747
- t.current.delete(s), s(...b);
837
+ let t = k(/* @__PURE__ */ new Map()), e = Y((i, o, s, u) => {
838
+ let p = u != null && u.once ? (...y) => {
839
+ t.current.delete(s), s(...y);
748
840
  } : s;
749
841
  t.current.set(s, {
750
842
  type: o,
751
843
  eventTarget: i,
752
- fn: f,
844
+ fn: p,
753
845
  options: u
754
846
  }), i.addEventListener(o, s, u);
755
- }, []), r = q((i, o, s, u) => {
756
- var f;
757
- let b = ((f = t.current.get(s)) === null || f === void 0 ? void 0 : f.fn) || s;
758
- i.removeEventListener(o, b, u), t.current.delete(s);
759
- }, []), n = q(() => {
847
+ }, []), r = Y((i, o, s, u) => {
848
+ var p;
849
+ let y = ((p = t.current.get(s)) === null || p === void 0 ? void 0 : p.fn) || s;
850
+ i.removeEventListener(o, y, u), t.current.delete(s);
851
+ }, []), n = Y(() => {
760
852
  t.current.forEach((i, o) => {
761
853
  r(i.eventTarget, i.type, o, i.options);
762
854
  });
@@ -773,7 +865,7 @@ function Kt() {
773
865
  }
774
866
  function St(t, e) {
775
867
  let { id: r, "aria-label": n, "aria-labelledby": i } = t;
776
- return r = bt(r), i && n ? i = [
868
+ return r = yt(r), i && n ? i = [
777
869
  .../* @__PURE__ */ new Set([
778
870
  r,
779
871
  ...i.trim().split(/\s+/)
@@ -785,35 +877,35 @@ function St(t, e) {
785
877
  };
786
878
  }
787
879
  function Lr(t, e) {
788
- ce(() => {
880
+ ue(() => {
789
881
  if (t && t.ref && e)
790
882
  return t.ref.current = e.current, () => {
791
883
  t.ref && (t.ref.current = null);
792
884
  };
793
885
  });
794
886
  }
795
- function qe(t, e) {
796
- let r = t;
797
- for (Ye(r, e) && (r = r.parentElement); r && !Ye(r, e); )
798
- r = r.parentElement;
799
- return r || document.scrollingElement || document.documentElement;
800
- }
801
- function Ye(t, e) {
887
+ function Mr(t, e) {
802
888
  let r = window.getComputedStyle(t), n = /(auto|scroll)/.test(r.overflow + r.overflowX + r.overflowY);
803
889
  return n && e && (n = t.scrollHeight !== t.clientHeight || t.scrollWidth !== t.clientWidth), n;
804
890
  }
805
- let Mr = 0;
891
+ function Ir(t, e) {
892
+ const r = [];
893
+ for (; t && t !== document.documentElement; )
894
+ Mr(t, e) && r.push(t), t = t.parentElement;
895
+ return r;
896
+ }
897
+ let Cr = 0;
806
898
  const Pe = /* @__PURE__ */ new Map();
807
- function Cr(t) {
899
+ function Dr(t) {
808
900
  let [e, r] = R();
809
- return ce(() => {
901
+ return ue(() => {
810
902
  if (!t)
811
903
  return;
812
904
  let n = Pe.get(t);
813
905
  if (n)
814
906
  r(n.element.id);
815
907
  else {
816
- let i = `react-aria-description-${Mr++}`;
908
+ let i = `react-aria-description-${Cr++}`;
817
909
  r(i);
818
910
  let o = document.createElement("div");
819
911
  o.id = i, o.style.display = "none", o.textContent = t, document.body.appendChild(o), n = {
@@ -830,8 +922,8 @@ function Cr(t) {
830
922
  "aria-describedby": t ? e : void 0
831
923
  };
832
924
  }
833
- function Ir(t, e, r, n) {
834
- let i = te(r), o = r == null;
925
+ function Ar(t, e, r, n) {
926
+ let i = re(r), o = r == null;
835
927
  z(() => {
836
928
  if (o || !t.current)
837
929
  return;
@@ -848,10 +940,10 @@ function Ir(t, e, r, n) {
848
940
  ]);
849
941
  }
850
942
  function Tt(t, e) {
851
- let r = Je(t, e, "left"), n = Je(t, e, "top"), i = e.offsetWidth, o = e.offsetHeight, s = t.scrollLeft, u = t.scrollTop, { borderTopWidth: f, borderLeftWidth: b } = getComputedStyle(t), v = t.scrollLeft + parseInt(b, 10), T = t.scrollTop + parseInt(f, 10), h = v + t.clientWidth, g = T + t.clientHeight;
852
- r <= s ? s = r - parseInt(b, 10) : r + i > h && (s += r + i - h), n <= T ? u = n - parseInt(f, 10) : n + o > g && (u += n + o - g), t.scrollLeft = s, t.scrollTop = u;
943
+ let r = _e(t, e, "left"), n = _e(t, e, "top"), i = e.offsetWidth, o = e.offsetHeight, s = t.scrollLeft, u = t.scrollTop, { borderTopWidth: p, borderLeftWidth: y } = getComputedStyle(t), g = t.scrollLeft + parseInt(y, 10), T = t.scrollTop + parseInt(p, 10), h = g + t.clientWidth, v = T + t.clientHeight;
944
+ r <= s ? s = r - parseInt(y, 10) : r + i > h && (s += r + i - h), n <= T ? u = n - parseInt(p, 10) : n + o > v && (u += n + o - v), t.scrollLeft = s, t.scrollTop = u;
853
945
  }
854
- function Je(t, e, r) {
946
+ function _e(t, e, r) {
855
947
  const n = r === "left" ? "offsetLeft" : "offsetTop";
856
948
  let i = 0;
857
949
  for (; e.offsetParent && (i += e[n], e.offsetParent !== t); ) {
@@ -863,21 +955,21 @@ function Je(t, e, r) {
863
955
  }
864
956
  return i;
865
957
  }
866
- function Ze(t, e) {
958
+ function Je(t, e) {
867
959
  if (document.contains(t)) {
868
960
  let s = document.scrollingElement || document.documentElement;
869
961
  if (window.getComputedStyle(s).overflow === "hidden") {
870
- let f = qe(t);
871
- for (; t && f && t !== s && f !== s; )
872
- Tt(f, t), t = f, f = qe(t);
962
+ let p = Ir(t);
963
+ for (let y of p)
964
+ Tt(y, t);
873
965
  } else {
874
966
  var r;
875
- let { left: f, top: b } = t.getBoundingClientRect();
967
+ let { left: p, top: y } = t.getBoundingClientRect();
876
968
  t == null || (r = t.scrollIntoView) === null || r === void 0 || r.call(t, {
877
969
  block: "nearest"
878
970
  });
879
- let { left: v, top: T } = t.getBoundingClientRect();
880
- if (Math.abs(f - v) > 1 || Math.abs(b - T) > 1) {
971
+ let { left: g, top: T } = t.getBoundingClientRect();
972
+ if (Math.abs(p - g) > 1 || Math.abs(y - T) > 1) {
881
973
  var n, i, o;
882
974
  e == null || (i = e.containingElement) === null || i === void 0 || (n = i.scrollIntoView) === null || n === void 0 || n.call(i, {
883
975
  block: "center",
@@ -890,97 +982,129 @@ function Ze(t, e) {
890
982
  }
891
983
  }
892
984
  function Le(t) {
893
- return t.mozInputSource === 0 && t.isTrusted ? !0 : ht() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
985
+ return t.mozInputSource === 0 && t.isTrusted ? !0 : $t() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
894
986
  }
895
- function Dr(t) {
896
- return !ht() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
987
+ function Fr(t) {
988
+ return !$t() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
897
989
  }
898
- function Ar(t, e) {
899
- return e.get ? e.get.call(t) : e.value;
990
+ function Me(t) {
991
+ return Kr() ? t.altKey : t.ctrlKey;
900
992
  }
901
- function wt(t, e, r) {
902
- if (!e.has(t))
903
- throw new TypeError("attempted to " + r + " private field on non-instance");
904
- return e.get(t);
905
- }
906
- function Fr(t, e) {
907
- var r = wt(t, e, "get");
908
- return Ar(t, r);
909
- }
910
- function Or(t, e) {
911
- if (e.has(t))
912
- throw new TypeError("Cannot initialize the same private elements twice on an object");
913
- }
914
- function zr(t, e, r) {
915
- Or(t, e), e.set(t, r);
993
+ function ie(t) {
994
+ return J() ? t.metaKey : t.ctrlKey;
916
995
  }
917
- function Nr(t, e, r) {
918
- if (e.set)
919
- e.set.call(t, r);
920
- else {
921
- if (!e.writable)
922
- throw new TypeError("attempted to set read only private field");
923
- e.value = r;
924
- }
996
+ const Or = 1e3;
997
+ function zr(t) {
998
+ let { keyboardDelegate: e, selectionManager: r, onTypeSelect: n } = t, i = k({
999
+ search: "",
1000
+ timeout: null
1001
+ }).current, o = (s) => {
1002
+ let u = Nr(s.key);
1003
+ if (!u || s.ctrlKey || s.metaKey || !s.currentTarget.contains(s.target))
1004
+ return;
1005
+ u === " " && i.search.trim().length > 0 && (s.preventDefault(), "continuePropagation" in s || s.stopPropagation()), i.search += u;
1006
+ let p = e.getKeyForSearch(i.search, r.focusedKey);
1007
+ p == null && (p = e.getKeyForSearch(i.search)), p != null && (r.setFocusedKey(p), n && n(p)), clearTimeout(i.timeout), i.timeout = setTimeout(() => {
1008
+ i.search = "";
1009
+ }, Or);
1010
+ };
1011
+ return {
1012
+ typeSelectProps: {
1013
+ // Using a capturing listener to catch the keydown event before
1014
+ // other hooks in order to handle the Spacebar event.
1015
+ onKeyDownCapture: e.getKeyForSearch ? o : null
1016
+ }
1017
+ };
925
1018
  }
926
- function Qe(t, e, r) {
927
- var n = wt(t, e, "set");
928
- return Nr(t, n, r), r;
1019
+ function Nr(t) {
1020
+ return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
929
1021
  }
930
- let ie = "default", Me = "", be = /* @__PURE__ */ new WeakMap();
931
- function _e(t) {
1022
+ let le = "default", Ie = "", ve = /* @__PURE__ */ new WeakMap();
1023
+ function Ze(t) {
932
1024
  if (ze()) {
933
- if (ie === "default") {
1025
+ if (le === "default") {
934
1026
  const e = D(t);
935
- Me = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
1027
+ Ie = e.documentElement.style.webkitUserSelect, e.documentElement.style.webkitUserSelect = "none";
936
1028
  }
937
- ie = "disabled";
1029
+ le = "disabled";
938
1030
  } else
939
- (t instanceof HTMLElement || t instanceof SVGElement) && (be.set(t, t.style.userSelect), t.style.userSelect = "none");
1031
+ (t instanceof HTMLElement || t instanceof SVGElement) && (ve.set(t, t.style.userSelect), t.style.userSelect = "none");
940
1032
  }
941
- function fe(t) {
1033
+ function pe(t) {
942
1034
  if (ze()) {
943
- if (ie !== "disabled")
1035
+ if (le !== "disabled")
944
1036
  return;
945
- ie = "restoring", setTimeout(() => {
1037
+ le = "restoring", setTimeout(() => {
946
1038
  mt(() => {
947
- if (ie === "restoring") {
1039
+ if (le === "restoring") {
948
1040
  const e = D(t);
949
- e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = Me || ""), Me = "", ie = "default";
1041
+ e.documentElement.style.webkitUserSelect === "none" && (e.documentElement.style.webkitUserSelect = Ie || ""), Ie = "", le = "default";
950
1042
  }
951
1043
  });
952
1044
  }, 300);
953
- } else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && be.has(t)) {
954
- let e = be.get(t);
955
- t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), be.delete(t);
1045
+ } else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && ve.has(t)) {
1046
+ let e = ve.get(t);
1047
+ t.style.userSelect === "none" && (t.style.userSelect = e), t.getAttribute("style") === "" && t.removeAttribute("style"), ve.delete(t);
956
1048
  }
957
1049
  }
958
- const Pt = U.createContext({
1050
+ const wt = U.createContext({
959
1051
  register: () => {
960
1052
  }
961
1053
  });
962
- Pt.displayName = "PressResponderContext";
963
- function Br(t) {
964
- let e = le(Pt);
1054
+ wt.displayName = "PressResponderContext";
1055
+ function Br(t, e) {
1056
+ return e.get ? e.get.call(t) : e.value;
1057
+ }
1058
+ function Pt(t, e, r) {
1059
+ if (!e.has(t))
1060
+ throw new TypeError("attempted to " + r + " private field on non-instance");
1061
+ return e.get(t);
1062
+ }
1063
+ function Rr(t, e) {
1064
+ var r = Pt(t, e, "get");
1065
+ return Br(t, r);
1066
+ }
1067
+ function Ur(t, e) {
1068
+ if (e.has(t))
1069
+ throw new TypeError("Cannot initialize the same private elements twice on an object");
1070
+ }
1071
+ function Hr(t, e, r) {
1072
+ Ur(t, e), e.set(t, r);
1073
+ }
1074
+ function Wr(t, e, r) {
1075
+ if (e.set)
1076
+ e.set.call(t, r);
1077
+ else {
1078
+ if (!e.writable)
1079
+ throw new TypeError("attempted to set read only private field");
1080
+ e.value = r;
1081
+ }
1082
+ }
1083
+ function Qe(t, e, r) {
1084
+ var n = Pt(t, e, "set");
1085
+ return Wr(t, n, r), r;
1086
+ }
1087
+ function jr(t) {
1088
+ let e = oe(wt);
965
1089
  if (e) {
966
1090
  let { register: r, ...n } = e;
967
- t = G(n, t), r();
1091
+ t = X(n, t), r();
968
1092
  }
969
1093
  return Lr(e, t.ref), t;
970
1094
  }
971
- var pe = /* @__PURE__ */ new WeakMap();
1095
+ var be = /* @__PURE__ */ new WeakMap();
972
1096
  class ye {
973
1097
  continuePropagation() {
974
- Qe(this, pe, !1);
1098
+ Qe(this, be, !1);
975
1099
  }
976
1100
  get shouldStopPropagation() {
977
- return Fr(this, pe);
1101
+ return Rr(this, be);
978
1102
  }
979
1103
  constructor(e, r, n) {
980
- zr(this, pe, {
1104
+ Hr(this, be, {
981
1105
  writable: !0,
982
1106
  value: void 0
983
- }), Qe(this, pe, !0), this.type = e, this.pointerType = r, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey;
1107
+ }), Qe(this, be, !0), this.type = e, this.pointerType = r, this.target = n.currentTarget, this.shiftKey = n.shiftKey, this.metaKey = n.metaKey, this.ctrlKey = n.ctrlKey, this.altKey = n.altKey;
984
1108
  }
985
1109
  }
986
1110
  const et = Symbol("linkClicked");
@@ -993,12 +1117,13 @@ function Et(t) {
993
1117
  onPressUp: o,
994
1118
  isDisabled: s,
995
1119
  isPressed: u,
996
- preventFocusOnPress: f,
997
- shouldCancelOnPointerExit: b,
998
- allowTextSelectionOnPress: v,
1120
+ preventFocusOnPress: p,
1121
+ shouldCancelOnPointerExit: y,
1122
+ allowTextSelectionOnPress: g,
1123
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
999
1124
  ref: T,
1000
1125
  ...h
1001
- } = Br(t), [g, L] = R(!1), P = k({
1126
+ } = jr(t), [v, L] = R(!1), S = k({
1002
1127
  isPressed: !1,
1003
1128
  ignoreEmulatedMouseEvents: !1,
1004
1129
  ignoreClickAfterPress: !1,
@@ -1008,87 +1133,87 @@ function Et(t) {
1008
1133
  target: null,
1009
1134
  isOverTarget: !1,
1010
1135
  pointerType: null
1011
- }), { addGlobalListener: K, removeAllGlobalListeners: M } = Kt(), x = te((l, $) => {
1012
- let p = P.current;
1013
- if (s || p.didFirePressStart)
1136
+ }), { addGlobalListener: w, removeAllGlobalListeners: M } = Kt(), x = re((l, $) => {
1137
+ let f = S.current;
1138
+ if (s || f.didFirePressStart)
1014
1139
  return !1;
1015
1140
  let d = !0;
1016
- if (p.isTriggeringEvent = !0, n) {
1017
- let S = new ye("pressstart", $, l);
1018
- n(S), d = S.shouldStopPropagation;
1141
+ if (f.isTriggeringEvent = !0, n) {
1142
+ let K = new ye("pressstart", $, l);
1143
+ n(K), d = K.shouldStopPropagation;
1019
1144
  }
1020
- return r && r(!0), p.isTriggeringEvent = !1, p.didFirePressStart = !0, L(!0), d;
1021
- }), E = te((l, $, p = !0) => {
1022
- let d = P.current;
1145
+ return r && r(!0), f.isTriggeringEvent = !1, f.didFirePressStart = !0, L(!0), d;
1146
+ }), E = re((l, $, f = !0) => {
1147
+ let d = S.current;
1023
1148
  if (!d.didFirePressStart)
1024
1149
  return !1;
1025
1150
  d.ignoreClickAfterPress = !0, d.didFirePressStart = !1, d.isTriggeringEvent = !0;
1026
- let S = !0;
1151
+ let K = !0;
1027
1152
  if (i) {
1028
1153
  let a = new ye("pressend", $, l);
1029
- i(a), S = a.shouldStopPropagation;
1154
+ i(a), K = a.shouldStopPropagation;
1030
1155
  }
1031
- if (r && r(!1), L(!1), e && p && !s) {
1156
+ if (r && r(!1), L(!1), e && f && !s) {
1032
1157
  let a = new ye("press", $, l);
1033
- e(a), S && (S = a.shouldStopPropagation);
1158
+ e(a), K && (K = a.shouldStopPropagation);
1034
1159
  }
1035
- return d.isTriggeringEvent = !1, S;
1036
- }), C = te((l, $) => {
1037
- let p = P.current;
1160
+ return d.isTriggeringEvent = !1, K;
1161
+ }), I = re((l, $) => {
1162
+ let f = S.current;
1038
1163
  if (s)
1039
1164
  return !1;
1040
1165
  if (o) {
1041
- p.isTriggeringEvent = !0;
1166
+ f.isTriggeringEvent = !0;
1042
1167
  let d = new ye("pressup", $, l);
1043
- return o(d), p.isTriggeringEvent = !1, d.shouldStopPropagation;
1168
+ return o(d), f.isTriggeringEvent = !1, d.shouldStopPropagation;
1044
1169
  }
1045
1170
  return !0;
1046
- }), I = te((l) => {
1047
- let $ = P.current;
1048
- $.isPressed && $.target && ($.isOverTarget && $.pointerType != null && E(H($.target, l), $.pointerType, !1), $.isPressed = !1, $.isOverTarget = !1, $.activePointerId = null, $.pointerType = null, M(), v || fe($.target));
1049
- }), A = te((l) => {
1050
- b && I(l);
1051
- }), W = V(() => {
1052
- let l = P.current, $ = {
1171
+ }), C = re((l) => {
1172
+ let $ = S.current;
1173
+ $.isPressed && $.target && ($.isOverTarget && $.pointerType != null && E(j($.target, l), $.pointerType, !1), $.isPressed = !1, $.isOverTarget = !1, $.activePointerId = null, $.pointerType = null, M(), g || pe($.target));
1174
+ }), A = re((l) => {
1175
+ y && C(l);
1176
+ }), H = G(() => {
1177
+ let l = S.current, $ = {
1053
1178
  onKeyDown(d) {
1054
1179
  if (Ee(d.nativeEvent, d.currentTarget) && d.currentTarget.contains(d.target)) {
1055
- var S;
1180
+ var K;
1056
1181
  rt(d.target, d.key) && d.preventDefault();
1057
1182
  let a = !0;
1058
1183
  if (!l.isPressed && !d.repeat) {
1059
1184
  l.target = d.currentTarget, l.isPressed = !0, a = x(d, "keyboard");
1060
- let c = d.currentTarget, w = (F) => {
1061
- Ee(F, c) && !F.repeat && c.contains(F.target) && l.target && C(H(l.target, F), "keyboard");
1185
+ let c = d.currentTarget, P = (F) => {
1186
+ Ee(F, c) && !F.repeat && c.contains(F.target) && l.target && I(j(l.target, F), "keyboard");
1062
1187
  };
1063
- K(D(d.currentTarget), "keyup", vt(w, p), !0);
1188
+ w(D(d.currentTarget), "keyup", vt(P, f), !0);
1064
1189
  }
1065
- a && d.stopPropagation(), d.metaKey && J() && ((S = l.metaKeyEvents) === null || S === void 0 || S.set(d.key, d.nativeEvent));
1190
+ a && d.stopPropagation(), d.metaKey && J() && ((K = l.metaKeyEvents) === null || K === void 0 || K.set(d.key, d.nativeEvent));
1066
1191
  } else
1067
1192
  d.key === "Meta" && (l.metaKeyEvents = /* @__PURE__ */ new Map());
1068
1193
  },
1069
1194
  onClick(d) {
1070
1195
  if (!(d && !d.currentTarget.contains(d.target)) && d && d.button === 0 && !l.isTriggeringEvent && !Z.isOpening) {
1071
- let S = !0;
1196
+ let K = !0;
1072
1197
  if (s && d.preventDefault(), !l.ignoreClickAfterPress && !l.ignoreEmulatedMouseEvents && !l.isPressed && (l.pointerType === "virtual" || Le(d.nativeEvent))) {
1073
- !s && !f && j(d.currentTarget);
1074
- let a = x(d, "virtual"), c = C(d, "virtual"), w = E(d, "virtual");
1075
- S = a && c && w;
1198
+ !s && !p && V(d.currentTarget);
1199
+ let a = x(d, "virtual"), c = I(d, "virtual"), P = E(d, "virtual");
1200
+ K = a && c && P;
1076
1201
  }
1077
- l.ignoreEmulatedMouseEvents = !1, l.ignoreClickAfterPress = !1, S && d.stopPropagation();
1202
+ l.ignoreEmulatedMouseEvents = !1, l.ignoreClickAfterPress = !1, K && d.stopPropagation();
1078
1203
  }
1079
1204
  }
1080
- }, p = (d) => {
1081
- var S;
1205
+ }, f = (d) => {
1206
+ var K;
1082
1207
  if (l.isPressed && l.target && Ee(d, l.target)) {
1083
1208
  var a;
1084
1209
  rt(d.target, d.key) && d.preventDefault();
1085
- let w = d.target;
1086
- E(H(l.target, d), "keyboard", l.target.contains(w)), M(), d.key !== "Enter" && Ne(l.target) && l.target.contains(w) && !d[et] && (d[et] = !0, Z(l.target, d, !1)), l.isPressed = !1, (a = l.metaKeyEvents) === null || a === void 0 || a.delete(d.key);
1087
- } else if (d.key === "Meta" && ((S = l.metaKeyEvents) === null || S === void 0 ? void 0 : S.size)) {
1210
+ let P = d.target;
1211
+ E(j(l.target, d), "keyboard", l.target.contains(P)), M(), d.key !== "Enter" && Be(l.target) && l.target.contains(P) && !d[et] && (d[et] = !0, Z(l.target, d, !1)), l.isPressed = !1, (a = l.metaKeyEvents) === null || a === void 0 || a.delete(d.key);
1212
+ } else if (d.key === "Meta" && (!((K = l.metaKeyEvents) === null || K === void 0) && K.size)) {
1088
1213
  var c;
1089
- let w = l.metaKeyEvents;
1214
+ let P = l.metaKeyEvents;
1090
1215
  l.metaKeyEvents = void 0;
1091
- for (let F of w.values())
1216
+ for (let F of P.values())
1092
1217
  (c = l.target) === null || c === void 0 || c.dispatchEvent(new KeyboardEvent("keyup", F));
1093
1218
  }
1094
1219
  };
@@ -1096,27 +1221,27 @@ function Et(t) {
1096
1221
  $.onPointerDown = (c) => {
1097
1222
  if (c.button !== 0 || !c.currentTarget.contains(c.target))
1098
1223
  return;
1099
- if (Dr(c.nativeEvent)) {
1224
+ if (Fr(c.nativeEvent)) {
1100
1225
  l.pointerType = "virtual";
1101
1226
  return;
1102
1227
  }
1103
1228
  xe(c.currentTarget) && c.preventDefault(), l.pointerType = c.pointerType;
1104
- let w = !0;
1105
- l.isPressed || (l.isPressed = !0, l.isOverTarget = !0, l.activePointerId = c.pointerId, l.target = c.currentTarget, !s && !f && j(c.currentTarget), v || _e(l.target), w = x(c, l.pointerType), K(D(c.currentTarget), "pointermove", d, !1), K(D(c.currentTarget), "pointerup", S, !1), K(D(c.currentTarget), "pointercancel", a, !1)), w && c.stopPropagation();
1229
+ let P = !0;
1230
+ l.isPressed || (l.isPressed = !0, l.isOverTarget = !0, l.activePointerId = c.pointerId, l.target = c.currentTarget, !s && !p && V(c.currentTarget), g || Ze(l.target), P = x(c, l.pointerType), w(D(c.currentTarget), "pointermove", d, !1), w(D(c.currentTarget), "pointerup", K, !1), w(D(c.currentTarget), "pointercancel", a, !1)), P && c.stopPropagation();
1106
1231
  }, $.onMouseDown = (c) => {
1107
- !c.currentTarget.contains(c.target) || c.button === 0 && (xe(c.currentTarget) && c.preventDefault(), c.stopPropagation());
1232
+ c.currentTarget.contains(c.target) && c.button === 0 && (xe(c.currentTarget) && c.preventDefault(), c.stopPropagation());
1108
1233
  }, $.onPointerUp = (c) => {
1109
- !c.currentTarget.contains(c.target) || l.pointerType === "virtual" || c.button === 0 && ee(c, c.currentTarget) && C(c, l.pointerType || c.pointerType);
1234
+ !c.currentTarget.contains(c.target) || l.pointerType === "virtual" || c.button === 0 && te(c, c.currentTarget) && I(c, l.pointerType || c.pointerType);
1110
1235
  };
1111
1236
  let d = (c) => {
1112
- c.pointerId === l.activePointerId && (l.target && ee(c, l.target) ? !l.isOverTarget && l.pointerType != null && (l.isOverTarget = !0, x(H(l.target, c), l.pointerType)) : l.target && l.isOverTarget && l.pointerType != null && (l.isOverTarget = !1, E(H(l.target, c), l.pointerType, !1), A(c)));
1113
- }, S = (c) => {
1114
- c.pointerId === l.activePointerId && l.isPressed && c.button === 0 && l.target && (ee(c, l.target) && l.pointerType != null ? E(H(l.target, c), l.pointerType) : l.isOverTarget && l.pointerType != null && E(H(l.target, c), l.pointerType, !1), l.isPressed = !1, l.isOverTarget = !1, l.activePointerId = null, l.pointerType = null, M(), v || fe(l.target));
1237
+ c.pointerId === l.activePointerId && (l.target && te(c, l.target) ? !l.isOverTarget && l.pointerType != null && (l.isOverTarget = !0, x(j(l.target, c), l.pointerType)) : l.target && l.isOverTarget && l.pointerType != null && (l.isOverTarget = !1, E(j(l.target, c), l.pointerType, !1), A(c)));
1238
+ }, K = (c) => {
1239
+ c.pointerId === l.activePointerId && l.isPressed && c.button === 0 && l.target && (te(c, l.target) && l.pointerType != null ? E(j(l.target, c), l.pointerType) : l.isOverTarget && l.pointerType != null && E(j(l.target, c), l.pointerType, !1), l.isPressed = !1, l.isOverTarget = !1, l.activePointerId = null, l.pointerType = null, M(), g || pe(l.target));
1115
1240
  }, a = (c) => {
1116
- I(c);
1241
+ C(c);
1117
1242
  };
1118
1243
  $.onDragStart = (c) => {
1119
- !c.currentTarget.contains(c.target) || I(c);
1244
+ c.currentTarget.contains(c.target) && C(c);
1120
1245
  };
1121
1246
  } else {
1122
1247
  $.onMouseDown = (a) => {
@@ -1126,7 +1251,7 @@ function Et(t) {
1126
1251
  a.stopPropagation();
1127
1252
  return;
1128
1253
  }
1129
- l.isPressed = !0, l.isOverTarget = !0, l.target = a.currentTarget, l.pointerType = Le(a.nativeEvent) ? "virtual" : "mouse", !s && !f && j(a.currentTarget), x(a, l.pointerType) && a.stopPropagation(), K(D(a.currentTarget), "mouseup", d, !1);
1254
+ l.isPressed = !0, l.isOverTarget = !0, l.target = a.currentTarget, l.pointerType = Le(a.nativeEvent) ? "virtual" : "mouse", !s && !p && V(a.currentTarget), x(a, l.pointerType) && a.stopPropagation(), w(D(a.currentTarget), "mouseup", d, !1);
1130
1255
  }, $.onMouseEnter = (a) => {
1131
1256
  if (!a.currentTarget.contains(a.target))
1132
1257
  return;
@@ -1138,7 +1263,7 @@ function Et(t) {
1138
1263
  let c = !0;
1139
1264
  l.isPressed && !l.ignoreEmulatedMouseEvents && l.pointerType != null && (l.isOverTarget = !1, c = E(a, l.pointerType, !1), A(a)), c && a.stopPropagation();
1140
1265
  }, $.onMouseUp = (a) => {
1141
- !a.currentTarget.contains(a.target) || !l.ignoreEmulatedMouseEvents && a.button === 0 && C(a, l.pointerType || "mouse");
1266
+ a.currentTarget.contains(a.target) && !l.ignoreEmulatedMouseEvents && a.button === 0 && I(a, l.pointerType || "mouse");
1142
1267
  };
1143
1268
  let d = (a) => {
1144
1269
  if (a.button === 0) {
@@ -1146,16 +1271,16 @@ function Et(t) {
1146
1271
  l.ignoreEmulatedMouseEvents = !1;
1147
1272
  return;
1148
1273
  }
1149
- l.target && ee(a, l.target) && l.pointerType != null ? E(H(l.target, a), l.pointerType) : l.target && l.isOverTarget && l.pointerType != null && E(H(l.target, a), l.pointerType, !1), l.isOverTarget = !1;
1274
+ l.target && te(a, l.target) && l.pointerType != null ? E(j(l.target, a), l.pointerType) : l.target && l.isOverTarget && l.pointerType != null && E(j(l.target, a), l.pointerType, !1), l.isOverTarget = !1;
1150
1275
  }
1151
1276
  };
1152
1277
  $.onTouchStart = (a) => {
1153
1278
  if (!a.currentTarget.contains(a.target))
1154
1279
  return;
1155
- let c = Rr(a.nativeEvent);
1280
+ let c = Vr(a.nativeEvent);
1156
1281
  if (!c)
1157
1282
  return;
1158
- l.activePointerId = c.identifier, l.ignoreEmulatedMouseEvents = !0, l.isOverTarget = !0, l.isPressed = !0, l.target = a.currentTarget, l.pointerType = "touch", !s && !f && j(a.currentTarget), v || _e(l.target), x(a, l.pointerType) && a.stopPropagation(), K(Y(a.currentTarget), "scroll", S, !0);
1283
+ l.activePointerId = c.identifier, l.ignoreEmulatedMouseEvents = !0, l.isOverTarget = !0, l.isPressed = !0, l.target = a.currentTarget, l.pointerType = "touch", !s && !p && V(a.currentTarget), g || Ze(l.target), x(a, l.pointerType) && a.stopPropagation(), w(_(a.currentTarget), "scroll", K, !0);
1159
1284
  }, $.onTouchMove = (a) => {
1160
1285
  if (!a.currentTarget.contains(a.target))
1161
1286
  return;
@@ -1163,8 +1288,8 @@ function Et(t) {
1163
1288
  a.stopPropagation();
1164
1289
  return;
1165
1290
  }
1166
- let c = tt(a.nativeEvent, l.activePointerId), w = !0;
1167
- c && ee(c, a.currentTarget) ? !l.isOverTarget && l.pointerType != null && (l.isOverTarget = !0, w = x(a, l.pointerType)) : l.isOverTarget && l.pointerType != null && (l.isOverTarget = !1, w = E(a, l.pointerType, !1), A(a)), w && a.stopPropagation();
1291
+ let c = tt(a.nativeEvent, l.activePointerId), P = !0;
1292
+ c && te(c, a.currentTarget) ? !l.isOverTarget && l.pointerType != null && (l.isOverTarget = !0, P = x(a, l.pointerType)) : l.isOverTarget && l.pointerType != null && (l.isOverTarget = !1, P = E(a, l.pointerType, !1), A(a)), P && a.stopPropagation();
1168
1293
  }, $.onTouchEnd = (a) => {
1169
1294
  if (!a.currentTarget.contains(a.target))
1170
1295
  return;
@@ -1172,13 +1297,13 @@ function Et(t) {
1172
1297
  a.stopPropagation();
1173
1298
  return;
1174
1299
  }
1175
- let c = tt(a.nativeEvent, l.activePointerId), w = !0;
1176
- c && ee(c, a.currentTarget) && l.pointerType != null ? (C(a, l.pointerType), w = E(a, l.pointerType)) : l.isOverTarget && l.pointerType != null && (w = E(a, l.pointerType, !1)), w && a.stopPropagation(), l.isPressed = !1, l.activePointerId = null, l.isOverTarget = !1, l.ignoreEmulatedMouseEvents = !0, l.target && !v && fe(l.target), M();
1300
+ let c = tt(a.nativeEvent, l.activePointerId), P = !0;
1301
+ c && te(c, a.currentTarget) && l.pointerType != null ? (I(a, l.pointerType), P = E(a, l.pointerType)) : l.isOverTarget && l.pointerType != null && (P = E(a, l.pointerType, !1)), P && a.stopPropagation(), l.isPressed = !1, l.activePointerId = null, l.isOverTarget = !1, l.ignoreEmulatedMouseEvents = !0, l.target && !g && pe(l.target), M();
1177
1302
  }, $.onTouchCancel = (a) => {
1178
- !a.currentTarget.contains(a.target) || (a.stopPropagation(), l.isPressed && I(a));
1303
+ a.currentTarget.contains(a.target) && (a.stopPropagation(), l.isPressed && C(a));
1179
1304
  };
1180
- let S = (a) => {
1181
- l.isPressed && a.target.contains(l.target) && I({
1305
+ let K = (a) => {
1306
+ l.isPressed && a.target.contains(l.target) && C({
1182
1307
  currentTarget: l.target,
1183
1308
  shiftKey: !1,
1184
1309
  ctrlKey: !1,
@@ -1187,40 +1312,41 @@ function Et(t) {
1187
1312
  });
1188
1313
  };
1189
1314
  $.onDragStart = (a) => {
1190
- !a.currentTarget.contains(a.target) || I(a);
1315
+ a.currentTarget.contains(a.target) && C(a);
1191
1316
  };
1192
1317
  }
1193
1318
  return $;
1194
1319
  }, [
1195
- K,
1320
+ w,
1196
1321
  s,
1197
- f,
1322
+ p,
1198
1323
  M,
1199
- v,
1200
- I,
1324
+ g,
1325
+ C,
1201
1326
  A,
1202
1327
  E,
1203
1328
  x,
1204
- C
1329
+ I
1205
1330
  ]);
1206
1331
  return z(() => () => {
1207
1332
  var l;
1208
- v || fe((l = P.current.target) !== null && l !== void 0 ? l : void 0);
1333
+ g || pe((l = S.current.target) !== null && l !== void 0 ? l : void 0);
1209
1334
  }, [
1210
- v
1335
+ g
1211
1336
  ]), {
1212
- isPressed: u || g,
1213
- pressProps: G(h, W)
1337
+ isPressed: u || v,
1338
+ pressProps: X(h, H)
1214
1339
  };
1215
1340
  }
1216
- function Ne(t) {
1341
+ function Be(t) {
1217
1342
  return t.tagName === "A" && t.hasAttribute("href");
1218
1343
  }
1219
1344
  function Ee(t, e) {
1220
1345
  const { key: r, code: n } = t, i = e, o = i.getAttribute("role");
1221
- return (r === "Enter" || r === " " || r === "Spacebar" || n === "Space") && !(i instanceof Y(i).HTMLInputElement && !xt(i, r) || i instanceof Y(i).HTMLTextAreaElement || i.isContentEditable) && !((o === "link" || !o && Ne(i)) && r !== "Enter");
1346
+ return (r === "Enter" || r === " " || r === "Spacebar" || n === "Space") && !(i instanceof _(i).HTMLInputElement && !xt(i, r) || i instanceof _(i).HTMLTextAreaElement || i.isContentEditable) && // Links should only trigger with Enter key
1347
+ !((o === "link" || !o && Be(i)) && r !== "Enter");
1222
1348
  }
1223
- function Rr(t) {
1349
+ function Vr(t) {
1224
1350
  const { targetTouches: e } = t;
1225
1351
  return e.length > 0 ? e[0] : null;
1226
1352
  }
@@ -1233,7 +1359,7 @@ function tt(t, e) {
1233
1359
  }
1234
1360
  return null;
1235
1361
  }
1236
- function H(t, e) {
1362
+ function j(t, e) {
1237
1363
  return {
1238
1364
  currentTarget: t,
1239
1365
  shiftKey: e.shiftKey,
@@ -1242,7 +1368,7 @@ function H(t, e) {
1242
1368
  altKey: e.altKey
1243
1369
  };
1244
1370
  }
1245
- function Ur(t) {
1371
+ function Gr(t) {
1246
1372
  let e = 0, r = 0;
1247
1373
  return t.width !== void 0 ? e = t.width / 2 : t.radiusX !== void 0 && (e = t.radiusX), t.height !== void 0 ? r = t.height / 2 : t.radiusY !== void 0 && (r = t.radiusY), {
1248
1374
  top: t.clientY - r,
@@ -1251,20 +1377,20 @@ function Ur(t) {
1251
1377
  left: t.clientX - e
1252
1378
  };
1253
1379
  }
1254
- function Wr(t, e) {
1380
+ function Xr(t, e) {
1255
1381
  return !(t.left > e.right || e.left > t.right || t.top > e.bottom || e.top > t.bottom);
1256
1382
  }
1257
- function ee(t, e) {
1258
- let r = e.getBoundingClientRect(), n = Ur(t);
1259
- return Wr(r, n);
1383
+ function te(t, e) {
1384
+ let r = e.getBoundingClientRect(), n = Gr(t);
1385
+ return Xr(r, n);
1260
1386
  }
1261
1387
  function xe(t) {
1262
1388
  return !(t instanceof HTMLElement) || !t.hasAttribute("draggable");
1263
1389
  }
1264
1390
  function rt(t, e) {
1265
- return t instanceof HTMLInputElement ? !xt(t, e) : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !Ne(t);
1391
+ return t instanceof HTMLInputElement ? !xt(t, e) : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !Be(t);
1266
1392
  }
1267
- const Hr = /* @__PURE__ */ new Set([
1393
+ const qr = /* @__PURE__ */ new Set([
1268
1394
  "checkbox",
1269
1395
  "radio",
1270
1396
  "range",
@@ -1276,66 +1402,66 @@ const Hr = /* @__PURE__ */ new Set([
1276
1402
  "reset"
1277
1403
  ]);
1278
1404
  function xt(t, e) {
1279
- return t.type === "checkbox" || t.type === "radio" ? e === " " : Hr.has(t.type);
1405
+ return t.type === "checkbox" || t.type === "radio" ? e === " " : qr.has(t.type);
1280
1406
  }
1281
- let ue = null, jr = /* @__PURE__ */ new Set(), se = /* @__PURE__ */ new Map(), Q = !1, Ce = !1;
1282
- function Be(t, e) {
1283
- for (let r of jr)
1407
+ let de = null, Yr = /* @__PURE__ */ new Set(), ae = /* @__PURE__ */ new Map(), Q = !1, Ce = !1;
1408
+ function Re(t, e) {
1409
+ for (let r of Yr)
1284
1410
  r(t, e);
1285
1411
  }
1286
- function Vr(t) {
1412
+ function _r(t) {
1287
1413
  return !(t.metaKey || !J() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
1288
1414
  }
1289
- function he(t) {
1290
- Q = !0, Vr(t) && (ue = "keyboard", Be("keyboard", t));
1415
+ function me(t) {
1416
+ Q = !0, _r(t) && (de = "keyboard", Re("keyboard", t));
1291
1417
  }
1292
1418
  function O(t) {
1293
- ue = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Q = !0, Be("pointer", t));
1419
+ de = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Q = !0, Re("pointer", t));
1294
1420
  }
1295
1421
  function kt(t) {
1296
- Le(t) && (Q = !0, ue = "virtual");
1422
+ Le(t) && (Q = !0, de = "virtual");
1297
1423
  }
1298
1424
  function Lt(t) {
1299
- t.target === window || t.target === document || (!Q && !Ce && (ue = "virtual", Be("virtual", t)), Q = !1, Ce = !1);
1425
+ t.target === window || t.target === document || (!Q && !Ce && (de = "virtual", Re("virtual", t)), Q = !1, Ce = !1);
1300
1426
  }
1301
1427
  function Mt() {
1302
1428
  Q = !1, Ce = !0;
1303
1429
  }
1304
1430
  function nt(t) {
1305
- if (typeof window > "u" || se.get(Y(t)))
1431
+ if (typeof window > "u" || ae.get(_(t)))
1306
1432
  return;
1307
- const e = Y(t), r = D(t);
1433
+ const e = _(t), r = D(t);
1308
1434
  let n = e.HTMLElement.prototype.focus;
1309
1435
  e.HTMLElement.prototype.focus = function() {
1310
1436
  Q = !0, n.apply(this, arguments);
1311
- }, r.addEventListener("keydown", he, !0), r.addEventListener("keyup", he, !0), r.addEventListener("click", kt, !0), e.addEventListener("focus", Lt, !0), e.addEventListener("blur", Mt, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", O, !0), r.addEventListener("pointermove", O, !0), r.addEventListener("pointerup", O, !0)) : (r.addEventListener("mousedown", O, !0), r.addEventListener("mousemove", O, !0), r.addEventListener("mouseup", O, !0)), e.addEventListener("beforeunload", () => {
1312
- Ct(t);
1437
+ }, r.addEventListener("keydown", me, !0), r.addEventListener("keyup", me, !0), r.addEventListener("click", kt, !0), e.addEventListener("focus", Lt, !0), e.addEventListener("blur", Mt, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", O, !0), r.addEventListener("pointermove", O, !0), r.addEventListener("pointerup", O, !0)) : (r.addEventListener("mousedown", O, !0), r.addEventListener("mousemove", O, !0), r.addEventListener("mouseup", O, !0)), e.addEventListener("beforeunload", () => {
1438
+ It(t);
1313
1439
  }, {
1314
1440
  once: !0
1315
- }), se.set(e, {
1441
+ }), ae.set(e, {
1316
1442
  focus: n
1317
1443
  });
1318
1444
  }
1319
- const Ct = (t, e) => {
1320
- const r = Y(t), n = D(t);
1321
- e && n.removeEventListener("DOMContentLoaded", e), se.has(r) && (r.HTMLElement.prototype.focus = se.get(r).focus, n.removeEventListener("keydown", he, !0), n.removeEventListener("keyup", he, !0), n.removeEventListener("click", kt, !0), r.removeEventListener("focus", Lt, !0), r.removeEventListener("blur", Mt, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", O, !0), n.removeEventListener("pointermove", O, !0), n.removeEventListener("pointerup", O, !0)) : (n.removeEventListener("mousedown", O, !0), n.removeEventListener("mousemove", O, !0), n.removeEventListener("mouseup", O, !0)), se.delete(r));
1445
+ const It = (t, e) => {
1446
+ const r = _(t), n = D(t);
1447
+ e && n.removeEventListener("DOMContentLoaded", e), ae.has(r) && (r.HTMLElement.prototype.focus = ae.get(r).focus, n.removeEventListener("keydown", me, !0), n.removeEventListener("keyup", me, !0), n.removeEventListener("click", kt, !0), r.removeEventListener("focus", Lt, !0), r.removeEventListener("blur", Mt, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", O, !0), n.removeEventListener("pointermove", O, !0), n.removeEventListener("pointerup", O, !0)) : (n.removeEventListener("mousedown", O, !0), n.removeEventListener("mousemove", O, !0), n.removeEventListener("mouseup", O, !0)), ae.delete(r));
1322
1448
  };
1323
- function Gr(t) {
1449
+ function Jr(t) {
1324
1450
  const e = D(t);
1325
1451
  let r;
1326
1452
  return e.readyState !== "loading" ? nt(t) : (r = () => {
1327
1453
  nt(t);
1328
- }, e.addEventListener("DOMContentLoaded", r)), () => Ct(t, r);
1454
+ }, e.addEventListener("DOMContentLoaded", r)), () => It(t, r);
1329
1455
  }
1330
- typeof document < "u" && Gr();
1331
- function Ie() {
1332
- return ue;
1456
+ typeof document < "u" && Jr();
1457
+ function De() {
1458
+ return de;
1333
1459
  }
1334
- const Xr = 500;
1335
- function qr(t) {
1336
- let { isDisabled: e, onLongPressStart: r, onLongPressEnd: n, onLongPress: i, threshold: o = Xr, accessibilityDescription: s } = t;
1460
+ const Zr = 500;
1461
+ function Qr(t) {
1462
+ let { isDisabled: e, onLongPressStart: r, onLongPressEnd: n, onLongPress: i, threshold: o = Zr, accessibilityDescription: s } = t;
1337
1463
  const u = k();
1338
- let { addGlobalListener: f, removeGlobalListener: b } = Kt(), { pressProps: v } = Et({
1464
+ let { addGlobalListener: p, removeGlobalListener: y } = Kt(), { pressProps: g } = Et({
1339
1465
  isDisabled: e,
1340
1466
  onPressStart(h) {
1341
1467
  if (h.continuePropagation(), (h.pointerType === "mouse" || h.pointerType === "touch") && (r && r({
@@ -1349,14 +1475,14 @@ function qr(t) {
1349
1475
  type: "longpress"
1350
1476
  }), u.current = void 0;
1351
1477
  }, o), h.pointerType === "touch")) {
1352
- let g = (L) => {
1478
+ let v = (L) => {
1353
1479
  L.preventDefault();
1354
1480
  };
1355
- f(h.target, "contextmenu", g, {
1481
+ p(h.target, "contextmenu", v, {
1356
1482
  once: !0
1357
- }), f(window, "pointerup", () => {
1483
+ }), p(window, "pointerup", () => {
1358
1484
  setTimeout(() => {
1359
- b(h.target, "contextmenu", g);
1485
+ y(h.target, "contextmenu", v);
1360
1486
  }, 30);
1361
1487
  }, {
1362
1488
  once: !0
@@ -1369,23 +1495,23 @@ function qr(t) {
1369
1495
  type: "longpressend"
1370
1496
  });
1371
1497
  }
1372
- }), T = Cr(i && !e ? s : void 0);
1498
+ }), T = Dr(i && !e ? s : void 0);
1373
1499
  return {
1374
- longPressProps: G(v, T)
1500
+ longPressProps: X(g, T)
1375
1501
  };
1376
1502
  }
1377
- function De(t) {
1503
+ function Ae(t) {
1378
1504
  const e = D(t);
1379
- if (Ie() === "virtual") {
1505
+ if (De() === "virtual") {
1380
1506
  let r = e.activeElement;
1381
1507
  mt(() => {
1382
- e.activeElement === r && t.isConnected && j(t);
1508
+ e.activeElement === r && t.isConnected && V(t);
1383
1509
  });
1384
1510
  } else
1385
- j(t);
1511
+ V(t);
1386
1512
  }
1387
- function Yr(t) {
1388
- const e = Y(t);
1513
+ function en(t) {
1514
+ const e = _(t);
1389
1515
  if (!(t instanceof e.HTMLElement) && !(t instanceof e.SVGElement))
1390
1516
  return !1;
1391
1517
  let { display: r, visibility: n } = t.style, i = r !== "none" && n !== "hidden" && n !== "collapse";
@@ -1396,13 +1522,14 @@ function Yr(t) {
1396
1522
  }
1397
1523
  return i;
1398
1524
  }
1399
- function Jr(t, e) {
1400
- return !t.hasAttribute("hidden") && (t.nodeName === "DETAILS" && e && e.nodeName !== "SUMMARY" ? t.hasAttribute("open") : !0);
1525
+ function tn(t, e) {
1526
+ return !t.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
1527
+ !t.hasAttribute("data-react-aria-prevent-focus") && (t.nodeName === "DETAILS" && e && e.nodeName !== "SUMMARY" ? t.hasAttribute("open") : !0);
1401
1528
  }
1402
- function It(t, e) {
1403
- return t.nodeName !== "#comment" && Yr(t) && Jr(t, e) && (!t.parentElement || It(t.parentElement, t));
1529
+ function Ct(t, e) {
1530
+ return t.nodeName !== "#comment" && en(t) && tn(t, e) && (!t.parentElement || Ct(t.parentElement, t));
1404
1531
  }
1405
- const Re = [
1532
+ const Ue = [
1406
1533
  "input:not([disabled]):not([type=hidden])",
1407
1534
  "select:not([disabled])",
1408
1535
  "textarea:not([disabled])",
@@ -1416,22 +1543,22 @@ const Re = [
1416
1543
  "audio[controls]",
1417
1544
  "video[controls]",
1418
1545
  "[contenteditable]"
1419
- ], Zr = Re.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
1420
- Re.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
1421
- const Qr = Re.join(':not([hidden]):not([tabindex="-1"]),');
1546
+ ], rn = Ue.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
1547
+ Ue.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
1548
+ const nn = Ue.join(':not([hidden]):not([tabindex="-1"]),');
1422
1549
  function Dt(t, e) {
1423
1550
  return !t || !e ? !1 : e.some((r) => r.contains(t));
1424
1551
  }
1425
1552
  function At(t, e, r) {
1426
- let n = e != null && e.tabbable ? Qr : Zr, i = D(t).createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
1553
+ let n = e != null && e.tabbable ? nn : rn, i = D(t).createTreeWalker(t, NodeFilter.SHOW_ELEMENT, {
1427
1554
  acceptNode(o) {
1428
1555
  var s;
1429
- return !(e == null || (s = e.from) === null || s === void 0) && s.contains(o) ? NodeFilter.FILTER_REJECT : o.matches(n) && It(o) && (!r || Dt(o, r)) && (!(e != null && e.accept) || e.accept(o)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1556
+ return !(e == null || (s = e.from) === null || s === void 0) && s.contains(o) ? NodeFilter.FILTER_REJECT : o.matches(n) && Ct(o) && (!r || Dt(o, r)) && (!(e != null && e.accept) || e.accept(o)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1430
1557
  }
1431
1558
  });
1432
1559
  return e != null && e.from && (i.currentNode = e.from), i;
1433
1560
  }
1434
- class Ue {
1561
+ class He {
1435
1562
  get size() {
1436
1563
  return this.fastMap.size;
1437
1564
  }
@@ -1439,7 +1566,7 @@ class Ue {
1439
1566
  return this.fastMap.get(e);
1440
1567
  }
1441
1568
  addTreeNode(e, r, n) {
1442
- let i = this.fastMap.get(r != null ? r : null);
1569
+ let i = this.fastMap.get(r ?? null);
1443
1570
  if (!i)
1444
1571
  return;
1445
1572
  let o = new it({
@@ -1462,6 +1589,7 @@ class Ue {
1462
1589
  let i = r.children;
1463
1590
  n && (n.removeChild(r), i.size > 0 && i.forEach((o) => n && n.addChild(o))), this.fastMap.delete(r.scopeRef);
1464
1591
  }
1592
+ // Pre Order Depth First
1465
1593
  *traverse(e = this.root) {
1466
1594
  if (e.scopeRef != null && (yield e), e.children.size > 0)
1467
1595
  for (let r of e.children)
@@ -1469,7 +1597,7 @@ class Ue {
1469
1597
  }
1470
1598
  clone() {
1471
1599
  var e;
1472
- let r = new Ue();
1600
+ let r = new He();
1473
1601
  var n;
1474
1602
  for (let i of this.traverse())
1475
1603
  r.addTreeNode(i.scopeRef, (n = (e = i.parent) === null || e === void 0 ? void 0 : e.scopeRef) !== null && n !== void 0 ? n : null, i.nodeToRestore);
@@ -1492,11 +1620,11 @@ class it {
1492
1620
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = e.scopeRef;
1493
1621
  }
1494
1622
  }
1495
- new Ue();
1496
- function _r(t, e) {
1623
+ new He();
1624
+ function ln(t, e) {
1497
1625
  let r = e == null ? void 0 : e.isDisabled, [n, i] = R(!1);
1498
- return ce(() => {
1499
- if ((t == null ? void 0 : t.current) && !r) {
1626
+ return ue(() => {
1627
+ if (t != null && t.current && !r) {
1500
1628
  let o = () => {
1501
1629
  if (t.current) {
1502
1630
  let u = At(t.current, {
@@ -1521,7 +1649,7 @@ function _r(t, e) {
1521
1649
  }
1522
1650
  }), r ? !1 : n;
1523
1651
  }
1524
- const en = /* @__PURE__ */ new Set([
1652
+ const on = /* @__PURE__ */ new Set([
1525
1653
  "Arab",
1526
1654
  "Syrc",
1527
1655
  "Samr",
@@ -1532,7 +1660,7 @@ const en = /* @__PURE__ */ new Set([
1532
1660
  "Adlm",
1533
1661
  "Rohg",
1534
1662
  "Hebr"
1535
- ]), tn = /* @__PURE__ */ new Set([
1663
+ ]), sn = /* @__PURE__ */ new Set([
1536
1664
  "ae",
1537
1665
  "ar",
1538
1666
  "arc",
@@ -1553,20 +1681,20 @@ const en = /* @__PURE__ */ new Set([
1553
1681
  "ur",
1554
1682
  "yi"
1555
1683
  ]);
1556
- function rn(t) {
1684
+ function an(t) {
1557
1685
  if (Intl.Locale) {
1558
1686
  let r = new Intl.Locale(t).maximize(), n = typeof r.getTextInfo == "function" ? r.getTextInfo() : r.textInfo;
1559
1687
  if (n)
1560
1688
  return n.direction === "rtl";
1561
1689
  if (r.script)
1562
- return en.has(r.script);
1690
+ return on.has(r.script);
1563
1691
  }
1564
1692
  let e = t.split("-")[0];
1565
- return tn.has(e);
1693
+ return sn.has(e);
1566
1694
  }
1567
- const nn = Symbol.for("react-aria.i18n.locale");
1695
+ const cn = Symbol.for("react-aria.i18n.locale");
1568
1696
  function Ft() {
1569
- let t = typeof window < "u" && window[nn] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
1697
+ let t = typeof window < "u" && window[cn] || typeof navigator < "u" && (navigator.language || navigator.userLanguage) || "en-US";
1570
1698
  try {
1571
1699
  Intl.DateTimeFormat.supportedLocalesOf([
1572
1700
  t
@@ -1576,157 +1704,127 @@ function Ft() {
1576
1704
  }
1577
1705
  return {
1578
1706
  locale: t,
1579
- direction: rn(t) ? "rtl" : "ltr"
1707
+ direction: an(t) ? "rtl" : "ltr"
1580
1708
  };
1581
1709
  }
1582
- let Ae = Ft(), oe = /* @__PURE__ */ new Set();
1710
+ let Fe = Ft(), se = /* @__PURE__ */ new Set();
1583
1711
  function lt() {
1584
- Ae = Ft();
1585
- for (let t of oe)
1586
- t(Ae);
1587
- }
1588
- function ln() {
1589
- let t = pt(), [e, r] = R(Ae);
1590
- return z(() => (oe.size === 0 && window.addEventListener("languagechange", lt), oe.add(r), () => {
1591
- oe.delete(r), oe.size === 0 && window.removeEventListener("languagechange", lt);
1712
+ Fe = Ft();
1713
+ for (let t of se)
1714
+ t(Fe);
1715
+ }
1716
+ function un() {
1717
+ let t = bt(), [e, r] = R(Fe);
1718
+ return z(() => (se.size === 0 && window.addEventListener("languagechange", lt), se.add(r), () => {
1719
+ se.delete(r), se.size === 0 && window.removeEventListener("languagechange", lt);
1592
1720
  }), []), t ? {
1593
1721
  locale: "en-US",
1594
1722
  direction: "ltr"
1595
1723
  } : e;
1596
1724
  }
1597
- const on = /* @__PURE__ */ U.createContext(null);
1725
+ const dn = /* @__PURE__ */ U.createContext(null);
1598
1726
  function Ot() {
1599
- let t = ln();
1600
- return le(on) || t;
1727
+ let t = un();
1728
+ return oe(dn) || t;
1601
1729
  }
1602
- function Fe(t) {
1603
- return Sr() ? t.altKey : t.ctrlKey;
1604
- }
1605
- function ne(t) {
1606
- return J() ? t.metaKey : t.ctrlKey;
1607
- }
1608
- const sn = 1e3;
1609
- function an(t) {
1610
- let { keyboardDelegate: e, selectionManager: r, onTypeSelect: n } = t, i = k({
1611
- search: "",
1612
- timeout: null
1613
- }).current, o = (s) => {
1614
- let u = cn(s.key);
1615
- if (!u || s.ctrlKey || s.metaKey || !s.currentTarget.contains(s.target))
1730
+ function fn(t) {
1731
+ let { selectionManager: e, keyboardDelegate: r, ref: n, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: s = !1, disallowSelectAll: u = !1, selectOnFocus: p = e.selectionBehavior === "replace", disallowTypeAhead: y = !1, shouldUseVirtualFocus: g, allowsTabNavigation: T = !1, isVirtualized: h, scrollRef: v = n, linkBehavior: L = "action" } = t, { direction: S } = Ot(), w = Ne(), M = (f) => {
1732
+ if (f.altKey && f.key === "Tab" && f.preventDefault(), !n.current.contains(f.target))
1616
1733
  return;
1617
- u === " " && i.search.trim().length > 0 && (s.preventDefault(), "continuePropagation" in s || s.stopPropagation()), i.search += u;
1618
- let f = e.getKeyForSearch(i.search, r.focusedKey);
1619
- f == null && (f = e.getKeyForSearch(i.search)), f != null && (r.setFocusedKey(f), n && n(f)), clearTimeout(i.timeout), i.timeout = setTimeout(() => {
1620
- i.search = "";
1621
- }, sn);
1622
- };
1623
- return {
1624
- typeSelectProps: {
1625
- onKeyDownCapture: e.getKeyForSearch ? o : null
1626
- }
1627
- };
1628
- }
1629
- function cn(t) {
1630
- return t.length === 1 || !/^[A-Z]/i.test(t) ? t : "";
1631
- }
1632
- function un(t) {
1633
- let { selectionManager: e, keyboardDelegate: r, ref: n, autoFocus: i = !1, shouldFocusWrap: o = !1, disallowEmptySelection: s = !1, disallowSelectAll: u = !1, selectOnFocus: f = e.selectionBehavior === "replace", disallowTypeAhead: b = !1, shouldUseVirtualFocus: v, allowsTabNavigation: T = !1, isVirtualized: h, scrollRef: g = n, linkBehavior: L = "action" } = t, { direction: P } = Ot(), K = $t(), M = (p) => {
1634
- if (p.altKey && p.key === "Tab" && p.preventDefault(), !n.current.contains(p.target))
1635
- return;
1636
- const d = (m, X) => {
1734
+ const d = (m, q) => {
1637
1735
  if (m != null) {
1638
- if (e.isLink(m) && L === "selection" && f && !Fe(p)) {
1639
- Vt(() => {
1640
- e.setFocusedKey(m, X);
1736
+ if (e.isLink(m) && L === "selection" && p && !Me(f)) {
1737
+ jt(() => {
1738
+ e.setFocusedKey(m, q);
1641
1739
  });
1642
- let _ = g.current.querySelector(`[data-key="${CSS.escape(m.toString())}"]`);
1643
- K.open(_, p);
1740
+ let ee = v.current.querySelector(`[data-key="${CSS.escape(m.toString())}"]`), je = e.getItemProps(m);
1741
+ w.open(ee, f, je.href, je.routerOptions);
1644
1742
  return;
1645
1743
  }
1646
- if (e.setFocusedKey(m, X), e.isLink(m) && L === "override")
1744
+ if (e.setFocusedKey(m, q), e.isLink(m) && L === "override")
1647
1745
  return;
1648
- p.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(m) : f && !Fe(p) && e.replaceSelection(m);
1746
+ f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(m) : p && !Me(f) && e.replaceSelection(m);
1649
1747
  }
1650
1748
  };
1651
- switch (p.key) {
1749
+ switch (f.key) {
1652
1750
  case "ArrowDown":
1653
1751
  if (r.getKeyBelow) {
1654
- var S, a;
1655
- p.preventDefault();
1656
- let m = e.focusedKey != null ? r.getKeyBelow(e.focusedKey) : (S = r.getFirstKey) === null || S === void 0 ? void 0 : S.call(r);
1752
+ var K, a;
1753
+ f.preventDefault();
1754
+ let m = e.focusedKey != null ? r.getKeyBelow(e.focusedKey) : (K = r.getFirstKey) === null || K === void 0 ? void 0 : K.call(r);
1657
1755
  m == null && o && (m = (a = r.getFirstKey) === null || a === void 0 ? void 0 : a.call(r, e.focusedKey)), d(m);
1658
1756
  }
1659
1757
  break;
1660
1758
  case "ArrowUp":
1661
1759
  if (r.getKeyAbove) {
1662
- var c, w;
1663
- p.preventDefault();
1760
+ var c, P;
1761
+ f.preventDefault();
1664
1762
  let m = e.focusedKey != null ? r.getKeyAbove(e.focusedKey) : (c = r.getLastKey) === null || c === void 0 ? void 0 : c.call(r);
1665
- m == null && o && (m = (w = r.getLastKey) === null || w === void 0 ? void 0 : w.call(r, e.focusedKey)), d(m);
1763
+ m == null && o && (m = (P = r.getLastKey) === null || P === void 0 ? void 0 : P.call(r, e.focusedKey)), d(m);
1666
1764
  }
1667
1765
  break;
1668
1766
  case "ArrowLeft":
1669
1767
  if (r.getKeyLeftOf) {
1670
- var F, y;
1671
- p.preventDefault();
1768
+ var F, b;
1769
+ f.preventDefault();
1672
1770
  let m = r.getKeyLeftOf(e.focusedKey);
1673
- m == null && o && (m = P === "rtl" ? (F = r.getFirstKey) === null || F === void 0 ? void 0 : F.call(r, e.focusedKey) : (y = r.getLastKey) === null || y === void 0 ? void 0 : y.call(r, e.focusedKey)), d(m, P === "rtl" ? "first" : "last");
1771
+ m == null && o && (m = S === "rtl" ? (F = r.getFirstKey) === null || F === void 0 ? void 0 : F.call(r, e.focusedKey) : (b = r.getLastKey) === null || b === void 0 ? void 0 : b.call(r, e.focusedKey)), d(m, S === "rtl" ? "first" : "last");
1674
1772
  }
1675
1773
  break;
1676
1774
  case "ArrowRight":
1677
1775
  if (r.getKeyRightOf) {
1678
- var Ke, Se;
1679
- p.preventDefault();
1776
+ var W, Se;
1777
+ f.preventDefault();
1680
1778
  let m = r.getKeyRightOf(e.focusedKey);
1681
- m == null && o && (m = P === "rtl" ? (Ke = r.getLastKey) === null || Ke === void 0 ? void 0 : Ke.call(r, e.focusedKey) : (Se = r.getFirstKey) === null || Se === void 0 ? void 0 : Se.call(r, e.focusedKey)), d(m, P === "rtl" ? "last" : "first");
1779
+ m == null && o && (m = S === "rtl" ? (W = r.getLastKey) === null || W === void 0 ? void 0 : W.call(r, e.focusedKey) : (Se = r.getFirstKey) === null || Se === void 0 ? void 0 : Se.call(r, e.focusedKey)), d(m, S === "rtl" ? "last" : "first");
1682
1780
  }
1683
1781
  break;
1684
1782
  case "Home":
1685
1783
  if (r.getFirstKey) {
1686
- p.preventDefault();
1687
- let m = r.getFirstKey(e.focusedKey, ne(p));
1688
- e.setFocusedKey(m), ne(p) && p.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(m) : f && e.replaceSelection(m);
1784
+ f.preventDefault();
1785
+ let m = r.getFirstKey(e.focusedKey, ie(f));
1786
+ e.setFocusedKey(m), ie(f) && f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(m) : p && e.replaceSelection(m);
1689
1787
  }
1690
1788
  break;
1691
1789
  case "End":
1692
1790
  if (r.getLastKey) {
1693
- p.preventDefault();
1694
- let m = r.getLastKey(e.focusedKey, ne(p));
1695
- e.setFocusedKey(m), ne(p) && p.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(m) : f && e.replaceSelection(m);
1791
+ f.preventDefault();
1792
+ let m = r.getLastKey(e.focusedKey, ie(f));
1793
+ e.setFocusedKey(m), ie(f) && f.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(m) : p && e.replaceSelection(m);
1696
1794
  }
1697
1795
  break;
1698
1796
  case "PageDown":
1699
1797
  if (r.getKeyPageBelow) {
1700
- p.preventDefault();
1798
+ f.preventDefault();
1701
1799
  let m = r.getKeyPageBelow(e.focusedKey);
1702
1800
  d(m);
1703
1801
  }
1704
1802
  break;
1705
1803
  case "PageUp":
1706
1804
  if (r.getKeyPageAbove) {
1707
- p.preventDefault();
1805
+ f.preventDefault();
1708
1806
  let m = r.getKeyPageAbove(e.focusedKey);
1709
1807
  d(m);
1710
1808
  }
1711
1809
  break;
1712
1810
  case "a":
1713
- ne(p) && e.selectionMode === "multiple" && u !== !0 && (p.preventDefault(), e.selectAll());
1811
+ ie(f) && e.selectionMode === "multiple" && u !== !0 && (f.preventDefault(), e.selectAll());
1714
1812
  break;
1715
1813
  case "Escape":
1716
- p.preventDefault(), s || e.clearSelection();
1814
+ !s && e.selectedKeys.size !== 0 && (f.stopPropagation(), f.preventDefault(), e.clearSelection());
1717
1815
  break;
1718
1816
  case "Tab":
1719
1817
  if (!T) {
1720
- if (p.shiftKey)
1818
+ if (f.shiftKey)
1721
1819
  n.current.focus();
1722
1820
  else {
1723
1821
  let m = At(n.current, {
1724
1822
  tabbable: !0
1725
- }), X, _;
1823
+ }), q, ee;
1726
1824
  do
1727
- _ = m.lastChild(), _ && (X = _);
1728
- while (_);
1729
- X && !X.contains(document.activeElement) && j(X);
1825
+ ee = m.lastChild(), ee && (q = ee);
1826
+ while (ee);
1827
+ q && !q.contains(document.activeElement) && V(q);
1730
1828
  }
1731
1829
  break;
1732
1830
  }
@@ -1735,108 +1833,109 @@ function un(t) {
1735
1833
  top: 0,
1736
1834
  left: 0
1737
1835
  });
1738
- Ir(g, "scroll", h ? null : () => {
1836
+ Ar(v, "scroll", h ? null : () => {
1739
1837
  x.current = {
1740
- top: g.current.scrollTop,
1741
- left: g.current.scrollLeft
1838
+ top: v.current.scrollTop,
1839
+ left: v.current.scrollLeft
1742
1840
  };
1743
1841
  });
1744
- let E = (p) => {
1842
+ let E = (f) => {
1745
1843
  if (e.isFocused) {
1746
- p.currentTarget.contains(p.target) || e.setFocused(!1);
1844
+ f.currentTarget.contains(f.target) || e.setFocused(!1);
1747
1845
  return;
1748
1846
  }
1749
- if (!!p.currentTarget.contains(p.target)) {
1847
+ if (f.currentTarget.contains(f.target)) {
1750
1848
  if (e.setFocused(!0), e.focusedKey == null) {
1751
- let a = (w) => {
1752
- w != null && (e.setFocusedKey(w), f && e.replaceSelection(w));
1753
- }, c = p.relatedTarget;
1754
- var d, S;
1755
- c && p.currentTarget.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a((d = e.lastSelectedKey) !== null && d !== void 0 ? d : r.getLastKey()) : a((S = e.firstSelectedKey) !== null && S !== void 0 ? S : r.getFirstKey());
1849
+ let a = (P) => {
1850
+ P != null && (e.setFocusedKey(P), p && e.replaceSelection(P));
1851
+ }, c = f.relatedTarget;
1852
+ var d, K;
1853
+ c && f.currentTarget.compareDocumentPosition(c) & Node.DOCUMENT_POSITION_FOLLOWING ? a((d = e.lastSelectedKey) !== null && d !== void 0 ? d : r.getLastKey()) : a((K = e.firstSelectedKey) !== null && K !== void 0 ? K : r.getFirstKey());
1756
1854
  } else
1757
- h || (g.current.scrollTop = x.current.top, g.current.scrollLeft = x.current.left);
1855
+ h || (v.current.scrollTop = x.current.top, v.current.scrollLeft = x.current.left);
1758
1856
  if (!h && e.focusedKey != null) {
1759
- let a = g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1760
- a && (a.contains(document.activeElement) || j(a), Ie() === "keyboard" && Ze(a, {
1857
+ let a = v.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1858
+ a && (a.contains(document.activeElement) || V(a), De() === "keyboard" && Je(a, {
1761
1859
  containingElement: n.current
1762
1860
  }));
1763
1861
  }
1764
1862
  }
1765
- }, C = (p) => {
1766
- p.currentTarget.contains(p.relatedTarget) || e.setFocused(!1);
1863
+ }, I = (f) => {
1864
+ f.currentTarget.contains(f.relatedTarget) || e.setFocused(!1);
1767
1865
  };
1768
- const I = k(i);
1866
+ const C = k(i);
1769
1867
  z(() => {
1770
- if (I.current) {
1771
- let p = null;
1772
- i === "first" && (p = r.getFirstKey()), i === "last" && (p = r.getLastKey());
1868
+ if (C.current) {
1869
+ let f = null;
1870
+ i === "first" && (f = r.getFirstKey()), i === "last" && (f = r.getLastKey());
1773
1871
  let d = e.selectedKeys;
1774
1872
  if (d.size) {
1775
- for (let S of d)
1776
- if (e.canSelectItem(S)) {
1777
- p = S;
1873
+ for (let K of d)
1874
+ if (e.canSelectItem(K)) {
1875
+ f = K;
1778
1876
  break;
1779
1877
  }
1780
1878
  }
1781
- e.setFocused(!0), e.setFocusedKey(p), p == null && !v && De(n.current);
1879
+ e.setFocused(!0), e.setFocusedKey(f), f == null && !g && Ae(n.current);
1782
1880
  }
1783
1881
  }, []);
1784
1882
  let A = k(e.focusedKey);
1785
1883
  z(() => {
1786
- let p = Ie();
1787
- if (e.isFocused && e.focusedKey != null && (g == null ? void 0 : g.current)) {
1788
- let d = g.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1789
- d && (p === "keyboard" || I.current) && (h || Tt(g.current, d), p !== "virtual" && Ze(d, {
1884
+ let f = De();
1885
+ if (e.isFocused && e.focusedKey != null && (v != null && v.current)) {
1886
+ let d = v.current.querySelector(`[data-key="${CSS.escape(e.focusedKey.toString())}"]`);
1887
+ d && (f === "keyboard" || C.current) && (h || Tt(v.current, d), f !== "virtual" && Je(d, {
1790
1888
  containingElement: n.current
1791
1889
  }));
1792
1890
  }
1793
- e.isFocused && e.focusedKey == null && A.current != null && De(n.current), A.current = e.focusedKey, I.current = !1;
1891
+ e.isFocused && e.focusedKey == null && A.current != null && Ae(n.current), A.current = e.focusedKey, C.current = !1;
1794
1892
  }, [
1795
1893
  h,
1796
- g,
1894
+ v,
1797
1895
  e.focusedKey,
1798
1896
  e.isFocused,
1799
1897
  n
1800
1898
  ]);
1801
- let W = {
1899
+ let H = {
1802
1900
  onKeyDown: M,
1803
1901
  onFocus: E,
1804
- onBlur: C,
1805
- onMouseDown(p) {
1806
- g.current === p.target && p.preventDefault();
1902
+ onBlur: I,
1903
+ onMouseDown(f) {
1904
+ v.current === f.target && f.preventDefault();
1807
1905
  }
1808
- }, { typeSelectProps: l } = an({
1906
+ }, { typeSelectProps: l } = zr({
1809
1907
  keyboardDelegate: r,
1810
1908
  selectionManager: e
1811
1909
  });
1812
- b || (W = G(l, W));
1910
+ y || (H = X(l, H));
1813
1911
  let $;
1814
- return v || ($ = e.focusedKey == null ? 0 : -1), {
1912
+ return g || ($ = e.focusedKey == null ? 0 : -1), {
1815
1913
  collectionProps: {
1816
- ...W,
1914
+ ...H,
1817
1915
  tabIndex: $
1818
1916
  }
1819
1917
  };
1820
1918
  }
1821
- function dn(t) {
1822
- let { selectionManager: e, key: r, ref: n, shouldSelectOnPressUp: i, shouldUseVirtualFocus: o, focus: s, isDisabled: u, onAction: f, allowsDifferentPressOrigin: b, linkBehavior: v = "action" } = t, T = $t(), h = (y) => {
1823
- if (y.pointerType === "keyboard" && Fe(y))
1919
+ function pn(t) {
1920
+ let { selectionManager: e, key: r, ref: n, shouldSelectOnPressUp: i, shouldUseVirtualFocus: o, focus: s, isDisabled: u, onAction: p, allowsDifferentPressOrigin: y, linkBehavior: g = "action" } = t, T = Ne(), h = (b) => {
1921
+ if (b.pointerType === "keyboard" && Me(b))
1824
1922
  e.toggleSelection(r);
1825
1923
  else {
1826
1924
  if (e.selectionMode === "none")
1827
1925
  return;
1828
1926
  if (e.isLink(r)) {
1829
- if (v === "selection") {
1830
- T.open(n.current, y), e.setSelectedKeys(e.selectedKeys);
1927
+ if (g === "selection") {
1928
+ let W = e.getItemProps(r);
1929
+ T.open(n.current, b, W.href, W.routerOptions), e.setSelectedKeys(e.selectedKeys);
1831
1930
  return;
1832
- } else if (v === "override" || v === "none")
1931
+ } else if (g === "override" || g === "none")
1833
1932
  return;
1834
1933
  }
1835
- e.selectionMode === "single" ? e.isSelected(r) && !e.disallowEmptySelection ? e.toggleSelection(r) : e.replaceSelection(r) : y && y.shiftKey ? e.extendSelection(r) : e.selectionBehavior === "toggle" || y && (ne(y) || y.pointerType === "touch" || y.pointerType === "virtual") ? e.toggleSelection(r) : e.replaceSelection(r);
1934
+ e.selectionMode === "single" ? e.isSelected(r) && !e.disallowEmptySelection ? e.toggleSelection(r) : e.replaceSelection(r) : b && b.shiftKey ? e.extendSelection(r) : e.selectionBehavior === "toggle" || b && (ie(b) || b.pointerType === "touch" || b.pointerType === "virtual") ? e.toggleSelection(r) : e.replaceSelection(r);
1836
1935
  }
1837
1936
  };
1838
1937
  z(() => {
1839
- r === e.focusedKey && e.isFocused && !o && (s ? s() : document.activeElement !== n.current && De(n.current));
1938
+ r === e.focusedKey && e.isFocused && !o && (s ? s() : document.activeElement !== n.current && Ae(n.current));
1840
1939
  }, [
1841
1940
  n,
1842
1941
  r,
@@ -1845,58 +1944,61 @@ function dn(t) {
1845
1944
  e.isFocused,
1846
1945
  o
1847
1946
  ]), u = u || e.isDisabled(r);
1848
- let g = {};
1849
- !o && !u ? g = {
1947
+ let v = {};
1948
+ !o && !u ? v = {
1850
1949
  tabIndex: r === e.focusedKey ? 0 : -1,
1851
- onFocus(y) {
1852
- y.target === n.current && e.setFocusedKey(r);
1950
+ onFocus(b) {
1951
+ b.target === n.current && e.setFocusedKey(r);
1853
1952
  }
1854
- } : u && (g.onMouseDown = (y) => {
1855
- y.preventDefault();
1953
+ } : u && (v.onMouseDown = (b) => {
1954
+ b.preventDefault();
1856
1955
  });
1857
- let L = e.isLink(r) && v === "override", P = e.isLink(r) && v !== "selection" && v !== "none", K = !u && e.canSelectItem(r) && !L, M = (f || P) && !u, x = M && (e.selectionBehavior === "replace" ? !K : !K || e.isEmpty), E = M && K && e.selectionBehavior === "replace", C = x || E, I = k(null), A = C && K, W = k(!1), l = k(!1), $ = (y) => {
1858
- f && f(), P && T.open(n.current, y);
1859
- }, p = {};
1860
- i ? (p.onPressStart = (y) => {
1861
- I.current = y.pointerType, W.current = A, y.pointerType === "keyboard" && (!C || st()) && h(y);
1862
- }, b ? (p.onPressUp = x ? null : (y) => {
1863
- y.pointerType !== "keyboard" && K && h(y);
1864
- }, p.onPress = x ? $ : null) : p.onPress = (y) => {
1865
- if (x || E && y.pointerType !== "mouse") {
1866
- if (y.pointerType === "keyboard" && !ot())
1956
+ let L = e.isLink(r) && g === "override", S = e.isLink(r) && g !== "selection" && g !== "none", w = !u && e.canSelectItem(r) && !L, M = (p || S) && !u, x = M && (e.selectionBehavior === "replace" ? !w : !w || e.isEmpty), E = M && w && e.selectionBehavior === "replace", I = x || E, C = k(null), A = I && w, H = k(!1), l = k(!1), $ = (b) => {
1957
+ if (p && p(), S) {
1958
+ let W = e.getItemProps(r);
1959
+ T.open(n.current, b, W.href, W.routerOptions);
1960
+ }
1961
+ }, f = {};
1962
+ i ? (f.onPressStart = (b) => {
1963
+ C.current = b.pointerType, H.current = A, b.pointerType === "keyboard" && (!I || st()) && h(b);
1964
+ }, y ? (f.onPressUp = x ? null : (b) => {
1965
+ b.pointerType !== "keyboard" && w && h(b);
1966
+ }, f.onPress = x ? $ : null) : f.onPress = (b) => {
1967
+ if (x || E && b.pointerType !== "mouse") {
1968
+ if (b.pointerType === "keyboard" && !ot())
1867
1969
  return;
1868
- $(y);
1970
+ $(b);
1869
1971
  } else
1870
- y.pointerType !== "keyboard" && K && h(y);
1871
- }) : (p.onPressStart = (y) => {
1872
- I.current = y.pointerType, W.current = A, l.current = x, K && (y.pointerType === "mouse" && !x || y.pointerType === "keyboard" && (!M || st())) && h(y);
1873
- }, p.onPress = (y) => {
1874
- (y.pointerType === "touch" || y.pointerType === "pen" || y.pointerType === "virtual" || y.pointerType === "keyboard" && C && ot() || y.pointerType === "mouse" && l.current) && (C ? $(y) : K && h(y));
1875
- }), g["data-key"] = r, p.preventFocusOnPress = o;
1876
- let { pressProps: d, isPressed: S } = Et(p), a = E ? (y) => {
1877
- I.current === "mouse" && (y.stopPropagation(), y.preventDefault(), $(y));
1878
- } : void 0, { longPressProps: c } = qr({
1972
+ b.pointerType !== "keyboard" && w && h(b);
1973
+ }) : (f.onPressStart = (b) => {
1974
+ C.current = b.pointerType, H.current = A, l.current = x, w && (b.pointerType === "mouse" && !x || b.pointerType === "keyboard" && (!M || st())) && h(b);
1975
+ }, f.onPress = (b) => {
1976
+ (b.pointerType === "touch" || b.pointerType === "pen" || b.pointerType === "virtual" || b.pointerType === "keyboard" && I && ot() || b.pointerType === "mouse" && l.current) && (I ? $(b) : w && h(b));
1977
+ }), v["data-key"] = r, f.preventFocusOnPress = o;
1978
+ let { pressProps: d, isPressed: K } = Et(f), a = E ? (b) => {
1979
+ C.current === "mouse" && (b.stopPropagation(), b.preventDefault(), $(b));
1980
+ } : void 0, { longPressProps: c } = Qr({
1879
1981
  isDisabled: !A,
1880
- onLongPress(y) {
1881
- y.pointerType === "touch" && (h(y), e.setSelectionBehavior("toggle"));
1982
+ onLongPress(b) {
1983
+ b.pointerType === "touch" && (h(b), e.setSelectionBehavior("toggle"));
1882
1984
  }
1883
- }), w = (y) => {
1884
- I.current === "touch" && W.current && y.preventDefault();
1885
- }, F = e.isLink(r) ? (y) => {
1886
- Z.isOpening || y.preventDefault();
1985
+ }), P = (b) => {
1986
+ C.current === "touch" && H.current && b.preventDefault();
1987
+ }, F = e.isLink(r) ? (b) => {
1988
+ Z.isOpening || b.preventDefault();
1887
1989
  } : void 0;
1888
1990
  return {
1889
- itemProps: G(g, K || x ? d : {}, A ? c : {}, {
1991
+ itemProps: X(v, w || x ? d : {}, A ? c : {}, {
1890
1992
  onDoubleClick: a,
1891
- onDragStartCapture: w,
1993
+ onDragStartCapture: P,
1892
1994
  onClick: F
1893
1995
  }),
1894
- isPressed: S,
1996
+ isPressed: K,
1895
1997
  isSelected: e.isSelected(r),
1896
1998
  isFocused: e.isFocused && e.focusedKey === r,
1897
1999
  isDisabled: u,
1898
- allowsSelection: K,
1899
- hasAction: C
2000
+ allowsSelection: w,
2001
+ hasAction: I
1900
2002
  };
1901
2003
  }
1902
2004
  function ot() {
@@ -1907,47 +2009,43 @@ function st() {
1907
2009
  let t = window.event;
1908
2010
  return (t == null ? void 0 : t.key) === " " || (t == null ? void 0 : t.code) === "Space";
1909
2011
  }
1910
- const zt = /* @__PURE__ */ new WeakMap();
1911
- function $e(t, e, r) {
1912
- return typeof e == "string" && (e = e.replace(/\s+/g, "")), `${zt.get(t)}-${r}-${e}`;
1913
- }
1914
- function fn(t, e, r) {
1915
- var n;
1916
- let { key: i, isDisabled: o, shouldSelectOnPressUp: s } = t, { selectionManager: u, selectedKey: f } = e, b = i === f, v = o || e.isDisabled || e.disabledKeys.has(i), { itemProps: T, isPressed: h } = dn({
1917
- selectionManager: u,
1918
- key: i,
2012
+ function bn(t, e, r) {
2013
+ let { key: n, isDisabled: i, shouldSelectOnPressUp: o } = t, { selectionManager: s, selectedKey: u } = e, p = n === u, y = i || e.isDisabled || e.selectionManager.isDisabled(n), { itemProps: g, isPressed: T } = pn({
2014
+ selectionManager: s,
2015
+ key: n,
1919
2016
  ref: r,
1920
- isDisabled: v,
1921
- shouldSelectOnPressUp: s,
2017
+ isDisabled: y,
2018
+ shouldSelectOnPressUp: o,
1922
2019
  linkBehavior: "selection"
1923
- }), g = $e(e, i, "tab"), L = $e(e, i, "tabpanel"), { tabIndex: P } = T, K = e.collection.getItem(i), M = gr(K == null ? void 0 : K.props, {
1924
- isLink: !!(!(K == null || (n = K.props) === null || n === void 0) && n.href),
2020
+ }), h = ge(e, n, "tab"), v = ge(e, n, "tabpanel"), { tabIndex: L } = g, S = e.collection.getItem(n), w = vr(S == null ? void 0 : S.props, {
1925
2021
  labelable: !0
1926
2022
  });
1927
- return delete M.id, {
1928
- tabProps: G(M, T, {
1929
- id: g,
1930
- "aria-selected": b,
1931
- "aria-disabled": v || void 0,
1932
- "aria-controls": b ? L : void 0,
1933
- tabIndex: v ? void 0 : P,
2023
+ delete w.id;
2024
+ let M = kr(S == null ? void 0 : S.props);
2025
+ return {
2026
+ tabProps: X(w, M, g, {
2027
+ id: h,
2028
+ "aria-selected": p,
2029
+ "aria-disabled": y || void 0,
2030
+ "aria-controls": p ? v : void 0,
2031
+ tabIndex: y ? void 0 : L,
1934
2032
  role: "tab"
1935
2033
  }),
1936
- isSelected: b,
1937
- isDisabled: v,
1938
- isPressed: h
2034
+ isSelected: p,
2035
+ isDisabled: y,
2036
+ isPressed: T
1939
2037
  };
1940
2038
  }
1941
- function pn(t, e, r) {
1942
- let n = _r(r) ? void 0 : 0;
2039
+ function yn(t, e, r) {
2040
+ let n = ln(r) ? void 0 : 0;
1943
2041
  var i;
1944
- const o = $e(e, (i = t.id) !== null && i !== void 0 ? i : e == null ? void 0 : e.selectedKey, "tabpanel"), s = St({
2042
+ const o = ge(e, (i = t.id) !== null && i !== void 0 ? i : e == null ? void 0 : e.selectedKey, "tabpanel"), s = St({
1945
2043
  ...t,
1946
2044
  id: o,
1947
- "aria-labelledby": $e(e, e == null ? void 0 : e.selectedKey, "tab")
2045
+ "aria-labelledby": ge(e, e == null ? void 0 : e.selectedKey, "tab")
1948
2046
  });
1949
2047
  return {
1950
- tabPanelProps: G(s, {
2048
+ tabPanelProps: X(s, {
1951
2049
  tabIndex: n,
1952
2050
  role: "tabpanel",
1953
2051
  "aria-describedby": t["aria-describedby"],
@@ -1955,7 +2053,7 @@ function pn(t, e, r) {
1955
2053
  })
1956
2054
  };
1957
2055
  }
1958
- class yn {
2056
+ class vn {
1959
2057
  getKeyLeftOf(e) {
1960
2058
  return this.flipDirection ? this.getNextKey(e) : this.getPreviousKey(e);
1961
2059
  }
@@ -1968,60 +2066,64 @@ class yn {
1968
2066
  getKeyBelow(e) {
1969
2067
  return this.getNextKey(e);
1970
2068
  }
2069
+ isDisabled(e) {
2070
+ var r, n;
2071
+ return this.disabledKeys.has(e) || !!(!((n = this.collection.getItem(e)) === null || n === void 0 || (r = n.props) === null || r === void 0) && r.isDisabled);
2072
+ }
1971
2073
  getFirstKey() {
1972
2074
  let e = this.collection.getFirstKey();
1973
- return e != null && this.disabledKeys.has(e) && (e = this.getNextKey(e)), e;
2075
+ return e != null && this.isDisabled(e) && (e = this.getNextKey(e)), e;
1974
2076
  }
1975
2077
  getLastKey() {
1976
2078
  let e = this.collection.getLastKey();
1977
- return e != null && this.disabledKeys.has(e) && (e = this.getPreviousKey(e)), e;
2079
+ return e != null && this.isDisabled(e) && (e = this.getPreviousKey(e)), e;
1978
2080
  }
1979
2081
  getNextKey(e) {
1980
2082
  do
1981
2083
  e = this.collection.getKeyAfter(e), e == null && (e = this.collection.getFirstKey());
1982
- while (this.disabledKeys.has(e));
2084
+ while (this.isDisabled(e));
1983
2085
  return e;
1984
2086
  }
1985
2087
  getPreviousKey(e) {
1986
2088
  do
1987
2089
  e = this.collection.getKeyBefore(e), e == null && (e = this.collection.getLastKey());
1988
- while (this.disabledKeys.has(e));
2090
+ while (this.isDisabled(e));
1989
2091
  return e;
1990
2092
  }
1991
2093
  constructor(e, r, n, i = /* @__PURE__ */ new Set()) {
1992
2094
  this.collection = e, this.flipDirection = r === "rtl" && n === "horizontal", this.disabledKeys = i;
1993
2095
  }
1994
2096
  }
1995
- function bn(t, e, r) {
1996
- let { orientation: n = "horizontal", keyboardActivation: i = "automatic" } = t, { collection: o, selectionManager: s, disabledKeys: u } = e, { direction: f } = Ot(), b = V(() => new yn(o, f, n, u), [
2097
+ function gn(t, e, r) {
2098
+ let { orientation: n = "horizontal", keyboardActivation: i = "automatic" } = t, { collection: o, selectionManager: s, disabledKeys: u } = e, { direction: p } = Ot(), y = G(() => new vn(o, p, n, u), [
1997
2099
  o,
1998
2100
  u,
1999
2101
  n,
2000
- f
2001
- ]), { collectionProps: v } = un({
2102
+ p
2103
+ ]), { collectionProps: g } = fn({
2002
2104
  ref: r,
2003
2105
  selectionManager: s,
2004
- keyboardDelegate: b,
2106
+ keyboardDelegate: y,
2005
2107
  selectOnFocus: i === "automatic",
2006
2108
  disallowEmptySelection: !0,
2007
2109
  scrollRef: r,
2008
2110
  linkBehavior: "selection"
2009
- }), T = bt();
2010
- zt.set(e, T);
2111
+ }), T = yt();
2112
+ ft.set(e, T);
2011
2113
  let h = St({
2012
2114
  ...t,
2013
2115
  id: T
2014
2116
  });
2015
2117
  return {
2016
2118
  tabListProps: {
2017
- ...G(v, h),
2119
+ ...X(g, h),
2018
2120
  role: "tablist",
2019
2121
  "aria-orientation": n,
2020
2122
  tabIndex: void 0
2021
2123
  }
2022
2124
  };
2023
2125
  }
2024
- function vn(t, e, r) {
2126
+ function hn(t, e, r) {
2025
2127
  return e in t ? Object.defineProperty(t, e, {
2026
2128
  value: r,
2027
2129
  enumerable: !0,
@@ -2043,14 +2145,14 @@ function ct(t) {
2043
2145
  for (var e = 1; e < arguments.length; e++) {
2044
2146
  var r = arguments[e] != null ? arguments[e] : {};
2045
2147
  e % 2 ? at(Object(r), !0).forEach(function(n) {
2046
- vn(t, n, r[n]);
2148
+ hn(t, n, r[n]);
2047
2149
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : at(Object(r)).forEach(function(n) {
2048
2150
  Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(r, n));
2049
2151
  });
2050
2152
  }
2051
2153
  return t;
2052
2154
  }
2053
- var gn = (t, e, r) => {
2155
+ var $n = (t, e, r) => {
2054
2156
  for (var n of Object.keys(t)) {
2055
2157
  var i;
2056
2158
  if (t[n] !== ((i = e[n]) !== null && i !== void 0 ? i : r[n]))
@@ -2064,42 +2166,45 @@ var gn = (t, e, r) => {
2064
2166
  if (s != null) {
2065
2167
  var u = s;
2066
2168
  typeof u == "boolean" && (u = u === !0 ? "true" : "false");
2067
- var f = t.variantClassNames[i][u];
2068
- f && (r += " " + f);
2169
+ var p = (
2170
+ // @ts-expect-error
2171
+ t.variantClassNames[i][u]
2172
+ );
2173
+ p && (r += " " + p);
2069
2174
  }
2070
2175
  }
2071
- for (var [b, v] of t.compoundVariants)
2072
- gn(b, n, t.defaultVariants) && (r += " " + v);
2176
+ for (var [y, g] of t.compoundVariants)
2177
+ $n(y, n, t.defaultVariants) && (r += " " + g);
2073
2178
  return r;
2074
- }, hn = We({ defaultClassName: "kz6kzz0", variantClassNames: { context: { container: "kz6kzz1", navigation: "kz6kzz2" }, active: { true: "kz6kzz3", false: "kz6kzz4" }, disabled: { true: "kz6kzz5", false: "kz6kzz6" } }, defaultVariants: {}, compoundVariants: [[{ context: "container", active: !0 }, "kz6kzz7"], [{ context: "container", active: !1 }, "kz6kzz8"], [{ context: "container", active: !1, disabled: !1 }, "kz6kzz9"], [{ context: "navigation", active: !0 }, "kz6kzza"], [{ context: "navigation", active: !1 }, "kz6kzzb"], [{ context: "navigation", active: !1, disabled: !1 }, "kz6kzzc"], [{ context: "navigation", active: !1, disabled: !0 }, "kz6kzzd"]] }), $n = We({ defaultClassName: "", variantClassNames: { active: { true: "kz6kzze", false: "kz6kzzf" }, disabled: { true: "kz6kzzg", false: "kz6kzzh" }, context: { navigation: "kz6kzzi", container: "kz6kzzj" } }, defaultVariants: {}, compoundVariants: [[{ context: "navigation", active: !0 }, "kz6kzzk"]] });
2075
- function Nt({
2179
+ }, mn = We({ defaultClassName: "kz6kzz0", variantClassNames: { context: { container: "kz6kzz1", navigation: "kz6kzz2" }, active: { true: "kz6kzz3", false: "kz6kzz4" }, disabled: { true: "kz6kzz5", false: "kz6kzz6" } }, defaultVariants: {}, compoundVariants: [[{ context: "container", active: !0 }, "kz6kzz7"], [{ context: "container", active: !1 }, "kz6kzz8"], [{ context: "container", active: !1, disabled: !1 }, "kz6kzz9"], [{ context: "navigation", active: !0 }, "kz6kzza"], [{ context: "navigation", active: !1 }, "kz6kzzb"], [{ context: "navigation", active: !1, disabled: !1 }, "kz6kzzc"], [{ context: "navigation", active: !1, disabled: !0 }, "kz6kzzd"]] }), Kn = We({ defaultClassName: "", variantClassNames: { active: { true: "kz6kzze", false: "kz6kzzf" }, disabled: { true: "kz6kzzg", false: "kz6kzzh" }, context: { navigation: "kz6kzzi", container: "kz6kzzj" } }, defaultVariants: {}, compoundVariants: [[{ context: "navigation", active: !0 }, "kz6kzzk"]] });
2180
+ function zt({
2076
2181
  context: t,
2077
2182
  item: e,
2078
2183
  state: r,
2079
2184
  ...n
2080
2185
  }) {
2081
- const { key: i } = e, o = B.useRef(null), { tabProps: s } = fn({ key: i }, r, o), u = r.selectedKey === i, f = r.disabledKeys.has(i), b = Gt(e.rendered, (v) => v.type.displayName === "SpsTag" || ae.isWoodlandComponent(v.type) && ae.get(v.type).name === "Tag" ? [{
2082
- className: ut(v.props.className, $n({ active: u, disabled: f, context: t }))
2186
+ const { key: i } = e, o = B.useRef(null), { tabProps: s } = bn({ key: i }, r, o), u = r.selectedKey === i, p = r.disabledKeys.has(i), y = Vt(e.rendered, (g) => g.type.displayName === "SpsTag" || ce.isWoodlandComponent(g.type) && ce.get(g.type).name === "Tag" ? [{
2187
+ className: ut(g.props.className, Kn({ active: u, disabled: p, context: t }))
2083
2188
  }] : [{}]);
2084
2189
  return /* @__PURE__ */ B.createElement(
2085
2190
  "div",
2086
2191
  {
2087
2192
  ...s,
2088
2193
  ref: o,
2089
- className: hn({ active: u, disabled: f, context: t }),
2194
+ className: mn({ active: u, disabled: p, context: t }),
2090
2195
  ...n
2091
2196
  },
2092
- b
2197
+ y
2093
2198
  );
2094
2199
  }
2095
- ae.set(Nt, { name: "Tab" });
2096
- function Bt({
2200
+ ce.set(zt, { name: "Tab" });
2201
+ function Nt({
2097
2202
  context: t,
2098
2203
  "data-testid": e,
2099
2204
  state: r,
2100
2205
  ...n
2101
2206
  }) {
2102
- const i = B.useRef(null), { tabPanelProps: o } = pn(n, r, i), s = t === "container" ? Xt : "div";
2207
+ const i = B.useRef(null), { tabPanelProps: o } = yn(n, r, i), s = t === "container" ? Gt : "div";
2103
2208
  return /* @__PURE__ */ B.createElement(
2104
2209
  s,
2105
2210
  {
@@ -2110,35 +2215,35 @@ function Bt({
2110
2215
  r.selectedItem ? r.selectedItem.props.children : null
2111
2216
  );
2112
2217
  }
2113
- ae.set(Bt, { name: "TabPanel" });
2114
- var mn = We({ defaultClassName: "fy26er0", variantClassNames: { context: { container: "fy26er1", navigation: "fy26er2" } }, defaultVariants: {}, compoundVariants: [] });
2115
- function Rt({
2218
+ ce.set(Nt, { name: "TabPanel" });
2219
+ var Sn = We({ defaultClassName: "fy26er0", variantClassNames: { context: { container: "fy26er1", navigation: "fy26er2" } }, defaultVariants: {}, compoundVariants: [] });
2220
+ function Bt({
2116
2221
  className: t,
2117
2222
  context: e = "navigation",
2118
2223
  "data-testid": r,
2119
2224
  ...n
2120
2225
  }) {
2121
- const i = er(n), o = B.useRef(null), { tabListProps: s } = bn(n, i, o), u = qt({ "data-testid": r });
2226
+ const i = Qt(n), o = B.useRef(null), { tabListProps: s } = gn(n, i, o), u = Xt({ "data-testid": r });
2122
2227
  return /* @__PURE__ */ B.createElement(B.Fragment, null, /* @__PURE__ */ B.createElement(
2123
2228
  "div",
2124
2229
  {
2125
2230
  ...s,
2126
2231
  ref: o,
2127
- className: ut(mn({ context: e }), t),
2232
+ className: ut(Sn({ context: e }), t),
2128
2233
  "data-testid": r
2129
2234
  },
2130
- [...i.collection].map((f) => /* @__PURE__ */ B.createElement(
2131
- Nt,
2235
+ [...i.collection].map((p) => /* @__PURE__ */ B.createElement(
2236
+ zt,
2132
2237
  {
2133
- key: f.key,
2134
- item: f,
2238
+ key: p.key,
2239
+ item: p,
2135
2240
  state: i,
2136
2241
  context: e,
2137
- ...u(`tab-${String(f.key)}`)
2242
+ ...u(`tab-${String(p.key)}`)
2138
2243
  }
2139
2244
  ))
2140
2245
  ), /* @__PURE__ */ B.createElement(
2141
- Bt,
2246
+ Nt,
2142
2247
  {
2143
2248
  key: i.selectedItem ? i.selectedItem.key : null,
2144
2249
  state: i,
@@ -2147,18 +2252,18 @@ function Rt({
2147
2252
  }
2148
2253
  ));
2149
2254
  }
2150
- ae.set(Rt, { name: "Tabs" });
2151
- const Kn = {
2152
- components: [Rt],
2255
+ ce.set(Bt, { name: "Tabs" });
2256
+ const Tn = {
2257
+ components: [Bt],
2153
2258
  examples: {
2154
2259
  basic: {
2155
2260
  label: "Basic Navigation Tabs",
2156
- description: He`
2261
+ description: Ve`
2157
2262
  <p>Navigation tabs</p>
2158
2263
  `,
2159
2264
  examples: {
2160
2265
  basic: {
2161
- react: He`
2266
+ react: Ve`
2162
2267
  import { Item } from "@react-stately/collections";
2163
2268
  import { Box, Icon } from "@sps-woodland/core";
2164
2269
  import { Tabs } from "@sps-woodland/tabs";
@@ -2224,10 +2329,10 @@ const Kn = {
2224
2329
  }
2225
2330
  }
2226
2331
  }
2227
- }, xn = {
2228
- "Tabbed Navigation": Kn
2332
+ }, Ln = {
2333
+ "Tabbed Navigation": Tn
2229
2334
  };
2230
2335
  export {
2231
- xn as MANIFEST,
2232
- Rt as Tabs
2336
+ Ln as MANIFEST,
2337
+ Bt as Tabs
2233
2338
  };