@dhedge/trading-widget 3.3.13 → 3.3.14

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.
@@ -21350,9 +21350,9 @@ function JU(t) {
21350
21350
  return A;
21351
21351
  };
21352
21352
  }
21353
- var e4 = [SU, $U, TU, cU, BU, LU, WU, yU, IU], t4 = /* @__PURE__ */ JU({
21354
- defaultModifiers: e4
21355
- }), n4 = typeof Element < "u", r4 = typeof Map == "function", a4 = typeof Set == "function", i4 = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
21353
+ var eB = [SU, $U, TU, cU, BU, LU, WU, yU, IU], tB = /* @__PURE__ */ JU({
21354
+ defaultModifiers: eB
21355
+ }), nB = typeof Element < "u", rB = typeof Map == "function", aB = typeof Set == "function", iB = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
21356
21356
  function gb(t, n) {
21357
21357
  if (t === n)
21358
21358
  return !0;
@@ -21369,7 +21369,7 @@ function gb(t, n) {
21369
21369
  return !0;
21370
21370
  }
21371
21371
  var f;
21372
- if (r4 && t instanceof Map && n instanceof Map) {
21372
+ if (rB && t instanceof Map && n instanceof Map) {
21373
21373
  if (t.size !== n.size)
21374
21374
  return !1;
21375
21375
  for (f = t.entries(); !(l = f.next()).done; )
@@ -21380,7 +21380,7 @@ function gb(t, n) {
21380
21380
  return !1;
21381
21381
  return !0;
21382
21382
  }
21383
- if (a4 && t instanceof Set && n instanceof Set) {
21383
+ if (aB && t instanceof Set && n instanceof Set) {
21384
21384
  if (t.size !== n.size)
21385
21385
  return !1;
21386
21386
  for (f = t.entries(); !(l = f.next()).done; )
@@ -21388,7 +21388,7 @@ function gb(t, n) {
21388
21388
  return !1;
21389
21389
  return !0;
21390
21390
  }
21391
- if (i4 && ArrayBuffer.isView(t) && ArrayBuffer.isView(n)) {
21391
+ if (iB && ArrayBuffer.isView(t) && ArrayBuffer.isView(n)) {
21392
21392
  if (a = t.length, a != n.length)
21393
21393
  return !1;
21394
21394
  for (l = a; l-- !== 0; )
@@ -21407,7 +21407,7 @@ function gb(t, n) {
21407
21407
  for (l = a; l-- !== 0; )
21408
21408
  if (!Object.prototype.hasOwnProperty.call(n, u[l]))
21409
21409
  return !1;
21410
- if (n4 && t instanceof Element)
21410
+ if (nB && t instanceof Element)
21411
21411
  return !1;
21412
21412
  for (l = a; l-- !== 0; )
21413
21413
  if (!((u[l] === "_owner" || u[l] === "__v" || u[l] === "__o") && t.$$typeof) && !gb(t[u[l]], n[u[l]]))
@@ -21416,7 +21416,7 @@ function gb(t, n) {
21416
21416
  }
21417
21417
  return t !== t && n !== n;
21418
21418
  }
21419
- var o4 = function(n, a) {
21419
+ var oB = function(n, a) {
21420
21420
  try {
21421
21421
  return gb(n, a);
21422
21422
  } catch (l) {
@@ -21425,14 +21425,14 @@ var o4 = function(n, a) {
21425
21425
  throw l;
21426
21426
  }
21427
21427
  };
21428
- const s4 = /* @__PURE__ */ Tg(o4);
21429
- var l4 = [], u4 = function(n, a, l) {
21428
+ const sB = /* @__PURE__ */ Tg(oB);
21429
+ var lB = [], uB = function(n, a, l) {
21430
21430
  l === void 0 && (l = {});
21431
21431
  var u = ge.useRef(null), f = {
21432
21432
  onFirstUpdate: l.onFirstUpdate,
21433
21433
  placement: l.placement || "bottom",
21434
21434
  strategy: l.strategy || "absolute",
21435
- modifiers: l.modifiers || l4
21435
+ modifiers: l.modifiers || lB
21436
21436
  }, p = ge.useState({
21437
21437
  styles: {
21438
21438
  popper: {
@@ -21475,13 +21475,13 @@ var l4 = [], u4 = function(n, a, l) {
21475
21475
  enabled: !1
21476
21476
  }])
21477
21477
  };
21478
- return s4(u.current, D) ? u.current || D : (u.current = D, D);
21478
+ return sB(u.current, D) ? u.current || D : (u.current = D, D);
21479
21479
  }, [f.onFirstUpdate, f.placement, f.strategy, f.modifiers, w]), C = ge.useRef();
21480
21480
  return B2(function() {
21481
21481
  C.current && C.current.setOptions(x);
21482
21482
  }, [x]), B2(function() {
21483
21483
  if (!(n == null || a == null)) {
21484
- var D = l.createPopper || t4, A = D(n, a, x);
21484
+ var D = l.createPopper || tB, A = D(n, a, x);
21485
21485
  return C.current = A, function() {
21486
21486
  A.destroy(), C.current = null;
21487
21487
  };
@@ -21500,10 +21500,10 @@ function Rk(t) {
21500
21500
  return n.current;
21501
21501
  }, []);
21502
21502
  }
21503
- var c4 = function() {
21503
+ var cB = function() {
21504
21504
  };
21505
- function d4(t) {
21506
- var n = t.initial, a = t.value, l = t.onChange, u = l === void 0 ? c4 : l;
21505
+ function dB(t) {
21506
+ var n = t.initial, a = t.value, l = t.onChange, u = l === void 0 ? cB : l;
21507
21507
  if (n === void 0 && a === void 0)
21508
21508
  throw new TypeError('Either "value" or "initial" variable must be set. Now both are undefined');
21509
21509
  var f = ge.useState(n), p = f[0], v = f[1], g = Rk(p), w = ge.useCallback(function(C) {
@@ -21529,7 +21529,7 @@ function Ok(t, n) {
21529
21529
  };
21530
21530
  };
21531
21531
  }
21532
- var f4 = ["styles", "attributes"], eO = {
21532
+ var fB = ["styles", "attributes"], eO = {
21533
21533
  getBoundingClientRect: Ok()
21534
21534
  }, tO = {
21535
21535
  closeOnOutsideClick: !0,
@@ -21547,7 +21547,7 @@ var f4 = ["styles", "attributes"], eO = {
21547
21547
  offset: [0, 6],
21548
21548
  trigger: "hover"
21549
21549
  };
21550
- function p4(t, n) {
21550
+ function pB(t, n) {
21551
21551
  var a, l, u;
21552
21552
  t === void 0 && (t = {}), n === void 0 && (n = {});
21553
21553
  var f = Object.keys(tO).reduce(function(V, W) {
@@ -21567,7 +21567,7 @@ function p4(t, n) {
21567
21567
  ), v = Ec({}, n, {
21568
21568
  placement: n.placement || f.placement,
21569
21569
  modifiers: n.modifiers || p
21570
- }), g = ge.useState(null), w = g[0], x = g[1], C = ge.useState(null), D = C[0], A = C[1], M = d4({
21570
+ }), g = ge.useState(null), w = g[0], x = g[1], C = ge.useState(null), D = C[0], A = C[1], M = dB({
21571
21571
  initial: f.defaultVisible,
21572
21572
  value: f.visible,
21573
21573
  onChange: f.onVisibleChange
@@ -21577,7 +21577,7 @@ function p4(t, n) {
21577
21577
  return clearTimeout(X.current);
21578
21578
  };
21579
21579
  }, []);
21580
- var I = u4(f.followCursor ? eO : w, D, v), Q = I.styles, te = I.attributes, ae = V3(I, f4), ue = ae.update, le = Rk({
21580
+ var I = uB(f.followCursor ? eO : w, D, v), Q = I.styles, te = I.attributes, ae = V3(I, fB), ue = ae.update, le = Rk({
21581
21581
  visible: U,
21582
21582
  triggerRef: w,
21583
21583
  tooltipRef: D,
@@ -21687,7 +21687,7 @@ function p4(t, n) {
21687
21687
  visible: U
21688
21688
  }, ae);
21689
21689
  }
21690
- const m4 = ({
21690
+ const mB = ({
21691
21691
  tooltipContent: t,
21692
21692
  children: n,
21693
21693
  placement: a = "top",
@@ -21695,7 +21695,7 @@ const m4 = ({
21695
21695
  interactive: u = !0,
21696
21696
  delayHide: f = 50
21697
21697
  }) => {
21698
- const { getTooltipProps: p, setTooltipRef: v, setTriggerRef: g, visible: w } = p4({
21698
+ const { getTooltipProps: p, setTooltipRef: v, setTriggerRef: g, visible: w } = pB({
21699
21699
  interactive: u,
21700
21700
  delayHide: f,
21701
21701
  offset: [0, 12],
@@ -21716,7 +21716,7 @@ const m4 = ({
21716
21716
  )
21717
21717
  ] });
21718
21718
  }, jE = ({ text: t, ...n }) => /* @__PURE__ */ R.jsx(
21719
- m4,
21719
+ mB,
21720
21720
  {
21721
21721
  ...n,
21722
21722
  tooltipContent: /* @__PURE__ */ R.jsx("span", { className: "dtw-inline-block dtw-max-w-xs", children: t })
@@ -21746,7 +21746,7 @@ const m4 = ({
21746
21746
  /* @__PURE__ */ R.jsx("div", { children: a })
21747
21747
  ] }), kk = typeof document < "u" ? Ie.useLayoutEffect : () => {
21748
21748
  };
21749
- function h4(t) {
21749
+ function hB(t) {
21750
21750
  const n = jt(null);
21751
21751
  return kk(() => {
21752
21752
  n.current = t;
@@ -21761,11 +21761,11 @@ const Eg = (t) => {
21761
21761
  var n;
21762
21762
  return (n = t == null ? void 0 : t.ownerDocument) !== null && n !== void 0 ? n : document;
21763
21763
  }, Lp = (t) => t && "window" in t && t.window === t ? t : Eg(t).defaultView || window;
21764
- function v4(t) {
21764
+ function vB(t) {
21765
21765
  var n;
21766
21766
  return typeof window > "u" || window.navigator == null ? !1 : ((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.brands.some((a) => t.test(a.brand))) || t.test(window.navigator.userAgent);
21767
21767
  }
21768
- function y4(t) {
21768
+ function yB(t) {
21769
21769
  var n;
21770
21770
  return typeof window < "u" && window.navigator != null ? t.test(((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.platform) || window.navigator.platform) : !1;
21771
21771
  }
@@ -21773,15 +21773,15 @@ function _k(t) {
21773
21773
  let n = null;
21774
21774
  return () => (n == null && (n = t()), n);
21775
21775
  }
21776
- const g4 = _k(function() {
21777
- return y4(/^Mac/i);
21778
- }), w4 = _k(function() {
21779
- return v4(/Android/i);
21776
+ const gB = _k(function() {
21777
+ return yB(/^Mac/i);
21778
+ }), wB = _k(function() {
21779
+ return vB(/Android/i);
21780
21780
  });
21781
- function b4(t) {
21782
- return t.mozInputSource === 0 && t.isTrusted ? !0 : w4() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
21781
+ function bB(t) {
21782
+ return t.mozInputSource === 0 && t.isTrusted ? !0 : wB() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
21783
21783
  }
21784
- class T4 {
21784
+ class TB {
21785
21785
  isDefaultPrevented() {
21786
21786
  return this.nativeEvent.defaultPrevented;
21787
21787
  }
@@ -21811,14 +21811,14 @@ function Nk(t) {
21811
21811
  l.observer && (l.observer.disconnect(), l.observer = null);
21812
21812
  };
21813
21813
  }, []);
21814
- let a = h4((l) => {
21814
+ let a = hB((l) => {
21815
21815
  t == null || t(l);
21816
21816
  });
21817
21817
  return St((l) => {
21818
21818
  if (l.target instanceof HTMLButtonElement || l.target instanceof HTMLInputElement || l.target instanceof HTMLTextAreaElement || l.target instanceof HTMLSelectElement) {
21819
21819
  n.current.isFocused = !0;
21820
21820
  let u = l.target, f = (p) => {
21821
- n.current.isFocused = !1, u.disabled && a(new T4("blur", p)), n.current.observer && (n.current.observer.disconnect(), n.current.observer = null);
21821
+ n.current.isFocused = !1, u.disabled && a(new TB("blur", p)), n.current.observer && (n.current.observer.disconnect(), n.current.observer = null);
21822
21822
  };
21823
21823
  u.addEventListener("focusout", f, {
21824
21824
  once: !0
@@ -21845,7 +21845,7 @@ function Nk(t) {
21845
21845
  a
21846
21846
  ]);
21847
21847
  }
21848
- function x4(t) {
21848
+ function xB(t) {
21849
21849
  let { isDisabled: n, onFocus: a, onBlur: l, onFocusChange: u } = t;
21850
21850
  const f = St((g) => {
21851
21851
  if (g.target === g.currentTarget)
@@ -21869,7 +21869,7 @@ function x4(t) {
21869
21869
  };
21870
21870
  }
21871
21871
  let Cg = null, pE = /* @__PURE__ */ new Set(), sg = /* @__PURE__ */ new Map(), jp = !1, mE = !1;
21872
- const S4 = {
21872
+ const SB = {
21873
21873
  Tab: !0,
21874
21874
  Escape: !0
21875
21875
  };
@@ -21877,17 +21877,17 @@ function $E(t, n) {
21877
21877
  for (let a of pE)
21878
21878
  a(t, n);
21879
21879
  }
21880
- function E4(t) {
21881
- return !(t.metaKey || !g4() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
21880
+ function EB(t) {
21881
+ return !(t.metaKey || !gB() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
21882
21882
  }
21883
21883
  function Db(t) {
21884
- jp = !0, E4(t) && (Cg = "keyboard", $E("keyboard", t));
21884
+ jp = !0, EB(t) && (Cg = "keyboard", $E("keyboard", t));
21885
21885
  }
21886
21886
  function Hs(t) {
21887
21887
  Cg = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (jp = !0, $E("pointer", t));
21888
21888
  }
21889
21889
  function Mk(t) {
21890
- b4(t) && (jp = !0, Cg = "virtual");
21890
+ bB(t) && (jp = !0, Cg = "virtual");
21891
21891
  }
21892
21892
  function Lk(t) {
21893
21893
  t.target === window || t.target === document || (!jp && !mE && (Cg = "virtual", $E("virtual", t)), jp = !1, mE = !1);
@@ -21914,18 +21914,18 @@ const Ik = (t, n) => {
21914
21914
  const a = Lp(t), l = Eg(t);
21915
21915
  n && l.removeEventListener("DOMContentLoaded", n), sg.has(a) && (a.HTMLElement.prototype.focus = sg.get(a).focus, l.removeEventListener("keydown", Db, !0), l.removeEventListener("keyup", Db, !0), l.removeEventListener("click", Mk, !0), a.removeEventListener("focus", Lk, !0), a.removeEventListener("blur", Pk, !1), typeof PointerEvent < "u" ? (l.removeEventListener("pointerdown", Hs, !0), l.removeEventListener("pointermove", Hs, !0), l.removeEventListener("pointerup", Hs, !0)) : (l.removeEventListener("mousedown", Hs, !0), l.removeEventListener("mousemove", Hs, !0), l.removeEventListener("mouseup", Hs, !0)), sg.delete(a));
21916
21916
  };
21917
- function C4(t) {
21917
+ function CB(t) {
21918
21918
  const n = Eg(t);
21919
21919
  let a;
21920
21920
  return n.readyState !== "loading" ? hE(t) : (a = () => {
21921
21921
  hE(t);
21922
21922
  }, n.addEventListener("DOMContentLoaded", a)), () => Ik(t, a);
21923
21923
  }
21924
- typeof document < "u" && C4();
21924
+ typeof document < "u" && CB();
21925
21925
  function Fk() {
21926
21926
  return Cg !== "pointer";
21927
21927
  }
21928
- const A4 = /* @__PURE__ */ new Set([
21928
+ const AB = /* @__PURE__ */ new Set([
21929
21929
  "checkbox",
21930
21930
  "radio",
21931
21931
  "range",
@@ -21936,22 +21936,22 @@ const A4 = /* @__PURE__ */ new Set([
21936
21936
  "submit",
21937
21937
  "reset"
21938
21938
  ]);
21939
- function D4(t, n, a) {
21939
+ function DB(t, n, a) {
21940
21940
  var l;
21941
21941
  const u = typeof window < "u" ? Lp(a == null ? void 0 : a.target).HTMLInputElement : HTMLInputElement, f = typeof window < "u" ? Lp(a == null ? void 0 : a.target).HTMLTextAreaElement : HTMLTextAreaElement, p = typeof window < "u" ? Lp(a == null ? void 0 : a.target).HTMLElement : HTMLElement, v = typeof window < "u" ? Lp(a == null ? void 0 : a.target).KeyboardEvent : KeyboardEvent;
21942
- return t = t || (a == null ? void 0 : a.target) instanceof u && !A4.has(a == null || (l = a.target) === null || l === void 0 ? void 0 : l.type) || (a == null ? void 0 : a.target) instanceof f || (a == null ? void 0 : a.target) instanceof p && (a == null ? void 0 : a.target.isContentEditable), !(t && n === "keyboard" && a instanceof v && !S4[a.key]);
21942
+ return t = t || (a == null ? void 0 : a.target) instanceof u && !AB.has(a == null || (l = a.target) === null || l === void 0 ? void 0 : l.type) || (a == null ? void 0 : a.target) instanceof f || (a == null ? void 0 : a.target) instanceof p && (a == null ? void 0 : a.target.isContentEditable), !(t && n === "keyboard" && a instanceof v && !SB[a.key]);
21943
21943
  }
21944
- function R4(t, n, a) {
21944
+ function RB(t, n, a) {
21945
21945
  hE(), yt(() => {
21946
21946
  let l = (u, f) => {
21947
- D4(!!(a != null && a.isTextInput), u, f) && t(Fk());
21947
+ DB(!!(a != null && a.isTextInput), u, f) && t(Fk());
21948
21948
  };
21949
21949
  return pE.add(l), () => {
21950
21950
  pE.delete(l);
21951
21951
  };
21952
21952
  }, n);
21953
21953
  }
21954
- function O4(t) {
21954
+ function OB(t) {
21955
21955
  let { isDisabled: n, onBlurWithin: a, onFocusWithin: l, onFocusWithinChange: u } = t, f = jt({
21956
21956
  isFocusWithin: !1
21957
21957
  }), p = St((w) => {
@@ -21989,7 +21989,7 @@ function vE() {
21989
21989
  function nO(t) {
21990
21990
  t.pointerType === "touch" && vE();
21991
21991
  }
21992
- function k4() {
21992
+ function kB() {
21993
21993
  if (!(typeof document > "u"))
21994
21994
  return typeof PointerEvent < "u" ? document.addEventListener("pointerup", nO) : document.addEventListener("touchend", vE), z1++, () => {
21995
21995
  z1--, !(z1 > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", nO) : document.removeEventListener("touchend", vE));
@@ -22002,7 +22002,7 @@ function Qb(t) {
22002
22002
  pointerType: "",
22003
22003
  target: null
22004
22004
  }).current;
22005
- yt(k4, []);
22005
+ yt(kB, []);
22006
22006
  let { hoverProps: g, triggerHoverEnd: w } = $e(() => {
22007
22007
  let x = (A, M) => {
22008
22008
  if (v.pointerType = M, u || M === "touch" || v.isHovered || !A.currentTarget.contains(A.target))
@@ -22066,15 +22066,15 @@ function Ag(t = {}) {
22066
22066
  }, [
22067
22067
  w
22068
22068
  ]);
22069
- R4((A) => {
22069
+ RB((A) => {
22070
22070
  u.current.isFocusVisible = A, w();
22071
22071
  }, [], {
22072
22072
  isTextInput: a
22073
22073
  });
22074
- let { focusProps: C } = x4({
22074
+ let { focusProps: C } = xB({
22075
22075
  isDisabled: l,
22076
22076
  onFocusChange: x
22077
- }), { focusWithinProps: D } = O4({
22077
+ }), { focusWithinProps: D } = OB({
22078
22078
  isDisabled: !l,
22079
22079
  onFocusWithinChange: x
22080
22080
  });
@@ -22084,8 +22084,8 @@ function Ag(t = {}) {
22084
22084
  focusProps: l ? D : C
22085
22085
  };
22086
22086
  }
22087
- var _4 = Object.defineProperty, N4 = (t, n, a) => n in t ? _4(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a, H1 = (t, n, a) => (N4(t, typeof n != "symbol" ? n + "" : n, a), a);
22088
- let M4 = class {
22087
+ var _B = Object.defineProperty, NB = (t, n, a) => n in t ? _B(t, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[n] = a, H1 = (t, n, a) => (NB(t, typeof n != "symbol" ? n + "" : n, a), a);
22088
+ let MB = class {
22089
22089
  constructor() {
22090
22090
  H1(this, "current", this.detect()), H1(this, "handoffState", "pending"), H1(this, "currentId", 0);
22091
22091
  }
@@ -22113,7 +22113,7 @@ let M4 = class {
22113
22113
  get isHandoffComplete() {
22114
22114
  return this.handoffState === "complete";
22115
22115
  }
22116
- }, Fp = new M4();
22116
+ }, Fp = new MB();
22117
22117
  function Yp(t) {
22118
22118
  return Fp.isServer ? null : t instanceof Node ? t.ownerDocument : t != null && t.hasOwnProperty("current") && t.current instanceof Node ? t.current.ownerDocument : document;
22119
22119
  }
@@ -22178,11 +22178,11 @@ let ht = function(t) {
22178
22178
  let n = as(t);
22179
22179
  return Ie.useCallback((...a) => n.current(...a), [n]);
22180
22180
  };
22181
- function L4(t) {
22181
+ function LB(t) {
22182
22182
  let n = t.width / 2, a = t.height / 2;
22183
22183
  return { top: t.clientY - a, right: t.clientX + n, bottom: t.clientY + a, left: t.clientX - n };
22184
22184
  }
22185
- function P4(t, n) {
22185
+ function PB(t, n) {
22186
22186
  return !(!t || !n || t.right < n.left || t.left > n.right || t.bottom < n.top || t.top > n.bottom);
22187
22187
  }
22188
22188
  function Kb({ disabled: t = !1 } = {}) {
@@ -22195,8 +22195,8 @@ function Kb({ disabled: t = !1 } = {}) {
22195
22195
  let g = Yp(v.currentTarget);
22196
22196
  u.addEventListener(g, "pointerup", f, !1), u.addEventListener(g, "pointermove", (w) => {
22197
22197
  if (n.current) {
22198
- let x = L4(w);
22199
- l(P4(x, n.current.getBoundingClientRect()));
22198
+ let x = LB(w);
22199
+ l(PB(x, n.current.getBoundingClientRect()));
22200
22200
  }
22201
22201
  }, !1), u.addEventListener(g, "pointercancel", f, !1);
22202
22202
  }
@@ -22208,7 +22208,7 @@ let Uk = bn(void 0);
22208
22208
  function Xb() {
22209
22209
  return en(Uk);
22210
22210
  }
22211
- function I4({ value: t, children: n }) {
22211
+ function IB({ value: t, children: n }) {
22212
22212
  return Ie.createElement(Uk.Provider, { value: t }, n);
22213
22213
  }
22214
22214
  function yE(...t) {
@@ -22224,11 +22224,11 @@ function ua(t, n, ...a) {
22224
22224
  }
22225
22225
  var Su = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Su || {}), af = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(af || {});
22226
22226
  function dr() {
22227
- let t = U4();
22228
- return St((n) => F4({ mergeRefs: t, ...n }), [t]);
22227
+ let t = UB();
22228
+ return St((n) => FB({ mergeRefs: t, ...n }), [t]);
22229
22229
  }
22230
- function F4({ ourProps: t, theirProps: n, slot: a, defaultTag: l, features: u, visible: f = !0, name: p, mergeRefs: v }) {
22231
- v = v ?? B4;
22230
+ function FB({ ourProps: t, theirProps: n, slot: a, defaultTag: l, features: u, visible: f = !0, name: p, mergeRefs: v }) {
22231
+ v = v ?? BB;
22232
22232
  let g = Bk(n, t);
22233
22233
  if (f)
22234
22234
  return lb(g, a, l, p, v);
@@ -22273,11 +22273,11 @@ function lb(t, n = {}, a, l, u) {
22273
22273
  let D = x.props, A = D == null ? void 0 : D.className, M = typeof A == "function" ? (...X) => yE(A(...X), g.className) : yE(A, g.className), U = M ? { className: M } : {}, B = Bk(x.props, rf(W1(g, ["ref"])));
22274
22274
  for (let X in C)
22275
22275
  X in B && delete C[X];
22276
- return u3(x, Object.assign({}, B, C, w, { ref: u(j4(x), w.ref) }, U));
22276
+ return u3(x, Object.assign({}, B, C, w, { ref: u(jB(x), w.ref) }, U));
22277
22277
  }
22278
22278
  return c3(f, Object.assign({}, W1(g, ["ref"]), f !== Ws && w, f !== Ws && C), x);
22279
22279
  }
22280
- function U4() {
22280
+ function UB() {
22281
22281
  let t = jt([]), n = St((a) => {
22282
22282
  for (let l of t.current)
22283
22283
  l != null && (typeof l == "function" ? l(a) : l.current = a);
@@ -22287,7 +22287,7 @@ function U4() {
22287
22287
  return t.current = a, n;
22288
22288
  };
22289
22289
  }
22290
- function B4(...t) {
22290
+ function BB(...t) {
22291
22291
  return t.every((n) => n == null) ? void 0 : (n) => {
22292
22292
  for (let a of t)
22293
22293
  a != null && (typeof a == "function" ? a(n) : a.current = n);
@@ -22352,14 +22352,14 @@ function W1(t, n = []) {
22352
22352
  l in a && delete a[l];
22353
22353
  return a;
22354
22354
  }
22355
- function j4(t) {
22355
+ function jB(t) {
22356
22356
  return Ie.version.split(".")[0] >= "19" ? t.props.ref : t.ref;
22357
22357
  }
22358
- function $4(t, n, a) {
22358
+ function $B(t, n, a) {
22359
22359
  let [l, u] = Lt(a), f = t !== void 0, p = jt(f), v = jt(!1), g = jt(!1);
22360
22360
  return f && !p.current && !v.current ? (v.current = !0, p.current = f, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !f && p.current && !g.current && (g.current = !0, p.current = f, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [f ? t : l, ht((w) => (f || u(w), n == null ? void 0 : n(w)))];
22361
22361
  }
22362
- function z4(t) {
22362
+ function zB(t) {
22363
22363
  let [n] = Lt(t);
22364
22364
  return n;
22365
22365
  }
@@ -22378,7 +22378,7 @@ function zk(t, n, a) {
22378
22378
  else
22379
22379
  a instanceof Date ? t.push([n, a.toISOString()]) : typeof a == "boolean" ? t.push([n, a ? "1" : "0"]) : typeof a == "string" ? t.push([n, a]) : typeof a == "number" ? t.push([n, `${a}`]) : a == null ? t.push([n, ""]) : jk(a, n, t);
22380
22380
  }
22381
- function H4(t) {
22381
+ function HB(t) {
22382
22382
  var n, a;
22383
22383
  let l = (n = t == null ? void 0 : t.form) != null ? n : t.closest("form");
22384
22384
  if (l) {
@@ -22390,33 +22390,33 @@ function H4(t) {
22390
22390
  (a = l.requestSubmit) == null || a.call(l);
22391
22391
  }
22392
22392
  }
22393
- let W4 = "span";
22393
+ let WB = "span";
22394
22394
  var Oc = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(Oc || {});
22395
- function V4(t, n) {
22395
+ function VB(t, n) {
22396
22396
  var a;
22397
22397
  let { features: l = 1, ...u } = t, f = { ref: n, "aria-hidden": (l & 2) === 2 ? !0 : (a = u["aria-hidden"]) != null ? a : void 0, hidden: (l & 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", ...(l & 4) === 4 && (l & 2) !== 2 && { display: "none" } } };
22398
- return dr()({ ourProps: f, theirProps: u, slot: {}, defaultTag: W4, name: "Hidden" });
22398
+ return dr()({ ourProps: f, theirProps: u, slot: {}, defaultTag: WB, name: "Hidden" });
22399
22399
  }
22400
- let kc = ir(V4), Hk = bn(null);
22401
- function G4(t) {
22400
+ let kc = ir(VB), Hk = bn(null);
22401
+ function GB(t) {
22402
22402
  let [n, a] = Lt(null);
22403
22403
  return Ie.createElement(Hk.Provider, { value: { target: n } }, t.children, Ie.createElement(kc, { features: Oc.Hidden, ref: a }));
22404
22404
  }
22405
- function Y4({ children: t }) {
22405
+ function YB({ children: t }) {
22406
22406
  let n = en(Hk);
22407
22407
  if (!n)
22408
22408
  return Ie.createElement(Ie.Fragment, null, t);
22409
22409
  let { target: a } = n;
22410
22410
  return a ? Up.createPortal(Ie.createElement(Ie.Fragment, null, t), a) : null;
22411
22411
  }
22412
- function q4({ data: t, form: n, disabled: a, onReset: l, overrides: u }) {
22412
+ function qB({ data: t, form: n, disabled: a, onReset: l, overrides: u }) {
22413
22413
  let [f, p] = Lt(null), v = nv();
22414
22414
  return yt(() => {
22415
22415
  if (l && f)
22416
22416
  return v.addEventListener(f, "reset", l);
22417
- }, [f, n, l]), Ie.createElement(Y4, null, Ie.createElement(Q4, { setForm: p, formId: n }), jk(t).map(([g, w]) => Ie.createElement(kc, { features: Oc.Hidden, ...rf({ key: g, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: n, disabled: a, name: g, value: w, ...u }) })));
22417
+ }, [f, n, l]), Ie.createElement(YB, null, Ie.createElement(QB, { setForm: p, formId: n }), jk(t).map(([g, w]) => Ie.createElement(kc, { features: Oc.Hidden, ...rf({ key: g, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: n, disabled: a, name: g, value: w, ...u }) })));
22418
22418
  }
22419
- function Q4({ setForm: t, formId: n }) {
22419
+ function QB({ setForm: t, formId: n }) {
22420
22420
  return yt(() => {
22421
22421
  if (n) {
22422
22422
  let a = document.getElementById(n);
@@ -22433,7 +22433,7 @@ let Wk = bn(void 0);
22433
22433
  function Vk() {
22434
22434
  return en(Wk);
22435
22435
  }
22436
- function K4({ id: t, children: n }) {
22436
+ function KB({ id: t, children: n }) {
22437
22437
  return Ie.createElement(Wk.Provider, { value: t }, n);
22438
22438
  }
22439
22439
  function Zb(t) {
@@ -22441,9 +22441,9 @@ function Zb(t) {
22441
22441
  for (; n && !(n instanceof HTMLFieldSetElement); )
22442
22442
  n instanceof HTMLLegendElement && (a = n), n = n.parentElement;
22443
22443
  let l = (n == null ? void 0 : n.getAttribute("disabled")) === "";
22444
- return l && X4(a) ? !1 : l;
22444
+ return l && XB(a) ? !1 : l;
22445
22445
  }
22446
- function X4(t) {
22446
+ function XB(t) {
22447
22447
  if (!t)
22448
22448
  return !1;
22449
22449
  let n = t.previousElementSibling;
@@ -22479,7 +22479,7 @@ function Yk() {
22479
22479
  }
22480
22480
  return t;
22481
22481
  }
22482
- function Z4() {
22482
+ function ZB() {
22483
22483
  var t, n;
22484
22484
  return (n = (t = en(Jb)) == null ? void 0 : t.value) != null ? n : void 0;
22485
22485
  }
@@ -22493,14 +22493,14 @@ function qk() {
22493
22493
  return Ie.createElement(Jb.Provider, { value: u }, a.children);
22494
22494
  }, [n])];
22495
22495
  }
22496
- let J4 = "p";
22497
- function eB(t, n) {
22496
+ let JB = "p";
22497
+ function e4(t, n) {
22498
22498
  let a = os(), l = Xb(), { id: u = `headlessui-description-${a}`, ...f } = t, p = Yk(), v = Lr(n);
22499
22499
  cr(() => p.register(u), [u, p.register]);
22500
22500
  let g = l || !1, w = $e(() => ({ ...p.slot, disabled: g }), [p.slot, g]), x = { ref: v, ...p.props, id: u };
22501
- return dr()({ ourProps: x, theirProps: f, slot: w, defaultTag: J4, name: p.name || "Description" });
22501
+ return dr()({ ourProps: x, theirProps: f, slot: w, defaultTag: JB, name: p.name || "Description" });
22502
22502
  }
22503
- let tB = ir(eB), nB = Object.assign(tB, {});
22503
+ let t4 = ir(e4), n4 = Object.assign(t4, {});
22504
22504
  var ar = ((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))(ar || {});
22505
22505
  let eT = bn(null);
22506
22506
  eT.displayName = "LabelContext";
@@ -22527,8 +22527,8 @@ function Xk({ inherit: t = !1 } = {}) {
22527
22527
  return Ie.createElement(eT.Provider, { value: v }, f.children);
22528
22528
  }, [l])];
22529
22529
  }
22530
- let rB = "label";
22531
- function aB(t, n) {
22530
+ let r4 = "label";
22531
+ function a4(t, n) {
22532
22532
  var a;
22533
22533
  let l = os(), u = Qk(), f = Vk(), p = Xb(), { id: v = `headlessui-label-${l}`, htmlFor: g = f ?? ((a = u.props) == null ? void 0 : a.htmlFor), passive: w = !1, ...x } = t, C = Lr(n);
22534
22534
  cr(() => u.register(v), [v, u.register]);
@@ -22547,21 +22547,21 @@ function aB(t, n) {
22547
22547
  }
22548
22548
  }
22549
22549
  }), A = p || !1, M = $e(() => ({ ...u.slot, disabled: A }), [u.slot, A]), U = { ref: C, ...u.props, id: v, htmlFor: g, onClick: D };
22550
- return w && ("onClick" in U && (delete U.htmlFor, delete U.onClick), "onClick" in x && delete x.onClick), dr()({ ourProps: U, theirProps: x, slot: M, defaultTag: g ? rB : "div", name: u.name || "Label" });
22550
+ return w && ("onClick" in U && (delete U.htmlFor, delete U.onClick), "onClick" in x && delete x.onClick), dr()({ ourProps: U, theirProps: x, slot: M, defaultTag: g ? r4 : "div", name: u.name || "Label" });
22551
22551
  }
22552
- let iB = ir(aB), Zk = Object.assign(iB, {}), oB = bn(() => {
22552
+ let i4 = ir(a4), Zk = Object.assign(i4, {}), o4 = bn(() => {
22553
22553
  });
22554
22554
  function Jk({ value: t, children: n }) {
22555
- return Ie.createElement(oB.Provider, { value: t }, n);
22555
+ return Ie.createElement(o4.Provider, { value: t }, n);
22556
22556
  }
22557
- function sB(t) {
22557
+ function s4(t) {
22558
22558
  if (t === null)
22559
22559
  return { width: 0, height: 0 };
22560
22560
  let { width: n, height: a } = t.getBoundingClientRect();
22561
22561
  return { width: n, height: a };
22562
22562
  }
22563
- function lB(t, n = !1) {
22564
- let [a, l] = tv(() => ({}), {}), u = $e(() => sB(t), [t, a]);
22563
+ function l4(t, n = !1) {
22564
+ let [a, l] = tv(() => ({}), {}), u = $e(() => s4(t), [t, a]);
22565
22565
  return cr(() => {
22566
22566
  if (!t)
22567
22567
  return;
@@ -22571,7 +22571,7 @@ function lB(t, n = !1) {
22571
22571
  };
22572
22572
  }, [t]), n ? { width: `${u.width}px`, height: `${u.height}px` } : u;
22573
22573
  }
22574
- let uB = class extends Map {
22574
+ let u4 = class extends Map {
22575
22575
  constructor(n) {
22576
22576
  super(), this.factory = n;
22577
22577
  }
@@ -22594,7 +22594,7 @@ function e_(t, n) {
22594
22594
  function t_(t) {
22595
22595
  return d3(t.subscribe, t.getSnapshot, t.getSnapshot);
22596
22596
  }
22597
- let cB = new uB(() => e_(() => [], { ADD(t) {
22597
+ let c4 = new u4(() => e_(() => [], { ADD(t) {
22598
22598
  return this.includes(t) ? this : [...this, t];
22599
22599
  }, REMOVE(t) {
22600
22600
  let n = this.indexOf(t);
@@ -22604,7 +22604,7 @@ let cB = new uB(() => e_(() => [], { ADD(t) {
22604
22604
  return a.splice(n, 1), a;
22605
22605
  } }));
22606
22606
  function n_(t, n) {
22607
- let a = cB.get(n), l = os(), u = t_(a);
22607
+ let a = c4.get(n), l = os(), u = t_(a);
22608
22608
  if (cr(() => {
22609
22609
  if (t)
22610
22610
  return a.dispatch("ADD", l), () => a.dispatch("REMOVE", l);
@@ -22613,7 +22613,7 @@ function n_(t, n) {
22613
22613
  let f = u.indexOf(l), p = u.length;
22614
22614
  return f === -1 && (f = p, p += 1), f === p - 1;
22615
22615
  }
22616
- function dB(t, n, a) {
22616
+ function d4(t, n, a) {
22617
22617
  let l = as((u) => {
22618
22618
  let f = u.getBoundingClientRect();
22619
22619
  f.x === 0 && f.y === 0 && f.width === 0 && f.height === 0 && a();
@@ -22636,13 +22636,13 @@ function dB(t, n, a) {
22636
22636
  return () => f.dispose();
22637
22637
  }, [n, l, t]);
22638
22638
  }
22639
- let gE = ["[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(","), fB = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
22640
- var ka = ((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))(ka || {}), of = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(of || {}), pB = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(pB || {});
22639
+ let gE = ["[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(","), f4 = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
22640
+ var ka = ((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))(ka || {}), of = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(of || {}), p4 = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(p4 || {});
22641
22641
  function tT(t = document.body) {
22642
22642
  return t == null ? [] : Array.from(t.querySelectorAll(gE)).sort((n, a) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (a.tabIndex || Number.MAX_SAFE_INTEGER)));
22643
22643
  }
22644
- function mB(t = document.body) {
22645
- return t == null ? [] : Array.from(t.querySelectorAll(fB)).sort((n, a) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (a.tabIndex || Number.MAX_SAFE_INTEGER)));
22644
+ function m4(t = document.body) {
22645
+ return t == null ? [] : Array.from(t.querySelectorAll(f4)).sort((n, a) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (a.tabIndex || Number.MAX_SAFE_INTEGER)));
22646
22646
  }
22647
22647
  var WE = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(WE || {});
22648
22648
  function r_(t, n = 0) {
@@ -22659,16 +22659,16 @@ function r_(t, n = 0) {
22659
22659
  return !1;
22660
22660
  } });
22661
22661
  }
22662
- var hB = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(hB || {});
22662
+ var h4 = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(h4 || {});
22663
22663
  typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (t) => {
22664
22664
  t.metaKey || t.altKey || t.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
22665
22665
  }, !0), document.addEventListener("click", (t) => {
22666
22666
  t.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : t.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
22667
22667
  }, !0));
22668
- let vB = ["textarea", "input"].join(",");
22669
- function yB(t) {
22668
+ let v4 = ["textarea", "input"].join(",");
22669
+ function y4(t) {
22670
22670
  var n, a;
22671
- return (a = (n = t == null ? void 0 : t.matches) == null ? void 0 : n.call(t, vB)) != null ? a : !1;
22671
+ return (a = (n = t == null ? void 0 : t.matches) == null ? void 0 : n.call(t, v4)) != null ? a : !1;
22672
22672
  }
22673
22673
  function jh(t, n = (a) => a) {
22674
22674
  return t.slice().sort((a, l) => {
@@ -22680,7 +22680,7 @@ function jh(t, n = (a) => a) {
22680
22680
  });
22681
22681
  }
22682
22682
  function rs(t, n, { sorted: a = !0, relativeTo: l = null, skipElements: u = [] } = {}) {
22683
- let f = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, p = Array.isArray(t) ? a ? jh(t) : t : n & 64 ? mB(t) : tT(t);
22683
+ let f = Array.isArray(t) ? t.length > 0 ? t[0].ownerDocument : document : t.ownerDocument, p = Array.isArray(t) ? a ? jh(t) : t : n & 64 ? m4(t) : tT(t);
22684
22684
  u.length > 0 && p.length > 1 && (p = p.filter((A) => !u.some((M) => M != null && "current" in M ? (M == null ? void 0 : M.current) === A : M === A))), l = l ?? f.activeElement;
22685
22685
  let v = (() => {
22686
22686
  if (n & 5)
@@ -22713,16 +22713,16 @@ function rs(t, n, { sorted: a = !0, relativeTo: l = null, skipElements: u = [] }
22713
22713
  }
22714
22714
  D = p[A], D == null || D.focus(w), x += v;
22715
22715
  } while (D !== f.activeElement);
22716
- return n & 6 && yB(D) && D.select(), 2;
22716
+ return n & 6 && y4(D) && D.select(), 2;
22717
22717
  }
22718
22718
  function a_() {
22719
22719
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
22720
22720
  }
22721
- function gB() {
22721
+ function g4() {
22722
22722
  return /Android/gi.test(window.navigator.userAgent);
22723
22723
  }
22724
- function wB() {
22725
- return a_() || gB();
22724
+ function w4() {
22725
+ return a_() || g4();
22726
22726
  }
22727
22727
  function Qy(t, n, a, l) {
22728
22728
  let u = as(a);
@@ -22747,7 +22747,7 @@ function i_(t, n, a, l) {
22747
22747
  }, [t, n, l]);
22748
22748
  }
22749
22749
  const rO = 30;
22750
- function bB(t, n, a) {
22750
+ function b4(t, n, a) {
22751
22751
  let l = n_(t, "outside-click"), u = as(a), f = St(function(g, w) {
22752
22752
  if (g.defaultPrevented)
22753
22753
  return;
@@ -22769,7 +22769,7 @@ function bB(t, n, a) {
22769
22769
  var w, x;
22770
22770
  p.current = ((x = (w = g.composedPath) == null ? void 0 : w.call(g)) == null ? void 0 : x[0]) || g.target;
22771
22771
  }, !0), Qy(l, "click", (g) => {
22772
- wB() || p.current && (f(g, () => p.current), p.current = null);
22772
+ w4() || p.current && (f(g, () => p.current), p.current = null);
22773
22773
  }, !0);
22774
22774
  let v = jt({ x: 0, y: 0 });
22775
22775
  Qy(l, "touchstart", (g) => {
@@ -22783,7 +22783,7 @@ function bB(t, n, a) {
22783
22783
  function rv(...t) {
22784
22784
  return $e(() => Yp(...t), [...t]);
22785
22785
  }
22786
- function TB(t, n, a, l) {
22786
+ function T4(t, n, a, l) {
22787
22787
  let u = as(a);
22788
22788
  yt(() => {
22789
22789
  t = t ?? window;
@@ -22803,7 +22803,7 @@ function nT(t, n) {
22803
22803
  return "button";
22804
22804
  }, [t.type, t.as, n]);
22805
22805
  }
22806
- function xB() {
22806
+ function x4() {
22807
22807
  let t;
22808
22808
  return { before({ doc: n }) {
22809
22809
  var a;
@@ -22814,7 +22814,7 @@ function xB() {
22814
22814
  a.style(l, "paddingRight", `${f}px`);
22815
22815
  } };
22816
22816
  }
22817
- function SB() {
22817
+ function S4() {
22818
22818
  return a_() ? { before({ doc: t, d: n, meta: a }) {
22819
22819
  function l(u) {
22820
22820
  return a.containers.flatMap((f) => f()).some((f) => f.contains(u));
@@ -22865,12 +22865,12 @@ function SB() {
22865
22865
  });
22866
22866
  } } : {};
22867
22867
  }
22868
- function EB() {
22868
+ function E4() {
22869
22869
  return { before({ doc: t, d: n }) {
22870
22870
  n.style(t.documentElement, "overflow", "hidden");
22871
22871
  } };
22872
22872
  }
22873
- function CB(t) {
22873
+ function C4(t) {
22874
22874
  let n = {};
22875
22875
  for (let a of t)
22876
22876
  Object.assign(n, a(n));
@@ -22884,7 +22884,7 @@ let Pp = e_(() => /* @__PURE__ */ new Map(), { PUSH(t, n) {
22884
22884
  let a = this.get(t);
22885
22885
  return a && (a.count--, a.meta.delete(n)), this;
22886
22886
  }, SCROLL_PREVENT({ doc: t, d: n, meta: a }) {
22887
- let l = { doc: t, d: n, meta: CB(a) }, u = [SB(), xB(), EB()];
22887
+ let l = { doc: t, d: n, meta: C4(a) }, u = [S4(), x4(), E4()];
22888
22888
  u.forEach(({ before: f }) => f == null ? void 0 : f(l)), u.forEach(({ after: f }) => f == null ? void 0 : f(l));
22889
22889
  }, SCROLL_ALLOW({ d: t }) {
22890
22890
  t.dispose();
@@ -22900,21 +22900,21 @@ Pp.subscribe(() => {
22900
22900
  (u && !l || !u && l) && Pp.dispatch(a.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", a), a.count === 0 && Pp.dispatch("TEARDOWN", a);
22901
22901
  }
22902
22902
  });
22903
- function AB(t, n, a = () => ({ containers: [] })) {
22903
+ function A4(t, n, a = () => ({ containers: [] })) {
22904
22904
  let l = t_(Pp), u = n ? l.get(n) : void 0, f = u ? u.count > 0 : !1;
22905
22905
  return cr(() => {
22906
22906
  if (!(!n || !t))
22907
22907
  return Pp.dispatch("PUSH", n, a), () => Pp.dispatch("POP", n, a);
22908
22908
  }, [t, n]), f;
22909
22909
  }
22910
- function DB(t, n, a = () => [document.body]) {
22910
+ function D4(t, n, a = () => [document.body]) {
22911
22911
  let l = n_(t, "scroll-lock");
22912
- AB(l, n, (u) => {
22912
+ A4(l, n, (u) => {
22913
22913
  var f;
22914
22914
  return { containers: [...(f = u.containers) != null ? f : [], a] };
22915
22915
  });
22916
22916
  }
22917
- function RB(t = 0) {
22917
+ function R4(t = 0) {
22918
22918
  let [n, a] = Lt(t), l = St((g) => a(g), [n]), u = St((g) => a((w) => w | g), [n]), f = St((g) => (n & g) === g, [n]), p = St((g) => a((w) => w & ~g), [a]), v = St((g) => a((w) => w ^ g), [a]);
22919
22919
  return { flags: n, setFlag: l, addFlag: u, hasFlag: f, removeFlag: p, toggleFlag: v };
22920
22920
  }
@@ -22923,7 +22923,7 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((aO
22923
22923
  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(`
22924
22924
  `)), [];
22925
22925
  });
22926
- var OB = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(OB || {});
22926
+ var O4 = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(O4 || {});
22927
22927
  function rT(t) {
22928
22928
  let n = {};
22929
22929
  for (let a in t)
@@ -22931,7 +22931,7 @@ function rT(t) {
22931
22931
  return n;
22932
22932
  }
22933
22933
  function aT(t, n, a, l) {
22934
- let [u, f] = Lt(a), { hasFlag: p, addFlag: v, removeFlag: g } = RB(t && u ? 3 : 0), w = jt(!1), x = jt(!1), C = nv();
22934
+ let [u, f] = Lt(a), { hasFlag: p, addFlag: v, removeFlag: g } = R4(t && u ? 3 : 0), w = jt(!1), x = jt(!1), C = nv();
22935
22935
  return cr(() => {
22936
22936
  var D;
22937
22937
  if (t) {
@@ -22939,7 +22939,7 @@ function aT(t, n, a, l) {
22939
22939
  a && v(3);
22940
22940
  return;
22941
22941
  }
22942
- return (D = l == null ? void 0 : l.start) == null || D.call(l, a), kB(n, { inFlight: w, prepare() {
22942
+ return (D = l == null ? void 0 : l.start) == null || D.call(l, a), k4(n, { inFlight: w, prepare() {
22943
22943
  x.current ? x.current = !1 : x.current = w.current, w.current = !0, !x.current && (a ? (v(3), g(4)) : (v(4), g(2)));
22944
22944
  }, run() {
22945
22945
  x.current ? a ? (g(3), v(4)) : (g(4), v(3)) : a ? g(1) : v(1);
@@ -22950,15 +22950,15 @@ function aT(t, n, a, l) {
22950
22950
  }
22951
22951
  }, [t, a, n, C]), t ? [u, { closed: p(1), enter: p(2), leave: p(4), transition: p(2) || p(4) }] : [a, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
22952
22952
  }
22953
- function kB(t, { prepare: n, run: a, done: l, inFlight: u }) {
22953
+ function k4(t, { prepare: n, run: a, done: l, inFlight: u }) {
22954
22954
  let f = qp();
22955
- return NB(t, { prepare: n, inFlight: u }), f.nextFrame(() => {
22955
+ return N4(t, { prepare: n, inFlight: u }), f.nextFrame(() => {
22956
22956
  a(), f.requestAnimationFrame(() => {
22957
- f.add(_B(t, l));
22957
+ f.add(_4(t, l));
22958
22958
  });
22959
22959
  }), f.dispose;
22960
22960
  }
22961
- function _B(t, n) {
22961
+ function _4(t, n) {
22962
22962
  var a, l;
22963
22963
  let u = qp();
22964
22964
  if (!t)
@@ -22972,7 +22972,7 @@ function _B(t, n) {
22972
22972
  f || n();
22973
22973
  }), u.dispose);
22974
22974
  }
22975
- function NB(t, { inFlight: n, prepare: a }) {
22975
+ function N4(t, { inFlight: n, prepare: a }) {
22976
22976
  if (n != null && n.current) {
22977
22977
  a();
22978
22978
  return;
@@ -23015,7 +23015,7 @@ function Dg(t) {
23015
23015
  } = Nl(t);
23016
23016
  return /auto|scroll|overlay|hidden|clip/.test(n + l + a) && !["inline", "contents"].includes(u);
23017
23017
  }
23018
- function MB(t) {
23018
+ function M4(t) {
23019
23019
  return ["table", "td", "th"].includes(av(t));
23020
23020
  }
23021
23021
  function oT(t) {
@@ -23031,7 +23031,7 @@ function VE(t) {
23031
23031
  const n = GE(), a = Ri(t) ? Nl(t) : t;
23032
23032
  return a.transform !== "none" || a.perspective !== "none" || (a.containerType ? a.containerType !== "normal" : !1) || !n && (a.backdropFilter ? a.backdropFilter !== "none" : !1) || !n && (a.filter ? a.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((l) => (a.willChange || "").includes(l)) || ["paint", "layout", "strict", "content"].some((l) => (a.contain || "").includes(l));
23033
23033
  }
23034
- function LB(t) {
23034
+ function L4(t) {
23035
23035
  let n = uf(t);
23036
23036
  for (; Eu(n) && !Kh(n); ) {
23037
23037
  if (VE(n))
@@ -23089,7 +23089,7 @@ function dg(t, n, a) {
23089
23089
  function wE(t) {
23090
23090
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
23091
23091
  }
23092
- function PB() {
23092
+ function P4() {
23093
23093
  const t = navigator.userAgentData;
23094
23094
  return t && Array.isArray(t.brands) ? t.brands.map((n) => {
23095
23095
  let {
@@ -23102,12 +23102,12 @@ function PB() {
23102
23102
  const Xh = Math.min, Di = Math.max, fg = Math.round, ub = Math.floor, cf = (t) => ({
23103
23103
  x: t,
23104
23104
  y: t
23105
- }), IB = {
23105
+ }), I4 = {
23106
23106
  left: "right",
23107
23107
  right: "left",
23108
23108
  bottom: "top",
23109
23109
  top: "bottom"
23110
- }, FB = {
23110
+ }, F4 = {
23111
23111
  start: "end",
23112
23112
  end: "start"
23113
23113
  };
@@ -23135,20 +23135,20 @@ function $p(t) {
23135
23135
  function c_(t) {
23136
23136
  return l_($p(t));
23137
23137
  }
23138
- function UB(t, n, a) {
23138
+ function U4(t, n, a) {
23139
23139
  a === void 0 && (a = !1);
23140
23140
  const l = Rg(t), u = c_(t), f = u_(u);
23141
23141
  let p = u === "x" ? l === (a ? "end" : "start") ? "right" : "left" : l === "start" ? "bottom" : "top";
23142
23142
  return n.reference[f] > n.floating[f] && (p = Ob(p)), [p, Ob(p)];
23143
23143
  }
23144
- function BB(t) {
23144
+ function B4(t) {
23145
23145
  const n = Ob(t);
23146
23146
  return [bE(t), n, bE(n)];
23147
23147
  }
23148
23148
  function bE(t) {
23149
- return t.replace(/start|end/g, (n) => FB[n]);
23149
+ return t.replace(/start|end/g, (n) => F4[n]);
23150
23150
  }
23151
- function jB(t, n, a) {
23151
+ function j4(t, n, a) {
23152
23152
  const l = ["left", "right"], u = ["right", "left"], f = ["top", "bottom"], p = ["bottom", "top"];
23153
23153
  switch (t) {
23154
23154
  case "top":
@@ -23161,15 +23161,15 @@ function jB(t, n, a) {
23161
23161
  return [];
23162
23162
  }
23163
23163
  }
23164
- function $B(t, n, a, l) {
23164
+ function $4(t, n, a, l) {
23165
23165
  const u = Rg(t);
23166
- let f = jB(df(t), a === "start", l);
23166
+ let f = j4(df(t), a === "start", l);
23167
23167
  return u && (f = f.map((p) => p + "-" + u), n && (f = f.concat(f.map(bE)))), f;
23168
23168
  }
23169
23169
  function Ob(t) {
23170
- return t.replace(/left|right|bottom|top/g, (n) => IB[n]);
23170
+ return t.replace(/left|right|bottom|top/g, (n) => I4[n]);
23171
23171
  }
23172
- function zB(t) {
23172
+ function z4(t) {
23173
23173
  return {
23174
23174
  top: 0,
23175
23175
  right: 0,
@@ -23178,8 +23178,8 @@ function zB(t) {
23178
23178
  ...t
23179
23179
  };
23180
23180
  }
23181
- function HB(t) {
23182
- return typeof t != "number" ? zB(t) : {
23181
+ function H4(t) {
23182
+ return typeof t != "number" ? z4(t) : {
23183
23183
  top: t,
23184
23184
  right: t,
23185
23185
  bottom: t,
@@ -23252,7 +23252,7 @@ function lO(t, n, a) {
23252
23252
  }
23253
23253
  return A;
23254
23254
  }
23255
- const WB = async (t, n, a) => {
23255
+ const W4 = async (t, n, a) => {
23256
23256
  const {
23257
23257
  placement: l = "bottom",
23258
23258
  strategy: u = "absolute",
@@ -23329,7 +23329,7 @@ async function lT(t, n) {
23329
23329
  elementContext: C = "floating",
23330
23330
  altBoundary: D = !1,
23331
23331
  padding: A = 0
23332
- } = iv(n, t), M = HB(A), B = v[D ? C === "floating" ? "reference" : "floating" : C], X = kb(await f.getClippingRect({
23332
+ } = iv(n, t), M = H4(A), B = v[D ? C === "floating" ? "reference" : "floating" : C], X = kb(await f.getClippingRect({
23333
23333
  element: (a = await (f.isElement == null ? void 0 : f.isElement(B))) == null || a ? B : B.contextElement || await (f.getDocumentElement == null ? void 0 : f.getDocumentElement(v.floating)),
23334
23334
  boundary: w,
23335
23335
  rootBoundary: x,
@@ -23358,7 +23358,7 @@ async function lT(t, n) {
23358
23358
  right: (ae.right - X.right + M.right) / te.x
23359
23359
  };
23360
23360
  }
23361
- const VB = function(t) {
23361
+ const V4 = function(t) {
23362
23362
  return t === void 0 && (t = {}), {
23363
23363
  name: "flip",
23364
23364
  options: t,
@@ -23382,12 +23382,12 @@ const VB = function(t) {
23382
23382
  } = iv(t, n);
23383
23383
  if ((a = f.arrow) != null && a.alignmentOffset)
23384
23384
  return {};
23385
- const X = df(u), I = $p(v), Q = df(v) === v, te = await (g.isRTL == null ? void 0 : g.isRTL(w.floating)), ae = D || (Q || !U ? [Ob(v)] : BB(v)), ue = M !== "none";
23386
- !D && ue && ae.push(...$B(v, U, M, te));
23385
+ const X = df(u), I = $p(v), Q = df(v) === v, te = await (g.isRTL == null ? void 0 : g.isRTL(w.floating)), ae = D || (Q || !U ? [Ob(v)] : B4(v)), ue = M !== "none";
23386
+ !D && ue && ae.push(...$4(v, U, M, te));
23387
23387
  const le = [v, ...ae], _ = await lT(n, B), L = [];
23388
23388
  let P = ((l = f.flip) == null ? void 0 : l.overflows) || [];
23389
23389
  if (x && L.push(_[X]), C) {
23390
- const ee = UB(u, p, te);
23390
+ const ee = U4(u, p, te);
23391
23391
  L.push(_[ee[0]], _[ee[1]]);
23392
23392
  }
23393
23393
  if (P = [...P, {
@@ -23438,7 +23438,7 @@ const VB = function(t) {
23438
23438
  }
23439
23439
  };
23440
23440
  };
23441
- async function GB(t, n) {
23441
+ async function G4(t, n) {
23442
23442
  const {
23443
23443
  placement: a,
23444
23444
  platform: l,
@@ -23465,7 +23465,7 @@ async function GB(t, n) {
23465
23465
  y: A * x
23466
23466
  };
23467
23467
  }
23468
- const YB = function(t) {
23468
+ const Y4 = function(t) {
23469
23469
  return t === void 0 && (t = 0), {
23470
23470
  name: "offset",
23471
23471
  options: t,
@@ -23476,7 +23476,7 @@ const YB = function(t) {
23476
23476
  y: f,
23477
23477
  placement: p,
23478
23478
  middlewareData: v
23479
- } = n, g = await GB(n, t);
23479
+ } = n, g = await G4(n, t);
23480
23480
  return p === ((a = v.offset) == null ? void 0 : a.placement) && (l = v.arrow) != null && l.alignmentOffset ? {} : {
23481
23481
  x: u + g.x,
23482
23482
  y: f + g.y,
@@ -23487,7 +23487,7 @@ const YB = function(t) {
23487
23487
  };
23488
23488
  }
23489
23489
  };
23490
- }, qB = function(t) {
23490
+ }, q4 = function(t) {
23491
23491
  return t === void 0 && (t = {}), {
23492
23492
  name: "shift",
23493
23493
  options: t,
@@ -23543,7 +23543,7 @@ const YB = function(t) {
23543
23543
  };
23544
23544
  }
23545
23545
  };
23546
- }, QB = function(t) {
23546
+ }, Q4 = function(t) {
23547
23547
  return t === void 0 && (t = {}), {
23548
23548
  name: "size",
23549
23549
  options: t,
@@ -23612,15 +23612,15 @@ function zh(t) {
23612
23612
  y: v
23613
23613
  };
23614
23614
  }
23615
- const KB = /* @__PURE__ */ cf(0);
23615
+ const K4 = /* @__PURE__ */ cf(0);
23616
23616
  function f_(t) {
23617
23617
  const n = is(t);
23618
- return !GE() || !n.visualViewport ? KB : {
23618
+ return !GE() || !n.visualViewport ? K4 : {
23619
23619
  x: n.visualViewport.offsetLeft,
23620
23620
  y: n.visualViewport.offsetTop
23621
23621
  };
23622
23622
  }
23623
- function XB(t, n, a) {
23623
+ function X4(t, n, a) {
23624
23624
  return n === void 0 && (n = !1), !a || n && a !== is(t) ? !1 : n;
23625
23625
  }
23626
23626
  function zp(t, n, a, l) {
@@ -23628,7 +23628,7 @@ function zp(t, n, a, l) {
23628
23628
  const u = t.getBoundingClientRect(), f = YE(t);
23629
23629
  let p = cf(1);
23630
23630
  n && (l ? Ri(l) && (p = zh(l)) : p = zh(t));
23631
- const v = XB(f, a, l) ? f_(f) : cf(0);
23631
+ const v = X4(f, a, l) ? f_(f) : cf(0);
23632
23632
  let g = (u.left + v.x) / p.x, w = (u.top + v.y) / p.y, x = u.width / p.x, C = u.height / p.y;
23633
23633
  if (f) {
23634
23634
  const D = is(f), A = l && Ri(l) ? is(l) : l;
@@ -23645,7 +23645,7 @@ function zp(t, n, a, l) {
23645
23645
  y: w
23646
23646
  });
23647
23647
  }
23648
- function ZB(t) {
23648
+ function Z4(t) {
23649
23649
  let {
23650
23650
  elements: n,
23651
23651
  rect: a,
@@ -23671,7 +23671,7 @@ function ZB(t) {
23671
23671
  y: a.y * w.y - g.scrollTop * w.y + x.y
23672
23672
  };
23673
23673
  }
23674
- function JB(t) {
23674
+ function J4(t) {
23675
23675
  return Array.from(t.getClientRects());
23676
23676
  }
23677
23677
  function TE(t, n) {
@@ -23828,9 +23828,9 @@ function m_(t, n) {
23828
23828
  return a;
23829
23829
  }
23830
23830
  let l = cO(t, n);
23831
- for (; l && MB(l) && V1(l); )
23831
+ for (; l && M4(l) && V1(l); )
23832
23832
  l = cO(l, n);
23833
- return l && Kh(l) && V1(l) && !VE(l) ? a : l || LB(t) || a;
23833
+ return l && Kh(l) && V1(l) && !VE(l) ? a : l || L4(t) || a;
23834
23834
  }
23835
23835
  const sj = async function(t) {
23836
23836
  const n = this.getOffsetParent || m_, a = this.getDimensions, l = await a(t.floating);
@@ -23848,12 +23848,12 @@ function lj(t) {
23848
23848
  return Nl(t).direction === "rtl";
23849
23849
  }
23850
23850
  const uj = {
23851
- convertOffsetParentRelativeRectToViewportRelativeRect: ZB,
23851
+ convertOffsetParentRelativeRectToViewportRelativeRect: Z4,
23852
23852
  getDocumentElement: Au,
23853
23853
  getClippingRect: aj,
23854
23854
  getOffsetParent: m_,
23855
23855
  getElementRects: sj,
23856
- getClientRects: JB,
23856
+ getClientRects: J4,
23857
23857
  getDimensions: ij,
23858
23858
  getScale: zh,
23859
23859
  isElement: Ri,
@@ -23941,7 +23941,7 @@ function dj(t, n, a, l) {
23941
23941
  }), C == null || C(), (X = A) == null || X.disconnect(), A = null, g && cancelAnimationFrame(M);
23942
23942
  };
23943
23943
  }
23944
- const G1 = lT, fj = YB, pj = qB, mj = VB, hj = QB, vj = (t, n, a) => {
23944
+ const G1 = lT, fj = Y4, pj = q4, mj = V4, hj = Q4, vj = (t, n, a) => {
23945
23945
  const l = /* @__PURE__ */ new Map(), u = {
23946
23946
  platform: uj,
23947
23947
  ...a
@@ -23949,7 +23949,7 @@ const G1 = lT, fj = YB, pj = qB, mj = VB, hj = QB, vj = (t, n, a) => {
23949
23949
  ...u.platform,
23950
23950
  _c: l
23951
23951
  };
23952
- return WB(t, n, {
23952
+ return W4(t, n, {
23953
23953
  ...u,
23954
23954
  platform: f
23955
23955
  });
@@ -24410,7 +24410,7 @@ function Bj(t, n) {
24410
24410
  const B = U.deltaY, X = f.current.top >= -0.5, I = f.current.bottom >= -0.5, Q = M.scrollHeight - M.clientHeight, te = B < 0 ? -1 : 1, ae = B < 0 ? "max" : "min";
24411
24411
  M.scrollHeight <= M.clientHeight || (!X && B > 0 || !I && B < 0 ? (U.preventDefault(), Up.flushSync(() => {
24412
24412
  g((ue) => ue + Math[ae](B, Q * te));
24413
- })) : /firefox/i.test(PB()) && (M.scrollTop += B));
24413
+ })) : /firefox/i.test(P4()) && (M.scrollTop += B));
24414
24414
  }
24415
24415
  const M = (p == null ? void 0 : p.current) || l.floating;
24416
24416
  if (a && M)
@@ -24969,7 +24969,7 @@ function A$(t, n) {
24969
24969
  let D$ = ir(T$), tC = ir(S$), nC = ir(A$), P_ = Object.assign(D$, { Button: tC, Panel: nC }), R$ = "div";
24970
24970
  function O$(t, n) {
24971
24971
  let a = `headlessui-control-${os()}`, [l, u] = Xk(), [f, p] = qk(), v = Xb(), { disabled: g = v || !1, ...w } = t, x = $e(() => ({ disabled: g }), [g]), C = { ref: n, disabled: g || void 0, "aria-disabled": g || void 0 }, D = dr();
24972
- return Ie.createElement(I4, { value: g }, Ie.createElement(u, { value: l }, Ie.createElement(p, { value: f }, Ie.createElement(K4, { id: a }, D({ ourProps: C, theirProps: { ...w, children: Ie.createElement(G4, null, typeof w.children == "function" ? w.children(x) : w.children) }, slot: x, defaultTag: R$, name: "Field" })))));
24972
+ return Ie.createElement(IB, { value: g }, Ie.createElement(u, { value: l }, Ie.createElement(p, { value: f }, Ie.createElement(KB, { id: a }, D({ ourProps: C, theirProps: { ...w, children: Ie.createElement(GB, null, typeof w.children == "function" ? w.children(x) : w.children) }, slot: x, defaultTag: R$, name: "Field" })))));
24973
24973
  }
24974
24974
  let k$ = ir(O$);
24975
24975
  var _$ = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(_$ || {}), N$ = ((t) => (t[t.TogglePopover = 0] = "TogglePopover", t[t.ClosePopover = 1] = "ClosePopover", t[t.SetButton = 2] = "SetButton", t[t.SetButtonId = 3] = "SetButtonId", t[t.SetPanel = 4] = "SetPanel", t[t.SetPanelId = 5] = "SetPanelId", t))(N$ || {});
@@ -25035,10 +25035,10 @@ function F$(t, n) {
25035
25035
  });
25036
25036
  yt(() => _ == null ? void 0 : _(ue), [_, ue]);
25037
25037
  let [P, G] = n$(), z = C_(x), H = o$({ mainTreeNode: z, portals: P, defaultContainers: [x, D] });
25038
- TB(I == null ? void 0 : I.defaultView, "focus", (Z) => {
25038
+ T4(I == null ? void 0 : I.defaultView, "focus", (Z) => {
25039
25039
  var K, ye, xe, Ne, Ke, Le;
25040
25040
  Z.target !== window && Z.target instanceof HTMLElement && w === 0 && (L() || x && D && (H.contains(Z.target) || (ye = (K = M.current) == null ? void 0 : K.contains) != null && ye.call(K, Z.target) || (Ne = (xe = U.current) == null ? void 0 : xe.contains) != null && Ne.call(xe, Z.target) || (Le = (Ke = B.current) == null ? void 0 : Ke.contains) != null && Le.call(Ke, Z.target) || X({ type: 1 })));
25041
- }, !0), bB(w === 0, H.resolveContainers, (Z, K) => {
25041
+ }, !0), b4(w === 0, H.resolveContainers, (Z, K) => {
25042
25042
  X({ type: 1 }), r_(K, WE.Loose) || (Z.preventDefault(), x == null || x.focus());
25043
25043
  });
25044
25044
  let ee = ht((Z) => {
@@ -25128,11 +25128,11 @@ function W$(t, n) {
25128
25128
  C({ type: 5, panelId: null });
25129
25129
  }), [l, C]);
25130
25130
  let L = kg(), [P, G] = aT(g, ae, L !== null ? (L & si.Open) === si.Open : x.popoverState === 0);
25131
- dB(P, x.button, () => {
25131
+ d4(P, x.button, () => {
25132
25132
  C({ type: 1 });
25133
25133
  });
25134
25134
  let z = x.__demoMode ? !1 : v && P;
25135
- DB(z, _);
25135
+ D4(z, _);
25136
25136
  let H = ht((K) => {
25137
25137
  var ye;
25138
25138
  switch (K.key) {
@@ -25156,7 +25156,7 @@ function W$(t, n) {
25156
25156
  var ye, xe, Ne, Ke, Le;
25157
25157
  let ze = K.relatedTarget;
25158
25158
  ze && B.current && ((ye = B.current) != null && ye.contains(ze) || (C({ type: 1 }), ((Ne = (xe = x.beforePanelSentinel.current) == null ? void 0 : xe.contains) != null && Ne.call(xe, ze) || (Le = (Ke = x.afterPanelSentinel.current) == null ? void 0 : Ke.contains) != null && Le.call(Ke, ze)) && ze.focus({ preventScroll: !0 })));
25159
- } : void 0, tabIndex: -1, style: { ...w.style, ...Q, "--button-width": lB(x.button, !0).width }, ...rT(G) }), W = D_(), ne = ht(() => {
25159
+ } : void 0, tabIndex: -1, style: { ...w.style, ...Q, "--button-width": l4(x.button, !0).width }, ...rT(G) }), W = D_(), ne = ht(() => {
25160
25160
  let K = B.current;
25161
25161
  if (!K)
25162
25162
  return;
@@ -25234,7 +25234,7 @@ function Z$(t) {
25234
25234
  let J$ = "button";
25235
25235
  function ez(t, n) {
25236
25236
  var a;
25237
- let l = os(), u = Vk(), f = Xb(), { id: p = u || `headlessui-switch-${l}`, disabled: v = f || !1, checked: g, defaultChecked: w, onChange: x, name: C, value: D, form: A, autoFocus: M = !1, ...U } = t, B = en(oC), [X, I] = Lt(null), Q = jt(null), te = Lr(Q, n, B === null ? null : B.setSwitch, I), ae = z4(w), [ue, le] = $4(g, x, ae ?? !1), _ = nv(), [L, P] = Lt(!1), G = ht(() => {
25237
+ let l = os(), u = Vk(), f = Xb(), { id: p = u || `headlessui-switch-${l}`, disabled: v = f || !1, checked: g, defaultChecked: w, onChange: x, name: C, value: D, form: A, autoFocus: M = !1, ...U } = t, B = en(oC), [X, I] = Lt(null), Q = jt(null), te = Lr(Q, n, B === null ? null : B.setSwitch, I), ae = zB(w), [ue, le] = $B(g, x, ae ?? !1), _ = nv(), [L, P] = Lt(!1), G = ht(() => {
25238
25238
  P(!0), le == null || le(!ue), _.nextFrame(() => {
25239
25239
  P(!1);
25240
25240
  });
@@ -25243,14 +25243,14 @@ function ez(t, n) {
25243
25243
  return lt.preventDefault();
25244
25244
  lt.preventDefault(), G();
25245
25245
  }), H = ht((lt) => {
25246
- lt.key === ar.Space ? (lt.preventDefault(), G()) : lt.key === ar.Enter && H4(lt.currentTarget);
25247
- }), ee = ht((lt) => lt.preventDefault()), V = Kk(), W = Z4(), { isFocusVisible: ne, focusProps: $ } = Ag({ autoFocus: M }), { isHovered: Z, hoverProps: K } = Qb({ isDisabled: v }), { pressed: ye, pressProps: xe } = Kb({ disabled: v }), Ne = $e(() => ({ checked: ue, disabled: v, hover: Z, focus: ne, active: ye, autofocus: M, changing: L }), [ue, Z, ne, ye, v, L, M]), Ke = lf({ id: p, ref: te, role: "switch", type: nT(t, X), tabIndex: t.tabIndex === -1 ? 0 : (a = t.tabIndex) != null ? a : 0, "aria-checked": ue, "aria-labelledby": V, "aria-describedby": W, disabled: v || void 0, autoFocus: M, onClick: z, onKeyUp: H, onKeyPress: ee }, $, K, xe), Le = St(() => {
25246
+ lt.key === ar.Space ? (lt.preventDefault(), G()) : lt.key === ar.Enter && HB(lt.currentTarget);
25247
+ }), ee = ht((lt) => lt.preventDefault()), V = Kk(), W = ZB(), { isFocusVisible: ne, focusProps: $ } = Ag({ autoFocus: M }), { isHovered: Z, hoverProps: K } = Qb({ isDisabled: v }), { pressed: ye, pressProps: xe } = Kb({ disabled: v }), Ne = $e(() => ({ checked: ue, disabled: v, hover: Z, focus: ne, active: ye, autofocus: M, changing: L }), [ue, Z, ne, ye, v, L, M]), Ke = lf({ id: p, ref: te, role: "switch", type: nT(t, X), tabIndex: t.tabIndex === -1 ? 0 : (a = t.tabIndex) != null ? a : 0, "aria-checked": ue, "aria-labelledby": V, "aria-describedby": W, disabled: v || void 0, autoFocus: M, onClick: z, onKeyUp: H, onKeyPress: ee }, $, K, xe), Le = St(() => {
25248
25248
  if (ae !== void 0)
25249
25249
  return le == null ? void 0 : le(ae);
25250
25250
  }, [le, ae]), ze = dr();
25251
- return Ie.createElement(Ie.Fragment, null, C != null && Ie.createElement(q4, { disabled: v, data: { [C]: D || "on" }, overrides: { type: "checkbox", checked: ue }, form: A, onReset: Le }), ze({ ourProps: Ke, theirProps: U, slot: Ne, defaultTag: J$, name: "Switch" }));
25251
+ return Ie.createElement(Ie.Fragment, null, C != null && Ie.createElement(qB, { disabled: v, data: { [C]: D || "on" }, overrides: { type: "checkbox", checked: ue }, form: A, onReset: Le }), ze({ ourProps: Ke, theirProps: U, slot: Ne, defaultTag: J$, name: "Switch" }));
25252
25252
  }
25253
- let tz = ir(ez), nz = Z$, rz = Zk, az = nB, iz = Object.assign(tz, { Group: nz, Label: rz, Description: az });
25253
+ let tz = ir(ez), nz = Z$, rz = Zk, az = n4, iz = Object.assign(tz, { Group: nz, Label: rz, Description: az });
25254
25254
  function oz({ onFocus: t }) {
25255
25255
  let [n, a] = Lt(!0), l = A_();
25256
25256
  return n ? Ie.createElement(kc, { as: "button", type: "button", features: Oc.Focusable, onFocus: (u) => {
@@ -28459,7 +28459,7 @@ const ct = "0x0000000000000000000000000000000000000000", R7 = BigInt(
28459
28459
  depositParams: { customTokens: [] },
28460
28460
  withdrawParams: { customTokens: [] },
28461
28461
  deprecated: !1
28462
- }, zQ = "deposit", M7 = 1, AC = 0, L7 = 0.5, P7 = 0.3, HQ = [AC], I7 = "withdrawSafe", RN = "initWithdrawal", F7 = "unrollAndClaim", U7 = "completeWithdrawal", B7 = 42e5, j7 = 1.25, Mp = 1e4, $7 = 13e3, ON = 3, DC = 2e4, z7 = 15e3, H7 = {
28462
+ }, zQ = "deposit", M7 = 1, AC = 0, L7 = 0.5, P7 = 0.3, HQ = [AC], I7 = "withdrawSafe", RN = "initWithdrawal", F7 = "unrollAndClaim", U7 = "completeWithdrawal", B7 = 3e7, j7 = 1.25, Mp = 1e4, $7 = 13e3, ON = 3, DC = 2e4, z7 = 15e3, H7 = {
28463
28463
  [_c.id]: _c,
28464
28464
  [ls.id]: ls,
28465
28465
  [Cu.id]: Cu,
@@ -32802,11 +32802,15 @@ const bT = (t, n) => t / n * 100, Lg = (t, n = vt) => new Qe(t).shiftedBy(-n).to
32802
32802
  }, RC = (t, n) => {
32803
32803
  var a;
32804
32804
  return ((a = Hh[n]) == null ? void 0 : a.nativeTokenSymbol) === t;
32805
- }, JW = (t, n) => {
32806
- const a = new Qe(n).multipliedBy(B7).shiftedBy(-vt), l = new Qe(t).minus(
32807
- a
32805
+ }, JW = ({
32806
+ nativeTokenBalance: t,
32807
+ tokenDecimals: n,
32808
+ gasPrice: a
32809
+ }) => {
32810
+ const l = new Qe(a).multipliedBy(B7).shiftedBy(-n), u = new Qe(t).minus(
32811
+ l
32808
32812
  );
32809
- return l.gt("0") ? l : new Qe("0");
32813
+ return u.gt("0") ? u : new Qe("0");
32810
32814
  }, eV = (t) => typeof t == "object" && t !== null && "message" in t && typeof t.message == "string", tV = (t) => {
32811
32815
  if (eV(t))
32812
32816
  return t;
@@ -33570,13 +33574,14 @@ const xV = async () => {
33570
33574
  }), jb({
33571
33575
  watch: a && !f,
33572
33576
  queryKey: x
33573
- }), f ? JW(
33574
- sf(
33577
+ }), f ? JW({
33578
+ nativeTokenBalance: sf(
33575
33579
  (v == null ? void 0 : v.value) ?? BigInt(0),
33576
33580
  (v == null ? void 0 : v.decimals) ?? vt
33577
33581
  ),
33578
- Number((p == null ? void 0 : p.gasPrice) ?? 0)
33579
- ).toString() : sf(
33582
+ gasPrice: Number((p == null ? void 0 : p.maxFeePerGas) ?? 0),
33583
+ tokenDecimals: (v == null ? void 0 : v.decimals) ?? vt
33584
+ }).toString() : sf(
33580
33585
  ((C = w == null ? void 0 : w[0]) == null ? void 0 : C.result) ?? BigInt(0),
33581
33586
  ((D = w == null ? void 0 : w[1]) == null ? void 0 : D.result) ?? vt
33582
33587
  );
@@ -37243,7 +37248,7 @@ const aL = {
37243
37248
  const { chainId: p, vaultAddress: v, account: g } = f;
37244
37249
  if (!g || !t)
37245
37250
  return aL;
37246
- const w = (await import("./pyth-adapter-0e8a7441.js")).PythAdapter, x = Vb({
37251
+ const w = (await import("./pyth-adapter-ffdcf4d3.js")).PythAdapter, x = Vb({
37247
37252
  abi: hg("synthetixV3Core"),
37248
37253
  functionName: "getPositionDebt",
37249
37254
  args: UW[v.toLowerCase()] ?? []