@inertiaui/modal-react 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Ro = Object.defineProperty;
2
2
  var Fo = (t, e, r) => e in t ? Ro(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
3
  var ye = (t, e, r) => Fo(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import * as mt 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 ra, useLayoutEffect as Co, useRef as j, useCallback as ve, Fragment as he, isValidElement as Io, cloneElement as Mo, useId as xt, useSyncExternalStore as _o, useReducer as Do, createRef as No } 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 Co, useRef as j, useCallback as ve, Fragment as he, isValidElement as Io, cloneElement as Mo, useId as xt, useSyncExternalStore as _o, useReducer as Do, createRef as No } from "react";
6
6
  import jt from "axios";
7
7
  import { router as yt } from "@inertiajs/react";
8
8
  import { createPortal as ko } from "react-dom";
@@ -61,7 +61,7 @@ class jo {
61
61
  return n;
62
62
  }
63
63
  }
64
- const Yt = new jo(), xc = () => Yt.reset(), Oc = (t, e) => Yt.put(t, e), na = (t) => Yt.get(t), ze = (t, e) => Yt.get(t ? `slideover.${e}` : `modal.${e}`);
64
+ const Yt = new jo(), 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
65
  var Ar = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
66
66
  function Lo(t) {
67
67
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
@@ -95,10 +95,10 @@ var Tr = { exports: {} }, ct = {};
95
95
  * This source code is licensed under the MIT license found in the
96
96
  * LICENSE file in the root directory of this source tree.
97
97
  */
98
- var wn;
98
+ var En;
99
99
  function Uo() {
100
- if (wn) return ct;
101
- wn = 1;
100
+ if (En) return ct;
101
+ En = 1;
102
102
  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 };
103
103
  function l(u, i, d) {
104
104
  var s, h = {}, v = null, w = null;
@@ -119,9 +119,9 @@ var ft = {};
119
119
  * This source code is licensed under the MIT license found in the
120
120
  * LICENSE file in the root directory of this source tree.
121
121
  */
122
- var En;
122
+ var Sn;
123
123
  function Bo() {
124
- return En || (En = 1, process.env.NODE_ENV !== "production" && function() {
124
+ return Sn || (Sn = 1, process.env.NODE_ENV !== "production" && function() {
125
125
  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"), h = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), f = Symbol.iterator, y = "@@iterator";
126
126
  function p(c) {
127
127
  if (c === null || typeof c != "object")
@@ -292,7 +292,7 @@ function Bo() {
292
292
  var no = typeof WeakMap == "function" ? WeakMap : Map;
293
293
  $t = new no();
294
294
  }
295
- function on(c, E) {
295
+ function ln(c, E) {
296
296
  if (!c || Oe)
297
297
  return "";
298
298
  {
@@ -364,7 +364,7 @@ function Bo() {
364
364
  return typeof c == "function" && $t.set(c, ke), ke;
365
365
  }
366
366
  function ao(c, E, x) {
367
- return on(c, !1);
367
+ return ln(c, !1);
368
368
  }
369
369
  function oo(c) {
370
370
  var E = c.prototype;
@@ -374,7 +374,7 @@ function Bo() {
374
374
  if (c == null)
375
375
  return "";
376
376
  if (typeof c == "function")
377
- return on(c, oo(c));
377
+ return ln(c, oo(c));
378
378
  if (typeof c == "string")
379
379
  return xe(c);
380
380
  switch (c) {
@@ -399,13 +399,13 @@ function Bo() {
399
399
  }
400
400
  return "";
401
401
  }
402
- var ut = Object.prototype.hasOwnProperty, ln = {}, un = m.ReactDebugCurrentFrame;
402
+ var ut = Object.prototype.hasOwnProperty, un = {}, sn = m.ReactDebugCurrentFrame;
403
403
  function Ft(c) {
404
404
  if (c) {
405
405
  var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
406
- un.setExtraStackFrame(x);
406
+ sn.setExtraStackFrame(x);
407
407
  } else
408
- un.setExtraStackFrame(null);
408
+ sn.setExtraStackFrame(null);
409
409
  }
410
410
  function io(c, E, x, P, N) {
411
411
  {
@@ -422,7 +422,7 @@ function Bo() {
422
422
  } catch (G) {
423
423
  F = G;
424
424
  }
425
- F && !(F instanceof Error) && (Ft(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), Ft(null)), F instanceof Error && !(F.message in ln) && (ln[F.message] = !0, Ft(N), g("Failed %s type: %s", x, F.message), Ft(null));
425
+ F && !(F instanceof Error) && (Ft(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), Ft(null)), F instanceof Error && !(F.message in un) && (un[F.message] = !0, Ft(N), g("Failed %s type: %s", x, F.message), Ft(null));
426
426
  }
427
427
  }
428
428
  }
@@ -438,24 +438,24 @@ function Bo() {
438
438
  }
439
439
  function so(c) {
440
440
  try {
441
- return sn(c), !1;
441
+ return cn(c), !1;
442
442
  } catch {
443
443
  return !0;
444
444
  }
445
445
  }
446
- function sn(c) {
446
+ function cn(c) {
447
447
  return "" + c;
448
448
  }
449
- function cn(c) {
449
+ function fn(c) {
450
450
  if (so(c))
451
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", uo(c)), sn(c);
451
+ return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", uo(c)), cn(c);
452
452
  }
453
453
  var st = m.ReactCurrentOwner, co = {
454
454
  key: !0,
455
455
  ref: !0,
456
456
  __self: !0,
457
457
  __source: !0
458
- }, fn, dn, or;
458
+ }, dn, pn, or;
459
459
  or = {};
460
460
  function fo(c) {
461
461
  if (ut.call(c, "ref")) {
@@ -482,7 +482,7 @@ function Bo() {
482
482
  function vo(c, E) {
483
483
  {
484
484
  var x = function() {
485
- 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));
485
+ dn || (dn = !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));
486
486
  };
487
487
  x.isReactWarning = !0, Object.defineProperty(c, "key", {
488
488
  get: x,
@@ -493,7 +493,7 @@ function Bo() {
493
493
  function mo(c, E) {
494
494
  {
495
495
  var x = function() {
496
- 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));
496
+ pn || (pn = !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));
497
497
  };
498
498
  x.isReactWarning = !0, Object.defineProperty(c, "ref", {
499
499
  get: x,
@@ -533,7 +533,7 @@ function Bo() {
533
533
  function go(c, E, x, P, N) {
534
534
  {
535
535
  var L, I = {}, F = null, ne = null;
536
- x !== void 0 && (cn(x), F = "" + x), po(E) && (cn(E.key), F = "" + E.key), fo(E) && (ne = E.ref, yo(E, N));
536
+ x !== void 0 && (fn(x), F = "" + x), po(E) && (fn(E.key), F = "" + E.key), fo(E) && (ne = E.ref, yo(E, N));
537
537
  for (L in E)
538
538
  ut.call(E, L) && !co.hasOwnProperty(L) && (I[L] = E[L]);
539
539
  if (c && c.defaultProps) {
@@ -548,20 +548,20 @@ function Bo() {
548
548
  return ho(c, F, ne, N, P, st.current, I);
549
549
  }
550
550
  }
551
- var ir = m.ReactCurrentOwner, pn = m.ReactDebugCurrentFrame;
551
+ var ir = m.ReactCurrentOwner, yn = m.ReactDebugCurrentFrame;
552
552
  function Ge(c) {
553
553
  if (c) {
554
554
  var E = c._owner, x = Rt(c.type, c._source, E ? E.type : null);
555
- pn.setExtraStackFrame(x);
555
+ yn.setExtraStackFrame(x);
556
556
  } else
557
- pn.setExtraStackFrame(null);
557
+ yn.setExtraStackFrame(null);
558
558
  }
559
559
  var lr;
560
560
  lr = !1;
561
561
  function ur(c) {
562
562
  return typeof c == "object" && c !== null && c.$$typeof === e;
563
563
  }
564
- function yn() {
564
+ function vn() {
565
565
  {
566
566
  if (ir.current) {
567
567
  var c = $(ir.current.type);
@@ -576,10 +576,10 @@ Check the render method of \`` + c + "`.";
576
576
  function bo(c) {
577
577
  return "";
578
578
  }
579
- var vn = {};
579
+ var mn = {};
580
580
  function wo(c) {
581
581
  {
582
- var E = yn();
582
+ var E = vn();
583
583
  if (!E) {
584
584
  var x = typeof c == "string" ? c : c.displayName || c.name;
585
585
  x && (E = `
@@ -589,27 +589,27 @@ Check the top-level render call using <` + x + ">.");
589
589
  return E;
590
590
  }
591
591
  }
592
- function mn(c, E) {
592
+ function hn(c, E) {
593
593
  {
594
594
  if (!c._store || c._store.validated || c.key != null)
595
595
  return;
596
596
  c._store.validated = !0;
597
597
  var x = wo(E);
598
- if (vn[x])
598
+ if (mn[x])
599
599
  return;
600
- vn[x] = !0;
600
+ mn[x] = !0;
601
601
  var P = "";
602
602
  c && c._owner && c._owner !== ir.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);
603
603
  }
604
604
  }
605
- function hn(c, E) {
605
+ function gn(c, E) {
606
606
  {
607
607
  if (typeof c != "object")
608
608
  return;
609
609
  if (ar(c))
610
610
  for (var x = 0; x < c.length; x++) {
611
611
  var P = c[x];
612
- ur(P) && mn(P, E);
612
+ ur(P) && hn(P, E);
613
613
  }
614
614
  else if (ur(c))
615
615
  c._store && (c._store.validated = !0);
@@ -617,7 +617,7 @@ Check the top-level render call using <` + x + ">.");
617
617
  var N = p(c);
618
618
  if (typeof N == "function" && N !== c.entries)
619
619
  for (var L = N.call(c), I; !(I = L.next()).done; )
620
- ur(I.value) && mn(I.value, E);
620
+ ur(I.value) && hn(I.value, E);
621
621
  }
622
622
  }
623
623
  }
@@ -658,15 +658,15 @@ Check the top-level render call using <` + x + ">.");
658
658
  c.ref !== null && (Ge(c), g("Invalid attribute `ref` supplied to `React.Fragment`."), Ge(null));
659
659
  }
660
660
  }
661
- var gn = {};
662
- function bn(c, E, x, P, N, L) {
661
+ var bn = {};
662
+ function wn(c, E, x, P, N, L) {
663
663
  {
664
664
  var I = k(c);
665
665
  if (!I) {
666
666
  var F = "";
667
667
  (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.");
668
668
  var ne = bo();
669
- ne ? F += ne : F += yn();
669
+ ne ? F += ne : F += vn();
670
670
  var G;
671
671
  c === null ? G = "null" : ar(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);
672
672
  }
@@ -679,35 +679,35 @@ Check the top-level render call using <` + x + ">.");
679
679
  if (P)
680
680
  if (ar(se)) {
681
681
  for (var Ye = 0; Ye < se.length; Ye++)
682
- hn(se[Ye], c);
682
+ gn(se[Ye], c);
683
683
  Object.freeze && Object.freeze(se);
684
684
  } else
685
685
  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.");
686
686
  else
687
- hn(se, c);
687
+ gn(se, c);
688
688
  }
689
689
  if (ut.call(E, "key")) {
690
690
  var ke = $(c), oe = Object.keys(E).filter(function($o) {
691
691
  return $o !== "key";
692
692
  }), sr = oe.length > 0 ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}";
693
- if (!gn[ke + sr]) {
693
+ if (!bn[ke + sr]) {
694
694
  var To = oe.length > 0 ? "{" + oe.join(": ..., ") + ": ...}" : "{}";
695
695
  g(`A props object containing a "key" prop is being spread into JSX:
696
696
  let props = %s;
697
697
  <%s {...props} />
698
698
  React keys must be passed directly to JSX without using spread:
699
699
  let props = %s;
700
- <%s key={someKey} {...props} />`, sr, ke, To, ke), gn[ke + sr] = !0;
700
+ <%s key={someKey} {...props} />`, sr, ke, To, ke), bn[ke + sr] = !0;
701
701
  }
702
702
  }
703
703
  return c === n ? So(z) : Eo(z), z;
704
704
  }
705
705
  }
706
706
  function xo(c, E, x) {
707
- return bn(c, E, x, !0);
707
+ return wn(c, E, x, !0);
708
708
  }
709
709
  function Oo(c, E, x) {
710
- return bn(c, E, x, !1);
710
+ return wn(c, E, x, !1);
711
711
  }
712
712
  var Po = Oo, Ao = xo;
713
713
  ft.Fragment = n, ft.jsx = Po, ft.jsxs = Ao;
@@ -774,7 +774,7 @@ function ti(t) {
774
774
  return Object.propertyIsEnumerable.call(t, e);
775
775
  }) : [];
776
776
  }
777
- function Sn(t) {
777
+ function xn(t) {
778
778
  return Object.keys(t).concat(ti(t));
779
779
  }
780
780
  function oa(t, e) {
@@ -789,9 +789,9 @@ function ri(t, e) {
789
789
  }
790
790
  function ni(t, e, r) {
791
791
  var n = {};
792
- return r.isMergeableObject(t) && Sn(t).forEach(function(a) {
792
+ return r.isMergeableObject(t) && xn(t).forEach(function(a) {
793
793
  n[a] = St(t[a], r);
794
- }), Sn(e).forEach(function(a) {
794
+ }), xn(e).forEach(function(a) {
795
795
  ri(t, a) || (oa(t, a) && r.isMergeableObject(e[a]) ? n[a] = ei(a, r)(t[a], e[a], r) : n[a] = St(e[a], r));
796
796
  }), n;
797
797
  }
@@ -832,14 +832,14 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
832
832
  return !1;
833
833
  }
834
834
  return !0;
835
- }, xn = typeof Symbol < "u" && Symbol, pi = di, yi = function() {
836
- return typeof xn != "function" || typeof Symbol != "function" || typeof xn("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : pi();
835
+ }, On = typeof Symbol < "u" && Symbol, pi = di, yi = function() {
836
+ return typeof On != "function" || typeof Symbol != "function" || typeof On("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : pi();
837
837
  }, cr = {
838
838
  __proto__: null,
839
839
  foo: {}
840
840
  }, vi = Object, mi = function() {
841
841
  return { __proto__: cr }.foo === cr.foo && !(cr instanceof vi);
842
- }, hi = "Function.prototype.bind called on incompatible ", gi = Object.prototype.toString, bi = Math.max, wi = "[object Function]", On = function(e, r) {
842
+ }, hi = "Function.prototype.bind called on incompatible ", gi = Object.prototype.toString, bi = Math.max, wi = "[object Function]", Pn = function(e, r) {
843
843
  for (var n = [], a = 0; a < e.length; a += 1)
844
844
  n[a] = e[a];
845
845
  for (var o = 0; o < r.length; o += 1)
@@ -861,13 +861,13 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
861
861
  if (this instanceof a) {
862
862
  var s = r.apply(
863
863
  this,
864
- On(n, arguments)
864
+ Pn(n, arguments)
865
865
  );
866
866
  return Object(s) === s ? s : this;
867
867
  }
868
868
  return r.apply(
869
869
  e,
870
- On(n, arguments)
870
+ Pn(n, arguments)
871
871
  );
872
872
  }, l = bi(0, r.length - n.length), u = [], i = 0; i < l; i++)
873
873
  u[i] = "$" + i;
@@ -877,7 +877,7 @@ var li = Error, ui = EvalError, si = RangeError, ci = ReferenceError, ia = Synta
877
877
  d.prototype = r.prototype, a.prototype = new d(), d.prototype = null;
878
878
  }
879
879
  return a;
880
- }, Oi = xi, Vr = Function.prototype.bind || Oi, Pi = Function.prototype.call, Ai = Object.prototype.hasOwnProperty, Ti = Vr, $i = Ti.call(Pi, Ai), C, Ri = li, Fi = ui, Ci = si, Ii = ci, et = ia, Qe = Ot, Mi = fi, la = Function, fr = function(t) {
880
+ }, Oi = xi, qr = Function.prototype.bind || Oi, Pi = Function.prototype.call, Ai = Object.prototype.hasOwnProperty, Ti = qr, $i = Ti.call(Pi, Ai), C, Ri = li, Fi = ui, Ci = si, Ii = ci, et = ia, Qe = Ot, Mi = fi, la = Function, fr = function(t) {
881
881
  try {
882
882
  return la('"use strict"; return (' + t + ").constructor;")();
883
883
  } catch {
@@ -996,7 +996,7 @@ var ji = function t(e) {
996
996
  a && Z && (r = Z(a.prototype));
997
997
  }
998
998
  return He[e] = r, r;
999
- }, Pn = {
999
+ }, An = {
1000
1000
  __proto__: null,
1001
1001
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
1002
1002
  "%ArrayPrototype%": ["Array", "prototype"],
@@ -1049,19 +1049,19 @@ var ji = function t(e) {
1049
1049
  "%URIErrorPrototype%": ["URIError", "prototype"],
1050
1050
  "%WeakMapPrototype%": ["WeakMap", "prototype"],
1051
1051
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
1052
- }, Pt = Vr, Lt = $i, Li = Pt.call(Function.call, Array.prototype.concat), Wi = Pt.call(Function.apply, Array.prototype.splice), An = Pt.call(Function.call, String.prototype.replace), Wt = Pt.call(Function.call, String.prototype.slice), Ui = Pt.call(Function.call, RegExp.prototype.exec), Bi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Hi = /\\(\\)?/g, Vi = function(e) {
1052
+ }, Pt = qr, Lt = $i, Li = Pt.call(Function.call, Array.prototype.concat), Wi = Pt.call(Function.apply, Array.prototype.splice), Tn = Pt.call(Function.call, String.prototype.replace), Wt = Pt.call(Function.call, String.prototype.slice), Ui = Pt.call(Function.call, RegExp.prototype.exec), Bi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, Hi = /\\(\\)?/g, Vi = function(e) {
1053
1053
  var r = Wt(e, 0, 1), n = Wt(e, -1);
1054
1054
  if (r === "%" && n !== "%")
1055
1055
  throw new et("invalid intrinsic syntax, expected closing `%`");
1056
1056
  if (n === "%" && r !== "%")
1057
1057
  throw new et("invalid intrinsic syntax, expected opening `%`");
1058
1058
  var a = [];
1059
- return An(e, Bi, function(o, l, u, i) {
1060
- a[a.length] = u ? An(i, Hi, "$1") : l || o;
1059
+ return Tn(e, Bi, function(o, l, u, i) {
1060
+ a[a.length] = u ? Tn(i, Hi, "$1") : l || o;
1061
1061
  }), a;
1062
1062
  }, qi = function(e, r) {
1063
1063
  var n = e, a;
1064
- if (Lt(Pn, n) && (a = Pn[n], n = "%" + a[0] + "%"), Lt(He, n)) {
1064
+ if (Lt(An, n) && (a = An[n], n = "%" + a[0] + "%"), Lt(He, n)) {
1065
1065
  var o = He[n];
1066
1066
  if (o === Je && (o = ji(n)), typeof o > "u" && !r)
1067
1067
  throw new Qe("intrinsic " + e + " exists, but is not available. Please file an issue!");
@@ -1102,10 +1102,10 @@ var ji = function t(e) {
1102
1102
  }
1103
1103
  }
1104
1104
  return u;
1105
- }, ua = { exports: {} }, pr, Tn;
1106
- function qr() {
1107
- if (Tn) return pr;
1108
- Tn = 1;
1105
+ }, ua = { exports: {} }, pr, $n;
1106
+ function Gr() {
1107
+ if ($n) return pr;
1108
+ $n = 1;
1109
1109
  var t = nt, e = t("%Object.defineProperty%", !0) || !1;
1110
1110
  if (e)
1111
1111
  try {
@@ -1122,7 +1122,7 @@ if (Nt)
1122
1122
  } catch {
1123
1123
  Nt = null;
1124
1124
  }
1125
- var sa = Nt, $n = qr(), Yi = ia, Xe = Ot, Rn = sa, zi = function(e, r, n) {
1125
+ var sa = Nt, Rn = Gr(), Yi = ia, Xe = Ot, Fn = sa, zi = function(e, r, n) {
1126
1126
  if (!e || typeof e != "object" && typeof e != "function")
1127
1127
  throw new Xe("`obj` must be an object or a function`");
1128
1128
  if (typeof r != "string" && typeof r != "symbol")
@@ -1135,9 +1135,9 @@ var sa = Nt, $n = qr(), Yi = ia, Xe = Ot, Rn = sa, zi = function(e, r, n) {
1135
1135
  throw new Xe("`nonConfigurable`, if provided, must be a boolean or null");
1136
1136
  if (arguments.length > 6 && typeof arguments[6] != "boolean")
1137
1137
  throw new Xe("`loose`, if provided, must be a boolean");
1138
- var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!Rn && Rn(e, r);
1139
- if ($n)
1140
- $n(e, r, {
1138
+ var a = arguments.length > 3 ? arguments[3] : null, o = arguments.length > 4 ? arguments[4] : null, l = arguments.length > 5 ? arguments[5] : null, u = arguments.length > 6 ? arguments[6] : !1, i = !!Fn && Fn(e, r);
1139
+ if (Rn)
1140
+ Rn(e, r, {
1141
1141
  configurable: l === null && i ? i.configurable : !l,
1142
1142
  enumerable: a === null && i ? i.enumerable : !a,
1143
1143
  value: n,
@@ -1147,7 +1147,7 @@ var sa = Nt, $n = qr(), Yi = ia, Xe = Ot, Rn = sa, zi = function(e, r, n) {
1147
1147
  e[r] = n;
1148
1148
  else
1149
1149
  throw new Yi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
1150
- }, $r = qr(), ca = function() {
1150
+ }, $r = Gr(), ca = function() {
1151
1151
  return !!$r;
1152
1152
  };
1153
1153
  ca.hasArrayLengthDefineBug = function() {
@@ -1159,24 +1159,24 @@ ca.hasArrayLengthDefineBug = function() {
1159
1159
  return !0;
1160
1160
  }
1161
1161
  };
1162
- var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor%"), Zi = function(e, r) {
1162
+ var Ki = ca, Xi = nt, Cn = zi, Ji = Ki(), In = sa, Mn = Ot, Qi = Xi("%Math.floor%"), Zi = function(e, r) {
1163
1163
  if (typeof e != "function")
1164
- throw new In("`fn` is not a function");
1164
+ throw new Mn("`fn` is not a function");
1165
1165
  if (typeof r != "number" || r < 0 || r > 4294967295 || Qi(r) !== r)
1166
- throw new In("`length` must be a positive 32-bit integer");
1166
+ throw new Mn("`length` must be a positive 32-bit integer");
1167
1167
  var n = arguments.length > 2 && !!arguments[2], a = !0, o = !0;
1168
- if ("length" in e && Cn) {
1169
- var l = Cn(e, "length");
1168
+ if ("length" in e && In) {
1169
+ var l = In(e, "length");
1170
1170
  l && !l.configurable && (a = !1), l && !l.writable && (o = !1);
1171
1171
  }
1172
- return (a || o || !n) && (Ji ? Fn(
1172
+ return (a || o || !n) && (Ji ? Cn(
1173
1173
  /** @type {Parameters<define>[0]} */
1174
1174
  e,
1175
1175
  "length",
1176
1176
  r,
1177
1177
  !0,
1178
1178
  !0
1179
- ) : Fn(
1179
+ ) : Cn(
1180
1180
  /** @type {Parameters<define>[0]} */
1181
1181
  e,
1182
1182
  "length",
@@ -1184,7 +1184,7 @@ var Ki = ca, Xi = nt, Fn = zi, Ji = Ki(), Cn = sa, In = Ot, Qi = Xi("%Math.floor
1184
1184
  )), e;
1185
1185
  };
1186
1186
  (function(t) {
1187
- var e = Vr, r = nt, n = Zi, a = Ot, o = r("%Function.prototype.apply%"), l = r("%Function.prototype.call%"), u = r("%Reflect.apply%", !0) || e.call(l, o), i = qr(), d = r("%Math.max%");
1187
+ var e = qr, r = nt, n = Zi, a = Ot, 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
1188
  t.exports = function(v) {
1189
1189
  if (typeof v != "function")
1190
1190
  throw new a("a function is required");
@@ -1208,23 +1208,23 @@ const nl = {}, al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
1208
1208
  __proto__: null,
1209
1209
  default: nl
1210
1210
  }, Symbol.toStringTag, { value: "Module" })), ol = /* @__PURE__ */ Wo(al);
1211
- var Gr = typeof Map == "function" && Map.prototype, yr = Object.getOwnPropertyDescriptor && Gr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Gr && yr && typeof yr.get == "function" ? yr.get : null, Mn = Gr && Map.prototype.forEach, Yr = typeof Set == "function" && Set.prototype, vr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = Yr && vr && typeof vr.get == "function" ? vr.get : null, _n = Yr && Set.prototype.forEach, il = typeof WeakMap == "function" && WeakMap.prototype, ht = il ? WeakMap.prototype.has : null, ll = typeof WeakSet == "function" && WeakSet.prototype, gt = ll ? WeakSet.prototype.has : null, ul = typeof WeakRef == "function" && WeakRef.prototype, Dn = ul ? WeakRef.prototype.deref : null, sl = Boolean.prototype.valueOf, cl = Object.prototype.toString, fl = Function.prototype.toString, dl = String.prototype.match, zr = String.prototype.slice, Re = String.prototype.replace, pl = String.prototype.toUpperCase, Nn = String.prototype.toLowerCase, pa = RegExp.prototype.test, kn = Array.prototype.concat, Ee = Array.prototype.join, yl = Array.prototype.slice, jn = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, mr = 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) {
1211
+ var Yr = typeof Map == "function" && Map.prototype, yr = Object.getOwnPropertyDescriptor && Yr ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ut = Yr && yr && typeof yr.get == "function" ? yr.get : null, _n = Yr && Map.prototype.forEach, zr = typeof Set == "function" && Set.prototype, vr = Object.getOwnPropertyDescriptor && zr ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Bt = zr && vr && typeof vr.get == "function" ? vr.get : null, Dn = zr && Set.prototype.forEach, il = typeof WeakMap == "function" && WeakMap.prototype, ht = il ? WeakMap.prototype.has : null, ll = typeof WeakSet == "function" && WeakSet.prototype, gt = ll ? WeakSet.prototype.has : null, ul = typeof WeakRef == "function" && WeakRef.prototype, Nn = ul ? WeakRef.prototype.deref : null, sl = Boolean.prototype.valueOf, cl = Object.prototype.toString, fl = Function.prototype.toString, dl = String.prototype.match, Kr = String.prototype.slice, Re = String.prototype.replace, pl = String.prototype.toUpperCase, kn = String.prototype.toLowerCase, pa = RegExp.prototype.test, jn = Array.prototype.concat, Ee = Array.prototype.join, yl = Array.prototype.slice, Ln = Math.floor, Rr = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, mr = 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, Wn = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
1212
1212
  return t.__proto__;
1213
1213
  } : null);
1214
- function Wn(t, e) {
1214
+ function Un(t, e) {
1215
1215
  if (t === 1 / 0 || t === -1 / 0 || t !== t || t && t > -1e3 && t < 1e3 || pa.call(/e/, e))
1216
1216
  return e;
1217
1217
  var r = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
1218
1218
  if (typeof t == "number") {
1219
- var n = t < 0 ? -jn(-t) : jn(t);
1219
+ var n = t < 0 ? -Ln(-t) : Ln(t);
1220
1220
  if (n !== t) {
1221
- var a = String(n), o = zr.call(e, a.length + 1);
1221
+ var a = String(n), o = Kr.call(e, a.length + 1);
1222
1222
  return Re.call(a, r, "$&_") + "." + Re.call(Re.call(o, /([0-9]{3})/g, "$&_"), /_$/, "");
1223
1223
  }
1224
1224
  }
1225
1225
  return Re.call(e, r, "$&_");
1226
1226
  }
1227
- var Cr = ol, Un = Cr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a) {
1227
+ var Cr = ol, Bn = Cr.custom, Hn = ma(Bn) ? Bn : null, vl = function t(e, r, n, a) {
1228
1228
  var o = r || {};
1229
1229
  if (Te(o, "quoteStyle") && o.quoteStyle !== "single" && o.quoteStyle !== "double")
1230
1230
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
@@ -1250,11 +1250,11 @@ var Cr = ol, Un = Cr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
1250
1250
  if (e === 0)
1251
1251
  return 1 / 0 / e > 0 ? "0" : "-0";
1252
1252
  var i = String(e);
1253
- return u ? Wn(e, i) : i;
1253
+ return u ? Un(e, i) : i;
1254
1254
  }
1255
1255
  if (typeof e == "bigint") {
1256
1256
  var d = String(e) + "n";
1257
- return u ? Wn(e, d) : d;
1257
+ return u ? Un(e, d) : d;
1258
1258
  }
1259
1259
  var s = typeof o.depth > "u" ? 5 : o.depth;
1260
1260
  if (typeof n > "u" && (n = 0), n >= s && s > 0 && typeof e == "object")
@@ -1273,7 +1273,7 @@ var Cr = ol, Un = Cr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
1273
1273
  }
1274
1274
  return t($, o, n + 1, a);
1275
1275
  }
1276
- if (typeof e == "function" && !Hn(e)) {
1276
+ if (typeof e == "function" && !Vn(e)) {
1277
1277
  var w = Ol(e), f = It(e, v);
1278
1278
  return "[Function" + (w ? ": " + w : " (anonymous)") + "]" + (f.length > 0 ? " { " + Ee.call(f, ", ") + " }" : "");
1279
1279
  }
@@ -1282,9 +1282,9 @@ var Cr = ol, Un = Cr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
1282
1282
  return typeof e == "object" && !tt ? dt(y) : y;
1283
1283
  }
1284
1284
  if (Fl(e)) {
1285
- for (var p = "<" + Nn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1285
+ for (var p = "<" + kn.call(String(e.nodeName)), m = e.attributes || [], g = 0; g < m.length; g++)
1286
1286
  p += " " + m[g].name + "=" + va(ml(m[g].value), "double", o);
1287
- return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + Nn.call(String(e.nodeName)) + ">", p;
1287
+ return p += ">", e.childNodes && e.childNodes.length && (p += "..."), p += "</" + kn.call(String(e.nodeName)) + ">", p;
1288
1288
  }
1289
1289
  if (Ir(e)) {
1290
1290
  if (e.length === 0)
@@ -1294,25 +1294,25 @@ var Cr = ol, Un = Cr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
1294
1294
  }
1295
1295
  if (gl(e)) {
1296
1296
  var S = It(e, v);
1297
- 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, ", ") + " }";
1297
+ return !("cause" in Error.prototype) && "cause" in e && !ya.call(e, "cause") ? "{ [" + String(e) + "] " + Ee.call(jn.call("[cause]: " + v(e.cause), S), ", ") + " }" : S.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + Ee.call(S, ", ") + " }";
1298
1298
  }
1299
1299
  if (typeof e == "object" && l) {
1300
- if (Bn && typeof e[Bn] == "function" && Cr)
1300
+ if (Hn && typeof e[Hn] == "function" && Cr)
1301
1301
  return Cr(e, { depth: s - n });
1302
1302
  if (l !== "symbol" && typeof e.inspect == "function")
1303
1303
  return e.inspect();
1304
1304
  }
1305
1305
  if (Pl(e)) {
1306
1306
  var O = [];
1307
- return Mn && Mn.call(e, function($, T) {
1307
+ return _n && _n.call(e, function($, T) {
1308
1308
  O.push(v(T, e, !0) + " => " + v($, e));
1309
- }), Vn("Map", Ut.call(e), O, h);
1309
+ }), qn("Map", Ut.call(e), O, h);
1310
1310
  }
1311
1311
  if ($l(e)) {
1312
1312
  var _ = [];
1313
- return _n && _n.call(e, function($) {
1313
+ return Dn && Dn.call(e, function($) {
1314
1314
  _.push(v($, e));
1315
- }), Vn("Set", Bt.call(e), _, h);
1315
+ }), qn("Set", Bt.call(e), _, h);
1316
1316
  }
1317
1317
  if (Al(e))
1318
1318
  return hr("WeakMap");
@@ -1332,8 +1332,8 @@ var Cr = ol, Un = Cr.custom, Bn = ma(Un) ? Un : null, vl = function t(e, r, n, a
1332
1332
  return "{ [object Window] }";
1333
1333
  if (typeof globalThis < "u" && e === globalThis || typeof Ar < "u" && e === Ar)
1334
1334
  return "{ [object globalThis] }";
1335
- if (!hl(e) && !Hn(e)) {
1336
- 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 ? zr.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 || []), ": ") + "] " : "");
1335
+ if (!hl(e) && !Vn(e)) {
1336
+ var M = It(e, v), W = Wn ? Wn(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(jn.call([], k || [], H || []), ": ") + "] " : "");
1337
1337
  return M.length === 0 ? V + "{}" : h ? V + "{" + Mr(M, h) + "}" : V + "{ " + Ee.call(M, ", ") + " }";
1338
1338
  }
1339
1339
  return String(e);
@@ -1351,7 +1351,7 @@ function Ir(t) {
1351
1351
  function hl(t) {
1352
1352
  return Ie(t) === "[object Date]" && (!re || !(typeof t == "object" && re in t));
1353
1353
  }
1354
- function Hn(t) {
1354
+ function Vn(t) {
1355
1355
  return Ie(t) === "[object RegExp]" && (!re || !(typeof t == "object" && re in t));
1356
1356
  }
1357
1357
  function gl(t) {
@@ -1442,10 +1442,10 @@ function Al(t) {
1442
1442
  return !1;
1443
1443
  }
1444
1444
  function Tl(t) {
1445
- if (!Dn || !t || typeof t != "object")
1445
+ if (!Nn || !t || typeof t != "object")
1446
1446
  return !1;
1447
1447
  try {
1448
- return Dn.call(t), !0;
1448
+ return Nn.call(t), !0;
1449
1449
  } catch {
1450
1450
  }
1451
1451
  return !1;
@@ -1486,7 +1486,7 @@ function Fl(t) {
1486
1486
  function ga(t, e) {
1487
1487
  if (t.length > e.maxStringLength) {
1488
1488
  var r = t.length - e.maxStringLength, n = "... " + r + " more character" + (r > 1 ? "s" : "");
1489
- return ga(zr.call(t, 0, e.maxStringLength), e) + n;
1489
+ return ga(Kr.call(t, 0, e.maxStringLength), e) + n;
1490
1490
  }
1491
1491
  var a = Re.call(Re.call(t, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, Cl);
1492
1492
  return va(a, "single", e);
@@ -1507,7 +1507,7 @@ function dt(t) {
1507
1507
  function hr(t) {
1508
1508
  return t + " { ? }";
1509
1509
  }
1510
- function Vn(t, e, r, n) {
1510
+ function qn(t, e, r, n) {
1511
1511
  var a = n ? Mr(r, n) : Ee.call(r, ", ");
1512
1512
  return t + " (" + e + ") {" + a + "}";
1513
1513
  }
@@ -1559,16 +1559,16 @@ function It(t, e) {
1559
1559
  ya.call(t, o[d]) && n.push("[" + e(o[d]) + "]: " + e(t[o[d]], t));
1560
1560
  return n;
1561
1561
  }
1562
- var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), Nl = at("WeakMap.prototype.get", !0), kl = at("WeakMap.prototype.set", !0), jl = at("WeakMap.prototype.has", !0), Ll = at("Map.prototype.get", !0), Wl = at("Map.prototype.set", !0), Ul = at("Map.prototype.has", !0), Kr = function(t, e) {
1562
+ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%", !0), Nl = at("WeakMap.prototype.get", !0), kl = at("WeakMap.prototype.set", !0), jl = at("WeakMap.prototype.has", !0), Ll = at("Map.prototype.get", !0), Wl = at("Map.prototype.set", !0), Ul = at("Map.prototype.has", !0), Xr = function(t, e) {
1563
1563
  for (var r = t, n; (n = r.next) !== null; r = n)
1564
1564
  if (n.key === e)
1565
1565
  return r.next = n.next, n.next = /** @type {NonNullable<typeof list.next>} */
1566
1566
  t.next, t.next = n, n;
1567
1567
  }, Bl = function(t, e) {
1568
- var r = Kr(t, e);
1568
+ var r = Xr(t, e);
1569
1569
  return r && r.value;
1570
1570
  }, Hl = function(t, e, r) {
1571
- var n = Kr(t, e);
1571
+ var n = Xr(t, e);
1572
1572
  n ? n.value = r : t.next = /** @type {import('.').ListNode<typeof value>} */
1573
1573
  {
1574
1574
  // eslint-disable-line no-param-reassign, no-extra-parens
@@ -1577,7 +1577,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1577
1577
  value: r
1578
1578
  };
1579
1579
  }, Vl = function(t, e) {
1580
- return !!Kr(t, e);
1580
+ return !!Xr(t, e);
1581
1581
  }, ql = function() {
1582
1582
  var e, r, n, a = {
1583
1583
  assert: function(o) {
@@ -1613,7 +1613,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1613
1613
  }, Gl = String.prototype.replace, Yl = /%20/g, gr = {
1614
1614
  RFC1738: "RFC1738",
1615
1615
  RFC3986: "RFC3986"
1616
- }, Xr = {
1616
+ }, Jr = {
1617
1617
  default: gr.RFC3986,
1618
1618
  formatters: {
1619
1619
  RFC1738: function(t) {
@@ -1625,7 +1625,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1625
1625
  },
1626
1626
  RFC1738: gr.RFC1738,
1627
1627
  RFC3986: gr.RFC3986
1628
- }, zl = Xr, br = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1628
+ }, zl = Jr, br = Object.prototype.hasOwnProperty, Le = Array.isArray, be = function() {
1629
1629
  for (var t = [], e = 0; e < 256; ++e)
1630
1630
  t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
1631
1631
  return t;
@@ -1743,7 +1743,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1743
1743
  isRegExp: tu,
1744
1744
  maybeMap: au,
1745
1745
  merge: Xl
1746
- }, Sa = ql, kt = Ea, bt = Xr, ou = Object.prototype.hasOwnProperty, xa = {
1746
+ }, Sa = ql, kt = Ea, bt = Jr, ou = Object.prototype.hasOwnProperty, xa = {
1747
1747
  brackets: function(e) {
1748
1748
  return e + "[]";
1749
1749
  },
@@ -1756,7 +1756,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1756
1756
  }
1757
1757
  }, we = Array.isArray, iu = Array.prototype.push, Oa = function(t, e) {
1758
1758
  iu.apply(t, we(e) ? e : [e]);
1759
- }, lu = Date.prototype.toISOString, qn = bt.default, X = {
1759
+ }, lu = Date.prototype.toISOString, Gn = bt.default, X = {
1760
1760
  addQueryPrefix: !1,
1761
1761
  allowDots: !1,
1762
1762
  allowEmptyArrays: !1,
@@ -1768,8 +1768,8 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
1768
1768
  encodeDotInKeys: !1,
1769
1769
  encoder: kt.encode,
1770
1770
  encodeValuesOnly: !1,
1771
- format: qn,
1772
- formatter: bt.formatters[qn],
1771
+ format: Gn,
1772
+ formatter: bt.formatters[Gn],
1773
1773
  // deprecated
1774
1774
  indices: !1,
1775
1775
  serializeDate: function(e) {
@@ -2052,7 +2052,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2052
2052
  a = rt.merge(a, i, r);
2053
2053
  }
2054
2054
  return r.allowSparse === !0 ? a : rt.compact(a);
2055
- }, Eu = fu, Su = wu, xu = Xr, Gn = {
2055
+ }, Eu = fu, Su = wu, xu = Jr, Yn = {
2056
2056
  formats: xu,
2057
2057
  parse: Su,
2058
2058
  stringify: Eu
@@ -2216,7 +2216,7 @@ var ba = nt, at = rl, _l = vl, Dl = Ot, Mt = ba("%WeakMap%", !0), _t = ba("%Map%
2216
2216
  })(Ou);
2217
2217
  function Pu(t, e, r, n = "brackets") {
2218
2218
  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");
2219
- return t === "get" && Object.keys(r).length && (d.search = Gn.stringify(ii(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];
2219
+ return t === "get" && Object.keys(r).length && (d.search = Yn.stringify(ii(Yn.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];
2220
2220
  }
2221
2221
  const zt = ce(null);
2222
2222
  zt.displayName = "ModalStackContext";
@@ -2329,7 +2329,8 @@ const Au = ({ children: t }) => {
2329
2329
  p.config ?? {},
2330
2330
  p.onClose,
2331
2331
  p.onAfterLeave,
2332
- p.queryStringArrayFormat ?? "brackets"
2332
+ p.queryStringArrayFormat ?? "brackets",
2333
+ p.navigate ?? Vr("navigate")
2333
2334
  ), h = (y, p, m = {}, g = {}, b = {}, S = null, O = null, _ = "brackets", M = !1) => new Promise((W, H) => {
2334
2335
  if (y.startsWith("#")) {
2335
2336
  W(d(y.substring(1), b, S, O));
@@ -2401,12 +2402,12 @@ const Au = ({ children: t }) => {
2401
2402
  }
2402
2403
  };
2403
2404
  return /* @__PURE__ */ R.jsx(zt.Provider, { value: f, children: t });
2404
- }, Jr = () => {
2405
+ }, Qr = () => {
2405
2406
  const t = ie(zt);
2406
2407
  if (t === null)
2407
2408
  throw new Error("useModalStack must be used within a ModalStackProvider");
2408
2409
  return t;
2409
- }, Yn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Pc = (t, e) => {
2410
+ }, zn = ["closeButton", "closeExplicitly", "maxWidth", "paddingClasses", "panelClasses", "position", "slideover"], Pc = (t, e) => {
2410
2411
  e.initialPage && (Aa = e.initialPage.version), e.resolveComponent && (Ta = e.resolveComponent);
2411
2412
  const r = ({ Component: n, props: a, key: o }) => {
2412
2413
  const l = () => {
@@ -2449,16 +2450,16 @@ const Au = ({ children: t }) => {
2449
2450
  t,
2450
2451
  e.stack.length > 0 && /* @__PURE__ */ R.jsx($a, { index: 0 })
2451
2452
  ] });
2452
- }, Qr = A.createContext(null);
2453
- Qr.displayName = "ModalIndexContext";
2453
+ }, Zr = A.createContext(null);
2454
+ Zr.displayName = "ModalIndexContext";
2454
2455
  const $u = () => {
2455
- const t = A.useContext(Qr);
2456
+ const t = A.useContext(Zr);
2456
2457
  if (t === void 0)
2457
2458
  throw new Error("useModalIndex must be used within a ModalIndexProvider");
2458
2459
  return t;
2459
2460
  }, $a = ({ index: t }) => {
2460
- const { stack: e } = Jr(), r = J(() => e[t], [e, t]);
2461
- return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Qr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
2461
+ const { stack: e } = Qr(), r = J(() => e[t], [e, t]);
2462
+ return (r == null ? void 0 : r.component) && /* @__PURE__ */ R.jsx(Zr.Provider, { value: t, children: /* @__PURE__ */ R.jsx(
2462
2463
  r.component,
2463
2464
  {
2464
2465
  ...r.componentProps,
@@ -2466,10 +2467,10 @@ const $u = () => {
2466
2467
  }
2467
2468
  ) });
2468
2469
  }, Ra = Hr(({ name: t, children: e, ...r }, n) => {
2469
- const a = $u(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Jr(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2470
+ const a = $u(), { stack: o, registerLocalModal: l, removeLocalModal: u } = Qr(), [i, d] = Q(null), s = J(() => t ? i : o[a], [t, i, a, o]), h = J(() => {
2470
2471
  var f;
2471
2472
  return (f = o.find((y) => y.shouldRender && y.index > (s == null ? void 0 : s.index))) == null ? void 0 : f.index;
2472
- }, [a, o]), v = J(() => (s == null ? void 0 : s.modalProps.slideover) ?? r.slideover ?? na("type") === "slideover", [r.slideover]), w = J(
2473
+ }, [a, o]), v = J(() => (s == null ? void 0 : s.modalProps.slideover) ?? r.slideover ?? Vr("type") === "slideover", [r.slideover]), w = J(
2473
2474
  () => ({
2474
2475
  slideover: v,
2475
2476
  closeButton: r.closeButton ?? ze(v, "closeButton"),
@@ -2492,7 +2493,7 @@ const $u = () => {
2492
2493
  };
2493
2494
  }
2494
2495
  return s.registerEventListenersFromProps(r);
2495
- }, [t]), ra(
2496
+ }, [t]), na(
2496
2497
  n,
2497
2498
  () => ({
2498
2499
  afterLeave: () => s.afterLeave(),
@@ -2619,7 +2620,7 @@ function Me() {
2619
2620
  } };
2620
2621
  return e;
2621
2622
  }
2622
- function Zr() {
2623
+ function en() {
2623
2624
  let [t] = Q(Me);
2624
2625
  return K(() => () => t.dispose(), [t]), t;
2625
2626
  }
@@ -2764,10 +2765,10 @@ function Se(...t) {
2764
2765
  });
2765
2766
  return t.every((n) => n == null || (n == null ? void 0 : n[Ia])) ? void 0 : r;
2766
2767
  }
2767
- let en = ce(null);
2768
- en.displayName = "DescriptionContext";
2768
+ let tn = ce(null);
2769
+ tn.displayName = "DescriptionContext";
2769
2770
  function Ma() {
2770
- let t = ie(en);
2771
+ let t = ie(tn);
2771
2772
  if (t === null) {
2772
2773
  let e = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
2773
2774
  throw Error.captureStackTrace && Error.captureStackTrace(e, Ma), e;
@@ -2781,7 +2782,7 @@ function Wu() {
2781
2782
  let u = l.slice(), i = u.indexOf(o);
2782
2783
  return i !== -1 && u.splice(i, 1), u;
2783
2784
  }))), a = J(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
2784
- return A.createElement(en.Provider, { value: a }, r.children);
2785
+ return A.createElement(tn.Provider, { value: a }, r.children);
2785
2786
  }, [e])];
2786
2787
  }
2787
2788
  let Uu = "p";
@@ -2838,12 +2839,12 @@ function ot(t, e) {
2838
2839
  return o === -1 && (o = l, l += 1), o === l - 1;
2839
2840
  }
2840
2841
  let Lr = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
2841
- function zn(t) {
2842
+ function Kn(t) {
2842
2843
  var e;
2843
2844
  let r = (e = wt.get(t)) != null ? e : 0;
2844
- return wt.set(t, r + 1), r !== 0 ? () => Kn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Kn(t));
2845
+ return wt.set(t, r + 1), r !== 0 ? () => Xn(t) : (Lr.set(t, { "aria-hidden": t.getAttribute("aria-hidden"), inert: t.inert }), t.setAttribute("aria-hidden", "true"), t.inert = !0, () => Xn(t));
2845
2846
  }
2846
- function Kn(t) {
2847
+ function Xn(t) {
2847
2848
  var e;
2848
2849
  let r = (e = wt.get(t)) != null ? e : 1;
2849
2850
  if (r === 1 ? wt.delete(t) : wt.set(t, r - 1), r !== 1) return;
@@ -2856,7 +2857,7 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
2856
2857
  var a, o;
2857
2858
  if (!n) return;
2858
2859
  let l = Me();
2859
- for (let i of (a = r == null ? void 0 : r()) != null ? a : []) i && l.add(zn(i));
2860
+ for (let i of (a = r == null ? void 0 : r()) != null ? a : []) i && l.add(Kn(i));
2860
2861
  let u = (o = e == null ? void 0 : e()) != null ? o : [];
2861
2862
  for (let i of u) {
2862
2863
  if (!i) continue;
@@ -2864,7 +2865,7 @@ function Ku(t, { allowed: e, disallowed: r } = {}) {
2864
2865
  if (!d) continue;
2865
2866
  let s = i.parentElement;
2866
2867
  for (; s && s !== d.body; ) {
2867
- for (let h of s.children) u.some((v) => h.contains(v)) || l.add(zn(h));
2868
+ for (let h of s.children) u.some((v) => h.contains(v)) || l.add(Kn(h));
2868
2869
  s = s.parentElement;
2869
2870
  }
2870
2871
  }
@@ -2991,7 +2992,7 @@ function La(t, e, r, n) {
2991
2992
  return window.addEventListener(e, o, n), () => window.removeEventListener(e, o, n);
2992
2993
  }, [t, e, n]);
2993
2994
  }
2994
- const Xn = 30;
2995
+ const Jn = 30;
2995
2996
  function us(t, e, r) {
2996
2997
  let n = ot(t, "outside-click"), a = qe(r), o = ve(function(i, d) {
2997
2998
  if (i.defaultPrevented) return;
@@ -3017,7 +3018,7 @@ function us(t, e, r) {
3017
3018
  u.current.x = i.touches[0].clientX, u.current.y = i.touches[0].clientY;
3018
3019
  }, !0), pt(n, "touchend", (i) => {
3019
3020
  let d = { x: i.changedTouches[0].clientX, y: i.changedTouches[0].clientY };
3020
- if (!(Math.abs(d.x - u.current.x) >= Xn || Math.abs(d.y - u.current.y) >= Xn)) return o(i, () => i.target instanceof HTMLElement ? i.target : null);
3021
+ 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);
3021
3022
  }, !0), La(n, "blur", (i) => o(i, () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null), !0);
3022
3023
  }
3023
3024
  function At(...t) {
@@ -3137,8 +3138,8 @@ function vs(t = 0) {
3137
3138
  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]);
3138
3139
  return { flags: e, setFlag: n, addFlag: a, hasFlag: o, removeFlag: l, toggleFlag: u };
3139
3140
  }
3140
- var Jn, Qn;
3141
- typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Jn = process == null ? void 0 : process.env) == null ? void 0 : Jn.NODE_ENV) === "test" && typeof ((Qn = Element == null ? void 0 : Element.prototype) == null ? void 0 : Qn.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
3141
+ var Qn, Zn;
3142
+ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Qn = process == null ? void 0 : process.env) == null ? void 0 : Qn.NODE_ENV) === "test" && typeof ((Zn = Element == null ? void 0 : Element.prototype) == null ? void 0 : Zn.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
3142
3143
  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(`
3143
3144
  `)), [];
3144
3145
  });
@@ -3149,7 +3150,7 @@ function hs(t) {
3149
3150
  return e;
3150
3151
  }
3151
3152
  function gs(t, e, r, n) {
3152
- let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), h = Zr();
3153
+ let [a, o] = Q(r), { hasFlag: l, addFlag: u, removeFlag: i } = vs(t && a ? 3 : 0), d = j(!1), s = j(!1), h = en();
3153
3154
  return ae(() => {
3154
3155
  var v;
3155
3156
  if (t) {
@@ -3197,7 +3198,7 @@ function Es(t, { inFlight: e, prepare: r }) {
3197
3198
  let n = t.style.transition;
3198
3199
  t.style.transition = "none", r(), t.offsetHeight, t.style.transition = n;
3199
3200
  }
3200
- function tn(t, e) {
3201
+ function rn(t, e) {
3201
3202
  let r = j([]), n = U(t);
3202
3203
  K(() => {
3203
3204
  let a = [...r.current];
@@ -3257,7 +3258,7 @@ let Ba = ce(!1);
3257
3258
  function As() {
3258
3259
  return ie(Ba);
3259
3260
  }
3260
- function Zn(t) {
3261
+ function ea(t) {
3261
3262
  return A.createElement(Ba.Provider, { value: t.force }, t.children);
3262
3263
  }
3263
3264
  function Ts(t) {
@@ -3344,7 +3345,7 @@ function ks({ defaultContainers: t = [], portals: e, mainTreeNode: r } = {}) {
3344
3345
  return { resolveContainers: a, contains: U((o) => a().some((l) => l.contains(o))) };
3345
3346
  }
3346
3347
  let Ga = ce(null);
3347
- function ea({ children: t, node: e }) {
3348
+ function ta({ children: t, node: e }) {
3348
3349
  let [r, n] = Q(null), a = Ya(e ?? r);
3349
3350
  return A.createElement(Ga.Provider, { value: a }, t, a === null && A.createElement(jr, { features: qt.Hidden, ref: (o) => {
3350
3351
  var l, u;
@@ -3360,7 +3361,7 @@ function Ya(t = null) {
3360
3361
  var e;
3361
3362
  return (e = ie(Ga)) != null ? e : t;
3362
3363
  }
3363
- function rn() {
3364
+ function nn() {
3364
3365
  let t = j(!1);
3365
3366
  return ae(() => (t.current = !0, () => {
3366
3367
  t.current = !1;
@@ -3398,7 +3399,7 @@ function Ws(t, e) {
3398
3399
  Et(b, Pe.Last, { skipElements: [g.relatedTarget, o] });
3399
3400
  } });
3400
3401
  });
3401
- }), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = Zr(), y = j(!1), p = { ref: n, onKeyDown(g) {
3402
+ }), w = ot(!!(u & 2), "focus-trap#tab-lock"), f = en(), y = j(!1), p = { ref: n, onKeyDown(g) {
3402
3403
  g.key == "Tab" && (y.current = !0, f.requestAnimationFrame(() => {
3403
3404
  y.current = !1;
3404
3405
  }));
@@ -3414,7 +3415,7 @@ function Ws(t, e) {
3414
3415
  let Us = le(Ws), Bs = Object.assign(Us, { features: We });
3415
3416
  function Hs(t = !0) {
3416
3417
  let e = j($e.slice());
3417
- return tn(([r], [n]) => {
3418
+ return rn(([r], [n]) => {
3418
3419
  n === !0 && r === !1 && Xt(() => {
3419
3420
  e.current.splice(0);
3420
3421
  }), n === !1 && r === !0 && (e.current = $e.slice());
@@ -3425,15 +3426,15 @@ function Hs(t = !0) {
3425
3426
  }
3426
3427
  function Vs(t, { ownerDocument: e }) {
3427
3428
  let r = !!(t & 8), n = Hs(r);
3428
- tn(() => {
3429
+ rn(() => {
3429
3430
  r || (e == null ? void 0 : e.activeElement) === (e == null ? void 0 : e.body) && Ae(n());
3430
3431
  }, [r]), Ua(() => {
3431
3432
  r && Ae(n());
3432
3433
  });
3433
3434
  }
3434
3435
  function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFallback: a }) {
3435
- let o = j(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = rn();
3436
- return tn(() => {
3436
+ let o = j(null), l = ot(!!(t & 1), "focus-trap#initial-focus"), u = nn();
3437
+ return rn(() => {
3437
3438
  if (t === 0) return;
3438
3439
  if (!l) {
3439
3440
  a != null && a.current && Ae(a.current);
@@ -3465,7 +3466,7 @@ function qs(t, { ownerDocument: e, container: r, initialFocus: n, initialFocusFa
3465
3466
  }, [a, l, t]), o;
3466
3467
  }
3467
3468
  function Gs(t, { ownerDocument: e, container: r, containers: n, previousActiveElement: a }) {
3468
- let o = rn(), l = !!(t & 4);
3469
+ let o = nn(), l = !!(t & 4);
3469
3470
  Wa(e == null ? void 0 : e.defaultView, "focus", (u) => {
3470
3471
  if (!l || !o.current) return;
3471
3472
  let i = za(n);
@@ -3503,7 +3504,7 @@ function tr(t) {
3503
3504
  return "children" in t ? tr(t.children) : t.current.filter(({ el: e }) => e.current !== null).filter(({ state: e }) => e === "visible").length > 0;
3504
3505
  }
3505
3506
  function Ja(t, e) {
3506
- let r = qe(t), n = j([]), a = rn(), o = Zr(), l = U((w, f = Fe.Hidden) => {
3507
+ let r = qe(t), n = j([]), a = nn(), o = en(), l = U((w, f = Fe.Hidden) => {
3507
3508
  let y = n.current.findIndex(({ el: p }) => p === w);
3508
3509
  y !== -1 && (Ce(f, { [Fe.Unmount]() {
3509
3510
  n.current.splice(y, 1);
@@ -3601,10 +3602,10 @@ let Br = le(Js), eo = le(Xs), it = le(Qs), to = Object.assign(Br, { Child: it, R
3601
3602
  var Zs = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Zs || {}), ec = ((t) => (t[t.SetTitleId = 0] = "SetTitleId", t))(ec || {});
3602
3603
  let tc = { 0(t, e) {
3603
3604
  return t.titleId === e.id ? t : { ...t, titleId: e.id };
3604
- } }, nn = ce(null);
3605
- nn.displayName = "DialogContext";
3605
+ } }, an = ce(null);
3606
+ an.displayName = "DialogContext";
3606
3607
  function rr(t) {
3607
- let e = ie(nn);
3608
+ let e = ie(an);
3608
3609
  if (e === null) {
3609
3610
  let r = new Error(`<${t} /> is missing a parent <Dialog /> component.`);
3610
3611
  throw Error.captureStackTrace && Error.captureStackTrace(r, rr), r;
@@ -3614,7 +3615,7 @@ function rr(t) {
3614
3615
  function rc(t, e) {
3615
3616
  return Ce(e.type, tc, t, e);
3616
3617
  }
3617
- let ta = le(function(t, e) {
3618
+ let ra = le(function(t, e) {
3618
3619
  let r = xt(), { id: n = `headlessui-dialog-${r}`, open: a, onClose: o, initialFocus: l, role: u = "dialog", autoFocus: i = !0, __demoMode: d = !1, unmount: s = !1, ...h } = t, v = j(!1);
3619
3620
  u = function() {
3620
3621
  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");
@@ -3639,7 +3640,7 @@ let ta = le(function(t, e) {
3639
3640
  let [$, T] = Wu(), D = J(() => [{ dialogState: m, close: S, setTitleId: O, unmount: s }, g], [m, g, 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": g.titleId, "aria-describedby": $, unmount: s }, ge = !Ns(), te = We.None;
3640
3641
  _ && !d && (te |= We.RestoreFocus, te |= We.TabLock, i && (te |= We.AutoFocus), ge && (te |= We.InitialFocus));
3641
3642
  let pe = fe();
3642
- return A.createElement(xs, null, A.createElement(Zn, { force: !0 }, A.createElement(_s, null, A.createElement(nn.Provider, { value: D }, A.createElement(qa, { target: f }, A.createElement(Zn, { 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: h, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
3643
+ return A.createElement(xs, null, A.createElement(ea, { force: !0 }, A.createElement(_s, null, A.createElement(an.Provider, { value: D }, A.createElement(qa, { 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: h, slot: ue, defaultTag: nc, features: ac, visible: m === 0, name: "Dialog" })))))))))));
3643
3644
  }), nc = "div", ac = Vt.RenderStrategy | Vt.Static;
3644
3645
  function oc(t, e) {
3645
3646
  let { transition: r = !1, open: n, ...a } = t, o = Qt(), l = t.hasOwnProperty("open") || o !== null, u = t.hasOwnProperty("onClose");
@@ -3648,7 +3649,7 @@ function oc(t, e) {
3648
3649
  if (!u) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
3649
3650
  if (!o && typeof t.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${t.open}`);
3650
3651
  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}`);
3651
- return (n !== void 0 || r) && !a.static ? A.createElement(ea, null, A.createElement(to, { show: n, transition: r, unmount: a.unmount }, A.createElement(ta, { ref: e, ...a }))) : A.createElement(ea, null, A.createElement(ta, { ref: e, open: n, ...a }));
3652
+ return (n !== void 0 || r) && !a.static ? A.createElement(ta, null, A.createElement(to, { 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 }));
3652
3653
  }
3653
3654
  let ic = "div";
3654
3655
  function lc(t, e) {
@@ -3669,9 +3670,9 @@ function fc(t, e) {
3669
3670
  let i = J(() => ({ open: o === 0 }), [o]), d = { ref: u, id: n };
3670
3671
  return fe()({ ourProps: d, theirProps: a, slot: i, defaultTag: cc, name: "Dialog.Title" });
3671
3672
  }
3672
- let dc = le(oc), an = le(lc);
3673
+ let dc = le(oc), on = le(lc);
3673
3674
  le(sc);
3674
- let pc = le(fc), yc = Object.assign(dc, { Panel: an, Title: pc, Description: Vu });
3675
+ let pc = le(fc), yc = Object.assign(dc, { Panel: on, Title: pc, Description: Vu });
3675
3676
  function ro({ onClick: t }) {
3676
3677
  return /* @__PURE__ */ R.jsxs(
3677
3678
  "button",
@@ -3733,7 +3734,7 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
3733
3734
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
3734
3735
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
3735
3736
  }),
3736
- children: /* @__PURE__ */ R.jsxs(an, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3737
+ children: /* @__PURE__ */ R.jsxs(on, { className: `im-modal-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3737
3738
  e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(ro, { onClick: t.close }) }),
3738
3739
  typeof r == "function" ? r({ modalContext: t, modalProps: e }) : r
3739
3740
  ] })
@@ -3767,7 +3768,7 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
3767
3768
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-6xl": e.maxWidth === "6xl",
3768
3769
  "sm:max-w-md md:max-w-xl lg:max-w-3xl xl:max-w-5xl 2xl:max-w-7xl": e.maxWidth === "7xl"
3769
3770
  }),
3770
- children: /* @__PURE__ */ R.jsxs(an, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3771
+ children: /* @__PURE__ */ R.jsxs(on, { className: `im-slideover-content relative ${e.paddingClasses} ${e.panelClasses}`, children: [
3771
3772
  e.closeButton && /* @__PURE__ */ R.jsx("div", { className: "absolute right-0 top-0 pr-3 pt-3", children: /* @__PURE__ */ R.jsx(ro, { onClick: t.close }) }),
3772
3773
  typeof r == "function" ? r({ modalContext: t, modalProps: e }) : r
3773
3774
  ] })
@@ -3776,7 +3777,7 @@ const vc = ({ modalContext: t, modalProps: e, children: r }) => /* @__PURE__ */
3776
3777
  }
3777
3778
  ) }), hc = Hr(({ name: t, children: e, ...r }, n) => {
3778
3779
  const a = (l) => typeof e == "function" ? e(l) : e, o = j(null);
3779
- return ra(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3780
+ return na(n, () => o.current, [o]), /* @__PURE__ */ R.jsx(
3780
3781
  Ra,
3781
3782
  {
3782
3783
  ref: o,
@@ -3902,9 +3903,9 @@ const $c = ({
3902
3903
  children: f,
3903
3904
  ...y
3904
3905
  }) => {
3905
- const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Jr(), _ = J(() => w ?? na("navigate"), [w]), M = {}, W = {};
3906
+ const [p, m] = Q(!1), [g, b] = Q(null), { stack: S, visit: O } = Qr(), _ = J(() => w ?? Vr("navigate"), [w]), M = {}, W = {};
3906
3907
  Object.keys(y).forEach((T) => {
3907
- Yn.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]);
3908
+ 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]);
3908
3909
  });
3909
3910
  const [H, k] = Q(!1);
3910
3911
  K(() => {
@@ -3921,7 +3922,7 @@ const $c = ({
3921
3922
  e,
3922
3923
  r,
3923
3924
  a,
3924
- Vo(aa(y, Yn)),
3925
+ Vo(aa(y, zn)),
3925
3926
  () => Y(S.length),
3926
3927
  V,
3927
3928
  o,
@@ -3950,10 +3951,10 @@ export {
3950
3951
  $c as ModalLink,
3951
3952
  Tu as ModalRoot,
3952
3953
  Au as ModalStackProvider,
3953
- na as getConfig,
3954
+ Vr as getConfig,
3954
3955
  Oc as putConfig,
3955
3956
  Pc as renderApp,
3956
3957
  xc as resetConfig,
3957
3958
  $u as useModalIndex,
3958
- Jr as useModalStack
3959
+ Qr as useModalStack
3959
3960
  };