@inertiaui/modal-react 0.6.1 → 0.6.2

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.
@@ -1,11 +1,11 @@
1
1
  var Fo = Object.defineProperty;
2
2
  var Co = (t, e, r) => e in t ? Fo(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ye = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
3
+ var ce = (t, e, r) => Co(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import * as ht from "react";
5
- import A, { createContext as ce, useState as Q, useEffect as K, useContext as ie, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Io, useRef as j, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Ot, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
5
+ import A, { createContext as fe, useState as Q, useEffect as Y, useContext as ie, useRef as k, createElement as Pr, useMemo as J, forwardRef as Hr, useImperativeHandle as na, useLayoutEffect as Io, useCallback as ve, Fragment as he, isValidElement as Mo, cloneElement as _o, useId as Ot, useSyncExternalStore as Do, useReducer as No, createRef as ko } from "react";
6
6
  import jt from "axios";
7
- import { router as vt } from "@inertiajs/react";
8
- import { createPortal as jo } from "react-dom";
7
+ import { router as vt, usePage as jo } from "@inertiajs/react";
8
+ import { createPortal as Lo } from "react-dom";
9
9
  const ct = {
10
10
  type: "modal",
11
11
  navigate: !1,
@@ -26,7 +26,7 @@ const ct = {
26
26
  position: "right"
27
27
  }
28
28
  };
29
- class Lo {
29
+ class Wo {
30
30
  constructor() {
31
31
  this.config = {}, this.reset();
32
32
  }
@@ -62,12 +62,12 @@ class Lo {
62
62
  return n;
63
63
  }
64
64
  }
65
- const Yt = new Lo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
65
+ const Yt = new Wo(), Oc = () => Yt.reset(), Pc = (t, e) => Yt.put(t, e), Vr = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
66
66
  var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
67
- function Wo(t) {
67
+ function Uo(t) {
68
68
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
69
69
  }
70
- function Uo(t) {
70
+ function Bo(t) {
71
71
  if (t.__esModule) return t;
72
72
  var e = t.default;
73
73
  if (typeof e == "function") {
@@ -97,16 +97,16 @@ var Tr = { exports: {} }, ft = {};
97
97
  * LICENSE file in the root directory of this source tree.
98
98
  */
99
99
  var wn;
100
- function Bo() {
100
+ function Ho() {
101
101
  if (wn) return ft;
102
102
  wn = 1;
103
103
  var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
104
- function l(u, i, d) {
105
- var s, g = {}, v = null, w = null;
106
- d !== void 0 && (v = "" + d), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
107
- for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (g[s] = i[s]);
108
- if (u && u.defaultProps) for (s in i = u.defaultProps, i) g[s] === void 0 && (g[s] = i[s]);
109
- return { $$typeof: e, type: u, key: v, ref: w, props: g, _owner: a.current };
104
+ function l(u, i, f) {
105
+ var s, h = {}, v = null, w = null;
106
+ f !== void 0 && (v = "" + f), i.key !== void 0 && (v = "" + i.key), i.ref !== void 0 && (w = i.ref);
107
+ for (s in i) n.call(i, s) && !o.hasOwnProperty(s) && (h[s] = i[s]);
108
+ if (u && u.defaultProps) for (s in i = u.defaultProps, i) h[s] === void 0 && (h[s] = i[s]);
109
+ return { $$typeof: e, type: u, key: v, ref: w, props: h, _owner: a.current };
110
110
  }
111
111
  return ft.Fragment = r, ft.jsx = l, ft.jsxs = l, ft;
112
112
  }
@@ -121,17 +121,17 @@ var dt = {};
121
121
  * LICENSE file in the root directory of this source tree.
122
122
  */
123
123
  var En;
124
- function Ho() {
124
+ function Vo() {
125
125
  return En || (En = 1, process.env.NODE_ENV !== "production" && function() {
126
- var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
126
+ var t = A, e = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), i = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), s = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), d = Symbol.iterator, y = "@@iterator";
127
127
  function p(c) {
128
128
  if (c === null || typeof c != "object")
129
129
  return null;
130
- var E = f && c[f] || c[y];
130
+ var E = d && c[d] || c[y];
131
131
  return typeof E == "function" ? E : null;
132
132
  }
133
133
  var m = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
134
- function h(c) {
134
+ function g(c) {
135
135
  {
136
136
  for (var E = arguments.length, x = new Array(E > 1 ? E - 1 : 0), P = 1; P < E; P++)
137
137
  x[P - 1] = arguments[P];
@@ -150,14 +150,14 @@ function Ho() {
150
150
  }
151
151
  var S = !1, O = !1, _ = !1, M = !1, W = !1, H;
152
152
  H = Symbol.for("react.module.reference");
153
- function k(c) {
154
- return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === d || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === g || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
153
+ function j(c) {
154
+ return !!(typeof c == "string" || typeof c == "function" || c === n || c === o || W || c === a || c === f || c === s || M || c === w || S || O || _ || typeof c == "object" && c !== null && (c.$$typeof === v || c.$$typeof === h || c.$$typeof === l || c.$$typeof === u || c.$$typeof === i || // This needs to include all possible module reference object
155
155
  // types supported by any Flight configuration anywhere since
156
156
  // we don't know which Flight build this will end up being used
157
157
  // with.
158
158
  c.$$typeof === H || c.getModuleId !== void 0));
159
159
  }
160
- function Y(c, E, x) {
160
+ function z(c, E, x) {
161
161
  var P = c.displayName;
162
162
  if (P)
163
163
  return P;
@@ -170,7 +170,7 @@ function Ho() {
170
170
  function $(c) {
171
171
  if (c == null)
172
172
  return null;
173
- if (typeof c.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
173
+ if (typeof c.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof c == "function")
174
174
  return c.displayName || c.name || null;
175
175
  if (typeof c == "string")
176
176
  return c;
@@ -183,7 +183,7 @@ function Ho() {
183
183
  return "Profiler";
184
184
  case a:
185
185
  return "StrictMode";
186
- case d:
186
+ case f:
187
187
  return "Suspense";
188
188
  case s:
189
189
  return "SuspenseList";
@@ -197,8 +197,8 @@ function Ho() {
197
197
  var x = c;
198
198
  return V(x._context) + ".Provider";
199
199
  case i:
200
- return Y(c, c.render, "ForwardRef");
201
- case g:
200
+ return z(c, c.render, "ForwardRef");
201
+ case h:
202
202
  var P = c.displayName || null;
203
203
  return P !== null ? P : $(c.type) || "Memo";
204
204
  case v: {
@@ -212,14 +212,14 @@ function Ho() {
212
212
  }
213
213
  return null;
214
214
  }
215
- var T = Object.assign, D = 0, ue, de, ge, te, pe, q, _e;
215
+ var T = Object.assign, D = 0, ue, pe, ge, te, ye, q, _e;
216
216
  function ee() {
217
217
  }
218
218
  ee.__reactDisabledLog = !0;
219
219
  function ar() {
220
220
  {
221
221
  if (D === 0) {
222
- ue = console.log, de = console.info, ge = console.warn, te = console.error, pe = console.group, q = console.groupCollapsed, _e = console.groupEnd;
222
+ ue = console.log, pe = console.info, ge = console.warn, te = console.error, ye = console.group, q = console.groupCollapsed, _e = console.groupEnd;
223
223
  var c = {
224
224
  configurable: !0,
225
225
  enumerable: !0,
@@ -252,7 +252,7 @@ function Ho() {
252
252
  value: ue
253
253
  }),
254
254
  info: T({}, c, {
255
- value: de
255
+ value: pe
256
256
  }),
257
257
  warn: T({}, c, {
258
258
  value: ge
@@ -261,7 +261,7 @@ function Ho() {
261
261
  value: te
262
262
  }),
263
263
  group: T({}, c, {
264
- value: pe
264
+ value: ye
265
265
  }),
266
266
  groupCollapsed: T({}, c, {
267
267
  value: q
@@ -271,7 +271,7 @@ function Ho() {
271
271
  })
272
272
  });
273
273
  }
274
- D < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
274
+ D < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
275
275
  }
276
276
  }
277
277
  var lt = m.ReactCurrentDispatcher, Ne;
@@ -343,18 +343,18 @@ function Ho() {
343
343
  if (oe && P && typeof oe.stack == "string") {
344
344
  for (var F = oe.stack.split(`
345
345
  `), ne = P.stack.split(`
346
- `), G = F.length - 1, z = ne.length - 1; G >= 1 && z >= 0 && F[G] !== ne[z]; )
347
- z--;
348
- for (; G >= 1 && z >= 0; G--, z--)
349
- if (F[G] !== ne[z]) {
350
- if (G !== 1 || z !== 1)
346
+ `), G = F.length - 1, K = ne.length - 1; G >= 1 && K >= 0 && F[G] !== ne[K]; )
347
+ K--;
348
+ for (; G >= 1 && K >= 0; G--, K--)
349
+ if (F[G] !== ne[K]) {
350
+ if (G !== 1 || K !== 1)
351
351
  do
352
- if (G--, z--, z < 0 || F[G] !== ne[z]) {
352
+ if (G--, K--, K < 0 || F[G] !== ne[K]) {
353
353
  var se = `
354
354
  ` + F[G].replace(" at new ", " at ");
355
355
  return c.displayName && se.includes("<anonymous>") && (se = se.replace("<anonymous>", c.displayName)), typeof c == "function" && Rt.set(c, se), se;
356
356
  }
357
- while (G >= 1 && z >= 0);
357
+ while (G >= 1 && K >= 0);
358
358
  break;
359
359
  }
360
360
  }
@@ -379,7 +379,7 @@ function Ho() {
379
379
  if (typeof c == "string")
380
380
  return xe(c);
381
381
  switch (c) {
382
- case d:
382
+ case f:
383
383
  return xe("Suspense");
384
384
  case s:
385
385
  return xe("SuspenseList");
@@ -388,7 +388,7 @@ function Ho() {
388
388
  switch (c.$$typeof) {
389
389
  case i:
390
390
  return oo(c.render);
391
- case g:
391
+ case h:
392
392
  return Ft(c.type, E, x);
393
393
  case v: {
394
394
  var P = c, N = P._payload, L = P._init;
@@ -423,7 +423,7 @@ function Ho() {
423
423
  } catch (G) {
424
424
  F = G;
425
425
  }
426
- F && !(F instanceof Error) && (Ct(N), h("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x, I, typeof F), Ct(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ct(N), h("Failed %s type: %s", x, F.message), Ct(null));
426
+ F && !(F instanceof Error) && (Ct(N), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", P || "React class", x, I, typeof F), Ct(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ct(N), g("Failed %s type: %s", x, F.message), Ct(null));
427
427
  }
428
428
  }
429
429
  }
@@ -449,7 +449,7 @@ function Ho() {
449
449
  }
450
450
  function cn(c) {
451
451
  if (co(c))
452
- return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), sn(c);
452
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", so(c)), sn(c);
453
453
  }
454
454
  var st = m.ReactCurrentOwner, fo = {
455
455
  key: !0,
@@ -477,13 +477,13 @@ function Ho() {
477
477
  function vo(c, E) {
478
478
  if (typeof c.ref == "string" && st.current && E && st.current.stateNode !== E) {
479
479
  var x = $(st.current.type);
480
- ir[x] || (h('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(st.current.type), c.ref), ir[x] = !0);
480
+ ir[x] || (g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $(st.current.type), c.ref), ir[x] = !0);
481
481
  }
482
482
  }
483
483
  function mo(c, E) {
484
484
  {
485
485
  var x = function() {
486
- fn || (fn = !0, h("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
486
+ fn || (fn = !0, g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
487
487
  };
488
488
  x.isReactWarning = !0, Object.defineProperty(c, "key", {
489
489
  get: x,
@@ -494,7 +494,7 @@ function Ho() {
494
494
  function ho(c, E) {
495
495
  {
496
496
  var x = function() {
497
- dn || (dn = !0, h("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
497
+ dn || (dn = !0, g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", E));
498
498
  };
499
499
  x.isReactWarning = !0, Object.defineProperty(c, "ref", {
500
500
  get: x,
@@ -543,8 +543,8 @@ function Ho() {
543
543
  I[L] === void 0 && (I[L] = G[L]);
544
544
  }
545
545
  if (F || ne) {
546
- var z = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
547
- F && mo(I, z), ne && ho(I, z);
546
+ var K = typeof c == "function" ? c.displayName || c.name || "Unknown" : c;
547
+ F && mo(I, K), ne && ho(I, K);
548
548
  }
549
549
  return go(c, F, ne, N, P, st.current, I);
550
550
  }
@@ -600,7 +600,7 @@ Check the top-level render call using <` + x + ">.");
600
600
  return;
601
601
  vn[x] = !0;
602
602
  var P = "";
603
- c && c._owner && c._owner !== lr.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
603
+ c && c._owner && c._owner !== lr.current && (P = " It was passed a child from " + $(c._owner.type) + "."), Ge(c), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', x, P), Ge(null);
604
604
  }
605
605
  }
606
606
  function hn(c, E) {
@@ -632,7 +632,7 @@ Check the top-level render call using <` + x + ">.");
632
632
  x = E.propTypes;
633
633
  else if (typeof E == "object" && (E.$$typeof === i || // Note: Memo only checks outer props here.
634
634
  // Inner props are checked in the reconciler.
635
- E.$$typeof === g))
635
+ E.$$typeof === h))
636
636
  x = E.propTypes;
637
637
  else
638
638
  return;
@@ -642,9 +642,9 @@ Check the top-level render call using <` + x + ">.");
642
642
  } else if (E.PropTypes !== void 0 && !ur) {
643
643
  ur = !0;
644
644
  var N = $(E);
645
- h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
645
+ g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
646
646
  }
647
- typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
647
+ typeof E.getDefaultProps == "function" && !E.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
648
648
  }
649
649
  }
650
650
  function xo(c) {
@@ -652,28 +652,28 @@ Check the top-level render call using <` + x + ">.");
652
652
  for (var E = Object.keys(c.props), x = 0; x < E.length; x++) {
653
653
  var P = E[x];
654
654
  if (P !== "children" && P !== "key") {
655
- Ge(c), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
655
+ Ge(c), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", P), Ge(null);
656
656
  break;
657
657
  }
658
658
  }
659
- c.ref !== null && (Ge(c), h("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
659
+ c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
660
660
  }
661
661
  }
662
662
  var gn = {};
663
663
  function bn(c, E, x, P, N, L) {
664
664
  {
665
- var I = k(c);
665
+ var I = j(c);
666
666
  if (!I) {
667
667
  var F = "";
668
668
  (c === void 0 || typeof c == "object" && c !== null && Object.keys(c).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
669
669
  var ne = wo();
670
670
  ne ? F += ne : F += yn();
671
671
  var G;
672
- c === null ? G = "null" : or(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
672
+ c === null ? G = "null" : or(c) ? G = "array" : c !== void 0 && c.$$typeof === e ? (G = "<" + ($(c.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : G = typeof c, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", G, F);
673
673
  }
674
- var z = bo(c, E, x, N, L);
675
- if (z == null)
676
- return z;
674
+ var K = bo(c, E, x, N, L);
675
+ if (K == null)
676
+ return K;
677
677
  if (I) {
678
678
  var se = E.children;
679
679
  if (se !== void 0)
@@ -683,7 +683,7 @@ Check the top-level render call using <` + x + ">.");
683
683
  hn(se[Ye], c);
684
684
  Object.freeze && Object.freeze(se);
685
685
  } else
686
- h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
686
+ g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
687
687
  else
688
688
  hn(se, c);
689
689
  }
@@ -693,7 +693,7 @@ Check the top-level render call using <` + x + ">.");
693
693
  }), cr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
694
694
  if (!gn[ke + cr]) {
695
695
  var $o = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
696
- h(`A props object containing a "key" prop is being spread into JSX:
696
+ g(`A props object containing a "key" prop is being spread into JSX:
697
697
  let props = %s;
698
698
  <%s {...props} />
699
699
  React keys must be passed directly to JSX without using spread:
@@ -701,7 +701,7 @@ React keys must be passed directly to JSX without using spread:
701
701
  <%s key={someKey} {...props} />`, cr, ke, $o, ke), gn[ke + cr] = !0;
702
702
  }
703
703
  }
704
- return c === n ? xo(z) : So(z), z;
704
+ return c === n ? xo(K) : So(K), K;
705
705
  }
706
706
  }
707
707
  function Oo(c, E, x) {
@@ -714,18 +714,18 @@ React keys must be passed directly to JSX without using spread:
714
714
  dt.Fragment = n, dt.jsx = Ao, dt.jsxs = To;
715
715
  }()), dt;
716
716
  }
717
- process.env.NODE_ENV === "production" ? Tr.exports = Bo() : Tr.exports = Ho();
717
+ process.env.NODE_ENV === "production" ? Tr.exports = Ho() : Tr.exports = Vo();
718
718
  var R = Tr.exports;
719
- function Vo(t, e) {
719
+ function qo(t, e) {
720
720
  return Array.isArray(t) ? t.filter((r) => !e.includes(r)) : Object.keys(t).reduce((r, n) => (e.includes(n) || (r[n] = t[n]), r), {});
721
721
  }
722
722
  function aa(t, e) {
723
723
  return Array.isArray(t) ? t.filter((r) => e.includes(r)) : e.reduce((r, n) => (n in t && (r[n] = t[n]), r), {});
724
724
  }
725
- function qo(t) {
725
+ function Go(t) {
726
726
  return Array.isArray(t) ? t.filter((e) => e !== null) : Object.keys(t).reduce((e, r) => (r in t && t[r] !== null && (e[r] = t[r]), e), {});
727
727
  }
728
- function Go(t, e = 3, r = 10) {
728
+ function Yo(t, e = 3, r = 10) {
729
729
  return new Promise((n, a) => {
730
730
  const o = t();
731
731
  if (o) {
@@ -739,44 +739,44 @@ function Go(t, e = 3, r = 10) {
739
739
  }, r);
740
740
  });
741
741
  }
742
- var Yo = function(e) {
743
- return zo(e) && !Ko(e);
742
+ var zo = function(e) {
743
+ return Ko(e) && !Xo(e);
744
744
  };
745
- function zo(t) {
745
+ function Ko(t) {
746
746
  return !!t && typeof t == "object";
747
747
  }
748
- function Ko(t) {
748
+ function Xo(t) {
749
749
  var e = Object.prototype.toString.call(t);
750
- return e === "[object RegExp]" || e === "[object Date]" || Qo(t);
751
- }
752
- var Xo = typeof Symbol == "function" && Symbol.for, Jo = Xo ? Symbol.for("react.element") : 60103;
753
- function Qo(t) {
754
- return t.$$typeof === Jo;
750
+ return e === "[object RegExp]" || e === "[object Date]" || Zo(t);
755
751
  }
752
+ var Jo = typeof Symbol == "function" && Symbol.for, Qo = Jo ? Symbol.for("react.element") : 60103;
756
753
  function Zo(t) {
754
+ return t.$$typeof === Qo;
755
+ }
756
+ function ei(t) {
757
757
  return Array.isArray(t) ? [] : {};
758
758
  }
759
759
  function xt(t, e) {
760
- return e.clone !== !1 && e.isMergeableObject(t) ? Ze(Zo(t), t, e) : t;
760
+ return e.clone !== !1 && e.isMergeableObject(t) ? Ze(ei(t), t, e) : t;
761
761
  }
762
- function ei(t, e, r) {
762
+ function ti(t, e, r) {
763
763
  return t.concat(e).map(function(n) {
764
764
  return xt(n, r);
765
765
  });
766
766
  }
767
- function ti(t, e) {
767
+ function ri(t, e) {
768
768
  if (!e.customMerge)
769
769
  return Ze;
770
770
  var r = e.customMerge(t);
771
771
  return typeof r == "function" ? r : Ze;
772
772
  }
773
- function ri(t) {
773
+ function ni(t) {
774
774
  return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(e) {
775
775
  return Object.propertyIsEnumerable.call(t, e);
776
776
  }) : [];
777
777
  }
778
778
  function Sn(t) {
779
- return Object.keys(t).concat(ri(t));
779
+ return Object.keys(t).concat(ni(t));
780
780
  }
781
781
  function oa(t, e) {
782
782
  try {
@@ -785,21 +785,21 @@ function oa(t, e) {
785
785
  return !1;
786
786
  }
787
787
  }
788
- function ni(t, e) {
788
+ function ai(t, e) {
789
789
  return oa(t, e) && !(Object.hasOwnProperty.call(t, e) && Object.propertyIsEnumerable.call(t, e));
790
790
  }
791
- function ai(t, e, r) {
791
+ function oi(t, e, r) {
792
792
  var n = {};
793
793
  return r.isMergeableObject(t) && Sn(t).forEach(function(a) {
794
794
  n[a] = xt(t[a], r);
795
795
  }), Sn(e).forEach(function(a) {
796
- ni(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ti(a, r)(t[a], e[a], r) : n[a] = xt(e[a], r));
796
+ ai(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ri(a, r)(t[a], e[a], r) : n[a] = xt(e[a], r));
797
797
  }), n;
798
798
  }
799
799
  function Ze(t, e, r) {
800
- r = r || {}, r.arrayMerge = r.arrayMerge || ei, r.isMergeableObject = r.isMergeableObject || Yo, r.cloneUnlessOtherwiseSpecified = xt;
800
+ r = r || {}, r.arrayMerge = r.arrayMerge || ti, r.isMergeableObject = r.isMergeableObject || zo, r.cloneUnlessOtherwiseSpecified = xt;
801
801
  var n = Array.isArray(e), a = Array.isArray(t), o = n === a;
802
- return o ? n ? r.arrayMerge(t, e, r) : ai(t, e, r) : xt(e, r);
802
+ return o ? n ? r.arrayMerge(t, e, r) : oi(t, e, r) : xt(e, r);
803
803
  }
804
804
  Ze.all = function(e, r) {
805
805
  if (!Array.isArray(e))
@@ -808,9 +808,9 @@ Ze.all = function(e, r) {
808
808
  return Ze(n, a, r);
809
809
  }, {});
810
810
  };
811
- var oi = Ze, ii = oi;
812
- const li = /* @__PURE__ */ Wo(ii);
813
- var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = SyntaxError, Pt = TypeError, di = URIError, pi = function() {
811
+ var ii = Ze, li = ii;
812
+ const ui = /* @__PURE__ */ Uo(li);
813
+ var si = Error, ci = EvalError, fi = RangeError, di = ReferenceError, ia = SyntaxError, Pt = TypeError, pi = URIError, yi = function() {
814
814
  if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
815
815
  return !1;
816
816
  if (typeof Symbol.iterator == "symbol")
@@ -833,32 +833,32 @@ var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = Synta
833
833
  return !1;
834
834
  }
835
835
  return !0;
836
- }, xn = typeof Symbol < "u" && Symbol, yi = pi, vi = function() {
837
- return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : yi();
836
+ }, xn = typeof Symbol < "u" && Symbol, vi = yi, mi = function() {
837
+ return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : vi();
838
838
  }, fr = {
839
839
  __proto__: null,
840
840
  foo: {}
841
- }, mi = Object, hi = function() {
842
- return { __proto__: fr }.foo === fr.foo && !(fr instanceof mi);
843
- }, gi = "Function.prototype.bind called on incompatible ", bi = Object.prototype.toString, wi = Math.max, Ei = "[object Function]", On = function(e, r) {
841
+ }, hi = Object, gi = function() {
842
+ return { __proto__: fr }.foo === fr.foo && !(fr instanceof hi);
843
+ }, bi = "Function.prototype.bind called on incompatible ", wi = Object.prototype.toString, Ei = Math.max, Si = "[object Function]", On = function(e, r) {
844
844
  for (var n = [], a = 0; a < e.length; a += 1)
845
845
  n[a] = e[a];
846
846
  for (var o = 0; o < r.length; o += 1)
847
847
  n[o + e.length] = r[o];
848
848
  return n;
849
- }, Si = function(e, r) {
849
+ }, xi = function(e, r) {
850
850
  for (var n = [], a = r, o = 0; a < e.length; a += 1, o += 1)
851
851
  n[o] = e[a];
852
852
  return n;
853
- }, xi = function(t, e) {
853
+ }, Oi = function(t, e) {
854
854
  for (var r = "", n = 0; n < t.length; n += 1)
855
855
  r += t[n], n + 1 < t.length && (r += e);
856
856
  return r;
857
- }, Oi = function(e) {
857
+ }, Pi = function(e) {
858
858
  var r = this;
859
- if (typeof r != "function" || bi.apply(r) !== Ei)
860
- throw new TypeError(gi + r);
861
- for (var n = Si(arguments, 1), a, o = function() {
859
+ if (typeof r != "function" || wi.apply(r) !== Si)
860
+ throw new TypeError(bi + r);
861
+ for (var n = xi(arguments, 1), a, o = function() {
862
862
  if (this instanceof a) {
863
863
  var s = r.apply(
864
864
  this,
@@ -870,15 +870,15 @@ var ui = Error, si = EvalError, ci = RangeError, fi = ReferenceError, ia = Synta
870
870
  e,
871
871
  On(n, arguments)
872
872
  );
873
- }, l = wi(0, r.length - n.length), u = [], i = 0; i < l; i++)
873
+ }, l = Ei(0, r.length - n.length), u = [], i = 0; i < l; i++)
874
874
  u[i] = "$" + i;
875
- if (a = Function("binder", "return function (" + xi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
876
- var d = function() {
875
+ if (a = Function("binder", "return function (" + Oi(u, ",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
876
+ var f = function() {
877
877
  };
878
- d.prototype = r.prototype, a.prototype = new d(), d.prototype = null;
878
+ f.prototype = r.prototype, a.prototype = new f(), f.prototype = null;
879
879
  }
880
880
  return a;
881
- }, Pi = Oi, qr = Function.prototype.bind || Pi, Ai = Function.prototype.call, Ti = Object.prototype.hasOwnProperty, $i = qr, Ri = $i.call(Ai, Ti), C, Fi = ui, Ci = si, Ii = ci, Mi = fi, et = ia, Qe = Pt, _i = di, la = Function, dr = function(t) {
881
+ }, Ai = Pi, qr = Function.prototype.bind || Ai, Ti = Function.prototype.call, $i = Object.prototype.hasOwnProperty, Ri = qr, Fi = Ri.call(Ti, $i), C, Ci = si, Ii = ci, Mi = fi, _i = di, et = ia, Qe = Pt, Di = pi, la = Function, dr = function(t) {
882
882
  try {
883
883
  return la('"use strict"; return (' + t + ").constructor;")();
884
884
  } catch {
@@ -892,7 +892,7 @@ if (Be)
892
892
  }
893
893
  var pr = function() {
894
894
  throw new Qe();
895
- }, Di = Be ? function() {
895
+ }, Ni = Be ? function() {
896
896
  try {
897
897
  return arguments.callee, pr;
898
898
  } catch {
@@ -902,9 +902,9 @@ var pr = function() {
902
902
  return pr;
903
903
  }
904
904
  }
905
- }() : pr, Ke = vi(), Ni = hi(), Z = Object.getPrototypeOf || (Ni ? function(t) {
905
+ }() : pr, Ke = mi(), ki = gi(), Z = Object.getPrototypeOf || (ki ? function(t) {
906
906
  return t.__proto__;
907
- } : null), Je = {}, ki = typeof Uint8Array > "u" || !Z ? C : Z(Uint8Array), He = {
907
+ } : null), Je = {}, ji = typeof Uint8Array > "u" || !Z ? C : Z(Uint8Array), He = {
908
908
  __proto__: null,
909
909
  "%AggregateError%": typeof AggregateError > "u" ? C : AggregateError,
910
910
  "%Array%": Array,
@@ -926,10 +926,10 @@ var pr = function() {
926
926
  "%decodeURIComponent%": decodeURIComponent,
927
927
  "%encodeURI%": encodeURI,
928
928
  "%encodeURIComponent%": encodeURIComponent,
929
- "%Error%": Fi,
929
+ "%Error%": Ci,
930
930
  "%eval%": eval,
931
931
  // eslint-disable-line no-eval
932
- "%EvalError%": Ci,
932
+ "%EvalError%": Ii,
933
933
  "%Float32Array%": typeof Float32Array > "u" ? C : Float32Array,
934
934
  "%Float64Array%": typeof Float64Array > "u" ? C : Float64Array,
935
935
  "%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? C : FinalizationRegistry,
@@ -951,8 +951,8 @@ var pr = function() {
951
951
  "%parseInt%": parseInt,
952
952
  "%Promise%": typeof Promise > "u" ? C : Promise,
953
953
  "%Proxy%": typeof Proxy > "u" ? C : Proxy,
954
- "%RangeError%": Ii,
955
- "%ReferenceError%": Mi,
954
+ "%RangeError%": Mi,
955
+ "%ReferenceError%": _i,
956
956
  "%Reflect%": typeof Reflect > "u" ? C : Reflect,
957
957
  "%RegExp%": RegExp,
958
958
  "%Set%": typeof Set > "u" ? C : Set,
@@ -962,14 +962,14 @@ var pr = function() {
962
962
  "%StringIteratorPrototype%": Ke && Z ? Z(""[Symbol.iterator]()) : C,
963
963
  "%Symbol%": Ke ? Symbol : C,
964
964
  "%SyntaxError%": et,
965
- "%ThrowTypeError%": Di,
966
- "%TypedArray%": ki,
965
+ "%ThrowTypeError%": Ni,
966
+ "%TypedArray%": ji,
967
967
  "%TypeError%": Qe,
968
968
  "%Uint8Array%": typeof Uint8Array > "u" ? C : Uint8Array,
969
969
  "%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? C : Uint8ClampedArray,
970
970
  "%Uint16Array%": typeof Uint16Array > "u" ? C : Uint16Array,
971
971
  "%Uint32Array%": typeof Uint32Array > "u" ? C : Uint32Array,
972
- "%URIError%": _i,
972
+ "%URIError%": Di,
973
973
  "%WeakMap%": typeof WeakMap > "u" ? C : WeakMap,
974
974
  "%WeakRef%": typeof WeakRef > "u" ? C : WeakRef,
975
975
  "%WeakSet%": typeof WeakSet > "u" ? C : WeakSet
@@ -978,10 +978,10 @@ if (Z)
978
978
  try {
979
979
  null.error;
980
980
  } catch (t) {
981
- var ji = Z(Z(t));
982
- He["%Error.prototype%"] = ji;
981
+ var Li = Z(Z(t));
982
+ He["%Error.prototype%"] = Li;
983
983
  }
984
- var Li = function t(e) {
984
+ var Wi = function t(e) {
985
985
  var r;
986
986
  if (e === "%AsyncFunction%")
987
987
  r = dr("async function () {}");
@@ -1050,21 +1050,21 @@ var Li = function t(e) {
1050
1050
  "%URIErrorPrototype%": ["URIError", "prototype"],
1051
1051
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1052
1052
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1053
- }, At = qr, Lt = Ri, Wi = At.call(Function.call, Array.prototype.concat), Ui = At.call(Function.apply, Array.prototype.splice), An = At.call(Function.call, String.prototype.replace), Wt = At.call(Function.call, String.prototype.slice), Bi = At.call(Function.call, RegExp.prototype.exec), Hi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Vi = /\\(\\)?/g, qi = function(e) {
1053
+ }, At = qr, Lt = Fi, Ui = At.call(Function.call, Array.prototype.concat), Bi = At.call(Function.apply, Array.prototype.splice), An = At.call(Function.call, String.prototype.replace), Wt = At.call(Function.call, String.prototype.slice), Hi = At.call(Function.call, RegExp.prototype.exec), Vi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, qi = /\\(\\)?/g, Gi = function(e) {
1054
1054
  var r = Wt(e, 0, 1), n = Wt(e, -1);
1055
1055
  if (r === "%" && n !== "%")
1056
1056
  throw new et("invalid intrinsic syntax, expected closing `%`");
1057
1057
  if (n === "%" && r !== "%")
1058
1058
  throw new et("invalid intrinsic syntax, expected opening `%`");
1059
1059
  var a = [];
1060
- return An(e, Hi, function(o, l, u, i) {
1061
- a[a.length] = u ? An(i, Vi, "$1") : l || o;
1060
+ return An(e, Vi, function(o, l, u, i) {
1061
+ a[a.length] = u ? An(i, qi, "$1") : l || o;
1062
1062
  }), a;
1063
- }, Gi = function(e, r) {
1063
+ }, Yi = function(e, r) {
1064
1064
  var n = e, a;
1065
1065
  if (Lt(Pn, n) && (a = Pn[n], n = "%" + a[0] + "%"), Lt(He, n)) {
1066
1066
  var o = He[n];
1067
- if (o === Je && (o = Li(n)), typeof o > "u" && !r)
1067
+ if (o === Je && (o = Wi(n)), typeof o > "u" && !r)
1068
1068
  throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
1069
1069
  return {
1070
1070
  alias: a,
@@ -1078,15 +1078,15 @@ var Li = function t(e) {
1078
1078
  throw new Qe("intrinsic name must be a non-empty string");
1079
1079
  if (arguments.length > 1 && typeof r != "boolean")
1080
1080
  throw new Qe('"allowMissing" argument must be a boolean');
1081
- if (Bi(/^%?[^%]*%?$/, e) === null)
1081
+ if (Hi(/^%?[^%]*%?$/, e) === null)
1082
1082
  throw new et("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
1083
- var n = qi(e), a = n.length > 0 ? n[0] : "", o = Gi("%" + a + "%", r), l = o.name, u = o.value, i = !1, d = o.alias;
1084
- d && (a = d[0], Ui(n, Wi([0, 1], d)));
1085
- for (var s = 1, g = !0; s < n.length; s += 1) {
1086
- var v = n[s], w = Wt(v, 0, 1), f = Wt(v, -1);
1087
- if ((w === '"' || w === "'" || w === "`" || f === '"' || f === "'" || f === "`") && w !== f)
1083
+ var n = Gi(e), a = n.length > 0 ? n[0] : "", o = Yi("%" + a + "%", r), l = o.name, u = o.value, i = !1, f = o.alias;
1084
+ f && (a = f[0], Bi(n, Ui([0, 1], f)));
1085
+ for (var s = 1, h = !0; s < n.length; s += 1) {
1086
+ var v = n[s], w = Wt(v, 0, 1), d = Wt(v, -1);
1087
+ if ((w === '"' || w === "'" || w === "`" || d === '"' || d === "'" || d === "`") && w !== d)
1088
1088
  throw new et("property names with quotes must have matching quotes");
1089
- if ((v === "constructor" || !g) && (i = !0), a += "." + v, l = "%" + a + "%", Lt(He, l))
1089
+ if ((v === "constructor" || !h) && (i = !0), a += "." + v, l = "%" + a + "%", Lt(He, l))
1090
1090
  u = He[l];
1091
1091
  else if (u != null) {
1092
1092
  if (!(v in u)) {
@@ -1096,10 +1096,10 @@ var Li = function t(e) {
1096
1096
  }
1097
1097
  if (Be && s + 1 >= n.length) {
1098
1098
  var y = Be(u, v);
1099
- g = !!y, g && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
1099
+ h = !!y, h && "get" in y && !("originalValue" in y.get) ? u = y.get : u = u[v];
1100
1100
  } else
1101
- g = Lt(u, v), u = u[v];
1102
- g && !i && (He[l] = u);
1101
+ h = Lt(u, v), u = u[v];
1102
+ h && !i && (He[l] = u);
1103
1103
  }
1104
1104
  }
1105
1105
  return u;
@@ -1116,14 +1116,14 @@ function Gr() {
1116
1116
  }
1117
1117
  return yr = e, yr;
1118
1118
  }
1119
- var Yi = nt, Nt = Yi("%Object.getOwnPropertyDescriptor%", !0);
1119
+ var zi = nt, Nt = zi("%Object.getOwnPropertyDescriptor%", !0);
1120
1120
  if (Nt)
1121
1121
  try {
1122
1122
  Nt([], "length");
1123
1123
  } catch {
1124
1124
  Nt = null;
1125
1125
  }
1126
- var sa = Nt, $n = Gr(), zi = ia, Xe = Pt, Rn = sa, Ki = function(e, r, n) {
1126
+ var sa = Nt, $n = Gr(), Ki = ia, Xe = Pt, Rn = sa, Xi = function(e, r, n) {
1127
1127
  if (!e || typeof e != "object" && typeof e != "function")
1128
1128
  throw new Xe("`obj` must be an object or a function`");
1129
1129
  if (typeof r != "string" && typeof r != "symbol")
@@ -1147,7 +1147,7 @@ var sa = Nt, $n = Gr(), zi = ia, Xe = Pt, Rn = sa, Ki = function(e, r, n) {
1147
1147
  else if (u || !a && !o && !l)
1148
1148
  e[r] = n;
1149
1149
  else
1150
- throw new zi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1150
+ throw new Ki("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1151
1151
  }, $r = Gr(), ca = function() {
1152
1152
  return !!$r;
1153
1153
  };
@@ -1160,17 +1160,17 @@ ca.hasArrayLengthDefineBug = function() {
1160
1160
  return !0;
1161
1161
  }
1162
1162
  };
1163
- var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Pt, Zi = Ji("%Math.floor%"), el = function(e, r) {
1163
+ var Ji = ca, Qi = nt, Fn = Xi, Zi = Ji(), Cn = sa, In = Pt, el = Qi("%Math.floor%"), tl = function(e, r) {
1164
1164
  if (typeof e != "function")
1165
1165
  throw new In("`fn` is not a function");
1166
- if (typeof r != "number" || r < 0 || r > 4294967295 || Zi(r) !== r)
1166
+ if (typeof r != "number" || r < 0 || r > 4294967295 || el(r) !== r)
1167
1167
  throw new In("`length` must be a positive 32-bit integer");
1168
1168
  var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
1169
1169
  if ("length" in e && Cn) {
1170
1170
  var l = Cn(e, "length");
1171
1171
  l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
1172
1172
  }
1173
- return (a || o || !n) && (Qi ? Fn(
1173
+ return (a || o || !n) && (Zi ? Fn(
1174
1174
  /** @type {Parameters<define>[0]} */
1175
1175
  e,
1176
1176
  "length",
@@ -1185,14 +1185,14 @@ var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Pt, Zi = Ji("%Math.floor
1185
1185
  )), e;
1186
1186
  };
1187
1187
  (function(t) {
1188
- var e = qr, r = nt, n = el, a = Pt, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), d = r("%Math.max%");
1188
+ var e = qr, r = nt, n = tl, a = Pt, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = Gr(), f = r("%Math.max%");
1189
1189
  t.exports = function(v) {
1190
1190
  if (typeof v != "function")
1191
1191
  throw new a("a function is required");
1192
1192
  var w = u(e, l, arguments);
1193
1193
  return n(
1194
1194
  w,
1195
- 1 + d(0, v.length - (arguments.length - 1)),
1195
+ 1 + f(0, v.length - (arguments.length - 1)),
1196
1196
  !0
1197
1197
  );
1198
1198
  };
@@ -1201,15 +1201,15 @@ var Xi = ca, Ji = nt, Fn = Ki, Qi = Xi(), Cn = sa, In = Pt, Zi = Ji("%Math.floor
1201
1201
  };
1202
1202
  i ? i(t.exports, "apply", { value: s }) : t.exports.apply = s;
1203
1203
  })(ua);
1204
- var tl = ua.exports, fa = nt, da = tl, rl = da(fa("String.prototype.indexOf")), nl = function(e, r) {
1204
+ var rl = ua.exports, fa = nt, da = rl, nl = da(fa("String.prototype.indexOf")), al = function(e, r) {
1205
1205
  var n = fa(e, !!r);
1206
- return typeof n == "function" && rl(e, ".prototype.") > -1 ? da(n) : n;
1206
+ return typeof n == "function" && nl(e, ".prototype.") > -1 ? da(n) : n;
1207
1207
  };
1208
- const al = {}, ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1208
+ const ol = {}, il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1209
1209
  __proto__: null,
1210
- default: al
1211
- }, Symbol.toStringTag, { value: "Module" })), il = /* @__PURE__ */ Uo(ol);
1212
- var Yr = typeof Map == "function" && Map.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && vr && typeof vr.get == "function" ? vr.get : null, Mn = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Set.prototype.forEach, ll = typeof WeakMap == "function" && WeakMap.prototype, gt = ll ? WeakMap.prototype.has : null, ul = typeof WeakSet == "function" && WeakSet.prototype, bt = ul ? WeakSet.prototype.has : null, sl = typeof WeakRef == "function" && WeakRef.prototype, Dn = sl ? WeakRef.prototype.deref : null, cl = Boolean.prototype.valueOf, fl = Object.prototype.toString, dl = Function.prototype.toString, pl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, yl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, vl = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, hr = Object.getOwnPropertySymbols, Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1210
+ default: ol
1211
+ }, Symbol.toStringTag, { value: "Module" })), ll = /* @__PURE__ */ Bo(il);
1212
+ var Yr = typeof Map == "function" && Map.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && vr && typeof vr.get == "function" ? vr.get : null, Mn = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, mr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && mr && typeof mr.get == "function" ? mr.get : null, _n = zr && Set.prototype.forEach, ul = typeof WeakMap == "function" && WeakMap.prototype, gt = ul ? WeakMap.prototype.has : null, sl = typeof WeakSet == "function" && WeakSet.prototype, bt = sl ? WeakSet.prototype.has : null, cl = typeof WeakRef == "function" && WeakRef.prototype, Dn = cl ? WeakRef.prototype.deref : null, fl = Boolean.prototype.valueOf, dl = Object.prototype.toString, pl = Function.prototype.toString, yl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, vl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, ml = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, hr = Object.getOwnPropertySymbols, Fr = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, tt = typeof Symbol == "function" && typeof Symbol.iterator == "object", re = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === tt || !0) ? Symbol.toStringTag : null, ya = Object.prototype.propertyIsEnumerable, Ln = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1213
1213
  return t.__proto__;
1214
1214
  } : null);
1215
1215
  function Wn(t, e) {
@@ -1225,7 +1225,7 @@ function Wn(t, e) {
1225
1225
  }
1226
1226
  return Re.call(e, r, "$&_");
1227
1227
  }
1228
- var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a) {
1228
+ var Cr = ll, Un = Cr.custom, Bn = ma(Un) ? Un : null, hl = function t(e, r, n, a) {
1229
1229
  var o = r || {};
1230
1230
  if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1231
1231
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -1254,19 +1254,19 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
1254
1254
  return u ? Wn(e, i) : i;
1255
1255
  }
1256
1256
  if (typeof e == "bigint") {
1257
- var d = String(e) + "n";
1258
- return u ? Wn(e, d) : d;
1257
+ var f = String(e) + "n";
1258
+ return u ? Wn(e, f) : f;
1259
1259
  }
1260
1260
  var s = typeof o.depth > "u" ? 5 : o.depth;
1261
1261
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
1262
1262
  return Ir(e) ? "[Array]" : "[Object]";
1263
- var g = _l(o, n);
1263
+ var h = Dl(o, n);
1264
1264
  if (typeof a > "u")
1265
1265
  a = [];
1266
1266
  else if (ha(a, e) >= 0)
1267
1267
  return "[Circular]";
1268
1268
  function v($, T, D) {
1269
- if (T && (a = vl.call(a), a.push(T)), D) {
1269
+ if (T && (a = ml.call(a), a.push(T)), D) {
1270
1270
  var ue = {
1271
1271
  depth: o.depth
1272
1272
  };
@@ -1275,25 +1275,25 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
1275
1275
  return t($, o, n + 1, a);
1276
1276
  }
1277
1277
  if (typeof e == "function" && !Hn(e)) {
1278
- var w = Pl(e), f = It(e, v);
1279
- return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (f.length > 0 ? " { " + Ee.call(f, ", ") + " }" : "");
1278
+ var w = Al(e), d = It(e, v);
1279
+ return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (d.length > 0 ? " { " + Ee.call(d, ", ") + " }" : "");
1280
1280
  }
1281
1281
  if (ma(e)) {
1282
1282
  var y = tt ? Re.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Fr.call(e);
1283
1283
  return typeof e == "object" && !tt ? pt(y) : y;
1284
1284
  }
1285
- if (Cl(e)) {
1286
- for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], h = 0; h < m.length; h++)
1287
- p += " " + m[h].name + "=" + va(hl(m[h].value), "double", o);
1285
+ if (Il(e)) {
1286
+ for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1287
+ p += " " + m[g].name + "=" + va(gl(m[g].value), "double", o);
1288
1288
  return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + Nn.call(String(e.nodeName)) + ">", p;
1289
1289
  }
1290
1290
  if (Ir(e)) {
1291
1291
  if (e.length === 0)
1292
1292
  return "[]";
1293
1293
  var b = It(e, v);
1294
- return g && !Ml(b) ? "[" + Mr(b, g) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1294
+ return h && !_l(b) ? "[" + Mr(b, h) + "]" : "[ " + Ee.call(b, ", ") + " ]";
1295
1295
  }
1296
- if (bl(e)) {
1296
+ if (wl(e)) {
1297
1297
  var S = It(e, v);
1298
1298
  return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(kn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
1299
1299
  }
@@ -1303,39 +1303,39 @@ var Cr = il, Un = Cr.custom, Bn = ma(Un) ? Un : null, ml = function t(e, r, n, a
1303
1303
  if (l !== "symbol" && typeof e.inspect == "function")
1304
1304
  return e.inspect();
1305
1305
  }
1306
- if (Al(e)) {
1306
+ if (Tl(e)) {
1307
1307
  var O = [];
1308
1308
  return Mn && Mn.call(e, function($, T) {
1309
1309
  O.push(v(T, e, !0) + " => " + v($, e));
1310
- }), Vn("Map", Ut.call(e), O, g);
1310
+ }), Vn("Map", Ut.call(e), O, h);
1311
1311
  }
1312
- if (Rl(e)) {
1312
+ if (Fl(e)) {
1313
1313
  var _ = [];
1314
1314
  return _n && _n.call(e, function($) {
1315
1315
  _.push(v($, e));
1316
- }), Vn("Set", Bt.call(e), _, g);
1316
+ }), Vn("Set", Bt.call(e), _, h);
1317
1317
  }
1318
- if (Tl(e))
1318
+ if ($l(e))
1319
1319
  return gr("WeakMap");
1320
- if (Fl(e))
1320
+ if (Cl(e))
1321
1321
  return gr("WeakSet");
1322
- if ($l(e))
1322
+ if (Rl(e))
1323
1323
  return gr("WeakRef");
1324
- if (El(e))
1324
+ if (Sl(e))
1325
1325
  return pt(v(Number(e)));
1326
- if (xl(e))
1326
+ if (Ol(e))
1327
1327
  return pt(v(Rr.call(e)));
1328
- if (Sl(e))
1329
- return pt(cl.call(e));
1330
- if (wl(e))
1328
+ if (xl(e))
1329
+ return pt(fl.call(e));
1330
+ if (El(e))
1331
1331
  return pt(v(String(e)));
1332
1332
  if (typeof window < "u" && e === window)
1333
1333
  return "{ [object Window] }";
1334
1334
  if (typeof globalThis < "u" && e === globalThis || typeof Ar < "u" && e === Ar)
1335
1335
  return "{ [object globalThis] }";
1336
- if (!gl(e) && !Hn(e)) {
1337
- var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", k = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", Y = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = Y + (k || H ? "[" + Ee.call(kn.call([], k || [], H || []), ": ") + "] " : "");
1338
- return M.length === 0 ? V + "{}" : g ? V + "{" + Mr(M, g) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1336
+ if (!bl(e) && !Hn(e)) {
1337
+ var M = It(e, v), W = Ln ? Ln(e) === Object.prototype : e instanceof Object || e.constructor === Object, H = e instanceof Object ? "" : "null prototype", j = !W && re && Object(e) === e && re in e ? Kr.call(Ie(e), 8, -1) : H ? "Object" : "", z = W || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", V = z + (j || H ? "[" + Ee.call(kn.call([], j || [], H || []), ": ") + "] " : "");
1338
+ return M.length === 0 ? V + "{}" : h ? V + "{" + Mr(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1339
1339
  }
1340
1340
  return String(e);
1341
1341
  };
@@ -1343,28 +1343,28 @@ function va(t, e, r) {
1343
1343
  var n = (r.quoteStyle || e) === "double" ? '"' : "'";
1344
1344
  return n + t + n;
1345
1345
  }
1346
- function hl(t) {
1346
+ function gl(t) {
1347
1347
  return Re.call(String(t), /"/g, "&quot;");
1348
1348
  }
1349
1349
  function Ir(t) {
1350
1350
  return Ie(t) === "[object Array]" && (!re || !(typeof t == "object" && re in t));
1351
1351
  }
1352
- function gl(t) {
1352
+ function bl(t) {
1353
1353
  return Ie(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
1354
1354
  }
1355
1355
  function Hn(t) {
1356
1356
  return Ie(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
1357
1357
  }
1358
- function bl(t) {
1358
+ function wl(t) {
1359
1359
  return Ie(t) === "[object Error]" && (!re || !(typeof t == "object" && re in t));
1360
1360
  }
1361
- function wl(t) {
1361
+ function El(t) {
1362
1362
  return Ie(t) === "[object String]" && (!re || !(typeof t == "object" && re in t));
1363
1363
  }
1364
- function El(t) {
1364
+ function Sl(t) {
1365
1365
  return Ie(t) === "[object Number]" && (!re || !(typeof t == "object" && re in t));
1366
1366
  }
1367
- function Sl(t) {
1367
+ function xl(t) {
1368
1368
  return Ie(t) === "[object Boolean]" && (!re || !(typeof t == "object" && re in t));
1369
1369
  }
1370
1370
  function ma(t) {
@@ -1380,7 +1380,7 @@ function ma(t) {
1380
1380
  }
1381
1381
  return !1;
1382
1382
  }
1383
- function xl(t) {
1383
+ function Ol(t) {
1384
1384
  if (!t || typeof t != "object" || !Rr)
1385
1385
  return !1;
1386
1386
  try {
@@ -1389,19 +1389,19 @@ function xl(t) {
1389
1389
  }
1390
1390
  return !1;
1391
1391
  }
1392
- var Ol = Object.prototype.hasOwnProperty || function(t) {
1392
+ var Pl = Object.prototype.hasOwnProperty || function(t) {
1393
1393
  return t in this;
1394
1394
  };
1395
1395
  function Te(t, e) {
1396
- return Ol.call(t, e);
1396
+ return Pl.call(t, e);
1397
1397
  }
1398
1398
  function Ie(t) {
1399
- return fl.call(t);
1399
+ return dl.call(t);
1400
1400
  }
1401
- function Pl(t) {
1401
+ function Al(t) {
1402
1402
  if (t.name)
1403
1403
  return t.name;
1404
- var e = pl.call(dl.call(t), /^function\s*([\w$]+)/);
1404
+ var e = yl.call(pl.call(t), /^function\s*([\w$]+)/);
1405
1405
  return e ? e[1] : null;
1406
1406
  }
1407
1407
  function ha(t, e) {
@@ -1412,7 +1412,7 @@ function ha(t, e) {
1412
1412
  return r;
1413
1413
  return -1;
1414
1414
  }
1415
- function Al(t) {
1415
+ function Tl(t) {
1416
1416
  if (!Ut || !t || typeof t != "object")
1417
1417
  return !1;
1418
1418
  try {
@@ -1427,7 +1427,7 @@ function Al(t) {
1427
1427
  }
1428
1428
  return !1;
1429
1429
  }
1430
- function Tl(t) {
1430
+ function $l(t) {
1431
1431
  if (!gt || !t || typeof t != "object")
1432
1432
  return !1;
1433
1433
  try {
@@ -1442,7 +1442,7 @@ function Tl(t) {
1442
1442
  }
1443
1443
  return !1;
1444
1444
  }
1445
- function $l(t) {
1445
+ function Rl(t) {
1446
1446
  if (!Dn || !t || typeof t != "object")
1447
1447
  return !1;
1448
1448
  try {
@@ -1451,7 +1451,7 @@ function $l(t) {
1451
1451
  }
1452
1452
  return !1;
1453
1453
  }
1454
- function Rl(t) {
1454
+ function Fl(t) {
1455
1455
  if (!Bt || !t || typeof t != "object")
1456
1456
  return !1;
1457
1457
  try {
@@ -1466,7 +1466,7 @@ function Rl(t) {
1466
1466
  }
1467
1467
  return !1;
1468
1468
  }
1469
- function Fl(t) {
1469
+ function Cl(t) {
1470
1470
  if (!bt || !t || typeof t != "object")
1471
1471
  return !1;
1472
1472
  try {
@@ -1481,7 +1481,7 @@ function Fl(t) {
1481
1481
  }
1482
1482
  return !1;
1483
1483
  }
1484
- function Cl(t) {
1484
+ function Il(t) {
1485
1485
  return !t || typeof t != "object" ? !1 : typeof HTMLElement < "u" && t instanceof HTMLElement ? !0 : typeof t.nodeName == "string" && typeof t.getAttribute == "function";
1486
1486
  }
1487
1487
  function ga(t, e) {
@@ -1489,10 +1489,10 @@ function ga(t, e) {
1489
1489
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1490
1490
  return ga(Kr.call(t, 0, e.maxStringLength), e) + n;
1491
1491
  }
1492
- var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Il);
1492
+ var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Ml);
1493
1493
  return va(a, "single", e);
1494
1494
  }
1495
- function Il(t) {
1495
+ function Ml(t) {
1496
1496
  var e = t.charCodeAt(0), r = {
1497
1497
  8: "b",
1498
1498
  9: "t",
@@ -1500,7 +1500,7 @@ function Il(t) {
1500
1500
  12: "f",
1501
1501
  13: "r"
1502
1502
  }[e];
1503
- return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + yl.call(e.toString(16));
1503
+ return r ? "\\" + r : "\\x" + (e < 16 ? "0" : "") + vl.call(e.toString(16));
1504
1504
  }
1505
1505
  function pt(t) {
1506
1506
  return "Object(" + t + ")";
@@ -1512,14 +1512,14 @@ function Vn(t, e, r, n) {
1512
1512
  var a = n ? Mr(r, n) : Ee.call(r, ", ");
1513
1513
  return t + " (" + e + ") {" + a + "}";
1514
1514
  }
1515
- function Ml(t) {
1515
+ function _l(t) {
1516
1516
  for (var e = 0; e < t.length; e++)
1517
1517
  if (ha(t[e], `
1518
1518
  `) >= 0)
1519
1519
  return !1;
1520
1520
  return !0;
1521
1521
  }
1522
- function _l(t, e) {
1522
+ function Dl(t, e) {
1523
1523
  var r;
1524
1524
  if (t.indent === " ")
1525
1525
  r = " ";
@@ -1556,19 +1556,19 @@ function It(t, e) {
1556
1556
  for (var i in t)
1557
1557
  Te(t, i) && (r && String(Number(i)) === i && i < t.length || tt && l["$" + i] instanceof Symbol || (pa.call(/[^\w$]/, i) ? n.push(e(i, t) + ": " + e(t[i], t)) : n.push(i + ": " + e(t[i], t))));
1558
1558
  if (typeof hr == "function")
1559
- for (var d = 0; d < o.length; d++)
1560
- ya.call(t, o[d]) && n.push("[" + e(o[d]) + "]: " + e(t[o[d]], t));
1559
+ for (var f = 0; f < o.length; f++)
1560
+ ya.call(t, o[f]) && n.push("[" + e(o[f]) + "]: " + e(t[o[f]], t));
1561
1561
  return n;
1562
1562
  }
1563
- var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), kl = at("WeakMap.prototype.get", !0), jl = at("WeakMap.prototype.set", !0), Ll = at("WeakMap.prototype.has", !0), Wl = at("Map.prototype.get", !0), Ul = at("Map.prototype.set", !0), Bl = at("Map.prototype.has", !0), Xr = function(t, e) {
1563
+ var ba = nt, at = al, Nl = hl, kl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), jl = at("WeakMap.prototype.get", !0), Ll = at("WeakMap.prototype.set", !0), Wl = at("WeakMap.prototype.has", !0), Ul = at("Map.prototype.get", !0), Bl = at("Map.prototype.set", !0), Hl = at("Map.prototype.has", !0), Xr = function(t, e) {
1564
1564
  for (var r = t, n; (n = r.next) !== null; r = n)
1565
1565
  if (n.key === e)
1566
1566
  return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
1567
1567
  t.next, t.next = n, n;
1568
- }, Hl = function(t, e) {
1568
+ }, Vl = function(t, e) {
1569
1569
  var r = Xr(t, e);
1570
1570
  return r && r.value;
1571
- }, Vl = function(t, e, r) {
1571
+ }, ql = function(t, e, r) {
1572
1572
  var n = Xr(t, e);
1573
1573
  n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
1574
1574
  {
@@ -1577,48 +1577,48 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1577
1577
  next: t.next,
1578
1578
  value: r
1579
1579
  };
1580
- }, ql = function(t, e) {
1580
+ }, Gl = function(t, e) {
1581
1581
  return !!Xr(t, e);
1582
- }, Gl = function() {
1582
+ }, Yl = function() {
1583
1583
  var e, r, n, a = {
1584
1584
  assert: function(o) {
1585
1585
  if (!a.has(o))
1586
- throw new Nl("Side channel does not contain " + Dl(o));
1586
+ throw new kl("Side channel does not contain " + Nl(o));
1587
1587
  },
1588
1588
  get: function(o) {
1589
1589
  if (Mt && o && (typeof o == "object" || typeof o == "function")) {
1590
1590
  if (e)
1591
- return kl(e, o);
1591
+ return jl(e, o);
1592
1592
  } else if (_t) {
1593
1593
  if (r)
1594
- return Wl(r, o);
1594
+ return Ul(r, o);
1595
1595
  } else if (n)
1596
- return Hl(n, o);
1596
+ return Vl(n, o);
1597
1597
  },
1598
1598
  has: function(o) {
1599
1599
  if (Mt && o && (typeof o == "object" || typeof o == "function")) {
1600
1600
  if (e)
1601
- return Ll(e, o);
1601
+ return Wl(e, o);
1602
1602
  } else if (_t) {
1603
1603
  if (r)
1604
- return Bl(r, o);
1604
+ return Hl(r, o);
1605
1605
  } else if (n)
1606
- return ql(n, o);
1606
+ return Gl(n, o);
1607
1607
  return !1;
1608
1608
  },
1609
1609
  set: function(o, l) {
1610
- Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()), jl(e, o, l)) : _t ? (r || (r = new _t()), Ul(r, o, l)) : (n || (n = { key: {}, next: null }), Vl(n, o, l));
1610
+ Mt && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new Mt()), Ll(e, o, l)) : _t ? (r || (r = new _t()), Bl(r, o, l)) : (n || (n = { key: {}, next: null }), ql(n, o, l));
1611
1611
  }
1612
1612
  };
1613
1613
  return a;
1614
- }, Yl = String.prototype.replace, zl = /%20/g, br = {
1614
+ }, zl = String.prototype.replace, Kl = /%20/g, br = {
1615
1615
  RFC1738: "RFC1738",
1616
1616
  RFC3986: "RFC3986"
1617
1617
  }, Jr = {
1618
1618
  default: br.RFC3986,
1619
1619
  formatters: {
1620
1620
  RFC1738: function(t) {
1621
- return Yl.call(t, zl, "+");
1621
+ return zl.call(t, Kl, "+");
1622
1622
  },
1623
1623
  RFC3986: function(t) {
1624
1624
  return String(t);
@@ -1626,11 +1626,11 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1626
1626
  },
1627
1627
  RFC1738: br.RFC1738,
1628
1628
  RFC3986: br.RFC3986
1629
- }, Kl = Jr, wr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1629
+ }, Xl = Jr, wr = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1630
1630
  for (var t = [], e = 0; e < 256; ++e)
1631
1631
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1632
1632
  return t;
1633
- }(), Xl = function(e) {
1633
+ }(), Jl = function(e) {
1634
1634
  for (; e.length > 1; ) {
1635
1635
  var r = e.pop(), n = r.obj[r.prop];
1636
1636
  if (Le(n)) {
@@ -1643,7 +1643,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1643
1643
  for (var n = r && r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, a = 0; a < e.length; ++a)
1644
1644
  typeof e[a] < "u" && (n[a] = e[a]);
1645
1645
  return n;
1646
- }, Jl = function t(e, r, n) {
1646
+ }, Ql = function t(e, r, n) {
1647
1647
  if (!r)
1648
1648
  return e;
1649
1649
  if (typeof r != "object") {
@@ -1668,11 +1668,11 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1668
1668
  var u = r[l];
1669
1669
  return wr.call(o, l) ? o[l] = t(o[l], u, n) : o[l] = u, o;
1670
1670
  }, a);
1671
- }, Ql = function(e, r) {
1671
+ }, Zl = function(e, r) {
1672
1672
  return Object.keys(r).reduce(function(n, a) {
1673
1673
  return n[a] = r[a], n;
1674
1674
  }, e);
1675
- }, Zl = function(t, e, r) {
1675
+ }, eu = function(t, e, r) {
1676
1676
  var n = t.replace(/\+/g, " ");
1677
1677
  if (r === "iso-8859-1")
1678
1678
  return n.replace(/%[0-9a-f]{2}/gi, unescape);
@@ -1681,7 +1681,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1681
1681
  } catch {
1682
1682
  return n;
1683
1683
  }
1684
- }, Er = 1024, eu = function(e, r, n, a, o) {
1684
+ }, Er = 1024, tu = function(e, r, n, a, o) {
1685
1685
  if (e.length === 0)
1686
1686
  return e;
1687
1687
  var l = e;
@@ -1690,10 +1690,10 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1690
1690
  return "%26%23" + parseInt(w.slice(2), 16) + "%3B";
1691
1691
  });
1692
1692
  for (var u = "", i = 0; i < l.length; i += Er) {
1693
- for (var d = l.length >= Er ? l.slice(i, i + Er) : l, s = [], g = 0; g < d.length; ++g) {
1694
- var v = d.charCodeAt(g);
1695
- if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Kl.RFC1738 && (v === 40 || v === 41)) {
1696
- s[s.length] = d.charAt(g);
1693
+ for (var f = l.length >= Er ? l.slice(i, i + Er) : l, s = [], h = 0; h < f.length; ++h) {
1694
+ var v = f.charCodeAt(h);
1695
+ if (v === 45 || v === 46 || v === 95 || v === 126 || v >= 48 && v <= 57 || v >= 65 && v <= 90 || v >= 97 && v <= 122 || o === Xl.RFC1738 && (v === 40 || v === 41)) {
1696
+ s[s.length] = f.charAt(h);
1697
1697
  continue;
1698
1698
  }
1699
1699
  if (v < 128) {
@@ -1708,25 +1708,25 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1708
1708
  s[s.length] = be[224 | v >> 12] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1709
1709
  continue;
1710
1710
  }
1711
- g += 1, v = 65536 + ((v & 1023) << 10 | d.charCodeAt(g) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1711
+ h += 1, v = 65536 + ((v & 1023) << 10 | f.charCodeAt(h) & 1023), s[s.length] = be[240 | v >> 18] + be[128 | v >> 12 & 63] + be[128 | v >> 6 & 63] + be[128 | v & 63];
1712
1712
  }
1713
1713
  u += s.join("");
1714
1714
  }
1715
1715
  return u;
1716
- }, tu = function(e) {
1716
+ }, ru = function(e) {
1717
1717
  for (var r = [{ obj: { o: e }, prop: "o" }], n = [], a = 0; a < r.length; ++a)
1718
1718
  for (var o = r[a], l = o.obj[o.prop], u = Object.keys(l), i = 0; i < u.length; ++i) {
1719
- var d = u[i], s = l[d];
1720
- typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: d }), n.push(s));
1719
+ var f = u[i], s = l[f];
1720
+ typeof s == "object" && s !== null && n.indexOf(s) === -1 && (r.push({ obj: l, prop: f }), n.push(s));
1721
1721
  }
1722
- return Xl(r), e;
1723
- }, ru = function(e) {
1724
- return Object.prototype.toString.call(e) === "[object RegExp]";
1722
+ return Jl(r), e;
1725
1723
  }, nu = function(e) {
1724
+ return Object.prototype.toString.call(e) === "[object RegExp]";
1725
+ }, au = function(e) {
1726
1726
  return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
1727
- }, au = function(e, r) {
1728
- return [].concat(e, r);
1729
1727
  }, ou = function(e, r) {
1728
+ return [].concat(e, r);
1729
+ }, iu = function(e, r) {
1730
1730
  if (Le(e)) {
1731
1731
  for (var n = [], a = 0; a < e.length; a += 1)
1732
1732
  n.push(r(e[a]));
@@ -1735,16 +1735,16 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1735
1735
  return r(e);
1736
1736
  }, Ea = {
1737
1737
  arrayToObject: wa,
1738
- assign: Ql,
1739
- combine: au,
1740
- compact: tu,
1741
- decode: Zl,
1742
- encode: eu,
1743
- isBuffer: nu,
1744
- isRegExp: ru,
1745
- maybeMap: ou,
1746
- merge: Jl
1747
- }, Sa = Gl, kt = Ea, wt = Jr, iu = Object.prototype.hasOwnProperty, xa = {
1738
+ assign: Zl,
1739
+ combine: ou,
1740
+ compact: ru,
1741
+ decode: eu,
1742
+ encode: tu,
1743
+ isBuffer: au,
1744
+ isRegExp: nu,
1745
+ maybeMap: iu,
1746
+ merge: Ql
1747
+ }, Sa = Yl, kt = Ea, wt = Jr, lu = Object.prototype.hasOwnProperty, xa = {
1748
1748
  brackets: function(e) {
1749
1749
  return e + "[]";
1750
1750
  },
@@ -1755,9 +1755,9 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1755
1755
  repeat: function(e) {
1756
1756
  return e;
1757
1757
  }
1758
- }, we = Array.isArray, lu = Array.prototype.push, Oa = function(t, e) {
1759
- lu.apply(t, we(e) ? e : [e]);
1760
- }, uu = Date.prototype.toISOString, qn = wt.default, X = {
1758
+ }, we = Array.isArray, uu = Array.prototype.push, Oa = function(t, e) {
1759
+ uu.apply(t, we(e) ? e : [e]);
1760
+ }, su = Date.prototype.toISOString, qn = wt.default, X = {
1761
1761
  addQueryPrefix: !1,
1762
1762
  allowDots: !1,
1763
1763
  allowEmptyArrays: !1,
@@ -1774,14 +1774,14 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1774
1774
  // deprecated
1775
1775
  indices: !1,
1776
1776
  serializeDate: function(e) {
1777
- return uu.call(e);
1777
+ return su.call(e);
1778
1778
  },
1779
1779
  skipNulls: !1,
1780
1780
  strictNullHandling: !1
1781
- }, su = function(e) {
1781
+ }, cu = function(e) {
1782
1782
  return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
1783
- }, Sr = {}, cu = function t(e, r, n, a, o, l, u, i, d, s, g, v, w, f, y, p, m, h) {
1784
- for (var b = e, S = h, O = 0, _ = !1; (S = S.get(Sr)) !== void 0 && !_; ) {
1783
+ }, Sr = {}, fu = function t(e, r, n, a, o, l, u, i, f, s, h, v, w, d, y, p, m, g) {
1784
+ for (var b = e, S = g, O = 0, _ = !1; (S = S.get(Sr)) !== void 0 && !_; ) {
1785
1785
  var M = S.get(e);
1786
1786
  if (O += 1, typeof M < "u") {
1787
1787
  if (M === O)
@@ -1790,42 +1790,42 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1790
1790
  }
1791
1791
  typeof S.get(Sr) > "u" && (O = 0);
1792
1792
  }
1793
- if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = kt.maybeMap(b, function(pe) {
1794
- return pe instanceof Date ? w(pe) : pe;
1793
+ if (typeof s == "function" ? b = s(r, b) : b instanceof Date ? b = w(b) : n === "comma" && we(b) && (b = kt.maybeMap(b, function(ye) {
1794
+ return ye instanceof Date ? w(ye) : ye;
1795
1795
  })), b === null) {
1796
1796
  if (l)
1797
- return d && !p ? d(r, X.encoder, m, "key", f) : r;
1797
+ return f && !p ? f(r, X.encoder, m, "key", d) : r;
1798
1798
  b = "";
1799
1799
  }
1800
- if (su(b) || kt.isBuffer(b)) {
1801
- if (d) {
1802
- var W = p ? r : d(r, X.encoder, m, "key", f);
1803
- return [y(W) + "=" + y(d(b, X.encoder, m, "value", f))];
1800
+ if (cu(b) || kt.isBuffer(b)) {
1801
+ if (f) {
1802
+ var W = p ? r : f(r, X.encoder, m, "key", d);
1803
+ return [y(W) + "=" + y(f(b, X.encoder, m, "value", d))];
1804
1804
  }
1805
1805
  return [y(r) + "=" + y(String(b))];
1806
1806
  }
1807
1807
  var H = [];
1808
1808
  if (typeof b > "u")
1809
1809
  return H;
1810
- var k;
1810
+ var j;
1811
1811
  if (n === "comma" && we(b))
1812
- p && d && (b = kt.maybeMap(b, d)), k = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
1812
+ p && f && (b = kt.maybeMap(b, f)), j = [{ value: b.length > 0 ? b.join(",") || null : void 0 }];
1813
1813
  else if (we(s))
1814
- k = s;
1814
+ j = s;
1815
1815
  else {
1816
- var Y = Object.keys(b);
1817
- k = g ? Y.sort(g) : Y;
1816
+ var z = Object.keys(b);
1817
+ j = h ? z.sort(h) : z;
1818
1818
  }
1819
1819
  var V = i ? r.replace(/\./g, "%2E") : r, $ = a && we(b) && b.length === 1 ? V + "[]" : V;
1820
1820
  if (o && we(b) && b.length === 0)
1821
1821
  return $ + "[]";
1822
- for (var T = 0; T < k.length; ++T) {
1823
- var D = k[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
1822
+ for (var T = 0; T < j.length; ++T) {
1823
+ var D = j[T], ue = typeof D == "object" && typeof D.value < "u" ? D.value : b[D];
1824
1824
  if (!(u && ue === null)) {
1825
- var de = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, de) : $ : $ + (v ? "." + de : "[" + de + "]");
1826
- h.set(e, O);
1825
+ var pe = v && i ? D.replace(/\./g, "%2E") : D, ge = we(b) ? typeof n == "function" ? n($, pe) : $ : $ + (v ? "." + pe : "[" + pe + "]");
1826
+ g.set(e, O);
1827
1827
  var te = Sa();
1828
- te.set(Sr, h), Oa(H, t(
1828
+ te.set(Sr, g), Oa(H, t(
1829
1829
  ue,
1830
1830
  ge,
1831
1831
  n,
@@ -1834,12 +1834,12 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1834
1834
  l,
1835
1835
  u,
1836
1836
  i,
1837
- n === "comma" && p && we(b) ? null : d,
1837
+ n === "comma" && p && we(b) ? null : f,
1838
1838
  s,
1839
- g,
1839
+ h,
1840
1840
  v,
1841
1841
  w,
1842
- f,
1842
+ d,
1843
1843
  y,
1844
1844
  p,
1845
1845
  m,
@@ -1848,7 +1848,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1848
1848
  }
1849
1849
  }
1850
1850
  return H;
1851
- }, fu = function(e) {
1851
+ }, du = function(e) {
1852
1852
  if (!e)
1853
1853
  return X;
1854
1854
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -1862,7 +1862,7 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1862
1862
  throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
1863
1863
  var n = wt.default;
1864
1864
  if (typeof e.format < "u") {
1865
- if (!iu.call(wt.formatters, e.format))
1865
+ if (!lu.call(wt.formatters, e.format))
1866
1866
  throw new TypeError("Unknown format option provided.");
1867
1867
  n = e.format;
1868
1868
  }
@@ -1893,19 +1893,19 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1893
1893
  sort: typeof e.sort == "function" ? e.sort : null,
1894
1894
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : X.strictNullHandling
1895
1895
  };
1896
- }, du = function(t, e) {
1897
- var r = t, n = fu(e), a, o;
1896
+ }, pu = function(t, e) {
1897
+ var r = t, n = du(e), a, o;
1898
1898
  typeof n.filter == "function" ? (o = n.filter, r = o("", r)) : we(n.filter) && (o = n.filter, a = o);
1899
1899
  var l = [];
1900
1900
  if (typeof r != "object" || r === null)
1901
1901
  return "";
1902
1902
  var u = xa[n.arrayFormat], i = u === "comma" && n.commaRoundTrip;
1903
1903
  a || (a = Object.keys(r)), n.sort && a.sort(n.sort);
1904
- for (var d = Sa(), s = 0; s < a.length; ++s) {
1905
- var g = a[s];
1906
- n.skipNulls && r[g] === null || Oa(l, cu(
1907
- r[g],
1908
- g,
1904
+ for (var f = Sa(), s = 0; s < a.length; ++s) {
1905
+ var h = a[s];
1906
+ n.skipNulls && r[h] === null || Oa(l, fu(
1907
+ r[h],
1908
+ h,
1909
1909
  u,
1910
1910
  i,
1911
1911
  n.allowEmptyArrays,
@@ -1921,12 +1921,12 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1921
1921
  n.formatter,
1922
1922
  n.encodeValuesOnly,
1923
1923
  n.charset,
1924
- d
1924
+ f
1925
1925
  ));
1926
1926
  }
1927
1927
  var v = l.join(n.delimiter), w = n.addQueryPrefix === !0 ? "?" : "";
1928
1928
  return n.charsetSentinel && (n.charset === "iso-8859-1" ? w += "utf8=%26%2310003%3B&" : w += "utf8=%E2%9C%93&"), v.length > 0 ? w + v : "";
1929
- }, rt = Ea, _r = Object.prototype.hasOwnProperty, pu = Array.isArray, B = {
1929
+ }, rt = Ea, _r = Object.prototype.hasOwnProperty, yu = Array.isArray, B = {
1930
1930
  allowDots: !1,
1931
1931
  allowEmptyArrays: !1,
1932
1932
  allowPrototypes: !1,
@@ -1947,55 +1947,55 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1947
1947
  plainObjects: !1,
1948
1948
  strictDepth: !1,
1949
1949
  strictNullHandling: !1
1950
- }, yu = function(t) {
1950
+ }, vu = function(t) {
1951
1951
  return t.replace(/&#(\d+);/g, function(e, r) {
1952
1952
  return String.fromCharCode(parseInt(r, 10));
1953
1953
  });
1954
1954
  }, Pa = function(t, e) {
1955
1955
  return t && typeof t == "string" && e.comma && t.indexOf(",") > -1 ? t.split(",") : t;
1956
- }, vu = "utf8=%26%2310003%3B", mu = "utf8=%E2%9C%93", hu = function(e, r) {
1956
+ }, mu = "utf8=%26%2310003%3B", hu = "utf8=%E2%9C%93", gu = function(e, r) {
1957
1957
  var n = { __proto__: null }, a = r.ignoreQueryPrefix ? e.replace(/^\?/, "") : e;
1958
1958
  a = a.replace(/%5B/gi, "[").replace(/%5D/gi, "]");
1959
- var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, d = r.charset;
1959
+ var o = r.parameterLimit === 1 / 0 ? void 0 : r.parameterLimit, l = a.split(r.delimiter, o), u = -1, i, f = r.charset;
1960
1960
  if (r.charsetSentinel)
1961
1961
  for (i = 0; i < l.length; ++i)
1962
- l[i].indexOf("utf8=") === 0 && (l[i] === mu ? d = "utf-8" : l[i] === vu && (d = "iso-8859-1"), u = i, i = l.length);
1962
+ l[i].indexOf("utf8=") === 0 && (l[i] === hu ? f = "utf-8" : l[i] === mu && (f = "iso-8859-1"), u = i, i = l.length);
1963
1963
  for (i = 0; i < l.length; ++i)
1964
1964
  if (i !== u) {
1965
- var s = l[i], g = s.indexOf("]="), v = g === -1 ? s.indexOf("=") : g + 1, w, f;
1966
- v === -1 ? (w = r.decoder(s, B.decoder, d, "key"), f = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, d, "key"), f = rt.maybeMap(
1965
+ var s = l[i], h = s.indexOf("]="), v = h === -1 ? s.indexOf("=") : h + 1, w, d;
1966
+ v === -1 ? (w = r.decoder(s, B.decoder, f, "key"), d = r.strictNullHandling ? null : "") : (w = r.decoder(s.slice(0, v), B.decoder, f, "key"), d = rt.maybeMap(
1967
1967
  Pa(s.slice(v + 1), r),
1968
1968
  function(p) {
1969
- return r.decoder(p, B.decoder, d, "value");
1969
+ return r.decoder(p, B.decoder, f, "value");
1970
1970
  }
1971
- )), f && r.interpretNumericEntities && d === "iso-8859-1" && (f = yu(f)), s.indexOf("[]=") > -1 && (f = pu(f) ? [f] : f);
1971
+ )), d && r.interpretNumericEntities && f === "iso-8859-1" && (d = vu(d)), s.indexOf("[]=") > -1 && (d = yu(d) ? [d] : d);
1972
1972
  var y = _r.call(n, w);
1973
- y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], f) : (!y || r.duplicates === "last") && (n[w] = f);
1973
+ y && r.duplicates === "combine" ? n[w] = rt.combine(n[w], d) : (!y || r.duplicates === "last") && (n[w] = d);
1974
1974
  }
1975
1975
  return n;
1976
- }, gu = function(t, e, r, n) {
1976
+ }, bu = function(t, e, r, n) {
1977
1977
  for (var a = n ? e : Pa(e, r), o = t.length - 1; o >= 0; --o) {
1978
1978
  var l, u = t[o];
1979
1979
  if (u === "[]" && r.parseArrays)
1980
1980
  l = r.allowEmptyArrays && (a === "" || r.strictNullHandling && a === null) ? [] : [].concat(a);
1981
1981
  else {
1982
1982
  l = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
1983
- var i = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, d = r.decodeDotInKeys ? i.replace(/%2E/g, ".") : i, s = parseInt(d, 10);
1984
- !r.parseArrays && d === "" ? l = { 0: a } : !isNaN(s) && u !== d && String(s) === d && s >= 0 && r.parseArrays && s <= r.arrayLimit ? (l = [], l[s] = a) : d !== "__proto__" && (l[d] = a);
1983
+ var i = u.charAt(0) === "[" && u.charAt(u.length - 1) === "]" ? u.slice(1, -1) : u, f = r.decodeDotInKeys ? i.replace(/%2E/g, ".") : i, s = parseInt(f, 10);
1984
+ !r.parseArrays && f === "" ? l = { 0: a } : !isNaN(s) && u !== f && String(s) === f && s >= 0 && r.parseArrays && s <= r.arrayLimit ? (l = [], l[s] = a) : f !== "__proto__" && (l[f] = a);
1985
1985
  }
1986
1986
  a = l;
1987
1987
  }
1988
1988
  return a;
1989
- }, bu = function(e, r, n, a) {
1989
+ }, wu = function(e, r, n, a) {
1990
1990
  if (e) {
1991
- var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), d = i ? o.slice(0, i.index) : o, s = [];
1992
- if (d) {
1993
- if (!n.plainObjects && _r.call(Object.prototype, d) && !n.allowPrototypes)
1991
+ var o = n.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, l = /(\[[^[\]]*])/, u = /(\[[^[\]]*])/g, i = n.depth > 0 && l.exec(o), f = i ? o.slice(0, i.index) : o, s = [];
1992
+ if (f) {
1993
+ if (!n.plainObjects && _r.call(Object.prototype, f) && !n.allowPrototypes)
1994
1994
  return;
1995
- s.push(d);
1995
+ s.push(f);
1996
1996
  }
1997
- for (var g = 0; n.depth > 0 && (i = u.exec(o)) !== null && g < n.depth; ) {
1998
- if (g += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1997
+ for (var h = 0; n.depth > 0 && (i = u.exec(o)) !== null && h < n.depth; ) {
1998
+ if (h += 1, !n.plainObjects && _r.call(Object.prototype, i[1].slice(1, -1)) && !n.allowPrototypes)
1999
1999
  return;
2000
2000
  s.push(i[1]);
2001
2001
  }
@@ -2004,9 +2004,9 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2004
2004
  throw new RangeError("Input depth exceeded depth option of " + n.depth + " and strictDepth is true");
2005
2005
  s.push("[" + o.slice(i.index) + "]");
2006
2006
  }
2007
- return gu(s, r, n, a);
2007
+ return bu(s, r, n, a);
2008
2008
  }
2009
- }, wu = function(e) {
2009
+ }, Eu = function(e) {
2010
2010
  if (!e)
2011
2011
  return B;
2012
2012
  if (typeof e.allowEmptyArrays < "u" && typeof e.allowEmptyArrays != "boolean")
@@ -2044,20 +2044,20 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2044
2044
  strictDepth: typeof e.strictDepth == "boolean" ? !!e.strictDepth : B.strictDepth,
2045
2045
  strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : B.strictNullHandling
2046
2046
  };
2047
- }, Eu = function(t, e) {
2048
- var r = wu(e);
2047
+ }, Su = function(t, e) {
2048
+ var r = Eu(e);
2049
2049
  if (t === "" || t === null || typeof t > "u")
2050
2050
  return r.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
2051
- for (var n = typeof t == "string" ? hu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
2052
- var u = o[l], i = bu(u, n[u], r, typeof t == "string");
2051
+ for (var n = typeof t == "string" ? gu(t, r) : t, a = r.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, o = Object.keys(n), l = 0; l < o.length; ++l) {
2052
+ var u = o[l], i = wu(u, n[u], r, typeof t == "string");
2053
2053
  a = rt.merge(a, i, r);
2054
2054
  }
2055
2055
  return r.allowSparse === !0 ? a : rt.compact(a);
2056
- }, Su = du, xu = Eu, Ou = Jr, Gn = {
2057
- formats: Ou,
2058
- parse: xu,
2059
- stringify: Su
2060
- }, Pu = { exports: {} };
2056
+ }, xu = pu, Ou = Su, Pu = Jr, Gn = {
2057
+ formats: Pu,
2058
+ parse: Ou,
2059
+ stringify: xu
2060
+ }, Au = { exports: {} };
2061
2061
  /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
2062
2062
  * @license MIT */
2063
2063
  (function(t, e) {
@@ -2080,93 +2080,93 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2080
2080
  parent: "body",
2081
2081
  template: '<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'
2082
2082
  };
2083
- r.configure = function(f) {
2083
+ r.configure = function(d) {
2084
2084
  var y, p;
2085
- for (y in f)
2086
- p = f[y], p !== void 0 && f.hasOwnProperty(y) && (n[y] = p);
2085
+ for (y in d)
2086
+ p = d[y], p !== void 0 && d.hasOwnProperty(y) && (n[y] = p);
2087
2087
  return this;
2088
- }, r.status = null, r.set = function(f) {
2088
+ }, r.status = null, r.set = function(d) {
2089
2089
  var y = r.isStarted();
2090
- f = a(f, n.minimum, 1), r.status = f === 1 ? null : f;
2091
- var p = r.render(!y), m = p.querySelector(n.barSelector), h = n.speed, b = n.easing;
2090
+ d = a(d, n.minimum, 1), r.status = d === 1 ? null : d;
2091
+ var p = r.render(!y), m = p.querySelector(n.barSelector), g = n.speed, b = n.easing;
2092
2092
  return p.offsetWidth, u(function(S) {
2093
- n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(f, h, b)), f === 1 ? (i(p, {
2093
+ n.positionUsing === "" && (n.positionUsing = r.getPositioningCSS()), i(m, l(d, g, b)), d === 1 ? (i(p, {
2094
2094
  transition: "none",
2095
2095
  opacity: 1
2096
2096
  }), p.offsetWidth, setTimeout(function() {
2097
2097
  i(p, {
2098
- transition: "all " + h + "ms linear",
2098
+ transition: "all " + g + "ms linear",
2099
2099
  opacity: 0
2100
2100
  }), setTimeout(function() {
2101
2101
  r.remove(), S();
2102
- }, h);
2103
- }, h)) : setTimeout(S, h);
2102
+ }, g);
2103
+ }, g)) : setTimeout(S, g);
2104
2104
  }), this;
2105
2105
  }, r.isStarted = function() {
2106
2106
  return typeof r.status == "number";
2107
2107
  }, r.start = function() {
2108
2108
  r.status || r.set(0);
2109
- var f = function() {
2109
+ var d = function() {
2110
2110
  setTimeout(function() {
2111
- r.status && (r.trickle(), f());
2111
+ r.status && (r.trickle(), d());
2112
2112
  }, n.trickleSpeed);
2113
2113
  };
2114
- return n.trickle && f(), this;
2115
- }, r.done = function(f) {
2116
- return !f && !r.status ? this : r.inc(0.3 + 0.5 * Math.random()).set(1);
2117
- }, r.inc = function(f) {
2114
+ return n.trickle && d(), this;
2115
+ }, r.done = function(d) {
2116
+ return !d && !r.status ? this : r.inc(0.3 + 0.5 * Math.random()).set(1);
2117
+ }, r.inc = function(d) {
2118
2118
  var y = r.status;
2119
- return y ? (typeof f != "number" && (f = (1 - y) * a(Math.random() * y, 0.1, 0.95)), y = a(y + f, 0, 0.994), r.set(y)) : r.start();
2119
+ return y ? (typeof d != "number" && (d = (1 - y) * a(Math.random() * y, 0.1, 0.95)), y = a(y + d, 0, 0.994), r.set(y)) : r.start();
2120
2120
  }, r.trickle = function() {
2121
2121
  return r.inc(Math.random() * n.trickleRate);
2122
2122
  }, function() {
2123
- var f = 0, y = 0;
2123
+ var d = 0, y = 0;
2124
2124
  r.promise = function(p) {
2125
- return !p || p.state() === "resolved" ? this : (y === 0 && r.start(), f++, y++, p.always(function() {
2126
- y--, y === 0 ? (f = 0, r.done()) : r.set((f - y) / f);
2125
+ return !p || p.state() === "resolved" ? this : (y === 0 && r.start(), d++, y++, p.always(function() {
2126
+ y--, y === 0 ? (d = 0, r.done()) : r.set((d - y) / d);
2127
2127
  }), this);
2128
2128
  };
2129
- }(), r.render = function(f) {
2129
+ }(), r.render = function(d) {
2130
2130
  if (r.isRendered()) return document.getElementById("nprogress");
2131
2131
  s(document.documentElement, "nprogress-busy");
2132
2132
  var y = document.createElement("div");
2133
2133
  y.id = "nprogress", y.innerHTML = n.template;
2134
- var p = y.querySelector(n.barSelector), m = f ? "-100" : o(r.status || 0), h = document.querySelector(n.parent), b;
2134
+ var p = y.querySelector(n.barSelector), m = d ? "-100" : o(r.status || 0), g = document.querySelector(n.parent), b;
2135
2135
  return i(p, {
2136
2136
  transition: "all 0 linear",
2137
2137
  transform: "translate3d(" + m + "%,0,0)"
2138
- }), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), h != document.body && s(h, "nprogress-custom-parent"), h.appendChild(y), y;
2138
+ }), n.showSpinner || (b = y.querySelector(n.spinnerSelector), b && w(b)), g != document.body && s(g, "nprogress-custom-parent"), g.appendChild(y), y;
2139
2139
  }, r.remove = function() {
2140
- g(document.documentElement, "nprogress-busy"), g(document.querySelector(n.parent), "nprogress-custom-parent");
2141
- var f = document.getElementById("nprogress");
2142
- f && w(f);
2140
+ h(document.documentElement, "nprogress-busy"), h(document.querySelector(n.parent), "nprogress-custom-parent");
2141
+ var d = document.getElementById("nprogress");
2142
+ d && w(d);
2143
2143
  }, r.isRendered = function() {
2144
2144
  return !!document.getElementById("nprogress");
2145
2145
  }, r.getPositioningCSS = function() {
2146
- var f = document.body.style, y = "WebkitTransform" in f ? "Webkit" : "MozTransform" in f ? "Moz" : "msTransform" in f ? "ms" : "OTransform" in f ? "O" : "";
2147
- return y + "Perspective" in f ? "translate3d" : y + "Transform" in f ? "translate" : "margin";
2146
+ var d = document.body.style, y = "WebkitTransform" in d ? "Webkit" : "MozTransform" in d ? "Moz" : "msTransform" in d ? "ms" : "OTransform" in d ? "O" : "";
2147
+ return y + "Perspective" in d ? "translate3d" : y + "Transform" in d ? "translate" : "margin";
2148
2148
  };
2149
- function a(f, y, p) {
2150
- return f < y ? y : f > p ? p : f;
2149
+ function a(d, y, p) {
2150
+ return d < y ? y : d > p ? p : d;
2151
2151
  }
2152
- function o(f) {
2153
- return (-1 + f) * 100;
2152
+ function o(d) {
2153
+ return (-1 + d) * 100;
2154
2154
  }
2155
- function l(f, y, p) {
2155
+ function l(d, y, p) {
2156
2156
  var m;
2157
- return n.positionUsing === "translate3d" ? m = { transform: "translate3d(" + o(f) + "%,0,0)" } : n.positionUsing === "translate" ? m = { transform: "translate(" + o(f) + "%,0)" } : m = { "margin-left": o(f) + "%" }, m.transition = "all " + y + "ms " + p, m;
2157
+ return n.positionUsing === "translate3d" ? m = { transform: "translate3d(" + o(d) + "%,0,0)" } : n.positionUsing === "translate" ? m = { transform: "translate(" + o(d) + "%,0)" } : m = { "margin-left": o(d) + "%" }, m.transition = "all " + y + "ms " + p, m;
2158
2158
  }
2159
2159
  var u = /* @__PURE__ */ function() {
2160
- var f = [];
2160
+ var d = [];
2161
2161
  function y() {
2162
- var p = f.shift();
2162
+ var p = d.shift();
2163
2163
  p && p(y);
2164
2164
  }
2165
2165
  return function(p) {
2166
- f.push(p), f.length == 1 && y();
2166
+ d.push(p), d.length == 1 && y();
2167
2167
  };
2168
2168
  }(), i = /* @__PURE__ */ function() {
2169
- var f = ["Webkit", "O", "Moz", "ms"], y = {};
2169
+ var d = ["Webkit", "O", "Moz", "ms"], y = {};
2170
2170
  function p(S) {
2171
2171
  return S.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(O, _) {
2172
2172
  return _.toUpperCase();
@@ -2175,15 +2175,15 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2175
2175
  function m(S) {
2176
2176
  var O = document.body.style;
2177
2177
  if (S in O) return S;
2178
- for (var _ = f.length, M = S.charAt(0).toUpperCase() + S.slice(1), W; _--; )
2179
- if (W = f[_] + M, W in O) return W;
2178
+ for (var _ = d.length, M = S.charAt(0).toUpperCase() + S.slice(1), W; _--; )
2179
+ if (W = d[_] + M, W in O) return W;
2180
2180
  return S;
2181
2181
  }
2182
- function h(S) {
2182
+ function g(S) {
2183
2183
  return S = p(S), y[S] || (y[S] = m(S));
2184
2184
  }
2185
2185
  function b(S, O, _) {
2186
- O = h(O), S.style[O] = _;
2186
+ O = g(O), S.style[O] = _;
2187
2187
  }
2188
2188
  return function(S, O) {
2189
2189
  var _ = arguments, M, W;
@@ -2194,105 +2194,105 @@ var ba = nt, at = nl, Dl = ml, Nl = Pt, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2194
2194
  b(S, _[1], _[2]);
2195
2195
  };
2196
2196
  }();
2197
- function d(f, y) {
2198
- var p = typeof f == "string" ? f : v(f);
2197
+ function f(d, y) {
2198
+ var p = typeof d == "string" ? d : v(d);
2199
2199
  return p.indexOf(" " + y + " ") >= 0;
2200
2200
  }
2201
- function s(f, y) {
2202
- var p = v(f), m = p + y;
2203
- d(p, y) || (f.className = m.substring(1));
2201
+ function s(d, y) {
2202
+ var p = v(d), m = p + y;
2203
+ f(p, y) || (d.className = m.substring(1));
2204
2204
  }
2205
- function g(f, y) {
2206
- var p = v(f), m;
2207
- d(f, y) && (m = p.replace(" " + y + " ", " "), f.className = m.substring(1, m.length - 1));
2205
+ function h(d, y) {
2206
+ var p = v(d), m;
2207
+ f(d, y) && (m = p.replace(" " + y + " ", " "), d.className = m.substring(1, m.length - 1));
2208
2208
  }
2209
- function v(f) {
2210
- return (" " + (f.className || "") + " ").replace(/\s+/gi, " ");
2209
+ function v(d) {
2210
+ return (" " + (d.className || "") + " ").replace(/\s+/gi, " ");
2211
2211
  }
2212
- function w(f) {
2213
- f && f.parentNode && f.parentNode.removeChild(f);
2212
+ function w(d) {
2213
+ d && d.parentNode && d.parentNode.removeChild(d);
2214
2214
  }
2215
2215
  return r;
2216
2216
  });
2217
- })(Pu);
2218
- function Au(t, e, r, n = "brackets") {
2219
- let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), d = new URL(e.toString(), "http://localhost");
2220
- return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(li(Gn.parse(d.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${d.protocol}//${d.host}` : "", o ? d.pathname : "", l ? d.pathname.substring(1) : "", u ? d.search : "", i ? d.hash : ""].join(""), r];
2217
+ })(Au);
2218
+ function Tu(t, e, r, n = "brackets") {
2219
+ let a = /^https?:\/\//.test(e.toString()), o = a || e.toString().startsWith("/"), l = !o && !e.toString().startsWith("#") && !e.toString().startsWith("?"), u = e.toString().includes("?") || t === "get" && Object.keys(r).length, i = e.toString().includes("#"), f = new URL(e.toString(), "http://localhost");
2220
+ return t === "get" && Object.keys(r).length && (f.search = Gn.stringify(ui(Gn.parse(f.search, { ignoreQueryPrefix: !0 }), r), { encodeValuesOnly: !0, arrayFormat: n }), r = {}), [[a ? `${f.protocol}//${f.host}` : "", o ? f.pathname : "", l ? f.pathname.substring(1) : "", u ? f.search : "", i ? f.hash : ""].join(""), r];
2221
2221
  }
2222
- const zt = ce(null);
2222
+ const zt = fe(null);
2223
2223
  zt.displayName = "ModalStackContext";
2224
2224
  let Aa = null, Ta = null, Dr = null, Nr = null, Yn = [];
2225
- const Tu = ({ children: t }) => {
2225
+ const $u = ({ children: t }) => {
2226
2226
  const [e, r] = Q([]), [n, a] = Q({}), o = (y) => {
2227
2227
  r((p) => {
2228
- const m = y([...p]), h = (b) => {
2228
+ const m = y([...p]), g = (b) => {
2229
2229
  var S;
2230
2230
  return m.length < 2 ? !0 : ((S = m.map((O) => ({ id: O.id, shouldRender: O.shouldRender })).reverse().find((O) => O.shouldRender)) == null ? void 0 : S.id) === b;
2231
2231
  };
2232
2232
  return m.forEach((b, S) => {
2233
- m[S].onTopOfStack = h(b.id), m[S].getParentModal = () => S < 1 ? null : m.slice(0, S).reverse().find((O) => O.isOpen), m[S].getChildModal = () => S === m.length - 1 ? null : m.slice(S + 1).find((O) => O.isOpen);
2233
+ m[S].onTopOfStack = g(b.id), m[S].getParentModal = () => S < 1 ? null : m.slice(0, S).reverse().find((O) => O.isOpen), m[S].getChildModal = () => S === m.length - 1 ? null : m.slice(S + 1).find((O) => O.isOpen);
2234
2234
  }), m;
2235
2235
  });
2236
2236
  };
2237
- K(() => {
2237
+ Y(() => {
2238
2238
  Yn = e;
2239
2239
  }, [e]);
2240
2240
  class l {
2241
- constructor(p, m, h, b, S) {
2242
- ye(this, "update", (p, m, h) => {
2241
+ constructor(p, m, g, b, S) {
2242
+ ce(this, "update", (p, m, g) => {
2243
2243
  o(
2244
- (b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = h), S))
2244
+ (b) => b.map((S) => (S.id === this.id && (S.config = p, S.onCloseCallback = m, S.afterLeaveCallback = g), S))
2245
2245
  );
2246
2246
  });
2247
- ye(this, "show", () => {
2247
+ ce(this, "show", () => {
2248
2248
  o(
2249
2249
  (p) => p.map((m) => (m.id === this.id && !m.isOpen && (m.isOpen = !0, m.shouldRender = !0), m))
2250
2250
  );
2251
2251
  });
2252
- ye(this, "setOpen", (p) => {
2252
+ ce(this, "setOpen", (p) => {
2253
2253
  p ? this.show() : this.close();
2254
2254
  });
2255
- ye(this, "close", () => {
2255
+ ce(this, "close", () => {
2256
2256
  o(
2257
2257
  (p) => p.map((m) => {
2258
- var h;
2258
+ var g;
2259
2259
  return m.id === this.id && m.isOpen && (Object.keys(m.listeners).forEach((b) => {
2260
2260
  m.off(b);
2261
- }), m.isOpen = !1, (h = m.onCloseCallback) == null || h.call(m)), m;
2261
+ }), m.isOpen = !1, (g = m.onCloseCallback) == null || g.call(m)), m;
2262
2262
  })
2263
2263
  );
2264
2264
  });
2265
- ye(this, "afterLeave", () => {
2265
+ ce(this, "afterLeave", () => {
2266
2266
  this.isOpen || o((p) => {
2267
- const m = p.map((h) => {
2267
+ const m = p.map((g) => {
2268
2268
  var b;
2269
- return h.id === this.id && !h.isOpen && (h.shouldRender = !1, (b = h.afterLeaveCallback) == null || b.call(h), h.afterLeaveCallback = null), h;
2269
+ return g.id === this.id && !g.isOpen && (g.shouldRender = !1, (b = g.afterLeaveCallback) == null || b.call(g), g.afterLeaveCallback = null), g;
2270
2270
  });
2271
2271
  return this.index === 0 ? [] : m;
2272
2272
  });
2273
2273
  });
2274
- ye(this, "on", (p, m) => {
2274
+ ce(this, "on", (p, m) => {
2275
2275
  this.listeners[p] = this.listeners[p] ?? [], this.listeners[p].push(m);
2276
2276
  });
2277
- ye(this, "off", (p, m) => {
2278
- var h;
2279
- m ? this.listeners[p] = ((h = this.listeners[p]) == null ? void 0 : h.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
2277
+ ce(this, "off", (p, m) => {
2278
+ var g;
2279
+ m ? this.listeners[p] = ((g = this.listeners[p]) == null ? void 0 : g.filter((b) => b !== m)) ?? [] : delete this.listeners[p];
2280
2280
  });
2281
- ye(this, "emit", (p, ...m) => {
2282
- var h;
2283
- (h = this.listeners[p]) == null || h.forEach((b) => b(...m));
2281
+ ce(this, "emit", (p, ...m) => {
2282
+ var g;
2283
+ (g = this.listeners[p]) == null || g.forEach((b) => b(...m));
2284
2284
  });
2285
- ye(this, "registerEventListenersFromProps", (p) => {
2285
+ ce(this, "registerEventListenersFromProps", (p) => {
2286
2286
  const m = [];
2287
- return Object.keys(p).filter((h) => h.startsWith("on")).forEach((h) => {
2288
- const b = h.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
2289
- this.on(b, p[h]), m.push(() => this.off(b, p[h]));
2290
- }), () => m.forEach((h) => h());
2287
+ return Object.keys(p).filter((g) => g.startsWith("on")).forEach((g) => {
2288
+ const b = g.replace(/^on/, "").replace(/^./, (S) => S.toLowerCase()).replace(/([A-Z])/g, "-$1").toLowerCase();
2289
+ this.on(b, p[g]), m.push(() => this.off(b, p[g]));
2290
+ }), () => m.forEach((g) => g());
2291
2291
  });
2292
- ye(this, "reload", (p = {}) => {
2293
- var h;
2292
+ ce(this, "reload", (p = {}) => {
2293
+ var g;
2294
2294
  let m = Object.keys(this.response.props);
2295
- p.only && (m = aa(m, p.only)), p.except && (m = Vo(m, p.except)), (h = this.response) != null && h.url && jt.get(this.response.url, {
2295
+ p.only && (m = aa(m, p.only)), p.except && (m = qo(m, p.except)), (g = this.response) != null && g.url && jt.get(this.response.url, {
2296
2296
  headers: {
2297
2297
  Accept: "text/html, application/xhtml+xml",
2298
2298
  "X-Inertia": !0,
@@ -2303,26 +2303,29 @@ const Tu = ({ children: t }) => {
2303
2303
  "X-InertiaUI-Modal-Use-Router": 0
2304
2304
  }
2305
2305
  }).then((b) => {
2306
- Object.assign(this.props, b.data.props), o((S) => S);
2306
+ this.updateProps(b.data.props);
2307
2307
  });
2308
2308
  });
2309
- this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = h, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
2309
+ ce(this, "updateProps", (p) => {
2310
+ Object.assign(this.props, p), o((m) => m);
2311
+ });
2312
+ this.id = l.generateId(), this.isOpen = !1, this.shouldRender = !1, this.listeners = {}, this.component = p, this.props = m.props, this.response = m, this.config = g, this.onCloseCallback = b, this.afterLeaveCallback = S, this.index = -1, this.getParentModal = () => null, this.getChildModal = () => null, this.onTopOfStack = !0;
2310
2313
  }
2311
2314
  static generateId() {
2312
2315
  return typeof crypto < "u" && typeof crypto.randomUUID == "function" ? `inertiaui_modal_${crypto.randomUUID()}` : `inertiaui_modal_${Date.now().toString(36)}_${Math.random().toString(36).substr(2, 9)}`;
2313
2316
  }
2314
2317
  }
2315
- const u = (y, p = {}, m = null, h = null) => Ta(y.component).then((b) => i(b, y, p, m, h)), i = (y, p, m, h, b) => {
2316
- const S = new l(y, p, m, h, b);
2318
+ const u = (y, p = {}, m = null, g = null) => Ta(y.component).then((b) => i(b, y, p, m, g)), i = (y, p, m, g, b) => {
2319
+ const S = new l(y, p, m, g, b);
2317
2320
  return S.index = e.length, o((O) => [...O, S]), S.show(), S;
2318
2321
  };
2319
- function d(y, p, m, h) {
2322
+ function f(y, p, m, g) {
2320
2323
  if (!n[y])
2321
2324
  throw new Error(`The local modal "${y}" has not been registered.`);
2322
- const b = i(null, {}, p, m, h);
2325
+ const b = i(null, {}, p, m, g);
2323
2326
  return b.name = y, n[y].callback(b), b;
2324
2327
  }
2325
- const s = (y, p = {}) => g(
2328
+ const s = (y, p = {}) => h(
2326
2329
  y,
2327
2330
  p.method ?? "get",
2328
2331
  p.data ?? {},
@@ -2332,15 +2335,15 @@ const Tu = ({ children: t }) => {
2332
2335
  p.onAfterLeave,
2333
2336
  p.queryStringArrayFormat ?? "brackets",
2334
2337
  p.navigate ?? Vr("navigate")
2335
- ), g = (y, p, m = {}, h = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2338
+ ), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2336
2339
  if (y.startsWith("#")) {
2337
- W(d(y.substring(1), b, S, O));
2340
+ W(f(y.substring(1), b, S, O));
2338
2341
  return;
2339
2342
  }
2340
- const [k, Y] = Au(p, y || "", m, _);
2343
+ const [j, z] = Tu(p, y || "", m, _);
2341
2344
  let V = M && e.length === 0;
2342
- if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), h = {
2343
- ...h,
2345
+ if (e.length === 0 && (Dr = typeof window < "u" ? window.location.href : ""), g = {
2346
+ ...g,
2344
2347
  Accept: "text/html, application/xhtml+xml",
2345
2348
  "X-Requested-With": "XMLHttpRequest",
2346
2349
  "X-Inertia": !0,
@@ -2348,15 +2351,15 @@ const Tu = ({ children: t }) => {
2348
2351
  "X-InertiaUI-Modal": !0,
2349
2352
  "X-InertiaUI-Modal-Use-Router": V ? 1 : 0
2350
2353
  }, V)
2351
- return vt.visit(k, {
2354
+ return Nr = null, vt.visit(j, {
2352
2355
  method: p,
2353
- data: Y,
2354
- headers: h,
2356
+ data: z,
2357
+ headers: g,
2355
2358
  preserveScroll: !0,
2356
2359
  preserveState: !0,
2357
2360
  onError: H,
2358
2361
  onFinish: () => {
2359
- Go(() => Nr).then(($) => {
2362
+ Yo(() => Nr).then(($) => {
2360
2363
  const T = $.onCloseCallback, D = $.afterLeaveCallback;
2361
2364
  $.update(
2362
2365
  b,
@@ -2366,19 +2369,19 @@ const Tu = ({ children: t }) => {
2366
2369
  () => {
2367
2370
  O == null || O(), D == null || D();
2368
2371
  }
2369
- ), W($), Nr = null;
2372
+ ), W($);
2370
2373
  });
2371
2374
  }
2372
2375
  });
2373
2376
  jt({
2374
- url: k,
2377
+ url: j,
2375
2378
  method: p,
2376
- data: Y,
2377
- headers: h
2379
+ data: z,
2380
+ headers: g
2378
2381
  }).then(($) => W(u($.data, b, S, O))).catch(($) => {
2379
2382
  H($);
2380
2383
  });
2381
- }), f = {
2384
+ }), d = {
2382
2385
  stack: e,
2383
2386
  localModals: n,
2384
2387
  push: i,
@@ -2387,7 +2390,7 @@ const Tu = ({ children: t }) => {
2387
2390
  Yn.reverse().forEach((y) => y.close());
2388
2391
  },
2389
2392
  reset: () => o(() => []),
2390
- visit: g,
2393
+ visit: h,
2391
2394
  visitModal: s,
2392
2395
  registerLocalModal: (y, p) => {
2393
2396
  a((m) => ({
@@ -2402,52 +2405,59 @@ const Tu = ({ children: t }) => {
2402
2405
  });
2403
2406
  }
2404
2407
  };
2405
- return /* @__PURE__ */ R.jsx(zt.Provider, { value: f, children: t });
2408
+ return /* @__PURE__ */ R.jsx(zt.Provider, { value: d, children: t });
2406
2409
  }, Kt = () => {
2407
2410
  const t = ie(zt);
2408
2411
  if (t === null)
2409
2412
  throw new Error("useModalStack must be used within a ModalStackProvider");
2410
2413
  return t;
2411
- }, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Pc = (t, e) => {
2414
+ }, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Ac = (t, e) => {
2412
2415
  e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
2413
2416
  const r = ({ Component: n, props: a, key: o }) => {
2414
2417
  const l = () => {
2415
2418
  const u = Pr(n, { key: o, ...a });
2416
- return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((d, s) => Pr(s, a, d)) : u;
2419
+ return typeof n.layout == "function" ? n.layout(u) : Array.isArray(n.layout) ? n.layout.concat(u).reverse().reduce((f, s) => Pr(s, a, f)) : u;
2417
2420
  };
2418
2421
  return /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2419
2422
  l(),
2420
- /* @__PURE__ */ R.jsx($u, {})
2423
+ /* @__PURE__ */ R.jsx(Ru, {})
2421
2424
  ] });
2422
2425
  };
2423
- return /* @__PURE__ */ R.jsx(Tu, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
2424
- }, $u = ({ children: t }) => {
2426
+ return /* @__PURE__ */ R.jsx($u, { children: /* @__PURE__ */ R.jsx(t, { ...e, children: r }) });
2427
+ }, Ru = ({ children: t }) => {
2428
+ var u;
2425
2429
  const e = ie(zt);
2426
2430
  let r = !1, n = !1;
2427
- K(() => vt.on("start", () => r = !0), []), K(() => vt.on("finish", () => r = !1), []), K(
2428
- () => vt.on("navigate", function(o) {
2429
- const l = o.detail.page.props._inertiaui_modal;
2430
- if (!l) {
2431
+ Y(() => vt.on("start", () => r = !0), []), Y(() => vt.on("finish", () => r = !1), []), Y(
2432
+ () => vt.on("navigate", function(i) {
2433
+ const f = i.detail.page.props._inertiaui_modal;
2434
+ if (!f) {
2431
2435
  n && e.closeAll();
2432
2436
  return;
2433
2437
  }
2434
- n = l, Dr = l.baseUrl, e.pushFromResponseData(l, {}, () => {
2435
- if (!l.baseUrl) {
2438
+ n = f, Dr = f.baseUrl, e.pushFromResponseData(f, {}, () => {
2439
+ if (!f.baseUrl) {
2436
2440
  console.error("No base url in modal response data so cannot navigate back");
2437
2441
  return;
2438
2442
  }
2439
- !r && window.location.href !== l.baseUrl && vt.visit(l.baseUrl, {
2443
+ !r && window.location.href !== f.baseUrl && vt.visit(f.baseUrl, {
2440
2444
  preserveScroll: !0,
2441
2445
  preserveState: !0
2442
2446
  });
2443
- }).then((u) => {
2444
- Nr = u;
2447
+ }).then((s) => {
2448
+ Nr = s;
2445
2449
  });
2446
2450
  }),
2447
2451
  []
2448
2452
  );
2449
- const a = (o) => (o.headers["X-InertiaUI-Modal-Base-Url"] = Dr, o);
2450
- return K(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2453
+ const a = (i) => (i.headers["X-InertiaUI-Modal-Base-Url"] = Dr, i);
2454
+ Y(() => (jt.interceptors.request.use(a), () => jt.interceptors.request.eject(a)), []);
2455
+ const o = jo(), l = k();
2456
+ return Y(() => {
2457
+ var s, h;
2458
+ const i = (s = o.props) == null ? void 0 : s._inertiaui_modal, f = l.current;
2459
+ l.current = i, i && f && i.component === f.component && i.url === f.url && ((h = e.stack[0]) == null || h.updateProps(i.props ?? {}));
2460
+ }, [(u = o.props) == null ? void 0 : u._inertiaui_modal]), /* @__PURE__ */ R.jsxs(R.Fragment, { children: [
2451
2461
  t,
2452
2462
  e.stack.length > 0 && /* @__PURE__ */ R.jsx(Ra, { index: 0 })
2453
2463
  ] });
@@ -2468,9 +2478,9 @@ const $a = () => {
2468
2478
  }
2469
2479
  ) });
2470
2480
  }, Fa = Hr(({ name: t, children: e, ...r }, n) => {
2471
- const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Kt(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), g = J(() => {
2472
- var f;
2473
- return (f = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : f.index;
2481
+ const a = $a(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Kt(), [i, f] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2482
+ var d;
2483
+ return (d = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : d.index;
2474
2484
  }, [a, o]), v = J(() => (s == null ? void 0 : s.config.slideover) ?? r.slideover ?? Vr("type") === "slideover", [r.slideover]), w = J(
2475
2485
  () => ({
2476
2486
  slideover: v,
@@ -2484,13 +2494,13 @@ const $a = () => {
2484
2494
  }),
2485
2495
  [r, s == null ? void 0 : s.config]
2486
2496
  );
2487
- return K(() => {
2497
+ return Y(() => {
2488
2498
  if (t) {
2489
- let f = null;
2499
+ let d = null;
2490
2500
  return l(t, (y) => {
2491
- f = y.registerEventListenersFromProps(r), d(y);
2501
+ d = y.registerEventListenersFromProps(r), f(y);
2492
2502
  }), () => {
2493
- f == null || f(), f = null, u(t);
2503
+ d == null || d(), d = null, u(t);
2494
2504
  };
2495
2505
  }
2496
2506
  return s.registerEventListenersFromProps(r);
@@ -2500,7 +2510,7 @@ const $a = () => {
2500
2510
  afterLeave: () => s.afterLeave(),
2501
2511
  close: () => s.close(),
2502
2512
  config: w,
2503
- emit: (...f) => s.emit(...f),
2513
+ emit: (...d) => s.emit(...d),
2504
2514
  getChildModal: () => s.getChildModal(),
2505
2515
  getParentModal: () => s.getParentModal(),
2506
2516
  id: s == null ? void 0 : s.id,
@@ -2530,7 +2540,7 @@ const $a = () => {
2530
2540
  setOpen: s.setOpen,
2531
2541
  shouldRender: s.shouldRender
2532
2542
  }) : e,
2533
- g && /* @__PURE__ */ R.jsx(Ra, { index: g })
2543
+ h && /* @__PURE__ */ R.jsx(Ra, { index: h })
2534
2544
  ] });
2535
2545
  });
2536
2546
  Fa.displayName = "HeadlessModal";
@@ -2547,8 +2557,8 @@ function Ht() {
2547
2557
  for (var t, e, r = 0, n = "", a = arguments.length; r < a; r++) (t = arguments[r]) && (e = Ca(t)) && (n && (n += " "), n += e);
2548
2558
  return n;
2549
2559
  }
2550
- var Ru = Object.defineProperty, Fu = (t, e, r) => e in t ? Ru(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Fu(t, typeof e != "symbol" ? e + "" : e, r), r);
2551
- let Cu = class {
2560
+ var Fu = Object.defineProperty, Cu = (t, e, r) => e in t ? Fu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, xr = (t, e, r) => (Cu(t, typeof e != "symbol" ? e + "" : e, r), r);
2561
+ let Iu = class {
2552
2562
  constructor() {
2553
2563
  xr(this, "current", this.detect()), xr(this, "handoffState", "pending"), xr(this, "currentId", 0);
2554
2564
  }
@@ -2576,7 +2586,7 @@ let Cu = class {
2576
2586
  get isHandoffComplete() {
2577
2587
  return this.handoffState === "complete";
2578
2588
  }
2579
- }, Ve = new Cu();
2589
+ }, Ve = new Iu();
2580
2590
  function Xt(t) {
2581
2591
  return Ve.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
2582
2592
  }
@@ -2623,13 +2633,13 @@ function Me() {
2623
2633
  }
2624
2634
  function Zr() {
2625
2635
  let [t] = Q(Me);
2626
- return K(() => () => t.dispose(), [t]), t;
2636
+ return Y(() => () => t.dispose(), [t]), t;
2627
2637
  }
2628
2638
  let ae = (t, e) => {
2629
- Ve.isServer ? K(t, e) : Io(t, e);
2639
+ Ve.isServer ? Y(t, e) : Io(t, e);
2630
2640
  };
2631
2641
  function qe(t) {
2632
- let e = j(t);
2642
+ let e = k(t);
2633
2643
  return ae(() => {
2634
2644
  e.current = t;
2635
2645
  }, [t]), e;
@@ -2637,9 +2647,9 @@ function qe(t) {
2637
2647
  let U = function(t) {
2638
2648
  let e = qe(t);
2639
2649
  return A.useCallback((...r) => e.current(...r), [e]);
2640
- }, Iu = ce(void 0);
2641
- function Mu() {
2642
- return ie(Iu);
2650
+ }, Mu = fe(void 0);
2651
+ function _u() {
2652
+ return ie(Mu);
2643
2653
  }
2644
2654
  function kr(...t) {
2645
2655
  return Array.from(new Set(t.flatMap((e) => typeof e == "string" ? e.split(" ") : []))).filter(Boolean).join(" ");
@@ -2653,62 +2663,62 @@ function Ce(t, e, ...r) {
2653
2663
  throw Error.captureStackTrace && Error.captureStackTrace(n, Ce), n;
2654
2664
  }
2655
2665
  var Vt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Vt || {}), Fe = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Fe || {});
2656
- function fe() {
2657
- let t = Du();
2658
- return ve((e) => _u({ mergeRefs: t, ...e }), [t]);
2666
+ function de() {
2667
+ let t = Nu();
2668
+ return ve((e) => Du({ mergeRefs: t, ...e }), [t]);
2659
2669
  }
2660
- function _u({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
2661
- u = u ?? Nu;
2670
+ function Du({ ourProps: t, theirProps: e, slot: r, defaultTag: n, features: a, visible: o = !0, name: l, mergeRefs: u }) {
2671
+ u = u ?? ku;
2662
2672
  let i = Ia(e, t);
2663
2673
  if (o) return Dt(i, r, n, l, u);
2664
- let d = a ?? 0;
2665
- if (d & 2) {
2666
- let { static: s = !1, ...g } = i;
2667
- if (s) return Dt(g, r, n, l, u);
2674
+ let f = a ?? 0;
2675
+ if (f & 2) {
2676
+ let { static: s = !1, ...h } = i;
2677
+ if (s) return Dt(h, r, n, l, u);
2668
2678
  }
2669
- if (d & 1) {
2670
- let { unmount: s = !0, ...g } = i;
2679
+ if (f & 1) {
2680
+ let { unmount: s = !0, ...h } = i;
2671
2681
  return Ce(s ? 0 : 1, { 0() {
2672
2682
  return null;
2673
2683
  }, 1() {
2674
- return Dt({ ...g, hidden: !0, style: { display: "none" } }, r, n, l, u);
2684
+ return Dt({ ...h, hidden: !0, style: { display: "none" } }, r, n, l, u);
2675
2685
  } });
2676
2686
  }
2677
2687
  return Dt(i, r, n, l, u);
2678
2688
  }
2679
2689
  function Dt(t, e = {}, r, n, a) {
2680
- let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), d = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2690
+ let { as: o = r, children: l, refName: u = "ref", ...i } = Or(t, ["unmount", "static"]), f = t.ref !== void 0 ? { [u]: t.ref } : {}, s = typeof l == "function" ? l(e) : l;
2681
2691
  "className" in i && i.className && typeof i.className == "function" && (i.className = i.className(e)), i["aria-labelledby"] && i["aria-labelledby"] === i.id && (i["aria-labelledby"] = void 0);
2682
- let g = {};
2692
+ let h = {};
2683
2693
  if (e) {
2684
2694
  let v = !1, w = [];
2685
- for (let [f, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(f.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
2695
+ for (let [d, y] of Object.entries(e)) typeof y == "boolean" && (v = !0), y === !0 && w.push(d.replace(/([A-Z])/g, (p) => `-${p.toLowerCase()}`));
2686
2696
  if (v) {
2687
- g["data-headlessui-state"] = w.join(" ");
2688
- for (let f of w) g[`data-${f}`] = "";
2697
+ h["data-headlessui-state"] = w.join(" ");
2698
+ for (let d of w) h[`data-${d}`] = "";
2689
2699
  }
2690
2700
  }
2691
- if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(g)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
2692
- if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(g))).map((v) => ` - ${v}`).join(`
2701
+ if (o === he && (Object.keys(je(i)).length > 0 || Object.keys(je(h)).length > 0)) if (!Mo(s) || Array.isArray(s) && s.length > 1) {
2702
+ if (Object.keys(je(i)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(je(i)).concat(Object.keys(je(h))).map((v) => ` - ${v}`).join(`
2693
2703
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((v) => ` - ${v}`).join(`
2694
2704
  `)].join(`
2695
2705
  `));
2696
2706
  } else {
2697
- let v = s.props, w = v == null ? void 0 : v.className, f = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = f ? { className: f } : {}, p = Ia(s.props, je(Or(i, ["ref"])));
2698
- for (let m in g) m in p && delete g[m];
2699
- return _o(s, Object.assign({}, p, g, d, { ref: a(s.ref, d.ref) }, y));
2707
+ let v = s.props, w = v == null ? void 0 : v.className, d = typeof w == "function" ? (...m) => kr(w(...m), i.className) : kr(w, i.className), y = d ? { className: d } : {}, p = Ia(s.props, je(Or(i, ["ref"])));
2708
+ for (let m in h) m in p && delete h[m];
2709
+ return _o(s, Object.assign({}, p, h, f, { ref: a(s.ref, f.ref) }, y));
2700
2710
  }
2701
- return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && d, o !== he && g), s);
2711
+ return Pr(o, Object.assign({}, Or(i, ["ref"]), o !== he && f, o !== he && h), s);
2702
2712
  }
2703
- function Du() {
2704
- let t = j([]), e = ve((r) => {
2713
+ function Nu() {
2714
+ let t = k([]), e = ve((r) => {
2705
2715
  for (let n of t.current) n != null && (typeof n == "function" ? n(r) : n.current = r);
2706
2716
  }, []);
2707
2717
  return (...r) => {
2708
2718
  if (!r.every((n) => n == null)) return t.current = r, e;
2709
2719
  };
2710
2720
  }
2711
- function Nu(...t) {
2721
+ function ku(...t) {
2712
2722
  return t.every((e) => e == null) ? void 0 : (e) => {
2713
2723
  for (let r of t) r != null && (typeof r == "function" ? r(e) : r.current = e);
2714
2724
  };
@@ -2745,20 +2755,20 @@ function Or(t, e = []) {
2745
2755
  for (let n of e) n in r && delete r[n];
2746
2756
  return r;
2747
2757
  }
2748
- let ku = "span";
2758
+ let ju = "span";
2749
2759
  var qt = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(qt || {});
2750
- function ju(t, e) {
2760
+ function Lu(t, e) {
2751
2761
  var r;
2752
2762
  let { features: n = 1, ...a } = t, o = { ref: e, "aria-hidden": (n & 2) === 2 ? !0 : (r = a["aria-hidden"]) != null ? r : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
2753
- return fe()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ku, name: "Hidden" });
2763
+ return de()({ ourProps: o, theirProps: a, slot: {}, defaultTag: ju, name: "Hidden" });
2754
2764
  }
2755
- let jr = le(ju), Ma = Symbol();
2756
- function Lu(t, e = !0) {
2765
+ let jr = le(Lu), Ma = Symbol();
2766
+ function Wu(t, e = !0) {
2757
2767
  return Object.assign(t, { [Ma]: e });
2758
2768
  }
2759
2769
  function Se(...t) {
2760
- let e = j(t);
2761
- K(() => {
2770
+ let e = k(t);
2771
+ Y(() => {
2762
2772
  e.current = t;
2763
2773
  }, [t]);
2764
2774
  let r = U((n) => {
@@ -2766,7 +2776,7 @@ function Se(...t) {
2766
2776
  });
2767
2777
  return t.every((n) => n == null || (n == null ? void 0 : n[Ma])) ? void 0 : r;
2768
2778
  }
2769
- let en = ce(null);
2779
+ let en = fe(null);
2770
2780
  en.displayName = "DescriptionContext";
2771
2781
  function _a() {
2772
2782
  let t = ie(en);
@@ -2776,7 +2786,7 @@ function _a() {
2776
2786
  }
2777
2787
  return t;
2778
2788
  }
2779
- function Wu() {
2789
+ function Uu() {
2780
2790
  let [t, e] = Q([]);
2781
2791
  return [t.length > 0 ? t.join(" ") : void 0, J(() => function(r) {
2782
2792
  let n = U((o) => (e((l) => [...l, o]), () => e((l) => {
@@ -2786,21 +2796,21 @@ function Wu() {
2786
2796
  return A.createElement(en.Provider, { value: a }, r.children);
2787
2797
  }, [e])];
2788
2798
  }
2789
- let Uu = "p";
2790
- function Bu(t, e) {
2791
- let r = Ot(), n = Mu(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
2799
+ let Bu = "p";
2800
+ function Hu(t, e) {
2801
+ let r = Ot(), n = _u(), { id: a = `headlessui-description-${r}`, ...o } = t, l = _a(), u = Se(e);
2792
2802
  ae(() => l.register(a), [a, l.register]);
2793
- let i = n || !1, d = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
2794
- return fe()({ ourProps: s, theirProps: o, slot: d, defaultTag: Uu, name: l.name || "Description" });
2803
+ let i = n || !1, f = J(() => ({ ...l.slot, disabled: i }), [l.slot, i]), s = { ref: u, ...l.props, id: a };
2804
+ return de()({ ourProps: s, theirProps: o, slot: f, defaultTag: Bu, name: l.name || "Description" });
2795
2805
  }
2796
- let Hu = le(Bu), Vu = Object.assign(Hu, {});
2806
+ let Vu = le(Hu), qu = Object.assign(Vu, {});
2797
2807
  var Da = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(Da || {});
2798
- let qu = ce(() => {
2808
+ let Gu = fe(() => {
2799
2809
  });
2800
- function Gu({ value: t, children: e }) {
2801
- return A.createElement(qu.Provider, { value: t }, e);
2810
+ function Yu({ value: t, children: e }) {
2811
+ return A.createElement(Gu.Provider, { value: t }, e);
2802
2812
  }
2803
- let Yu = class extends Map {
2813
+ let zu = class extends Map {
2804
2814
  constructor(e) {
2805
2815
  super(), this.factory = e;
2806
2816
  }
@@ -2823,7 +2833,7 @@ function Na(t, e) {
2823
2833
  function ka(t) {
2824
2834
  return Do(t.subscribe, t.getSnapshot, t.getSnapshot);
2825
2835
  }
2826
- let zu = new Yu(() => Na(() => [], { ADD(t) {
2836
+ let Ku = new zu(() => Na(() => [], { ADD(t) {
2827
2837
  return this.includes(t) ? this : [...this, t];
2828
2838
  }, REMOVE(t) {
2829
2839
  let e = this.indexOf(t);
@@ -2832,7 +2842,7 @@ let zu = new Yu(() => Na(() => [], { ADD(t) {
2832
2842
  return r.splice(e, 1), r;
2833
2843
  } }));
2834
2844
  function ot(t, e) {
2835
- let r = zu.get(e), n = Ot(), a = ka(r);
2845
+ let r = Ku.get(e), n = Ot(), a = ka(r);
2836
2846
  if (ae(() => {
2837
2847
  if (t) return r.dispatch("ADD", n), () => r.dispatch("REMOVE", n);
2838
2848
  }, [r, t]), !t) return !1;
@@ -2852,7 +2862,7 @@ function Xn(t) {
2852
2862
  let n = Lr.get(t);
2853
2863
  n && (n["aria-hidden"] === null ? t.removeAttribute("aria-hidden") : t.setAttribute("aria-hidden", n["aria-hidden"]), t.inert = n.inert, Lr.delete(t));
2854
2864
  }
2855
- function Ku(t, { allowed: e, disallowed: r } = {}) {
2865
+ function Xu(t, { allowed: e, disallowed: r } = {}) {
2856
2866
  let n = ot(t, "inert-others");
2857
2867
  ae(() => {
2858
2868
  var a, o;
@@ -2862,23 +2872,23 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
2862
2872
  let u = (o = e == null ? void 0 : e()) != null ? o : [];
2863
2873
  for (let i of u) {
2864
2874
  if (!i) continue;
2865
- let d = Xt(i);
2866
- if (!d) continue;
2875
+ let f = Xt(i);
2876
+ if (!f) continue;
2867
2877
  let s = i.parentElement;
2868
- for (; s && s !== d.body; ) {
2869
- for (let g of s.children) u.some((v) => g.contains(v)) || l.add(Kn(g));
2878
+ for (; s && s !== f.body; ) {
2879
+ for (let h of s.children) u.some((v) => h.contains(v)) || l.add(Kn(h));
2870
2880
  s = s.parentElement;
2871
2881
  }
2872
2882
  }
2873
2883
  return l.dispose;
2874
2884
  }, [n, e, r]);
2875
2885
  }
2876
- function Xu(t, e, r) {
2886
+ function Ju(t, e, r) {
2877
2887
  let n = qe((a) => {
2878
2888
  let o = a.getBoundingClientRect();
2879
2889
  o.x === 0 && o.y === 0 && o.width === 0 && o.height === 0 && r();
2880
2890
  });
2881
- K(() => {
2891
+ Y(() => {
2882
2892
  if (!t) return;
2883
2893
  let a = e === null ? null : e instanceof HTMLElement ? e : e.current;
2884
2894
  if (!a) return;
@@ -2894,16 +2904,16 @@ function Xu(t, e, r) {
2894
2904
  return () => o.dispose();
2895
2905
  }, [e, n, t]);
2896
2906
  }
2897
- let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Ju = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2898
- var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Qu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Qu || {});
2899
- function Zu(t = document.body) {
2907
+ let Gt = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Qu = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
2908
+ var Pe = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(Pe || {}), Wr = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Wr || {}), Zu = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Zu || {});
2909
+ function es(t = document.body) {
2900
2910
  return t == null ? [] : Array.from(t.querySelectorAll(Gt)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2901
2911
  }
2902
- function es(t = document.body) {
2903
- return t == null ? [] : Array.from(t.querySelectorAll(Ju)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2912
+ function ts(t = document.body) {
2913
+ return t == null ? [] : Array.from(t.querySelectorAll(Qu)).sort((e, r) => Math.sign((e.tabIndex || Number.MAX_SAFE_INTEGER) - (r.tabIndex || Number.MAX_SAFE_INTEGER)));
2904
2914
  }
2905
2915
  var ja = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(ja || {});
2906
- function ts(t, e = 0) {
2916
+ function rs(t, e = 0) {
2907
2917
  var r;
2908
2918
  return t === ((r = Xt(t)) == null ? void 0 : r.body) ? !1 : Ce(e, { 0() {
2909
2919
  return t.matches(Gt);
@@ -2916,7 +2926,7 @@ function ts(t, e = 0) {
2916
2926
  return !1;
2917
2927
  } });
2918
2928
  }
2919
- var rs = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(rs || {});
2929
+ var ns = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(ns || {});
2920
2930
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (t) => {
2921
2931
  t.metaKey || t.altKey || t.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
2922
2932
  }, !0), document.addEventListener("click", (t) => {
@@ -2925,12 +2935,12 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
2925
2935
  function Ae(t) {
2926
2936
  t == null || t.focus({ preventScroll: !0 });
2927
2937
  }
2928
- let ns = ["textarea", "input"].join(",");
2929
- function as(t) {
2938
+ let as = ["textarea", "input"].join(",");
2939
+ function os(t) {
2930
2940
  var e, r;
2931
- return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, ns)) != null ? r : !1;
2941
+ return (r = (e = t == null ? void 0 : t.matches) == null ? void 0 : e.call(t, as)) != null ? r : !1;
2932
2942
  }
2933
- function os(t, e = (r) => r) {
2943
+ function is(t, e = (r) => r) {
2934
2944
  return t.slice().sort((r, n) => {
2935
2945
  let a = e(r), o = e(n);
2936
2946
  if (a === null || o === null) return 0;
@@ -2939,8 +2949,8 @@ function os(t, e = (r) => r) {
2939
2949
  });
2940
2950
  }
2941
2951
  function St(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
2942
- let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? os(t) : t : e & 64 ? es(t) : Zu(t);
2943
- a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((f) => f != null && "current" in f ? (f == null ? void 0 : f.current) === w : f === w))), n = n ?? o.activeElement;
2952
+ let o = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, l = Array.isArray(t) ? r ? is(t) : t : e & 64 ? ts(t) : es(t);
2953
+ a.length > 0 && l.length > 1 && (l = l.filter((w) => !a.some((d) => d != null && "current" in d ? (d == null ? void 0 : d.current) === w : d === w))), n = n ?? o.activeElement;
2944
2954
  let u = (() => {
2945
2955
  if (e & 5) return 1;
2946
2956
  if (e & 10) return -1;
@@ -2951,31 +2961,31 @@ function St(t, e, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] }
2951
2961
  if (e & 4) return Math.max(0, l.indexOf(n)) + 1;
2952
2962
  if (e & 8) return l.length - 1;
2953
2963
  throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
2954
- })(), d = e & 32 ? { preventScroll: !0 } : {}, s = 0, g = l.length, v;
2964
+ })(), f = e & 32 ? { preventScroll: !0 } : {}, s = 0, h = l.length, v;
2955
2965
  do {
2956
- if (s >= g || s + g <= 0) return 0;
2966
+ if (s >= h || s + h <= 0) return 0;
2957
2967
  let w = i + s;
2958
- if (e & 16) w = (w + g) % g;
2968
+ if (e & 16) w = (w + h) % h;
2959
2969
  else {
2960
2970
  if (w < 0) return 3;
2961
- if (w >= g) return 1;
2971
+ if (w >= h) return 1;
2962
2972
  }
2963
- v = l[w], v == null || v.focus(d), s += u;
2973
+ v = l[w], v == null || v.focus(f), s += u;
2964
2974
  } while (v !== o.activeElement);
2965
- return e & 6 && as(v) && v.select(), 2;
2975
+ return e & 6 && os(v) && v.select(), 2;
2966
2976
  }
2967
2977
  function La() {
2968
2978
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
2969
2979
  }
2970
- function is() {
2980
+ function ls() {
2971
2981
  return /Android/gi.test(window.navigator.userAgent);
2972
2982
  }
2973
- function ls() {
2974
- return La() || is();
2983
+ function us() {
2984
+ return La() || ls();
2975
2985
  }
2976
2986
  function yt(t, e, r, n) {
2977
2987
  let a = qe(r);
2978
- K(() => {
2988
+ Y(() => {
2979
2989
  if (!t) return;
2980
2990
  function o(l) {
2981
2991
  a.current(l);
@@ -2985,7 +2995,7 @@ function yt(t, e, r, n) {
2985
2995
  }
2986
2996
  function Wa(t, e, r, n) {
2987
2997
  let a = qe(r);
2988
- K(() => {
2998
+ Y(() => {
2989
2999
  if (!t) return;
2990
3000
  function o(l) {
2991
3001
  a.current(l);
@@ -2994,32 +3004,32 @@ function Wa(t, e, r, n) {
2994
3004
  }, [t, e, n]);
2995
3005
  }
2996
3006
  const Jn = 30;
2997
- function us(t, e, r) {
2998
- let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, d) {
3007
+ function ss(t, e, r) {
3008
+ let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, f) {
2999
3009
  if (i.defaultPrevented) return;
3000
- let s = d(i);
3010
+ let s = f(i);
3001
3011
  if (s === null || !s.getRootNode().contains(s) || !s.isConnected) return;
3002
- let g = function v(w) {
3012
+ let h = function v(w) {
3003
3013
  return typeof w == "function" ? v(w()) : Array.isArray(w) || w instanceof Set ? w : [w];
3004
3014
  }(e);
3005
- for (let v of g) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
3006
- return !ts(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
3007
- }, [a, e]), l = j(null);
3015
+ for (let v of h) if (v !== null && (v.contains(s) || i.composed && i.composedPath().includes(v))) return;
3016
+ return !rs(s, ja.Loose) && s.tabIndex !== -1 && i.preventDefault(), a.current(i, s);
3017
+ }, [a, e]), l = k(null);
3008
3018
  yt(n, "pointerdown", (i) => {
3009
- var d, s;
3010
- l.current = ((s = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : s[0]) || i.target;
3019
+ var f, s;
3020
+ l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
3011
3021
  }, !0), yt(n, "mousedown", (i) => {
3012
- var d, s;
3013
- l.current = ((s = (d = i.composedPath) == null ? void 0 : d.call(i)) == null ? void 0 : s[0]) || i.target;
3022
+ var f, s;
3023
+ l.current = ((s = (f = i.composedPath) == null ? void 0 : f.call(i)) == null ? void 0 : s[0]) || i.target;
3014
3024
  }, !0), yt(n, "click", (i) => {
3015
- ls() || l.current && (o(i, () => l.current), l.current = null);
3025
+ us() || l.current && (o(i, () => l.current), l.current = null);
3016
3026
  }, !0);
3017
- let u = j({ x: 0, y: 0 });
3027
+ let u = k({ x: 0, y: 0 });
3018
3028
  yt(n, "touchstart", (i) => {
3019
3029
  u.current.x = i.touches[0].clientX, u.current.y = i.touches[0].clientY;
3020
3030
  }, !0), yt(n, "touchend", (i) => {
3021
- let d = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
3022
- if (!(Math.abs(d.x - u.current.x) >= Jn || Math.abs(d.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3031
+ let f = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
3032
+ if (!(Math.abs(f.x - u.current.x) >= Jn || Math.abs(f.y - u.current.y) >= Jn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3023
3033
  }, !0), Wa(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
3024
3034
  }
3025
3035
  function Tt(...t) {
@@ -3027,7 +3037,7 @@ function Tt(...t) {
3027
3037
  }
3028
3038
  function Ua(t, e, r, n) {
3029
3039
  let a = qe(r);
3030
- K(() => {
3040
+ Y(() => {
3031
3041
  t = t ?? window;
3032
3042
  function o(l) {
3033
3043
  a.current(l);
@@ -3035,7 +3045,7 @@ function Ua(t, e, r, n) {
3035
3045
  return t.addEventListener(e, o, n), () => t.removeEventListener(e, o, n);
3036
3046
  }, [t, e, n]);
3037
3047
  }
3038
- function ss() {
3048
+ function cs() {
3039
3049
  let t;
3040
3050
  return { before({ doc: e }) {
3041
3051
  var r;
@@ -3046,7 +3056,7 @@ function ss() {
3046
3056
  r.style(n, "paddingRight", `${o}px`);
3047
3057
  } };
3048
3058
  }
3049
- function cs() {
3059
+ function fs() {
3050
3060
  return La() ? { before({ doc: t, d: e, meta: r }) {
3051
3061
  function n(a) {
3052
3062
  return r.containers.flatMap((o) => o()).some((o) => o.contains(a));
@@ -3062,7 +3072,7 @@ function cs() {
3062
3072
  if (u.target instanceof HTMLElement) try {
3063
3073
  let i = u.target.closest("a");
3064
3074
  if (!i) return;
3065
- let { hash: d } = new URL(i.href), s = t.querySelector(d);
3075
+ let { hash: f } = new URL(i.href), s = t.querySelector(f);
3066
3076
  s && !n(s) && (l = s);
3067
3077
  } catch {
3068
3078
  }
@@ -3089,12 +3099,12 @@ function cs() {
3089
3099
  });
3090
3100
  } } : {};
3091
3101
  }
3092
- function fs() {
3102
+ function ds() {
3093
3103
  return { before({ doc: t, d: e }) {
3094
3104
  e.style(t.documentElement, "overflow", "hidden");
3095
3105
  } };
3096
3106
  }
3097
- function ds(t) {
3107
+ function ps(t) {
3098
3108
  let e = {};
3099
3109
  for (let r of t) Object.assign(e, r(e));
3100
3110
  return e;
@@ -3107,7 +3117,7 @@ let Ue = Na(() => /* @__PURE__ */ new Map(), { PUSH(t, e) {
3107
3117
  let r = this.get(t);
3108
3118
  return r && (r.count--, r.meta.delete(e)), this;
3109
3119
  }, SCROLL_PREVENT({ doc: t, d: e, meta: r }) {
3110
- let n = { doc: t, d: e, meta: ds(r) }, a = [cs(), ss(), fs()];
3120
+ let n = { doc: t, d: e, meta: ps(r) }, a = [fs(), cs(), ds()];
3111
3121
  a.forEach(({ before: o }) => o == null ? void 0 : o(n)), a.forEach(({ after: o }) => o == null ? void 0 : o(n));
3112
3122
  }, SCROLL_ALLOW({ d: t }) {
3113
3123
  t.dispose();
@@ -3122,21 +3132,21 @@ Ue.subscribe(() => {
3122
3132
  (a && !n || !a && n) && Ue.dispatch(r.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", r), r.count === 0 && Ue.dispatch("TEARDOWN", r);
3123
3133
  }
3124
3134
  });
3125
- function ps(t, e, r = () => ({ containers: [] })) {
3135
+ function ys(t, e, r = () => ({ containers: [] })) {
3126
3136
  let n = ka(Ue), a = e ? n.get(e) : void 0, o = a ? a.count > 0 : !1;
3127
3137
  return ae(() => {
3128
3138
  if (!(!e || !t)) return Ue.dispatch("PUSH", e, r), () => Ue.dispatch("POP", e, r);
3129
3139
  }, [t, e]), o;
3130
3140
  }
3131
- function ys(t, e, r = () => [document.body]) {
3141
+ function vs(t, e, r = () => [document.body]) {
3132
3142
  let n = ot(t, "scroll-lock");
3133
- ps(n, e, (a) => {
3143
+ ys(n, e, (a) => {
3134
3144
  var o;
3135
3145
  return { containers: [...(o = a.containers) != null ? o : [], r] };
3136
3146
  });
3137
3147
  }
3138
- function vs(t = 0) {
3139
- let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((d) => d | i), [e]), o = ve((i) => (e & i) === i, [e]), l = ve((i) => r((d) => d & ~i), [r]), u = ve((i) => r((d) => d ^ i), [r]);
3148
+ function ms(t = 0) {
3149
+ let [e, r] = Q(t), n = ve((i) => r(i), [e]), a = ve((i) => r((f) => f | i), [e]), o = ve((i) => (e & i) === i, [e]), l = ve((i) => r((f) => f & ~i), [r]), u = ve((i) => r((f) => f ^ i), [r]);
3140
3150
  return { flags: e, setFlag: n, addFlag: a, hasFlag: o, removeFlag: l, toggleFlag: u };
3141
3151
  }
3142
3152
  var Qn, Zn;
@@ -3144,14 +3154,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Qn
3144
3154
  return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
3145
3155
  `)), [];
3146
3156
  });
3147
- var ms = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(ms || {});
3148
- function hs(t) {
3157
+ var hs = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(hs || {});
3158
+ function gs(t) {
3149
3159
  let e = {};
3150
3160
  for (let r in t) t[r] === !0 && (e[`data-${r}`] = "");
3151
3161
  return e;
3152
3162
  }
3153
- function gs(t, e, r, n) {
3154
- let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), g = Zr();
3163
+ function bs(t, e, r, n) {
3164
+ let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = ms(t && a ? 3 : 0), f = k(!1), s = k(!1), h = Zr();
3155
3165
  return ae(() => {
3156
3166
  var v;
3157
3167
  if (t) {
@@ -3159,26 +3169,26 @@ function gs(t, e, r, n) {
3159
3169
  r && u(3);
3160
3170
  return;
3161
3171
  }
3162
- return (v = n == null ? void 0 : n.start) == null || v.call(n, r), bs(e, { inFlight: d, prepare() {
3163
- s.current ? s.current = !1 : s.current = d.current, d.current = !0, !s.current && (r ? (u(3), i(4)) : (u(4), i(2)));
3172
+ return (v = n == null ? void 0 : n.start) == null || v.call(n, r), ws(e, { inFlight: f, prepare() {
3173
+ s.current ? s.current = !1 : s.current = f.current, f.current = !0, !s.current && (r ? (u(3), i(4)) : (u(4), i(2)));
3164
3174
  }, run() {
3165
3175
  s.current ? r ? (i(3), u(4)) : (i(4), u(3)) : r ? i(1) : u(1);
3166
3176
  }, done() {
3167
3177
  var w;
3168
- s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (d.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
3178
+ s.current && typeof e.getAnimations == "function" && e.getAnimations().length > 0 || (f.current = !1, i(7), r || o(!1), (w = n == null ? void 0 : n.end) == null || w.call(n, r));
3169
3179
  } });
3170
3180
  }
3171
- }, [t, r, e, g]), t ? [a, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
3181
+ }, [t, r, e, h]), t ? [a, { closed: l(1), enter: l(2), leave: l(4), transition: l(2) || l(4) }] : [r, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
3172
3182
  }
3173
- function bs(t, { prepare: e, run: r, done: n, inFlight: a }) {
3183
+ function ws(t, { prepare: e, run: r, done: n, inFlight: a }) {
3174
3184
  let o = Me();
3175
- return Es(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
3185
+ return Ss(t, { prepare: e, inFlight: a }), o.nextFrame(() => {
3176
3186
  r(), o.requestAnimationFrame(() => {
3177
- o.add(ws(t, n));
3187
+ o.add(Es(t, n));
3178
3188
  });
3179
3189
  }), o.dispose;
3180
3190
  }
3181
- function ws(t, e) {
3191
+ function Es(t, e) {
3182
3192
  var r, n;
3183
3193
  let a = Me();
3184
3194
  if (!t) return a.dispose;
@@ -3191,7 +3201,7 @@ function ws(t, e) {
3191
3201
  o || e();
3192
3202
  }), a.dispose);
3193
3203
  }
3194
- function Es(t, { inFlight: e, prepare: r }) {
3204
+ function Ss(t, { inFlight: e, prepare: r }) {
3195
3205
  if (e != null && e.current) {
3196
3206
  r();
3197
3207
  return;
@@ -3200,8 +3210,8 @@ function Es(t, { inFlight: e, prepare: r }) {
3200
3210
  t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
3201
3211
  }
3202
3212
  function tn(t, e) {
3203
- let r = j([]), n = U(t);
3204
- K(() => {
3213
+ let r = k([]), n = U(t);
3214
+ Y(() => {
3205
3215
  let a = [...r.current];
3206
3216
  for (let [o, l] of e.entries()) if (r.current[o] !== l) {
3207
3217
  let u = n(e, a);
@@ -3209,26 +3219,26 @@ function tn(t, e) {
3209
3219
  }
3210
3220
  }, [n, ...e]);
3211
3221
  }
3212
- let Qt = ce(null);
3222
+ let Qt = fe(null);
3213
3223
  Qt.displayName = "OpenClosedContext";
3214
3224
  var me = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(me || {});
3215
3225
  function Zt() {
3216
3226
  return ie(Qt);
3217
3227
  }
3218
- function Ss({ value: t, children: e }) {
3228
+ function xs({ value: t, children: e }) {
3219
3229
  return A.createElement(Qt.Provider, { value: t }, e);
3220
3230
  }
3221
- function xs({ children: t }) {
3231
+ function Os({ children: t }) {
3222
3232
  return A.createElement(Qt.Provider, { value: null }, t);
3223
3233
  }
3224
- function Os(t) {
3234
+ function Ps(t) {
3225
3235
  function e() {
3226
3236
  document.readyState !== "loading" && (t(), document.removeEventListener("DOMContentLoaded", e));
3227
3237
  }
3228
3238
  typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", e), e());
3229
3239
  }
3230
3240
  let $e = [];
3231
- Os(() => {
3241
+ Ps(() => {
3232
3242
  function t(e) {
3233
3243
  if (!(e.target instanceof HTMLElement) || e.target === document.body || $e[0] === e.target) return;
3234
3244
  let r = e.target;
@@ -3237,33 +3247,33 @@ Os(() => {
3237
3247
  window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
3238
3248
  });
3239
3249
  function Ba(t) {
3240
- let e = U(t), r = j(!1);
3241
- K(() => (r.current = !1, () => {
3250
+ let e = U(t), r = k(!1);
3251
+ Y(() => (r.current = !1, () => {
3242
3252
  r.current = !0, Jt(() => {
3243
3253
  r.current && e();
3244
3254
  });
3245
3255
  }), [e]);
3246
3256
  }
3247
- function Ps() {
3257
+ function As() {
3248
3258
  let t = typeof document > "u";
3249
3259
  return "useSyncExternalStore" in ht ? ((e) => e.useSyncExternalStore)(ht)(() => () => {
3250
3260
  }, () => !1, () => !t) : !1;
3251
3261
  }
3252
3262
  function $t() {
3253
- let t = Ps(), [e, r] = ht.useState(Ve.isHandoffComplete);
3263
+ let t = As(), [e, r] = ht.useState(Ve.isHandoffComplete);
3254
3264
  return e && Ve.isHandoffComplete === !1 && r(!1), ht.useEffect(() => {
3255
3265
  e !== !0 && r(!0);
3256
3266
  }, [e]), ht.useEffect(() => Ve.handoff(), []), t ? !1 : e;
3257
3267
  }
3258
- let Ha = ce(!1);
3259
- function As() {
3268
+ let Ha = fe(!1);
3269
+ function Ts() {
3260
3270
  return ie(Ha);
3261
3271
  }
3262
3272
  function ea(t) {
3263
3273
  return A.createElement(Ha.Provider, { value: t.force }, t.children);
3264
3274
  }
3265
- function Ts(t) {
3266
- let e = As(), r = ie(qa), n = Tt(t), [a, o] = Q(() => {
3275
+ function $s(t) {
3276
+ let e = Ts(), r = ie(qa), n = Tt(t), [a, o] = Q(() => {
3267
3277
  var l;
3268
3278
  if (!e && r !== null) return (l = r.current) != null ? l : null;
3269
3279
  if (Ve.isServer) return null;
@@ -3273,42 +3283,42 @@ function Ts(t) {
3273
3283
  let i = n.createElement("div");
3274
3284
  return i.setAttribute("id", "headlessui-portal-root"), n.body.appendChild(i);
3275
3285
  });
3276
- return K(() => {
3286
+ return Y(() => {
3277
3287
  a !== null && (n != null && n.body.contains(a) || n == null || n.body.appendChild(a));
3278
- }, [a, n]), K(() => {
3288
+ }, [a, n]), Y(() => {
3279
3289
  e || r !== null && o(r.current);
3280
3290
  }, [r, o, e]), a;
3281
3291
  }
3282
- let Va = he, $s = le(function(t, e) {
3283
- let r = t, n = j(null), a = Se(Lu((g) => {
3284
- n.current = g;
3285
- }), e), o = Tt(n), l = Ts(n), [u] = Q(() => {
3286
- var g;
3287
- return Ve.isServer ? null : (g = o == null ? void 0 : o.createElement("div")) != null ? g : null;
3288
- }), i = ie(Ur), d = $t();
3292
+ let Va = he, Rs = le(function(t, e) {
3293
+ let r = t, n = k(null), a = Se(Wu((h) => {
3294
+ n.current = h;
3295
+ }), e), o = Tt(n), l = $s(n), [u] = Q(() => {
3296
+ var h;
3297
+ return Ve.isServer ? null : (h = o == null ? void 0 : o.createElement("div")) != null ? h : null;
3298
+ }), i = ie(Ur), f = $t();
3289
3299
  ae(() => {
3290
3300
  !l || !u || l.contains(u) || (u.setAttribute("data-headlessui-portal", ""), l.appendChild(u));
3291
3301
  }, [l, u]), ae(() => {
3292
3302
  if (u && i) return i.register(u);
3293
3303
  }, [i, u]), Ba(() => {
3294
- var g;
3295
- !l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l)));
3304
+ var h;
3305
+ !l || !u || (u instanceof Node && l.contains(u) && l.removeChild(u), l.childNodes.length <= 0 && ((h = l.parentElement) == null || h.removeChild(l)));
3296
3306
  });
3297
- let s = fe();
3298
- return d ? !l || !u ? null : jo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
3307
+ let s = de();
3308
+ return f ? !l || !u ? null : Lo(s({ ourProps: { ref: a }, theirProps: r, slot: {}, defaultTag: Va, name: "Portal" }), u) : null;
3299
3309
  });
3300
- function Rs(t, e) {
3301
- let r = Se(e), { enabled: n = !0, ...a } = t, o = fe();
3302
- return n ? A.createElement($s, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
3303
- }
3304
- let Fs = he, qa = ce(null);
3305
- function Cs(t, e) {
3306
- let { target: r, ...n } = t, a = { ref: Se(e) }, o = fe();
3307
- return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Fs, name: "Popover.Group" }));
3308
- }
3309
- let Ur = ce(null);
3310
- function Is() {
3311
- let t = ie(Ur), e = j([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3310
+ function Fs(t, e) {
3311
+ let r = Se(e), { enabled: n = !0, ...a } = t, o = de();
3312
+ return n ? A.createElement(Rs, { ...a, ref: r }) : o({ ourProps: { ref: r }, theirProps: a, slot: {}, defaultTag: Va, name: "Portal" });
3313
+ }
3314
+ let Cs = he, qa = fe(null);
3315
+ function Is(t, e) {
3316
+ let { target: r, ...n } = t, a = { ref: Se(e) }, o = de();
3317
+ return A.createElement(qa.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Cs, name: "Popover.Group" }));
3318
+ }
3319
+ let Ur = fe(null);
3320
+ function Ms() {
3321
+ let t = ie(Ur), e = k([]), r = U((o) => (e.current.push(o), t && t.register(o), () => n(o))), n = U((o) => {
3312
3322
  let l = e.current.indexOf(o);
3313
3323
  l !== -1 && e.current.splice(l, 1), t && t.unregister(o);
3314
3324
  }), a = J(() => ({ register: r, unregister: n, portals: e }), [r, n, e]);
@@ -3316,14 +3326,14 @@ function Is() {
3316
3326
  return A.createElement(Ur.Provider, { value: a }, o);
3317
3327
  }, [a])];
3318
3328
  }
3319
- let Ms = le(Rs), Ga = le(Cs), _s = Object.assign(Ms, { Group: Ga });
3320
- function Ds(t, e = typeof document < "u" ? document.defaultView : null, r) {
3329
+ let _s = le(Fs), Ga = le(Is), Ds = Object.assign(_s, { Group: Ga });
3330
+ function Ns(t, e = typeof document < "u" ? document.defaultView : null, r) {
3321
3331
  let n = ot(t, "escape");
3322
3332
  Ua(e, "keydown", (a) => {
3323
3333
  n && (a.defaultPrevented || a.key === Da.Escape && r(a));
3324
3334
  });
3325
3335
  }
3326
- function Ns() {
3336
+ function ks() {
3327
3337
  var t;
3328
3338
  let [e] = Q(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [r, n] = Q((t = e == null ? void 0 : e.matches) != null ? t : !1);
3329
3339
  return ae(() => {
@@ -3334,18 +3344,18 @@ function Ns() {
3334
3344
  return e.addEventListener("change", a), () => e.removeEventListener("change", a);
3335
3345
  }, [e]), r;
3336
3346
  }
3337
- function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3347
+ function js({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3338
3348
  let n = Tt(r), a = U(() => {
3339
3349
  var o, l;
3340
3350
  let u = [];
3341
3351
  for (let i of t) i !== null && (i instanceof HTMLElement ? u.push(i) : "current" in i && i.current instanceof HTMLElement && u.push(i.current));
3342
3352
  if (e != null && e.current) for (let i of e.current) u.push(i);
3343
- for (let i of (o = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? o : []) i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (r && (i.contains(r) || i.contains((l = r == null ? void 0 : r.getRootNode()) == null ? void 0 : l.host)) || u.some((d) => i.contains(d)) || u.push(i));
3353
+ for (let i of (o = n == null ? void 0 : n.querySelectorAll("html > *, body > *")) != null ? o : []) i !== document.body && i !== document.head && i instanceof HTMLElement && i.id !== "headlessui-portal-root" && (r && (i.contains(r) || i.contains((l = r == null ? void 0 : r.getRootNode()) == null ? void 0 : l.host)) || u.some((f) => i.contains(f)) || u.push(i));
3344
3354
  return u;
3345
3355
  });
3346
3356
  return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
3347
3357
  }
3348
- let Ya = ce(null);
3358
+ let Ya = fe(null);
3349
3359
  function ta({ children: t, node: e }) {
3350
3360
  let [r, n] = Q(null), a = za(e ?? r);
3351
3361
  return A.createElement(Ya.Provider, { value: a }, t, a === null && A.createElement(jr, { features: qt.Hidden, ref: (o) => {
@@ -3363,14 +3373,14 @@ function za(t = null) {
3363
3373
  return (e = ie(Ya)) != null ? e : t;
3364
3374
  }
3365
3375
  function rn() {
3366
- let t = j(!1);
3376
+ let t = k(!1);
3367
3377
  return ae(() => (t.current = !0, () => {
3368
3378
  t.current = !1;
3369
3379
  }), []), t;
3370
3380
  }
3371
3381
  var mt = ((t) => (t[t.Forwards = 0] = "Forwards", t[t.Backwards = 1] = "Backwards", t))(mt || {});
3372
- function js() {
3373
- let t = j(0);
3382
+ function Ls() {
3383
+ let t = k(0);
3374
3384
  return Wa(!0, "keydown", (e) => {
3375
3385
  e.key === "Tab" && (t.current = e.shiftKey ? 1 : 0);
3376
3386
  }, !0), t;
@@ -3382,40 +3392,40 @@ function Ka(t) {
3382
3392
  for (let r of t.current) r.current instanceof HTMLElement && e.add(r.current);
3383
3393
  return e;
3384
3394
  }
3385
- let Ls = "div";
3395
+ let Ws = "div";
3386
3396
  var We = ((t) => (t[t.None = 0] = "None", t[t.InitialFocus = 1] = "InitialFocus", t[t.TabLock = 2] = "TabLock", t[t.FocusLock = 4] = "FocusLock", t[t.RestoreFocus = 8] = "RestoreFocus", t[t.AutoFocus = 16] = "AutoFocus", t))(We || {});
3387
- function Ws(t, e) {
3388
- let r = j(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
3397
+ function Us(t, e) {
3398
+ let r = k(null), n = Se(r, e), { initialFocus: a, initialFocusFallback: o, containers: l, features: u = 15, ...i } = t;
3389
3399
  $t() || (u = 0);
3390
- let d = Tt(r);
3391
- Vs(u, { ownerDocument: d });
3392
- let s = qs(u, { ownerDocument: d, container: r, initialFocus: a, initialFocusFallback: o });
3393
- Gs(u, { ownerDocument: d, container: r, containers: l, previousActiveElement: s });
3394
- let g = js(), v = U((h) => {
3400
+ let f = Tt(r);
3401
+ qs(u, { ownerDocument: f });
3402
+ let s = Gs(u, { ownerDocument: f, container: r, initialFocus: a, initialFocusFallback: o });
3403
+ Ys(u, { ownerDocument: f, container: r, containers: l, previousActiveElement: s });
3404
+ let h = Ls(), v = U((g) => {
3395
3405
  let b = r.current;
3396
3406
  b && ((S) => S())(() => {
3397
- Ce(g.current, { [mt.Forwards]: () => {
3398
- St(b, Pe.First, { skipElements: [h.relatedTarget, o] });
3407
+ Ce(h.current, { [mt.Forwards]: () => {
3408
+ St(b, Pe.First, { skipElements: [g.relatedTarget, o] });
3399
3409
  }, [mt.Backwards]: () => {
3400
- St(b, Pe.Last, { skipElements: [h.relatedTarget, o] });
3410
+ St(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
3401
3411
  } });
3402
3412
  });
3403
- }), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(h) {
3404
- h.key == "Tab" && (y.current = !0, f.requestAnimationFrame(() => {
3413
+ }), w = ot(!!(u & 2), "focus-trap#tab-lock"), d = Zr(), y = k(!1), p = { ref: n, onKeyDown(g) {
3414
+ g.key == "Tab" && (y.current = !0, d.requestAnimationFrame(() => {
3405
3415
  y.current = !1;
3406
3416
  }));
3407
- }, onBlur(h) {
3417
+ }, onBlur(g) {
3408
3418
  if (!(u & 4)) return;
3409
3419
  let b = Ka(l);
3410
3420
  r.current instanceof HTMLElement && b.add(r.current);
3411
- let S = h.relatedTarget;
3412
- S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? St(r.current, Ce(g.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: h.target }) : h.target instanceof HTMLElement && Ae(h.target)));
3413
- } }, m = fe();
3414
- return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ls, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
3415
- }
3416
- let Us = le(Ws), Bs = Object.assign(Us, { features: We });
3417
- function Hs(t = !0) {
3418
- let e = j($e.slice());
3421
+ let S = g.relatedTarget;
3422
+ S instanceof HTMLElement && S.dataset.headlessuiFocusGuard !== "true" && (Xa(b, S) || (y.current ? St(r.current, Ce(h.current, { [mt.Forwards]: () => Pe.Next, [mt.Backwards]: () => Pe.Previous }) | Pe.WrapAround, { relativeTo: g.target }) : g.target instanceof HTMLElement && Ae(g.target)));
3423
+ } }, m = de();
3424
+ return A.createElement(A.Fragment, null, w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }), m({ ourProps: p, theirProps: i, defaultTag: Ws, name: "FocusTrap" }), w && A.createElement(jr, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: v, features: qt.Focusable }));
3425
+ }
3426
+ let Bs = le(Us), Hs = Object.assign(Bs, { features: We });
3427
+ function Vs(t = !0) {
3428
+ let e = k($e.slice());
3419
3429
  return tn(([r], [n]) => {
3420
3430
  n === !0 && r === !1 && Jt(() => {
3421
3431
  e.current.splice(0);
@@ -3425,16 +3435,16 @@ function Hs(t = !0) {
3425
3435
  return (r = e.current.find((n) => n != null && n.isConnected)) != null ? r : null;
3426
3436
  });
3427
3437
  }
3428
- function Vs(t, { ownerDocument: e }) {
3429
- let r = !!(t & 8), n = Hs(r);
3438
+ function qs(t, { ownerDocument: e }) {
3439
+ let r = !!(t & 8), n = Vs(r);
3430
3440
  tn(() => {
3431
3441
  r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
3432
3442
  }, [r]), Ba(() => {
3433
3443
  r && Ae(n());
3434
3444
  });
3435
3445
  }
3436
- function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3437
- let o = j(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = rn();
3446
+ function Gs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3447
+ let o = k(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = rn();
3438
3448
  return tn(() => {
3439
3449
  if (t === 0) return;
3440
3450
  if (!l) {
@@ -3444,14 +3454,14 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3444
3454
  let i = r.current;
3445
3455
  i && Jt(() => {
3446
3456
  if (!u.current) return;
3447
- let d = e == null ? void 0 : e.activeElement;
3457
+ let f = e == null ? void 0 : e.activeElement;
3448
3458
  if (n != null && n.current) {
3449
- if ((n == null ? void 0 : n.current) === d) {
3450
- o.current = d;
3459
+ if ((n == null ? void 0 : n.current) === f) {
3460
+ o.current = f;
3451
3461
  return;
3452
3462
  }
3453
- } else if (i.contains(d)) {
3454
- o.current = d;
3463
+ } else if (i.contains(f)) {
3464
+ o.current = f;
3455
3465
  return;
3456
3466
  }
3457
3467
  if (n != null && n.current) Ae(n.current);
@@ -3466,16 +3476,16 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3466
3476
  });
3467
3477
  }, [a, l, t]), o;
3468
3478
  }
3469
- function Gs(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3479
+ function Ys(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3470
3480
  let o = rn(), l = !!(t & 4);
3471
3481
  Ua(e == null ? void 0 : e.defaultView, "focus", (u) => {
3472
3482
  if (!l || !o.current) return;
3473
3483
  let i = Ka(n);
3474
3484
  r.current instanceof HTMLElement && i.add(r.current);
3475
- let d = a.current;
3476
- if (!d) return;
3485
+ let f = a.current;
3486
+ if (!f) return;
3477
3487
  let s = u.target;
3478
- s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(d)) : Ae(a.current);
3488
+ s && s instanceof HTMLElement ? Xa(i, s) ? (a.current = s, Ae(s)) : (u.preventDefault(), u.stopPropagation(), Ae(f)) : Ae(a.current);
3479
3489
  }, !0);
3480
3490
  }
3481
3491
  function Xa(t, e) {
@@ -3486,28 +3496,28 @@ function Ja(t) {
3486
3496
  var e;
3487
3497
  return !!(t.enter || t.enterFrom || t.enterTo || t.leave || t.leaveFrom || t.leaveTo) || ((e = t.as) != null ? e : Za) !== he || A.Children.count(t.children) === 1;
3488
3498
  }
3489
- let er = ce(null);
3499
+ let er = fe(null);
3490
3500
  er.displayName = "TransitionContext";
3491
- var Ys = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(Ys || {});
3492
- function zs() {
3501
+ var zs = ((t) => (t.Visible = "visible", t.Hidden = "hidden", t))(zs || {});
3502
+ function Ks() {
3493
3503
  let t = ie(er);
3494
3504
  if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3495
3505
  return t;
3496
3506
  }
3497
- function Ks() {
3507
+ function Xs() {
3498
3508
  let t = ie(tr);
3499
3509
  if (t === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
3500
3510
  return t;
3501
3511
  }
3502
- let tr = ce(null);
3512
+ let tr = fe(null);
3503
3513
  tr.displayName = "NestingContext";
3504
3514
  function rr(t) {
3505
3515
  return "children" in t ? rr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
3506
3516
  }
3507
3517
  function Qa(t, e) {
3508
- let r = qe(t), n = j([]), a = rn(), o = Zr(), l = U((w, f = Fe.Hidden) => {
3518
+ let r = qe(t), n = k([]), a = rn(), o = Zr(), l = U((w, d = Fe.Hidden) => {
3509
3519
  let y = n.current.findIndex(({ el: p }) => p === w);
3510
- y !== -1 && (Ce(f, { [Fe.Unmount]() {
3520
+ y !== -1 && (Ce(d, { [Fe.Unmount]() {
3511
3521
  n.current.splice(y, 1);
3512
3522
  }, [Fe.Hidden]() {
3513
3523
  n.current[y].state = "hidden";
@@ -3516,42 +3526,42 @@ function Qa(t, e) {
3516
3526
  !rr(n) && a.current && ((p = r.current) == null || p.call(r));
3517
3527
  }));
3518
3528
  }), u = U((w) => {
3519
- let f = n.current.find(({ el: y }) => y === w);
3520
- return f ? f.state !== "visible" && (f.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
3521
- }), i = j([]), d = j(Promise.resolve()), s = j({ enter: [], leave: [] }), g = U((w, f, y) => {
3522
- i.current.splice(0), e && (e.chains.current[f] = e.chains.current[f].filter(([p]) => p !== w)), e == null || e.chains.current[f].push([w, new Promise((p) => {
3529
+ let d = n.current.find(({ el: y }) => y === w);
3530
+ return d ? d.state !== "visible" && (d.state = "visible") : n.current.push({ el: w, state: "visible" }), () => l(w, Fe.Unmount);
3531
+ }), i = k([]), f = k(Promise.resolve()), s = k({ enter: [], leave: [] }), h = U((w, d, y) => {
3532
+ i.current.splice(0), e && (e.chains.current[d] = e.chains.current[d].filter(([p]) => p !== w)), e == null || e.chains.current[d].push([w, new Promise((p) => {
3523
3533
  i.current.push(p);
3524
- })]), e == null || e.chains.current[f].push([w, new Promise((p) => {
3525
- Promise.all(s.current[f].map(([m, h]) => h)).then(() => p());
3526
- })]), f === "enter" ? d.current = d.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(f)) : y(f);
3527
- }), v = U((w, f, y) => {
3528
- Promise.all(s.current[f].splice(0).map(([p, m]) => m)).then(() => {
3534
+ })]), e == null || e.chains.current[d].push([w, new Promise((p) => {
3535
+ Promise.all(s.current[d].map(([m, g]) => g)).then(() => p());
3536
+ })]), d === "enter" ? f.current = f.current.then(() => e == null ? void 0 : e.wait.current).then(() => y(d)) : y(d);
3537
+ }), v = U((w, d, y) => {
3538
+ Promise.all(s.current[d].splice(0).map(([p, m]) => m)).then(() => {
3529
3539
  var p;
3530
3540
  (p = i.current.shift()) == null || p();
3531
- }).then(() => y(f));
3541
+ }).then(() => y(d));
3532
3542
  });
3533
- return J(() => ({ children: n, register: u, unregister: l, onStart: g, onStop: v, wait: d, chains: s }), [u, l, n, g, v, s, d]);
3543
+ return J(() => ({ children: n, register: u, unregister: l, onStart: h, onStop: v, wait: f, chains: s }), [u, l, n, h, v, s, f]);
3534
3544
  }
3535
3545
  let Za = he, eo = Vt.RenderStrategy;
3536
- function Xs(t, e) {
3546
+ function Js(t, e) {
3537
3547
  var r, n;
3538
- let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: d, enterFrom: s, enterTo: g, entered: v, leave: w, leaveFrom: f, leaveTo: y, ...p } = t, [m, h] = Q(null), b = j(null), S = Ja(t), O = Se(...S ? [b, e, h] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = zs(), [k, Y] = Q(M ? "visible" : "hidden"), V = Ks(), { register: $, unregister: T } = V;
3548
+ let { transition: a = !0, beforeEnter: o, afterEnter: l, beforeLeave: u, afterLeave: i, enter: f, enterFrom: s, enterTo: h, entered: v, leave: w, leaveFrom: d, leaveTo: y, ...p } = t, [m, g] = Q(null), b = k(null), S = Ja(t), O = Se(...S ? [b, e, g] : e === null ? [] : [e]), _ = (r = p.unmount) == null || r ? Fe.Unmount : Fe.Hidden, { show: M, appear: W, initial: H } = Ks(), [j, z] = Q(M ? "visible" : "hidden"), V = Xs(), { register: $, unregister: T } = V;
3539
3549
  ae(() => $(b), [$, b]), ae(() => {
3540
3550
  if (_ === Fe.Hidden && b.current) {
3541
- if (M && k !== "visible") {
3542
- Y("visible");
3551
+ if (M && j !== "visible") {
3552
+ z("visible");
3543
3553
  return;
3544
3554
  }
3545
- return Ce(k, { hidden: () => T(b), visible: () => $(b) });
3555
+ return Ce(j, { hidden: () => T(b), visible: () => $(b) });
3546
3556
  }
3547
- }, [k, b, $, T, M, _]);
3557
+ }, [j, b, $, T, M, _]);
3548
3558
  let D = $t();
3549
3559
  ae(() => {
3550
- if (S && D && k === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3551
- }, [b, k, D, S]);
3552
- let ue = H && !W, de = W && M && H, ge = j(!1), te = Qa(() => {
3553
- ge.current || (Y("hidden"), T(b));
3554
- }, V), pe = U((Ne) => {
3560
+ if (S && D && j === "visible" && b.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
3561
+ }, [b, j, D, S]);
3562
+ let ue = H && !W, pe = W && M && H, ge = k(!1), te = Qa(() => {
3563
+ ge.current || (z("hidden"), T(b));
3564
+ }, V), ye = U((Ne) => {
3555
3565
  ge.current = !0;
3556
3566
  let xe = Ne ? "enter" : "leave";
3557
3567
  te.onStart(b, xe, (Oe) => {
@@ -3561,49 +3571,49 @@ function Xs(t, e) {
3561
3571
  let xe = Ne ? "enter" : "leave";
3562
3572
  ge.current = !1, te.onStop(b, xe, (Oe) => {
3563
3573
  Oe === "enter" ? l == null || l() : Oe === "leave" && (i == null || i());
3564
- }), xe === "leave" && !rr(te) && (Y("hidden"), T(b));
3574
+ }), xe === "leave" && !rr(te) && (z("hidden"), T(b));
3565
3575
  });
3566
- K(() => {
3567
- S && a || (pe(M), q(M));
3576
+ Y(() => {
3577
+ S && a || (ye(M), q(M));
3568
3578
  }, [M, S, a]);
3569
- let _e = !(!a || !S || !D || ue), [, ee] = gs(_e, m, M, { start: pe, end: q }), ar = je({ ref: O, className: ((n = kr(p.className, de && d, de && s, ee.enter && d, ee.enter && ee.closed && s, ee.enter && !ee.closed && g, ee.leave && w, ee.leave && !ee.closed && f, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...hs(ee) }), De = 0;
3570
- k === "visible" && (De |= me.Open), k === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
3571
- let lt = fe();
3572
- return A.createElement(tr.Provider, { value: te }, A.createElement(Ss, { value: De }, lt({ ourProps: ar, theirProps: p, defaultTag: Za, features: eo, visible: k === "visible", name: "Transition.Child" })));
3579
+ let _e = !(!a || !S || !D || ue), [, ee] = bs(_e, m, M, { start: ye, end: q }), ar = je({ ref: O, className: ((n = kr(p.className, pe && f, pe && s, ee.enter && f, ee.enter && ee.closed && s, ee.enter && !ee.closed && h, ee.leave && w, ee.leave && !ee.closed && d, ee.leave && ee.closed && y, !ee.transition && M && v)) == null ? void 0 : n.trim()) || void 0, ...gs(ee) }), De = 0;
3580
+ j === "visible" && (De |= me.Open), j === "hidden" && (De |= me.Closed), ee.enter && (De |= me.Opening), ee.leave && (De |= me.Closing);
3581
+ let lt = de();
3582
+ return A.createElement(tr.Provider, { value: te }, A.createElement(xs, { value: De }, lt({ ourProps: ar, theirProps: p, defaultTag: Za, features: eo, visible: j === "visible", name: "Transition.Child" })));
3573
3583
  }
3574
- function Js(t, e) {
3575
- let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = j(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
3584
+ function Qs(t, e) {
3585
+ let { show: r, appear: n = !1, unmount: a = !0, ...o } = t, l = k(null), u = Ja(t), i = Se(...u ? [l, e] : e === null ? [] : [e]);
3576
3586
  $t();
3577
- let d = Zt();
3578
- if (r === void 0 && d !== null && (r = (d & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3579
- let [s, g] = Q(r ? "visible" : "hidden"), v = Qa(() => {
3580
- r || g("hidden");
3581
- }), [w, f] = Q(!0), y = j([r]);
3587
+ let f = Zt();
3588
+ if (r === void 0 && f !== null && (r = (f & me.Open) === me.Open), r === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
3589
+ let [s, h] = Q(r ? "visible" : "hidden"), v = Qa(() => {
3590
+ r || h("hidden");
3591
+ }), [w, d] = Q(!0), y = k([r]);
3582
3592
  ae(() => {
3583
- w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), f(!1));
3593
+ w !== !1 && y.current[y.current.length - 1] !== r && (y.current.push(r), d(!1));
3584
3594
  }, [y, r]);
3585
3595
  let p = J(() => ({ show: r, appear: n, initial: w }), [r, n, w]);
3586
3596
  ae(() => {
3587
- r ? g("visible") : !rr(v) && l.current !== null && g("hidden");
3597
+ r ? h("visible") : !rr(v) && l.current !== null && h("hidden");
3588
3598
  }, [r, v]);
3589
- let m = { unmount: a }, h = U(() => {
3599
+ let m = { unmount: a }, g = U(() => {
3590
3600
  var O;
3591
- w && f(!1), (O = t.beforeEnter) == null || O.call(t);
3601
+ w && d(!1), (O = t.beforeEnter) == null || O.call(t);
3592
3602
  }), b = U(() => {
3593
3603
  var O;
3594
- w && f(!1), (O = t.beforeLeave) == null || O.call(t);
3595
- }), S = fe();
3596
- return A.createElement(tr.Provider, { value: v }, A.createElement(er.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: h, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
3604
+ w && d(!1), (O = t.beforeLeave) == null || O.call(t);
3605
+ }), S = de();
3606
+ return A.createElement(tr.Provider, { value: v }, A.createElement(er.Provider, { value: p }, S({ ourProps: { ...m, as: he, children: A.createElement(to, { ref: i, ...m, ...o, beforeEnter: g, beforeLeave: b }) }, theirProps: {}, defaultTag: he, features: eo, visible: s === "visible", name: "Transition" })));
3597
3607
  }
3598
- function Qs(t, e) {
3608
+ function Zs(t, e) {
3599
3609
  let r = ie(er) !== null, n = Zt() !== null;
3600
3610
  return A.createElement(A.Fragment, null, !r && n ? A.createElement(Br, { ref: e, ...t }) : A.createElement(to, { ref: e, ...t }));
3601
3611
  }
3602
- let Br = le(Js), to = le(Xs), it = le(Qs), ro = Object.assign(Br, { Child: it, Root: Br });
3603
- var Zs = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Zs || {}), ec = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(ec || {});
3604
- let tc = { 0(t, e) {
3612
+ let Br = le(Qs), to = le(Js), it = le(Zs), ro = Object.assign(Br, { Child: it, Root: Br });
3613
+ var ec = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(ec || {}), tc = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(tc || {});
3614
+ let rc = { 0(t, e) {
3605
3615
  return t.titleId === e.id ? t : { ...t, titleId: e.id };
3606
- } }, nn = ce(null);
3616
+ } }, nn = fe(null);
3607
3617
  nn.displayName = "DialogContext";
3608
3618
  function nr(t) {
3609
3619
  let e = ie(nn);
@@ -3613,37 +3623,37 @@ function nr(t) {
3613
3623
  }
3614
3624
  return e;
3615
3625
  }
3616
- function rc(t, e) {
3617
- return Ce(e.type, tc, t, e);
3626
+ function nc(t, e) {
3627
+ return Ce(e.type, rc, t, e);
3618
3628
  }
3619
3629
  let ra = le(function(t, e) {
3620
- let r = Ot(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: d = !1, unmount: s = !1, ...g } = t, v = j(!1);
3630
+ let r = Ot(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: f = !1, unmount: s = !1, ...h } = t, v = k(!1);
3621
3631
  u = function() {
3622
3632
  return u === "dialog" || u === "alertdialog" ? u : (v.current || (v.current = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog");
3623
3633
  }();
3624
3634
  let w = Zt();
3625
3635
  a === void 0 && w !== null && (a = (w & me.Open) === me.Open);
3626
- let f = j(null), y = Se(f, e), p = Tt(f), m = a ? 0 : 1, [h, b] = No(rc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = $t() ? m === 0 : !1, [M, W] = Is(), H = { get current() {
3636
+ let d = k(null), y = Se(d, e), p = Tt(d), m = a ? 0 : 1, [g, b] = No(nc, { titleId: null, descriptionId: null, panelRef: ko() }), S = U(() => o(!1)), O = U((q) => b({ type: 0, id: q })), _ = $t() ? m === 0 : !1, [M, W] = Ms(), H = { get current() {
3627
3637
  var q;
3628
- return (q = h.panelRef.current) != null ? q : f.current;
3629
- } }, k = za(), { resolveContainers: Y } = ks({ mainTreeNode: k, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
3630
- Ku(d || V ? !1 : _, { allowed: U(() => {
3638
+ return (q = g.panelRef.current) != null ? q : d.current;
3639
+ } }, j = za(), { resolveContainers: z } = js({ mainTreeNode: j, portals: M, defaultContainers: [H] }), V = w !== null ? (w & me.Closing) === me.Closing : !1;
3640
+ Xu(f || V ? !1 : _, { allowed: U(() => {
3631
3641
  var q, _e;
3632
- return [(_e = (q = f.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
3642
+ return [(_e = (q = d.current) == null ? void 0 : q.closest("[data-headlessui-portal]")) != null ? _e : null];
3633
3643
  }), disallowed: U(() => {
3634
3644
  var q;
3635
- return [(q = k == null ? void 0 : k.closest("body > *:not(#headlessui-portal-root)")) != null ? q : null];
3636
- }) }), us(_, Y, (q) => {
3645
+ return [(q = j == null ? void 0 : j.closest("body > *:not(#headlessui-portal-root)")) != null ? q : null];
3646
+ }) }), ss(_, z, (q) => {
3637
3647
  q.preventDefault(), S();
3638
- }), Ds(_, p == null ? void 0 : p.defaultView, (q) => {
3648
+ }), Ns(_, p == null ? void 0 : p.defaultView, (q) => {
3639
3649
  q.preventDefault(), q.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), S();
3640
- }), ys(d || V ? !1 : _, p, Y), Xu(_, f, S);
3641
- let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, h], [m, h, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), de = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": d ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": h.titleId, "aria-describedby": $, unmount: s }, ge = !Ns(), te = We.None;
3642
- _ && !d && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3643
- let pe = fe();
3644
- return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(Ga, { target: f }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Bs, { initialFocus: l, initialFocusFallback: f, containers: Y, features: te }, A.createElement(Gu, { value: S }, pe({ ourProps: de, theirProps: g, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
3645
- }), nc = "div", ac = Vt.RenderStrategy | Vt.Static;
3646
- function oc(t, e) {
3650
+ }), vs(f || V ? !1 : _, p, z), Ju(_, d, S);
3651
+ let [$, T] = Uu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, S, O, s]), ue = J(() => ({ open: m === 0 }), [m]), pe = { ref: y, id: n, role: u, tabIndex: -1, "aria-modal": f ? void 0 : m === 0 ? !0 : void 0, "aria-labelledby": g.titleId, "aria-describedby": $, unmount: s }, ge = !ks(), te = We.None;
3652
+ _ && !f && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3653
+ let ye = de();
3654
+ return A.createElement(Os, null, A.createElement(ea, { force: !0 }, A.createElement(Ds, null, A.createElement(nn.Provider, { value: D }, A.createElement(Ga, { target: d }, A.createElement(ea, { force: !1 }, A.createElement(T, { slot: ue }, A.createElement(W, null, A.createElement(Hs, { initialFocus: l, initialFocusFallback: d, containers: z, features: te }, A.createElement(Yu, { value: S }, ye({ ourProps: pe, theirProps: h, slot: ue, defaultTag: ac, features: oc, visible: m === 0, name: "Dialog" })))))))))));
3655
+ }), ac = "div", oc = Vt.RenderStrategy | Vt.Static;
3656
+ function ic(t, e) {
3647
3657
  let { transition: r = !1, open: n, ...a } = t, o = Zt(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
3648
3658
  if (!l && !u) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
3649
3659
  if (!l) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
@@ -3652,28 +3662,28 @@ function oc(t, e) {
3652
3662
  if (typeof t.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${t.onClose}`);
3653
3663
  return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(ro, { show: n, transition: r, unmount: a.unmount }, A.createElement(ra, { ref: e, ...a }))) : A.createElement(ta, null, A.createElement(ra, { ref: e, open: n, ...a }));
3654
3664
  }
3655
- let ic = "div";
3656
- function lc(t, e) {
3657
- let r = Ot(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = nr("Dialog.Panel"), d = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), g = U((p) => {
3665
+ let lc = "div";
3666
+ function uc(t, e) {
3667
+ let r = Ot(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = t, [{ dialogState: l, unmount: u }, i] = nr("Dialog.Panel"), f = Se(e, i.panelRef), s = J(() => ({ open: l === 0 }), [l]), h = U((p) => {
3658
3668
  p.stopPropagation();
3659
- }), v = { ref: d, id: n, onClick: g }, w = a ? it : he, f = a ? { unmount: u } : {}, y = fe();
3660
- return A.createElement(w, { ...f }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: ic, name: "Dialog.Panel" }));
3669
+ }), v = { ref: f, id: n, onClick: h }, w = a ? it : he, d = a ? { unmount: u } : {}, y = de();
3670
+ return A.createElement(w, { ...d }, y({ ourProps: v, theirProps: o, slot: s, defaultTag: lc, name: "Dialog.Panel" }));
3661
3671
  }
3662
- let uc = "div";
3663
- function sc(t, e) {
3664
- let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = nr("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, d = r ? { unmount: o } : {}, s = fe();
3665
- return A.createElement(i, { ...d }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: uc, name: "Dialog.Backdrop" }));
3672
+ let sc = "div";
3673
+ function cc(t, e) {
3674
+ let { transition: r = !1, ...n } = t, [{ dialogState: a, unmount: o }] = nr("Dialog.Backdrop"), l = J(() => ({ open: a === 0 }), [a]), u = { ref: e, "aria-hidden": !0 }, i = r ? it : he, f = r ? { unmount: o } : {}, s = de();
3675
+ return A.createElement(i, { ...f }, s({ ourProps: u, theirProps: n, slot: l, defaultTag: sc, name: "Dialog.Backdrop" }));
3666
3676
  }
3667
- let cc = "h2";
3668
- function fc(t, e) {
3677
+ let fc = "h2";
3678
+ function dc(t, e) {
3669
3679
  let r = Ot(), { id: n = `headlessui-dialog-title-${r}`, ...a } = t, [{ dialogState: o, setTitleId: l }] = nr("Dialog.Title"), u = Se(e);
3670
- K(() => (l(n), () => l(null)), [n, l]);
3671
- let i = J(() => ({ open: o === 0 }), [o]), d = { ref: u, id: n };
3672
- return fe()({ ourProps: d, theirProps: a, slot: i, defaultTag: cc, name: "Dialog.Title" });
3680
+ Y(() => (l(n), () => l(null)), [n, l]);
3681
+ let i = J(() => ({ open: o === 0 }), [o]), f = { ref: u, id: n };
3682
+ return de()({ ourProps: f, theirProps: a, slot: i, defaultTag: fc, name: "Dialog.Title" });
3673
3683
  }
3674
- let dc = le(oc), an = le(lc);
3675
- le(sc);
3676
- let pc = le(fc), yc = Object.assign(dc, { Panel: an, Title: pc, Description: Vu });
3684
+ let pc = le(ic), an = le(uc);
3685
+ le(cc);
3686
+ let yc = le(dc), vc = Object.assign(pc, { Panel: an, Title: yc, Description: qu });
3677
3687
  function no({ onClick: t }) {
3678
3688
  return /* @__PURE__ */ R.jsxs(
3679
3689
  "button",
@@ -3707,7 +3717,7 @@ function no({ onClick: t }) {
3707
3717
  }
3708
3718
  );
3709
3719
  }
3710
- const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
3720
+ const mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-modal-container fixed inset-0 z-40 overflow-y-auto p-4", children: /* @__PURE__ */ R.jsx(
3711
3721
  "div",
3712
3722
  {
3713
3723
  className: Ht("im-modal-positioner flex min-h-full justify-center", {
@@ -3742,7 +3752,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3742
3752
  }
3743
3753
  )
3744
3754
  }
3745
- ) }), mc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
3755
+ ) }), hc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.jsx("div", { className: "im-slideover-container fixed inset-0 z-40 overflow-y-auto overflow-x-hidden", children: /* @__PURE__ */ R.jsx(
3746
3756
  "div",
3747
3757
  {
3748
3758
  className: Ht("im-slideover-positioner flex min-h-full items-center", {
@@ -3776,8 +3786,8 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3776
3786
  }
3777
3787
  )
3778
3788
  }
3779
- ) }), hc = Hr(({ name: t, children: e, ...r }, n) => {
3780
- const a = (l) => typeof e == "function" ? e(l) : e, o = j(null);
3789
+ ) }), gc = Hr(({ name: t, children: e, ...r }, n) => {
3790
+ const a = (l) => typeof e == "function" ? e(l) : e, o = k(null);
3781
3791
  return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3782
3792
  Fa,
3783
3793
  {
@@ -3788,24 +3798,24 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3788
3798
  afterLeave: l,
3789
3799
  close: u,
3790
3800
  config: i,
3791
- emit: d,
3801
+ emit: f,
3792
3802
  getChildModal: s,
3793
- getParentModal: g,
3803
+ getParentModal: h,
3794
3804
  id: v,
3795
3805
  index: w,
3796
- isOpen: f,
3806
+ isOpen: d,
3797
3807
  modalContext: y,
3798
3808
  onTopOfStack: p,
3799
3809
  reload: m,
3800
- setOpen: h,
3810
+ setOpen: g,
3801
3811
  shouldRender: b
3802
3812
  }) => /* @__PURE__ */ R.jsx(
3803
3813
  ro,
3804
3814
  {
3805
3815
  appear: !0,
3806
- show: f ?? !1,
3816
+ show: d ?? !1,
3807
3817
  children: /* @__PURE__ */ R.jsxs(
3808
- yc,
3818
+ vc,
3809
3819
  {
3810
3820
  as: "div",
3811
3821
  className: "im-dialog relative z-20",
@@ -3833,7 +3843,7 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3833
3843
  ) : null,
3834
3844
  w > 0 && p ? /* @__PURE__ */ R.jsx("div", { className: "im-backdrop fixed inset-0 z-30 bg-black/75" }) : null,
3835
3845
  i.slideover ? /* @__PURE__ */ R.jsx(
3836
- mc,
3846
+ hc,
3837
3847
  {
3838
3848
  modalContext: y,
3839
3849
  config: i,
@@ -3841,21 +3851,21 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3841
3851
  afterLeave: l,
3842
3852
  close: u,
3843
3853
  config: i,
3844
- emit: d,
3854
+ emit: f,
3845
3855
  getChildModal: s,
3846
- getParentModal: g,
3856
+ getParentModal: h,
3847
3857
  id: v,
3848
3858
  index: w,
3849
- isOpen: f,
3859
+ isOpen: d,
3850
3860
  modalContext: y,
3851
3861
  onTopOfStack: p,
3852
3862
  reload: m,
3853
- setOpen: h,
3863
+ setOpen: g,
3854
3864
  shouldRender: b
3855
3865
  })
3856
3866
  }
3857
3867
  ) : /* @__PURE__ */ R.jsx(
3858
- vc,
3868
+ mc,
3859
3869
  {
3860
3870
  modalContext: y,
3861
3871
  config: i,
@@ -3863,16 +3873,16 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3863
3873
  afterLeave: l,
3864
3874
  close: u,
3865
3875
  config: i,
3866
- emit: d,
3876
+ emit: f,
3867
3877
  getChildModal: s,
3868
- getParentModal: g,
3878
+ getParentModal: h,
3869
3879
  id: v,
3870
3880
  index: w,
3871
- isOpen: f,
3881
+ isOpen: d,
3872
3882
  modalContext: y,
3873
3883
  onTopOfStack: p,
3874
3884
  reload: m,
3875
- setOpen: h,
3885
+ setOpen: g,
3876
3886
  shouldRender: b
3877
3887
  })
3878
3888
  }
@@ -3885,8 +3895,8 @@ const vc = ({ modalContext: t, config: e, children: r }) => /* @__PURE__ */ R.js
3885
3895
  }
3886
3896
  );
3887
3897
  });
3888
- hc.displayName = "Modal";
3889
- const $c = ({
3898
+ gc.displayName = "Modal";
3899
+ const Rc = ({
3890
3900
  href: t,
3891
3901
  method: e = "get",
3892
3902
  data: r = {},
@@ -3896,45 +3906,45 @@ const $c = ({
3896
3906
  onAfterLeave: l = null,
3897
3907
  onBlur: u = null,
3898
3908
  onClose: i = null,
3899
- onError: d = null,
3909
+ onError: f = null,
3900
3910
  onFocus: s = null,
3901
- onStart: g = null,
3911
+ onStart: h = null,
3902
3912
  onSuccess: v = null,
3903
3913
  navigate: w = null,
3904
- children: f,
3914
+ children: d,
3905
3915
  ...y
3906
3916
  }) => {
3907
- const [p, m] = Q(!1), [h, b] = Q(null), { stack: S, visit: O } = Kt(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
3917
+ const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Kt(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
3908
3918
  Object.keys(y).forEach((T) => {
3909
3919
  zn.includes(T) || (T.startsWith("on") && typeof y[T] == "function" ? T.toLowerCase() in window ? M[T] = y[T] : W[T] = y[T] : M[T] = y[T]);
3910
3920
  });
3911
- const [H, k] = Q(!1);
3912
- K(() => {
3913
- h && (h.onTopOfStack && H ? s == null || s() : !h.onTopOfStack && !H && (u == null || u()), k(!h.onTopOfStack));
3921
+ const [H, j] = Q(!1);
3922
+ Y(() => {
3923
+ g && (g.onTopOfStack && H ? s == null || s() : !g.onTopOfStack && !H && (u == null || u()), j(!g.onTopOfStack));
3914
3924
  }, [S]);
3915
- const Y = ve(() => {
3925
+ const z = ve(() => {
3916
3926
  i == null || i();
3917
3927
  }, [i]), V = ve(() => {
3918
3928
  b(null), l == null || l();
3919
3929
  }, [l]), $ = ve(
3920
3930
  (T) => {
3921
- T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), g == null || g()), O(
3931
+ T == null || T.preventDefault(), !p && (t.startsWith("#") || (m(!0), h == null || h()), O(
3922
3932
  t,
3923
3933
  e,
3924
3934
  r,
3925
3935
  a,
3926
- qo(aa(y, zn)),
3927
- () => Y(S.length),
3936
+ Go(aa(y, zn)),
3937
+ () => z(S.length),
3928
3938
  V,
3929
3939
  o,
3930
3940
  _
3931
3941
  ).then((D) => {
3932
3942
  b(D), D.registerEventListenersFromProps(W), v == null || v();
3933
3943
  }).catch((D) => {
3934
- console.error(D), d == null || d(D);
3944
+ console.error(D), f == null || f(D);
3935
3945
  }).finally(() => m(!1)));
3936
3946
  },
3937
- [t, e, r, a, o, y, Y, V]
3947
+ [t, e, r, a, o, y, z, V]
3938
3948
  );
3939
3949
  return /* @__PURE__ */ R.jsx(
3940
3950
  n,
@@ -3942,24 +3952,24 @@ const $c = ({
3942
3952
  ...M,
3943
3953
  href: t,
3944
3954
  onClick: $,
3945
- children: typeof f == "function" ? f({ loading: p }) : f
3955
+ children: typeof d == "function" ? d({ loading: p }) : d
3946
3956
  }
3947
3957
  );
3948
3958
  };
3949
- function Rc() {
3959
+ function Fc() {
3950
3960
  return Kt().stack[$a()] ?? null;
3951
3961
  }
3952
3962
  export {
3953
3963
  Fa as HeadlessModal,
3954
- hc as Modal,
3955
- $c as ModalLink,
3956
- $u as ModalRoot,
3957
- Tu as ModalStackProvider,
3964
+ gc as Modal,
3965
+ Rc as ModalLink,
3966
+ Ru as ModalRoot,
3967
+ $u as ModalStackProvider,
3958
3968
  Vr as getConfig,
3959
- Oc as putConfig,
3960
- Pc as renderApp,
3961
- xc as resetConfig,
3962
- Rc as useModal,
3969
+ Pc as putConfig,
3970
+ Ac as renderApp,
3971
+ Oc as resetConfig,
3972
+ Fc as useModal,
3963
3973
  $a as useModalIndex,
3964
3974
  Kt as useModalStack
3965
3975
  };