@sps-woodland/focused-task 8.45.3 → 8.45.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.js CHANGED
@@ -1,13 +1,13 @@
1
- import { Metadata as Ge, cl as ie, combineEventHandlers as Ce, useChildTestIdAttrBuilder as ht, selectChildren as Et, contentOf as Fe } from "@sps-woodland/core";
2
- import { Button as wt } from "@sps-woodland/buttons";
1
+ import { Metadata as Je, cl as se, combineEventHandlers as Me, useChildTestIdAttrBuilder as gt, selectChildren as yt, contentOf as Re } from "@sps-woodland/core";
2
+ import { Button as Tt } from "@sps-woodland/buttons";
3
3
  import * as v from "react";
4
- import m, { useState as Z, useRef as h, useCallback as N, useContext as H, useEffect as _, useReducer as gt, useMemo as U, createContext as yt } from "react";
5
- import Tt from "react-dom";
6
- import { code as Pe } from "@spscommerce/utils";
7
- const g = typeof document < "u" ? m.useLayoutEffect : () => {
4
+ import y, { useState as re, useRef as T, useCallback as _, useContext as z, useEffect as D, useReducer as Nt, useMemo as Z, createContext as kt } from "react";
5
+ import St from "react-dom";
6
+ import { code as De } from "@spscommerce/utils";
7
+ const x = typeof document < "u" ? y.useLayoutEffect : () => {
8
8
  };
9
- function Nt(e) {
10
- let [t, n] = Z(e), r = h(t), o = h(null), i = h(() => {
9
+ function xt(e) {
10
+ let [t, n] = re(e), r = T(t), o = T(null), i = T(() => {
11
11
  if (!o.current) return;
12
12
  let l = o.current.next();
13
13
  if (l.done) {
@@ -16,10 +16,10 @@ function Nt(e) {
16
16
  }
17
17
  r.current === l.value ? i.current() : n(l.value);
18
18
  });
19
- g(() => {
19
+ x(() => {
20
20
  r.current = t, o.current && i.current();
21
21
  });
22
- let a = N((l) => {
22
+ let a = _((l) => {
23
23
  o.current = l(r.current), i.current();
24
24
  }, [
25
25
  i
@@ -29,87 +29,87 @@ function Nt(e) {
29
29
  a
30
30
  ];
31
31
  }
32
- const ae = {
32
+ const ue = {
33
33
  prefix: String(Math.round(Math.random() * 1e10)),
34
34
  current: 0
35
- }, ze = /* @__PURE__ */ m.createContext(ae), kt = /* @__PURE__ */ m.createContext(!1);
36
- let St = !!(typeof window < "u" && window.document && window.document.createElement), pe = /* @__PURE__ */ new WeakMap();
37
- function xt(e = !1) {
38
- let t = H(ze), n = h(null);
35
+ }, Xe = /* @__PURE__ */ y.createContext(ue), Lt = /* @__PURE__ */ y.createContext(!1);
36
+ let Ct = !!(typeof window < "u" && window.document && window.document.createElement), ve = /* @__PURE__ */ new WeakMap();
37
+ function _t(e = !1) {
38
+ let t = z(Xe), n = T(null);
39
39
  if (n.current === null && !e) {
40
40
  var r, o;
41
- let i = (o = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
41
+ let i = (o = y.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || o === void 0 || (r = o.ReactCurrentOwner) === null || r === void 0 ? void 0 : r.current;
42
42
  if (i) {
43
- let a = pe.get(i);
44
- a == null ? pe.set(i, {
43
+ let a = ve.get(i);
44
+ a == null ? ve.set(i, {
45
45
  id: t.current,
46
46
  state: i.memoizedState
47
- }) : i.memoizedState !== a.state && (t.current = a.id, pe.delete(i));
47
+ }) : i.memoizedState !== a.state && (t.current = a.id, ve.delete(i));
48
48
  }
49
49
  n.current = ++t.current;
50
50
  }
51
51
  return n.current;
52
52
  }
53
- function Lt(e) {
54
- let t = H(ze);
55
- t === ae && !St && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
56
- let n = xt(!!e), r = t === ae && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
53
+ function Ft(e) {
54
+ let t = z(Xe);
55
+ t === ue && !Ct && process.env.NODE_ENV !== "production" && console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
56
+ let n = _t(!!e), r = t === ue && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${t.prefix}`;
57
57
  return e || `${r}-${n}`;
58
58
  }
59
- function _t(e) {
60
- let t = m.useId(), [n] = Z(Ue()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ae.prefix}`;
59
+ function Pt(e) {
60
+ let t = y.useId(), [n] = re(Qe()), r = n || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ue.prefix}`;
61
61
  return e || `${r}-${t}`;
62
62
  }
63
- const Ct = typeof m.useId == "function" ? _t : Lt;
64
- function Ft() {
63
+ const Ot = typeof y.useId == "function" ? Pt : Ft;
64
+ function Mt() {
65
65
  return !1;
66
66
  }
67
- function Pt() {
67
+ function Rt() {
68
68
  return !0;
69
69
  }
70
- function Ot(e) {
70
+ function Dt(e) {
71
71
  return () => {
72
72
  };
73
73
  }
74
- function Ue() {
75
- return typeof m.useSyncExternalStore == "function" ? m.useSyncExternalStore(Ot, Ft, Pt) : H(kt);
74
+ function Qe() {
75
+ return typeof y.useSyncExternalStore == "function" ? y.useSyncExternalStore(Dt, Mt, Rt) : z(Lt);
76
76
  }
77
- let Mt = !!(typeof window < "u" && window.document && window.document.createElement), B = /* @__PURE__ */ new Map(), G;
78
- typeof FinalizationRegistry < "u" && (G = new FinalizationRegistry((e) => {
79
- B.delete(e);
77
+ let At = !!(typeof window < "u" && window.document && window.document.createElement), q = /* @__PURE__ */ new Map(), X;
78
+ typeof FinalizationRegistry < "u" && (X = new FinalizationRegistry((e) => {
79
+ q.delete(e);
80
80
  }));
81
- function Je(e) {
82
- let [t, n] = Z(e), r = h(null), o = Ct(t), i = h(null);
83
- if (G && G.register(i, o), Mt) {
84
- const a = B.get(o);
85
- a && !a.includes(r) ? a.push(r) : B.set(o, [
81
+ function Ze(e) {
82
+ let [t, n] = re(e), r = T(null), o = Ot(t), i = T(null);
83
+ if (X && X.register(i, o), At) {
84
+ const a = q.get(o);
85
+ a && !a.includes(r) ? a.push(r) : q.set(o, [
86
86
  r
87
87
  ]);
88
88
  }
89
- return g(() => {
89
+ return x(() => {
90
90
  let a = o;
91
91
  return () => {
92
- G && G.unregister(i), B.delete(a);
92
+ X && X.unregister(i), q.delete(a);
93
93
  };
94
94
  }, [
95
95
  o
96
- ]), _(() => {
96
+ ]), D(() => {
97
97
  let a = r.current;
98
98
  return a && n(a), () => {
99
99
  a && (r.current = null);
100
100
  };
101
101
  }), o;
102
102
  }
103
- function Rt(e, t) {
103
+ function It(e, t) {
104
104
  if (e === t) return e;
105
- let n = B.get(e);
105
+ let n = q.get(e);
106
106
  if (n)
107
107
  return n.forEach((o) => o.current = t), t;
108
- let r = B.get(t);
108
+ let r = q.get(t);
109
109
  return r ? (r.forEach((o) => o.current = e), e) : t;
110
110
  }
111
- function Dt(e = []) {
112
- let t = Je(), [n, r] = Nt(t), o = N(() => {
111
+ function Wt(e = []) {
112
+ let t = Ze(), [n, r] = xt(t), o = _(() => {
113
113
  r(function* () {
114
114
  yield t, yield document.getElementById(t) ? t : void 0;
115
115
  });
@@ -117,62 +117,62 @@ function Dt(e = []) {
117
117
  t,
118
118
  r
119
119
  ]);
120
- return g(o, [
120
+ return x(o, [
121
121
  t,
122
122
  o,
123
123
  ...e
124
124
  ]), n;
125
125
  }
126
- function le(...e) {
126
+ function Le(...e) {
127
127
  return (...t) => {
128
128
  for (let n of e) typeof n == "function" && n(...t);
129
129
  };
130
130
  }
131
- const w = (e) => {
131
+ const S = (e) => {
132
132
  var t;
133
133
  return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
134
- }, X = (e) => e && "window" in e && e.window === e ? e : w(e).defaultView || window;
135
- function At(e) {
134
+ }, U = (e) => e && "window" in e && e.window === e ? e : S(e).defaultView || window;
135
+ function Vt(e) {
136
136
  return e !== null && typeof e == "object" && "nodeType" in e && typeof e.nodeType == "number";
137
137
  }
138
- function It(e) {
139
- return At(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
138
+ function Ht(e) {
139
+ return Vt(e) && e.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in e;
140
140
  }
141
- let Wt = !1;
142
- function ue() {
143
- return Wt;
141
+ let Kt = !1;
142
+ function I() {
143
+ return Kt;
144
144
  }
145
- function F(e, t) {
146
- if (!ue()) return t && e ? e.contains(t) : !1;
145
+ function O(e, t) {
146
+ if (!I()) return t && e ? e.contains(t) : !1;
147
147
  if (!e || !t) return !1;
148
148
  let n = t;
149
149
  for (; n !== null; ) {
150
150
  if (n === e) return !0;
151
- n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : It(n) ? n = n.host : n = n.parentNode;
151
+ n.tagName === "SLOT" && n.assignedSlot ? n = n.assignedSlot.parentNode : Ht(n) ? n = n.host : n = n.parentNode;
152
152
  }
153
153
  return !1;
154
154
  }
155
- const T = (e = document) => {
155
+ const L = (e = document) => {
156
156
  var t;
157
- if (!ue()) return e.activeElement;
157
+ if (!I()) return e.activeElement;
158
158
  let n = e.activeElement;
159
159
  for (; n && "shadowRoot" in n && (!((t = n.shadowRoot) === null || t === void 0) && t.activeElement); ) n = n.shadowRoot.activeElement;
160
160
  return n;
161
161
  };
162
- function y(e) {
163
- if (ue() && e.target instanceof Element && e.target.shadowRoot) {
162
+ function N(e) {
163
+ if (I() && e.target instanceof Element && e.target.shadowRoot) {
164
164
  var t, n;
165
165
  if ("composedPath" in e) return (t = e.composedPath()[0]) !== null && t !== void 0 ? t : null;
166
166
  if ("composedPath" in e.nativeEvent) return (n = e.nativeEvent.composedPath()[0]) !== null && n !== void 0 ? n : null;
167
167
  }
168
168
  return e.target;
169
169
  }
170
- class Kt {
170
+ class Bt {
171
171
  get currentNode() {
172
172
  return this._currentNode;
173
173
  }
174
174
  set currentNode(t) {
175
- if (!F(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
175
+ if (!O(this.root, t)) throw new Error("Cannot set currentNode to a node that is not contained by the root node.");
176
176
  const n = [];
177
177
  let r = t, o = t;
178
178
  for (this._currentNode = t; r && r !== this.root; ) if (r.nodeType === Node.DOCUMENT_FRAGMENT_NODE) {
@@ -191,7 +191,7 @@ class Kt {
191
191
  }
192
192
  firstChild() {
193
193
  let t = this.currentNode, n = this.nextNode();
194
- return F(t, n) ? (n && (this.currentNode = n), n) : (this.currentNode = t, null);
194
+ return O(t, n) ? (n && (this.currentNode = n), n) : (this.currentNode = t, null);
195
195
  }
196
196
  lastChild() {
197
197
  let n = this._walkerStack[0].lastChild();
@@ -264,12 +264,12 @@ class Kt {
264
264
  constructor(t, n, r, o) {
265
265
  this._walkerStack = [], this._currentSetFor = /* @__PURE__ */ new Set(), this._acceptNode = (a) => {
266
266
  if (a.nodeType === Node.ELEMENT_NODE) {
267
- const s = a.shadowRoot;
268
- if (s) {
269
- const c = this._doc.createTreeWalker(s, this.whatToShow, {
267
+ const c = a.shadowRoot;
268
+ if (c) {
269
+ const u = this._doc.createTreeWalker(c, this.whatToShow, {
270
270
  acceptNode: this._acceptNode
271
271
  });
272
- return this._walkerStack.unshift(c), NodeFilter.FILTER_ACCEPT;
272
+ return this._walkerStack.unshift(u), NodeFilter.FILTER_ACCEPT;
273
273
  } else {
274
274
  var l;
275
275
  if (typeof this.filter == "function") return this.filter(a);
@@ -288,41 +288,41 @@ class Kt {
288
288
  }
289
289
  }
290
290
  }
291
- function Vt(e, t, n, r) {
292
- return ue() ? new Kt(e, t, n, r) : e.createTreeWalker(t, n, r);
291
+ function Ye(e, t, n, r) {
292
+ return I() ? new Bt(e, t, n, r) : e.createTreeWalker(t, n, r);
293
293
  }
294
- function Bt(...e) {
294
+ function jt(...e) {
295
295
  return e.length === 1 && e[0] ? e[0] : (t) => {
296
296
  let n = !1;
297
297
  const r = e.map((o) => {
298
- const i = Oe(o, t);
298
+ const i = Ae(o, t);
299
299
  return n || (n = typeof i == "function"), i;
300
300
  });
301
301
  if (n) return () => {
302
302
  r.forEach((o, i) => {
303
- typeof o == "function" ? o() : Oe(e[i], null);
303
+ typeof o == "function" ? o() : Ae(e[i], null);
304
304
  });
305
305
  };
306
306
  };
307
307
  }
308
- function Oe(e, t) {
308
+ function Ae(e, t) {
309
309
  if (typeof e == "function") return e(t);
310
310
  e != null && (e.current = t);
311
311
  }
312
- function Xe(e) {
312
+ function et(e) {
313
313
  var t, n, r = "";
314
314
  if (typeof e == "string" || typeof e == "number") r += e;
315
315
  else if (typeof e == "object") if (Array.isArray(e)) {
316
316
  var o = e.length;
317
- for (t = 0; t < o; t++) e[t] && (n = Xe(e[t])) && (r && (r += " "), r += n);
317
+ for (t = 0; t < o; t++) e[t] && (n = et(e[t])) && (r && (r += " "), r += n);
318
318
  } else for (n in e) e[n] && (r && (r += " "), r += n);
319
319
  return r;
320
320
  }
321
- function Ht() {
322
- for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Xe(e)) && (r && (r += " "), r += t);
321
+ function Gt() {
322
+ for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = et(e)) && (r && (r += " "), r += t);
323
323
  return r;
324
324
  }
325
- function jt(...e) {
325
+ function qt(...e) {
326
326
  let t = {
327
327
  ...e[0]
328
328
  };
@@ -333,19 +333,19 @@ function jt(...e) {
333
333
  typeof i == "function" && typeof a == "function" && // This is a lot faster than a regex.
334
334
  o[0] === "o" && o[1] === "n" && o.charCodeAt(2) >= /* 'A' */
335
335
  65 && o.charCodeAt(2) <= /* 'Z' */
336
- 90 ? t[o] = le(i, a) : (o === "className" || o === "UNSAFE_className") && typeof i == "string" && typeof a == "string" ? t[o] = Ht(i, a) : o === "id" && i && a ? t.id = Rt(i, a) : o === "ref" && i && a ? t.ref = Bt(i, a) : t[o] = a !== void 0 ? a : i;
336
+ 90 ? t[o] = Le(i, a) : (o === "className" || o === "UNSAFE_className") && typeof i == "string" && typeof a == "string" ? t[o] = Gt(i, a) : o === "id" && i && a ? t.id = It(i, a) : o === "ref" && i && a ? t.ref = jt(i, a) : t[o] = a !== void 0 ? a : i;
337
337
  }
338
338
  }
339
339
  return t;
340
340
  }
341
- const qt = /* @__PURE__ */ new Set([
341
+ const Ut = /* @__PURE__ */ new Set([
342
342
  "id"
343
- ]), Gt = /* @__PURE__ */ new Set([
343
+ ]), zt = /* @__PURE__ */ new Set([
344
344
  "aria-label",
345
345
  "aria-labelledby",
346
346
  "aria-describedby",
347
347
  "aria-details"
348
- ]), zt = /* @__PURE__ */ new Set([
348
+ ]), Jt = /* @__PURE__ */ new Set([
349
349
  "href",
350
350
  "hrefLang",
351
351
  "target",
@@ -353,13 +353,13 @@ const qt = /* @__PURE__ */ new Set([
353
353
  "download",
354
354
  "ping",
355
355
  "referrerPolicy"
356
- ]), Ut = /* @__PURE__ */ new Set([
356
+ ]), Xt = /* @__PURE__ */ new Set([
357
357
  "dir",
358
358
  "lang",
359
359
  "hidden",
360
360
  "inert",
361
361
  "translate"
362
- ]), Me = /* @__PURE__ */ new Set([
362
+ ]), Ie = /* @__PURE__ */ new Set([
363
363
  "onClick",
364
364
  "onAuxClick",
365
365
  "onContextMenu",
@@ -394,37 +394,37 @@ const qt = /* @__PURE__ */ new Set([
394
394
  "onTransitionEnd",
395
395
  "onTransitionRun",
396
396
  "onTransitionStart"
397
- ]), Jt = /^(data-.*)$/;
398
- function Xt(e, t = {}) {
397
+ ]), Qt = /^(data-.*)$/;
398
+ function Zt(e, t = {}) {
399
399
  let { labelable: n, isLink: r, global: o, events: i = o, propNames: a } = t, l = {};
400
- for (const s in e) Object.prototype.hasOwnProperty.call(e, s) && (qt.has(s) || n && Gt.has(s) || r && zt.has(s) || o && Ut.has(s) || i && (Me.has(s) || s.endsWith("Capture") && Me.has(s.slice(0, -7))) || a?.has(s) || Jt.test(s)) && (l[s] = e[s]);
400
+ for (const c in e) Object.prototype.hasOwnProperty.call(e, c) && (Ut.has(c) || n && zt.has(c) || r && Jt.has(c) || o && Xt.has(c) || i && (Ie.has(c) || c.endsWith("Capture") && Ie.has(c.slice(0, -7))) || a?.has(c) || Qt.test(c)) && (l[c] = e[c]);
401
401
  return l;
402
402
  }
403
- function he(e) {
403
+ function we(e) {
404
404
  if (Yt()) e.focus({
405
405
  preventScroll: !0
406
406
  });
407
407
  else {
408
- let t = Qt(e);
409
- e.focus(), Zt(t);
408
+ let t = en(e);
409
+ e.focus(), tn(t);
410
410
  }
411
411
  }
412
- let ne = null;
412
+ let ie = null;
413
413
  function Yt() {
414
- if (ne == null) {
415
- ne = !1;
414
+ if (ie == null) {
415
+ ie = !1;
416
416
  try {
417
417
  document.createElement("div").focus({
418
418
  get preventScroll() {
419
- return ne = !0, !0;
419
+ return ie = !0, !0;
420
420
  }
421
421
  });
422
422
  } catch {
423
423
  }
424
424
  }
425
- return ne;
425
+ return ie;
426
426
  }
427
- function Qt(e) {
427
+ function en(e) {
428
428
  let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
429
429
  for (; t instanceof HTMLElement && t !== r; )
430
430
  (t.offsetHeight < t.scrollHeight || t.offsetWidth < t.scrollWidth) && n.push({
@@ -438,126 +438,126 @@ function Qt(e) {
438
438
  scrollLeft: r.scrollLeft
439
439
  }), n;
440
440
  }
441
- function Zt(e) {
441
+ function tn(e) {
442
442
  for (let { element: t, scrollTop: n, scrollLeft: r } of e)
443
443
  t.scrollTop = n, t.scrollLeft = r;
444
444
  }
445
- function de(e) {
445
+ function pe(e) {
446
446
  var t;
447
447
  if (typeof window > "u" || window.navigator == null) return !1;
448
448
  let n = (t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.brands;
449
449
  return Array.isArray(n) && n.some((r) => e.test(r.brand)) || e.test(window.navigator.userAgent);
450
450
  }
451
- function ke(e) {
451
+ function Ce(e) {
452
452
  var t;
453
453
  return typeof window < "u" && window.navigator != null ? e.test(((t = window.navigator.userAgentData) === null || t === void 0 ? void 0 : t.platform) || window.navigator.platform) : !1;
454
454
  }
455
- function O(e) {
455
+ function V(e) {
456
456
  if (process.env.NODE_ENV === "test") return e;
457
457
  let t = null;
458
458
  return () => (t == null && (t = e()), t);
459
459
  }
460
- const Y = O(function() {
461
- return ke(/^Mac/i);
462
- }), en = O(function() {
463
- return ke(/^iPhone/i);
464
- }), Ye = O(function() {
465
- return ke(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
466
- Y() && navigator.maxTouchPoints > 1;
467
- }), Qe = O(function() {
468
- return en() || Ye();
460
+ const te = V(function() {
461
+ return Ce(/^Mac/i);
462
+ }), nn = V(function() {
463
+ return Ce(/^iPhone/i);
464
+ }), tt = V(function() {
465
+ return Ce(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
466
+ te() && navigator.maxTouchPoints > 1;
467
+ }), nt = V(function() {
468
+ return nn() || tt();
469
469
  });
470
- O(function() {
471
- return Y() || Qe();
470
+ V(function() {
471
+ return te() || nt();
472
472
  });
473
- const tn = O(function() {
474
- return de(/AppleWebKit/i) && !Ze();
475
- }), Ze = O(function() {
476
- return de(/Chrome/i);
477
- }), et = O(function() {
478
- return de(/Android/i);
479
- }), nn = O(function() {
480
- return de(/Firefox/i);
473
+ const rn = V(function() {
474
+ return pe(/AppleWebKit/i) && !rt();
475
+ }), rt = V(function() {
476
+ return pe(/Chrome/i);
477
+ }), ot = V(function() {
478
+ return pe(/Android/i);
479
+ }), on = V(function() {
480
+ return pe(/Firefox/i);
481
481
  });
482
- function Q(e, t, n = !0) {
482
+ function ne(e, t, n = !0) {
483
483
  var r, o;
484
- let { metaKey: i, ctrlKey: a, altKey: l, shiftKey: s } = t;
485
- nn() && (!((o = window.event) === null || o === void 0 || (r = o.type) === null || r === void 0) && r.startsWith("key")) && e.target === "_blank" && (Y() ? i = !0 : a = !0);
486
- let c = tn() && Y() && !Ye() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
484
+ let { metaKey: i, ctrlKey: a, altKey: l, shiftKey: c } = t;
485
+ on() && (!((o = window.event) === null || o === void 0 || (r = o.type) === null || r === void 0) && r.startsWith("key")) && e.target === "_blank" && (te() ? i = !0 : a = !0);
486
+ let u = rn() && te() && !tt() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
487
487
  keyIdentifier: "Enter",
488
488
  metaKey: i,
489
489
  ctrlKey: a,
490
490
  altKey: l,
491
- shiftKey: s
491
+ shiftKey: c
492
492
  }) : new MouseEvent("click", {
493
493
  metaKey: i,
494
494
  ctrlKey: a,
495
495
  altKey: l,
496
- shiftKey: s,
496
+ shiftKey: c,
497
497
  detail: 1,
498
498
  bubbles: !0,
499
499
  cancelable: !0
500
500
  });
501
- Q.isOpening = n, he(e), e.dispatchEvent(c), Q.isOpening = !1;
501
+ ne.isOpening = n, we(e), e.dispatchEvent(u), ne.isOpening = !1;
502
502
  }
503
- Q.isOpening = !1;
504
- let M = /* @__PURE__ */ new Map(), Ee = /* @__PURE__ */ new Set();
505
- function Re() {
503
+ ne.isOpening = !1;
504
+ let H = /* @__PURE__ */ new Map(), ge = /* @__PURE__ */ new Set();
505
+ function We() {
506
506
  if (typeof window > "u") return;
507
507
  function e(r) {
508
508
  return "propertyName" in r;
509
509
  }
510
510
  let t = (r) => {
511
- let o = y(r);
511
+ let o = N(r);
512
512
  if (!e(r) || !o) return;
513
- let i = M.get(o);
514
- i || (i = /* @__PURE__ */ new Set(), M.set(o, i), o.addEventListener("transitioncancel", n, {
513
+ let i = H.get(o);
514
+ i || (i = /* @__PURE__ */ new Set(), H.set(o, i), o.addEventListener("transitioncancel", n, {
515
515
  once: !0
516
516
  })), i.add(r.propertyName);
517
517
  }, n = (r) => {
518
- let o = y(r);
518
+ let o = N(r);
519
519
  if (!e(r) || !o) return;
520
- let i = M.get(o);
521
- if (i && (i.delete(r.propertyName), i.size === 0 && (o.removeEventListener("transitioncancel", n), M.delete(o)), M.size === 0)) {
522
- for (let a of Ee) a();
523
- Ee.clear();
520
+ let i = H.get(o);
521
+ if (i && (i.delete(r.propertyName), i.size === 0 && (o.removeEventListener("transitioncancel", n), H.delete(o)), H.size === 0)) {
522
+ for (let a of ge) a();
523
+ ge.clear();
524
524
  }
525
525
  };
526
526
  document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", n);
527
527
  }
528
- typeof document < "u" && (document.readyState !== "loading" ? Re() : document.addEventListener("DOMContentLoaded", Re));
529
- function rn() {
530
- for (const [e] of M)
531
- "isConnected" in e && !e.isConnected && M.delete(e);
528
+ typeof document < "u" && (document.readyState !== "loading" ? We() : document.addEventListener("DOMContentLoaded", We));
529
+ function an() {
530
+ for (const [e] of H)
531
+ "isConnected" in e && !e.isConnected && H.delete(e);
532
532
  }
533
- function on(e) {
533
+ function ln(e) {
534
534
  requestAnimationFrame(() => {
535
- rn(), M.size === 0 ? e() : Ee.add(e);
535
+ an(), H.size === 0 ? e() : ge.add(e);
536
536
  });
537
537
  }
538
- function an() {
539
- let e = h(/* @__PURE__ */ new Map()), t = N((o, i, a, l) => {
540
- let s = l?.once ? (...c) => {
541
- e.current.delete(a), a(...c);
538
+ function sn() {
539
+ let e = T(/* @__PURE__ */ new Map()), t = _((o, i, a, l) => {
540
+ let c = l?.once ? (...u) => {
541
+ e.current.delete(a), a(...u);
542
542
  } : a;
543
543
  e.current.set(a, {
544
544
  type: i,
545
545
  eventTarget: o,
546
- fn: s,
546
+ fn: c,
547
547
  options: l
548
- }), o.addEventListener(i, s, l);
549
- }, []), n = N((o, i, a, l) => {
550
- var s;
551
- let c = ((s = e.current.get(a)) === null || s === void 0 ? void 0 : s.fn) || a;
552
- o.removeEventListener(i, c, l), e.current.delete(a);
553
- }, []), r = N(() => {
548
+ }), o.addEventListener(i, c, l);
549
+ }, []), n = _((o, i, a, l) => {
550
+ var c;
551
+ let u = ((c = e.current.get(a)) === null || c === void 0 ? void 0 : c.fn) || a;
552
+ o.removeEventListener(i, u, l), e.current.delete(a);
553
+ }, []), r = _(() => {
554
554
  e.current.forEach((o, i) => {
555
555
  n(o.eventTarget, o.type, i, o.options);
556
556
  });
557
557
  }, [
558
558
  n
559
559
  ]);
560
- return _(() => r, [
560
+ return D(() => r, [
561
561
  r
562
562
  ]), {
563
563
  addGlobalListener: t,
@@ -565,35 +565,49 @@ function an() {
565
565
  removeAllGlobalListeners: r
566
566
  };
567
567
  }
568
- var ve;
569
- const ln = (ve = m.useInsertionEffect) !== null && ve !== void 0 ? ve : g;
570
- function De(e) {
571
- const t = h(null);
572
- return ln(() => {
568
+ var be;
569
+ const cn = (be = y.useInsertionEffect) !== null && be !== void 0 ? be : x;
570
+ function Ve(e) {
571
+ const t = T(null);
572
+ return cn(() => {
573
573
  t.current = e;
574
574
  }, [
575
575
  e
576
- ]), N((...n) => {
576
+ ]), _((...n) => {
577
577
  const r = t.current;
578
578
  return r?.(...n);
579
579
  }, []);
580
580
  }
581
- function Ae(e, t) {
581
+ function ye(e, t) {
582
582
  if (!e) return !1;
583
583
  let n = window.getComputedStyle(e), r = document.scrollingElement || document.documentElement, o = /(auto|scroll)/.test(n.overflow + n.overflowX + n.overflowY);
584
584
  return e === r && n.overflow !== "hidden" && (o = !0), o && t && (o = e.scrollHeight !== e.clientHeight || e.scrollWidth !== e.clientWidth), o;
585
585
  }
586
- function tt(e, t) {
586
+ function it(e, t) {
587
587
  let n = e;
588
- for (Ae(n, t) && (n = n.parentElement); n && !Ae(n, t); ) n = n.parentElement;
588
+ for (ye(n, t) && (n = n.parentElement); n && !ye(n, t); ) n = n.parentElement;
589
589
  return n || document.scrollingElement || document.documentElement;
590
590
  }
591
- function sn(e) {
592
- return e.pointerType === "" && e.isTrusted ? !0 : et() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
591
+ const un = /* @__PURE__ */ new Set([
592
+ "checkbox",
593
+ "radio",
594
+ "range",
595
+ "color",
596
+ "file",
597
+ "image",
598
+ "button",
599
+ "submit",
600
+ "reset"
601
+ ]);
602
+ function $e(e) {
603
+ return e instanceof HTMLInputElement && !un.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
593
604
  }
594
- const cn = typeof Element < "u" && "checkVisibility" in Element.prototype;
595
- function un(e) {
596
- const t = X(e);
605
+ function dn(e) {
606
+ return e.pointerType === "" && e.isTrusted ? !0 : ot() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
607
+ }
608
+ const fn = typeof Element < "u" && "checkVisibility" in Element.prototype;
609
+ function pn(e) {
610
+ const t = U(e);
597
611
  if (!(e instanceof t.HTMLElement) && !(e instanceof t.SVGElement)) return !1;
598
612
  let { display: n, visibility: r } = e.style, o = n !== "none" && r !== "hidden" && r !== "collapse";
599
613
  if (o) {
@@ -603,16 +617,16 @@ function un(e) {
603
617
  }
604
618
  return o;
605
619
  }
606
- function dn(e, t) {
620
+ function vn(e, t) {
607
621
  return !e.hasAttribute("hidden") && // Ignore HiddenSelect when tree walking.
608
622
  !e.hasAttribute("data-react-aria-prevent-focus") && (e.nodeName === "DETAILS" && t && t.nodeName !== "SUMMARY" ? e.hasAttribute("open") : !0);
609
623
  }
610
- function Se(e, t) {
611
- return cn ? e.checkVisibility({
624
+ function _e(e, t) {
625
+ return fn ? e.checkVisibility({
612
626
  visibilityProperty: !0
613
- }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && un(e) && dn(e, t) && (!e.parentElement || Se(e.parentElement, e));
627
+ }) && !e.closest("[data-react-aria-prevent-focus]") : e.nodeName !== "#comment" && pn(e) && vn(e, t) && (!e.parentElement || _e(e.parentElement, e));
614
628
  }
615
- const xe = [
629
+ const Fe = [
616
630
  "input:not([disabled]):not([type=hidden])",
617
631
  "select:not([disabled])",
618
632
  "textarea:not([disabled])",
@@ -627,16 +641,16 @@ const xe = [
627
641
  "video[controls]",
628
642
  '[contenteditable]:not([contenteditable^="false"])',
629
643
  "permission"
630
- ], fn = xe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
631
- xe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
632
- const pn = xe.join(':not([hidden]):not([tabindex="-1"]),');
633
- function vn(e) {
634
- return e.matches(fn) && Se(e) && !nt(e);
644
+ ], bn = Fe.join(":not([hidden]),") + ",[tabindex]:not([disabled]):not([hidden])";
645
+ Fe.push('[tabindex]:not([tabindex="-1"]):not([disabled])');
646
+ const $n = Fe.join(':not([hidden]):not([tabindex="-1"]),');
647
+ function mn(e) {
648
+ return e.matches(bn) && _e(e) && !at(e);
635
649
  }
636
- function bn(e) {
637
- return e.matches(pn) && Se(e) && !nt(e);
650
+ function hn(e) {
651
+ return e.matches($n) && _e(e) && !at(e);
638
652
  }
639
- function nt(e) {
653
+ function at(e) {
640
654
  let t = e;
641
655
  for (; t != null; ) {
642
656
  if (t instanceof t.ownerDocument.defaultView.HTMLElement && t.inert) return !0;
@@ -644,61 +658,61 @@ function nt(e) {
644
658
  }
645
659
  return !1;
646
660
  }
647
- var be;
648
- const $n = typeof document < "u" ? (be = m.useInsertionEffect) !== null && be !== void 0 ? be : m.useLayoutEffect : () => {
661
+ var me;
662
+ const En = typeof document < "u" ? (me = y.useInsertionEffect) !== null && me !== void 0 ? me : y.useLayoutEffect : () => {
649
663
  };
650
- function mn(e, t, n) {
651
- let [r, o] = Z(e || t), i = h(r), a = h(e !== void 0), l = e !== void 0;
652
- _(() => {
653
- let d = a.current;
654
- d !== l && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${d ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), a.current = l;
664
+ function wn(e, t, n) {
665
+ let [r, o] = re(e || t), i = T(r), a = T(e !== void 0), l = e !== void 0;
666
+ D(() => {
667
+ let s = a.current;
668
+ s !== l && process.env.NODE_ENV !== "production" && console.warn(`WARN: A component changed from ${s ? "controlled" : "uncontrolled"} to ${l ? "controlled" : "uncontrolled"}.`), a.current = l;
655
669
  }, [
656
670
  l
657
671
  ]);
658
- let s = l ? e : r;
659
- $n(() => {
660
- i.current = s;
672
+ let c = l ? e : r;
673
+ En(() => {
674
+ i.current = c;
661
675
  });
662
- let [, c] = gt(() => ({}), {}), u = N((d, ...f) => {
663
- let p = typeof d == "function" ? d(i.current) : d;
664
- Object.is(i.current, p) || (i.current = p, o(p), c(), n?.(p, ...f));
676
+ let [, u] = Nt(() => ({}), {}), d = _((s, ...f) => {
677
+ let p = typeof s == "function" ? s(i.current) : s;
678
+ Object.is(i.current, p) || (i.current = p, o(p), u(), n?.(p, ...f));
665
679
  }, [
666
680
  n
667
681
  ]);
668
682
  return [
669
- s,
670
- u
683
+ c,
684
+ d
671
685
  ];
672
686
  }
673
- function rt(e) {
687
+ function lt(e) {
674
688
  let t = e;
675
689
  return t.nativeEvent = e, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
676
690
  }, t;
677
691
  }
678
- function hn(e, t) {
692
+ function gn(e, t) {
679
693
  Object.defineProperty(e, "target", {
680
694
  value: t
681
695
  }), Object.defineProperty(e, "currentTarget", {
682
696
  value: t
683
697
  });
684
698
  }
685
- function En(e) {
686
- let t = h({
699
+ function yn(e) {
700
+ let t = T({
687
701
  isFocused: !1,
688
702
  observer: null
689
703
  });
690
- return g(() => {
704
+ return x(() => {
691
705
  const n = t.current;
692
706
  return () => {
693
707
  n.observer && (n.observer.disconnect(), n.observer = null);
694
708
  };
695
- }, []), N((n) => {
696
- let r = y(n);
709
+ }, []), _((n) => {
710
+ let r = N(n);
697
711
  if (r instanceof HTMLButtonElement || r instanceof HTMLInputElement || r instanceof HTMLTextAreaElement || r instanceof HTMLSelectElement) {
698
712
  t.current.isFocused = !0;
699
713
  let o = r, i = (a) => {
700
714
  if (t.current.isFocused = !1, o.disabled) {
701
- let l = rt(a);
715
+ let l = lt(a);
702
716
  e?.(l);
703
717
  }
704
718
  t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
@@ -709,7 +723,7 @@ function En(e) {
709
723
  if (t.current.isFocused && o.disabled) {
710
724
  var a;
711
725
  (a = t.current.observer) === null || a === void 0 || a.disconnect();
712
- let l = o === T() ? null : T();
726
+ let l = o === L() ? null : L();
713
727
  o.dispatchEvent(new FocusEvent("blur", {
714
728
  relatedTarget: l
715
729
  })), o.dispatchEvent(new FocusEvent("focusout", {
@@ -728,111 +742,111 @@ function En(e) {
728
742
  e
729
743
  ]);
730
744
  }
731
- let wn = !1;
732
- const ot = m.createContext({
745
+ let Tn = !1;
746
+ const st = y.createContext({
733
747
  register: () => {
734
748
  }
735
749
  });
736
- ot.displayName = "PressResponderContext";
737
- let ee = null;
738
- const gn = /* @__PURE__ */ new Set();
739
- let J = /* @__PURE__ */ new Map(), W = !1, we = !1;
740
- function Le(e, t) {
741
- for (let n of gn) n(e, t);
750
+ st.displayName = "PressResponderContext";
751
+ let oe = null;
752
+ const Nn = /* @__PURE__ */ new Set();
753
+ let Y = /* @__PURE__ */ new Map(), G = !1, Te = !1;
754
+ function Pe(e, t) {
755
+ for (let n of Nn) n(e, t);
742
756
  }
743
- function yn(e) {
744
- return !(e.metaKey || !Y() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
757
+ function kn(e) {
758
+ return !(e.metaKey || !te() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
745
759
  }
746
- function se(e) {
747
- W = !0, !Q.isOpening && yn(e) && (ee = "keyboard", Le("keyboard", e));
760
+ function de(e) {
761
+ G = !0, !ne.isOpening && kn(e) && (oe = "keyboard", Pe("keyboard", e));
748
762
  }
749
- function S(e) {
750
- ee = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (W = !0, Le("pointer", e));
763
+ function P(e) {
764
+ oe = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (G = !0, Pe("pointer", e));
751
765
  }
752
- function it(e) {
753
- !Q.isOpening && sn(e) && (W = !0, ee = "virtual");
766
+ function ct(e) {
767
+ !ne.isOpening && dn(e) && (G = !0, oe = "virtual");
754
768
  }
755
- function at(e) {
756
- y(e) === window || y(e) === document || wn || !e.isTrusted || (!W && !we && (ee = "virtual", Le("virtual", e)), W = !1, we = !1);
769
+ function ut(e) {
770
+ N(e) === window || N(e) === document || Tn || !e.isTrusted || (!G && !Te && (oe = "virtual", Pe("virtual", e)), G = !1, Te = !1);
757
771
  }
758
- function lt() {
759
- W = !1, we = !0;
772
+ function dt() {
773
+ G = !1, Te = !0;
760
774
  }
761
- function Ie(e) {
762
- if (typeof window > "u" || typeof document > "u" || J.get(X(e))) return;
763
- const t = X(e), n = w(e);
775
+ function He(e) {
776
+ if (typeof window > "u" || typeof document > "u" || Y.get(U(e))) return;
777
+ const t = U(e), n = S(e);
764
778
  let r = t.HTMLElement.prototype.focus;
765
779
  t.HTMLElement.prototype.focus = function() {
766
- W = !0, r.apply(this, arguments);
767
- }, n.addEventListener("keydown", se, !0), n.addEventListener("keyup", se, !0), n.addEventListener("click", it, !0), t.addEventListener("focus", at, !0), t.addEventListener("blur", lt, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", S, !0), n.addEventListener("pointermove", S, !0), n.addEventListener("pointerup", S, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", S, !0), n.addEventListener("mousemove", S, !0), n.addEventListener("mouseup", S, !0)), t.addEventListener("beforeunload", () => {
768
- st(e);
780
+ G = !0, r.apply(this, arguments);
781
+ }, n.addEventListener("keydown", de, !0), n.addEventListener("keyup", de, !0), n.addEventListener("click", ct, !0), t.addEventListener("focus", ut, !0), t.addEventListener("blur", dt, !1), typeof PointerEvent < "u" ? (n.addEventListener("pointerdown", P, !0), n.addEventListener("pointermove", P, !0), n.addEventListener("pointerup", P, !0)) : process.env.NODE_ENV === "test" && (n.addEventListener("mousedown", P, !0), n.addEventListener("mousemove", P, !0), n.addEventListener("mouseup", P, !0)), t.addEventListener("beforeunload", () => {
782
+ ft(e);
769
783
  }, {
770
784
  once: !0
771
- }), J.set(t, {
785
+ }), Y.set(t, {
772
786
  focus: r
773
787
  });
774
788
  }
775
- const st = (e, t) => {
776
- const n = X(e), r = w(e);
777
- t && r.removeEventListener("DOMContentLoaded", t), J.has(n) && (n.HTMLElement.prototype.focus = J.get(n).focus, r.removeEventListener("keydown", se, !0), r.removeEventListener("keyup", se, !0), r.removeEventListener("click", it, !0), n.removeEventListener("focus", at, !0), n.removeEventListener("blur", lt, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", S, !0), r.removeEventListener("pointermove", S, !0), r.removeEventListener("pointerup", S, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", S, !0), r.removeEventListener("mousemove", S, !0), r.removeEventListener("mouseup", S, !0)), J.delete(n));
789
+ const ft = (e, t) => {
790
+ const n = U(e), r = S(e);
791
+ t && r.removeEventListener("DOMContentLoaded", t), Y.has(n) && (n.HTMLElement.prototype.focus = Y.get(n).focus, r.removeEventListener("keydown", de, !0), r.removeEventListener("keyup", de, !0), r.removeEventListener("click", ct, !0), n.removeEventListener("focus", ut, !0), n.removeEventListener("blur", dt, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", P, !0), r.removeEventListener("pointermove", P, !0), r.removeEventListener("pointerup", P, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", P, !0), r.removeEventListener("mousemove", P, !0), r.removeEventListener("mouseup", P, !0)), Y.delete(n));
778
792
  };
779
- function Tn(e) {
780
- const t = w(e);
793
+ function Sn(e) {
794
+ const t = S(e);
781
795
  let n;
782
- return t.readyState !== "loading" ? Ie(e) : (n = () => {
783
- Ie(e);
784
- }, t.addEventListener("DOMContentLoaded", n)), () => st(e, n);
796
+ return t.readyState !== "loading" ? He(e) : (n = () => {
797
+ He(e);
798
+ }, t.addEventListener("DOMContentLoaded", n)), () => ft(e, n);
785
799
  }
786
- typeof document < "u" && Tn();
787
- function ct() {
788
- return ee;
800
+ typeof document < "u" && Sn();
801
+ function pt() {
802
+ return oe;
789
803
  }
790
- function ge(e) {
804
+ function Ne(e) {
791
805
  if (!e.isConnected) return;
792
- const t = w(e);
793
- if (ct() === "virtual") {
794
- let n = T(t);
795
- on(() => {
796
- const r = T(t);
797
- (r === n || r === t.body) && e.isConnected && he(e);
806
+ const t = S(e);
807
+ if (pt() === "virtual") {
808
+ let n = L(t);
809
+ ln(() => {
810
+ const r = L(t);
811
+ (r === n || r === t.body) && e.isConnected && we(e);
798
812
  });
799
- } else he(e);
813
+ } else we(e);
800
814
  }
801
- function Nn({ children: e }) {
802
- let t = U(() => ({
815
+ function xn({ children: e }) {
816
+ let t = Z(() => ({
803
817
  register: () => {
804
818
  }
805
819
  }), []);
806
- return /* @__PURE__ */ m.createElement(ot.Provider, {
820
+ return /* @__PURE__ */ y.createElement(st.Provider, {
807
821
  value: t
808
822
  }, e);
809
823
  }
810
- function kn(e) {
811
- let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = h({
824
+ function Ln(e) {
825
+ let { isDisabled: t, onBlurWithin: n, onFocusWithin: r, onFocusWithinChange: o } = e, i = T({
812
826
  isFocusWithin: !1
813
- }), { addGlobalListener: a, removeAllGlobalListeners: l } = an(), s = N((d) => {
814
- F(d.currentTarget, y(d)) && i.current.isFocusWithin && !F(d.currentTarget, d.relatedTarget) && (i.current.isFocusWithin = !1, l(), n && n(d), o && o(!1));
827
+ }), { addGlobalListener: a, removeAllGlobalListeners: l } = sn(), c = _((s) => {
828
+ O(s.currentTarget, N(s)) && i.current.isFocusWithin && !O(s.currentTarget, s.relatedTarget) && (i.current.isFocusWithin = !1, l(), n && n(s), o && o(!1));
815
829
  }, [
816
830
  n,
817
831
  o,
818
832
  i,
819
833
  l
820
- ]), c = En(s), u = N((d) => {
821
- if (!F(d.currentTarget, y(d))) return;
822
- let f = y(d);
823
- const p = w(f), b = T(p);
824
- if (!i.current.isFocusWithin && b === f) {
825
- r && r(d), o && o(!0), i.current.isFocusWithin = !0, c(d);
826
- let L = d.currentTarget;
827
- a(p, "focus", (A) => {
828
- let te = y(A);
829
- if (i.current.isFocusWithin && !F(L, te)) {
830
- let K = new p.defaultView.FocusEvent("blur", {
831
- relatedTarget: te
834
+ ]), u = yn(c), d = _((s) => {
835
+ if (!O(s.currentTarget, N(s))) return;
836
+ let f = N(s);
837
+ const p = S(f), m = L(p);
838
+ if (!i.current.isFocusWithin && m === f) {
839
+ r && r(s), o && o(!0), i.current.isFocusWithin = !0, u(s);
840
+ let $ = s.currentTarget;
841
+ a(p, "focus", (C) => {
842
+ let b = N(C);
843
+ if (i.current.isFocusWithin && !O($, b)) {
844
+ let h = new p.defaultView.FocusEvent("blur", {
845
+ relatedTarget: b
832
846
  });
833
- hn(K, L);
834
- let fe = rt(K);
835
- s(fe);
847
+ gn(h, $);
848
+ let E = lt(h);
849
+ c(E);
836
850
  }
837
851
  }, {
838
852
  capture: !0
@@ -841,9 +855,9 @@ function kn(e) {
841
855
  }, [
842
856
  r,
843
857
  o,
844
- c,
858
+ u,
845
859
  a,
846
- s
860
+ c
847
861
  ]);
848
862
  return t ? {
849
863
  focusWithinProps: {
@@ -853,39 +867,39 @@ function kn(e) {
853
867
  }
854
868
  } : {
855
869
  focusWithinProps: {
856
- onFocus: u,
857
- onBlur: s
870
+ onFocus: d,
871
+ onBlur: c
858
872
  }
859
873
  };
860
874
  }
861
- function Sn(e) {
862
- let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = e, i = h({
875
+ function Cn(e) {
876
+ let { ref: t, onInteractOutside: n, isDisabled: r, onInteractOutsideStart: o } = e, i = T({
863
877
  isPointerDown: !1,
864
878
  ignoreEmulatedMouseEvents: !1
865
- }), a = De((s) => {
866
- n && re(s, t) && (o && o(s), i.current.isPointerDown = !0);
867
- }), l = De((s) => {
868
- n && n(s);
879
+ }), a = Ve((c) => {
880
+ n && ae(c, t) && (o && o(c), i.current.isPointerDown = !0);
881
+ }), l = Ve((c) => {
882
+ n && n(c);
869
883
  });
870
- _(() => {
871
- let s = i.current;
884
+ D(() => {
885
+ let c = i.current;
872
886
  if (r) return;
873
- const c = t.current, u = w(c);
887
+ const u = t.current, d = S(u);
874
888
  if (typeof PointerEvent < "u") {
875
- let d = (f) => {
876
- s.isPointerDown && re(f, t) && l(f), s.isPointerDown = !1;
889
+ let s = (f) => {
890
+ c.isPointerDown && ae(f, t) && l(f), c.isPointerDown = !1;
877
891
  };
878
- return u.addEventListener("pointerdown", a, !0), u.addEventListener("click", d, !0), () => {
879
- u.removeEventListener("pointerdown", a, !0), u.removeEventListener("click", d, !0);
892
+ return d.addEventListener("pointerdown", a, !0), d.addEventListener("click", s, !0), () => {
893
+ d.removeEventListener("pointerdown", a, !0), d.removeEventListener("click", s, !0);
880
894
  };
881
895
  } else if (process.env.NODE_ENV === "test") {
882
- let d = (p) => {
883
- s.ignoreEmulatedMouseEvents ? s.ignoreEmulatedMouseEvents = !1 : s.isPointerDown && re(p, t) && l(p), s.isPointerDown = !1;
896
+ let s = (p) => {
897
+ c.ignoreEmulatedMouseEvents ? c.ignoreEmulatedMouseEvents = !1 : c.isPointerDown && ae(p, t) && l(p), c.isPointerDown = !1;
884
898
  }, f = (p) => {
885
- s.ignoreEmulatedMouseEvents = !0, s.isPointerDown && re(p, t) && l(p), s.isPointerDown = !1;
899
+ c.ignoreEmulatedMouseEvents = !0, c.isPointerDown && ae(p, t) && l(p), c.isPointerDown = !1;
886
900
  };
887
- return u.addEventListener("mousedown", a, !0), u.addEventListener("mouseup", d, !0), u.addEventListener("touchstart", a, !0), u.addEventListener("touchend", f, !0), () => {
888
- u.removeEventListener("mousedown", a, !0), u.removeEventListener("mouseup", d, !0), u.removeEventListener("touchstart", a, !0), u.removeEventListener("touchend", f, !0);
901
+ return d.addEventListener("mousedown", a, !0), d.addEventListener("mouseup", s, !0), d.addEventListener("touchstart", a, !0), d.addEventListener("touchend", f, !0), () => {
902
+ d.removeEventListener("mousedown", a, !0), d.removeEventListener("mouseup", s, !0), d.removeEventListener("touchstart", a, !0), d.removeEventListener("touchend", f, !0);
889
903
  };
890
904
  }
891
905
  }, [
@@ -893,226 +907,226 @@ function Sn(e) {
893
907
  r
894
908
  ]);
895
909
  }
896
- function re(e, t) {
910
+ function ae(e, t) {
897
911
  if (e.button > 0) return !1;
898
- let n = y(e);
912
+ let n = N(e);
899
913
  if (n) {
900
914
  const r = n.ownerDocument;
901
- if (!r || !F(r.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
915
+ if (!r || !O(r.documentElement, n) || n.closest("[data-react-aria-top-layer]")) return !1;
902
916
  }
903
917
  return t.current ? !e.composedPath().includes(t.current) : !1;
904
918
  }
905
- const We = /* @__PURE__ */ m.createContext(null), ye = "react-aria-focus-scope-restore";
906
- let $ = null;
907
- function xn(e) {
908
- let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, i = h(null), a = h(null), l = h([]), { parentNode: s } = H(We) || {}, c = U(() => new Ne({
919
+ const Ke = /* @__PURE__ */ y.createContext(null), ke = "react-aria-focus-scope-restore";
920
+ let g = null;
921
+ function _n(e) {
922
+ let { children: t, contain: n, restoreFocus: r, autoFocus: o } = e, i = T(null), a = T(null), l = T([]), { parentNode: c } = z(Ke) || {}, u = Z(() => new xe({
909
923
  scopeRef: l
910
924
  }), [
911
925
  l
912
926
  ]);
913
- g(() => {
914
- let f = s || E.root;
915
- if (E.getTreeNode(f.scopeRef) && $ && !ce($, f.scopeRef)) {
916
- let p = E.getTreeNode($);
927
+ x(() => {
928
+ let f = c || k.root;
929
+ if (k.getTreeNode(f.scopeRef) && g && !fe(g, f.scopeRef)) {
930
+ let p = k.getTreeNode(g);
917
931
  p && (f = p);
918
932
  }
919
- f.addChild(c), E.addNode(c);
933
+ f.addChild(u), k.addNode(u);
920
934
  }, [
921
- c,
922
- s
923
- ]), g(() => {
924
- let f = E.getTreeNode(l);
935
+ u,
936
+ c
937
+ ]), x(() => {
938
+ let f = k.getTreeNode(l);
925
939
  f && (f.contain = !!n);
926
940
  }, [
927
941
  n
928
- ]), g(() => {
942
+ ]), x(() => {
929
943
  var f;
930
- let p = (f = i.current) === null || f === void 0 ? void 0 : f.nextSibling, b = [], L = (A) => A.stopPropagation();
944
+ let p = (f = i.current) === null || f === void 0 ? void 0 : f.nextSibling, m = [], $ = (C) => C.stopPropagation();
931
945
  for (; p && p !== a.current; )
932
- b.push(p), p.addEventListener(ye, L), p = p.nextSibling;
933
- return l.current = b, () => {
934
- for (let A of b) A.removeEventListener(ye, L);
946
+ m.push(p), p.addEventListener(ke, $), p = p.nextSibling;
947
+ return l.current = m, () => {
948
+ for (let C of m) C.removeEventListener(ke, $);
935
949
  };
936
950
  }, [
937
951
  t
938
- ]), Mn(l, r, n), Fn(l, n), Rn(l, r, n), On(l, o), _(() => {
939
- const f = T(w(l.current ? l.current[0] : void 0));
952
+ ]), An(l, r, n), Mn(l, n), In(l, r, n), Dn(l, o), D(() => {
953
+ const f = L(S(l.current ? l.current[0] : void 0));
940
954
  let p = null;
941
- if (x(f, l.current)) {
942
- for (let b of E.traverse()) b.scopeRef && x(f, b.scopeRef.current) && (p = b);
943
- p === E.getTreeNode(l) && ($ = p.scopeRef);
955
+ if (M(f, l.current)) {
956
+ for (let m of k.traverse()) m.scopeRef && M(f, m.scopeRef.current) && (p = m);
957
+ p === k.getTreeNode(l) && (g = p.scopeRef);
944
958
  }
945
959
  }, [
946
960
  l
947
- ]), g(() => () => {
948
- var f, p, b;
949
- let L = (b = (p = E.getTreeNode(l)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && b !== void 0 ? b : null;
950
- (l === $ || ce(l, $)) && (!L || E.getTreeNode(L)) && ($ = L), E.removeTreeNode(l);
961
+ ]), x(() => () => {
962
+ var f, p, m;
963
+ let $ = (m = (p = k.getTreeNode(l)) === null || p === void 0 || (f = p.parent) === null || f === void 0 ? void 0 : f.scopeRef) !== null && m !== void 0 ? m : null;
964
+ (l === g || fe(l, g)) && (!$ || k.getTreeNode($)) && (g = $), k.removeTreeNode(l);
951
965
  }, [
952
966
  l
953
967
  ]);
954
- let u = U(() => Ln(l), []), d = U(() => ({
955
- focusManager: u,
956
- parentNode: c
968
+ let d = Z(() => Fn(l), []), s = Z(() => ({
969
+ focusManager: d,
970
+ parentNode: u
957
971
  }), [
958
- c,
959
- u
972
+ u,
973
+ d
960
974
  ]);
961
- return /* @__PURE__ */ m.createElement(We.Provider, {
962
- value: d
963
- }, /* @__PURE__ */ m.createElement("span", {
975
+ return /* @__PURE__ */ y.createElement(Ke.Provider, {
976
+ value: s
977
+ }, /* @__PURE__ */ y.createElement("span", {
964
978
  "data-focus-scope-start": !0,
965
979
  hidden: !0,
966
980
  ref: i
967
- }), t, /* @__PURE__ */ m.createElement("span", {
981
+ }), t, /* @__PURE__ */ y.createElement("span", {
968
982
  "data-focus-scope-end": !0,
969
983
  hidden: !0,
970
984
  ref: a
971
985
  }));
972
986
  }
973
- function Ln(e) {
987
+ function Fn(e) {
974
988
  return {
975
989
  focusNext(t = {}) {
976
990
  let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t;
977
991
  var l;
978
- let s = r || T(w((l = n[0]) !== null && l !== void 0 ? l : void 0)), c = n[0].previousElementSibling, u = I(n), d = D(u, {
992
+ let c = r || L(S((l = n[0]) !== null && l !== void 0 ? l : void 0)), u = n[0].previousElementSibling, d = j(n), s = B(d, {
979
993
  tabbable: o,
980
994
  accept: a
981
995
  }, n);
982
- d.currentNode = x(s, n) ? s : c;
983
- let f = d.nextNode();
984
- return !f && i && (d.currentNode = c, f = d.nextNode()), f && P(f, !0), f;
996
+ s.currentNode = M(c, n) ? c : u;
997
+ let f = s.nextNode();
998
+ return !f && i && (s.currentNode = u, f = s.nextNode()), f && W(f, !0), f;
985
999
  },
986
1000
  focusPrevious(t = {}) {
987
1001
  let n = e.current, { from: r, tabbable: o, wrap: i, accept: a } = t;
988
1002
  var l;
989
- let s = r || T(w((l = n[0]) !== null && l !== void 0 ? l : void 0)), c = n[n.length - 1].nextElementSibling, u = I(n), d = D(u, {
1003
+ let c = r || L(S((l = n[0]) !== null && l !== void 0 ? l : void 0)), u = n[n.length - 1].nextElementSibling, d = j(n), s = B(d, {
990
1004
  tabbable: o,
991
1005
  accept: a
992
1006
  }, n);
993
- d.currentNode = x(s, n) ? s : c;
994
- let f = d.previousNode();
995
- return !f && i && (d.currentNode = c, f = d.previousNode()), f && P(f, !0), f;
1007
+ s.currentNode = M(c, n) ? c : u;
1008
+ let f = s.previousNode();
1009
+ return !f && i && (s.currentNode = u, f = s.previousNode()), f && W(f, !0), f;
996
1010
  },
997
1011
  focusFirst(t = {}) {
998
- let n = e.current, { tabbable: r, accept: o } = t, i = I(n), a = D(i, {
1012
+ let n = e.current, { tabbable: r, accept: o } = t, i = j(n), a = B(i, {
999
1013
  tabbable: r,
1000
1014
  accept: o
1001
1015
  }, n);
1002
1016
  a.currentNode = n[0].previousElementSibling;
1003
1017
  let l = a.nextNode();
1004
- return l && P(l, !0), l;
1018
+ return l && W(l, !0), l;
1005
1019
  },
1006
1020
  focusLast(t = {}) {
1007
- let n = e.current, { tabbable: r, accept: o } = t, i = I(n), a = D(i, {
1021
+ let n = e.current, { tabbable: r, accept: o } = t, i = j(n), a = B(i, {
1008
1022
  tabbable: r,
1009
1023
  accept: o
1010
1024
  }, n);
1011
1025
  a.currentNode = n[n.length - 1].nextElementSibling;
1012
1026
  let l = a.previousNode();
1013
- return l && P(l, !0), l;
1027
+ return l && W(l, !0), l;
1014
1028
  }
1015
1029
  };
1016
1030
  }
1017
- function I(e) {
1031
+ function j(e) {
1018
1032
  return e[0].parentElement;
1019
1033
  }
1020
- function z(e) {
1021
- let t = E.getTreeNode($);
1034
+ function Q(e) {
1035
+ let t = k.getTreeNode(g);
1022
1036
  for (; t && t.scopeRef !== e; ) {
1023
1037
  if (t.contain) return !1;
1024
1038
  t = t.parent;
1025
1039
  }
1026
1040
  return !0;
1027
1041
  }
1028
- function _n(e) {
1042
+ function Pn(e) {
1029
1043
  if (!e.form)
1030
- return Array.from(w(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((r) => !r.form);
1044
+ return Array.from(S(e).querySelectorAll(`input[type="radio"][name="${CSS.escape(e.name)}"]`)).filter((r) => !r.form);
1031
1045
  const t = e.form.elements.namedItem(e.name);
1032
- let n = X(e);
1046
+ let n = U(e);
1033
1047
  return t instanceof n.RadioNodeList ? Array.from(t).filter((r) => r instanceof n.HTMLInputElement) : t instanceof n.HTMLInputElement ? [
1034
1048
  t
1035
1049
  ] : [];
1036
1050
  }
1037
- function Cn(e) {
1051
+ function On(e) {
1038
1052
  if (e.checked) return !0;
1039
- const t = _n(e);
1053
+ const t = Pn(e);
1040
1054
  return t.length > 0 && !t.some((n) => n.checked);
1041
1055
  }
1042
- function Fn(e, t) {
1043
- let n = h(void 0), r = h(void 0);
1044
- g(() => {
1056
+ function Mn(e, t) {
1057
+ let n = T(void 0), r = T(void 0);
1058
+ x(() => {
1045
1059
  let o = e.current;
1046
1060
  if (!t) {
1047
1061
  r.current && (cancelAnimationFrame(r.current), r.current = void 0);
1048
1062
  return;
1049
1063
  }
1050
- const i = w(o ? o[0] : void 0);
1051
- let a = (c) => {
1052
- if (c.key !== "Tab" || c.altKey || c.ctrlKey || c.metaKey || !z(e) || c.isComposing) return;
1053
- let u = T(i), d = e.current;
1054
- if (!d || !x(u, d)) return;
1055
- let f = I(d), p = D(f, {
1064
+ const i = S(o ? o[0] : void 0);
1065
+ let a = (u) => {
1066
+ if (u.key !== "Tab" || u.altKey || u.ctrlKey || u.metaKey || !Q(e) || u.isComposing) return;
1067
+ let d = L(i), s = e.current;
1068
+ if (!s || !M(d, s)) return;
1069
+ let f = j(s), p = B(f, {
1056
1070
  tabbable: !0
1057
- }, d);
1058
- if (!u) return;
1059
- p.currentNode = u;
1060
- let b = c.shiftKey ? p.previousNode() : p.nextNode();
1061
- b || (p.currentNode = c.shiftKey ? d[d.length - 1].nextElementSibling : d[0].previousElementSibling, b = c.shiftKey ? p.previousNode() : p.nextNode()), c.preventDefault(), b && P(b, !0);
1062
- }, l = (c) => {
1063
- (!$ || ce($, e)) && x(y(c), e.current) ? ($ = e, n.current = y(c)) : z(e) && !R(y(c), e) ? n.current ? n.current.focus() : $ && $.current && Te($.current) : z(e) && (n.current = y(c));
1064
- }, s = (c) => {
1071
+ }, s);
1072
+ if (!d) return;
1073
+ p.currentNode = d;
1074
+ let m = u.shiftKey ? p.previousNode() : p.nextNode();
1075
+ m || (p.currentNode = u.shiftKey ? s[s.length - 1].nextElementSibling : s[0].previousElementSibling, m = u.shiftKey ? p.previousNode() : p.nextNode()), u.preventDefault(), m && W(m, !0);
1076
+ }, l = (u) => {
1077
+ (!g || fe(g, e)) && M(N(u), e.current) ? (g = e, n.current = N(u)) : Q(e) && !K(N(u), e) ? n.current ? n.current.focus() : g && g.current && Se(g.current) : Q(e) && (n.current = N(u));
1078
+ }, c = (u) => {
1065
1079
  r.current && cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
1066
- let u = ct(), d = (u === "virtual" || u === null) && et() && Ze(), f = T(i);
1067
- if (!d && f && z(e) && !R(f, e)) {
1068
- $ = e;
1069
- let b = y(c);
1070
- if (b && b.isConnected) {
1080
+ let d = pt(), s = (d === "virtual" || d === null) && ot() && rt(), f = L(i);
1081
+ if (!s && f && Q(e) && !K(f, e)) {
1082
+ g = e;
1083
+ let m = N(u);
1084
+ if (m && m.isConnected) {
1071
1085
  var p;
1072
- n.current = b, (p = n.current) === null || p === void 0 || p.focus();
1073
- } else $.current && Te($.current);
1086
+ n.current = m, (p = n.current) === null || p === void 0 || p.focus();
1087
+ } else g.current && Se(g.current);
1074
1088
  }
1075
1089
  });
1076
1090
  };
1077
- return i.addEventListener("keydown", a, !1), i.addEventListener("focusin", l, !1), o?.forEach((c) => c.addEventListener("focusin", l, !1)), o?.forEach((c) => c.addEventListener("focusout", s, !1)), () => {
1078
- i.removeEventListener("keydown", a, !1), i.removeEventListener("focusin", l, !1), o?.forEach((c) => c.removeEventListener("focusin", l, !1)), o?.forEach((c) => c.removeEventListener("focusout", s, !1));
1091
+ return i.addEventListener("keydown", a, !1), i.addEventListener("focusin", l, !1), o?.forEach((u) => u.addEventListener("focusin", l, !1)), o?.forEach((u) => u.addEventListener("focusout", c, !1)), () => {
1092
+ i.removeEventListener("keydown", a, !1), i.removeEventListener("focusin", l, !1), o?.forEach((u) => u.removeEventListener("focusin", l, !1)), o?.forEach((u) => u.removeEventListener("focusout", c, !1));
1079
1093
  };
1080
1094
  }, [
1081
1095
  e,
1082
1096
  t
1083
- ]), g(() => () => {
1097
+ ]), x(() => () => {
1084
1098
  r.current && cancelAnimationFrame(r.current);
1085
1099
  }, [
1086
1100
  r
1087
1101
  ]);
1088
1102
  }
1089
- function ut(e) {
1090
- return R(e);
1103
+ function vt(e) {
1104
+ return K(e);
1091
1105
  }
1092
- function x(e, t) {
1093
- return !e || !t ? !1 : t.some((n) => F(n, e));
1106
+ function M(e, t) {
1107
+ return !e || !t ? !1 : t.some((n) => O(n, e));
1094
1108
  }
1095
- function R(e, t = null) {
1109
+ function K(e, t = null) {
1096
1110
  if (e instanceof Element && e.closest("[data-react-aria-top-layer]")) return !0;
1097
- for (let { scopeRef: n } of E.traverse(E.getTreeNode(t)))
1098
- if (n && x(e, n.current)) return !0;
1111
+ for (let { scopeRef: n } of k.traverse(k.getTreeNode(t)))
1112
+ if (n && M(e, n.current)) return !0;
1099
1113
  return !1;
1100
1114
  }
1101
- function Pn(e) {
1102
- return R(e, $);
1115
+ function Rn(e) {
1116
+ return K(e, g);
1103
1117
  }
1104
- function ce(e, t) {
1118
+ function fe(e, t) {
1105
1119
  var n;
1106
- let r = (n = E.getTreeNode(t)) === null || n === void 0 ? void 0 : n.parent;
1120
+ let r = (n = k.getTreeNode(t)) === null || n === void 0 ? void 0 : n.parent;
1107
1121
  for (; r; ) {
1108
1122
  if (r.scopeRef === e) return !0;
1109
1123
  r = r.parent;
1110
1124
  }
1111
1125
  return !1;
1112
1126
  }
1113
- function P(e, t = !1) {
1127
+ function W(e, t = !1) {
1114
1128
  if (e != null && !t) try {
1115
- ge(e);
1129
+ Ne(e);
1116
1130
  } catch {
1117
1131
  }
1118
1132
  else if (e != null) try {
@@ -1120,40 +1134,40 @@ function P(e, t = !1) {
1120
1134
  } catch {
1121
1135
  }
1122
1136
  }
1123
- function dt(e, t = !0) {
1124
- let n = e[0].previousElementSibling, r = I(e), o = D(r, {
1137
+ function bt(e, t = !0) {
1138
+ let n = e[0].previousElementSibling, r = j(e), o = B(r, {
1125
1139
  tabbable: t
1126
1140
  }, e);
1127
1141
  o.currentNode = n;
1128
1142
  let i = o.nextNode();
1129
- return t && !i && (r = I(e), o = D(r, {
1143
+ return t && !i && (r = j(e), o = B(r, {
1130
1144
  tabbable: !1
1131
1145
  }, e), o.currentNode = n, i = o.nextNode()), i;
1132
1146
  }
1133
- function Te(e, t = !0) {
1134
- P(dt(e, t));
1147
+ function Se(e, t = !0) {
1148
+ W(bt(e, t));
1135
1149
  }
1136
- function On(e, t) {
1137
- const n = m.useRef(t);
1138
- _(() => {
1150
+ function Dn(e, t) {
1151
+ const n = y.useRef(t);
1152
+ D(() => {
1139
1153
  if (n.current) {
1140
- $ = e;
1141
- const r = w(e.current ? e.current[0] : void 0);
1142
- !x(T(r), $.current) && e.current && Te(e.current);
1154
+ g = e;
1155
+ const r = S(e.current ? e.current[0] : void 0);
1156
+ !M(L(r), g.current) && e.current && Se(e.current);
1143
1157
  }
1144
1158
  n.current = !1;
1145
1159
  }, [
1146
1160
  e
1147
1161
  ]);
1148
1162
  }
1149
- function Mn(e, t, n) {
1150
- g(() => {
1163
+ function An(e, t, n) {
1164
+ x(() => {
1151
1165
  if (t || n) return;
1152
1166
  let r = e.current;
1153
- const o = w(r ? r[0] : void 0);
1167
+ const o = S(r ? r[0] : void 0);
1154
1168
  let i = (a) => {
1155
- let l = y(a);
1156
- x(l, e.current) ? $ = e : ut(l) || ($ = null);
1169
+ let l = N(a);
1170
+ M(l, e.current) ? g = e : vt(l) || (g = null);
1157
1171
  };
1158
1172
  return o.addEventListener("focusin", i, !1), r?.forEach((a) => a.addEventListener("focusin", i, !1)), () => {
1159
1173
  o.removeEventListener("focusin", i, !1), r?.forEach((a) => a.removeEventListener("focusin", i, !1));
@@ -1164,22 +1178,22 @@ function Mn(e, t, n) {
1164
1178
  n
1165
1179
  ]);
1166
1180
  }
1167
- function Ke(e) {
1168
- let t = E.getTreeNode($);
1181
+ function Be(e) {
1182
+ let t = k.getTreeNode(g);
1169
1183
  for (; t && t.scopeRef !== e; ) {
1170
1184
  if (t.nodeToRestore) return !1;
1171
1185
  t = t.parent;
1172
1186
  }
1173
1187
  return t?.scopeRef === e;
1174
1188
  }
1175
- function Rn(e, t, n) {
1176
- const r = h(typeof document < "u" ? T(w(e.current ? e.current[0] : void 0)) : null);
1177
- g(() => {
1189
+ function In(e, t, n) {
1190
+ const r = T(typeof document < "u" ? L(S(e.current ? e.current[0] : void 0)) : null);
1191
+ x(() => {
1178
1192
  let o = e.current;
1179
- const i = w(o ? o[0] : void 0);
1193
+ const i = S(o ? o[0] : void 0);
1180
1194
  if (!t || n) return;
1181
1195
  let a = () => {
1182
- (!$ || ce($, e)) && x(T(i), e.current) && ($ = e);
1196
+ (!g || fe(g, e)) && M(L(i), e.current) && (g = e);
1183
1197
  };
1184
1198
  return i.addEventListener("focusin", a, !1), o?.forEach((l) => l.addEventListener("focusin", a, !1)), () => {
1185
1199
  i.removeEventListener("focusin", a, !1), o?.forEach((l) => l.removeEventListener("focusin", a, !1));
@@ -1187,26 +1201,26 @@ function Rn(e, t, n) {
1187
1201
  }, [
1188
1202
  e,
1189
1203
  n
1190
- ]), g(() => {
1191
- const o = w(e.current ? e.current[0] : void 0);
1204
+ ]), x(() => {
1205
+ const o = S(e.current ? e.current[0] : void 0);
1192
1206
  if (!t) return;
1193
1207
  let i = (a) => {
1194
- if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !z(e) || a.isComposing) return;
1208
+ if (a.key !== "Tab" || a.altKey || a.ctrlKey || a.metaKey || !Q(e) || a.isComposing) return;
1195
1209
  let l = o.activeElement;
1196
- if (!R(l, e) || !Ke(e)) return;
1197
- let s = E.getTreeNode(e);
1198
- if (!s) return;
1199
- let c = s.nodeToRestore, u = D(o.body, {
1210
+ if (!K(l, e) || !Be(e)) return;
1211
+ let c = k.getTreeNode(e);
1212
+ if (!c) return;
1213
+ let u = c.nodeToRestore, d = B(o.body, {
1200
1214
  tabbable: !0
1201
1215
  });
1202
- u.currentNode = l;
1203
- let d = a.shiftKey ? u.previousNode() : u.nextNode();
1204
- if ((!c || !c.isConnected || c === o.body) && (c = void 0, s.nodeToRestore = void 0), (!d || !R(d, e)) && c) {
1205
- u.currentNode = c;
1216
+ d.currentNode = l;
1217
+ let s = a.shiftKey ? d.previousNode() : d.nextNode();
1218
+ if ((!u || !u.isConnected || u === o.body) && (u = void 0, c.nodeToRestore = void 0), (!s || !K(s, e)) && u) {
1219
+ d.currentNode = u;
1206
1220
  do
1207
- d = a.shiftKey ? u.previousNode() : u.nextNode();
1208
- while (R(d, e));
1209
- a.preventDefault(), a.stopPropagation(), d ? P(d, !0) : ut(c) ? P(c, !0) : l.blur();
1221
+ s = a.shiftKey ? d.previousNode() : d.nextNode();
1222
+ while (K(s, e));
1223
+ a.preventDefault(), a.stopPropagation(), s ? W(s, !0) : vt(u) ? W(u, !0) : l.blur();
1210
1224
  }
1211
1225
  };
1212
1226
  return n || o.addEventListener("keydown", i, !0), () => {
@@ -1216,35 +1230,35 @@ function Rn(e, t, n) {
1216
1230
  e,
1217
1231
  t,
1218
1232
  n
1219
- ]), g(() => {
1220
- const o = w(e.current ? e.current[0] : void 0);
1233
+ ]), x(() => {
1234
+ const o = S(e.current ? e.current[0] : void 0);
1221
1235
  if (!t) return;
1222
- let i = E.getTreeNode(e);
1236
+ let i = k.getTreeNode(e);
1223
1237
  if (i) {
1224
1238
  var a;
1225
1239
  return i.nodeToRestore = (a = r.current) !== null && a !== void 0 ? a : void 0, () => {
1226
- let l = E.getTreeNode(e);
1240
+ let l = k.getTreeNode(e);
1227
1241
  if (!l) return;
1228
- let s = l.nodeToRestore, c = T(o);
1229
- if (t && s && (c && R(c, e) || c === o.body && Ke(e))) {
1230
- let u = E.clone();
1242
+ let c = l.nodeToRestore, u = L(o);
1243
+ if (t && c && (u && K(u, e) || u === o.body && Be(e))) {
1244
+ let d = k.clone();
1231
1245
  requestAnimationFrame(() => {
1232
1246
  if (o.activeElement === o.body) {
1233
- let d = u.getTreeNode(e);
1234
- for (; d; ) {
1235
- if (d.nodeToRestore && d.nodeToRestore.isConnected) {
1236
- Ve(d.nodeToRestore);
1247
+ let s = d.getTreeNode(e);
1248
+ for (; s; ) {
1249
+ if (s.nodeToRestore && s.nodeToRestore.isConnected) {
1250
+ je(s.nodeToRestore);
1237
1251
  return;
1238
1252
  }
1239
- d = d.parent;
1253
+ s = s.parent;
1240
1254
  }
1241
- for (d = u.getTreeNode(e); d; ) {
1242
- if (d.scopeRef && d.scopeRef.current && E.getTreeNode(d.scopeRef)) {
1243
- let f = dt(d.scopeRef.current, !0);
1244
- Ve(f);
1255
+ for (s = d.getTreeNode(e); s; ) {
1256
+ if (s.scopeRef && s.scopeRef.current && k.getTreeNode(s.scopeRef)) {
1257
+ let f = bt(s.scopeRef.current, !0);
1258
+ je(f);
1245
1259
  return;
1246
1260
  }
1247
- d = d.parent;
1261
+ s = s.parent;
1248
1262
  }
1249
1263
  }
1250
1264
  });
@@ -1256,21 +1270,21 @@ function Rn(e, t, n) {
1256
1270
  t
1257
1271
  ]);
1258
1272
  }
1259
- function Ve(e) {
1260
- e.dispatchEvent(new CustomEvent(ye, {
1273
+ function je(e) {
1274
+ e.dispatchEvent(new CustomEvent(ke, {
1261
1275
  bubbles: !0,
1262
1276
  cancelable: !0
1263
- })) && P(e);
1277
+ })) && W(e);
1264
1278
  }
1265
- function D(e, t, n) {
1266
- let r = t?.tabbable ? bn : vn, o = e?.nodeType === Node.ELEMENT_NODE ? e : null, i = w(o), a = Vt(i, e || i, NodeFilter.SHOW_ELEMENT, {
1279
+ function B(e, t, n) {
1280
+ let r = t?.tabbable ? hn : mn, o = e?.nodeType === Node.ELEMENT_NODE ? e : null, i = S(o), a = Ye(i, e || i, NodeFilter.SHOW_ELEMENT, {
1267
1281
  acceptNode(l) {
1268
- return F(t?.from, l) || t?.tabbable && l.tagName === "INPUT" && l.getAttribute("type") === "radio" && (!Cn(l) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === l.name) ? NodeFilter.FILTER_REJECT : r(l) && (!n || x(l, n)) && (!t?.accept || t.accept(l)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1282
+ return O(t?.from, l) || t?.tabbable && l.tagName === "INPUT" && l.getAttribute("type") === "radio" && (!On(l) || a.currentNode.tagName === "INPUT" && a.currentNode.type === "radio" && a.currentNode.name === l.name) ? NodeFilter.FILTER_REJECT : r(l) && (!n || M(l, n)) && (!t?.accept || t.accept(l)) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
1269
1283
  }
1270
1284
  });
1271
1285
  return t?.from && (a.currentNode = t.from), a;
1272
1286
  }
1273
- class _e {
1287
+ class Oe {
1274
1288
  get size() {
1275
1289
  return this.fastMap.size;
1276
1290
  }
@@ -1280,7 +1294,7 @@ class _e {
1280
1294
  addTreeNode(t, n, r) {
1281
1295
  let o = this.fastMap.get(n ?? null);
1282
1296
  if (!o) return;
1283
- let i = new Ne({
1297
+ let i = new xe({
1284
1298
  scopeRef: t
1285
1299
  });
1286
1300
  o.addChild(i), i.parent = o, this.fastMap.set(t, i), r && (i.nodeToRestore = r);
@@ -1293,7 +1307,7 @@ class _e {
1293
1307
  let n = this.fastMap.get(t);
1294
1308
  if (!n) return;
1295
1309
  let r = n.parent;
1296
- for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current && x(i.nodeToRestore, n.scopeRef.current) && (i.nodeToRestore = n.nodeToRestore);
1310
+ for (let i of this.traverse()) i !== n && n.nodeToRestore && i.nodeToRestore && n.scopeRef && n.scopeRef.current && M(i.nodeToRestore, n.scopeRef.current) && (i.nodeToRestore = n.nodeToRestore);
1297
1311
  let o = n.children;
1298
1312
  r && (r.removeChild(n), o.size > 0 && o.forEach((i) => r && r.addChild(i))), this.fastMap.delete(n.scopeRef);
1299
1313
  }
@@ -1303,18 +1317,18 @@ class _e {
1303
1317
  }
1304
1318
  clone() {
1305
1319
  var t;
1306
- let n = new _e();
1320
+ let n = new Oe();
1307
1321
  var r;
1308
1322
  for (let o of this.traverse()) n.addTreeNode(o.scopeRef, (r = (t = o.parent) === null || t === void 0 ? void 0 : t.scopeRef) !== null && r !== void 0 ? r : null, o.nodeToRestore);
1309
1323
  return n;
1310
1324
  }
1311
1325
  constructor() {
1312
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new Ne({
1326
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new xe({
1313
1327
  scopeRef: null
1314
1328
  }), this.fastMap.set(null, this.root);
1315
1329
  }
1316
1330
  }
1317
- class Ne {
1331
+ class xe {
1318
1332
  addChild(t) {
1319
1333
  this.children.add(t), t.parent = this;
1320
1334
  }
@@ -1325,60 +1339,64 @@ class Ne {
1325
1339
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = t.scopeRef;
1326
1340
  }
1327
1341
  }
1328
- let E = new _e();
1329
- const Dn = /* @__PURE__ */ new WeakMap(), C = [];
1330
- function An(e, t) {
1331
- let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: l } = e;
1332
- _(() => (o && C.push(t), () => {
1333
- let b = C.indexOf(t);
1334
- b >= 0 && C.splice(b, 1);
1335
- }), [
1342
+ let k = new Oe();
1343
+ const Wn = /* @__PURE__ */ new WeakMap(), R = [];
1344
+ function Vn(e, t) {
1345
+ let { onClose: n, shouldCloseOnBlur: r, isOpen: o, isDismissable: i = !1, isKeyboardDismissDisabled: a = !1, shouldCloseOnInteractOutside: l } = e, c = T(void 0);
1346
+ D(() => {
1347
+ if (o && !R.includes(t))
1348
+ return R.push(t), () => {
1349
+ let $ = R.indexOf(t);
1350
+ $ >= 0 && R.splice($, 1);
1351
+ };
1352
+ }, [
1336
1353
  o,
1337
1354
  t
1338
1355
  ]);
1339
- let s = () => {
1340
- C[C.length - 1] === t && n && n();
1341
- }, c = (b) => {
1342
- (!l || l(b.target)) && C[C.length - 1] === t && (b.stopPropagation(), b.preventDefault());
1343
- }, u = (b) => {
1344
- (!l || l(b.target)) && (C[C.length - 1] === t && (b.stopPropagation(), b.preventDefault()), s());
1345
- }, d = (b) => {
1346
- b.key === "Escape" && !a && !b.nativeEvent.isComposing && (b.stopPropagation(), b.preventDefault(), s());
1356
+ let u = () => {
1357
+ R[R.length - 1] === t && n && n();
1358
+ }, d = ($) => {
1359
+ const C = R[R.length - 1];
1360
+ c.current = C, (!l || l(N($))) && C === t && ($.stopPropagation(), $.preventDefault());
1361
+ }, s = ($) => {
1362
+ (!l || l(N($))) && (R[R.length - 1] === t && ($.stopPropagation(), $.preventDefault()), c.current === t && u()), c.current = void 0;
1363
+ }, f = ($) => {
1364
+ $.key === "Escape" && !a && !$.nativeEvent.isComposing && ($.stopPropagation(), $.preventDefault(), u());
1347
1365
  };
1348
- Sn({
1366
+ Cn({
1349
1367
  ref: t,
1350
- onInteractOutside: i && o ? u : null,
1351
- onInteractOutsideStart: c
1368
+ onInteractOutside: i && o ? s : void 0,
1369
+ onInteractOutsideStart: d
1352
1370
  });
1353
- let { focusWithinProps: f } = kn({
1371
+ let { focusWithinProps: p } = Ln({
1354
1372
  isDisabled: !r,
1355
- onBlurWithin: (b) => {
1356
- !b.relatedTarget || Pn(b.relatedTarget) || (!l || l(b.relatedTarget)) && n();
1373
+ onBlurWithin: ($) => {
1374
+ !$.relatedTarget || Rn($.relatedTarget) || (!l || l($.relatedTarget)) && n?.();
1357
1375
  }
1358
- }), p = (b) => {
1359
- b.target === b.currentTarget && b.preventDefault();
1376
+ }), m = ($) => {
1377
+ N($) === $.currentTarget && $.preventDefault();
1360
1378
  };
1361
1379
  return {
1362
1380
  overlayProps: {
1363
- onKeyDown: d,
1364
- ...f
1381
+ onKeyDown: f,
1382
+ ...p
1365
1383
  },
1366
1384
  underlayProps: {
1367
- onPointerDown: p
1385
+ onPointerDown: m
1368
1386
  }
1369
1387
  };
1370
1388
  }
1371
- function In(e, t, n) {
1389
+ function Hn(e, t, n) {
1372
1390
  let { isOpen: r } = t;
1373
- _(() => {
1374
- n && n.current && Dn.set(n.current, t.close);
1391
+ D(() => {
1392
+ n && n.current && Wn.set(n.current, t.close);
1375
1393
  });
1376
- let o, i = Je();
1394
+ let o, i = Ze();
1377
1395
  return {
1378
1396
  triggerProps: {
1379
1397
  "aria-haspopup": o,
1380
1398
  "aria-expanded": r,
1381
- "aria-controls": r ? i : null,
1399
+ "aria-controls": r ? i : void 0,
1382
1400
  onPress: t.toggle
1383
1401
  },
1384
1402
  overlayProps: {
@@ -1386,168 +1404,225 @@ function In(e, t, n) {
1386
1404
  }
1387
1405
  };
1388
1406
  }
1389
- const $e = typeof document < "u" && window.visualViewport, Wn = /* @__PURE__ */ new Set([
1390
- "checkbox",
1391
- "radio",
1392
- "range",
1393
- "color",
1394
- "file",
1395
- "image",
1396
- "button",
1397
- "submit",
1398
- "reset"
1399
- ]);
1400
- let oe = 0, me;
1407
+ const ee = typeof document < "u" && window.visualViewport;
1408
+ let le = 0, he;
1401
1409
  function Kn(e = {}) {
1402
1410
  let { isDisabled: t } = e;
1403
- g(() => {
1411
+ x(() => {
1404
1412
  if (!t)
1405
- return oe++, oe === 1 && (Qe() ? me = Bn() : me = Vn()), () => {
1406
- oe--, oe === 0 && me();
1413
+ return le++, le === 1 && (nt() ? he = jn() : he = Bn()), () => {
1414
+ le--, le === 0 && he();
1407
1415
  };
1408
1416
  }, [
1409
1417
  t
1410
1418
  ]);
1411
1419
  }
1412
- function Vn() {
1413
- return le(V(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), V(document.documentElement, "overflow", "hidden"));
1414
- }
1415
1420
  function Bn() {
1416
- let e, t, n = (c) => {
1417
- e = tt(c.target, !0), !(e === document.documentElement && e === document.body) && e instanceof HTMLElement && window.getComputedStyle(e).overscrollBehavior === "auto" && (t = V(e, "overscrollBehavior", "contain"));
1418
- }, r = (c) => {
1419
- if (!e || e === document.documentElement || e === document.body) {
1420
- c.preventDefault();
1421
- return;
1421
+ let e = window.innerWidth - document.documentElement.clientWidth;
1422
+ return Le(e > 0 && // Use scrollbar-gutter when supported because it also works for fixed positioned elements.
1423
+ ("scrollbarGutter" in document.documentElement.style ? ce(document.documentElement, "scrollbarGutter", "stable") : ce(document.documentElement, "paddingRight", `${e}px`)), ce(document.documentElement, "overflow", "hidden"));
1424
+ }
1425
+ function jn() {
1426
+ let e = ce(document.documentElement, "overflow", "hidden"), t, n = !1, r = (u) => {
1427
+ let d = N(u);
1428
+ t = ye(d) ? d : it(d, !0), n = !1;
1429
+ let s = d.ownerDocument.defaultView.getSelection();
1430
+ s && !s.isCollapsed && s.containsNode(d, !0) && (n = !0), u.composedPath().some((f) => f instanceof HTMLInputElement && f.type === "range") && (n = !0), "selectionStart" in d && "selectionEnd" in d && d.selectionStart < d.selectionEnd && d.ownerDocument.activeElement === d && (n = !0);
1431
+ }, o = document.createElement("style");
1432
+ o.textContent = `
1433
+ @layer {
1434
+ * {
1435
+ overscroll-behavior: contain;
1436
+ }
1437
+ }`.trim(), document.head.prepend(o);
1438
+ let i = (u) => {
1439
+ if (!(u.touches.length === 2 || n)) {
1440
+ if (!t || t === document.documentElement || t === document.body) {
1441
+ u.preventDefault();
1442
+ return;
1443
+ }
1444
+ t.scrollHeight === t.clientHeight && t.scrollWidth === t.clientWidth && u.preventDefault();
1422
1445
  }
1423
- e.scrollHeight === e.clientHeight && e.scrollWidth === e.clientWidth && c.preventDefault();
1424
- }, o = (c) => {
1425
- let u = c.target;
1426
- He(u) && u !== document.activeElement && (c.preventDefault(), l(), u.style.transform = "translateY(-2000px)", u.focus(), requestAnimationFrame(() => {
1427
- u.style.transform = "";
1428
- })), t && t();
1429
- }, i = (c) => {
1430
- let u = c.target;
1431
- He(u) && (l(), u.style.transform = "translateY(-2000px)", requestAnimationFrame(() => {
1432
- u.style.transform = "", $e && ($e.height < window.innerHeight ? requestAnimationFrame(() => {
1433
- Be(u);
1434
- }) : $e.addEventListener("resize", () => Be(u), {
1435
- once: !0
1436
- }));
1437
- }));
1438
- }, a = null, l = () => {
1439
- if (a) return;
1440
- let c = () => {
1441
- window.scrollTo(0, 0);
1442
- }, u = window.pageXOffset, d = window.pageYOffset;
1443
- a = le(j(window, "scroll", c), V(document.documentElement, "paddingRight", `${window.innerWidth - document.documentElement.clientWidth}px`), V(document.documentElement, "overflow", "hidden"), V(document.body, "marginTop", `-${d}px`), () => {
1444
- window.scrollTo(u, d);
1445
- }), window.scrollTo(0, 0);
1446
- }, s = le(j(document, "touchstart", n, {
1447
- passive: !1,
1448
- capture: !0
1449
- }), j(document, "touchmove", r, {
1446
+ }, a = (u) => {
1447
+ let d = N(u), s = u.relatedTarget;
1448
+ if (s && $e(s))
1449
+ s.focus({
1450
+ preventScroll: !0
1451
+ }), Ge(s, $e(d));
1452
+ else if (!s) {
1453
+ var f;
1454
+ let p = (f = d.parentElement) === null || f === void 0 ? void 0 : f.closest("[tabindex]");
1455
+ p?.focus({
1456
+ preventScroll: !0
1457
+ });
1458
+ }
1459
+ }, l = HTMLElement.prototype.focus;
1460
+ HTMLElement.prototype.focus = function(u) {
1461
+ let d = L(), s = d != null && $e(d);
1462
+ l.call(this, {
1463
+ ...u,
1464
+ preventScroll: !0
1465
+ }), (!u || !u.preventScroll) && Ge(this, s);
1466
+ };
1467
+ let c = Le(Ee(document, "touchstart", r, {
1450
1468
  passive: !1,
1451
1469
  capture: !0
1452
- }), j(document, "touchend", o, {
1470
+ }), Ee(document, "touchmove", i, {
1453
1471
  passive: !1,
1454
1472
  capture: !0
1455
- }), j(document, "focus", i, !0));
1473
+ }), Ee(document, "blur", a, !0));
1456
1474
  return () => {
1457
- t?.(), a?.(), s();
1475
+ e(), c(), o.remove(), HTMLElement.prototype.focus = l;
1458
1476
  };
1459
1477
  }
1460
- function V(e, t, n) {
1478
+ function ce(e, t, n) {
1461
1479
  let r = e.style[t];
1462
1480
  return e.style[t] = n, () => {
1463
1481
  e.style[t] = r;
1464
1482
  };
1465
1483
  }
1466
- function j(e, t, n, r) {
1484
+ function Ee(e, t, n, r) {
1467
1485
  return e.addEventListener(t, n, r), () => {
1468
1486
  e.removeEventListener(t, n, r);
1469
1487
  };
1470
1488
  }
1471
- function Be(e) {
1472
- let t = document.scrollingElement || document.documentElement;
1473
- for (; e && e !== t; ) {
1474
- let n = tt(e);
1475
- if (n !== document.documentElement && n !== document.body && n !== e) {
1476
- let r = n.getBoundingClientRect().top, o = e.getBoundingClientRect().top;
1477
- o > r + e.clientHeight && (n.scrollTop += o - r);
1489
+ function Ge(e, t) {
1490
+ t || !ee ? qe(e) : ee.addEventListener("resize", () => qe(e), {
1491
+ once: !0
1492
+ });
1493
+ }
1494
+ function qe(e) {
1495
+ let t = document.scrollingElement || document.documentElement, n = e;
1496
+ for (; n && n !== t; ) {
1497
+ let r = it(n);
1498
+ if (r !== document.documentElement && r !== document.body && r !== n) {
1499
+ let o = r.getBoundingClientRect(), i = n.getBoundingClientRect();
1500
+ if (i.top < o.top || i.bottom > o.top + n.clientHeight) {
1501
+ let a = o.bottom;
1502
+ ee && (a = Math.min(a, ee.offsetTop + ee.height));
1503
+ let l = i.top - o.top - ((a - o.top) / 2 - i.height / 2);
1504
+ r.scrollTo({
1505
+ // Clamp to the valid range to prevent over-scrolling.
1506
+ top: Math.max(0, Math.min(r.scrollHeight - r.clientHeight, r.scrollTop + l)),
1507
+ behavior: "smooth"
1508
+ });
1509
+ }
1478
1510
  }
1479
- e = n.parentElement;
1511
+ n = r.parentElement;
1480
1512
  }
1481
1513
  }
1482
- function He(e) {
1483
- return e instanceof HTMLInputElement && !Wn.has(e.type) || e instanceof HTMLTextAreaElement || e instanceof HTMLElement && e.isContentEditable;
1484
- }
1485
- let q = /* @__PURE__ */ new WeakMap(), k = [];
1486
- function Hn(e, t = document.body) {
1487
- let n = new Set(e), r = /* @__PURE__ */ new Set(), o = (s) => {
1488
- for (let f of s.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) n.add(f);
1489
- let c = (f) => {
1490
- if (n.has(f) || r.has(f.parentElement) && f.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
1491
- for (let p of n)
1492
- if (f.contains(p)) return NodeFilter.FILTER_SKIP;
1514
+ const Gn = /* @__PURE__ */ kt({});
1515
+ function qn() {
1516
+ var e;
1517
+ return (e = z(Gn)) !== null && e !== void 0 ? e : {};
1518
+ }
1519
+ const Un = typeof HTMLElement < "u" && "inert" in HTMLElement.prototype;
1520
+ let J = /* @__PURE__ */ new WeakMap(), F = [];
1521
+ function zn(e, t) {
1522
+ let n = U(e?.[0]), r = t instanceof n.Element ? {
1523
+ root: t
1524
+ } : t;
1525
+ var o;
1526
+ let i = (o = r?.root) !== null && o !== void 0 ? o : document.body, a = r?.shouldUseInert && Un, l = new Set(e), c = /* @__PURE__ */ new Set(), u = (b) => a && b instanceof n.HTMLElement ? b.inert : b.getAttribute("aria-hidden") === "true", d = (b, h) => {
1527
+ a && b instanceof n.HTMLElement ? b.inert = h : h ? b.setAttribute("aria-hidden", "true") : (b.removeAttribute("aria-hidden"), b instanceof n.HTMLElement && (b.inert = !1));
1528
+ }, s = /* @__PURE__ */ new Set();
1529
+ if (I())
1530
+ for (let b of e) {
1531
+ let h = b;
1532
+ for (; h && h !== i; ) {
1533
+ let E = h.getRootNode();
1534
+ "shadowRoot" in E && s.add(E.shadowRoot), h = E.parentNode;
1535
+ }
1536
+ }
1537
+ let f = (b) => {
1538
+ for (let w of b.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]")) l.add(w);
1539
+ let h = (w) => {
1540
+ if (c.has(w) || l.has(w) || w.parentElement && c.has(w.parentElement) && w.parentElement.getAttribute("role") !== "row") return NodeFilter.FILTER_REJECT;
1541
+ for (let wt of l)
1542
+ if (O(w, wt)) return NodeFilter.FILTER_SKIP;
1493
1543
  return NodeFilter.FILTER_ACCEPT;
1494
- }, u = document.createTreeWalker(s, NodeFilter.SHOW_ELEMENT, {
1495
- acceptNode: c
1496
- }), d = c(s);
1497
- if (d === NodeFilter.FILTER_ACCEPT && i(s), d !== NodeFilter.FILTER_REJECT) {
1498
- let f = u.nextNode();
1499
- for (; f != null; )
1500
- i(f), f = u.nextNode();
1544
+ }, E = Ye(S(b), b, NodeFilter.SHOW_ELEMENT, {
1545
+ acceptNode: h
1546
+ }), A = h(b);
1547
+ if (A === NodeFilter.FILTER_ACCEPT && p(b), A !== NodeFilter.FILTER_REJECT) {
1548
+ let w = E.nextNode();
1549
+ for (; w != null; )
1550
+ p(w), w = E.nextNode();
1501
1551
  }
1502
- }, i = (s) => {
1503
- var c;
1504
- let u = (c = q.get(s)) !== null && c !== void 0 ? c : 0;
1505
- s.getAttribute("aria-hidden") === "true" && u === 0 || (u === 0 && s.setAttribute("aria-hidden", "true"), r.add(s), q.set(s, u + 1));
1552
+ }, p = (b) => {
1553
+ var h;
1554
+ let E = (h = J.get(b)) !== null && h !== void 0 ? h : 0;
1555
+ u(b) && E === 0 || (E === 0 && d(b, !0), c.add(b), J.set(b, E + 1));
1506
1556
  };
1507
- k.length && k[k.length - 1].disconnect(), o(t);
1508
- let a = new MutationObserver((s) => {
1509
- for (let c of s)
1510
- if (!(c.type !== "childList" || c.addedNodes.length === 0) && ![
1511
- ...n,
1512
- ...r
1513
- ].some((u) => u.contains(c.target))) {
1514
- for (let u of c.removedNodes) u instanceof Element && (n.delete(u), r.delete(u));
1515
- for (let u of c.addedNodes)
1516
- (u instanceof HTMLElement || u instanceof SVGElement) && (u.dataset.liveAnnouncer === "true" || u.dataset.reactAriaTopLayer === "true") ? n.add(u) : u instanceof Element && o(u);
1557
+ F.length && F[F.length - 1].disconnect(), f(i);
1558
+ let m = new MutationObserver((b) => {
1559
+ for (let h of b)
1560
+ if (h.type === "childList") {
1561
+ if (h.target.isConnected && ![
1562
+ ...l,
1563
+ ...c
1564
+ ].some((E) => O(E, h.target))) for (let E of h.addedNodes)
1565
+ (E instanceof HTMLElement || E instanceof SVGElement) && (E.dataset.liveAnnouncer === "true" || E.dataset.reactAriaTopLayer === "true") ? l.add(E) : E instanceof Element && f(E);
1566
+ if (I()) {
1567
+ for (let E of s) if (!E.isConnected) {
1568
+ m.disconnect();
1569
+ break;
1570
+ }
1571
+ }
1517
1572
  }
1518
1573
  });
1519
- a.observe(t, {
1574
+ m.observe(i, {
1520
1575
  childList: !0,
1521
1576
  subtree: !0
1522
1577
  });
1523
- let l = {
1578
+ let $ = /* @__PURE__ */ new Set();
1579
+ if (I()) for (let b of s) {
1580
+ let h = new MutationObserver((E) => {
1581
+ for (let A of E)
1582
+ if (A.type === "childList") {
1583
+ if (A.target.isConnected && ![
1584
+ ...l,
1585
+ ...c
1586
+ ].some((w) => O(w, A.target))) for (let w of A.addedNodes)
1587
+ (w instanceof HTMLElement || w instanceof SVGElement) && (w.dataset.liveAnnouncer === "true" || w.dataset.reactAriaTopLayer === "true") ? l.add(w) : w instanceof Element && f(w);
1588
+ if (I()) {
1589
+ for (let w of s) if (!w.isConnected) {
1590
+ m.disconnect();
1591
+ break;
1592
+ }
1593
+ }
1594
+ }
1595
+ });
1596
+ h.observe(b, {
1597
+ childList: !0,
1598
+ subtree: !0
1599
+ }), $.add(h);
1600
+ }
1601
+ let C = {
1602
+ visibleNodes: l,
1603
+ hiddenNodes: c,
1524
1604
  observe() {
1525
- a.observe(t, {
1605
+ m.observe(i, {
1526
1606
  childList: !0,
1527
1607
  subtree: !0
1528
1608
  });
1529
1609
  },
1530
1610
  disconnect() {
1531
- a.disconnect();
1611
+ m.disconnect();
1532
1612
  }
1533
1613
  };
1534
- return k.push(l), () => {
1535
- a.disconnect();
1536
- for (let s of r) {
1537
- let c = q.get(s);
1538
- c === 1 ? (s.removeAttribute("aria-hidden"), q.delete(s)) : q.set(s, c - 1);
1614
+ return F.push(C), () => {
1615
+ if (m.disconnect(), I()) for (let b of $) b.disconnect();
1616
+ for (let b of c) {
1617
+ let h = J.get(b);
1618
+ h != null && (h === 1 ? (d(b, !1), J.delete(b)) : J.set(b, h - 1));
1539
1619
  }
1540
- l === k[k.length - 1] ? (k.pop(), k.length && k[k.length - 1].observe()) : k.splice(k.indexOf(l), 1);
1620
+ C === F[F.length - 1] ? (F.pop(), F.length && F[F.length - 1].observe()) : F.splice(F.indexOf(C), 1);
1541
1621
  };
1542
1622
  }
1543
- const jn = /* @__PURE__ */ yt({});
1544
- function qn() {
1545
- var e;
1546
- return (e = H(jn)) !== null && e !== void 0 ? e : {};
1547
- }
1548
- const ft = /* @__PURE__ */ m.createContext(null);
1549
- function Gn(e) {
1550
- let t = Ue(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, i] = Z(!1), a = U(() => ({
1623
+ const $t = /* @__PURE__ */ y.createContext(null);
1624
+ function Jn(e) {
1625
+ let t = Qe(), { portalContainer: n = t ? null : document.body, isExiting: r } = e, [o, i] = re(!1), a = Z(() => ({
1551
1626
  contain: o,
1552
1627
  setContain: i
1553
1628
  }), [
@@ -1555,51 +1630,53 @@ function Gn(e) {
1555
1630
  i
1556
1631
  ]), { getContainer: l } = qn();
1557
1632
  if (!e.portalContainer && l && (n = l()), !n) return null;
1558
- let s = e.children;
1559
- return e.disableFocusManagement || (s = /* @__PURE__ */ m.createElement(xn, {
1633
+ let c = e.children;
1634
+ return e.disableFocusManagement || (c = /* @__PURE__ */ y.createElement(_n, {
1560
1635
  restoreFocus: !0,
1561
- contain: o && !r
1562
- }, s)), s = /* @__PURE__ */ m.createElement(ft.Provider, {
1636
+ contain: (e.shouldContainFocus || o) && !r
1637
+ }, c)), c = /* @__PURE__ */ y.createElement($t.Provider, {
1563
1638
  value: a
1564
- }, /* @__PURE__ */ m.createElement(Nn, null, s)), /* @__PURE__ */ Tt.createPortal(s, n);
1639
+ }, /* @__PURE__ */ y.createElement(xn, null, c)), /* @__PURE__ */ St.createPortal(c, n);
1565
1640
  }
1566
- function pt() {
1567
- let e = H(ft), t = e?.setContain;
1568
- g(() => {
1641
+ function mt() {
1642
+ let e = z($t), t = e?.setContain;
1643
+ x(() => {
1569
1644
  t?.(!0);
1570
1645
  }, [
1571
1646
  t
1572
1647
  ]);
1573
1648
  }
1574
- function zn(e, t, n) {
1575
- let { overlayProps: r, underlayProps: o } = An({
1649
+ function Xn(e, t, n) {
1650
+ let { overlayProps: r, underlayProps: o } = Vn({
1576
1651
  ...e,
1577
1652
  isOpen: t.isOpen,
1578
1653
  onClose: t.close
1579
1654
  }, n);
1580
1655
  return Kn({
1581
1656
  isDisabled: !t.isOpen
1582
- }), pt(), _(() => {
1583
- if (t.isOpen) return Hn([
1657
+ }), mt(), D(() => {
1658
+ if (t.isOpen && n.current) return zn([
1584
1659
  n.current
1585
- ]);
1660
+ ], {
1661
+ shouldUseInert: !0
1662
+ });
1586
1663
  }, [
1587
1664
  t.isOpen,
1588
1665
  n
1589
1666
  ]), {
1590
- modalProps: jt(r),
1667
+ modalProps: qt(r),
1591
1668
  underlayProps: o
1592
1669
  };
1593
1670
  }
1594
- function Un(e, t) {
1595
- let { role: n = "dialog" } = e, r = Dt();
1671
+ function Qn(e, t) {
1672
+ let { role: n = "dialog" } = e, r = Wt();
1596
1673
  r = e["aria-label"] ? void 0 : r;
1597
- let o = h(!1);
1598
- return _(() => {
1674
+ let o = T(!1);
1675
+ return D(() => {
1599
1676
  if (t.current && !t.current.contains(document.activeElement)) {
1600
- ge(t.current);
1677
+ Ne(t.current);
1601
1678
  let i = setTimeout(() => {
1602
- document.activeElement === t.current && (o.current = !0, t.current && (t.current.blur(), ge(t.current)), o.current = !1);
1679
+ document.activeElement === t.current && (o.current = !0, t.current && (t.current.blur(), Ne(t.current)), o.current = !1);
1603
1680
  }, 500);
1604
1681
  return () => {
1605
1682
  clearTimeout(i);
@@ -1607,9 +1684,9 @@ function Un(e, t) {
1607
1684
  }
1608
1685
  }, [
1609
1686
  t
1610
- ]), pt(), {
1687
+ ]), mt(), {
1611
1688
  dialogProps: {
1612
- ...Xt(e, {
1689
+ ...Zt(e, {
1613
1690
  labelable: !0
1614
1691
  }),
1615
1692
  role: n,
@@ -1627,7 +1704,7 @@ function Un(e, t) {
1627
1704
  }
1628
1705
  };
1629
1706
  }
1630
- function Jn(e, t, n) {
1707
+ function Zn(e, t, n) {
1631
1708
  return t in e ? Object.defineProperty(e, t, {
1632
1709
  value: n,
1633
1710
  enumerable: !0,
@@ -1635,7 +1712,7 @@ function Jn(e, t, n) {
1635
1712
  writable: !0
1636
1713
  }) : e[t] = n, e;
1637
1714
  }
1638
- function je(e, t) {
1715
+ function Ue(e, t) {
1639
1716
  var n = Object.keys(e);
1640
1717
  if (Object.getOwnPropertySymbols) {
1641
1718
  var r = Object.getOwnPropertySymbols(e);
@@ -1645,51 +1722,51 @@ function je(e, t) {
1645
1722
  }
1646
1723
  return n;
1647
1724
  }
1648
- function qe(e) {
1725
+ function ze(e) {
1649
1726
  for (var t = 1; t < arguments.length; t++) {
1650
1727
  var n = arguments[t] != null ? arguments[t] : {};
1651
- t % 2 ? je(Object(n), !0).forEach(function(r) {
1652
- Jn(e, r, n[r]);
1653
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : je(Object(n)).forEach(function(r) {
1728
+ t % 2 ? Ue(Object(n), !0).forEach(function(r) {
1729
+ Zn(e, r, n[r]);
1730
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : Ue(Object(n)).forEach(function(r) {
1654
1731
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
1655
1732
  });
1656
1733
  }
1657
1734
  return e;
1658
1735
  }
1659
- var Xn = (e, t, n) => {
1736
+ var Yn = (e, t, n) => {
1660
1737
  for (var r of Object.keys(e)) {
1661
1738
  var o;
1662
1739
  if (e[r] !== ((o = t[r]) !== null && o !== void 0 ? o : n[r]))
1663
1740
  return !1;
1664
1741
  }
1665
1742
  return !0;
1666
- }, Yn = (e) => (t) => {
1667
- var n = e.defaultClassName, r = qe(qe({}, e.defaultVariants), t);
1743
+ }, er = (e) => (t) => {
1744
+ var n = e.defaultClassName, r = ze(ze({}, e.defaultVariants), t);
1668
1745
  for (var o in r) {
1669
1746
  var i, a = (i = r[o]) !== null && i !== void 0 ? i : e.defaultVariants[o];
1670
1747
  if (a != null) {
1671
1748
  var l = a;
1672
1749
  typeof l == "boolean" && (l = l === !0 ? "true" : "false");
1673
- var s = (
1750
+ var c = (
1674
1751
  // @ts-expect-error
1675
1752
  e.variantClassNames[o][l]
1676
1753
  );
1677
- s && (n += " " + s);
1754
+ c && (n += " " + c);
1678
1755
  }
1679
1756
  }
1680
- for (var [c, u] of e.compoundVariants)
1681
- Xn(c, r, e.defaultVariants) && (n += " " + u);
1757
+ for (var [u, d] of e.compoundVariants)
1758
+ Yn(u, r, e.defaultVariants) && (n += " " + d);
1682
1759
  return n;
1683
- }, Qn = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq0", Zn = Yn({ defaultClassName: "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq2", false: "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq3" } }, defaultVariants: {}, compoundVariants: [] }), er = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq4", tr = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq5", nr = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq7", rr = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq8", or = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psq9", ir = "pkg_sps-woodland_focused-task__version_8_45_3__hash_1io4psqa";
1684
- function vt({
1760
+ }, tr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq0", nr = er({ defaultClassName: "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq1", variantClassNames: { fullWidth: { true: "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq2", false: "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq3" } }, defaultVariants: {}, compoundVariants: [] }), rr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq4", or = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq5", ir = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq7", ar = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq8", lr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psq9", sr = "pkg_sps-woodland_focused-task__version_8_45_5__hash_1io4psqa";
1761
+ function ht({
1685
1762
  children: e,
1686
1763
  className: t = "",
1687
1764
  ...n
1688
1765
  }) {
1689
- return /* @__PURE__ */ v.createElement("div", { className: ie(rr, t), ...n }, /* @__PURE__ */ v.createElement("div", { className: ie(or) }, /* @__PURE__ */ v.createElement("div", { className: ie(ir) }, e)));
1766
+ return /* @__PURE__ */ v.createElement("div", { className: se(ar, t), ...n }, /* @__PURE__ */ v.createElement("div", { className: se(lr) }, /* @__PURE__ */ v.createElement("div", { className: se(sr) }, e)));
1690
1767
  }
1691
- Ge.set(vt, { name: "FocusedTaskActions" });
1692
- function ar({
1768
+ Je.set(ht, { name: "FocusedTaskActions" });
1769
+ function cr({
1693
1770
  children: e,
1694
1771
  className: t,
1695
1772
  "data-testid": n,
@@ -1698,48 +1775,48 @@ function ar({
1698
1775
  overlayProps: i,
1699
1776
  state: a,
1700
1777
  onClose: l,
1701
- fullWidth: s = !1,
1702
- ...c
1778
+ fullWidth: c = !1,
1779
+ ...u
1703
1780
  }) {
1704
- const u = v.useRef(null), { modalProps: d, underlayProps: f } = zn(
1705
- { ...c },
1781
+ const d = v.useRef(null), { modalProps: s, underlayProps: f } = Xn(
1782
+ { ...u },
1706
1783
  a,
1707
- u
1708
- ), { dialogProps: p, titleProps: b } = Un(c, u), L = Ce(d.onFocus, p.onFocus, o), A = Ce(d.onBlur, p.onBlur, r), te = ht({ "data-testid": n }), [K, fe] = Et(e, [{ type: vt }]);
1709
- function $t() {
1784
+ d
1785
+ ), { dialogProps: p, titleProps: m } = Qn(u, d), $ = Me(s.onFocus, p.onFocus, o), C = Me(s.onBlur, p.onBlur, r), b = gt({ "data-testid": n }), [h, E] = yt(e, [{ type: ht }]);
1786
+ function A() {
1710
1787
  l && typeof l == "function" && l(), a.close();
1711
1788
  }
1712
- const mt = /* @__PURE__ */ v.createElement(
1713
- wt,
1789
+ const w = /* @__PURE__ */ v.createElement(
1790
+ Tt,
1714
1791
  {
1715
1792
  "aria-label": "Close",
1716
- onClick: $t,
1793
+ onClick: A,
1717
1794
  kind: "icon",
1718
1795
  icon: "x",
1719
- className: tr
1796
+ className: or
1720
1797
  }
1721
1798
  );
1722
- return /* @__PURE__ */ v.createElement(Gn, null, /* @__PURE__ */ v.createElement("div", { className: nr, ...f, ...c }, /* @__PURE__ */ v.createElement(
1799
+ return /* @__PURE__ */ v.createElement(Jn, null, /* @__PURE__ */ v.createElement("div", { className: ir, ...f, ...u }, /* @__PURE__ */ v.createElement(
1723
1800
  "div",
1724
1801
  {
1725
- ...d,
1802
+ ...s,
1726
1803
  ...p,
1727
1804
  ...i,
1728
- onFocus: L,
1729
- onBlur: A,
1730
- ...te("dialog"),
1731
- ref: u,
1732
- className: ie(Qn, t)
1805
+ onFocus: $,
1806
+ onBlur: C,
1807
+ ...b("dialog"),
1808
+ ref: d,
1809
+ className: se(tr, t)
1733
1810
  },
1734
- /* @__PURE__ */ v.createElement("div", { ...b, className: er }, mt),
1735
- /* @__PURE__ */ v.createElement("div", { className: Zn({ fullWidth: s }) }, Fe(fe, a.close)),
1736
- K && K.length > 0 && /* @__PURE__ */ v.createElement(v.Fragment, null, Fe(K, a.close))
1811
+ /* @__PURE__ */ v.createElement("div", { ...m, className: rr }, w),
1812
+ /* @__PURE__ */ v.createElement("div", { className: nr({ fullWidth: c }) }, Re(E, a.close)),
1813
+ h && h.length > 0 && /* @__PURE__ */ v.createElement(v.Fragment, null, Re(h, a.close))
1737
1814
  )));
1738
1815
  }
1739
- function bt(e) {
1740
- return e.state.isOpen ? /* @__PURE__ */ v.createElement(ar, { ...e }, e.children) : /* @__PURE__ */ v.createElement(v.Fragment, null);
1816
+ function Et(e) {
1817
+ return e.state.isOpen ? /* @__PURE__ */ v.createElement(cr, { ...e }, e.children) : /* @__PURE__ */ v.createElement(v.Fragment, null);
1741
1818
  }
1742
- Ge.set(bt, {
1819
+ Je.set(Et, {
1743
1820
  name: "FocusedTask",
1744
1821
  props: {
1745
1822
  fullWidth: { type: "boolean", default: "false" },
@@ -1748,17 +1825,17 @@ Ge.set(bt, {
1748
1825
  onFocus: { type: "() => void" }
1749
1826
  }
1750
1827
  });
1751
- function lr(e) {
1752
- let [t, n] = mn(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
1753
- const r = N(() => {
1828
+ function ur(e) {
1829
+ let [t, n] = wn(e.isOpen, e.defaultOpen || !1, e.onOpenChange);
1830
+ const r = _(() => {
1754
1831
  n(!0);
1755
1832
  }, [
1756
1833
  n
1757
- ]), o = N(() => {
1834
+ ]), o = _(() => {
1758
1835
  n(!1);
1759
1836
  }, [
1760
1837
  n
1761
- ]), i = N(() => {
1838
+ ]), i = _(() => {
1762
1839
  n(!t);
1763
1840
  }, [
1764
1841
  n,
@@ -1772,8 +1849,8 @@ function lr(e) {
1772
1849
  toggle: i
1773
1850
  };
1774
1851
  }
1775
- function vr(e = {}) {
1776
- const t = lr(e), n = h(null), { triggerProps: r, overlayProps: o } = In({}, t, n), { onPress: i, ...a } = r;
1852
+ function mr(e = {}) {
1853
+ const t = ur(e), n = T(null), { triggerProps: r, overlayProps: o } = Hn({}, t, n), { onPress: i, ...a } = r;
1777
1854
  return {
1778
1855
  triggerProps: {
1779
1856
  ...a,
@@ -1785,8 +1862,8 @@ function vr(e = {}) {
1785
1862
  focusedTaskProps: { overlayProps: o, state: t }
1786
1863
  };
1787
1864
  }
1788
- const sr = {
1789
- components: [bt],
1865
+ const dr = {
1866
+ components: [Et],
1790
1867
  examples: {
1791
1868
  hooks: {
1792
1869
  label: "Using the Hook",
@@ -1796,7 +1873,7 @@ const sr = {
1796
1873
  label: "Standard",
1797
1874
  examples: {
1798
1875
  basic: {
1799
- react: Pe`
1876
+ react: De`
1800
1877
  import { FocusedTask, FocusedTaskActions, useFocusedTask } from "@sps-woodland/focused-task";
1801
1878
  import { Button } from "@sps-woodland/buttons";
1802
1879
  import { Card } from "@sps-woodland/cards";
@@ -1842,7 +1919,7 @@ const sr = {
1842
1919
  label: "Fill Width",
1843
1920
  examples: {
1844
1921
  basic: {
1845
- react: Pe`
1922
+ react: De`
1846
1923
  import { FocusedTask, FocusedTaskActions, useFocusedTask } from "@sps-woodland/focused-task";
1847
1924
  import { Button } from "@sps-woodland/buttons";
1848
1925
  import { Card } from "@sps-woodland/cards";
@@ -1886,12 +1963,12 @@ const sr = {
1886
1963
  }
1887
1964
  }
1888
1965
  }
1889
- }, br = {
1890
- "Focused Task": sr
1966
+ }, hr = {
1967
+ "Focused Task": dr
1891
1968
  };
1892
1969
  export {
1893
- bt as FocusedTask,
1894
- vt as FocusedTaskActions,
1895
- br as MANIFEST,
1896
- vr as useFocusedTask
1970
+ Et as FocusedTask,
1971
+ ht as FocusedTaskActions,
1972
+ hr as MANIFEST,
1973
+ mr as useFocusedTask
1897
1974
  };