@cloudoperators/juno-messages-provider 0.2.23 → 0.2.25

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.
Files changed (2) hide show
  1. package/build/index.js +192 -240
  2. package/package.json +5 -5
package/build/index.js CHANGED
@@ -3,14 +3,14 @@ import V, { createContext as me, useContext as ye, forwardRef as K, cloneElement
3
3
  import { createStore as gs, useStore as vs } from "zustand";
4
4
  import * as Pn from "react-dom";
5
5
  import { createPortal as oo, flushSync as ze } from "react-dom";
6
- const Jo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString(36).slice(-5)}}`, bs = (t, n) => ({
7
- storeId: Jo("store-"),
6
+ const Xo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString(36).slice(-5)}}`, bs = (t, n) => ({
7
+ storeId: Xo("store-"),
8
8
  messages: [],
9
9
  // this is the messages state
10
10
  actions: {
11
11
  addMessage: (e) => {
12
12
  if (n().messages.findIndex((a) => a.text === e.text && a.variant === e.variant) >= 0) return;
13
- const o = n().messages.slice(), i = Jo("message-");
13
+ const o = n().messages.slice(), i = Xo("message-");
14
14
  return o.push({ id: i, ...e }), t((a) => ({ ...a, messages: o })), i;
15
15
  },
16
16
  removeMessage: (e) => {
@@ -51,20 +51,10 @@ function ha(t) {
51
51
  });
52
52
  }), e;
53
53
  }
54
- var Er = { exports: {} }, Kt = {};
55
- /**
56
- * @license React
57
- * react-jsx-runtime.production.js
58
- *
59
- * Copyright (c) Meta Platforms, Inc. and affiliates.
60
- *
61
- * This source code is licensed under the MIT license found in the
62
- * LICENSE file in the root directory of this source tree.
63
- */
64
- var Xo;
54
+ var Er = { exports: {} }, Kt = {}, Jo;
65
55
  function xs() {
66
- if (Xo) return Kt;
67
- Xo = 1;
56
+ if (Jo) return Kt;
57
+ Jo = 1;
68
58
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
69
59
  function e(r, o, i) {
70
60
  var a = null;
@@ -83,17 +73,7 @@ function xs() {
83
73
  }
84
74
  return Kt.Fragment = n, Kt.jsx = e, Kt.jsxs = e, Kt;
85
75
  }
86
- var xn = {};
87
- /**
88
- * @license React
89
- * react-jsx-runtime.development.js
90
- *
91
- * Copyright (c) Meta Platforms, Inc. and affiliates.
92
- *
93
- * This source code is licensed under the MIT license found in the
94
- * LICENSE file in the root directory of this source tree.
95
- */
96
- var ei;
76
+ var xn = {}, ei;
97
77
  function Es() {
98
78
  return ei || (ei = 1, process.env.NODE_ENV !== "production" && (function() {
99
79
  function t(D) {
@@ -151,11 +131,11 @@ function Es() {
151
131
  }
152
132
  if (k) {
153
133
  k = console;
154
- var ne = k.error, X = typeof Symbol == "function" && Symbol.toStringTag && D[Symbol.toStringTag] || D.constructor.name || "Object";
134
+ var ne = k.error, J = typeof Symbol == "function" && Symbol.toStringTag && D[Symbol.toStringTag] || D.constructor.name || "Object";
155
135
  return ne.call(
156
136
  k,
157
137
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
158
- X
138
+ J
159
139
  ), n(D);
160
140
  }
161
141
  }
@@ -202,14 +182,14 @@ function Es() {
202
182
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
203
183
  )), D = this.props.ref, D !== void 0 ? D : null;
204
184
  }
205
- function u(D, k, ne, X, fe, $) {
185
+ function u(D, k, ne, J, fe, $) {
206
186
  var ee = ne.ref;
207
187
  return D = {
208
188
  $$typeof: g,
209
189
  type: D,
210
190
  key: k,
211
191
  props: ne,
212
- _owner: X
192
+ _owner: J
213
193
  }, (ee !== void 0 ? ee : null) !== null ? Object.defineProperty(D, "ref", {
214
194
  enumerable: !1,
215
195
  get: s
@@ -235,13 +215,13 @@ function Es() {
235
215
  value: $
236
216
  }), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
237
217
  }
238
- function c(D, k, ne, X, fe, $) {
218
+ function c(D, k, ne, J, fe, $) {
239
219
  var ee = k.children;
240
220
  if (ee !== void 0)
241
- if (X)
221
+ if (J)
242
222
  if (B(ee)) {
243
- for (X = 0; X < ee.length; X++)
244
- v(ee[X]);
223
+ for (J = 0; J < ee.length; J++)
224
+ v(ee[J]);
245
225
  Object.freeze && Object.freeze(ee);
246
226
  } else
247
227
  console.error(
@@ -253,18 +233,18 @@ function Es() {
253
233
  var ie = Object.keys(k).filter(function(Yt) {
254
234
  return Yt !== "key";
255
235
  });
256
- X = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", oe[ee + X] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
236
+ J = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", oe[ee + J] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
257
237
  `A props object containing a "key" prop is being spread into JSX:
258
238
  let props = %s;
259
239
  <%s {...props} />
260
240
  React keys must be passed directly to JSX without using spread:
261
241
  let props = %s;
262
242
  <%s key={someKey} {...props} />`,
263
- X,
243
+ J,
264
244
  ee,
265
245
  ie,
266
246
  ee
267
- ), oe[ee + X] = !0);
247
+ ), oe[ee + J] = !0);
268
248
  }
269
249
  if (ee = null, ne !== void 0 && (e(ne), ee = "" + ne), a(k) && (e(k.key), ee = "" + k.key), "key" in k) {
270
250
  ne = {};
@@ -302,24 +282,24 @@ React keys must be passed directly to JSX without using spread:
302
282
  i
303
283
  )(), U = A(r(i)), oe = {};
304
284
  xn.Fragment = x, xn.jsx = function(D, k, ne) {
305
- var X = 1e4 > E.recentlyCreatedOwnerStacks++;
285
+ var J = 1e4 > E.recentlyCreatedOwnerStacks++;
306
286
  return c(
307
287
  D,
308
288
  k,
309
289
  ne,
310
290
  !1,
311
- X ? Error("react-stack-top-frame") : P,
312
- X ? A(r(D)) : U
291
+ J ? Error("react-stack-top-frame") : P,
292
+ J ? A(r(D)) : U
313
293
  );
314
294
  }, xn.jsxs = function(D, k, ne) {
315
- var X = 1e4 > E.recentlyCreatedOwnerStacks++;
295
+ var J = 1e4 > E.recentlyCreatedOwnerStacks++;
316
296
  return c(
317
297
  D,
318
298
  k,
319
299
  ne,
320
300
  !0,
321
- X ? Error("react-stack-top-frame") : P,
322
- X ? A(r(D)) : U
301
+ J ? Error("react-stack-top-frame") : P,
302
+ J ? A(r(D)) : U
323
303
  );
324
304
  };
325
305
  })()), xn;
@@ -400,11 +380,11 @@ const Ts = me(void 0), ks = ({
400
380
  title: t,
401
381
  titleId: n,
402
382
  ...e
403
- }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" })), Js = K(qs), Xs = ({
383
+ }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" })), Xs = K(qs), Js = ({
404
384
  title: t,
405
385
  titleId: n,
406
386
  ...e
407
- }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), ec = K(Xs), tc = ({
387
+ }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), ec = K(Js), tc = ({
408
388
  title: t,
409
389
  titleId: n,
410
390
  ...e
@@ -512,11 +492,11 @@ const Ts = me(void 0), ks = ({
512
492
  title: t,
513
493
  titleId: n,
514
494
  ...e
515
- }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })), Jc = K(qc), Xc = ({
495
+ }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })), Xc = K(qc), Jc = ({
516
496
  title: t,
517
497
  titleId: n,
518
498
  ...e
519
- }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })), eu = K(Xc), tu = ({
499
+ }, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })), eu = K(Jc), tu = ({
520
500
  title: t,
521
501
  titleId: n,
522
502
  ...e
@@ -741,7 +721,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
741
721
  );
742
722
  case "chevronRight":
743
723
  return /* @__PURE__ */ H.jsx(
744
- Js,
724
+ Xs,
745
725
  {
746
726
  width: e,
747
727
  height: e,
@@ -1209,7 +1189,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
1209
1189
  );
1210
1190
  case "success":
1211
1191
  return /* @__PURE__ */ H.jsx(
1212
- Jc,
1192
+ Xc,
1213
1193
  {
1214
1194
  width: e,
1215
1195
  height: e,
@@ -1633,9 +1613,9 @@ const qu = `
1633
1613
  jn:duration-100
1634
1614
  jn:ease-in-out
1635
1615
  jn:z-10
1636
- `, Ju = `
1637
- jn:absolute
1638
1616
  `, Xu = `
1617
+ jn:absolute
1618
+ `, Ju = `
1639
1619
  jn:scale-75
1640
1620
  jn:-translate-y-[0.4375rem]
1641
1621
  `, ed = `
@@ -1666,8 +1646,8 @@ const qu = `
1666
1646
  className: `
1667
1647
  juno-label
1668
1648
  ${qu}
1669
- ${i ? "juno-label-floating " + Ju : ""}
1670
- ${a ? "juno-label-minimized " + Xu : ""}
1649
+ ${i ? "juno-label-floating " + Xu : ""}
1650
+ ${a ? "juno-label-minimized " + Ju : ""}
1671
1651
  ${o ? "juno-label-disabled " + td : ""}
1672
1652
  ${r}
1673
1653
  `,
@@ -1918,7 +1898,7 @@ function xa(t) {
1918
1898
  e
1919
1899
  ]);
1920
1900
  }
1921
- let hd = !1, un = null, $r = /* @__PURE__ */ new Set(), Jt = /* @__PURE__ */ new Map(), Dt = !1, Wr = !1;
1901
+ let hd = !1, un = null, $r = /* @__PURE__ */ new Set(), Xt = /* @__PURE__ */ new Map(), Dt = !1, Wr = !1;
1922
1902
  const gd = {
1923
1903
  Tab: !0,
1924
1904
  Escape: !0
@@ -1945,7 +1925,7 @@ function Ca() {
1945
1925
  Dt = !1, Wr = !0;
1946
1926
  }
1947
1927
  function Ur(t) {
1948
- if (typeof window > "u" || Jt.get(Ct(t))) return;
1928
+ if (typeof window > "u" || Xt.get(Ct(t))) return;
1949
1929
  const n = Ct(t), e = vt(t);
1950
1930
  let r = n.HTMLElement.prototype.focus;
1951
1931
  n.HTMLElement.prototype.focus = function() {
@@ -1954,13 +1934,13 @@ function Ur(t) {
1954
1934
  Oa(t);
1955
1935
  }, {
1956
1936
  once: !0
1957
- }), Jt.set(n, {
1937
+ }), Xt.set(n, {
1958
1938
  focus: r
1959
1939
  });
1960
1940
  }
1961
1941
  const Oa = (t, n) => {
1962
1942
  const e = Ct(t), r = vt(t);
1963
- n && r.removeEventListener("DOMContentLoaded", n), Jt.has(e) && (e.HTMLElement.prototype.focus = Jt.get(e).focus, r.removeEventListener("keydown", Nn, !0), r.removeEventListener("keyup", Nn, !0), r.removeEventListener("click", Ea, !0), e.removeEventListener("focus", Sa, !0), e.removeEventListener("blur", Ca, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Qe, !0), r.removeEventListener("pointermove", Qe, !0), r.removeEventListener("pointerup", Qe, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Qe, !0), r.removeEventListener("mousemove", Qe, !0), r.removeEventListener("mouseup", Qe, !0)), Jt.delete(e));
1943
+ n && r.removeEventListener("DOMContentLoaded", n), Xt.has(e) && (e.HTMLElement.prototype.focus = Xt.get(e).focus, r.removeEventListener("keydown", Nn, !0), r.removeEventListener("keyup", Nn, !0), r.removeEventListener("click", Ea, !0), e.removeEventListener("focus", Sa, !0), e.removeEventListener("blur", Ca, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Qe, !0), r.removeEventListener("pointermove", Qe, !0), r.removeEventListener("pointerup", Qe, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Qe, !0), r.removeEventListener("mousemove", Qe, !0), r.removeEventListener("mouseup", Qe, !0)), Xt.delete(e));
1964
1944
  };
1965
1945
  function bd(t) {
1966
1946
  const n = vt(t);
@@ -2150,7 +2130,7 @@ function qn(t) {
2150
2130
  isHovered: i
2151
2131
  };
2152
2132
  }
2153
- function Jn(t = {}) {
2133
+ function Xn(t = {}) {
2154
2134
  let { autoFocus: n = !1, isTextInput: e, within: r } = t, o = ae({
2155
2135
  isFocused: !1,
2156
2136
  isFocusVisible: n || Ma()
@@ -2219,7 +2199,7 @@ function co(t) {
2219
2199
  var n, e;
2220
2200
  return (e = (n = _n(t)) == null ? void 0 : n.activeElement) != null ? e : null;
2221
2201
  }
2222
- function Xn(t) {
2202
+ function Jn(t) {
2223
2203
  return co(t) === t;
2224
2204
  }
2225
2205
  function Da(t) {
@@ -2594,14 +2574,14 @@ function qd() {
2594
2574
  return V.createElement(nr.Provider, { value: o }, e.children);
2595
2575
  }, [n])];
2596
2576
  }
2597
- let Jd = "p";
2598
- function Xd(t, n) {
2577
+ let Xd = "p";
2578
+ function Jd(t, n) {
2599
2579
  let e = Ae(), r = er(), { id: o = `headlessui-description-${e}`, ...i } = t, a = Ha(), l = ke(n);
2600
2580
  ve(() => a.register(o), [o, a.register]);
2601
2581
  let s = Ie({ ...a.slot, disabled: r || !1 }), u = { ref: l, ...a.props, id: o };
2602
- return Ee()({ ourProps: u, theirProps: i, slot: s, defaultTag: Jd, name: a.name || "Description" });
2582
+ return Ee()({ ourProps: u, theirProps: i, slot: s, defaultTag: Xd, name: a.name || "Description" });
2603
2583
  }
2604
- let ef = Se(Xd);
2584
+ let ef = Se(Jd);
2605
2585
  Object.assign(ef, {});
2606
2586
  var te = ((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))(te || {});
2607
2587
  let rr = me(null);
@@ -3309,7 +3289,7 @@ function xi(t) {
3309
3289
  let n = Object.getPrototypeOf(t);
3310
3290
  return n === null || Object.getPrototypeOf(n) === null;
3311
3291
  }
3312
- function Xt(t) {
3292
+ function Jt(t) {
3313
3293
  let [n, e] = t(), r = Re();
3314
3294
  return (...o) => {
3315
3295
  n(...o), r.dispose(), r.microTask(e);
@@ -3340,17 +3320,7 @@ let Sf = { 0(t, n) {
3340
3320
  }
3341
3321
  };
3342
3322
  const Nt = new Wa(() => Cf.new());
3343
- var kr = { exports: {} }, Ir = {};
3344
- /**
3345
- * @license React
3346
- * use-sync-external-store-with-selector.production.js
3347
- *
3348
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3349
- *
3350
- * This source code is licensed under the MIT license found in the
3351
- * LICENSE file in the root directory of this source tree.
3352
- */
3353
- var Si;
3323
+ var kr = { exports: {} }, Ir = {}, Si;
3354
3324
  function Of() {
3355
3325
  if (Si) return Ir;
3356
3326
  Si = 1;
@@ -3401,17 +3371,7 @@ function Of() {
3401
3371
  ), l(b), b;
3402
3372
  }, Ir;
3403
3373
  }
3404
- var Ci = {};
3405
- /**
3406
- * @license React
3407
- * use-sync-external-store-with-selector.development.js
3408
- *
3409
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3410
- *
3411
- * This source code is licensed under the MIT license found in the
3412
- * LICENSE file in the root directory of this source tree.
3413
- */
3414
- var Oi;
3374
+ var Ci = {}, Oi;
3415
3375
  function Mf() {
3416
3376
  return Oi || (Oi = 1, process.env.NODE_ENV !== "production" && (function() {
3417
3377
  function t(s, u) {
@@ -3614,14 +3574,14 @@ function Ff(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: o = [] }
3614
3574
  } while (m !== co(m));
3615
3575
  return n & 6 && Rf(m) && m.select(), 2;
3616
3576
  }
3617
- function Ja() {
3577
+ function Xa() {
3618
3578
  return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
3619
3579
  }
3620
3580
  function Hf() {
3621
3581
  return /Android/gi.test(window.navigator.userAgent);
3622
3582
  }
3623
3583
  function Kr() {
3624
- return Ja() || Hf();
3584
+ return Xa() || Hf();
3625
3585
  }
3626
3586
  function Rt(t, n, e, r) {
3627
3587
  let o = yt(e);
@@ -3675,7 +3635,7 @@ function kt(...t) {
3675
3635
  return Ce(() => dn(...t), [...t]);
3676
3636
  }
3677
3637
  var Bf = ((t) => (t[t.Ignore = 0] = "Ignore", t[t.Select = 1] = "Select", t[t.Close = 2] = "Close", t))(Bf || {});
3678
- const Je = { Ignore: { kind: 0 }, Select: (t) => ({ kind: 1, target: t }), Close: { kind: 2 } }, Vf = 200, Ii = 5;
3638
+ const Xe = { Ignore: { kind: 0 }, Select: (t) => ({ kind: 1, target: t }), Close: { kind: 2 } }, Vf = 200, Ii = 5;
3679
3639
  function wo(t, { trigger: n, action: e, close: r, select: o }) {
3680
3640
  let i = ae(null), a = ae(null), l = ae(null);
3681
3641
  Rt(t && n !== null, "pointerdown", (s) => {
@@ -3709,13 +3669,13 @@ function $f(t, n, e, r) {
3709
3669
  return t.addEventListener(n, i, r), () => t.removeEventListener(n, i, r);
3710
3670
  }, [t, n, r]);
3711
3671
  }
3712
- function Xa(t) {
3672
+ function Ja(t) {
3713
3673
  let n = ae({ value: "", selectionStart: null, selectionEnd: null });
3714
3674
  return $f(t, "blur", (e) => {
3715
3675
  let r = e.target;
3716
3676
  Rn(r) && (n.current = { value: r.value, selectionStart: r.selectionStart, selectionEnd: r.selectionEnd });
3717
3677
  }), q(() => {
3718
- if (!Xn(t) && Rn(t) && t.isConnected) {
3678
+ if (!Jn(t) && Rn(t) && t.isConnected) {
3719
3679
  if (t.focus({ preventScroll: !0 }), t.value !== n.current.value) t.setSelectionRange(t.value.length, t.value.length);
3720
3680
  else {
3721
3681
  let { selectionStart: e, selectionEnd: r } = n.current;
@@ -3759,7 +3719,7 @@ function Yf() {
3759
3719
  } };
3760
3720
  }
3761
3721
  function Gf() {
3762
- return Ja() ? { before({ doc: t, d: n, meta: e }) {
3722
+ return Xa() ? { before({ doc: t, d: n, meta: e }) {
3763
3723
  function r(o) {
3764
3724
  for (let i of e().containers) for (let a of i()) if (a.contains(o)) return !0;
3765
3725
  return !1;
@@ -3888,7 +3848,7 @@ function Oo(t, n, e, r) {
3888
3848
  e && l(3);
3889
3849
  return;
3890
3850
  }
3891
- return (m = void 0) == null || m.call(r, e), Jf(n, { inFlight: u, prepare() {
3851
+ return (m = void 0) == null || m.call(r, e), Xf(n, { inFlight: u, prepare() {
3892
3852
  c.current ? c.current = !1 : c.current = u.current, u.current = !0, !c.current && (e ? (l(3), s(4)) : (l(4), s(2)));
3893
3853
  }, run() {
3894
3854
  c.current ? e ? (s(3), l(4)) : (s(4), l(3)) : e ? s(1) : l(1);
@@ -3899,15 +3859,15 @@ function Oo(t, n, e, r) {
3899
3859
  }
3900
3860
  }, [t, e, n, v]), t ? [o, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [e, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
3901
3861
  }
3902
- function Jf(t, { prepare: n, run: e, done: r, inFlight: o }) {
3862
+ function Xf(t, { prepare: n, run: e, done: r, inFlight: o }) {
3903
3863
  let i = Re();
3904
3864
  return ep(t, { prepare: n, inFlight: o }), i.nextFrame(() => {
3905
3865
  e(), i.requestAnimationFrame(() => {
3906
- i.add(Xf(t, r));
3866
+ i.add(Jf(t, r));
3907
3867
  });
3908
3868
  }), i.dispose;
3909
3869
  }
3910
- function Xf(t, n) {
3870
+ function Jf(t, n) {
3911
3871
  var e, r;
3912
3872
  let o = Re();
3913
3873
  if (!t) return o.dispose;
@@ -3987,7 +3947,7 @@ function pn(t) {
3987
3947
  overflowX: e,
3988
3948
  overflowY: r,
3989
3949
  display: o
3990
- } = Xe(t);
3950
+ } = Je(t);
3991
3951
  return /auto|scroll|overlay|hidden|clip/.test(n + r + e) && !np.has(o);
3992
3952
  }
3993
3953
  const rp = /* @__PURE__ */ new Set(["table", "td", "th"]);
@@ -4006,7 +3966,7 @@ function dr(t) {
4006
3966
  }
4007
3967
  const ap = ["transform", "translate", "scale", "rotate", "perspective"], lp = ["transform", "translate", "scale", "rotate", "perspective", "filter"], sp = ["paint", "layout", "strict", "content"];
4008
3968
  function Mo(t) {
4009
- const n = Do(), e = _e(t) ? Xe(t) : t;
3969
+ const n = Do(), e = _e(t) ? Je(t) : t;
4010
3970
  return ap.some((r) => e[r] ? e[r] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !n && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !n && (e.filter ? e.filter !== "none" : !1) || lp.some((r) => (e.willChange || "").includes(r)) || sp.some((r) => (e.contain || "").includes(r));
4011
3971
  }
4012
3972
  function cp(t) {
@@ -4027,7 +3987,7 @@ const up = /* @__PURE__ */ new Set(["html", "body", "#document"]);
4027
3987
  function Bt(t) {
4028
3988
  return up.has(Vt(t));
4029
3989
  }
4030
- function Xe(t) {
3990
+ function Je(t) {
4031
3991
  return Ye(t).getComputedStyle(t);
4032
3992
  }
4033
3993
  function fr(t) {
@@ -4184,10 +4144,6 @@ function Bn(t) {
4184
4144
  y: e
4185
4145
  };
4186
4146
  }
4187
- /*!
4188
- * tabbable 6.2.0
4189
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4190
- */
4191
4147
  var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], Vn = /* @__PURE__ */ al.join(","), ll = typeof Element > "u", At = ll ? function() {
4192
4148
  } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, $n = !ll && Element.prototype.getRootNode ? function(t) {
4193
4149
  var n;
@@ -4770,7 +4726,7 @@ const $p = function(t) {
4770
4726
  };
4771
4727
  };
4772
4728
  function ml(t) {
4773
- const n = Xe(t);
4729
+ const n = Je(t);
4774
4730
  let e = parseFloat(n.width) || 0, r = parseFloat(n.height) || 0;
4775
4731
  const o = at(t), i = o ? t.offsetWidth : e, a = o ? t.offsetHeight : r, l = an(e) !== i || an(r) !== a;
4776
4732
  return l && (e = i, r = a), {
@@ -4819,7 +4775,7 @@ function Pt(t, n, e, r) {
4819
4775
  const m = Ye(i), p = r && _e(r) ? Ye(r) : r;
4820
4776
  let g = m, b = Zr(g);
4821
4777
  for (; b && r && p !== g; ) {
4822
- const x = Ft(b), C = b.getBoundingClientRect(), O = Xe(b), I = C.left + (b.clientLeft + parseFloat(O.paddingLeft)) * x.x, F = C.top + (b.clientTop + parseFloat(O.paddingTop)) * x.y;
4778
+ const x = Ft(b), C = b.getBoundingClientRect(), O = Je(b), I = C.left + (b.clientLeft + parseFloat(O.paddingLeft)) * x.x, F = C.top + (b.clientTop + parseFloat(O.paddingTop)) * x.y;
4823
4779
  s *= x.x, u *= x.y, c *= x.x, v *= x.y, s += I, u += F, g = Ye(b), b = Zr(g);
4824
4780
  }
4825
4781
  }
@@ -4879,7 +4835,7 @@ function Qp(t) {
4879
4835
  const n = lt(t), e = fr(t), r = t.ownerDocument.body, o = Ne(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), i = Ne(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
4880
4836
  let a = -e.scrollLeft + ko(t);
4881
4837
  const l = -e.scrollTop;
4882
- return Xe(r).direction === "rtl" && (a += Ne(n.clientWidth, r.clientWidth) - o), {
4838
+ return Je(r).direction === "rtl" && (a += Ne(n.clientWidth, r.clientWidth) - o), {
4883
4839
  width: o,
4884
4840
  height: i,
4885
4841
  x: a,
@@ -4901,8 +4857,8 @@ function qp(t, n) {
4901
4857
  y: s
4902
4858
  };
4903
4859
  }
4904
- const Jp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
4905
- function Xp(t, n) {
4860
+ const Xp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
4861
+ function Jp(t, n) {
4906
4862
  const e = Pt(t, !0, n === "fixed"), r = e.top + t.clientTop, o = e.left + t.clientLeft, i = at(t) ? Ft(t) : ot(1), a = t.clientWidth * i.x, l = t.clientHeight * i.y, s = o * i.x, u = r * i.y;
4907
4863
  return {
4908
4864
  width: a,
@@ -4918,7 +4874,7 @@ function Vi(t, n, e) {
4918
4874
  else if (n === "document")
4919
4875
  r = Qp(lt(t));
4920
4876
  else if (_e(n))
4921
- r = Xp(n, e);
4877
+ r = Jp(n, e);
4922
4878
  else {
4923
4879
  const o = hl(t);
4924
4880
  r = {
@@ -4932,18 +4888,18 @@ function Vi(t, n, e) {
4932
4888
  }
4933
4889
  function vl(t, n) {
4934
4890
  const e = ht(t);
4935
- return e === n || !_e(e) || Bt(e) ? !1 : Xe(e).position === "fixed" || vl(e, n);
4891
+ return e === n || !_e(e) || Bt(e) ? !1 : Je(e).position === "fixed" || vl(e, n);
4936
4892
  }
4937
4893
  function em(t, n) {
4938
4894
  const e = n.get(t);
4939
4895
  if (e)
4940
4896
  return e;
4941
4897
  let r = on(t, [], !1).filter((l) => _e(l) && Vt(l) !== "body"), o = null;
4942
- const i = Xe(t).position === "fixed";
4898
+ const i = Je(t).position === "fixed";
4943
4899
  let a = i ? ht(t) : t;
4944
4900
  for (; _e(a) && !Bt(a); ) {
4945
- const l = Xe(a), s = Mo(a);
4946
- !s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o && Jp.has(o.position) || pn(a) && !s && vl(t, a)) ? r = r.filter((u) => u !== a) : o = l, a = ht(a);
4901
+ const l = Je(a), s = Mo(a);
4902
+ !s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o && Xp.has(o.position) || pn(a) && !s && vl(t, a)) ? r = r.filter((u) => u !== a) : o = l, a = ht(a);
4947
4903
  }
4948
4904
  return n.set(t, r), r;
4949
4905
  }
@@ -5000,10 +4956,10 @@ function rm(t, n, e) {
5000
4956
  };
5001
4957
  }
5002
4958
  function Ar(t) {
5003
- return Xe(t).position === "static";
4959
+ return Je(t).position === "static";
5004
4960
  }
5005
4961
  function $i(t, n) {
5006
- if (!at(t) || Xe(t).position === "fixed")
4962
+ if (!at(t) || Je(t).position === "fixed")
5007
4963
  return null;
5008
4964
  if (n)
5009
4965
  return n(t);
@@ -5041,7 +4997,7 @@ const om = async function(t) {
5041
4997
  };
5042
4998
  };
5043
4999
  function im(t) {
5044
- return Xe(t).direction === "rtl";
5000
+ return Je(t).direction === "rtl";
5045
5001
  }
5046
5002
  const am = {
5047
5003
  convertOffsetParentRelativeRectToViewportRelativeRect: Kp,
@@ -5328,7 +5284,7 @@ function Sl(t) {
5328
5284
  return n.current == null ? void 0 : n.current(...r);
5329
5285
  }, []);
5330
5286
  }
5331
- var Jr = typeof document < "u" ? ro : we;
5287
+ var Xr = typeof document < "u" ? ro : we;
5332
5288
  let Ui = !1, Em = 0;
5333
5289
  const Yi = () => (
5334
5290
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -5337,7 +5293,7 @@ const Yi = () => (
5337
5293
  );
5338
5294
  function Sm() {
5339
5295
  const [t, n] = d.useState(() => Ui ? Yi() : void 0);
5340
- return Jr(() => {
5296
+ return Xr(() => {
5341
5297
  t == null && n(Yi());
5342
5298
  }, []), d.useEffect(() => {
5343
5299
  Ui = !0;
@@ -5430,7 +5386,7 @@ function Lm(t) {
5430
5386
  ...t.elements
5431
5387
  }
5432
5388
  }), r = t.rootContext || e, o = r.elements, [i, a] = d.useState(null), [l, s] = d.useState(null), u = o?.domReference || i, c = d.useRef(null), v = Pm();
5433
- Jr(() => {
5389
+ Xr(() => {
5434
5390
  u && (c.current = u);
5435
5391
  }, [u]);
5436
5392
  const m = gm({
@@ -5467,7 +5423,7 @@ function Lm(t) {
5467
5423
  elements: x,
5468
5424
  nodeId: n
5469
5425
  }), [m, b, x, n, r]);
5470
- return Jr(() => {
5426
+ return Xr(() => {
5471
5427
  r.dataRef.current.floatingContext = C;
5472
5428
  const O = v?.nodesRef.current.find((I) => I.id === n);
5473
5429
  O && (O.context = C);
@@ -5820,7 +5776,7 @@ $m(() => {
5820
5776
  function Wm(t) {
5821
5777
  throw new Error("Unexpected object: " + t);
5822
5778
  }
5823
- var J = ((t) => (t[t.First = 0] = "First", t[t.Previous = 1] = "Previous", t[t.Next = 2] = "Next", t[t.Last = 3] = "Last", t[t.Specific = 4] = "Specific", t[t.Nothing = 5] = "Nothing", t))(J || {});
5779
+ var X = ((t) => (t[t.First = 0] = "First", t[t.Previous = 1] = "Previous", t[t.Next = 2] = "Next", t[t.Last = 3] = "Last", t[t.Specific = 4] = "Specific", t[t.Nothing = 5] = "Nothing", t))(X || {});
5824
5780
  function rt(t, n) {
5825
5781
  let e = n.resolveItems();
5826
5782
  if (e.length <= 0) return null;
@@ -5885,7 +5841,7 @@ function Gm(t) {
5885
5841
  let Ml = ut, Km = Se(function(t, n) {
5886
5842
  let { ownerDocument: e = null, ...r } = t, o = ae(null), i = ke(Qd((m) => {
5887
5843
  o.current = m;
5888
- }), n), a = kt(o.current), l = e ?? a, s = Gm(l), u = ye(Jm), c = bt(), v = Ee();
5844
+ }), n), a = kt(o.current), l = e ?? a, s = Gm(l), u = ye(Xm), c = bt(), v = Ee();
5889
5845
  return mr(() => {
5890
5846
  var m;
5891
5847
  s && s.childNodes.length <= 0 && ((m = s.parentElement) == null || m.removeChild(s));
@@ -5902,7 +5858,7 @@ function qm(t, n) {
5902
5858
  let { target: e, ...r } = t, o = { ref: ke(n) }, i = Ee();
5903
5859
  return V.createElement(Dl.Provider, { value: e }, i({ ourProps: o, theirProps: r, defaultTag: Qm, name: "Popover.Group" }));
5904
5860
  }
5905
- let Jm = me(null), Xm = Se(Zm), eh = Se(qm), Ho = Object.assign(Xm, { Group: eh });
5861
+ let Xm = me(null), Jm = Se(Zm), eh = Se(qm), Ho = Object.assign(Jm, { Group: eh });
5906
5862
  const Ue = { Idle: { kind: "Idle" }, Tracked: (t) => ({ kind: "Tracked", position: t }), Moved: { kind: "Moved" } };
5907
5863
  function hr(t) {
5908
5864
  let n = t.getBoundingClientRect();
@@ -5918,7 +5874,7 @@ function zo(t, n, e) {
5918
5874
  }
5919
5875
  return () => r.dispose();
5920
5876
  }
5921
- var th = Object.defineProperty, nh = (t, n, e) => n in t ? th(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Ji = (t, n, e) => (nh(t, typeof n != "symbol" ? n + "" : n, e), e), de = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(de || {}), We = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(We || {}), it = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(it || {}), Tl = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.DefaultToFirstOption = 6] = "DefaultToFirstOption", t[t.SetActivationTrigger = 7] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 8] = "UpdateVirtualConfiguration", t[t.SetInputElement = 9] = "SetInputElement", t[t.SetButtonElement = 10] = "SetButtonElement", t[t.SetOptionsElement = 11] = "SetOptionsElement", t[t.MarkInputAsMoved = 12] = "MarkInputAsMoved", t))(Tl || {});
5877
+ var th = Object.defineProperty, nh = (t, n, e) => n in t ? th(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Xi = (t, n, e) => (nh(t, typeof n != "symbol" ? n + "" : n, e), e), de = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(de || {}), We = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(We || {}), it = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(it || {}), Tl = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.DefaultToFirstOption = 6] = "DefaultToFirstOption", t[t.SetActivationTrigger = 7] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 8] = "UpdateVirtualConfiguration", t[t.SetInputElement = 9] = "SetInputElement", t[t.SetButtonElement = 10] = "SetButtonElement", t[t.SetOptionsElement = 11] = "SetOptionsElement", t[t.MarkInputAsMoved = 12] = "MarkInputAsMoved", t))(Tl || {});
5922
5878
  function _r(t, n = (e) => e) {
5923
5879
  let e = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = n(t.options.slice()), o = r.length > 0 && r[0].dataRef.current.order !== null ? r.sort((a, l) => a.dataRef.current.order - l.dataRef.current.order) : cr(r, (a) => a.dataRef.current.domRef.current), i = e ? o.indexOf(e) : null;
5924
5880
  return i === -1 && (i = null), { options: o, activeOptionIndex: i };
@@ -5942,7 +5898,7 @@ let rh = { 1(t) {
5942
5898
  var e, r, o, i;
5943
5899
  if ((e = t.dataRef.current) != null && e.disabled || t.optionsElement && !((r = t.dataRef.current) != null && r.optionsPropsRef.current.static) && t.comboboxState === 1) return t;
5944
5900
  if (t.virtual) {
5945
- let { options: u, disabled: c } = t.virtual, v = n.focus === J.Specific ? n.idx : rt(n, { resolveItems: () => u, resolveActiveIndex: () => {
5901
+ let { options: u, disabled: c } = t.virtual, v = n.focus === X.Specific ? n.idx : rt(n, { resolveItems: () => u, resolveActiveIndex: () => {
5946
5902
  var p, g;
5947
5903
  return (g = (p = t.activeOptionIndex) != null ? p : u.findIndex((b) => !c(b))) != null ? g : null;
5948
5904
  }, resolveDisabled: c, resolveId() {
@@ -5955,7 +5911,7 @@ let rh = { 1(t) {
5955
5911
  let u = a.options.findIndex((c) => !c.dataRef.current.disabled);
5956
5912
  u !== -1 && (a.activeOptionIndex = u);
5957
5913
  }
5958
- let l = n.focus === J.Specific ? n.idx : rt(n, { resolveItems: () => a.options, resolveActiveIndex: () => a.activeOptionIndex, resolveId: (u) => u.id, resolveDisabled: (u) => u.dataRef.current.disabled }), s = (i = n.trigger) != null ? i : 2;
5914
+ let l = n.focus === X.Specific ? n.idx : rt(n, { resolveItems: () => a.options, resolveActiveIndex: () => a.activeOptionIndex, resolveId: (u) => u.id, resolveDisabled: (u) => u.dataRef.current.disabled }), s = (i = n.trigger) != null ? i : 2;
5959
5915
  return t.activeOptionIndex === l && t.activationTrigger === s ? t : { ...t, ...a, isTyping: !1, activeOptionIndex: l, activationTrigger: s, __demoMode: !1 };
5960
5916
  }, 4: (t, n) => {
5961
5917
  var e, r, o, i;
@@ -5986,7 +5942,7 @@ let rh = { 1(t) {
5986
5942
  return t.inputPositionState.kind !== "Tracked" ? t : { ...t, inputPositionState: Ue.Moved };
5987
5943
  } }, oh = class kl extends ir {
5988
5944
  constructor(n) {
5989
- super(n), Ji(this, "actions", { onChange: (e) => {
5945
+ super(n), Xi(this, "actions", { onChange: (e) => {
5990
5946
  let { onChange: r, compare: o, mode: i, value: a } = this.state.dataRef.current;
5991
5947
  return Te(i, { 0: () => r?.(e), 1: () => {
5992
5948
  let l = a.slice(), s = l.findIndex((u) => o(u, e));
@@ -6011,7 +5967,7 @@ let rh = { 1(t) {
6011
5967
  let { dataRef: r } = this.state.options[e];
6012
5968
  this.actions.onChange(r.current.value);
6013
5969
  }
6014
- this.actions.goToOption({ focus: J.Specific, idx: e });
5970
+ this.actions.goToOption({ focus: X.Specific, idx: e });
6015
5971
  }
6016
5972
  }, setInputElement: (e) => {
6017
5973
  this.send({ type: 9, element: e });
@@ -6019,7 +5975,7 @@ let rh = { 1(t) {
6019
5975
  this.send({ type: 10, element: e });
6020
5976
  }, setOptionsElement: (e) => {
6021
5977
  this.send({ type: 11, element: e });
6022
- } }), Ji(this, "selectors", { activeDescendantId: (e) => {
5978
+ } }), Xi(this, "selectors", { activeDescendantId: (e) => {
6023
5979
  var r, o;
6024
5980
  let i = this.selectors.activeOptionIndex(e);
6025
5981
  if (i !== null) return e.virtual ? (o = e.options.find((a) => !a.dataRef.current.disabled && e.dataRef.current.compare(a.dataRef.current.value, e.virtual.options[i]))) == null ? void 0 : o.id : (r = e.options[i]) == null ? void 0 : r.id;
@@ -6126,35 +6082,35 @@ function lh(t, n) {
6126
6082
  }, [L]);
6127
6083
  let [B, A, W, G] = se(_, (ie) => [ie.comboboxState, ie.buttonElement, ie.inputElement, ie.optionsElement]), P = Nt.get(null), U = se(P, ce((ie) => P.selectors.isTop(ie, e), [P, e]));
6128
6084
  yo(U, [A, W, G], () => _.actions.closeCombobox());
6129
- let oe = se(_, _.selectors.activeOptionIndex), D = se(_, _.selectors.activeOption), k = Ie({ open: B === de.Open, disabled: v, invalid: c, activeIndex: oe, activeOption: D, value: F }), [ne, X] = or(), fe = n === null ? {} : { ref: n }, $ = ce(() => {
6085
+ let oe = se(_, _.selectors.activeOptionIndex), D = se(_, _.selectors.activeOption), k = Ie({ open: B === de.Open, disabled: v, invalid: c, activeIndex: oe, activeOption: D, value: F }), [ne, J] = or(), fe = n === null ? {} : { ref: n }, $ = ce(() => {
6130
6086
  if (I !== void 0) return R?.(I);
6131
6087
  }, [R, I]), ee = Ee();
6132
- return V.createElement(X, { value: ne, props: { htmlFor: W?.id }, slot: { open: B === de.Open, disabled: v } }, V.createElement(Lo, null, V.createElement(sn.Provider, { value: L }, V.createElement(Il.Provider, { value: _ }, V.createElement(Fo, { value: Te(B, { [de.Open]: Ge.Open, [de.Closed]: Ge.Closed }) }, s != null && V.createElement(La, { disabled: v, data: F != null ? { [s]: F } : {}, form: l, onReset: $ }), ee({ ourProps: fe, theirProps: O, slot: k, defaultTag: ah, name: "Combobox" }))))));
6088
+ return V.createElement(J, { value: ne, props: { htmlFor: W?.id }, slot: { open: B === de.Open, disabled: v } }, V.createElement(Lo, null, V.createElement(sn.Provider, { value: L }, V.createElement(Il.Provider, { value: _ }, V.createElement(Fo, { value: Te(B, { [de.Open]: Ge.Open, [de.Closed]: Ge.Closed }) }, s != null && V.createElement(La, { disabled: v, data: F != null ? { [s]: F } : {}, form: l, onReset: $ }), ee({ ourProps: fe, theirProps: O, slot: k, defaultTag: ah, name: "Combobox" }))))));
6133
6089
  }
6134
6090
  let sh = "input";
6135
6091
  function ch(t, n) {
6136
6092
  var e, r;
6137
6093
  let o = hn("Combobox.Input"), i = Ut("Combobox.Input"), a = Ae(), l = po(), { id: s = l || `headlessui-combobox-input-${a}`, onChange: u, displayValue: c, disabled: v = i.disabled || !1, autoFocus: m = !1, type: p = "text", ...g } = t, b = ae(null), x = ke(b, n, Po(), o.actions.setInputElement), [C, O] = se(o, (k) => [k.comboboxState, k.isTyping]), I = bt(), F = q(() => {
6138
- o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus: J.Nothing });
6094
+ o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus: X.Nothing });
6139
6095
  }), R = Ce(() => {
6140
6096
  var k;
6141
6097
  return typeof c == "function" && i.value !== void 0 ? (k = c(i.value)) != null ? k : "" : typeof i.value == "string" ? i.value : "";
6142
6098
  }, [i.value, c]);
6143
- Li(([k, ne], [X, fe]) => {
6099
+ Li(([k, ne], [J, fe]) => {
6144
6100
  if (o.state.isTyping) return;
6145
6101
  let $ = b.current;
6146
- $ && ((fe === de.Open && ne === de.Closed || k !== X) && ($.value = k), requestAnimationFrame(() => {
6147
- if (o.state.isTyping || !$ || Xn($)) return;
6102
+ $ && ((fe === de.Open && ne === de.Closed || k !== J) && ($.value = k), requestAnimationFrame(() => {
6103
+ if (o.state.isTyping || !$ || Jn($)) return;
6148
6104
  let { selectionStart: ee, selectionEnd: ie } = $;
6149
6105
  Math.abs((ie ?? 0) - (ee ?? 0)) === 0 && ee === 0 && $.setSelectionRange($.value.length, $.value.length);
6150
6106
  }));
6151
6107
  }, [R, C, O]), Li(([k], [ne]) => {
6152
6108
  if (k === de.Open && ne === de.Closed) {
6153
6109
  if (o.state.isTyping) return;
6154
- let X = b.current;
6155
- if (!X) return;
6156
- let fe = X.value, { selectionStart: $, selectionEnd: ee, selectionDirection: ie } = X;
6157
- X.value = "", X.value = fe, ie !== null ? X.setSelectionRange($, ee, ie) : X.setSelectionRange($, ee);
6110
+ let J = b.current;
6111
+ if (!J) return;
6112
+ let fe = J.value, { selectionStart: $, selectionEnd: ee, selectionDirection: ie } = J;
6113
+ J.value = "", J.value = fe, ie !== null ? J.setSelectionRange($, ee, ie) : J.setSelectionRange($, ee);
6158
6114
  }
6159
6115
  }, [C]);
6160
6116
  let _ = ae(!1), j = q(() => {
@@ -6174,21 +6130,21 @@ function ch(t, n) {
6174
6130
  o.actions.selectActiveOption(), i.mode === We.Single && o.actions.closeCombobox();
6175
6131
  break;
6176
6132
  case te.ArrowDown:
6177
- return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus: J.Next }), [de.Closed]: () => o.actions.openCombobox() });
6133
+ return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus: X.Next }), [de.Closed]: () => o.actions.openCombobox() });
6178
6134
  case te.ArrowUp:
6179
- return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus: J.Previous }), [de.Closed]: () => {
6180
- ze(() => o.actions.openCombobox()), i.value || o.actions.goToOption({ focus: J.Last });
6135
+ return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus: X.Previous }), [de.Closed]: () => {
6136
+ ze(() => o.actions.openCombobox()), i.value || o.actions.goToOption({ focus: X.Last });
6181
6137
  } });
6182
6138
  case te.Home:
6183
6139
  if (o.state.comboboxState === de.Closed || k.shiftKey) break;
6184
- return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: J.First });
6140
+ return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.First });
6185
6141
  case te.PageUp:
6186
- return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: J.First });
6142
+ return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.First });
6187
6143
  case te.End:
6188
6144
  if (o.state.comboboxState === de.Closed || k.shiftKey) break;
6189
- return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: J.Last });
6145
+ return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.Last });
6190
6146
  case te.PageDown:
6191
- return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: J.Last });
6147
+ return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.Last });
6192
6148
  case te.Escape:
6193
6149
  return o.state.comboboxState !== de.Open ? void 0 : (k.preventDefault(), o.state.optionsElement && !i.optionsPropsRef.current.static && k.stopPropagation(), i.mode === We.Single && i.value === null && F(), o.actions.closeCombobox());
6194
6150
  case te.Tab:
@@ -6199,25 +6155,25 @@ function ch(t, n) {
6199
6155
  }), S = q((k) => {
6200
6156
  u?.(k), i.mode === We.Single && k.target.value === "" && F(), o.actions.openCombobox();
6201
6157
  }), y = q((k) => {
6202
- var ne, X, fe;
6158
+ var ne, J, fe;
6203
6159
  let $ = (ne = k.relatedTarget) != null ? ne : Et.find((ee) => ee !== k.currentTarget);
6204
- if (!((X = o.state.optionsElement) != null && X.contains($)) && !((fe = o.state.buttonElement) != null && fe.contains($)) && o.state.comboboxState === de.Open) return k.preventDefault(), i.mode === We.Single && i.value === null && F(), o.actions.closeCombobox();
6160
+ if (!((J = o.state.optionsElement) != null && J.contains($)) && !((fe = o.state.buttonElement) != null && fe.contains($)) && o.state.comboboxState === de.Open) return k.preventDefault(), i.mode === We.Single && i.value === null && F(), o.actions.closeCombobox();
6205
6161
  }), E = q((k) => {
6206
- var ne, X, fe;
6162
+ var ne, J, fe;
6207
6163
  let $ = (ne = k.relatedTarget) != null ? ne : Et.find((ee) => ee !== k.currentTarget);
6208
- (X = o.state.buttonElement) != null && X.contains($) || (fe = o.state.optionsElement) != null && fe.contains($) || i.disabled || i.immediate && o.state.comboboxState !== de.Open && I.microTask(() => {
6164
+ (J = o.state.buttonElement) != null && J.contains($) || (fe = o.state.optionsElement) != null && fe.contains($) || i.disabled || i.immediate && o.state.comboboxState !== de.Open && I.microTask(() => {
6209
6165
  ze(() => o.actions.openCombobox()), o.actions.setActivationTrigger(it.Focus);
6210
6166
  });
6211
- }), L = fn(), B = za(), { isFocused: A, focusProps: W } = Jn({ autoFocus: m }), { isHovered: G, hoverProps: P } = qn({ isDisabled: v }), U = se(o, (k) => k.optionsElement), oe = Ie({ open: C === de.Open, disabled: v, invalid: i.invalid, hover: G, focus: A, autofocus: m }), D = jt({ ref: x, id: s, role: "combobox", type: p, "aria-controls": U?.id, "aria-expanded": C === de.Open, "aria-activedescendant": se(o, o.selectors.activeDescendantId), "aria-labelledby": L, "aria-describedby": B, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : i.defaultValue !== void 0 ? c?.(i.defaultValue) : null) != null ? r : i.defaultValue, disabled: v || void 0, autoFocus: m, onCompositionStart: j, onCompositionEnd: T, onKeyDown: N, onChange: S, onFocus: E, onBlur: y }, W, P);
6167
+ }), L = fn(), B = za(), { isFocused: A, focusProps: W } = Xn({ autoFocus: m }), { isHovered: G, hoverProps: P } = qn({ isDisabled: v }), U = se(o, (k) => k.optionsElement), oe = Ie({ open: C === de.Open, disabled: v, invalid: i.invalid, hover: G, focus: A, autofocus: m }), D = jt({ ref: x, id: s, role: "combobox", type: p, "aria-controls": U?.id, "aria-expanded": C === de.Open, "aria-activedescendant": se(o, o.selectors.activeDescendantId), "aria-labelledby": L, "aria-describedby": B, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : i.defaultValue !== void 0 ? c?.(i.defaultValue) : null) != null ? r : i.defaultValue, disabled: v || void 0, autoFocus: m, onCompositionStart: j, onCompositionEnd: T, onKeyDown: N, onChange: S, onFocus: E, onBlur: y }, W, P);
6212
6168
  return Ee()({ ourProps: D, theirProps: g, slot: oe, defaultTag: sh, name: "Combobox.Input" });
6213
6169
  }
6214
6170
  let uh = "button";
6215
6171
  function dh(t, n) {
6216
- let e = hn("Combobox.Button"), r = Ut("Combobox.Button"), [o, i] = be(null), a = ke(n, i, e.actions.setButtonElement), l = Ae(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...v } = t, [m, p, g] = se(e, (E) => [E.comboboxState, E.inputElement, E.optionsElement]), b = Xa(p), x = m === de.Open;
6172
+ let e = hn("Combobox.Button"), r = Ut("Combobox.Button"), [o, i] = be(null), a = ke(n, i, e.actions.setButtonElement), l = Ae(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...v } = t, [m, p, g] = se(e, (E) => [E.comboboxState, E.inputElement, E.optionsElement]), b = Ja(p), x = m === de.Open;
6217
6173
  wo(x, { trigger: o, action: ce((E) => {
6218
- if (o != null && o.contains(E.target) || p != null && p.contains(E.target)) return Je.Ignore;
6174
+ if (o != null && o.contains(E.target) || p != null && p.contains(E.target)) return Xe.Ignore;
6219
6175
  let L = E.target.closest('[role="option"]:not([data-disabled])');
6220
- return et(L) ? Je.Select(L) : g != null && g.contains(E.target) ? Je.Ignore : Je.Close;
6176
+ return et(L) ? Xe.Select(L) : g != null && g.contains(E.target) ? Xe.Ignore : Xe.Close;
6221
6177
  }, [o, p, g]), close: e.actions.closeCombobox, select: e.actions.selectActiveOption });
6222
6178
  let C = q((E) => {
6223
6179
  switch (E.key) {
@@ -6226,10 +6182,10 @@ function dh(t, n) {
6226
6182
  E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && ze(() => e.actions.openCombobox()), b();
6227
6183
  return;
6228
6184
  case te.ArrowDown:
6229
- E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus: J.First })), b();
6185
+ E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus: X.First })), b();
6230
6186
  return;
6231
6187
  case te.ArrowUp:
6232
- E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus: J.Last })), b();
6188
+ E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus: X.Last })), b();
6233
6189
  return;
6234
6190
  case te.Escape:
6235
6191
  if (e.state.comboboxState !== de.Open) return;
@@ -6240,7 +6196,7 @@ function dh(t, n) {
6240
6196
  }
6241
6197
  }), O = go(() => {
6242
6198
  e.state.comboboxState === de.Open ? e.actions.closeCombobox() : e.actions.openCombobox(), b();
6243
- }), I = fn([s]), { isFocusVisible: F, focusProps: R } = Jn({ autoFocus: c }), { isHovered: _, hoverProps: j } = qn({ isDisabled: u }), { pressed: T, pressProps: N } = uo({ disabled: u }), S = Ie({ open: m === de.Open, active: T || m === de.Open, disabled: u, invalid: r.invalid, value: r.value, hover: _, focus: F }), y = jt({ ref: a, id: s, type: xo(t, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": m === de.Open, "aria-labelledby": I, disabled: u || void 0, autoFocus: c, onKeyDown: C }, O, R, j, N);
6199
+ }), I = fn([s]), { isFocusVisible: F, focusProps: R } = Xn({ autoFocus: c }), { isHovered: _, hoverProps: j } = qn({ isDisabled: u }), { pressed: T, pressProps: N } = uo({ disabled: u }), S = Ie({ open: m === de.Open, active: T || m === de.Open, disabled: u, invalid: r.invalid, value: r.value, hover: _, focus: F }), y = jt({ ref: a, id: s, type: xo(t, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": m === de.Open, "aria-labelledby": I, disabled: u || void 0, autoFocus: c, onKeyDown: C }, O, R, j, N);
6244
6200
  return Ee()({ ourProps: y, theirProps: v, slot: S, defaultTag: uh, name: "Combobox.Button" });
6245
6201
  }
6246
6202
  let fh = "div", ph = Tt.RenderStrategy | Tt.Static;
@@ -6269,19 +6225,19 @@ function mh(t, n) {
6269
6225
  p.actions.setActivationTrigger(it.Pointer);
6270
6226
  }), k = q((Oe) => {
6271
6227
  Oe.preventDefault(), p.actions.setActivationTrigger(it.Pointer);
6272
- }), ne = jt(b ? F() : {}, { "aria-labelledby": U, role: "listbox", "aria-multiselectable": g.mode === We.Multi ? !0 : void 0, id: a, ref: R, style: { ...m.style, ...C, "--input-width": Fn(B, j, !0).width, "--button-width": Fn(B, T, !0).width }, onWheel: S === it.Pointer ? void 0 : D, onMouseDown: k, ...Co(A) }), X = B && _ === de.Closed && !t.static, fe = Gn(X, (e = g.virtual) == null ? void 0 : e.options), $ = Gn(X, g.value), ee = ce((Oe) => g.compare($, Oe), [g.compare, $]), ie = Ce(() => {
6228
+ }), ne = jt(b ? F() : {}, { "aria-labelledby": U, role: "listbox", "aria-multiselectable": g.mode === We.Multi ? !0 : void 0, id: a, ref: R, style: { ...m.style, ...C, "--input-width": Fn(B, j, !0).width, "--button-width": Fn(B, T, !0).width }, onWheel: S === it.Pointer ? void 0 : D, onMouseDown: k, ...Co(A) }), J = B && _ === de.Closed && !t.static, fe = Gn(J, (e = g.virtual) == null ? void 0 : e.options), $ = Gn(J, g.value), ee = ce((Oe) => g.compare($, Oe), [g.compare, $]), ie = Ce(() => {
6273
6229
  if (!g.virtual) return g;
6274
6230
  if (fe === void 0) throw new Error("Missing `options` in virtual mode");
6275
6231
  return fe !== g.virtual.options ? { ...g, virtual: { ...g.virtual, options: fe } } : g;
6276
6232
  }, [g, fe, (r = g.virtual) == null ? void 0 : r.options]);
6277
6233
  g.virtual && Object.assign(m, { children: V.createElement(sn.Provider, { value: ie }, V.createElement(ih, { slot: oe }, m.children)) });
6278
6234
  let De = Ee(), Yt = Ce(() => g.mode === We.Multi ? g : { ...g, isSelected: ee }, [g, ee]);
6279
- return V.createElement(Ho, { enabled: u ? t.static || B : !1, ownerDocument: y }, V.createElement(sn.Provider, { value: Yt }, De({ ourProps: ne, theirProps: { ...m, children: V.createElement(Vm, { freeze: X }, typeof m.children == "function" ? (o = m.children) == null ? void 0 : o.call(m, oe) : m.children) }, slot: oe, defaultTag: fh, features: ph, visible: P, name: "Combobox.Options" })));
6235
+ return V.createElement(Ho, { enabled: u ? t.static || B : !1, ownerDocument: y }, V.createElement(sn.Provider, { value: Yt }, De({ ourProps: ne, theirProps: { ...m, children: V.createElement(Vm, { freeze: J }, typeof m.children == "function" ? (o = m.children) == null ? void 0 : o.call(m, oe) : m.children) }, slot: oe, defaultTag: fh, features: ph, visible: P, name: "Combobox.Options" })));
6280
6236
  }
6281
6237
  let hh = "div";
6282
6238
  function gh(t, n) {
6283
6239
  var e, r, o;
6284
- let i = Ut("Combobox.Option"), a = hn("Combobox.Option"), l = Ae(), { id: s = `headlessui-combobox-option-${l}`, value: u, disabled: c = (o = (r = (e = i.virtual) == null ? void 0 : e.disabled) == null ? void 0 : r.call(e, u)) != null ? o : !1, order: v = null, ...m } = t, [p] = se(a, (A) => [A.inputElement]), g = Xa(p), b = se(a, ce((A) => a.selectors.isActive(A, u, s), [u, s])), x = i.isSelected(u), C = ae(null), O = yt({ disabled: c, value: u, domRef: C, order: v }), I = ye(Pl), F = ke(n, C, I ? I.measureElement : null), R = q(() => {
6240
+ let i = Ut("Combobox.Option"), a = hn("Combobox.Option"), l = Ae(), { id: s = `headlessui-combobox-option-${l}`, value: u, disabled: c = (o = (r = (e = i.virtual) == null ? void 0 : e.disabled) == null ? void 0 : r.call(e, u)) != null ? o : !1, order: v = null, ...m } = t, [p] = se(a, (A) => [A.inputElement]), g = Ja(p), b = se(a, ce((A) => a.selectors.isActive(A, u, s), [u, s])), x = i.isSelected(u), C = ae(null), O = yt({ disabled: c, value: u, domRef: C, order: v }), I = ye(Pl), F = ke(n, C, I ? I.measureElement : null), R = q(() => {
6285
6241
  a.actions.setIsTyping(!1), a.actions.onChange(u);
6286
6242
  });
6287
6243
  ve(() => a.actions.registerOption(s, O), [O, s]);
@@ -6295,21 +6251,21 @@ function gh(t, n) {
6295
6251
  let j = q((A) => {
6296
6252
  A.preventDefault(), A.button === ho.Left && (c || (R(), Kr() || requestAnimationFrame(() => g()), i.mode === We.Single && a.actions.closeCombobox()));
6297
6253
  }), T = q(() => {
6298
- if (c) return a.actions.goToOption({ focus: J.Nothing });
6254
+ if (c) return a.actions.goToOption({ focus: X.Nothing });
6299
6255
  let A = i.calculateIndex(u);
6300
- a.actions.goToOption({ focus: J.Specific, idx: A });
6256
+ a.actions.goToOption({ focus: X.Specific, idx: A });
6301
6257
  }), N = So(), S = q((A) => N.update(A)), y = q((A) => {
6302
6258
  if (!N.wasMoved(A) || c || b && a.state.activationTrigger === it.Pointer) return;
6303
6259
  let W = i.calculateIndex(u);
6304
- a.actions.goToOption({ focus: J.Specific, idx: W }, it.Pointer);
6260
+ a.actions.goToOption({ focus: X.Specific, idx: W }, it.Pointer);
6305
6261
  }), E = q((A) => {
6306
- N.wasMoved(A) && (c || b && (i.optionsPropsRef.current.hold || a.state.activationTrigger === it.Pointer && a.actions.goToOption({ focus: J.Nothing })));
6262
+ N.wasMoved(A) && (c || b && (i.optionsPropsRef.current.hold || a.state.activationTrigger === it.Pointer && a.actions.goToOption({ focus: X.Nothing })));
6307
6263
  }), L = Ie({ active: b, focus: b, selected: x, disabled: c }), B = { id: s, ref: F, role: "option", tabIndex: c === !0 ? void 0 : -1, "aria-disabled": c === !0 ? !0 : void 0, "aria-selected": x, disabled: void 0, onMouseDown: j, onFocus: T, onPointerEnter: S, onMouseEnter: S, onPointerMove: y, onMouseMove: y, onPointerLeave: E, onMouseLeave: E };
6308
6264
  return Ee()({ ourProps: B, theirProps: m, slot: L, defaultTag: hh, name: "Combobox.Option" });
6309
6265
  }
6310
6266
  let vh = Se(lh), bh = Se(dh), yh = Se(ch), wh = Ba, xh = Se(mh), Eh = Se(gh);
6311
6267
  Object.assign(vh, { Input: yh, Button: bh, Label: wh, Options: xh, Option: Eh });
6312
- let Xi = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
6268
+ let Ji = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
6313
6269
  function ea(t) {
6314
6270
  var n, e;
6315
6271
  let r = (n = t.innerText) != null ? n : "", o = t.cloneNode(!0);
@@ -6317,7 +6273,7 @@ function ea(t) {
6317
6273
  let i = !1;
6318
6274
  for (let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]')) l.remove(), i = !0;
6319
6275
  let a = i ? (e = o.innerText) != null ? e : "" : r;
6320
- return Xi.test(a) && (a = a.replace(Xi, "")), a;
6276
+ return Ji.test(a) && (a = a.replace(Ji, "")), a;
6321
6277
  }
6322
6278
  function Sh(t) {
6323
6279
  let n = t.getAttribute("aria-label");
@@ -6355,7 +6311,7 @@ function na(t, n = (e) => e) {
6355
6311
  let Mh = { 1(t) {
6356
6312
  if (t.dataRef.current.disabled || t.listboxState === 1) return t;
6357
6313
  let n = t.buttonElement ? Ue.Tracked(hr(t.buttonElement)) : t.buttonPositionState;
6358
- return { ...t, activeOptionIndex: null, pendingFocus: { focus: J.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: n };
6314
+ return { ...t, activeOptionIndex: null, pendingFocus: { focus: X.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: n };
6359
6315
  }, 0(t, n) {
6360
6316
  if (t.dataRef.current.disabled || t.listboxState === 0) return t;
6361
6317
  let e = t.activeOptionIndex, { isSelected: r } = t.dataRef.current, o = t.options.findIndex((i) => r(i.dataRef.current.value));
@@ -6364,9 +6320,9 @@ let Mh = { 1(t) {
6364
6320
  var e, r, o, i, a;
6365
6321
  if (t.dataRef.current.disabled || t.listboxState === 1) return t;
6366
6322
  let l = { ...t, searchQuery: "", activationTrigger: (e = n.trigger) != null ? e : 1, __demoMode: !1 };
6367
- if (n.focus === J.Nothing) return { ...l, activeOptionIndex: null };
6368
- if (n.focus === J.Specific) return { ...l, activeOptionIndex: t.options.findIndex((c) => c.id === n.id) };
6369
- if (n.focus === J.Previous) {
6323
+ if (n.focus === X.Nothing) return { ...l, activeOptionIndex: null };
6324
+ if (n.focus === X.Specific) return { ...l, activeOptionIndex: t.options.findIndex((c) => c.id === n.id) };
6325
+ if (n.focus === X.Previous) {
6370
6326
  let c = t.activeOptionIndex;
6371
6327
  if (c !== null) {
6372
6328
  let v = t.options[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
@@ -6375,7 +6331,7 @@ let Mh = { 1(t) {
6375
6331
  if (((r = v.current) == null ? void 0 : r.previousElementSibling) === p.current || ((o = p.current) == null ? void 0 : o.previousElementSibling) === null) return { ...l, activeOptionIndex: m };
6376
6332
  }
6377
6333
  }
6378
- } else if (n.focus === J.Next) {
6334
+ } else if (n.focus === X.Next) {
6379
6335
  let c = t.activeOptionIndex;
6380
6336
  if (c !== null) {
6381
6337
  let v = t.options[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
@@ -6400,14 +6356,14 @@ let Mh = { 1(t) {
6400
6356
  return t.dataRef.current.mode === 0 ? { ...t, frozenValue: !0 } : { ...t };
6401
6357
  }, 6: (t, n) => {
6402
6358
  let e = t.options.concat(n.options), r = t.activeOptionIndex;
6403
- if (t.pendingFocus.focus !== J.Nothing && (r = rt(t.pendingFocus, { resolveItems: () => e, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (o) => o.id, resolveDisabled: (o) => o.dataRef.current.disabled })), t.activeOptionIndex === null) {
6359
+ if (t.pendingFocus.focus !== X.Nothing && (r = rt(t.pendingFocus, { resolveItems: () => e, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (o) => o.id, resolveDisabled: (o) => o.dataRef.current.disabled })), t.activeOptionIndex === null) {
6404
6360
  let { isSelected: o } = t.dataRef.current;
6405
6361
  if (o) {
6406
6362
  let i = e.findIndex((a) => o?.(a.dataRef.current.value));
6407
6363
  i !== -1 && (r = i);
6408
6364
  }
6409
6365
  }
6410
- return { ...t, options: e, activeOptionIndex: r, pendingFocus: { focus: J.Nothing }, pendingShouldSort: !0 };
6366
+ return { ...t, options: e, activeOptionIndex: r, pendingFocus: { focus: X.Nothing }, pendingShouldSort: !0 };
6411
6367
  }, 7: (t, n) => {
6412
6368
  let e = t.options, r = [], o = new Set(n.options);
6413
6369
  for (let [i, a] of e.entries()) if (o.has(a.id) && (r.push(i), o.delete(a.id), o.size === 0)) break;
@@ -6426,17 +6382,17 @@ let Mh = { 1(t) {
6426
6382
  let l = a.slice(), s = l.findIndex((u) => o(u, e));
6427
6383
  return s === -1 ? l.push(e) : l.splice(s, 1), r?.(l);
6428
6384
  } });
6429
- }, registerOption: Xt(() => {
6385
+ }, registerOption: Jt(() => {
6430
6386
  let e = [], r = /* @__PURE__ */ new Set();
6431
6387
  return [(o, i) => {
6432
6388
  r.has(i) || (r.add(i), e.push({ id: o, dataRef: i }));
6433
6389
  }, () => (r.clear(), this.send({ type: 6, options: e.splice(0) }))];
6434
- }), unregisterOption: Xt(() => {
6390
+ }), unregisterOption: Jt(() => {
6435
6391
  let e = [];
6436
6392
  return [(r) => e.push(r), () => {
6437
6393
  this.send({ type: 7, options: e.splice(0) });
6438
6394
  }];
6439
- }), goToOption: Xt(() => {
6395
+ }), goToOption: Jt(() => {
6440
6396
  let e = null;
6441
6397
  return [(r, o) => {
6442
6398
  e = { type: 2, ...r, trigger: o };
@@ -6498,7 +6454,7 @@ let Mh = { 1(t) {
6498
6454
  });
6499
6455
  }
6500
6456
  static new({ id: n, __demoMode: e = !1 }) {
6501
- return new Ll({ id: n, dataRef: { current: {} }, listboxState: e ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus: J.Nothing }, frozenValue: !1, __demoMode: e, buttonPositionState: Ue.Idle });
6457
+ return new Ll({ id: n, dataRef: { current: {} }, listboxState: e ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus: X.Nothing }, frozenValue: !1, __demoMode: e, buttonPositionState: Ue.Idle });
6502
6458
  }
6503
6459
  reduce(n, e) {
6504
6460
  return Te(e.type, Mh, n, e);
@@ -6548,9 +6504,9 @@ let Ih = "button";
6548
6504
  function Ah(t, n) {
6549
6505
  let e = Ae(), r = po(), o = gn("Listbox.Button"), i = Bo("Listbox.Button"), { id: a = r || `headlessui-listbox-button-${e}`, disabled: l = o.disabled || !1, autoFocus: s = !1, ...u } = t, c = ke(n, Po(), i.actions.setButtonElement), v = Cl(), [m, p, g] = se(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), b = m === Le.Open;
6550
6506
  wo(b, { trigger: p, action: ce((A) => {
6551
- if (p != null && p.contains(A.target)) return Je.Ignore;
6507
+ if (p != null && p.contains(A.target)) return Xe.Ignore;
6552
6508
  let W = A.target.closest('[role="option"]:not([data-disabled])');
6553
- return et(W) ? Je.Select(W) : g != null && g.contains(A.target) ? Je.Ignore : Je.Close;
6509
+ return et(W) ? Xe.Select(W) : g != null && g.contains(A.target) ? Xe.Ignore : Xe.Close;
6554
6510
  }, [p, g]), close: i.actions.closeListbox, select: i.actions.selectActiveOption });
6555
6511
  let x = q((A) => {
6556
6512
  switch (A.key) {
@@ -6559,10 +6515,10 @@ function Ah(t, n) {
6559
6515
  break;
6560
6516
  case te.Space:
6561
6517
  case te.ArrowDown:
6562
- A.preventDefault(), i.actions.openListbox({ focus: o.value ? J.Nothing : J.First });
6518
+ A.preventDefault(), i.actions.openListbox({ focus: o.value ? X.Nothing : X.First });
6563
6519
  break;
6564
6520
  case te.ArrowUp:
6565
- A.preventDefault(), i.actions.openListbox({ focus: o.value ? J.Nothing : J.Last });
6521
+ A.preventDefault(), i.actions.openListbox({ focus: o.value ? X.Nothing : X.Last });
6566
6522
  break;
6567
6523
  }
6568
6524
  }), C = q((A) => {
@@ -6573,8 +6529,8 @@ function Ah(t, n) {
6573
6529
  }
6574
6530
  }), O = go((A) => {
6575
6531
  var W;
6576
- i.state.listboxState === Le.Open ? (ze(() => i.actions.closeListbox()), (W = i.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus: J.Nothing }));
6577
- }), I = q((A) => A.preventDefault()), F = fn([a]), R = za(), { isFocusVisible: _, focusProps: j } = Jn({ autoFocus: s }), { isHovered: T, hoverProps: N } = qn({ isDisabled: l }), { pressed: S, pressProps: y } = uo({ disabled: l }), E = Ie({ open: m === Le.Open, active: S || m === Le.Open, disabled: l, invalid: o.invalid, value: o.value, hover: T, focus: _, autofocus: s }), L = se(i, (A) => A.listboxState === Le.Open), B = jt(v(), { ref: c, id: a, type: xo(t, p), "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": L, "aria-labelledby": F, "aria-describedby": R, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: C, onKeyPress: I }, O, j, N, y);
6532
+ i.state.listboxState === Le.Open ? (ze(() => i.actions.closeListbox()), (W = i.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus: X.Nothing }));
6533
+ }), I = q((A) => A.preventDefault()), F = fn([a]), R = za(), { isFocusVisible: _, focusProps: j } = Xn({ autoFocus: s }), { isHovered: T, hoverProps: N } = qn({ isDisabled: l }), { pressed: S, pressProps: y } = uo({ disabled: l }), E = Ie({ open: m === Le.Open, active: S || m === Le.Open, disabled: l, invalid: o.invalid, value: o.value, hover: T, focus: _, autofocus: s }), L = se(i, (A) => A.listboxState === Le.Open), B = jt(v(), { ref: c, id: a, type: xo(t, p), "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": L, "aria-labelledby": F, "aria-describedby": R, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: C, onKeyPress: I }, O, j, N, y);
6578
6534
  return Ee()({ ourProps: B, theirProps: u, slot: E, defaultTag: Ih, name: "Listbox.Button" });
6579
6535
  }
6580
6536
  let Fl = me(!1), Ph = "div", jh = Tt.RenderStrategy | Tt.Static;
@@ -6600,7 +6556,7 @@ function Nh(t, n) {
6600
6556
  })(), [A, W] = No(B), G = jo(), P = ke(n, u ? A : null, p.actions.setOptionsElement, v), U = bt();
6601
6557
  we(() => {
6602
6558
  let $ = x;
6603
- $ && g === Le.Open && (Xn($) || $ == null || $.focus({ preventScroll: !0 }));
6559
+ $ && g === Le.Open && (Jn($) || $ == null || $.focus({ preventScroll: !0 }));
6604
6560
  }, [g, x]);
6605
6561
  let oe = q(($) => {
6606
6562
  var ee;
@@ -6611,15 +6567,15 @@ function Nh(t, n) {
6611
6567
  $.preventDefault(), $.stopPropagation(), p.actions.selectActiveOption();
6612
6568
  break;
6613
6569
  case Te(m.orientation, { vertical: te.ArrowDown, horizontal: te.ArrowRight }):
6614
- return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: J.Next });
6570
+ return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.Next });
6615
6571
  case Te(m.orientation, { vertical: te.ArrowUp, horizontal: te.ArrowLeft }):
6616
- return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: J.Previous });
6572
+ return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.Previous });
6617
6573
  case te.Home:
6618
6574
  case te.PageUp:
6619
- return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: J.First });
6575
+ return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.First });
6620
6576
  case te.End:
6621
6577
  case te.PageDown:
6622
- return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: J.Last });
6578
+ return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.Last });
6623
6579
  case te.Escape:
6624
6580
  $.preventDefault(), $.stopPropagation(), ze(() => p.actions.closeListbox()), (ee = p.state.buttonElement) == null || ee.focus({ preventScroll: !0 });
6625
6581
  return;
@@ -6633,8 +6589,8 @@ function Nh(t, n) {
6633
6589
  }), D = se(p, ($) => {
6634
6590
  var ee;
6635
6591
  return (ee = $.buttonElement) == null ? void 0 : ee.id;
6636
- }), k = Ie({ open: g === Le.Open }), ne = jt(u ? G() : {}, { id: r, ref: P, "aria-activedescendant": se(p, p.selectors.activeDescendantId), "aria-multiselectable": m.mode === mt.Multi ? !0 : void 0, "aria-labelledby": D, "aria-orientation": m.orientation, onKeyDown: oe, role: "listbox", tabIndex: g === Le.Open ? 0 : void 0, style: { ...s.style, ...W, "--button-width": Fn(R, b, !0).width }, ...Co(_) }), X = Ee(), fe = Ce(() => m.mode === mt.Multi ? m : { ...m, isSelected: E }, [m, E]);
6637
- return V.createElement(Ho, { enabled: i ? t.static || R : !1, ownerDocument: O }, V.createElement(gr.Provider, { value: fe }, X({ ourProps: ne, theirProps: s, slot: k, defaultTag: Ph, features: jh, visible: N, name: "Listbox.Options" })));
6592
+ }), k = Ie({ open: g === Le.Open }), ne = jt(u ? G() : {}, { id: r, ref: P, "aria-activedescendant": se(p, p.selectors.activeDescendantId), "aria-multiselectable": m.mode === mt.Multi ? !0 : void 0, "aria-labelledby": D, "aria-orientation": m.orientation, onKeyDown: oe, role: "listbox", tabIndex: g === Le.Open ? 0 : void 0, style: { ...s.style, ...W, "--button-width": Fn(R, b, !0).width }, ...Co(_) }), J = Ee(), fe = Ce(() => m.mode === mt.Multi ? m : { ...m, isSelected: E }, [m, E]);
6593
+ return V.createElement(Ho, { enabled: i ? t.static || R : !1, ownerDocument: O }, V.createElement(gr.Provider, { value: fe }, J({ ourProps: ne, theirProps: s, slot: k, defaultTag: Ph, features: jh, visible: N, name: "Listbox.Options" })));
6638
6594
  }
6639
6595
  let Lh = "div";
6640
6596
  function _h(t, n) {
@@ -6655,12 +6611,12 @@ function _h(t, n) {
6655
6611
  if (o) return S.preventDefault();
6656
6612
  u.actions.selectOption(i);
6657
6613
  }), O = q(() => {
6658
- if (o) return u.actions.goToOption({ focus: J.Nothing });
6659
- u.actions.goToOption({ focus: J.Specific, id: r });
6614
+ if (o) return u.actions.goToOption({ focus: X.Nothing });
6615
+ u.actions.goToOption({ focus: X.Specific, id: r });
6660
6616
  }), I = So(), F = q((S) => I.update(S)), R = q((S) => {
6661
- I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer || u.actions.goToOption({ focus: J.Specific, id: r }, An.Pointer));
6617
+ I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer || u.actions.goToOption({ focus: X.Specific, id: r }, An.Pointer));
6662
6618
  }), _ = q((S) => {
6663
- I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer && u.actions.goToOption({ focus: J.Nothing }));
6619
+ I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer && u.actions.goToOption({ focus: X.Nothing }));
6664
6620
  }), j = Ie({ active: c, focus: c, selected: v, disabled: o, selectedOption: v && l }), T = l ? {} : { id: r, ref: b, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onClick: C, onFocus: O, onPointerEnter: F, onMouseEnter: F, onPointerMove: R, onMouseMove: R, onPointerLeave: _, onMouseLeave: _ }, N = Ee();
6665
6621
  return !v && l ? null : N({ ourProps: T, theirProps: a, slot: j, defaultTag: Lh, name: "Listbox.Option" });
6666
6622
  }
@@ -6679,16 +6635,16 @@ function oa(t, n = (e) => e) {
6679
6635
  let Gh = { 1(t) {
6680
6636
  if (t.menuState === 1) return t;
6681
6637
  let n = t.buttonElement ? Ue.Tracked(hr(t.buttonElement)) : t.buttonPositionState;
6682
- return { ...t, activeItemIndex: null, pendingFocus: { focus: J.Nothing }, menuState: 1, buttonPositionState: n };
6638
+ return { ...t, activeItemIndex: null, pendingFocus: { focus: X.Nothing }, menuState: 1, buttonPositionState: n };
6683
6639
  }, 0(t, n) {
6684
6640
  return t.menuState === 0 ? t : { ...t, __demoMode: !1, pendingFocus: n.focus, menuState: 0, buttonPositionState: Ue.Idle };
6685
6641
  }, 2: (t, n) => {
6686
6642
  var e, r, o, i, a;
6687
6643
  if (t.menuState === 1) return t;
6688
6644
  let l = { ...t, searchQuery: "", activationTrigger: (e = n.trigger) != null ? e : 1, __demoMode: !1 };
6689
- if (n.focus === J.Nothing) return { ...l, activeItemIndex: null };
6690
- if (n.focus === J.Specific) return { ...l, activeItemIndex: t.items.findIndex((c) => c.id === n.id) };
6691
- if (n.focus === J.Previous) {
6645
+ if (n.focus === X.Nothing) return { ...l, activeItemIndex: null };
6646
+ if (n.focus === X.Specific) return { ...l, activeItemIndex: t.items.findIndex((c) => c.id === n.id) };
6647
+ if (n.focus === X.Previous) {
6692
6648
  let c = t.activeItemIndex;
6693
6649
  if (c !== null) {
6694
6650
  let v = t.items[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
@@ -6697,7 +6653,7 @@ let Gh = { 1(t) {
6697
6653
  if (((r = v.current) == null ? void 0 : r.previousElementSibling) === p.current || ((o = p.current) == null ? void 0 : o.previousElementSibling) === null) return { ...l, activeItemIndex: m };
6698
6654
  }
6699
6655
  }
6700
- } else if (n.focus === J.Next) {
6656
+ } else if (n.focus === X.Next) {
6701
6657
  let c = t.activeItemIndex;
6702
6658
  if (c !== null) {
6703
6659
  let v = t.items[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
@@ -6719,7 +6675,7 @@ let Gh = { 1(t) {
6719
6675
  return t.searchQuery === "" ? t : { ...t, searchQuery: "", searchActiveItemIndex: null };
6720
6676
  }, 5: (t, n) => {
6721
6677
  let e = t.items.concat(n.items.map((o) => o)), r = t.activeItemIndex;
6722
- return t.pendingFocus.focus !== J.Nothing && (r = rt(t.pendingFocus, { resolveItems: () => e, resolveActiveIndex: () => t.activeItemIndex, resolveId: (o) => o.id, resolveDisabled: (o) => o.dataRef.current.disabled })), { ...t, items: e, activeItemIndex: r, pendingFocus: { focus: J.Nothing }, pendingShouldSort: !0 };
6678
+ return t.pendingFocus.focus !== X.Nothing && (r = rt(t.pendingFocus, { resolveItems: () => e, resolveActiveIndex: () => t.activeItemIndex, resolveId: (o) => o.id, resolveDisabled: (o) => o.dataRef.current.disabled })), { ...t, items: e, activeItemIndex: r, pendingFocus: { focus: X.Nothing }, pendingShouldSort: !0 };
6723
6679
  }, 6: (t, n) => {
6724
6680
  let e = t.items, r = [], o = new Set(n.items);
6725
6681
  for (let [i, a] of e.entries()) if (o.has(a.id) && (r.push(i), o.delete(a.id), o.size === 0)) break;
@@ -6733,12 +6689,12 @@ let Gh = { 1(t) {
6733
6689
  } };
6734
6690
  class Vo extends ir {
6735
6691
  constructor(n) {
6736
- super(n), ra(this, "actions", { registerItem: Xt(() => {
6692
+ super(n), ra(this, "actions", { registerItem: Jt(() => {
6737
6693
  let e = [], r = /* @__PURE__ */ new Set();
6738
6694
  return [(o, i) => {
6739
6695
  r.has(i) || (r.add(i), e.push({ id: o, dataRef: i }));
6740
6696
  }, () => (r.clear(), this.send({ type: 5, items: e.splice(0) }))];
6741
- }), unregisterItem: Xt(() => {
6697
+ }), unregisterItem: Jt(() => {
6742
6698
  let e = [];
6743
6699
  return [(r) => e.push(r), () => this.send({ type: 6, items: e.splice(0) })];
6744
6700
  }) }), ra(this, "selectors", { activeDescendantId(e) {
@@ -6773,7 +6729,7 @@ class Vo extends ir {
6773
6729
  });
6774
6730
  }
6775
6731
  static new({ id: n, __demoMode: e = !1 }) {
6776
- return new Vo({ id: n, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: J.Nothing }, buttonPositionState: Ue.Idle });
6732
+ return new Vo({ id: n, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: X.Nothing }, buttonPositionState: Ue.Idle });
6777
6733
  }
6778
6734
  reduce(n, e) {
6779
6735
  return Te(e.type, Gh, n, e);
@@ -6811,10 +6767,10 @@ function qh(t, n) {
6811
6767
  case te.Space:
6812
6768
  case te.Enter:
6813
6769
  case te.ArrowDown:
6814
- S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus: J.First } });
6770
+ S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus: X.First } });
6815
6771
  break;
6816
6772
  case te.ArrowUp:
6817
- S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus: J.Last } });
6773
+ S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus: X.Last } });
6818
6774
  break;
6819
6775
  }
6820
6776
  }), m = q((S) => {
@@ -6825,17 +6781,17 @@ function qh(t, n) {
6825
6781
  }
6826
6782
  }), [p, g, b] = se(e, (S) => [S.menuState, S.buttonElement, S.itemsElement]), x = p === je.Open;
6827
6783
  wo(x, { trigger: g, action: ce((S) => {
6828
- if (g != null && g.contains(S.target)) return Je.Ignore;
6784
+ if (g != null && g.contains(S.target)) return Xe.Ignore;
6829
6785
  let y = S.target.closest('[role="menuitem"]:not([data-disabled])');
6830
- return et(y) ? Je.Select(y) : b != null && b.contains(S.target) ? Je.Ignore : Je.Close;
6786
+ return et(y) ? Xe.Select(y) : b != null && b.contains(S.target) ? Xe.Ignore : Xe.Close;
6831
6787
  }, [g, b]), close: ce(() => e.send({ type: ge.CloseMenu }), []), select: ce((S) => S.click(), []) });
6832
6788
  let C = go((S) => {
6833
6789
  var y;
6834
- i || (p === je.Open ? (ze(() => e.send({ type: ge.CloseMenu })), (y = s.current) == null || y.focus({ preventScroll: !0 })) : (S.preventDefault(), e.send({ type: ge.OpenMenu, focus: { focus: J.Nothing }, trigger: Kn.Pointer })));
6835
- }), { isFocusVisible: O, focusProps: I } = Jn({ autoFocus: a }), { isHovered: F, hoverProps: R } = qn({ isDisabled: i }), { pressed: _, pressProps: j } = uo({ disabled: i }), T = Ie({ open: p === je.Open, active: _ || p === je.Open, disabled: i, hover: F, focus: O, autofocus: a }), N = jt(u(), { ref: c, id: o, type: xo(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": p === je.Open, disabled: i || void 0, autoFocus: a, onKeyDown: v, onKeyUp: m }, C, I, R, j);
6790
+ i || (p === je.Open ? (ze(() => e.send({ type: ge.CloseMenu })), (y = s.current) == null || y.focus({ preventScroll: !0 })) : (S.preventDefault(), e.send({ type: ge.OpenMenu, focus: { focus: X.Nothing }, trigger: Kn.Pointer })));
6791
+ }), { isFocusVisible: O, focusProps: I } = Xn({ autoFocus: a }), { isHovered: F, hoverProps: R } = qn({ isDisabled: i }), { pressed: _, pressProps: j } = uo({ disabled: i }), T = Ie({ open: p === je.Open, active: _ || p === je.Open, disabled: i, hover: F, focus: O, autofocus: a }), N = jt(u(), { ref: c, id: o, type: xo(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": p === je.Open, disabled: i || void 0, autoFocus: a, onKeyDown: v, onKeyUp: m }, C, I, R, j);
6836
6792
  return Ee()({ ourProps: N, theirProps: l, slot: T, defaultTag: Qh, name: "Menu.Button" });
6837
6793
  }
6838
- let Jh = "div", Xh = Tt.RenderStrategy | Tt.Static;
6794
+ let Xh = "div", Jh = Tt.RenderStrategy | Tt.Static;
6839
6795
  function eg(t, n) {
6840
6796
  let e = Ae(), { id: r = `headlessui-menu-items-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Ao(o), c = $o("Menu.Items"), [v, m] = No(u), p = jo(), [g, b] = be(null), x = ke(n, u ? v : null, q((P) => c.send({ type: ge.SetItemsElement, element: P })), b), [C, O] = se(c, (P) => [P.menuState, P.buttonElement]), I = kt(O), F = kt(g);
6841
6797
  u && (i = !0);
@@ -6850,7 +6806,7 @@ function eg(t, n) {
6850
6806
  let y = se(c, c.selectors.didButtonMove) ? !1 : _;
6851
6807
  we(() => {
6852
6808
  let P = g;
6853
- P && C === je.Open && (Xn(P) || P.focus({ preventScroll: !0 }));
6809
+ P && C === je.Open && (Jn(P) || P.focus({ preventScroll: !0 }));
6854
6810
  }, [C, g]), el(C === je.Open, { container: g, accept(P) {
6855
6811
  return P.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : P.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
6856
6812
  }, walk(P) {
@@ -6869,15 +6825,15 @@ function eg(t, n) {
6869
6825
  c.send({ type: ge.CloseMenu }), Qa(c.state.buttonElement);
6870
6826
  break;
6871
6827
  case te.ArrowDown:
6872
- return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: J.Next });
6828
+ return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.Next });
6873
6829
  case te.ArrowUp:
6874
- return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: J.Previous });
6830
+ return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.Previous });
6875
6831
  case te.Home:
6876
6832
  case te.PageUp:
6877
- return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: J.First });
6833
+ return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.First });
6878
6834
  case te.End:
6879
6835
  case te.PageDown:
6880
- return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: J.Last });
6836
+ return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.Last });
6881
6837
  case te.Escape:
6882
6838
  P.preventDefault(), P.stopPropagation(), ze(() => c.send({ type: ge.CloseMenu })), (D = c.state.buttonElement) == null || D.focus({ preventScroll: !0 });
6883
6839
  break;
@@ -6898,7 +6854,7 @@ function eg(t, n) {
6898
6854
  var U;
6899
6855
  return (U = P.buttonElement) == null ? void 0 : U.id;
6900
6856
  }), id: r, onKeyDown: L, onKeyUp: B, role: "menu", tabIndex: C === je.Open ? 0 : void 0, ref: x, style: { ...s.style, ...m, "--button-width": Fn(_, O, !0).width }, ...Co(j) }), G = Ee();
6901
- return V.createElement(Ho, { enabled: i ? t.static || _ : !1, ownerDocument: I }, G({ ourProps: W, theirProps: s, slot: A, defaultTag: Jh, features: Xh, visible: y, name: "Menu.Items" }));
6857
+ return V.createElement(Ho, { enabled: i ? t.static || _ : !1, ownerDocument: I }, G({ ourProps: W, theirProps: s, slot: A, defaultTag: Xh, features: Jh, visible: y, name: "Menu.Items" }));
6902
6858
  }
6903
6859
  let tg = ut;
6904
6860
  function ng(t, n) {
@@ -6921,12 +6877,12 @@ function ng(t, n) {
6921
6877
  if (o) return y.preventDefault();
6922
6878
  a.send({ type: ge.CloseMenu }), Qa(a.state.buttonElement);
6923
6879
  }), b = q(() => {
6924
- if (o) return a.send({ type: ge.GoToItem, focus: J.Nothing });
6925
- a.send({ type: ge.GoToItem, focus: J.Specific, id: r });
6880
+ if (o) return a.send({ type: ge.GoToItem, focus: X.Nothing });
6881
+ a.send({ type: ge.GoToItem, focus: X.Specific, id: r });
6926
6882
  }), x = So(), C = q((y) => x.update(y)), O = q((y) => {
6927
- x.wasMoved(y) && (o || l || a.send({ type: ge.GoToItem, focus: J.Specific, id: r, trigger: Kn.Pointer }));
6883
+ x.wasMoved(y) && (o || l || a.send({ type: ge.GoToItem, focus: X.Specific, id: r, trigger: Kn.Pointer }));
6928
6884
  }), I = q((y) => {
6929
- x.wasMoved(y) && (o || l && a.state.activationTrigger === Kn.Pointer && a.send({ type: ge.GoToItem, focus: J.Nothing }));
6885
+ x.wasMoved(y) && (o || l && a.state.activationTrigger === Kn.Pointer && a.send({ type: ge.GoToItem, focus: X.Nothing }));
6930
6886
  }), [F, R] = or(), [_, j] = qd(), T = Ie({ active: l, focus: l, disabled: o, close: p }), N = { id: r, ref: u, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": F, "aria-describedby": _, disabled: void 0, onClick: g, onFocus: b, onPointerEnter: C, onMouseEnter: C, onPointerMove: O, onMouseMove: O, onPointerLeave: I, onMouseLeave: I }, S = Ee();
6931
6887
  return V.createElement(R, null, V.createElement(j, null, S({ ourProps: N, theirProps: i, slot: T, defaultTag: tg, name: "Menu.Item" })));
6932
6888
  }
@@ -6949,7 +6905,7 @@ function sg(t, n) {
6949
6905
  }
6950
6906
  let cg = Se(Zh), ug = Se(qh), dg = Se(eg), fg = Se(ng), pg = Se(og), mg = Se(ag), hg = Se(sg);
6951
6907
  Object.assign(cg, { Button: ug, Items: dg, Item: fg, Section: pg, Heading: mg, Separator: hg });
6952
- function Xr(t) {
6908
+ function Jr(t) {
6953
6909
  const n = d.useRef(void 0), e = d.useCallback((r) => {
6954
6910
  const o = t.map((i) => {
6955
6911
  if (i != null) {
@@ -7519,7 +7475,7 @@ function Tg(t, n) {
7519
7475
  config: Pe(Pe({}, Ht), Me.defaultConfig),
7520
7476
  l10n: cn
7521
7477
  };
7522
- e.parseDate = eo({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = b, e._setHoursFromDate = m, e._positionCalendar = bn, e.changeMonth = D, e.changeYear = ee, e.clear = k, e.close = ne, e.onMouseOver = vn, e._createElement = pe, e.createDay = _, e.destroy = X, e.isEnabled = ie, e.jumpToDate = O, e.updateValue = st, e.open = Yl, e.redraw = Go, e.set = Ql, e.setDate = ql, e.toggle = ts;
7478
+ e.parseDate = eo({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = b, e._setHoursFromDate = m, e._positionCalendar = bn, e.changeMonth = D, e.changeYear = ee, e.clear = k, e.close = ne, e.onMouseOver = vn, e._createElement = pe, e.createDay = _, e.destroy = J, e.isEnabled = ie, e.jumpToDate = O, e.updateValue = st, e.open = Yl, e.redraw = Go, e.set = Ql, e.setDate = ql, e.toggle = ts;
7523
7479
  function r() {
7524
7480
  e.utils = {
7525
7481
  getDaysInMonth: function(f, h) {
@@ -7528,7 +7484,7 @@ function Tg(t, n) {
7528
7484
  };
7529
7485
  }
7530
7486
  function o() {
7531
- e.element = e.input = t, e.isOpen = !1, Gl(), Yo(), Xl(), Jl(), r(), e.isMobile || R(), C(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && m(e.config.noCalendar ? e.latestSelectedDateObj : void 0), st(!1)), l();
7487
+ e.element = e.input = t, e.isOpen = !1, Gl(), Yo(), Jl(), Xl(), r(), e.isMobile || R(), C(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && m(e.config.noCalendar ? e.latestSelectedDateObj : void 0), st(!1)), l();
7532
7488
  var f = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
7533
7489
  !e.isMobile && f && bn(), xe("onReady");
7534
7490
  }
@@ -7844,7 +7800,7 @@ function Tg(t, n) {
7844
7800
  function ne() {
7845
7801
  e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), xe("onClose");
7846
7802
  }
7847
- function X() {
7803
+ function J() {
7848
7804
  e.config !== void 0 && xe("onDestroy");
7849
7805
  for (var f = e._handlers.length; f--; )
7850
7806
  e._handlers[f].remove();
@@ -8297,12 +8253,12 @@ function Tg(t, n) {
8297
8253
  return h;
8298
8254
  });
8299
8255
  }
8300
- function Jl() {
8256
+ function Xl() {
8301
8257
  e.selectedDates = [], e.now = e.parseDate(e.config.now) || /* @__PURE__ */ new Date();
8302
8258
  var f = e.config.defaultDate || ((e.input.nodeName === "INPUT" || e.input.nodeName === "TEXTAREA") && e.input.placeholder && e.input.value === e.input.placeholder ? null : e.input.value);
8303
8259
  f && Zo(f, e.config.dateFormat), e._initialDate = e.selectedDates.length > 0 ? e.selectedDates[0] : e.config.minDate && e.config.minDate.getTime() > e.now.getTime() ? e.config.minDate : e.config.maxDate && e.config.maxDate.getTime() < e.now.getTime() ? e.config.maxDate : e.now, e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth(), e.selectedDates.length > 0 && (e.latestSelectedDateObj = e.selectedDates[0]), e.config.minTime !== void 0 && (e.config.minTime = e.parseDate(e.config.minTime, "H:i")), e.config.maxTime !== void 0 && (e.config.maxTime = e.parseDate(e.config.maxTime, "H:i")), e.minDateHasTime = !!e.config.minDate && (e.config.minDate.getHours() > 0 || e.config.minDate.getMinutes() > 0 || e.config.minDate.getSeconds() > 0), e.maxDateHasTime = !!e.config.maxDate && (e.config.maxDate.getHours() > 0 || e.config.maxDate.getMinutes() > 0 || e.config.maxDate.getSeconds() > 0);
8304
8260
  }
8305
- function Xl() {
8261
+ function Jl() {
8306
8262
  if (e.input = Uo(), !e.input) {
8307
8263
  e.config.errorHandler(new Error("Invalid input element specified"));
8308
8264
  return;
@@ -8627,10 +8583,6 @@ const Ig = `
8627
8583
  );
8628
8584
  };
8629
8585
  var Mn = { exports: {} };
8630
- /*!
8631
- * focus-trap 7.6.5
8632
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
8633
- */
8634
8586
  function to(t, n) {
8635
8587
  (n == null || n > t.length) && (n = t.length);
8636
8588
  for (var e = 0, r = Array(n); e < n; e++) r[e] = t[e];
@@ -8714,11 +8666,11 @@ var ca = {
8714
8666
  }
8715
8667
  }, qg = function(t) {
8716
8668
  return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
8717
- }, Jg = function(t) {
8669
+ }, Xg = function(t) {
8718
8670
  return t?.key === "Escape" || t?.key === "Esc" || t?.keyCode === 27;
8719
8671
  }, nn = function(t) {
8720
8672
  return t?.key === "Tab" || t?.keyCode === 9;
8721
- }, Xg = function(t) {
8673
+ }, Jg = function(t) {
8722
8674
  return nn(t) && !t.shiftKey;
8723
8675
  }, ev = function(t) {
8724
8676
  return nn(t) && t.shiftKey;
@@ -8735,7 +8687,7 @@ var ca = {
8735
8687
  returnFocusOnDeactivate: !0,
8736
8688
  escapeDeactivates: !0,
8737
8689
  delayInitialFocus: !0,
8738
- isKeyForward: Xg,
8690
+ isKeyForward: Jg,
8739
8691
  isKeyBackward: ev
8740
8692
  }, n), i = {
8741
8693
  // containers given to createFocusTrap()
@@ -8916,8 +8868,8 @@ var ca = {
8916
8868
  return E === $;
8917
8869
  });
8918
8870
  if (k < 0 && (P.container === E || kn(E, o.tabbableOptions) && !xt(E, o.tabbableOptions) && !P.nextTabbableNode(E)) && (k = G), k >= 0) {
8919
- var ne = k === i.tabbableGroups.length - 1 ? 0 : k + 1, X = i.tabbableGroups[ne];
8920
- W = ft(E) >= 0 ? X.firstTabbableNode : X.firstDomTabbableNode;
8871
+ var ne = k === i.tabbableGroups.length - 1 ? 0 : k + 1, J = i.tabbableGroups[ne];
8872
+ W = ft(E) >= 0 ? J.firstTabbableNode : J.firstDomTabbableNode;
8921
8873
  } else nn(L) || (W = P.nextTabbableNode(E));
8922
8874
  }
8923
8875
  } else
@@ -8983,7 +8935,7 @@ var ca = {
8983
8935
  }, I = function(y) {
8984
8936
  (o.isKeyForward(y) || o.isKeyBackward(y)) && O(y, o.isKeyBackward(y));
8985
8937
  }, F = function(y) {
8986
- Jg(y) && Zt(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), a.deactivate());
8938
+ Xg(y) && Zt(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), a.deactivate());
8987
8939
  }, R = function(y) {
8988
8940
  var E = Dn(y);
8989
8941
  s(E, y) >= 0 || Zt(o.clickOutsideDeactivates, y) || Zt(o.allowOutsideClick, y) || (y.preventDefault(), y.stopImmediatePropagation());
@@ -9409,7 +9361,7 @@ const cv = V.createContext(null), Wl = () => {
9409
9361
  }
9410
9362
  };
9411
9363
  V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
9412
- const o = Wl(), i = Xr([o.refs?.setFloating ?? null, r]), a = o.variant;
9364
+ const o = Wl(), i = Jr([o.refs?.setFloating ?? null, r]), a = o.variant;
9413
9365
  return o.disabled ? null : /* @__PURE__ */ H.jsx(H.Fragment, { children: o.open && /* @__PURE__ */ H.jsxs(
9414
9366
  "div",
9415
9367
  {
@@ -9434,10 +9386,10 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
9434
9386
  ) });
9435
9387
  });
9436
9388
  V.forwardRef(function({ children: t, asChild: n = !1, className: e = "", ...r }, o) {
9437
- const i = Wl(), a = Xr([i.refs?.setReference, o]);
9389
+ const i = Wl(), a = Jr([i.refs?.setReference, o]);
9438
9390
  if (n && V.isValidElement(t)) {
9439
9391
  const l = t.props, s = l.ref, u = i.refs?.setReference, c = {
9440
- ref: Xr([u, o, s]),
9392
+ ref: Jr([u, o, s]),
9441
9393
  ...r,
9442
9394
  ...l,
9443
9395
  "data-state": i.open ? "open" : "closed",