@cloudoperators/juno-messages-provider 0.2.16 → 0.2.18

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 (3) hide show
  1. package/README.md +0 -1
  2. package/build/index.js +563 -560
  3. package/package.json +12 -12
package/build/index.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import * as d from "react";
2
- import V, { createContext as ye, useContext as Ee, forwardRef as Z, useId as Pe, useMemo as se, Fragment as Xe, useRef as ie, useCallback as le, useState as xe, useEffect as Ce, useLayoutEffect as qr, useReducer as Jl, isValidElement as es, cloneElement as ts, createElement as ns, useSyncExternalStore as rs } from "react";
2
+ import V, { createContext as be, useContext as Ee, forwardRef as Z, useId as Pe, useMemo as se, Fragment as Xe, useRef as ie, useCallback as le, useState as xe, useEffect as Ce, useLayoutEffect as qr, useReducer as Jl, isValidElement as es, cloneElement as ts, createElement as ns, useSyncExternalStore as rs } from "react";
3
3
  import { createStore as os, useStore as is } from "zustand";
4
4
  import * as kn from "react-dom";
5
5
  import { createPortal as Xr, flushSync as Re } from "react-dom";
6
- const Wo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString(36).slice(-5)}}`, as = (t, n) => ({
7
- storeId: Wo("store-"),
6
+ const Uo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString(36).slice(-5)}}`, as = (t, n) => ({
7
+ storeId: Uo("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 = Wo("message-");
13
+ const o = n().messages.slice(), i = Uo("message-");
14
14
  return o.push({ id: i, ...e }), t((a) => ({ ...a, messages: o })), i;
15
15
  },
16
16
  removeMessage: (e) => {
@@ -21,7 +21,7 @@ const Wo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString
21
21
  t((e) => ({ ...e, messages: [] }));
22
22
  }
23
23
  }
24
- }), Qi = ye(void 0), Gg = ({ children: t }) => /* @__PURE__ */ V.createElement(Qi.Provider, { value: os(as) }, t), Ji = (t) => {
24
+ }), Qi = be(void 0), Yg = ({ children: t }) => /* @__PURE__ */ V.createElement(Qi.Provider, { value: os(as) }, t), Ji = (t) => {
25
25
  const n = Ee(Qi);
26
26
  if (!n)
27
27
  throw new Error("StoreContext not provided");
@@ -61,10 +61,10 @@ var hr = { exports: {} }, Yt = {};
61
61
  * This source code is licensed under the MIT license found in the
62
62
  * LICENSE file in the root directory of this source tree.
63
63
  */
64
- var Uo;
64
+ var Wo;
65
65
  function cs() {
66
- if (Uo) return Yt;
67
- Uo = 1;
66
+ if (Wo) return Yt;
67
+ Wo = 1;
68
68
  var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
69
69
  function e(r, o, i) {
70
70
  var a = null;
@@ -95,7 +95,7 @@ var yn = {};
95
95
  */
96
96
  var Yo;
97
97
  function us() {
98
- return Yo || (Yo = 1, process.env.NODE_ENV !== "production" && function() {
98
+ return Yo || (Yo = 1, process.env.NODE_ENV !== "production" && (function() {
99
99
  function t(O) {
100
100
  if (O == null) return null;
101
101
  if (typeof O == "function")
@@ -110,7 +110,7 @@ function us() {
110
110
  return "StrictMode";
111
111
  case R:
112
112
  return "Suspense";
113
- case F:
113
+ case j:
114
114
  return "SuspenseList";
115
115
  case N:
116
116
  return "Activity";
@@ -198,7 +198,7 @@ function us() {
198
198
  }
199
199
  function s() {
200
200
  var O = t(this.type);
201
- return W[O] || (W[O] = !0, console.error(
201
+ return U[O] || (U[O] = !0, console.error(
202
202
  "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
203
  )), O = this.props.ref, O !== void 0 ? O : null;
204
204
  }
@@ -238,7 +238,7 @@ function us() {
238
238
  var z = Y.children;
239
239
  if (z !== void 0)
240
240
  if (ae)
241
- if (j(z)) {
241
+ if (F(z)) {
242
242
  for (ae = 0; ae < z.length; ae++)
243
243
  g(z[ae]);
244
244
  Object.freeze && Object.freeze(z);
@@ -287,7 +287,7 @@ React keys must be passed directly to JSX without using spread:
287
287
  function g(O) {
288
288
  typeof O == "object" && O !== null && O.$$typeof === f && O._store && (O._store.validated = 1);
289
289
  }
290
- var h = V, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), T = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), N = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), y = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, j = Array.isArray, B = console.createTask ? console.createTask : function() {
290
+ var h = V, f = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), M = Symbol.for("react.profiler"), D = Symbol.for("react.consumer"), T = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), P = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), N = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), y = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, C = Object.prototype.hasOwnProperty, F = Array.isArray, B = console.createTask ? console.createTask : function() {
291
291
  return null;
292
292
  };
293
293
  h = {
@@ -295,7 +295,7 @@ React keys must be passed directly to JSX without using spread:
295
295
  return O();
296
296
  }
297
297
  };
298
- var I, W = {}, K = h["react-stack-bottom-frame"].bind(
298
+ var I, U = {}, K = h["react-stack-bottom-frame"].bind(
299
299
  h,
300
300
  i
301
301
  )(), $ = B(r(i)), A = {};
@@ -324,7 +324,7 @@ React keys must be passed directly to JSX without using spread:
324
324
  de ? B(r(O)) : $
325
325
  );
326
326
  };
327
- }()), yn;
327
+ })()), yn;
328
328
  }
329
329
  var Go;
330
330
  function ds() {
@@ -343,7 +343,7 @@ const ps = ({
343
343
  ...e
344
344
  }, r) => /* @__PURE__ */ d.createElement("svg", { width: 59, height: 42, viewBox: "0 0 59 42", fill: "none", xmlns: "http://www.w3.org/2000/svg", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M59.3825 11.1608C59.3545 11.1402 59.3267 11.1209 59.299 11.1029C56.8161 9.48915 53.8572 8.55235 50.6806 8.55235C49.5105 8.55235 48.3701 8.67944 47.272 8.92064C44.3685 3.66326 38.8166 0.108856 32.4447 0.108856C23.4894 0.108856 16.1537 7.12988 15.514 16.032L15.3487 16.0309L15.1066 16.0329C7.13468 16.1633 0.712036 22.728 0.712036 30.807C0.712036 35.0932 2.69502 38.9531 5.7492 41.6521H10.3029C6.42919 39.7347 3.75866 35.6852 3.75866 30.9998C3.75866 24.4639 8.95513 19.1655 15.3653 19.1655C16.2819 19.1655 17.1736 19.2738 18.0286 19.4792C17.9603 18.8925 17.9251 18.2952 17.9251 17.6896C17.9251 9.4705 24.4057 2.80763 32.4 2.80763C38.5297 2.80763 43.7695 6.72481 45.8801 12.2573C47.317 11.7139 48.8714 11.417 50.4937 11.417C53.699 11.417 56.6389 12.5758 58.9323 14.505C59.0819 14.6309 59.2321 14.8185 59.3825 15.0614V11.1608Z", fill: "#F0AB00" }));
345
345
  Z(ps);
346
- ye(void 0);
346
+ be(void 0);
347
347
  const ms = {
348
348
  position: "relative",
349
349
  zIndex: "1"
@@ -354,7 +354,7 @@ const ms = {
354
354
  }, [n]), e ? Xr(/* @__PURE__ */ _.jsx("div", { className: "juno-portal", style: ms, children: t }), n.current || document.body) : null;
355
355
  };
356
356
  hs.displayName = "PortalProvider.Portal";
357
- const gs = ye(void 0), vs = ({
357
+ const gs = be(void 0), vs = ({
358
358
  title: t,
359
359
  titleId: n,
360
360
  ...e
@@ -390,11 +390,11 @@ const gs = ye(void 0), vs = ({
390
390
  title: t,
391
391
  titleId: n,
392
392
  ...e
393
- }, 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: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })), js = Z(Ns), Fs = ({
393
+ }, 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: "M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" })), Fs = Z(Ns), js = ({
394
394
  title: t,
395
395
  titleId: n,
396
396
  ...e
397
- }, 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: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })), Ls = Z(Fs), Rs = ({
397
+ }, 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: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })), Ls = Z(js), Rs = ({
398
398
  title: t,
399
399
  titleId: n,
400
400
  ...e
@@ -410,11 +410,11 @@ const gs = ye(void 0), vs = ({
410
410
  title: t,
411
411
  titleId: n,
412
412
  ...e
413
- }, 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: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" })), Ws = Z($s), Us = ({
413
+ }, 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: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" })), Us = Z($s), Ws = ({
414
414
  title: t,
415
415
  titleId: n,
416
416
  ...e
417
- }, r) => /* @__PURE__ */ d.createElement("svg", { width: "24px", height: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M22,17.9999996 L22,19.9999996 L2,19.9999996 L2,17.9999996 L22,17.9999996 Z M12,6.428571 C14.7642857,6.428571 17.0146825,8.23991359 17.1375716,10.5179164 L17.1428571,10.7142853 L17.1428571,16.7142853 L6.85714286,16.7142853 L6.85714286,10.7142853 L6.86242835,10.5179164 C6.98531746,8.23991359 9.23571429,6.428571 12,6.428571 Z M12,7.71428529 L12,15.428571 L15.8571429,15.428571 L15.8571429,11.1428567 L15.851803,10.960591 C15.745448,9.15003461 14.0636603,7.71428529 12,7.71428529 Z M19.075912,3.96838198 L20.490712,5.38218198 L18.370012,7.50438202 L16.955212,6.09058202 L19.075912,3.96838198 Z M4.956739,3.939208 L7.078039,6.060508 L5.663839,7.474708 L3.542539,5.353408 L4.956739,3.939208 Z M13,1.428571 L13,4.428571 L11,4.428571 L11,1.428571 L13,1.428571 Z" })), Ys = Z(Us), Gs = ({
417
+ }, r) => /* @__PURE__ */ d.createElement("svg", { width: "24px", height: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M22,17.9999996 L22,19.9999996 L2,19.9999996 L2,17.9999996 L22,17.9999996 Z M12,6.428571 C14.7642857,6.428571 17.0146825,8.23991359 17.1375716,10.5179164 L17.1428571,10.7142853 L17.1428571,16.7142853 L6.85714286,16.7142853 L6.85714286,10.7142853 L6.86242835,10.5179164 C6.98531746,8.23991359 9.23571429,6.428571 12,6.428571 Z M12,7.71428529 L12,15.428571 L15.8571429,15.428571 L15.8571429,11.1428567 L15.851803,10.960591 C15.745448,9.15003461 14.0636603,7.71428529 12,7.71428529 Z M19.075912,3.96838198 L20.490712,5.38218198 L18.370012,7.50438202 L16.955212,6.09058202 L19.075912,3.96838198 Z M4.956739,3.939208 L7.078039,6.060508 L5.663839,7.474708 L3.542539,5.353408 L4.956739,3.939208 Z M13,1.428571 L13,4.428571 L11,4.428571 L11,1.428571 L13,1.428571 Z" })), Ys = Z(Ws), Gs = ({
418
418
  title: t,
419
419
  titleId: n,
420
420
  ...e
@@ -502,11 +502,11 @@ const gs = ye(void 0), vs = ({
502
502
  title: t,
503
503
  titleId: n,
504
504
  ...e
505
- }, 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 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm-7 6-4 4h3v6h2v-6h3l-4-4z" })), jc = Z(Nc), Fc = ({
505
+ }, 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 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm-7 6-4 4h3v6h2v-6h3l-4-4z" })), Fc = Z(Nc), jc = ({
506
506
  title: t,
507
507
  titleId: n,
508
508
  ...e
509
- }, 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 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" })), Lc = Z(Fc), Rc = ({
509
+ }, 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 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" })), Lc = Z(jc), Rc = ({
510
510
  title: t,
511
511
  titleId: n,
512
512
  ...e
@@ -522,11 +522,11 @@ const gs = ye(void 0), vs = ({
522
522
  title: t,
523
523
  titleId: n,
524
524
  ...e
525
- }, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-low", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 20L20 5H4L12 20Z" })), Wc = Z($c), Uc = ({
525
+ }, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-low", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 20L20 5H4L12 20Z" })), Uc = Z($c), Wc = ({
526
526
  title: t,
527
527
  titleId: n,
528
528
  ...e
529
- }, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-medium", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 5L20 20H4L12 5Z" })), Yc = Z(Uc), Gc = ({
529
+ }, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-medium", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 5L20 20H4L12 5Z" })), Yc = Z(Wc), Gc = ({
530
530
  title: t,
531
531
  titleId: n,
532
532
  ...e
@@ -704,7 +704,7 @@ const yu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
704
704
  );
705
705
  case "check":
706
706
  return /* @__PURE__ */ _.jsx(
707
- js,
707
+ Fs,
708
708
  {
709
709
  width: e,
710
710
  height: e,
@@ -782,7 +782,7 @@ const yu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
782
782
  );
783
783
  case "contentCopy":
784
784
  return /* @__PURE__ */ _.jsx(
785
- Ws,
785
+ Us,
786
786
  {
787
787
  width: e,
788
788
  height: e,
@@ -1081,7 +1081,7 @@ const yu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
1081
1081
  );
1082
1082
  case "openInBrowser":
1083
1083
  return /* @__PURE__ */ _.jsx(
1084
- jc,
1084
+ Fc,
1085
1085
  {
1086
1086
  width: e,
1087
1087
  height: e,
@@ -1133,7 +1133,7 @@ const yu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
1133
1133
  );
1134
1134
  case "severityLow":
1135
1135
  return /* @__PURE__ */ _.jsx(
1136
- Wc,
1136
+ Uc,
1137
1137
  {
1138
1138
  width: e,
1139
1139
  height: e,
@@ -1530,11 +1530,11 @@ const yu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
1530
1530
  default:
1531
1531
  return Qo;
1532
1532
  }
1533
- }, ju = `
1533
+ }, Fu = `
1534
1534
  jn:mr-2
1535
- `, Fu = `
1535
+ `, ju = `
1536
1536
  jn:mr-2
1537
- `, Lu = (t) => t === "small" ? `${ju}` : `${Fu}`, ti = (t) => t ? "in-progress" : "", Ru = (t) => {
1537
+ `, Lu = (t) => t === "small" ? `${Fu}` : `${ju}`, ti = (t) => t ? "in-progress" : "", Ru = (t) => {
1538
1538
  switch (t) {
1539
1539
  case "default":
1540
1540
  return "jn:text-theme-accent";
@@ -1652,7 +1652,7 @@ const Hu = `
1652
1652
  `, $u = `
1653
1653
  jn:opacity-50
1654
1654
  jn:cursor-not-allowed
1655
- `, Wu = V.forwardRef(
1655
+ `, Uu = V.forwardRef(
1656
1656
  ({
1657
1657
  text: t = "",
1658
1658
  htmlFor: n,
@@ -1691,9 +1691,9 @@ const Hu = `
1691
1691
  }
1692
1692
  )
1693
1693
  );
1694
- Wu.displayName = "Label";
1695
- ye(void 0);
1696
- const Uu = 4, Yu = 1, Gu = {
1694
+ Uu.displayName = "Label";
1695
+ be(void 0);
1696
+ const Wu = 4, Yu = 1, Gu = {
1697
1697
  base00: "var(--color-syntax-highlight-base00)",
1698
1698
  // background
1699
1699
  base01: "var(--color-syntax-highlight-base01)",
@@ -1762,7 +1762,7 @@ const Uu = 4, Yu = 1, Gu = {
1762
1762
  });
1763
1763
  V.createContext({
1764
1764
  colors: Ku(Gu),
1765
- indentWidth: Uu,
1765
+ indentWidth: Wu,
1766
1766
  expanded: Yu
1767
1767
  });
1768
1768
  const ta = typeof document < "u" ? V.useLayoutEffect : () => {
@@ -1785,11 +1785,11 @@ const gt = (t) => {
1785
1785
  function na(t, n) {
1786
1786
  return n && t ? t.contains(n) : !1;
1787
1787
  }
1788
- const Fr = (t = document) => t.activeElement;
1788
+ const jr = (t = document) => t.activeElement;
1789
1789
  function ra(t) {
1790
1790
  return t.target;
1791
1791
  }
1792
- function Un(t) {
1792
+ function Wn(t) {
1793
1793
  var n;
1794
1794
  return typeof window > "u" || window.navigator == null ? !1 : ((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.brands.some((e) => t.test(e.brand))) || t.test(window.navigator.userAgent);
1795
1795
  }
@@ -1816,15 +1816,15 @@ st(function() {
1816
1816
  return eo() || Qu();
1817
1817
  });
1818
1818
  st(function() {
1819
- return Un(/AppleWebKit/i) && !Ju();
1819
+ return Wn(/AppleWebKit/i) && !Ju();
1820
1820
  });
1821
1821
  const Ju = st(function() {
1822
- return Un(/Chrome/i);
1822
+ return Wn(/Chrome/i);
1823
1823
  }), ed = st(function() {
1824
- return Un(/Android/i);
1824
+ return Wn(/Android/i);
1825
1825
  });
1826
1826
  st(function() {
1827
- return Un(/Firefox/i);
1827
+ return Wn(/Firefox/i);
1828
1828
  });
1829
1829
  function oa() {
1830
1830
  let t = ie(/* @__PURE__ */ new Map()), n = le((o, i, a, l) => {
@@ -2010,7 +2010,7 @@ function ud(t) {
2010
2010
  r,
2011
2011
  o
2012
2012
  ]), a = aa(i), l = le((s) => {
2013
- const u = gt(s.target), c = u ? Fr(u) : Fr();
2013
+ const u = gt(s.target), c = u ? jr(u) : jr();
2014
2014
  s.target === s.currentTarget && c === ra(s.nativeEvent) && (e && e(s), o && o(!0), a(s));
2015
2015
  }, [
2016
2016
  o,
@@ -2036,7 +2036,7 @@ function dd(t) {
2036
2036
  l
2037
2037
  ]), u = aa(s), c = le((g) => {
2038
2038
  if (!g.currentTarget.contains(g.target)) return;
2039
- const h = gt(g.target), f = Fr(h);
2039
+ const h = gt(g.target), f = jr(h);
2040
2040
  if (!i.current.isFocusWithin && f === ra(g.nativeEvent)) {
2041
2041
  r && r(g), o && o(!0), i.current.isFocusWithin = !0, u(g);
2042
2042
  let v = g.currentTarget;
@@ -2297,7 +2297,7 @@ function no({ disabled: t = !1 } = {}) {
2297
2297
  });
2298
2298
  return { pressed: e, pressProps: t ? {} : { onPointerDown: a, onPointerUp: i, onClick: i } };
2299
2299
  }
2300
- let bd = ye(void 0);
2300
+ let bd = be(void 0);
2301
2301
  function Kn() {
2302
2302
  return Ee(bd);
2303
2303
  }
@@ -2456,7 +2456,7 @@ function Md(t, n) {
2456
2456
  let { features: r = 1, ...o } = t, i = { ref: n, "aria-hidden": (r & 2) === 2 ? !0 : (e = o["aria-hidden"]) != null ? e : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
2457
2457
  return De()({ ourProps: i, theirProps: o, slot: {}, defaultTag: Dd, name: "Hidden" });
2458
2458
  }
2459
- let ya = Me(Md), Sd = ye(null);
2459
+ let ya = Me(Md), Sd = be(null);
2460
2460
  function kd({ children: t }) {
2461
2461
  let n = Ee(Sd);
2462
2462
  if (!n) return V.createElement(V.Fragment, null, t);
@@ -2481,7 +2481,7 @@ function Td({ setForm: t, formId: n }) {
2481
2481
  r && t(r);
2482
2482
  } });
2483
2483
  }
2484
- let Id = ye(void 0);
2484
+ let Id = be(void 0);
2485
2485
  function oo() {
2486
2486
  return Ee(Id);
2487
2487
  }
@@ -2515,16 +2515,16 @@ function Nd(t) {
2515
2515
  function xa(t) {
2516
2516
  return Je(t) && t.nodeName === "LEGEND";
2517
2517
  }
2518
- function jd(t) {
2518
+ function Fd(t) {
2519
2519
  return Zn(t) ? t.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
2520
2520
  }
2521
2521
  function ao(t) {
2522
2522
  let n = t.parentElement, e = null;
2523
2523
  for (; n && !Nd(n); ) xa(n) && (e = n), n = n.parentElement;
2524
2524
  let r = n?.getAttribute("disabled") === "";
2525
- return r && Fd(e) ? !1 : r;
2525
+ return r && jd(e) ? !1 : r;
2526
2526
  }
2527
- function Fd(t) {
2527
+ function jd(t) {
2528
2528
  if (!t) return !1;
2529
2529
  let n = t.previousElementSibling;
2530
2530
  for (; n !== null; ) {
@@ -2547,7 +2547,7 @@ function Ie(...t) {
2547
2547
  });
2548
2548
  return t.every((r) => r == null || r?.[Ea]) ? void 0 : e;
2549
2549
  }
2550
- let qn = ye(null);
2550
+ let qn = be(null);
2551
2551
  qn.displayName = "DescriptionContext";
2552
2552
  function Ca() {
2553
2553
  let t = Ee(qn);
@@ -2581,7 +2581,7 @@ function Hd(t, n) {
2581
2581
  let Bd = Me(Hd);
2582
2582
  Object.assign(Bd, {});
2583
2583
  var ne = ((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))(ne || {});
2584
- let Xn = ye(null);
2584
+ let Xn = be(null);
2585
2585
  Xn.displayName = "LabelContext";
2586
2586
  function lo() {
2587
2587
  let t = Ee(Xn);
@@ -2613,7 +2613,7 @@ function Vd(t, n) {
2613
2613
  ve(() => o.register(l), [l, o.register]);
2614
2614
  let h = X((x) => {
2615
2615
  let M = x.currentTarget;
2616
- if (!(x.target !== x.currentTarget && jd(x.target)) && (oi(M) && x.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(x), oi(M))) {
2616
+ if (!(x.target !== x.currentTarget && Fd(x.target)) && (oi(M) && x.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(x), oi(M))) {
2617
2617
  let D = document.getElementById(M.htmlFor);
2618
2618
  if (D) {
2619
2619
  let T = D.getAttribute("disabled");
@@ -2627,7 +2627,7 @@ function Vd(t, n) {
2627
2627
  return u && ("onClick" in b && (delete b.htmlFor, delete b.onClick), "onClick" in c && delete c.onClick), De()({ ourProps: b, theirProps: c, slot: v, defaultTag: s ? zd : "div", name: o.name || "Label" });
2628
2628
  }
2629
2629
  let $d = Me(Vd), Da = Object.assign($d, {});
2630
- function Ft(t, n, e) {
2630
+ function jt(t, n, e) {
2631
2631
  let r = e.initialDeps ?? [], o;
2632
2632
  function i() {
2633
2633
  var a, l, s, u;
@@ -2667,7 +2667,7 @@ function ii(t, n) {
2667
2667
  throw new Error("Unexpected undefined");
2668
2668
  return t;
2669
2669
  }
2670
- const Wd = (t, n) => Math.abs(t - n) < 1.01, Ud = (t, n, e) => {
2670
+ const Ud = (t, n) => Math.abs(t - n) < 1.01, Wd = (t, n, e) => {
2671
2671
  let r;
2672
2672
  return function(...o) {
2673
2673
  t.clearTimeout(r), r = t.setTimeout(() => n.apply(this, o), e);
@@ -2722,7 +2722,7 @@ const Wd = (t, n) => Math.abs(t - n) < 1.01, Ud = (t, n, e) => {
2722
2722
  return;
2723
2723
  let o = 0;
2724
2724
  const i = t.options.useScrollendEvent && si ? () => {
2725
- } : Ud(
2725
+ } : Wd(
2726
2726
  r,
2727
2727
  () => {
2728
2728
  n(o, !1);
@@ -2816,7 +2816,7 @@ class Qd {
2816
2816
  }, this.notify = (e) => {
2817
2817
  var r, o;
2818
2818
  (o = (r = this.options).onChange) == null || o.call(r, this, e);
2819
- }, this.maybeNotify = Ft(
2819
+ }, this.maybeNotify = jt(
2820
2820
  () => (this.calculateRange(), [
2821
2821
  this.isScrolling,
2822
2822
  this.range ? this.range.startIndex : null,
@@ -2874,7 +2874,7 @@ class Qd {
2874
2874
  break;
2875
2875
  }
2876
2876
  return i.size === this.options.lanes ? Array.from(i.values()).sort((a, l) => a.end === l.end ? a.index - l.index : a.end - l.end)[0] : void 0;
2877
- }, this.getMeasurementOptions = Ft(
2877
+ }, this.getMeasurementOptions = jt(
2878
2878
  () => [
2879
2879
  this.options.count,
2880
2880
  this.options.paddingStart,
@@ -2892,7 +2892,7 @@ class Qd {
2892
2892
  {
2893
2893
  key: !1
2894
2894
  }
2895
- ), this.getMeasurements = Ft(
2895
+ ), this.getMeasurements = jt(
2896
2896
  () => [this.getMeasurementOptions(), this.itemSizeCache],
2897
2897
  ({ count: e, paddingStart: r, scrollMargin: o, getItemKey: i, enabled: a }, l) => {
2898
2898
  if (!a)
@@ -2920,7 +2920,7 @@ class Qd {
2920
2920
  key: process.env.NODE_ENV !== "production" && "getMeasurements",
2921
2921
  debug: () => this.options.debug
2922
2922
  }
2923
- ), this.calculateRange = Ft(
2923
+ ), this.calculateRange = jt(
2924
2924
  () => [
2925
2925
  this.getMeasurements(),
2926
2926
  this.getSize(),
@@ -2937,7 +2937,7 @@ class Qd {
2937
2937
  key: process.env.NODE_ENV !== "production" && "calculateRange",
2938
2938
  debug: () => this.options.debug
2939
2939
  }
2940
- ), this.getVirtualIndexes = Ft(
2940
+ ), this.getVirtualIndexes = jt(
2941
2941
  () => {
2942
2942
  let e = null, r = null;
2943
2943
  const o = this.calculateRange();
@@ -2987,7 +2987,7 @@ class Qd {
2987
2987
  return;
2988
2988
  }
2989
2989
  this._measureElement(e, void 0);
2990
- }, this.getVirtualItems = Ft(
2990
+ }, this.getVirtualItems = jt(
2991
2991
  () => [this.getVirtualIndexes(), this.getMeasurements()],
2992
2992
  (e, r) => {
2993
2993
  const o = [];
@@ -3061,7 +3061,7 @@ class Qd {
3061
3061
  console.warn("Failed to get offset for index:", e);
3062
3062
  return;
3063
3063
  }
3064
- Wd(v[0], f) || s(h);
3064
+ Ud(v[0], f) || s(h);
3065
3065
  });
3066
3066
  }, s = (u) => {
3067
3067
  this.targetWindow && (i++, i < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", i, a), this.targetWindow.requestAnimationFrame(() => l(u))) : console.warn(
@@ -3328,15 +3328,15 @@ function ff() {
3328
3328
  function x(R) {
3329
3329
  if (!M) {
3330
3330
  if (M = !0, D = R, R = g(R), h !== void 0 && v.hasValue) {
3331
- var F = v.value;
3332
- if (h(F, R))
3333
- return T = F;
3331
+ var j = v.value;
3332
+ if (h(j, R))
3333
+ return T = j;
3334
3334
  }
3335
3335
  return T = R;
3336
3336
  }
3337
- if (F = T, e(D, R)) return F;
3337
+ if (j = T, e(D, R)) return j;
3338
3338
  var P = g(R);
3339
- return h !== void 0 && h(F, P) ? (D = R, F) : (D = R, T = P);
3339
+ return h !== void 0 && h(j, P) ? (D = R, j) : (D = R, T = P);
3340
3340
  }
3341
3341
  var M = !1, D, T, L = c === void 0 ? null : c;
3342
3342
  return [
@@ -3371,7 +3371,7 @@ var mi = {};
3371
3371
  */
3372
3372
  var hi;
3373
3373
  function pf() {
3374
- return hi || (hi = 1, process.env.NODE_ENV !== "production" && function() {
3374
+ return hi || (hi = 1, process.env.NODE_ENV !== "production" && (function() {
3375
3375
  function t(s, u) {
3376
3376
  return s === u && (s !== 0 || 1 / s === 1 / u) || s !== s && u !== u;
3377
3377
  }
@@ -3388,16 +3388,16 @@ function pf() {
3388
3388
  function x(R) {
3389
3389
  if (!M) {
3390
3390
  if (M = !0, D = R, R = g(R), h !== void 0 && v.hasValue) {
3391
- var F = v.value;
3392
- if (h(F, R))
3393
- return T = F;
3391
+ var j = v.value;
3392
+ if (h(j, R))
3393
+ return T = j;
3394
3394
  }
3395
3395
  return T = R;
3396
3396
  }
3397
- if (F = T, e(D, R))
3398
- return F;
3397
+ if (j = T, e(D, R))
3398
+ return j;
3399
3399
  var P = g(R);
3400
- return h !== void 0 && h(F, P) ? (D = R, F) : (D = R, T = P);
3400
+ return h !== void 0 && h(j, P) ? (D = R, j) : (D = R, T = P);
3401
3401
  }
3402
3402
  var M = !1, D, T, L = c === void 0 ? null : c;
3403
3403
  return [
@@ -3419,7 +3419,7 @@ function pf() {
3419
3419
  [b]
3420
3420
  ), l(b), b;
3421
3421
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3422
- }()), mi;
3422
+ })()), mi;
3423
3423
  }
3424
3424
  var gi;
3425
3425
  function mf() {
@@ -3493,10 +3493,10 @@ function co(t, n, e) {
3493
3493
  return () => i.dispose();
3494
3494
  }, [n, r, t]);
3495
3495
  }
3496
- let jn = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), vf = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
3496
+ let Fn = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), vf = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
3497
3497
  var tn = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(tn || {}), bf = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(bf || {}), yf = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(yf || {});
3498
3498
  function Na(t = document.body) {
3499
- return t == null ? [] : Array.from(t.querySelectorAll(jn)).sort((n, e) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
3499
+ return t == null ? [] : Array.from(t.querySelectorAll(Fn)).sort((n, e) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
3500
3500
  }
3501
3501
  function wf(t = document.body) {
3502
3502
  return t == null ? [] : Array.from(t.querySelectorAll(vf)).sort((n, e) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
@@ -3505,17 +3505,17 @@ var tr = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(tr |
3505
3505
  function nr(t, n = 0) {
3506
3506
  var e;
3507
3507
  return t === ((e = It(t)) == null ? void 0 : e.body) ? !1 : Te(n, { 0() {
3508
- return t.matches(jn);
3508
+ return t.matches(Fn);
3509
3509
  }, 1() {
3510
3510
  let r = t;
3511
3511
  for (; r !== null; ) {
3512
- if (r.matches(jn)) return !0;
3512
+ if (r.matches(Fn)) return !0;
3513
3513
  r = r.parentElement;
3514
3514
  }
3515
3515
  return !1;
3516
3516
  } });
3517
3517
  }
3518
- function ja(t) {
3518
+ function Fa(t) {
3519
3519
  let n = It(t);
3520
3520
  He().nextFrame(() => {
3521
3521
  n && ut(n.activeElement) && !nr(n.activeElement, 0) && Ef(t);
@@ -3543,7 +3543,7 @@ function rr(t, n = (e) => e) {
3543
3543
  return a & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : a & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
3544
3544
  });
3545
3545
  }
3546
- function Fa(t, n) {
3546
+ function ja(t, n) {
3547
3547
  return Df(Na(), n, { relativeTo: t });
3548
3548
  }
3549
3549
  function Df(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
@@ -3607,9 +3607,9 @@ function uo(t, n, e) {
3607
3607
  if (l.defaultPrevented) return;
3608
3608
  let u = s(l);
3609
3609
  if (u === null || !u.getRootNode().contains(u) || !u.isConnected) return;
3610
- let c = function g(h) {
3610
+ let c = (function g(h) {
3611
3611
  return typeof h == "function" ? g(h()) : Array.isArray(h) || h instanceof Set ? h : [h];
3612
- }(n);
3612
+ })(n);
3613
3613
  for (let g of c) if (g !== null && (g.contains(u) || l.composed && l.composedPath().includes(g))) return;
3614
3614
  return !nr(u, tr.Loose) && u.tabIndex !== -1 && l.preventDefault(), r.current(l, u);
3615
3615
  }, [r, n]), i = ie(null);
@@ -3714,7 +3714,7 @@ function Nf() {
3714
3714
  e.style(r, "paddingRight", `${i}px`);
3715
3715
  } };
3716
3716
  }
3717
- function jf() {
3717
+ function Ff() {
3718
3718
  return La() ? { before({ doc: t, d: n, meta: e }) {
3719
3719
  function r(o) {
3720
3720
  return e.containers.flatMap((i) => i()).some((i) => i.contains(o));
@@ -3757,7 +3757,7 @@ function jf() {
3757
3757
  });
3758
3758
  } } : {};
3759
3759
  }
3760
- function Ff() {
3760
+ function jf() {
3761
3761
  return { before({ doc: t, d: n }) {
3762
3762
  n.style(t.documentElement, "overflow", "hidden");
3763
3763
  } };
@@ -3775,7 +3775,7 @@ let Ct = Pf(() => /* @__PURE__ */ new Map(), { PUSH(t, n) {
3775
3775
  let e = this.get(t);
3776
3776
  return e && (e.count--, e.meta.delete(n)), this;
3777
3777
  }, SCROLL_PREVENT({ doc: t, d: n, meta: e }) {
3778
- let r = { doc: t, d: n, meta: Lf(e) }, o = [jf(), Nf(), Ff()];
3778
+ let r = { doc: t, d: n, meta: Lf(e) }, o = [Ff(), Nf(), jf()];
3779
3779
  o.forEach(({ before: i }) => i?.(r)), o.forEach(({ after: i }) => i?.(r));
3780
3780
  }, SCROLL_ALLOW({ d: t }) {
3781
3781
  t.dispose();
@@ -3907,7 +3907,7 @@ function or() {
3907
3907
  function zt(t) {
3908
3908
  return Ha(t) ? (t.nodeName || "").toLowerCase() : "#document";
3909
3909
  }
3910
- function We(t) {
3910
+ function Ue(t) {
3911
3911
  var n;
3912
3912
  return (t == null || (n = t.ownerDocument) == null ? void 0 : n.defaultView) || window;
3913
3913
  }
@@ -3916,16 +3916,16 @@ function at(t) {
3916
3916
  return (n = (Ha(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : n.documentElement;
3917
3917
  }
3918
3918
  function Ha(t) {
3919
- return or() ? t instanceof Node || t instanceof We(t).Node : !1;
3919
+ return or() ? t instanceof Node || t instanceof Ue(t).Node : !1;
3920
3920
  }
3921
- function Fe(t) {
3922
- return or() ? t instanceof Element || t instanceof We(t).Element : !1;
3921
+ function je(t) {
3922
+ return or() ? t instanceof Element || t instanceof Ue(t).Element : !1;
3923
3923
  }
3924
3924
  function it(t) {
3925
- return or() ? t instanceof HTMLElement || t instanceof We(t).HTMLElement : !1;
3925
+ return or() ? t instanceof HTMLElement || t instanceof Ue(t).HTMLElement : !1;
3926
3926
  }
3927
3927
  function Oi(t) {
3928
- return !or() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof We(t).ShadowRoot;
3928
+ return !or() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Ue(t).ShadowRoot;
3929
3929
  }
3930
3930
  function un(t) {
3931
3931
  const {
@@ -3949,10 +3949,10 @@ function ir(t) {
3949
3949
  });
3950
3950
  }
3951
3951
  function bo(t) {
3952
- const n = yo(), e = Fe(t) ? Qe(t) : t;
3952
+ const n = yo(), e = je(t) ? Qe(t) : t;
3953
3953
  return ["transform", "translate", "scale", "rotate", "perspective"].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) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (e.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (e.contain || "").includes(r));
3954
3954
  }
3955
- function Wf(t) {
3955
+ function Uf(t) {
3956
3956
  let n = mt(t);
3957
3957
  for (; it(n) && !Bt(n); ) {
3958
3958
  if (bo(n))
@@ -3970,10 +3970,10 @@ function Bt(t) {
3970
3970
  return ["html", "body", "#document"].includes(zt(t));
3971
3971
  }
3972
3972
  function Qe(t) {
3973
- return We(t).getComputedStyle(t);
3973
+ return Ue(t).getComputedStyle(t);
3974
3974
  }
3975
3975
  function ar(t) {
3976
- return Fe(t) ? {
3976
+ return je(t) ? {
3977
3977
  scrollLeft: t.scrollLeft,
3978
3978
  scrollTop: t.scrollTop
3979
3979
  } : {
@@ -4000,7 +4000,7 @@ function Ba(t) {
4000
4000
  function nn(t, n, e) {
4001
4001
  var r;
4002
4002
  n === void 0 && (n = []), e === void 0 && (e = !0);
4003
- const o = Ba(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), a = We(o);
4003
+ const o = Ba(t), i = o === ((r = t.ownerDocument) == null ? void 0 : r.body), a = Ue(o);
4004
4004
  if (i) {
4005
4005
  const l = Vr(a);
4006
4006
  return n.concat(a, a.visualViewport || [], un(o) ? o : [], l && e ? nn(l) : []);
@@ -4010,7 +4010,7 @@ function nn(t, n, e) {
4010
4010
  function Vr(t) {
4011
4011
  return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
4012
4012
  }
4013
- function Uf() {
4013
+ function Wf() {
4014
4014
  const t = navigator.userAgentData;
4015
4015
  return t && Array.isArray(t.brands) ? t.brands.map((n) => {
4016
4016
  let {
@@ -4020,7 +4020,7 @@ function Uf() {
4020
4020
  return e + "/" + r;
4021
4021
  }).join(" ") : navigator.userAgent;
4022
4022
  }
4023
- const St = Math.min, je = Math.max, rn = Math.round, xn = Math.floor, ot = (t) => ({
4023
+ const St = Math.min, Fe = Math.max, rn = Math.round, xn = Math.floor, ot = (t) => ({
4024
4024
  x: t,
4025
4025
  y: t
4026
4026
  }), Yf = {
@@ -4033,7 +4033,7 @@ const St = Math.min, je = Math.max, rn = Math.round, xn = Math.floor, ot = (t) =
4033
4033
  end: "start"
4034
4034
  };
4035
4035
  function Di(t, n, e) {
4036
- return je(t, St(n, e));
4036
+ return Fe(t, St(n, e));
4037
4037
  }
4038
4038
  function Vt(t, n) {
4039
4039
  return typeof t == "function" ? t(n) : t;
@@ -4060,10 +4060,10 @@ function Kf(t, n, e) {
4060
4060
  e === void 0 && (e = !1);
4061
4061
  const r = dn(t), o = $a(t), i = Va(o);
4062
4062
  let a = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
4063
- return n.reference[i] > n.floating[i] && (a = Fn(a)), [a, Fn(a)];
4063
+ return n.reference[i] > n.floating[i] && (a = jn(a)), [a, jn(a)];
4064
4064
  }
4065
4065
  function Zf(t) {
4066
- const n = Fn(t);
4066
+ const n = jn(t);
4067
4067
  return [$r(t), n, $r(n)];
4068
4068
  }
4069
4069
  function $r(t) {
@@ -4087,7 +4087,7 @@ function Xf(t, n, e, r) {
4087
4087
  let i = qf(ht(t), e === "start", r);
4088
4088
  return o && (i = i.map((a) => a + "-" + o), n && (i = i.concat(i.map($r)))), i;
4089
4089
  }
4090
- function Fn(t) {
4090
+ function jn(t) {
4091
4091
  return t.replace(/left|right|bottom|top/g, (n) => Yf[n]);
4092
4092
  }
4093
4093
  function Qf(t) {
@@ -4129,8 +4129,8 @@ function Ln(t) {
4129
4129
  * tabbable 6.2.0
4130
4130
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
4131
4131
  */
4132
- var Wa = ["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])"], Rn = /* @__PURE__ */ Wa.join(","), Ua = typeof Element > "u", kt = Ua ? function() {
4133
- } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _n = !Ua && Element.prototype.getRootNode ? function(t) {
4132
+ var Ua = ["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])"], Rn = /* @__PURE__ */ Ua.join(","), Wa = typeof Element > "u", kt = Wa ? function() {
4133
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, _n = !Wa && Element.prototype.getRootNode ? function(t) {
4134
4134
  var n;
4135
4135
  return t == null || (n = t.getRootNode) === null || n === void 0 ? void 0 : n.call(t);
4136
4136
  } : function(t) {
@@ -4275,7 +4275,7 @@ var Wa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4275
4275
  // note related to `candidateSelectors`)
4276
4276
  Hn(n) || rp(n) || up(n, t) || // For a details element with a summary, the summary element gets the focus
4277
4277
  op(n) || dp(n));
4278
- }, Wr = function(t, n) {
4278
+ }, Ur = function(t, n) {
4279
4279
  return !(sp(n) || ct(n) < 0 || !Bn(t, n));
4280
4280
  }, fp = function(t) {
4281
4281
  var n = parseInt(t.getAttribute("tabindex"), 10);
@@ -4298,11 +4298,11 @@ var Wa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4298
4298
  n = n || {};
4299
4299
  var e;
4300
4300
  return n.getShadowRoot ? e = Ga([t], n.includeContainer, {
4301
- filter: Wr.bind(null, n),
4301
+ filter: Ur.bind(null, n),
4302
4302
  flatten: !1,
4303
4303
  getShadowRoot: n.getShadowRoot,
4304
4304
  shadowRootFilter: fp
4305
- }) : e = Ya(t, n.includeContainer, Wr.bind(null, n)), pp(e);
4305
+ }) : e = Ya(t, n.includeContainer, Ur.bind(null, n)), pp(e);
4306
4306
  }, Xa = function(t, n) {
4307
4307
  n = n || {};
4308
4308
  var e;
@@ -4314,8 +4314,8 @@ var Wa = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
4314
4314
  }, yt = function(t, n) {
4315
4315
  if (n = n || {}, !t)
4316
4316
  throw new Error("No node provided");
4317
- return kt.call(t, Rn) === !1 ? !1 : Wr(n, t);
4318
- }, mp = /* @__PURE__ */ Wa.concat("iframe").join(","), Mn = function(t, n) {
4317
+ return kt.call(t, Rn) === !1 ? !1 : Ur(n, t);
4318
+ }, mp = /* @__PURE__ */ Ua.concat("iframe").join(","), Mn = function(t, n) {
4319
4319
  if (n = n || {}, !t)
4320
4320
  throw new Error("No node provided");
4321
4321
  return kt.call(t, mp) === !1 ? !1 : Bn(n, t);
@@ -4506,8 +4506,8 @@ const vp = function(t) {
4506
4506
  } = Vt(t, n);
4507
4507
  if ((e = i.arrow) != null && e.alignmentOffset)
4508
4508
  return {};
4509
- const M = ht(o), D = dt(l), T = ht(l) === l, L = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), R = h || (T || !b ? [Fn(l)] : Zf(l)), F = v !== "none";
4510
- !h && F && R.push(...Xf(l, b, v, L));
4509
+ const M = ht(o), D = dt(l), T = ht(l) === l, L = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), R = h || (T || !b ? [jn(l)] : Zf(l)), j = v !== "none";
4510
+ !h && j && R.push(...Xf(l, b, v, L));
4511
4511
  const P = [l, ...R], k = await lr(n, x), N = [];
4512
4512
  let E = ((r = i.flip) == null ? void 0 : r.overflows) || [];
4513
4513
  if (c && N.push(k[M]), g) {
@@ -4519,10 +4519,10 @@ const vp = function(t) {
4519
4519
  overflows: N
4520
4520
  }], !N.every((I) => I <= 0)) {
4521
4521
  var y, C;
4522
- const I = (((y = i.flip) == null ? void 0 : y.index) || 0) + 1, W = P[I];
4523
- if (W) {
4524
- var j;
4525
- const $ = g === "alignment" ? D !== dt(W) : !1, A = ((j = E[0]) == null ? void 0 : j.overflows[0]) > 0;
4522
+ const I = (((y = i.flip) == null ? void 0 : y.index) || 0) + 1, U = P[I];
4523
+ if (U) {
4524
+ var F;
4525
+ const $ = g === "alignment" ? D !== dt(U) : !1, A = ((F = E[0]) == null ? void 0 : F.overflows[0]) > 0;
4526
4526
  if (!$ || A)
4527
4527
  return {
4528
4528
  data: {
@@ -4530,7 +4530,7 @@ const vp = function(t) {
4530
4530
  overflows: E
4531
4531
  },
4532
4532
  reset: {
4533
- placement: W
4533
+ placement: U
4534
4534
  }
4535
4535
  };
4536
4536
  }
@@ -4540,7 +4540,7 @@ const vp = function(t) {
4540
4540
  case "bestFit": {
4541
4541
  var B;
4542
4542
  const $ = (B = E.filter((A) => {
4543
- if (F) {
4543
+ if (j) {
4544
4544
  const O = dt(A.placement);
4545
4545
  return O === D || // Create a bias to the `y` side axis due to horizontal
4546
4546
  // reading directions favoring greater width.
@@ -4692,11 +4692,11 @@ const yp = function(t) {
4692
4692
  } = i.floating;
4693
4693
  let x, M;
4694
4694
  g === "top" || g === "bottom" ? (x = g, M = h === (await (a.isRTL == null ? void 0 : a.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (M = g, x = h === "end" ? "top" : "bottom");
4695
- const D = b - c.top - c.bottom, T = v - c.left - c.right, L = St(b - c[x], D), R = St(v - c[M], T), F = !n.middlewareData.shift;
4695
+ const D = b - c.top - c.bottom, T = v - c.left - c.right, L = St(b - c[x], D), R = St(v - c[M], T), j = !n.middlewareData.shift;
4696
4696
  let P = L, k = R;
4697
- if ((e = n.middlewareData.shift) != null && e.enabled.x && (k = T), (r = n.middlewareData.shift) != null && r.enabled.y && (P = D), F && !h) {
4698
- const E = je(c.left, 0), y = je(c.right, 0), C = je(c.top, 0), j = je(c.bottom, 0);
4699
- f ? k = v - 2 * (E !== 0 || y !== 0 ? E + y : je(c.left, c.right)) : P = b - 2 * (C !== 0 || j !== 0 ? C + j : je(c.top, c.bottom));
4697
+ if ((e = n.middlewareData.shift) != null && e.enabled.x && (k = T), (r = n.middlewareData.shift) != null && r.enabled.y && (P = D), j && !h) {
4698
+ const E = Fe(c.left, 0), y = Fe(c.right, 0), C = Fe(c.top, 0), F = Fe(c.bottom, 0);
4699
+ f ? k = v - 2 * (E !== 0 || y !== 0 ? E + y : Fe(c.left, c.right)) : P = b - 2 * (C !== 0 || F !== 0 ? C + F : Fe(c.top, c.bottom));
4700
4700
  }
4701
4701
  await s({
4702
4702
  ...n,
@@ -4723,7 +4723,7 @@ function Qa(t) {
4723
4723
  };
4724
4724
  }
4725
4725
  function wo(t) {
4726
- return Fe(t) ? t : t.contextElement;
4726
+ return je(t) ? t : t.contextElement;
4727
4727
  }
4728
4728
  function Rt(t) {
4729
4729
  const n = wo(t);
@@ -4742,28 +4742,28 @@ function Rt(t) {
4742
4742
  }
4743
4743
  const Ep = /* @__PURE__ */ ot(0);
4744
4744
  function Ja(t) {
4745
- const n = We(t);
4745
+ const n = Ue(t);
4746
4746
  return !yo() || !n.visualViewport ? Ep : {
4747
4747
  x: n.visualViewport.offsetLeft,
4748
4748
  y: n.visualViewport.offsetTop
4749
4749
  };
4750
4750
  }
4751
4751
  function Cp(t, n, e) {
4752
- return n === void 0 && (n = !1), !e || n && e !== We(t) ? !1 : n;
4752
+ return n === void 0 && (n = !1), !e || n && e !== Ue(t) ? !1 : n;
4753
4753
  }
4754
4754
  function Tt(t, n, e, r) {
4755
4755
  n === void 0 && (n = !1), e === void 0 && (e = !1);
4756
4756
  const o = t.getBoundingClientRect(), i = wo(t);
4757
4757
  let a = ot(1);
4758
- n && (r ? Fe(r) && (a = Rt(r)) : a = Rt(t));
4758
+ n && (r ? je(r) && (a = Rt(r)) : a = Rt(t));
4759
4759
  const l = Cp(i, e, r) ? Ja(i) : ot(0);
4760
4760
  let s = (o.left + l.x) / a.x, u = (o.top + l.y) / a.y, c = o.width / a.x, g = o.height / a.y;
4761
4761
  if (i) {
4762
- const h = We(i), f = r && Fe(r) ? We(r) : r;
4762
+ const h = Ue(i), f = r && je(r) ? Ue(r) : r;
4763
4763
  let v = h, b = Vr(v);
4764
4764
  for (; b && r && f !== v; ) {
4765
4765
  const x = Rt(b), M = b.getBoundingClientRect(), D = Qe(b), T = M.left + (b.clientLeft + parseFloat(D.paddingLeft)) * x.x, L = M.top + (b.clientTop + parseFloat(D.paddingTop)) * x.y;
4766
- s *= x.x, u *= x.y, c *= x.x, g *= x.y, s += T, u += L, v = We(b), b = Vr(v);
4766
+ s *= x.x, u *= x.y, c *= x.x, g *= x.y, s += T, u += L, v = Ue(b), b = Vr(v);
4767
4767
  }
4768
4768
  }
4769
4769
  return Ln({
@@ -4819,10 +4819,10 @@ function Dp(t) {
4819
4819
  return Array.from(t.getClientRects());
4820
4820
  }
4821
4821
  function Mp(t) {
4822
- const n = at(t), e = ar(t), r = t.ownerDocument.body, o = je(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), i = je(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
4822
+ const n = at(t), e = ar(t), r = t.ownerDocument.body, o = Fe(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), i = Fe(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
4823
4823
  let a = -e.scrollLeft + xo(t);
4824
4824
  const l = -e.scrollTop;
4825
- return Qe(r).direction === "rtl" && (a += je(n.clientWidth, r.clientWidth) - o), {
4825
+ return Qe(r).direction === "rtl" && (a += Fe(n.clientWidth, r.clientWidth) - o), {
4826
4826
  width: o,
4827
4827
  height: i,
4828
4828
  x: a,
@@ -4830,7 +4830,7 @@ function Mp(t) {
4830
4830
  };
4831
4831
  }
4832
4832
  function Sp(t, n) {
4833
- const e = We(t), r = at(t), o = e.visualViewport;
4833
+ const e = Ue(t), r = at(t), o = e.visualViewport;
4834
4834
  let i = r.clientWidth, a = r.clientHeight, l = 0, s = 0;
4835
4835
  if (o) {
4836
4836
  i = o.width, a = o.height;
@@ -4859,7 +4859,7 @@ function ki(t, n, e) {
4859
4859
  r = Sp(t, e);
4860
4860
  else if (n === "document")
4861
4861
  r = Mp(at(t));
4862
- else if (Fe(n))
4862
+ else if (je(n))
4863
4863
  r = kp(n, e);
4864
4864
  else {
4865
4865
  const o = Ja(t);
@@ -4874,16 +4874,16 @@ function ki(t, n, e) {
4874
4874
  }
4875
4875
  function tl(t, n) {
4876
4876
  const e = mt(t);
4877
- return e === n || !Fe(e) || Bt(e) ? !1 : Qe(e).position === "fixed" || tl(e, n);
4877
+ return e === n || !je(e) || Bt(e) ? !1 : Qe(e).position === "fixed" || tl(e, n);
4878
4878
  }
4879
4879
  function Tp(t, n) {
4880
4880
  const e = n.get(t);
4881
4881
  if (e)
4882
4882
  return e;
4883
- let r = nn(t, [], !1).filter((l) => Fe(l) && zt(l) !== "body"), o = null;
4883
+ let r = nn(t, [], !1).filter((l) => je(l) && zt(l) !== "body"), o = null;
4884
4884
  const i = Qe(t).position === "fixed";
4885
4885
  let a = i ? mt(t) : t;
4886
- for (; Fe(a) && !Bt(a); ) {
4886
+ for (; je(a) && !Bt(a); ) {
4887
4887
  const l = Qe(a), s = bo(a);
4888
4888
  !s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o && ["absolute", "fixed"].includes(o.position) || un(a) && !s && tl(t, a)) ? r = r.filter((u) => u !== a) : o = l, a = mt(a);
4889
4889
  }
@@ -4898,7 +4898,7 @@ function Ip(t) {
4898
4898
  } = t;
4899
4899
  const i = [...e === "clippingAncestors" ? ir(n) ? [] : Tp(n, this._c) : [].concat(e), r], a = i[0], l = i.reduce((s, u) => {
4900
4900
  const c = ki(n, u, o);
4901
- return s.top = je(c.top, s.top), s.right = St(c.right, s.right), s.bottom = St(c.bottom, s.bottom), s.left = je(c.left, s.left), s;
4901
+ return s.top = Fe(c.top, s.top), s.right = St(c.right, s.right), s.bottom = St(c.bottom, s.bottom), s.left = Fe(c.left, s.left), s;
4902
4902
  }, ki(n, a, o));
4903
4903
  return {
4904
4904
  width: l.right - l.left,
@@ -4953,13 +4953,13 @@ function Ti(t, n) {
4953
4953
  return at(t) === e && (e = e.ownerDocument.body), e;
4954
4954
  }
4955
4955
  function nl(t, n) {
4956
- const e = We(t);
4956
+ const e = Ue(t);
4957
4957
  if (ir(t))
4958
4958
  return e;
4959
4959
  if (!it(t)) {
4960
4960
  let o = mt(t);
4961
4961
  for (; o && !Bt(o); ) {
4962
- if (Fe(o) && !Or(o))
4962
+ if (je(o) && !Or(o))
4963
4963
  return o;
4964
4964
  o = mt(o);
4965
4965
  }
@@ -4968,7 +4968,7 @@ function nl(t, n) {
4968
4968
  let r = Ti(t, n);
4969
4969
  for (; r && $f(r) && Or(r); )
4970
4970
  r = Ti(r, n);
4971
- return r && Bt(r) && Or(r) && !bo(r) ? e : r || Wf(t) || e;
4971
+ return r && Bt(r) && Or(r) && !bo(r) ? e : r || Uf(t) || e;
4972
4972
  }
4973
4973
  const Np = async function(t) {
4974
4974
  const n = this.getOffsetParent || nl, e = this.getDimensions, r = await e(t.floating);
@@ -4982,10 +4982,10 @@ const Np = async function(t) {
4982
4982
  }
4983
4983
  };
4984
4984
  };
4985
- function jp(t) {
4985
+ function Fp(t) {
4986
4986
  return Qe(t).direction === "rtl";
4987
4987
  }
4988
- const Fp = {
4988
+ const jp = {
4989
4989
  convertOffsetParentRelativeRectToViewportRelativeRect: Op,
4990
4990
  getDocumentElement: at,
4991
4991
  getClippingRect: Ip,
@@ -4994,8 +4994,8 @@ const Fp = {
4994
4994
  getClientRects: Dp,
4995
4995
  getDimensions: Ap,
4996
4996
  getScale: Rt,
4997
- isElement: Fe,
4998
- isRTL: jp
4997
+ isElement: je,
4998
+ isRTL: Fp
4999
4999
  };
5000
5000
  function rl(t, n) {
5001
5001
  return t.x === n.x && t.y === n.y && t.width === n.width && t.height === n.height;
@@ -5019,19 +5019,19 @@ function Lp(t, n) {
5019
5019
  return;
5020
5020
  const v = xn(g), b = xn(o.clientWidth - (c + h)), x = xn(o.clientHeight - (g + f)), M = xn(c), D = {
5021
5021
  rootMargin: -v + "px " + -b + "px " + -x + "px " + -M + "px",
5022
- threshold: je(0, St(1, s)) || 1
5022
+ threshold: Fe(0, St(1, s)) || 1
5023
5023
  };
5024
5024
  let T = !0;
5025
5025
  function L(R) {
5026
- const F = R[0].intersectionRatio;
5027
- if (F !== s) {
5026
+ const j = R[0].intersectionRatio;
5027
+ if (j !== s) {
5028
5028
  if (!T)
5029
5029
  return a();
5030
- F ? a(!1, F) : r = setTimeout(() => {
5030
+ j ? a(!1, j) : r = setTimeout(() => {
5031
5031
  a(!1, 1e-7);
5032
5032
  }, 1e3);
5033
5033
  }
5034
- F === 1 && !rl(u, t.getBoundingClientRect()) && a(), T = !1;
5034
+ j === 1 && !rl(u, t.getBoundingClientRect()) && a(), T = !1;
5035
5035
  }
5036
5036
  try {
5037
5037
  e = new IntersectionObserver(L, {
@@ -5084,7 +5084,7 @@ function Rp(t, n, e, r) {
5084
5084
  }
5085
5085
  const Dr = lr, _p = yp, Hp = wp, Bp = vp, zp = xp, Vp = (t, n, e) => {
5086
5086
  const r = /* @__PURE__ */ new Map(), o = {
5087
- platform: Fp,
5087
+ platform: jp,
5088
5088
  ...e
5089
5089
  }, i = {
5090
5090
  ...o.platform,
@@ -5163,18 +5163,18 @@ function $p(t) {
5163
5163
  }), [h, f] = d.useState(r);
5164
5164
  zn(h, r) || f(r);
5165
5165
  const [v, b] = d.useState(null), [x, M] = d.useState(null), D = d.useCallback(($) => {
5166
- $ !== F.current && (F.current = $, b($));
5166
+ $ !== j.current && (j.current = $, b($));
5167
5167
  }, []), T = d.useCallback(($) => {
5168
5168
  $ !== P.current && (P.current = $, M($));
5169
- }, []), L = i || v, R = a || x, F = d.useRef(null), P = d.useRef(null), k = d.useRef(c), N = s != null, E = Mr(s), y = Mr(o), C = Mr(u), j = d.useCallback(() => {
5170
- if (!F.current || !P.current)
5169
+ }, []), L = i || v, R = a || x, j = d.useRef(null), P = d.useRef(null), k = d.useRef(c), N = s != null, E = Mr(s), y = Mr(o), C = Mr(u), F = d.useCallback(() => {
5170
+ if (!j.current || !P.current)
5171
5171
  return;
5172
5172
  const $ = {
5173
5173
  placement: n,
5174
5174
  strategy: e,
5175
5175
  middleware: h
5176
5176
  };
5177
- y.current && ($.platform = y.current), Vp(F.current, P.current, $).then((A) => {
5177
+ y.current && ($.platform = y.current), Vp(j.current, P.current, $).then((A) => {
5178
5178
  const O = {
5179
5179
  ...A,
5180
5180
  // The floating element's position may be recomputed while it's closed
@@ -5198,18 +5198,18 @@ function $p(t) {
5198
5198
  Sn(() => (B.current = !0, () => {
5199
5199
  B.current = !1;
5200
5200
  }), []), Sn(() => {
5201
- if (L && (F.current = L), R && (P.current = R), L && R) {
5201
+ if (L && (j.current = L), R && (P.current = R), L && R) {
5202
5202
  if (E.current)
5203
- return E.current(L, R, j);
5204
- j();
5203
+ return E.current(L, R, F);
5204
+ F();
5205
5205
  }
5206
- }, [L, R, j, E, N]);
5206
+ }, [L, R, F, E, N]);
5207
5207
  const I = d.useMemo(() => ({
5208
- reference: F,
5208
+ reference: j,
5209
5209
  floating: P,
5210
5210
  setReference: D,
5211
5211
  setFloating: T
5212
- }), [D, T]), W = d.useMemo(() => ({
5212
+ }), [D, T]), U = d.useMemo(() => ({
5213
5213
  reference: L,
5214
5214
  floating: R
5215
5215
  }), [L, R]), K = d.useMemo(() => {
@@ -5218,13 +5218,13 @@ function $p(t) {
5218
5218
  left: 0,
5219
5219
  top: 0
5220
5220
  };
5221
- if (!W.floating)
5221
+ if (!U.floating)
5222
5222
  return $;
5223
- const A = Ii(W.floating, c.x), O = Ii(W.floating, c.y);
5223
+ const A = Ii(U.floating, c.x), O = Ii(U.floating, c.y);
5224
5224
  return l ? {
5225
5225
  ...$,
5226
5226
  transform: "translate(" + A + "px, " + O + "px)",
5227
- ...ol(W.floating) >= 1.5 && {
5227
+ ...ol(U.floating) >= 1.5 && {
5228
5228
  willChange: "transform"
5229
5229
  }
5230
5230
  } : {
@@ -5232,22 +5232,22 @@ function $p(t) {
5232
5232
  left: A,
5233
5233
  top: O
5234
5234
  };
5235
- }, [e, l, W.floating, c.x, c.y]);
5235
+ }, [e, l, U.floating, c.x, c.y]);
5236
5236
  return d.useMemo(() => ({
5237
5237
  ...c,
5238
- update: j,
5238
+ update: F,
5239
5239
  refs: I,
5240
- elements: W,
5240
+ elements: U,
5241
5241
  floatingStyles: K
5242
- }), [c, j, I, W, K]);
5242
+ }), [c, F, I, U, K]);
5243
5243
  }
5244
5244
  const il = (t, n) => ({
5245
5245
  ..._p(t),
5246
5246
  options: [t, n]
5247
- }), Wp = (t, n) => ({
5247
+ }), Up = (t, n) => ({
5248
5248
  ...Hp(t),
5249
5249
  options: [t, n]
5250
- }), Up = (t, n) => ({
5250
+ }), Wp = (t, n) => ({
5251
5251
  ...Bp(t),
5252
5252
  options: [t, n]
5253
5253
  }), Yp = (t, n) => ({
@@ -5269,7 +5269,7 @@ function ll(t) {
5269
5269
  return n.current == null ? void 0 : n.current(...r);
5270
5270
  }, []);
5271
5271
  }
5272
- var Ur = typeof document < "u" ? qr : Ce;
5272
+ var Wr = typeof document < "u" ? qr : Ce;
5273
5273
  let Ai = !1, Zp = 0;
5274
5274
  const Pi = () => (
5275
5275
  // Ensure the id is unique with multiple independent versions of Floating UI
@@ -5278,7 +5278,7 @@ const Pi = () => (
5278
5278
  );
5279
5279
  function qp() {
5280
5280
  const [t, n] = d.useState(() => Ai ? Pi() : void 0);
5281
- return Ur(() => {
5281
+ return Wr(() => {
5282
5282
  t == null && n(Pi());
5283
5283
  }, []), d.useEffect(() => {
5284
5284
  Ai = !0;
@@ -5333,7 +5333,7 @@ function lm(t) {
5333
5333
  } = t, o = Qp(), i = d.useRef({}), [a] = d.useState(() => tm()), l = om() != null;
5334
5334
  if (process.env.NODE_ENV !== "production") {
5335
5335
  const f = r.reference;
5336
- f && !Fe(f) && em("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
5336
+ f && !je(f) && em("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
5337
5337
  }
5338
5338
  const [s, u] = d.useState(r.reference), c = ll((f, v, b) => {
5339
5339
  i.current.openEvent = f ? v : void 0, a.emit("openchange", {
@@ -5371,7 +5371,7 @@ function sm(t) {
5371
5371
  ...t.elements
5372
5372
  }
5373
5373
  }), 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), g = im();
5374
- Ur(() => {
5374
+ Wr(() => {
5375
5375
  u && (c.current = u);
5376
5376
  }, [u]);
5377
5377
  const h = $p({
@@ -5383,16 +5383,16 @@ function sm(t) {
5383
5383
  }
5384
5384
  }
5385
5385
  }), f = d.useCallback((D) => {
5386
- const T = Fe(D) ? {
5386
+ const T = je(D) ? {
5387
5387
  getBoundingClientRect: () => D.getBoundingClientRect(),
5388
5388
  contextElement: D
5389
5389
  } : D;
5390
5390
  s(T), h.refs.setReference(T);
5391
5391
  }, [h.refs]), v = d.useCallback((D) => {
5392
- (Fe(D) || D === null) && (c.current = D, a(D)), (Fe(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
5392
+ (je(D) || D === null) && (c.current = D, a(D)), (je(h.refs.reference.current) || h.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
5393
5393
  // `null` to support `positionReference` + an unstable `reference`
5394
5394
  // callback ref.
5395
- D !== null && !Fe(D)) && h.refs.setReference(D);
5395
+ D !== null && !je(D)) && h.refs.setReference(D);
5396
5396
  }, [h.refs]), b = d.useMemo(() => ({
5397
5397
  ...h.refs,
5398
5398
  setReference: v,
@@ -5408,7 +5408,7 @@ function sm(t) {
5408
5408
  elements: x,
5409
5409
  nodeId: n
5410
5410
  }), [h, b, x, n, r]);
5411
- return Ur(() => {
5411
+ return Wr(() => {
5412
5412
  r.dataRef.current.floatingContext = M;
5413
5413
  const D = g?.nodesRef.current.find((T) => T.id === n);
5414
5414
  D && (D.context = M);
@@ -5419,14 +5419,14 @@ function sm(t) {
5419
5419
  elements: x
5420
5420
  }), [h, b, x, M]);
5421
5421
  }
5422
- const Ni = "active", ji = "selected";
5422
+ const Ni = "active", Fi = "selected";
5423
5423
  function Sr(t, n, e) {
5424
5424
  const r = /* @__PURE__ */ new Map(), o = e === "item";
5425
5425
  let i = t;
5426
5426
  if (o && t) {
5427
5427
  const {
5428
5428
  [Ni]: a,
5429
- [ji]: l,
5429
+ [Fi]: l,
5430
5430
  ...s
5431
5431
  } = t;
5432
5432
  i = s;
@@ -5442,7 +5442,7 @@ function Sr(t, n, e) {
5442
5442
  return typeof l == "function" ? t ? l(t) : null : l;
5443
5443
  }).concat(t).reduce((a, l) => (l && Object.entries(l).forEach((s) => {
5444
5444
  let [u, c] = s;
5445
- if (!(o && [Ni, ji].includes(u)))
5445
+ if (!(o && [Ni, Fi].includes(u)))
5446
5446
  if (u.indexOf("on") === 0) {
5447
5447
  if (r.has(u) || r.set(u, []), typeof c == "function") {
5448
5448
  var g;
@@ -5478,7 +5478,7 @@ function cm(t) {
5478
5478
  getItemProps: a
5479
5479
  }), [o, i, a]);
5480
5480
  }
5481
- function Fi(t, n) {
5481
+ function ji(t, n) {
5482
5482
  return {
5483
5483
  ...t,
5484
5484
  rects: {
@@ -5515,15 +5515,15 @@ const um = (t) => ({
5515
5515
  const T = {
5516
5516
  ...n,
5517
5517
  ...await il(-f.offsetTop - h.clientTop - g.reference.height / 2 - f.offsetHeight / 2 - i).fn(n)
5518
- }, L = await Dr(Fi(T, v.scrollHeight + b + h.clientTop), c), R = await Dr(T, {
5518
+ }, L = await Dr(ji(T, v.scrollHeight + b + h.clientTop), c), R = await Dr(T, {
5519
5519
  ...c,
5520
5520
  elementContext: "reference"
5521
- }), F = je(0, L.top), P = T.y + F, k = (v.scrollHeight > v.clientHeight ? (N) => N : rn)(je(0, v.scrollHeight + (x && D || M ? b * 2 : 0) - F - je(0, L.bottom)));
5522
- if (v.style.maxHeight = k + "px", v.scrollTop = F, o) {
5521
+ }), j = Fe(0, L.top), P = T.y + j, k = (v.scrollHeight > v.clientHeight ? (N) => N : rn)(Fe(0, v.scrollHeight + (x && D || M ? b * 2 : 0) - j - Fe(0, L.bottom)));
5522
+ if (v.style.maxHeight = k + "px", v.scrollTop = j, o) {
5523
5523
  const N = v.offsetHeight < f.offsetHeight * St(l, e.current.length) - 1 || R.top >= -s || R.bottom >= -s;
5524
5524
  kn.flushSync(() => o(N));
5525
5525
  }
5526
- return r && (r.current = await Dr(Fi({
5526
+ return r && (r.current = await Dr(ji({
5527
5527
  ...T,
5528
5528
  y: P
5529
5529
  }, v.offsetHeight + b + h.clientTop), c)), {
@@ -5548,8 +5548,8 @@ function dm(t, n) {
5548
5548
  return;
5549
5549
  const x = b.deltaY, M = i.current.top >= -0.5, D = i.current.bottom >= -0.5, T = v.scrollHeight - v.clientHeight, L = x < 0 ? -1 : 1, R = x < 0 ? "max" : "min";
5550
5550
  v.scrollHeight <= v.clientHeight || (!M && x > 0 || !D && x < 0 ? (b.preventDefault(), kn.flushSync(() => {
5551
- s((F) => F + Math[R](x, T * L));
5552
- })) : /firefox/i.test(Uf()) && (v.scrollTop += x));
5551
+ s((j) => j + Math[R](x, T * L));
5552
+ })) : /firefox/i.test(Wf()) && (v.scrollTop += x));
5553
5553
  }
5554
5554
  const v = a?.current || r.floating;
5555
5555
  if (e && v)
@@ -5588,11 +5588,11 @@ function dm(t, n) {
5588
5588
  floating: h
5589
5589
  } : {}, [o, h]);
5590
5590
  }
5591
- let $t = ye({ styles: void 0, setReference: () => {
5591
+ let $t = be({ styles: void 0, setReference: () => {
5592
5592
  }, setFloating: () => {
5593
5593
  }, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
5594
5594
  $t.displayName = "FloatingContext";
5595
- let Eo = ye(null);
5595
+ let Eo = be(null);
5596
5596
  Eo.displayName = "PlacementContext";
5597
5597
  function Co(t) {
5598
5598
  return se(() => t ? typeof t == "string" ? { to: t } : t : null, [t]);
@@ -5627,32 +5627,32 @@ function So({ children: t, enabled: n = !0 }) {
5627
5627
  ve(() => {
5628
5628
  u && i(0);
5629
5629
  }, [u]);
5630
- let { refs: M, floatingStyles: D, context: T } = sm({ open: u, placement: b === "selection" ? x === "center" ? "bottom" : `bottom-${x}` : x === "center" ? `${b}` : `${b}-${x}`, strategy: "absolute", transform: !1, middleware: [il({ mainAxis: b === "selection" ? 0 : g, crossAxis: h }), Wp({ padding: f }), b !== "selection" && Up({ padding: f }), b === "selection" && v ? um({ ...v, padding: f, overflowRef: a, offset: o, minItemsVisible: Li, referenceOverflowThreshold: f, onFallbackChange(y) {
5631
- var C, j;
5630
+ let { refs: M, floatingStyles: D, context: T } = sm({ open: u, placement: b === "selection" ? x === "center" ? "bottom" : `bottom-${x}` : x === "center" ? `${b}` : `${b}-${x}`, strategy: "absolute", transform: !1, middleware: [il({ mainAxis: b === "selection" ? 0 : g, crossAxis: h }), Up({ padding: f }), b !== "selection" && Wp({ padding: f }), b === "selection" && v ? um({ ...v, padding: f, overflowRef: a, offset: o, minItemsVisible: Li, referenceOverflowThreshold: f, onFallbackChange(y) {
5631
+ var C, F;
5632
5632
  if (!y) return;
5633
5633
  let B = T.elements.floating;
5634
5634
  if (!B) return;
5635
- let I = parseFloat(getComputedStyle(B).scrollPaddingBottom) || 0, W = Math.min(Li, B.childElementCount), K = 0, $ = 0;
5636
- for (let A of (j = (C = T.elements.floating) == null ? void 0 : C.childNodes) != null ? j : []) if (Je(A)) {
5635
+ let I = parseFloat(getComputedStyle(B).scrollPaddingBottom) || 0, U = Math.min(Li, B.childElementCount), K = 0, $ = 0;
5636
+ for (let A of (F = (C = T.elements.floating) == null ? void 0 : C.childNodes) != null ? F : []) if (Je(A)) {
5637
5637
  let O = A.offsetTop, Y = O + A.clientHeight + I, J = B.scrollTop, ae = J + B.clientHeight;
5638
- if (O >= J && Y <= ae) W--;
5638
+ if (O >= J && Y <= ae) U--;
5639
5639
  else {
5640
5640
  $ = Math.max(0, Math.min(Y, ae) - Math.max(O, J)), K = A.clientHeight;
5641
5641
  break;
5642
5642
  }
5643
5643
  }
5644
- W >= 1 && i((A) => {
5645
- let O = K * W - $ + I;
5644
+ U >= 1 && i((A) => {
5645
+ let O = K * U - $ + I;
5646
5646
  return A >= O ? A : O;
5647
5647
  });
5648
- } }) : null, Yp({ padding: f, apply({ availableWidth: y, availableHeight: C, elements: j }) {
5649
- Object.assign(j.floating.style, { overflow: "auto", maxWidth: `${y}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${C}px)` });
5648
+ } }) : null, Yp({ padding: f, apply({ availableWidth: y, availableHeight: C, elements: F }) {
5649
+ Object.assign(F.floating.style, { overflow: "auto", maxWidth: `${y}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${C}px)` });
5650
5650
  } })].filter(Boolean), whileElementsMounted: Rp }), [L = b, R = x] = T.placement.split("-");
5651
5651
  b === "selection" && (L = "selection");
5652
- let F = se(() => ({ anchor: [L, R].filter(Boolean).join(" ") }), [L, R]), P = dm(T, { overflowRef: a, onChange: i }), { getReferenceProps: k, getFloatingProps: N } = cm([P]), E = X((y) => {
5652
+ let j = se(() => ({ anchor: [L, R].filter(Boolean).join(" ") }), [L, R]), P = dm(T, { overflowRef: a, onChange: i }), { getReferenceProps: k, getFloatingProps: N } = cm([P]), E = X((y) => {
5653
5653
  s(y), M.setFloating(y);
5654
5654
  });
5655
- return d.createElement(Eo.Provider, { value: r }, d.createElement($t.Provider, { value: { setFloating: E, setReference: M.setReference, styles: D, getReferenceProps: k, getFloatingProps: N, slot: F } }, t));
5655
+ return d.createElement(Eo.Provider, { value: r }, d.createElement($t.Provider, { value: { setFloating: E, setReference: M.setReference, styles: D, getReferenceProps: k, getFloatingProps: N, slot: j } }, t));
5656
5656
  }
5657
5657
  function fm(t) {
5658
5658
  ve(() => {
@@ -5733,9 +5733,9 @@ function Vn(t, n) {
5733
5733
  let [e, r] = xe(n);
5734
5734
  return !t && e !== n && r(n), t ? e : n;
5735
5735
  }
5736
- let ko = ye(null);
5736
+ let ko = be(null);
5737
5737
  ko.displayName = "OpenClosedContext";
5738
- var Ue = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(Ue || {});
5738
+ var We = ((t) => (t[t.Open = 1] = "Open", t[t.Closed = 2] = "Closed", t[t.Closing = 4] = "Closing", t[t.Opening = 8] = "Opening", t))(We || {});
5739
5739
  function To() {
5740
5740
  return Ee(ko);
5741
5741
  }
@@ -5753,7 +5753,7 @@ hm(() => {
5753
5753
  function t(n) {
5754
5754
  if (!ut(n.target) || n.target === document.body || wt[0] === n.target) return;
5755
5755
  let e = n.target;
5756
- e = e.closest(jn), wt.unshift(e ?? n.target), wt = wt.filter((r) => r != null && r.isConnected), wt.splice(10);
5756
+ e = e.closest(Fn), wt.unshift(e ?? n.target), wt = wt.filter((r) => r != null && r.isConnected), wt.splice(10);
5757
5757
  }
5758
5758
  window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
5759
5759
  });
@@ -5813,7 +5813,7 @@ function bm() {
5813
5813
  n !== !0 && e(!0);
5814
5814
  }, [n]), d.useEffect(() => Ot.handoff(), []), t ? !1 : n;
5815
5815
  }
5816
- let ym = ye(!1);
5816
+ let ym = be(!1);
5817
5817
  function wm() {
5818
5818
  return Ee(ym);
5819
5819
  }
@@ -5856,12 +5856,12 @@ function Cm(t, n) {
5856
5856
  let e = Ie(n), { enabled: r = !0, ownerDocument: o, ...i } = t, a = De();
5857
5857
  return r ? V.createElement(Em, { ...i, ownerDocument: o, ref: e }) : a({ ourProps: { ref: e }, theirProps: i, slot: {}, defaultTag: ul, name: "Portal" });
5858
5858
  }
5859
- let Om = Xe, dl = ye(null);
5859
+ let Om = Xe, dl = be(null);
5860
5860
  function Dm(t, n) {
5861
5861
  let { target: e, ...r } = t, o = { ref: Ie(n) }, i = De();
5862
5862
  return V.createElement(dl.Provider, { value: e }, i({ ourProps: o, theirProps: r, defaultTag: Om, name: "Popover.Group" }));
5863
5863
  }
5864
- let Mm = ye(null), Sm = Me(Cm), km = Me(Dm), Po = Object.assign(Sm, { Group: km });
5864
+ let Mm = be(null), Sm = Me(Cm), km = Me(Dm), Po = Object.assign(Sm, { Group: km });
5865
5865
  var Tm = Object.defineProperty, Im = (t, n, e) => n in t ? Tm(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, _i = (t, n, e) => (Im(t, typeof n != "symbol" ? n + "" : n, e), e), pe = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(pe || {}), $e = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))($e || {}), ft = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(ft || {}), fl = ((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))(fl || {});
5866
5866
  function Tr(t, n = (e) => e) {
5867
5867
  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) : rr(r, (a) => a.dataRef.current.domRef.current), i = e ? o.indexOf(e) : null;
@@ -6000,7 +6000,7 @@ let Am = { 1(t) {
6000
6000
  return Te(e.type, Am, n, e);
6001
6001
  }
6002
6002
  };
6003
- const ml = ye(null);
6003
+ const ml = be(null);
6004
6004
  function fn(t) {
6005
6005
  let n = Ee(ml);
6006
6006
  if (n === null) {
@@ -6013,19 +6013,19 @@ function hl({ id: t, virtual: n = null, __demoMode: e = !1 }) {
6013
6013
  let r = se(() => Pm.new({ id: t, virtual: n, __demoMode: e }), []);
6014
6014
  return sr(() => r.dispose()), r;
6015
6015
  }
6016
- let an = ye(null);
6016
+ let an = be(null);
6017
6017
  an.displayName = "ComboboxDataContext";
6018
- function Wt(t) {
6018
+ function Ut(t) {
6019
6019
  let n = Ee(an);
6020
6020
  if (n === null) {
6021
6021
  let e = new Error(`<${t} /> is missing a parent <Combobox /> component.`);
6022
- throw Error.captureStackTrace && Error.captureStackTrace(e, Wt), e;
6022
+ throw Error.captureStackTrace && Error.captureStackTrace(e, Ut), e;
6023
6023
  }
6024
6024
  return n;
6025
6025
  }
6026
- let gl = ye(null);
6026
+ let gl = be(null);
6027
6027
  function Nm(t) {
6028
- let n = fn("VirtualProvider"), e = Wt("VirtualProvider"), { options: r } = e.virtual, o = ue(n, (f) => f.optionsElement), [i, a] = se(() => {
6028
+ let n = fn("VirtualProvider"), e = Ut("VirtualProvider"), { options: r } = e.virtual, o = ue(n, (f) => f.optionsElement), [i, a] = se(() => {
6029
6029
  let f = o;
6030
6030
  if (!f) return [0, 0];
6031
6031
  let v = window.getComputedStyle(f);
@@ -6046,26 +6046,26 @@ function Nm(t) {
6046
6046
  return V.createElement(Xe, { key: f.key }, V.cloneElement((v = t.children) == null ? void 0 : v.call(t, { ...t.slot, option: r[f.index] }), { key: `${s}-${f.key}`, "data-index": f.index, "aria-setsize": r.length, "aria-posinset": f.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${f.start}px)`, overflowAnchor: "none" } }));
6047
6047
  })));
6048
6048
  }
6049
- let jm = Xe;
6050
- function Fm(t, n) {
6051
- let e = Pe(), r = Kn(), { value: o, defaultValue: i, onChange: a, form: l, name: s, by: u, invalid: c = !1, disabled: g = r || !1, onClose: h, __demoMode: f = !1, multiple: v = !1, immediate: b = !1, virtual: x = null, nullable: M, ...D } = t, T = ha(i), [L = v ? [] : void 0, R] = ma(o, a, T), F = hl({ id: e, virtual: x, __demoMode: f }), P = ie({ static: !1, hold: !1 }), k = Sa(u), N = X((z) => x ? u === null ? x.options.indexOf(z) : x.options.findIndex((fe) => k(fe, z)) : F.state.options.findIndex((fe) => k(fe.dataRef.current.value, z))), E = le((z) => Te(j.mode, { [$e.Multi]: () => L.some((fe) => k(fe, z)), [$e.Single]: () => k(L, z) }), [L]), y = ue(F, (z) => z.virtual), C = X(() => h?.()), j = se(() => ({ __demoMode: f, immediate: b, optionsPropsRef: P, value: L, defaultValue: T, disabled: g, invalid: c, mode: v ? $e.Multi : $e.Single, virtual: x ? y : null, onChange: R, isSelected: E, calculateIndex: N, compare: k, onClose: C }), [L, T, g, c, v, R, E, f, F, x, y, C]);
6049
+ let Fm = Xe;
6050
+ function jm(t, n) {
6051
+ let e = Pe(), r = Kn(), { value: o, defaultValue: i, onChange: a, form: l, name: s, by: u, invalid: c = !1, disabled: g = r || !1, onClose: h, __demoMode: f = !1, multiple: v = !1, immediate: b = !1, virtual: x = null, nullable: M, ...D } = t, T = ha(i), [L = v ? [] : void 0, R] = ma(o, a, T), j = hl({ id: e, virtual: x, __demoMode: f }), P = ie({ static: !1, hold: !1 }), k = Sa(u), N = X((z) => x ? u === null ? x.options.indexOf(z) : x.options.findIndex((fe) => k(fe, z)) : j.state.options.findIndex((fe) => k(fe.dataRef.current.value, z))), E = le((z) => Te(F.mode, { [$e.Multi]: () => L.some((fe) => k(fe, z)), [$e.Single]: () => k(L, z) }), [L]), y = ue(j, (z) => z.virtual), C = X(() => h?.()), F = se(() => ({ __demoMode: f, immediate: b, optionsPropsRef: P, value: L, defaultValue: T, disabled: g, invalid: c, mode: v ? $e.Multi : $e.Single, virtual: x ? y : null, onChange: R, isSelected: E, calculateIndex: N, compare: k, onClose: C }), [L, T, g, c, v, R, E, f, j, x, y, C]);
6052
6052
  ve(() => {
6053
6053
  var z;
6054
- x && F.send({ type: fl.UpdateVirtualConfiguration, options: x.options, disabled: (z = x.disabled) != null ? z : null });
6054
+ x && j.send({ type: fl.UpdateVirtualConfiguration, options: x.options, disabled: (z = x.disabled) != null ? z : null });
6055
6055
  }, [x, x?.options, x?.disabled]), ve(() => {
6056
- F.state.dataRef.current = j;
6057
- }, [j]);
6058
- let [B, I, W, K] = ue(F, (z) => [z.comboboxState, z.buttonElement, z.inputElement, z.optionsElement]), $ = Nt.get(null), A = ue($, le((z) => $.selectors.isTop(z, e), [$, e]));
6059
- uo(A, [I, W, K], () => F.actions.closeCombobox());
6060
- let O = ue(F, F.selectors.activeOptionIndex), Y = ue(F, F.selectors.activeOption), J = se(() => ({ open: B === pe.Open, disabled: g, invalid: c, activeIndex: O, activeOption: Y, value: L }), [j, g, L, c, Y, B]), [ae, G] = Qn(), de = n === null ? {} : { ref: n }, me = le(() => {
6056
+ j.state.dataRef.current = F;
6057
+ }, [F]);
6058
+ let [B, I, U, K] = ue(j, (z) => [z.comboboxState, z.buttonElement, z.inputElement, z.optionsElement]), $ = Nt.get(null), A = ue($, le((z) => $.selectors.isTop(z, e), [$, e]));
6059
+ uo(A, [I, U, K], () => j.actions.closeCombobox());
6060
+ let O = ue(j, j.selectors.activeOptionIndex), Y = ue(j, j.selectors.activeOption), J = se(() => ({ open: B === pe.Open, disabled: g, invalid: c, activeIndex: O, activeOption: Y, value: L }), [F, g, L, c, Y, B]), [ae, G] = Qn(), de = n === null ? {} : { ref: n }, me = le(() => {
6061
6061
  if (T !== void 0) return R?.(T);
6062
6062
  }, [R, T]), ee = De();
6063
- return V.createElement(G, { value: ae, props: { htmlFor: W?.id }, slot: { open: B === pe.Open, disabled: g } }, V.createElement(So, null, V.createElement(an.Provider, { value: j }, V.createElement(ml.Provider, { value: F }, V.createElement(Io, { value: Te(B, { [pe.Open]: Ue.Open, [pe.Closed]: Ue.Closed }) }, s != null && V.createElement(wa, { disabled: g, data: L != null ? { [s]: L } : {}, form: l, onReset: me }), ee({ ourProps: de, theirProps: D, slot: J, defaultTag: jm, name: "Combobox" }))))));
6063
+ return V.createElement(G, { value: ae, props: { htmlFor: U?.id }, slot: { open: B === pe.Open, disabled: g } }, V.createElement(So, null, V.createElement(an.Provider, { value: F }, V.createElement(ml.Provider, { value: j }, V.createElement(Io, { value: Te(B, { [pe.Open]: We.Open, [pe.Closed]: We.Closed }) }, s != null && V.createElement(wa, { disabled: g, data: L != null ? { [s]: L } : {}, form: l, onReset: me }), ee({ ourProps: de, theirProps: D, slot: J, defaultTag: Fm, name: "Combobox" }))))));
6064
6064
  }
6065
6065
  let Lm = "input";
6066
6066
  function Rm(t, n) {
6067
6067
  var e, r;
6068
- let o = fn("Combobox.Input"), i = Wt("Combobox.Input"), a = Pe(), l = oo(), { id: s = l || `headlessui-combobox-input-${a}`, onChange: u, displayValue: c, disabled: g = i.disabled || !1, autoFocus: h = !1, type: f = "text", ...v } = t, [b] = ue(o, (G) => [G.inputElement]), x = ie(null), M = Ie(x, n, Oo(), o.actions.setInputElement), D = pt(b), [T, L] = ue(o, (G) => [G.comboboxState, G.isTyping]), R = At(), F = X(() => {
6068
+ let o = fn("Combobox.Input"), i = Ut("Combobox.Input"), a = Pe(), l = oo(), { id: s = l || `headlessui-combobox-input-${a}`, onChange: u, displayValue: c, disabled: g = i.disabled || !1, autoFocus: h = !1, type: f = "text", ...v } = t, [b] = ue(o, (G) => [G.inputElement]), x = ie(null), M = Ie(x, n, Oo(), o.actions.setInputElement), D = pt(b), [T, L] = ue(o, (G) => [G.comboboxState, G.isTyping]), R = At(), j = X(() => {
6069
6069
  o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus: Q.Nothing });
6070
6070
  }), P = se(() => {
6071
6071
  var G;
@@ -6121,34 +6121,34 @@ function Rm(t, n) {
6121
6121
  case ne.PageDown:
6122
6122
  return G.preventDefault(), G.stopPropagation(), o.actions.goToOption({ focus: Q.Last });
6123
6123
  case ne.Escape:
6124
- return o.state.comboboxState !== pe.Open ? void 0 : (G.preventDefault(), o.state.optionsElement && !i.optionsPropsRef.current.static && G.stopPropagation(), i.mode === $e.Single && i.value === null && F(), o.actions.closeCombobox());
6124
+ return o.state.comboboxState !== pe.Open ? void 0 : (G.preventDefault(), o.state.optionsElement && !i.optionsPropsRef.current.static && G.stopPropagation(), i.mode === $e.Single && i.value === null && j(), o.actions.closeCombobox());
6125
6125
  case ne.Tab:
6126
6126
  if (o.state.comboboxState !== pe.Open) return;
6127
6127
  i.mode === $e.Single && o.state.activationTrigger !== ft.Focus && o.actions.selectActiveOption(), o.actions.closeCombobox();
6128
6128
  break;
6129
6129
  }
6130
6130
  }), C = X((G) => {
6131
- u?.(G), i.mode === $e.Single && G.target.value === "" && F(), o.actions.openCombobox();
6132
- }), j = X((G) => {
6131
+ u?.(G), i.mode === $e.Single && G.target.value === "" && j(), o.actions.openCombobox();
6132
+ }), F = X((G) => {
6133
6133
  var de, me, ee;
6134
6134
  let z = (de = G.relatedTarget) != null ? de : wt.find((fe) => fe !== G.currentTarget);
6135
- if (!((me = o.state.optionsElement) != null && me.contains(z)) && !((ee = o.state.buttonElement) != null && ee.contains(z)) && o.state.comboboxState === pe.Open) return G.preventDefault(), i.mode === $e.Single && i.value === null && F(), o.actions.closeCombobox();
6135
+ if (!((me = o.state.optionsElement) != null && me.contains(z)) && !((ee = o.state.buttonElement) != null && ee.contains(z)) && o.state.comboboxState === pe.Open) return G.preventDefault(), i.mode === $e.Single && i.value === null && j(), o.actions.closeCombobox();
6136
6136
  }), B = X((G) => {
6137
6137
  var de, me, ee;
6138
6138
  let z = (de = G.relatedTarget) != null ? de : wt.find((fe) => fe !== G.currentTarget);
6139
6139
  (me = o.state.buttonElement) != null && me.contains(z) || (ee = o.state.optionsElement) != null && ee.contains(z) || i.disabled || i.immediate && o.state.comboboxState !== pe.Open && R.microTask(() => {
6140
6140
  Re(() => o.actions.openCombobox()), o.actions.setActivationTrigger(ft.Focus);
6141
6141
  });
6142
- }), I = cn(), W = Oa(), { isFocused: K, focusProps: $ } = Gn({ autoFocus: h }), { isHovered: A, hoverProps: O } = Yn({ isDisabled: g }), Y = ue(o, (G) => G.optionsElement), J = se(() => ({ open: T === pe.Open, disabled: g, invalid: i.invalid, hover: A, focus: K, autofocus: h }), [i, A, K, h, g, i.invalid]), ae = Pt({ ref: M, id: s, role: "combobox", type: f, "aria-controls": Y?.id, "aria-expanded": T === pe.Open, "aria-activedescendant": ue(o, o.selectors.activeDescendantId), "aria-labelledby": I, "aria-describedby": W, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : i.defaultValue !== void 0 ? c?.(i.defaultValue) : null) != null ? r : i.defaultValue, disabled: g || void 0, autoFocus: h, onCompositionStart: N, onCompositionEnd: E, onKeyDown: y, onChange: C, onFocus: B, onBlur: j }, $, O);
6142
+ }), I = cn(), U = Oa(), { isFocused: K, focusProps: $ } = Gn({ autoFocus: h }), { isHovered: A, hoverProps: O } = Yn({ isDisabled: g }), Y = ue(o, (G) => G.optionsElement), J = se(() => ({ open: T === pe.Open, disabled: g, invalid: i.invalid, hover: A, focus: K, autofocus: h }), [i, A, K, h, g, i.invalid]), ae = Pt({ ref: M, id: s, role: "combobox", type: f, "aria-controls": Y?.id, "aria-expanded": T === pe.Open, "aria-activedescendant": ue(o, o.selectors.activeDescendantId), "aria-labelledby": I, "aria-describedby": U, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : i.defaultValue !== void 0 ? c?.(i.defaultValue) : null) != null ? r : i.defaultValue, disabled: g || void 0, autoFocus: h, onCompositionStart: N, onCompositionEnd: E, onKeyDown: y, onChange: C, onFocus: B, onBlur: F }, $, O);
6143
6143
  return De()({ ourProps: ae, theirProps: v, slot: J, defaultTag: Lm, name: "Combobox.Input" });
6144
6144
  }
6145
6145
  let _m = "button";
6146
6146
  function Hm(t, n) {
6147
- let e = fn("Combobox.Button"), r = Wt("Combobox.Button"), [o, i] = xe(null), a = Ie(n, i, e.actions.setButtonElement), l = Pe(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...g } = t, [h, f, v] = ue(e, (C) => [C.comboboxState, C.inputElement, C.optionsElement]), b = Ra(f), x = h === pe.Open;
6147
+ let e = fn("Combobox.Button"), r = Ut("Combobox.Button"), [o, i] = xe(null), a = Ie(n, i, e.actions.setButtonElement), l = Pe(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...g } = t, [h, f, v] = ue(e, (C) => [C.comboboxState, C.inputElement, C.optionsElement]), b = Ra(f), x = h === pe.Open;
6148
6148
  fo(x, { trigger: o, action: le((C) => {
6149
6149
  if (o != null && o.contains(C.target) || f != null && f.contains(C.target)) return qe.Ignore;
6150
- let j = C.target.closest('[role="option"]:not([data-disabled])');
6151
- return Je(j) ? qe.Select(j) : v != null && v.contains(C.target) ? qe.Ignore : qe.Close;
6150
+ let F = C.target.closest('[role="option"]:not([data-disabled])');
6151
+ return Je(F) ? qe.Select(F) : v != null && v.contains(C.target) ? qe.Ignore : qe.Close;
6152
6152
  }, [o, f, v]), close: e.actions.closeCombobox, select: e.actions.selectActiveOption });
6153
6153
  let M = X((C) => {
6154
6154
  switch (C.key) {
@@ -6171,34 +6171,34 @@ function Hm(t, n) {
6171
6171
  }
6172
6172
  }), D = X((C) => {
6173
6173
  C.preventDefault(), !ao(C.currentTarget) && (C.button === Ao.Left && (e.state.comboboxState === pe.Open ? e.actions.closeCombobox() : e.actions.openCombobox()), b());
6174
- }), T = cn([s]), { isFocusVisible: L, focusProps: R } = Gn({ autoFocus: c }), { isHovered: F, hoverProps: P } = Yn({ isDisabled: u }), { pressed: k, pressProps: N } = no({ disabled: u }), E = se(() => ({ open: h === pe.Open, active: k || h === pe.Open, disabled: u, invalid: r.invalid, value: r.value, hover: F, focus: L }), [r, F, L, k, u, h]), y = Pt({ ref: a, id: s, type: po(t, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": v?.id, "aria-expanded": h === pe.Open, "aria-labelledby": T, disabled: u || void 0, autoFocus: c, onPointerDown: D, onKeyDown: M }, R, P, N);
6174
+ }), T = cn([s]), { isFocusVisible: L, focusProps: R } = Gn({ autoFocus: c }), { isHovered: j, hoverProps: P } = Yn({ isDisabled: u }), { pressed: k, pressProps: N } = no({ disabled: u }), E = se(() => ({ open: h === pe.Open, active: k || h === pe.Open, disabled: u, invalid: r.invalid, value: r.value, hover: j, focus: L }), [r, j, L, k, u, h]), y = Pt({ ref: a, id: s, type: po(t, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": v?.id, "aria-expanded": h === pe.Open, "aria-labelledby": T, disabled: u || void 0, autoFocus: c, onPointerDown: D, onKeyDown: M }, R, P, N);
6175
6175
  return De()({ ourProps: y, theirProps: g, slot: E, defaultTag: _m, name: "Combobox.Button" });
6176
6176
  }
6177
6177
  let Bm = "div", zm = Mt.RenderStrategy | Mt.Static;
6178
6178
  function Vm(t, n) {
6179
6179
  var e, r, o;
6180
- let i = Pe(), { id: a = `headlessui-combobox-options-${i}`, hold: l = !1, anchor: s, portal: u = !1, modal: c = !0, transition: g = !1, ...h } = t, f = fn("Combobox.Options"), v = Wt("Combobox.Options"), b = Co(s);
6180
+ let i = Pe(), { id: a = `headlessui-combobox-options-${i}`, hold: l = !1, anchor: s, portal: u = !1, modal: c = !0, transition: g = !1, ...h } = t, f = fn("Combobox.Options"), v = Ut("Combobox.Options"), b = Co(s);
6181
6181
  b && (u = !0);
6182
- let [x, M] = Mo(b), [D, T] = xe(null), L = Do(), R = Ie(n, b ? x : null, f.actions.setOptionsElement, T), [F, P, k, N, E] = ue(f, (he) => [he.comboboxState, he.inputElement, he.buttonElement, he.optionsElement, he.activationTrigger]), y = pt(P || k), C = pt(N), j = To(), [B, I] = vo(g, D, j !== null ? (j & Ue.Open) === Ue.Open : F === pe.Open);
6182
+ let [x, M] = Mo(b), [D, T] = xe(null), L = Do(), R = Ie(n, b ? x : null, f.actions.setOptionsElement, T), [j, P, k, N, E] = ue(f, (he) => [he.comboboxState, he.inputElement, he.buttonElement, he.optionsElement, he.activationTrigger]), y = pt(P || k), C = pt(N), F = To(), [B, I] = vo(g, D, F !== null ? (F & We.Open) === We.Open : j === pe.Open);
6183
6183
  co(B, P, f.actions.closeCombobox);
6184
- let W = v.__demoMode ? !1 : c && F === pe.Open;
6185
- mo(W, C);
6186
- let K = v.__demoMode ? !1 : c && F === pe.Open;
6184
+ let U = v.__demoMode ? !1 : c && j === pe.Open;
6185
+ mo(U, C);
6186
+ let K = v.__demoMode ? !1 : c && j === pe.Open;
6187
6187
  so(K, { allowed: le(() => [P, k, N], [P, k, N]) }), ve(() => {
6188
6188
  var he;
6189
6189
  v.optionsPropsRef.current.static = (he = t.static) != null ? he : !1;
6190
6190
  }, [v.optionsPropsRef, t.static]), ve(() => {
6191
6191
  v.optionsPropsRef.current.hold = l;
6192
- }, [v.optionsPropsRef, l]), _a(F === pe.Open, { container: N, accept(he) {
6192
+ }, [v.optionsPropsRef, l]), _a(j === pe.Open, { container: N, accept(he) {
6193
6193
  return he.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : he.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
6194
6194
  }, walk(he) {
6195
6195
  he.setAttribute("role", "none");
6196
6196
  } });
6197
- let $ = cn([k?.id]), A = se(() => ({ open: F === pe.Open, option: void 0 }), [F]), O = X(() => {
6197
+ let $ = cn([k?.id]), A = se(() => ({ open: j === pe.Open, option: void 0 }), [j]), O = X(() => {
6198
6198
  f.actions.setActivationTrigger(ft.Pointer);
6199
6199
  }), Y = X((he) => {
6200
6200
  he.preventDefault(), f.actions.setActivationTrigger(ft.Pointer);
6201
- }), J = Pt(b ? L() : {}, { "aria-labelledby": $, role: "listbox", "aria-multiselectable": v.mode === $e.Multi ? !0 : void 0, id: a, ref: R, style: { ...h.style, ...M, "--input-width": Nn(P, !0).width, "--button-width": Nn(k, !0).width }, onWheel: E === ft.Pointer ? void 0 : O, onMouseDown: Y, ...go(I) }), ae = B && F === pe.Closed, G = Vn(ae, (e = v.virtual) == null ? void 0 : e.options), de = Vn(ae, v.value), me = X((he) => v.compare(de, he)), ee = se(() => {
6201
+ }), J = Pt(b ? L() : {}, { "aria-labelledby": $, role: "listbox", "aria-multiselectable": v.mode === $e.Multi ? !0 : void 0, id: a, ref: R, style: { ...h.style, ...M, "--input-width": Nn(P, !0).width, "--button-width": Nn(k, !0).width }, onWheel: E === ft.Pointer ? void 0 : O, onMouseDown: Y, ...go(I) }), ae = B && j === pe.Closed, G = Vn(ae, (e = v.virtual) == null ? void 0 : e.options), de = Vn(ae, v.value), me = X((he) => v.compare(de, he)), ee = se(() => {
6202
6202
  if (!v.virtual) return v;
6203
6203
  if (G === void 0) throw new Error("Missing `options` in virtual mode");
6204
6204
  return G !== v.virtual.options ? { ...v, virtual: { ...v.virtual, options: G } } : v;
@@ -6208,19 +6208,19 @@ function Vm(t, n) {
6208
6208
  return V.createElement(Po, { enabled: u ? t.static || B : !1, ownerDocument: y }, V.createElement(an.Provider, { value: fe }, z({ ourProps: J, theirProps: { ...h, children: V.createElement(mm, { freeze: ae }, typeof h.children == "function" ? (o = h.children) == null ? void 0 : o.call(h, A) : h.children) }, slot: A, defaultTag: Bm, features: zm, visible: B, name: "Combobox.Options" })));
6209
6209
  }
6210
6210
  let $m = "div";
6211
- function Wm(t, n) {
6211
+ function Um(t, n) {
6212
6212
  var e, r, o;
6213
- let i = Wt("Combobox.Option"), a = fn("Combobox.Option"), l = Pe(), { 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: g = null, ...h } = t, [f] = ue(a, (I) => [I.inputElement]), v = Ra(f), b = ue(a, le((I) => a.selectors.isActive(I, u, s), [u, s])), x = i.isSelected(u), M = ie(null), D = vt({ disabled: c, value: u, domRef: M, order: g }), T = Ee(gl), L = Ie(n, M, T ? T.measureElement : null), R = X(() => {
6213
+ let i = Ut("Combobox.Option"), a = fn("Combobox.Option"), l = Pe(), { 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: g = null, ...h } = t, [f] = ue(a, (I) => [I.inputElement]), v = Ra(f), b = ue(a, le((I) => a.selectors.isActive(I, u, s), [u, s])), x = i.isSelected(u), M = ie(null), D = vt({ disabled: c, value: u, domRef: M, order: g }), T = Ee(gl), L = Ie(n, M, T ? T.measureElement : null), R = X(() => {
6214
6214
  a.actions.setIsTyping(!1), a.actions.onChange(u);
6215
6215
  });
6216
6216
  ve(() => a.actions.registerOption(s, D), [D, s]);
6217
- let F = ue(a, le((I) => a.selectors.shouldScrollIntoView(I, u, s), [u, s]));
6217
+ let j = ue(a, le((I) => a.selectors.shouldScrollIntoView(I, u, s), [u, s]));
6218
6218
  ve(() => {
6219
- if (F) return He().requestAnimationFrame(() => {
6220
- var I, W;
6221
- (W = (I = M.current) == null ? void 0 : I.scrollIntoView) == null || W.call(I, { block: "nearest" });
6219
+ if (j) return He().requestAnimationFrame(() => {
6220
+ var I, U;
6221
+ (U = (I = M.current) == null ? void 0 : I.scrollIntoView) == null || U.call(I, { block: "nearest" });
6222
6222
  });
6223
- }, [F, M]);
6223
+ }, [j, M]);
6224
6224
  let P = X((I) => {
6225
6225
  I.preventDefault(), I.button === Ao.Left && (c || (R(), zr() || requestAnimationFrame(() => v()), i.mode === $e.Single && a.actions.closeCombobox()));
6226
6226
  }), k = X(() => {
@@ -6229,15 +6229,15 @@ function Wm(t, n) {
6229
6229
  a.actions.goToOption({ focus: Q.Specific, idx: I });
6230
6230
  }), N = ho(), E = X((I) => N.update(I)), y = X((I) => {
6231
6231
  if (!N.wasMoved(I) || c || b) return;
6232
- let W = i.calculateIndex(u);
6233
- a.actions.goToOption({ focus: Q.Specific, idx: W }, ft.Pointer);
6232
+ let U = i.calculateIndex(u);
6233
+ a.actions.goToOption({ focus: Q.Specific, idx: U }, ft.Pointer);
6234
6234
  }), C = X((I) => {
6235
6235
  N.wasMoved(I) && (c || b && (i.optionsPropsRef.current.hold || a.actions.goToOption({ focus: Q.Nothing })));
6236
- }), j = se(() => ({ active: b, focus: b, selected: x, disabled: c }), [b, x, c]), B = { id: s, ref: L, role: "option", tabIndex: c === !0 ? void 0 : -1, "aria-disabled": c === !0 ? !0 : void 0, "aria-selected": x, disabled: void 0, onMouseDown: P, onFocus: k, onPointerEnter: E, onMouseEnter: E, onPointerMove: y, onMouseMove: y, onPointerLeave: C, onMouseLeave: C };
6237
- return De()({ ourProps: B, theirProps: h, slot: j, defaultTag: $m, name: "Combobox.Option" });
6236
+ }), F = se(() => ({ active: b, focus: b, selected: x, disabled: c }), [b, x, c]), B = { id: s, ref: L, role: "option", tabIndex: c === !0 ? void 0 : -1, "aria-disabled": c === !0 ? !0 : void 0, "aria-selected": x, disabled: void 0, onMouseDown: P, onFocus: k, onPointerEnter: E, onMouseEnter: E, onPointerMove: y, onMouseMove: y, onPointerLeave: C, onMouseLeave: C };
6237
+ return De()({ ourProps: B, theirProps: h, slot: F, defaultTag: $m, name: "Combobox.Option" });
6238
6238
  }
6239
- let Um = Me(Fm), Ym = Me(Hm), Gm = Me(Rm), Km = Da, Zm = Me(Vm), qm = Me(Wm);
6240
- Object.assign(Um, { Input: Gm, Button: Ym, Label: Km, Options: Zm, Option: qm });
6239
+ let Wm = Me(jm), Ym = Me(Hm), Gm = Me(Rm), Km = Da, Zm = Me(Vm), qm = Me(Um);
6240
+ Object.assign(Wm, { Input: Gm, Button: Ym, Label: Km, Options: Zm, Option: qm });
6241
6241
  function vl(t, n) {
6242
6242
  let e = ie({ left: 0, top: 0 });
6243
6243
  if (ve(() => {
@@ -6423,7 +6423,7 @@ let eh = { 1(t) {
6423
6423
  return Te(e.type, eh, n, e);
6424
6424
  }
6425
6425
  };
6426
- const xl = ye(null);
6426
+ const xl = be(null);
6427
6427
  function No(t) {
6428
6428
  let n = Ee(xl);
6429
6429
  if (n === null) {
@@ -6436,7 +6436,7 @@ function El({ id: t, __demoMode: n = !1 }) {
6436
6436
  let e = se(() => th.new({ id: t, __demoMode: n }), []);
6437
6437
  return sr(() => e.dispose()), e;
6438
6438
  }
6439
- let cr = ye(null);
6439
+ let cr = be(null);
6440
6440
  cr.displayName = "ListboxDataContext";
6441
6441
  function pn(t) {
6442
6442
  let n = Ee(cr);
@@ -6450,26 +6450,26 @@ let nh = Xe;
6450
6450
  function rh(t, n) {
6451
6451
  let e = Pe(), r = Kn(), { value: o, defaultValue: i, form: a, name: l, onChange: s, by: u, invalid: c = !1, disabled: g = r || !1, horizontal: h = !1, multiple: f = !1, __demoMode: v = !1, ...b } = t;
6452
6452
  const x = h ? "horizontal" : "vertical";
6453
- let M = Ie(n), D = ha(i), [T = f ? [] : void 0, L] = ma(o, s, D), R = El({ id: e, __demoMode: v }), F = ie({ static: !1, hold: !1 }), P = ie(/* @__PURE__ */ new Map()), k = Sa(u), N = le((J) => Te(E.mode, { [rt.Multi]: () => T.some((ae) => k(ae, J)), [rt.Single]: () => k(T, J) }), [T]), E = se(() => ({ value: T, disabled: g, invalid: c, mode: f ? rt.Multi : rt.Single, orientation: x, onChange: L, compare: k, isSelected: N, optionsPropsRef: F, listRef: P }), [T, g, c, f, x, L, k, N, F, P]);
6453
+ let M = Ie(n), D = ha(i), [T = f ? [] : void 0, L] = ma(o, s, D), R = El({ id: e, __demoMode: v }), j = ie({ static: !1, hold: !1 }), P = ie(/* @__PURE__ */ new Map()), k = Sa(u), N = le((J) => Te(E.mode, { [rt.Multi]: () => T.some((ae) => k(ae, J)), [rt.Single]: () => k(T, J) }), [T]), E = se(() => ({ value: T, disabled: g, invalid: c, mode: f ? rt.Multi : rt.Single, orientation: x, onChange: L, compare: k, isSelected: N, optionsPropsRef: j, listRef: P }), [T, g, c, f, x, L, k, N, j, P]);
6454
6454
  ve(() => {
6455
6455
  R.state.dataRef.current = E;
6456
6456
  }, [E]);
6457
- let y = ue(R, (J) => J.listboxState), C = Nt.get(null), j = ue(C, le((J) => C.selectors.isTop(J, e), [C, e])), [B, I] = ue(R, (J) => [J.buttonElement, J.optionsElement]);
6458
- uo(j, [B, I], (J, ae) => {
6457
+ let y = ue(R, (J) => J.listboxState), C = Nt.get(null), F = ue(C, le((J) => C.selectors.isTop(J, e), [C, e])), [B, I] = ue(R, (J) => [J.buttonElement, J.optionsElement]);
6458
+ uo(F, [B, I], (J, ae) => {
6459
6459
  R.send({ type: yl.CloseListbox }), nr(ae, tr.Loose) || (J.preventDefault(), B?.focus());
6460
6460
  });
6461
- let W = se(() => ({ open: y === ke.Open, disabled: g, invalid: c, value: T }), [y, g, c, T]), [K, $] = Qn({ inherit: !0 }), A = { ref: M }, O = le(() => {
6461
+ let U = se(() => ({ open: y === ke.Open, disabled: g, invalid: c, value: T }), [y, g, c, T]), [K, $] = Qn({ inherit: !0 }), A = { ref: M }, O = le(() => {
6462
6462
  if (D !== void 0) return L?.(D);
6463
6463
  }, [L, D]), Y = De();
6464
- return V.createElement($, { value: K, props: { htmlFor: B?.id }, slot: { open: y === ke.Open, disabled: g } }, V.createElement(So, null, V.createElement(xl.Provider, { value: R }, V.createElement(cr.Provider, { value: E }, V.createElement(Io, { value: Te(y, { [ke.Open]: Ue.Open, [ke.Closed]: Ue.Closed }) }, l != null && T != null && V.createElement(wa, { disabled: g, data: { [l]: T }, form: a, onReset: O }), Y({ ourProps: A, theirProps: b, slot: W, defaultTag: nh, name: "Listbox" }))))));
6464
+ return V.createElement($, { value: K, props: { htmlFor: B?.id }, slot: { open: y === ke.Open, disabled: g } }, V.createElement(So, null, V.createElement(xl.Provider, { value: R }, V.createElement(cr.Provider, { value: E }, V.createElement(Io, { value: Te(y, { [ke.Open]: We.Open, [ke.Closed]: We.Closed }) }, l != null && T != null && V.createElement(wa, { disabled: g, data: { [l]: T }, form: a, onReset: O }), Y({ ourProps: A, theirProps: b, slot: U, defaultTag: nh, name: "Listbox" }))))));
6465
6465
  }
6466
6466
  let oh = "button";
6467
6467
  function ih(t, n) {
6468
6468
  let e = Pe(), r = oo(), o = pn("Listbox.Button"), i = No("Listbox.Button"), { id: a = r || `headlessui-listbox-button-${e}`, disabled: l = o.disabled || !1, autoFocus: s = !1, ...u } = t, c = Ie(n, Oo(), i.actions.setButtonElement), g = sl(), [h, f, v] = ue(i, (I) => [I.listboxState, I.buttonElement, I.optionsElement]), b = h === ke.Open;
6469
6469
  fo(b, { trigger: f, action: le((I) => {
6470
6470
  if (f != null && f.contains(I.target)) return qe.Ignore;
6471
- let W = I.target.closest('[role="option"]:not([data-disabled])');
6472
- return Je(W) ? qe.Select(W) : v != null && v.contains(I.target) ? qe.Ignore : qe.Close;
6471
+ let U = I.target.closest('[role="option"]:not([data-disabled])');
6472
+ return Je(U) ? qe.Select(U) : v != null && v.contains(I.target) ? qe.Ignore : qe.Close;
6473
6473
  }, [f, v]), close: i.actions.closeListbox, select: i.actions.selectActiveOption });
6474
6474
  let x = X((I) => {
6475
6475
  switch (I.key) {
@@ -6491,35 +6491,35 @@ function ih(t, n) {
6491
6491
  break;
6492
6492
  }
6493
6493
  }), D = X((I) => {
6494
- var W;
6494
+ var U;
6495
6495
  if (I.button === 0) {
6496
6496
  if (ao(I.currentTarget)) return I.preventDefault();
6497
- i.state.listboxState === ke.Open ? (Re(() => i.actions.closeListbox()), (W = i.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (I.preventDefault(), i.actions.openListbox({ focus: Q.Nothing }));
6497
+ i.state.listboxState === ke.Open ? (Re(() => i.actions.closeListbox()), (U = i.state.buttonElement) == null || U.focus({ preventScroll: !0 })) : (I.preventDefault(), i.actions.openListbox({ focus: Q.Nothing }));
6498
6498
  }
6499
- }), T = X((I) => I.preventDefault()), L = cn([a]), R = Oa(), { isFocusVisible: F, focusProps: P } = Gn({ autoFocus: s }), { isHovered: k, hoverProps: N } = Yn({ isDisabled: l }), { pressed: E, pressProps: y } = no({ disabled: l }), C = se(() => ({ open: h === ke.Open, active: E || h === ke.Open, disabled: l, invalid: o.invalid, value: o.value, hover: k, focus: F, autofocus: s }), [h, o.value, l, k, F, E, o.invalid, s]), j = ue(i, (I) => I.listboxState === ke.Open), B = Pt(g(), { ref: c, id: a, type: po(t, f), "aria-haspopup": "listbox", "aria-controls": v?.id, "aria-expanded": j, "aria-labelledby": L, "aria-describedby": R, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: M, onKeyPress: T, onPointerDown: D }, P, N, y);
6499
+ }), T = X((I) => I.preventDefault()), L = cn([a]), R = Oa(), { isFocusVisible: j, focusProps: P } = Gn({ autoFocus: s }), { isHovered: k, hoverProps: N } = Yn({ isDisabled: l }), { pressed: E, pressProps: y } = no({ disabled: l }), C = se(() => ({ open: h === ke.Open, active: E || h === ke.Open, disabled: l, invalid: o.invalid, value: o.value, hover: k, focus: j, autofocus: s }), [h, o.value, l, k, j, E, o.invalid, s]), F = ue(i, (I) => I.listboxState === ke.Open), B = Pt(g(), { ref: c, id: a, type: po(t, f), "aria-haspopup": "listbox", "aria-controls": v?.id, "aria-expanded": F, "aria-labelledby": L, "aria-describedby": R, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: M, onKeyPress: T, onPointerDown: D }, P, N, y);
6500
6500
  return De()({ ourProps: B, theirProps: u, slot: C, defaultTag: oh, name: "Listbox.Button" });
6501
6501
  }
6502
- let Cl = ye(!1), ah = "div", lh = Mt.RenderStrategy | Mt.Static;
6502
+ let Cl = be(!1), ah = "div", lh = Mt.RenderStrategy | Mt.Static;
6503
6503
  function sh(t, n) {
6504
6504
  let e = Pe(), { id: r = `headlessui-listbox-options-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Co(o), [c, g] = xe(null);
6505
6505
  u && (i = !0);
6506
- let h = pn("Listbox.Options"), f = No("Listbox.Options"), [v, b, x, M] = ue(f, (ee) => [ee.listboxState, ee.buttonElement, ee.optionsElement, ee.__demoMode]), D = pt(b), T = pt(x), L = To(), [R, F] = vo(l, c, L !== null ? (L & Ue.Open) === Ue.Open : v === ke.Open);
6506
+ let h = pn("Listbox.Options"), f = No("Listbox.Options"), [v, b, x, M] = ue(f, (ee) => [ee.listboxState, ee.buttonElement, ee.optionsElement, ee.__demoMode]), D = pt(b), T = pt(x), L = To(), [R, j] = vo(l, c, L !== null ? (L & We.Open) === We.Open : v === ke.Open);
6507
6507
  co(R, b, f.actions.closeListbox);
6508
6508
  let P = M ? !1 : a && v === ke.Open;
6509
6509
  mo(P, T);
6510
6510
  let k = M ? !1 : a && v === ke.Open;
6511
6511
  so(k, { allowed: le(() => [b, x], [b, x]) });
6512
- let N = v !== ke.Open, E = vl(N, b) ? !1 : R, y = R && v === ke.Closed, C = Vn(y, h.value), j = X((ee) => h.compare(C, ee)), B = ue(f, (ee) => {
6512
+ let N = v !== ke.Open, E = vl(N, b) ? !1 : R, y = R && v === ke.Closed, C = Vn(y, h.value), F = X((ee) => h.compare(C, ee)), B = ue(f, (ee) => {
6513
6513
  var z;
6514
6514
  if (u == null || !((z = u?.to) != null && z.includes("selection"))) return null;
6515
- let fe = ee.options.findIndex((he) => j(he.dataRef.current.value));
6515
+ let fe = ee.options.findIndex((he) => F(he.dataRef.current.value));
6516
6516
  return fe === -1 && (fe = 0), fe;
6517
6517
  }), I = (() => {
6518
6518
  if (u == null) return;
6519
6519
  if (B === null) return { ...u, inner: void 0 };
6520
6520
  let ee = Array.from(h.listRef.current.values());
6521
6521
  return { ...u, inner: { listRef: { current: ee }, index: B } };
6522
- })(), [W, K] = Mo(I), $ = Do(), A = Ie(n, u ? W : null, f.actions.setOptionsElement, g), O = At();
6522
+ })(), [U, K] = Mo(I), $ = Do(), A = Ie(n, u ? U : null, f.actions.setOptionsElement, g), O = At();
6523
6523
  Ce(() => {
6524
6524
  var ee;
6525
6525
  let z = x;
@@ -6551,7 +6551,7 @@ function sh(t, n) {
6551
6551
  ee.preventDefault(), ee.stopPropagation(), Re(() => f.actions.closeListbox()), (fe = f.state.buttonElement) == null || fe.focus({ preventScroll: !0 });
6552
6552
  return;
6553
6553
  case ne.Tab:
6554
- ee.preventDefault(), ee.stopPropagation(), Re(() => f.actions.closeListbox()), Fa(f.state.buttonElement, ee.shiftKey ? tn.Previous : tn.Next);
6554
+ ee.preventDefault(), ee.stopPropagation(), Re(() => f.actions.closeListbox()), ja(f.state.buttonElement, ee.shiftKey ? tn.Previous : tn.Next);
6555
6555
  break;
6556
6556
  default:
6557
6557
  ee.key.length === 1 && (f.actions.search(ee.key), O.setTimeout(() => f.actions.clearSearch(), 350));
@@ -6560,7 +6560,7 @@ function sh(t, n) {
6560
6560
  }), J = ue(f, (ee) => {
6561
6561
  var z;
6562
6562
  return (z = ee.buttonElement) == null ? void 0 : z.id;
6563
- }), ae = se(() => ({ open: v === ke.Open }), [v]), G = Pt(u ? $() : {}, { id: r, ref: A, "aria-activedescendant": ue(f, f.selectors.activeDescendantId), "aria-multiselectable": h.mode === rt.Multi ? !0 : void 0, "aria-labelledby": J, "aria-orientation": h.orientation, onKeyDown: Y, role: "listbox", tabIndex: v === ke.Open ? 0 : void 0, style: { ...s.style, ...K, "--button-width": Nn(b, !0).width }, ...go(F) }), de = De(), me = se(() => h.mode === rt.Multi ? h : { ...h, isSelected: j }, [h, j]);
6563
+ }), ae = se(() => ({ open: v === ke.Open }), [v]), G = Pt(u ? $() : {}, { id: r, ref: A, "aria-activedescendant": ue(f, f.selectors.activeDescendantId), "aria-multiselectable": h.mode === rt.Multi ? !0 : void 0, "aria-labelledby": J, "aria-orientation": h.orientation, onKeyDown: Y, role: "listbox", tabIndex: v === ke.Open ? 0 : void 0, style: { ...s.style, ...K, "--button-width": Nn(b, !0).width }, ...go(j) }), de = De(), me = se(() => h.mode === rt.Multi ? h : { ...h, isSelected: F }, [h, F]);
6564
6564
  return V.createElement(Po, { enabled: i ? t.static || R : !1, ownerDocument: D }, V.createElement(cr.Provider, { value: me }, de({ ourProps: G, theirProps: s, slot: ae, defaultTag: ah, features: lh, visible: E, name: "Listbox.Options" })));
6565
6565
  }
6566
6566
  let ch = "div";
@@ -6589,9 +6589,9 @@ function uh(t, n) {
6589
6589
  T.update(E), !o && (c || u.actions.goToOption({ focus: Q.Specific, id: r }, Yr.Pointer));
6590
6590
  }), R = X((E) => {
6591
6591
  T.wasMoved(E) && (o || c || u.actions.goToOption({ focus: Q.Specific, id: r }, Yr.Pointer));
6592
- }), F = X((E) => {
6592
+ }), j = X((E) => {
6593
6593
  T.wasMoved(E) && (o || c && u.actions.goToOption({ focus: Q.Nothing }));
6594
- }), P = se(() => ({ active: c, focus: c, selected: g, disabled: o, selectedOption: g && l }), [c, g, o, l]), k = l ? {} : { id: r, ref: b, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: M, onFocus: D, onPointerEnter: L, onMouseEnter: L, onPointerMove: R, onMouseMove: R, onPointerLeave: F, onMouseLeave: F }, N = De();
6594
+ }), P = se(() => ({ active: c, focus: c, selected: g, disabled: o, selectedOption: g && l }), [c, g, o, l]), k = l ? {} : { id: r, ref: b, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": g, disabled: void 0, onClick: M, onFocus: D, onPointerEnter: L, onMouseEnter: L, onPointerMove: R, onMouseMove: R, onPointerLeave: j, onMouseLeave: j }, N = De();
6595
6595
  return !g && l ? null : N({ ourProps: k, theirProps: a, slot: P, defaultTag: ch, name: "Listbox.Option" });
6596
6596
  }
6597
6597
  let dh = Xe;
@@ -6601,8 +6601,8 @@ function fh(t, n) {
6601
6601
  }
6602
6602
  let ph = Me(rh), mh = Me(ih), hh = Da, gh = Me(sh), vh = Me(uh), bh = Me(fh);
6603
6603
  Object.assign(ph, { Button: mh, Label: hh, Options: gh, Option: vh, SelectedOption: bh });
6604
- var yh = Object.defineProperty, wh = (t, n, e) => n in t ? yh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, $i = (t, n, e) => (wh(t, typeof n != "symbol" ? n + "" : n, e), e), Ae = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Ae || {}), $n = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Other = 1] = "Other", t))($n || {}), be = ((t) => (t[t.OpenMenu = 0] = "OpenMenu", t[t.CloseMenu = 1] = "CloseMenu", t[t.GoToItem = 2] = "GoToItem", t[t.Search = 3] = "Search", t[t.ClearSearch = 4] = "ClearSearch", t[t.RegisterItems = 5] = "RegisterItems", t[t.UnregisterItems = 6] = "UnregisterItems", t[t.SetButtonElement = 7] = "SetButtonElement", t[t.SetItemsElement = 8] = "SetItemsElement", t[t.SortItems = 9] = "SortItems", t))(be || {});
6605
- function Wi(t, n = (e) => e) {
6604
+ var yh = Object.defineProperty, wh = (t, n, e) => n in t ? yh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, $i = (t, n, e) => (wh(t, typeof n != "symbol" ? n + "" : n, e), e), Ae = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Ae || {}), $n = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Other = 1] = "Other", t))($n || {}), ye = ((t) => (t[t.OpenMenu = 0] = "OpenMenu", t[t.CloseMenu = 1] = "CloseMenu", t[t.GoToItem = 2] = "GoToItem", t[t.Search = 3] = "Search", t[t.ClearSearch = 4] = "ClearSearch", t[t.RegisterItems = 5] = "RegisterItems", t[t.UnregisterItems = 6] = "UnregisterItems", t[t.SetButtonElement = 7] = "SetButtonElement", t[t.SetItemsElement = 8] = "SetItemsElement", t[t.SortItems = 9] = "SortItems", t))(ye || {});
6605
+ function Ui(t, n = (e) => e) {
6606
6606
  let e = t.activeItemIndex !== null ? t.items[t.activeItemIndex] : null, r = rr(n(t.items.slice()), (i) => i.dataRef.current.domRef.current), o = e ? r.indexOf(e) : null;
6607
6607
  return o === -1 && (o = null), { items: r, activeItemIndex: o };
6608
6608
  }
@@ -6635,7 +6635,7 @@ let xh = { 1(t) {
6635
6635
  }
6636
6636
  }
6637
6637
  }
6638
- let s = Wi(t), u = nt(n, { resolveItems: () => s.items, resolveActiveIndex: () => s.activeItemIndex, resolveId: (c) => c.id, resolveDisabled: (c) => c.dataRef.current.disabled });
6638
+ let s = Ui(t), u = nt(n, { resolveItems: () => s.items, resolveActiveIndex: () => s.activeItemIndex, resolveId: (c) => c.id, resolveDisabled: (c) => c.dataRef.current.disabled });
6639
6639
  return { ...l, ...s, activeItemIndex: u };
6640
6640
  }, 3: (t, n) => {
6641
6641
  let e = t.searchQuery !== "" ? 0 : 1, r = t.searchQuery + n.value.toLowerCase(), o = (t.activeItemIndex !== null ? t.items.slice(t.activeItemIndex + e).concat(t.items.slice(0, t.activeItemIndex + e)) : t.items).find((a) => {
@@ -6656,8 +6656,8 @@ let xh = { 1(t) {
6656
6656
  for (let i of r.reverse()) e.splice(i, 1);
6657
6657
  }
6658
6658
  return { ...t, items: e, activationTrigger: 1 };
6659
- }, 7: (t, n) => t.buttonElement === n.element ? t : { ...t, buttonElement: n.element }, 8: (t, n) => t.itemsElement === n.element ? t : { ...t, itemsElement: n.element }, 9: (t) => t.pendingShouldSort ? { ...t, ...Wi(t), pendingShouldSort: !1 } : t };
6660
- class jo extends Jn {
6659
+ }, 7: (t, n) => t.buttonElement === n.element ? t : { ...t, buttonElement: n.element }, 8: (t, n) => t.itemsElement === n.element ? t : { ...t, itemsElement: n.element }, 9: (t) => t.pendingShouldSort ? { ...t, ...Ui(t), pendingShouldSort: !1 } : t };
6660
+ class Fo extends Jn {
6661
6661
  constructor(n) {
6662
6662
  super(n), $i(this, "actions", { registerItem: Xt(() => {
6663
6663
  let e = [], r = /* @__PURE__ */ new Set();
@@ -6690,14 +6690,14 @@ class jo extends Jn {
6690
6690
  }
6691
6691
  }
6692
6692
  static new({ id: n, __demoMode: e = !1 }) {
6693
- return new jo({ id: n, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: Q.Nothing } });
6693
+ return new Fo({ id: n, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: Q.Nothing } });
6694
6694
  }
6695
6695
  reduce(n, e) {
6696
6696
  return Te(e.type, xh, n, e);
6697
6697
  }
6698
6698
  }
6699
- const Ol = ye(null);
6700
- function Fo(t) {
6699
+ const Ol = be(null);
6700
+ function jo(t) {
6701
6701
  let n = Ee(Ol);
6702
6702
  if (n === null) {
6703
6703
  let e = new Error(`<${t} /> is missing a parent <Menu /> component.`);
@@ -6706,7 +6706,7 @@ function Fo(t) {
6706
6706
  return n;
6707
6707
  }
6708
6708
  function Dl({ id: t, __demoMode: n = !1 }) {
6709
- let e = se(() => jo.new({ id: t, __demoMode: n }), []);
6709
+ let e = se(() => Fo.new({ id: t, __demoMode: n }), []);
6710
6710
  return sr(() => e.dispose()), e;
6711
6711
  }
6712
6712
  let Eh = Xe;
@@ -6714,24 +6714,24 @@ function Ch(t, n) {
6714
6714
  let e = Pe(), { __demoMode: r = !1, ...o } = t, i = Dl({ id: e, __demoMode: r }), [a, l, s] = ue(i, (x) => [x.menuState, x.itemsElement, x.buttonElement]), u = Ie(n), c = Nt.get(null), g = ue(c, le((x) => c.selectors.isTop(x, e), [c, e]));
6715
6715
  uo(g, [s, l], (x, M) => {
6716
6716
  var D;
6717
- i.send({ type: be.CloseMenu }), nr(M, tr.Loose) || (x.preventDefault(), (D = i.state.buttonElement) == null || D.focus());
6717
+ i.send({ type: ye.CloseMenu }), nr(M, tr.Loose) || (x.preventDefault(), (D = i.state.buttonElement) == null || D.focus());
6718
6718
  });
6719
6719
  let h = X(() => {
6720
- i.send({ type: be.CloseMenu });
6720
+ i.send({ type: ye.CloseMenu });
6721
6721
  }), f = se(() => ({ open: a === Ae.Open, close: h }), [a, h]), v = { ref: u }, b = De();
6722
- return V.createElement(So, null, V.createElement(Ol.Provider, { value: i }, V.createElement(Io, { value: Te(a, { [Ae.Open]: Ue.Open, [Ae.Closed]: Ue.Closed }) }, b({ ourProps: v, theirProps: o, slot: f, defaultTag: Eh, name: "Menu" }))));
6722
+ return V.createElement(So, null, V.createElement(Ol.Provider, { value: i }, V.createElement(Io, { value: Te(a, { [Ae.Open]: We.Open, [Ae.Closed]: We.Closed }) }, b({ ourProps: v, theirProps: o, slot: f, defaultTag: Eh, name: "Menu" }))));
6723
6723
  }
6724
6724
  let Oh = "button";
6725
6725
  function Dh(t, n) {
6726
- let e = Fo("Menu.Button"), r = Pe(), { id: o = `headlessui-menu-button-${r}`, disabled: i = !1, autoFocus: a = !1, ...l } = t, s = ie(null), u = sl(), c = Ie(n, s, Oo(), X((E) => e.send({ type: be.SetButtonElement, element: E }))), g = X((E) => {
6726
+ let e = jo("Menu.Button"), r = Pe(), { id: o = `headlessui-menu-button-${r}`, disabled: i = !1, autoFocus: a = !1, ...l } = t, s = ie(null), u = sl(), c = Ie(n, s, Oo(), X((E) => e.send({ type: ye.SetButtonElement, element: E }))), g = X((E) => {
6727
6727
  switch (E.key) {
6728
6728
  case ne.Space:
6729
6729
  case ne.Enter:
6730
6730
  case ne.ArrowDown:
6731
- E.preventDefault(), E.stopPropagation(), e.send({ type: be.OpenMenu, focus: { focus: Q.First } });
6731
+ E.preventDefault(), E.stopPropagation(), e.send({ type: ye.OpenMenu, focus: { focus: Q.First } });
6732
6732
  break;
6733
6733
  case ne.ArrowUp:
6734
- E.preventDefault(), E.stopPropagation(), e.send({ type: be.OpenMenu, focus: { focus: Q.Last } });
6734
+ E.preventDefault(), E.stopPropagation(), e.send({ type: ye.OpenMenu, focus: { focus: Q.Last } });
6735
6735
  break;
6736
6736
  }
6737
6737
  }), h = X((E) => {
@@ -6745,29 +6745,29 @@ function Dh(t, n) {
6745
6745
  if (v != null && v.contains(E.target)) return qe.Ignore;
6746
6746
  let y = E.target.closest('[role="menuitem"]:not([data-disabled])');
6747
6747
  return Je(y) ? qe.Select(y) : b != null && b.contains(E.target) ? qe.Ignore : qe.Close;
6748
- }, [v, b]), close: le(() => e.send({ type: be.CloseMenu }), []), select: le((E) => E.click(), []) });
6748
+ }, [v, b]), close: le(() => e.send({ type: ye.CloseMenu }), []), select: le((E) => E.click(), []) });
6749
6749
  let M = X((E) => {
6750
6750
  var y;
6751
6751
  if (E.button === 0) {
6752
6752
  if (ao(E.currentTarget)) return E.preventDefault();
6753
- i || (f === Ae.Open ? (Re(() => e.send({ type: be.CloseMenu })), (y = s.current) == null || y.focus({ preventScroll: !0 })) : (E.preventDefault(), e.send({ type: be.OpenMenu, focus: { focus: Q.Nothing }, trigger: $n.Pointer })));
6753
+ i || (f === Ae.Open ? (Re(() => e.send({ type: ye.CloseMenu })), (y = s.current) == null || y.focus({ preventScroll: !0 })) : (E.preventDefault(), e.send({ type: ye.OpenMenu, focus: { focus: Q.Nothing }, trigger: $n.Pointer })));
6754
6754
  }
6755
- }), { isFocusVisible: D, focusProps: T } = Gn({ autoFocus: a }), { isHovered: L, hoverProps: R } = Yn({ isDisabled: i }), { pressed: F, pressProps: P } = no({ disabled: i }), k = se(() => ({ open: f === Ae.Open, active: F || f === Ae.Open, disabled: i, hover: L, focus: D, autofocus: a }), [f, L, D, F, i, a]), N = Pt(u(), { ref: c, id: o, type: po(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": f === Ae.Open, disabled: i || void 0, autoFocus: a, onKeyDown: g, onKeyUp: h, onPointerDown: M }, T, R, P);
6755
+ }), { isFocusVisible: D, focusProps: T } = Gn({ autoFocus: a }), { isHovered: L, hoverProps: R } = Yn({ isDisabled: i }), { pressed: j, pressProps: P } = no({ disabled: i }), k = se(() => ({ open: f === Ae.Open, active: j || f === Ae.Open, disabled: i, hover: L, focus: D, autofocus: a }), [f, L, D, j, i, a]), N = Pt(u(), { ref: c, id: o, type: po(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": f === Ae.Open, disabled: i || void 0, autoFocus: a, onKeyDown: g, onKeyUp: h, onPointerDown: M }, T, R, P);
6756
6756
  return De()({ ourProps: N, theirProps: l, slot: k, defaultTag: Oh, name: "Menu.Button" });
6757
6757
  }
6758
6758
  let Mh = "div", Sh = Mt.RenderStrategy | Mt.Static;
6759
6759
  function kh(t, n) {
6760
- let e = Pe(), { id: r = `headlessui-menu-items-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Co(o), c = Fo("Menu.Items"), [g, h] = Mo(u), f = Do(), [v, b] = xe(null), x = Ie(n, u ? g : null, X((A) => c.send({ type: be.SetItemsElement, element: A })), b), [M, D] = ue(c, (A) => [A.menuState, A.buttonElement]), T = pt(D), L = pt(v);
6760
+ let e = Pe(), { id: r = `headlessui-menu-items-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Co(o), c = jo("Menu.Items"), [g, h] = Mo(u), f = Do(), [v, b] = xe(null), x = Ie(n, u ? g : null, X((A) => c.send({ type: ye.SetItemsElement, element: A })), b), [M, D] = ue(c, (A) => [A.menuState, A.buttonElement]), T = pt(D), L = pt(v);
6761
6761
  u && (i = !0);
6762
- let R = To(), [F, P] = vo(l, v, R !== null ? (R & Ue.Open) === Ue.Open : M === Ae.Open);
6763
- co(F, D, () => {
6764
- c.send({ type: be.CloseMenu });
6762
+ let R = To(), [j, P] = vo(l, v, R !== null ? (R & We.Open) === We.Open : M === Ae.Open);
6763
+ co(j, D, () => {
6764
+ c.send({ type: ye.CloseMenu });
6765
6765
  });
6766
6766
  let k = ue(c, (A) => A.__demoMode), N = k ? !1 : a && M === Ae.Open;
6767
6767
  mo(N, L);
6768
6768
  let E = k ? !1 : a && M === Ae.Open;
6769
6769
  so(E, { allowed: le(() => [D, v], [D, v]) });
6770
- let y = M !== Ae.Open, C = vl(y, D) ? !1 : F;
6770
+ let y = M !== Ae.Open, C = vl(y, D) ? !1 : j;
6771
6771
  Ce(() => {
6772
6772
  let A = v;
6773
6773
  A && M === Ae.Open && A !== L?.activeElement && A.focus({ preventScroll: !0 });
@@ -6776,36 +6776,36 @@ function kh(t, n) {
6776
6776
  }, walk(A) {
6777
6777
  A.setAttribute("role", "none");
6778
6778
  } });
6779
- let j = At(), B = X((A) => {
6779
+ let F = At(), B = X((A) => {
6780
6780
  var O, Y, J;
6781
- switch (j.dispose(), A.key) {
6781
+ switch (F.dispose(), A.key) {
6782
6782
  case ne.Space:
6783
- if (c.state.searchQuery !== "") return A.preventDefault(), A.stopPropagation(), c.send({ type: be.Search, value: A.key });
6783
+ if (c.state.searchQuery !== "") return A.preventDefault(), A.stopPropagation(), c.send({ type: ye.Search, value: A.key });
6784
6784
  case ne.Enter:
6785
6785
  if (A.preventDefault(), A.stopPropagation(), c.state.activeItemIndex !== null) {
6786
6786
  let { dataRef: ae } = c.state.items[c.state.activeItemIndex];
6787
6787
  (Y = (O = ae.current) == null ? void 0 : O.domRef.current) == null || Y.click();
6788
6788
  }
6789
- c.send({ type: be.CloseMenu }), ja(c.state.buttonElement);
6789
+ c.send({ type: ye.CloseMenu }), Fa(c.state.buttonElement);
6790
6790
  break;
6791
6791
  case ne.ArrowDown:
6792
- return A.preventDefault(), A.stopPropagation(), c.send({ type: be.GoToItem, focus: Q.Next });
6792
+ return A.preventDefault(), A.stopPropagation(), c.send({ type: ye.GoToItem, focus: Q.Next });
6793
6793
  case ne.ArrowUp:
6794
- return A.preventDefault(), A.stopPropagation(), c.send({ type: be.GoToItem, focus: Q.Previous });
6794
+ return A.preventDefault(), A.stopPropagation(), c.send({ type: ye.GoToItem, focus: Q.Previous });
6795
6795
  case ne.Home:
6796
6796
  case ne.PageUp:
6797
- return A.preventDefault(), A.stopPropagation(), c.send({ type: be.GoToItem, focus: Q.First });
6797
+ return A.preventDefault(), A.stopPropagation(), c.send({ type: ye.GoToItem, focus: Q.First });
6798
6798
  case ne.End:
6799
6799
  case ne.PageDown:
6800
- return A.preventDefault(), A.stopPropagation(), c.send({ type: be.GoToItem, focus: Q.Last });
6800
+ return A.preventDefault(), A.stopPropagation(), c.send({ type: ye.GoToItem, focus: Q.Last });
6801
6801
  case ne.Escape:
6802
- A.preventDefault(), A.stopPropagation(), Re(() => c.send({ type: be.CloseMenu })), (J = c.state.buttonElement) == null || J.focus({ preventScroll: !0 });
6802
+ A.preventDefault(), A.stopPropagation(), Re(() => c.send({ type: ye.CloseMenu })), (J = c.state.buttonElement) == null || J.focus({ preventScroll: !0 });
6803
6803
  break;
6804
6804
  case ne.Tab:
6805
- A.preventDefault(), A.stopPropagation(), Re(() => c.send({ type: be.CloseMenu })), Fa(c.state.buttonElement, A.shiftKey ? tn.Previous : tn.Next);
6805
+ A.preventDefault(), A.stopPropagation(), Re(() => c.send({ type: ye.CloseMenu })), ja(c.state.buttonElement, A.shiftKey ? tn.Previous : tn.Next);
6806
6806
  break;
6807
6807
  default:
6808
- A.key.length === 1 && (c.send({ type: be.Search, value: A.key }), j.setTimeout(() => c.send({ type: be.ClearSearch }), 350));
6808
+ A.key.length === 1 && (c.send({ type: ye.Search, value: A.key }), F.setTimeout(() => c.send({ type: ye.ClearSearch }), 350));
6809
6809
  break;
6810
6810
  }
6811
6811
  }), I = X((A) => {
@@ -6814,15 +6814,15 @@ function kh(t, n) {
6814
6814
  A.preventDefault();
6815
6815
  break;
6816
6816
  }
6817
- }), W = se(() => ({ open: M === Ae.Open }), [M]), K = Pt(u ? f() : {}, { "aria-activedescendant": ue(c, c.selectors.activeDescendantId), "aria-labelledby": ue(c, (A) => {
6817
+ }), U = se(() => ({ open: M === Ae.Open }), [M]), K = Pt(u ? f() : {}, { "aria-activedescendant": ue(c, c.selectors.activeDescendantId), "aria-labelledby": ue(c, (A) => {
6818
6818
  var O;
6819
6819
  return (O = A.buttonElement) == null ? void 0 : O.id;
6820
6820
  }), id: r, onKeyDown: B, onKeyUp: I, role: "menu", tabIndex: M === Ae.Open ? 0 : void 0, ref: x, style: { ...s.style, ...h, "--button-width": Nn(D, !0).width }, ...go(P) }), $ = De();
6821
- return V.createElement(Po, { enabled: i ? t.static || F : !1, ownerDocument: T }, $({ ourProps: K, theirProps: s, slot: W, defaultTag: Mh, features: Sh, visible: C, name: "Menu.Items" }));
6821
+ return V.createElement(Po, { enabled: i ? t.static || j : !1, ownerDocument: T }, $({ ourProps: K, theirProps: s, slot: U, defaultTag: Mh, features: Sh, visible: C, name: "Menu.Items" }));
6822
6822
  }
6823
6823
  let Th = Xe;
6824
6824
  function Ih(t, n) {
6825
- let e = Pe(), { id: r = `headlessui-menu-item-${e}`, disabled: o = !1, ...i } = t, a = Fo("Menu.Item"), l = ue(a, (y) => a.selectors.isActive(y, r)), s = ie(null), u = Ie(n, s), c = ue(a, (y) => a.selectors.shouldScrollIntoView(y, r));
6825
+ let e = Pe(), { id: r = `headlessui-menu-item-${e}`, disabled: o = !1, ...i } = t, a = jo("Menu.Item"), l = ue(a, (y) => a.selectors.isActive(y, r)), s = ie(null), u = Ie(n, s), c = ue(a, (y) => a.selectors.shouldScrollIntoView(y, r));
6826
6826
  ve(() => {
6827
6827
  if (c) return He().requestAnimationFrame(() => {
6828
6828
  var y, C;
@@ -6836,20 +6836,20 @@ function Ih(t, n) {
6836
6836
  h.current.disabled = o;
6837
6837
  }, [h, o]), ve(() => (a.actions.registerItem(r, h), () => a.actions.unregisterItem(r)), [h, r]);
6838
6838
  let f = X(() => {
6839
- a.send({ type: be.CloseMenu });
6839
+ a.send({ type: ye.CloseMenu });
6840
6840
  }), v = X((y) => {
6841
6841
  if (o) return y.preventDefault();
6842
- a.send({ type: be.CloseMenu }), ja(a.state.buttonElement);
6842
+ a.send({ type: ye.CloseMenu }), Fa(a.state.buttonElement);
6843
6843
  }), b = X(() => {
6844
- if (o) return a.send({ type: be.GoToItem, focus: Q.Nothing });
6845
- a.send({ type: be.GoToItem, focus: Q.Specific, id: r });
6844
+ if (o) return a.send({ type: ye.GoToItem, focus: Q.Nothing });
6845
+ a.send({ type: ye.GoToItem, focus: Q.Specific, id: r });
6846
6846
  }), x = ho(), M = X((y) => {
6847
- x.update(y), !o && (l || a.send({ type: be.GoToItem, focus: Q.Specific, id: r, trigger: $n.Pointer }));
6847
+ x.update(y), !o && (l || a.send({ type: ye.GoToItem, focus: Q.Specific, id: r, trigger: $n.Pointer }));
6848
6848
  }), D = X((y) => {
6849
- x.wasMoved(y) && (o || l || a.send({ type: be.GoToItem, focus: Q.Specific, id: r, trigger: $n.Pointer }));
6849
+ x.wasMoved(y) && (o || l || a.send({ type: ye.GoToItem, focus: Q.Specific, id: r, trigger: $n.Pointer }));
6850
6850
  }), T = X((y) => {
6851
- x.wasMoved(y) && (o || l && a.send({ type: be.GoToItem, focus: Q.Nothing }));
6852
- }), [L, R] = Qn(), [F, P] = Rd(), k = se(() => ({ active: l, focus: l, disabled: o, close: f }), [l, o, f]), N = { id: r, ref: u, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": L, "aria-describedby": F, disabled: void 0, onClick: v, onFocus: b, onPointerEnter: M, onMouseEnter: M, onPointerMove: D, onMouseMove: D, onPointerLeave: T, onMouseLeave: T }, E = De();
6851
+ x.wasMoved(y) && (o || l && a.send({ type: ye.GoToItem, focus: Q.Nothing }));
6852
+ }), [L, R] = Qn(), [j, P] = Rd(), k = se(() => ({ active: l, focus: l, disabled: o, close: f }), [l, o, f]), N = { id: r, ref: u, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": L, "aria-describedby": j, disabled: void 0, onClick: v, onFocus: b, onPointerEnter: M, onMouseEnter: M, onPointerMove: D, onMouseMove: D, onPointerLeave: T, onMouseLeave: T }, E = De();
6853
6853
  return V.createElement(R, null, V.createElement(P, null, E({ ourProps: N, theirProps: i, slot: k, defaultTag: Th, name: "Menu.Item" })));
6854
6854
  }
6855
6855
  let Ah = "div";
@@ -6858,18 +6858,18 @@ function Ph(t, n) {
6858
6858
  return V.createElement(r, null, a({ ourProps: i, theirProps: o, slot: {}, defaultTag: Ah, name: "Menu.Section" }));
6859
6859
  }
6860
6860
  let Nh = "header";
6861
- function jh(t, n) {
6861
+ function Fh(t, n) {
6862
6862
  let e = Pe(), { id: r = `headlessui-menu-heading-${e}`, ...o } = t, i = lo();
6863
6863
  ve(() => i.register(r), [r, i.register]);
6864
6864
  let a = { id: r, ref: n, role: "presentation", ...i.props };
6865
6865
  return De()({ ourProps: a, theirProps: o, slot: {}, defaultTag: Nh, name: "Menu.Heading" });
6866
6866
  }
6867
- let Fh = "div";
6867
+ let jh = "div";
6868
6868
  function Lh(t, n) {
6869
6869
  let e = t, r = { ref: n, role: "separator" };
6870
- return De()({ ourProps: r, theirProps: e, slot: {}, defaultTag: Fh, name: "Menu.Separator" });
6870
+ return De()({ ourProps: r, theirProps: e, slot: {}, defaultTag: jh, name: "Menu.Separator" });
6871
6871
  }
6872
- let Rh = Me(Ch), _h = Me(Dh), Hh = Me(kh), Bh = Me(Ih), zh = Me(Ph), Vh = Me(jh), $h = Me(Lh);
6872
+ let Rh = Me(Ch), _h = Me(Dh), Hh = Me(kh), Bh = Me(Ih), zh = Me(Ph), Vh = Me(Fh), $h = Me(Lh);
6873
6873
  Object.assign(Rh, { Button: _h, Items: Hh, Item: Bh, Section: zh, Heading: Vh, Separator: $h });
6874
6874
  function Gr(t) {
6875
6875
  const n = d.useRef(void 0), e = d.useCallback((r) => {
@@ -6895,8 +6895,8 @@ function Gr(t) {
6895
6895
  }, t);
6896
6896
  }
6897
6897
  process.env.NODE_ENV;
6898
- ye(void 0);
6899
- const Wh = V.createContext({}), Uh = () => V.useContext(Wh), Yh = (t, n) => `
6898
+ be(void 0);
6899
+ const Uh = V.createContext({}), Wh = () => V.useContext(Uh), Yh = (t, n) => `
6900
6900
  ${t ? "jn:whitespace-nowrap" : ""}
6901
6901
  ${n === "center" ? `
6902
6902
  jn:justify-center
@@ -6913,7 +6913,7 @@ const Wh = V.createContext({}), Uh = () => V.useContext(Wh), Yh = (t, n) => `
6913
6913
  return t && (n = { gridColumn: `span ${t} / span ${t}` }), n;
6914
6914
  }, Ml = Z(
6915
6915
  ({ colSpan: t, nowrap: n = !1, className: e = "", children: r, ...o }, i) => {
6916
- const a = (Uh() || {}).cellVerticalAlignment;
6916
+ const a = (Wh() || {}).cellVerticalAlignment;
6917
6917
  return /* @__PURE__ */ _.jsx(
6918
6918
  "div",
6919
6919
  {
@@ -6955,18 +6955,20 @@ const Kh = `
6955
6955
  )
6956
6956
  );
6957
6957
  Zh.displayName = "DataGridHeadCell";
6958
- const qh = `
6959
- jn:contents
6960
- `, Xh = Z(
6961
- ({
6962
- /* selected, disabled,*/
6963
- className: t = "",
6964
- children: n,
6965
- /*onChange,*/
6966
- ...e
6967
- }, r) => /* @__PURE__ */ _.jsx("div", { className: `juno-datagrid-row ${qh} ${t}`, role: "row", ref: r, ...e, children: n })
6958
+ const qh = Z(
6959
+ ({ isSelected: t = !1, onClick: n, className: e = "", children: r, ...o }, i) => {
6960
+ const a = (s) => {
6961
+ n && n(s);
6962
+ }, l = `
6963
+ datagrid-row
6964
+ ${t ? "datagrid-row-selected" : ""}
6965
+ ${n ? "datagrid-row-hoverable" : ""}
6966
+ ${e}
6967
+ `;
6968
+ return /* @__PURE__ */ _.jsx("div", { className: l, role: "row", ref: i, onClick: a, ...o, children: r });
6969
+ }
6968
6970
  );
6969
- Xh.displayName = "DataGridRow";
6971
+ qh.displayName = "DataGridRow";
6970
6972
  var Ir = [
6971
6973
  "onChange",
6972
6974
  "onClose",
@@ -7117,7 +7119,7 @@ var Ir = [
7117
7119
  }, Ge = function(t) {
7118
7120
  return t === !0 ? 1 : 0;
7119
7121
  };
7120
- function Ui(t, n) {
7122
+ function Wi(t, n) {
7121
7123
  var e;
7122
7124
  return function() {
7123
7125
  var r = this, o = arguments;
@@ -7167,9 +7169,9 @@ function ze(t) {
7167
7169
  }
7168
7170
  }
7169
7171
  var Pr = function() {
7170
- }, Wn = function(t, n, e) {
7172
+ }, Un = function(t, n, e) {
7171
7173
  return e.months[n ? "shorthand" : "longhand"][t];
7172
- }, Qh = {
7174
+ }, Xh = {
7173
7175
  D: Pr,
7174
7176
  F: function(t, n, e) {
7175
7177
  t.setMonth(e.months.longhand.indexOf(n));
@@ -7266,7 +7268,7 @@ var Pr = function() {
7266
7268
  return n.weekdays.shorthand[Jt.w(t, n, e)];
7267
7269
  },
7268
7270
  F: function(t, n, e) {
7269
- return Wn(Jt.n(t, n, e) - 1, !1, n);
7271
+ return Un(Jt.n(t, n, e) - 1, !1, n);
7270
7272
  },
7271
7273
  G: function(t, n, e) {
7272
7274
  return _e(Jt.h(t, n, e));
@@ -7281,7 +7283,7 @@ var Pr = function() {
7281
7283
  return n.amPM[Ge(t.getHours() > 11)];
7282
7284
  },
7283
7285
  M: function(t, n) {
7284
- return Wn(t.getMonth(), !0, n);
7286
+ return Un(t.getMonth(), !0, n);
7285
7287
  },
7286
7288
  S: function(t) {
7287
7289
  return _e(t.getSeconds());
@@ -7358,10 +7360,10 @@ var Pr = function() {
7358
7360
  var T = h[x], L = T === "\\", R = h[x - 1] === "\\" || L;
7359
7361
  if (xt[T] && !R) {
7360
7362
  D += xt[T];
7361
- var F = new RegExp(D).exec(i);
7362
- F && (v = !0) && b[T !== "Y" ? "push" : "unshift"]({
7363
- fn: Qh[T],
7364
- val: F[++M]
7363
+ var j = new RegExp(D).exec(i);
7364
+ j && (v = !0) && b[T !== "Y" ? "push" : "unshift"]({
7365
+ fn: Xh[T],
7366
+ val: j[++M]
7365
7367
  });
7366
7368
  } else L || (D += ".");
7367
7369
  }
@@ -7382,17 +7384,17 @@ var Pr = function() {
7382
7384
  function Ve(t, n, e) {
7383
7385
  return e === void 0 && (e = !0), e !== !1 ? new Date(t.getTime()).setHours(0, 0, 0, 0) - new Date(n.getTime()).setHours(0, 0, 0, 0) : t.getTime() - n.getTime();
7384
7386
  }
7385
- var Jh = function(t, n, e) {
7387
+ var Qh = function(t, n, e) {
7386
7388
  return t > Math.min(n, e) && t < Math.max(n, e);
7387
7389
  }, Nr = function(t, n, e) {
7388
7390
  return t * 3600 + n * 60 + e;
7389
- }, eg = function(t) {
7391
+ }, Jh = function(t) {
7390
7392
  var n = Math.floor(t / 3600), e = (t - n * 3600) / 60;
7391
7393
  return [n, e, t - n * 3600 - e * 60];
7392
- }, tg = {
7394
+ }, eg = {
7393
7395
  DAY: 864e5
7394
7396
  };
7395
- function jr(t) {
7397
+ function Fr(t) {
7396
7398
  var n = t.defaultHour, e = t.defaultMinute, r = t.defaultSeconds;
7397
7399
  if (t.minDate !== void 0) {
7398
7400
  var o = t.minDate.getHours(), i = t.minDate.getMinutes(), a = t.minDate.getSeconds();
@@ -7433,13 +7435,13 @@ var Ne = function() {
7433
7435
  for (var i = arguments[n], a = 0, l = i.length; a < l; a++, o++)
7434
7436
  r[o] = i[a];
7435
7437
  return r;
7436
- }, ng = 300;
7437
- function rg(t, n) {
7438
+ }, tg = 300;
7439
+ function ng(t, n) {
7438
7440
  var e = {
7439
7441
  config: Ne(Ne({}, _t), Se.defaultConfig),
7440
7442
  l10n: ln
7441
7443
  };
7442
- e.parseDate = Kr({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = b, e._setHoursFromDate = h, e._positionCalendar = gn, e.changeMonth = Y, e.changeYear = ee, e.clear = J, e.close = ae, e.onMouseOver = hn, e._createElement = ge, e.createDay = F, e.destroy = G, e.isEnabled = z, e.jumpToDate = D, e.updateValue = lt, e.open = Al, e.redraw = Ho, e.set = Fl, e.setDate = Ll, e.toggle = Bl;
7444
+ e.parseDate = Kr({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = b, e._setHoursFromDate = h, e._positionCalendar = gn, e.changeMonth = Y, e.changeYear = ee, e.clear = J, e.close = ae, e.onMouseOver = hn, e._createElement = ge, e.createDay = j, e.destroy = G, e.isEnabled = z, e.jumpToDate = D, e.updateValue = lt, e.open = Al, e.redraw = Ho, e.set = jl, e.setDate = Ll, e.toggle = Bl;
7443
7445
  function r() {
7444
7446
  e.utils = {
7445
7447
  getDaysInMonth: function(p, m) {
@@ -7470,7 +7472,7 @@ function rg(t, n) {
7470
7472
  }
7471
7473
  function s(p) {
7472
7474
  if (e.selectedDates.length === 0) {
7473
- var m = e.config.minDate === void 0 || Ve(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), w = jr(e.config);
7475
+ var m = e.config.minDate === void 0 || Ve(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), w = Fr(e.config);
7474
7476
  m.setHours(w.hours, w.minutes, w.seconds, m.getMilliseconds()), e.selectedDates = [m], e.latestSelectedDateObj = m;
7475
7477
  }
7476
7478
  p !== void 0 && p.type !== "blur" && $l(p);
@@ -7495,9 +7497,9 @@ function rg(t, n) {
7495
7497
  e.amPM !== void 0 && (p = u(p, e.amPM.textContent));
7496
7498
  var S = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && Ve(e.latestSelectedDateObj, e.config.minDate, !0) === 0, H = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && Ve(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
7497
7499
  if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
7498
- var U = Nr(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), oe = Nr(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), te = Nr(p, m, w);
7499
- if (te > oe && te < U) {
7500
- var ce = eg(U);
7500
+ var W = Nr(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), oe = Nr(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), te = Nr(p, m, w);
7501
+ if (te > oe && te < W) {
7502
+ var ce = Jh(W);
7501
7503
  p = ce[0], m = ce[1], w = ce[2];
7502
7504
  }
7503
7505
  } else {
@@ -7551,8 +7553,8 @@ function rg(t, n) {
7551
7553
  Hl();
7552
7554
  return;
7553
7555
  }
7554
- var p = Ui(Il, 50);
7555
- if (e._debouncedChange = Ui(x, ng), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && b(e.daysContainer, "mouseover", function(w) {
7556
+ var p = Wi(Il, 50);
7557
+ if (e._debouncedChange = Wi(x, tg), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && b(e.daysContainer, "mouseover", function(w) {
7556
7558
  e.config.mode === "range" && hn(ze(w));
7557
7559
  }), b(e._input, "keydown", mn), e.calendarContainer !== void 0 && b(e.calendarContainer, "keydown", mn), !e.config.inline && !e.config.static && b(window, "resize", p), window.ontouchstart !== void 0 ? b(window.document, "touchstart", me) : b(window.document, "mousedown", me), b(window.document, "focus", me, { capture: !0 }), e.config.clickOpens === !0 && (b(e._input, "focus", e.open), b(e._input, "click", e.open)), e.daysContainer !== void 0 && (b(e.monthNav, "click", Vl), b(e.monthNav, ["keyup", "increment"], v), b(e.daysContainer, "click", Bo)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
7558
7560
  var m = function(w) {
@@ -7570,23 +7572,23 @@ function rg(t, n) {
7570
7572
  var w = p !== void 0 ? e.parseDate(p) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), S = e.currentYear, H = e.currentMonth;
7571
7573
  try {
7572
7574
  w !== void 0 && (e.currentYear = w.getFullYear(), e.currentMonth = w.getMonth());
7573
- } catch (U) {
7574
- U.message = "Invalid date supplied: " + w, e.config.errorHandler(U);
7575
+ } catch (W) {
7576
+ W.message = "Invalid date supplied: " + w, e.config.errorHandler(W);
7575
7577
  }
7576
- m && e.currentYear !== S && (Oe("onYearChange"), j()), m && (e.currentYear !== S || e.currentMonth !== H) && Oe("onMonthChange"), e.redraw();
7578
+ m && e.currentYear !== S && (Oe("onYearChange"), F()), m && (e.currentYear !== S || e.currentMonth !== H) && Oe("onMonthChange"), e.redraw();
7577
7579
  }
7578
7580
  function T(p) {
7579
7581
  var m = ze(p);
7580
7582
  ~m.className.indexOf("arrow") && L(p, m.classList.contains("arrowUp") ? 1 : -1);
7581
7583
  }
7582
7584
  function L(p, m, w) {
7583
- var S = p && ze(p), H = w || S && S.parentNode && S.parentNode.firstChild, U = dr("increment");
7584
- U.delta = m, H && H.dispatchEvent(U);
7585
+ var S = p && ze(p), H = w || S && S.parentNode && S.parentNode.firstChild, W = dr("increment");
7586
+ W.delta = m, H && H.dispatchEvent(W);
7585
7587
  }
7586
7588
  function R() {
7587
7589
  var p = window.document.createDocumentFragment();
7588
7590
  if (e.calendarContainer = ge("div", "flatpickr-calendar"), e.calendarContainer.tabIndex = -1, !e.config.noCalendar) {
7589
- if (p.appendChild(W()), e.innerContainer = ge("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
7591
+ if (p.appendChild(U()), e.innerContainer = ge("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
7590
7592
  var m = O(), w = m.weekWrapper, S = m.weekNumbers;
7591
7593
  e.innerContainer.appendChild(w), e.weekNumbers = S, e.weekWrapper = w;
7592
7594
  }
@@ -7595,29 +7597,29 @@ function rg(t, n) {
7595
7597
  e.config.enableTime && p.appendChild(K()), Le(e.calendarContainer, "rangeMode", e.config.mode === "range"), Le(e.calendarContainer, "animate", e.config.animate === !0), Le(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(p);
7596
7598
  var H = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
7597
7599
  if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!H && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
7598
- var U = ge("div", "flatpickr-wrapper");
7599
- e.element.parentNode && e.element.parentNode.insertBefore(U, e.element), U.appendChild(e.element), e.altInput && U.appendChild(e.altInput), U.appendChild(e.calendarContainer);
7600
+ var W = ge("div", "flatpickr-wrapper");
7601
+ e.element.parentNode && e.element.parentNode.insertBefore(W, e.element), W.appendChild(e.element), e.altInput && W.appendChild(e.altInput), W.appendChild(e.calendarContainer);
7600
7602
  }
7601
7603
  !e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
7602
7604
  }
7603
- function F(p, m, w, S) {
7604
- var H = z(m, !0), U = ge("span", p, m.getDate().toString());
7605
- return U.dateObj = m, U.$i = S, U.setAttribute("aria-label", e.formatDate(m, e.config.ariaDateFormat)), p.indexOf("hidden") === -1 && Ve(m, e.now) === 0 && (e.todayDateElem = U, U.classList.add("today"), U.setAttribute("aria-current", "date")), H ? (U.tabIndex = -1, fr(m) && (U.classList.add("selected"), e.selectedDateElem = U, e.config.mode === "range" && (Le(U, "startRange", e.selectedDates[0] && Ve(m, e.selectedDates[0], !0) === 0), Le(U, "endRange", e.selectedDates[1] && Ve(m, e.selectedDates[1], !0) === 0), p === "nextMonthDay" && U.classList.add("inRange")))) : U.classList.add("flatpickr-disabled"), e.config.mode === "range" && zl(m) && !fr(m) && U.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && p !== "prevMonthDay" && S % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(m) + "</span>"), Oe("onDayCreate", U), U;
7605
+ function j(p, m, w, S) {
7606
+ var H = z(m, !0), W = ge("span", p, m.getDate().toString());
7607
+ return W.dateObj = m, W.$i = S, W.setAttribute("aria-label", e.formatDate(m, e.config.ariaDateFormat)), p.indexOf("hidden") === -1 && Ve(m, e.now) === 0 && (e.todayDateElem = W, W.classList.add("today"), W.setAttribute("aria-current", "date")), H ? (W.tabIndex = -1, fr(m) && (W.classList.add("selected"), e.selectedDateElem = W, e.config.mode === "range" && (Le(W, "startRange", e.selectedDates[0] && Ve(m, e.selectedDates[0], !0) === 0), Le(W, "endRange", e.selectedDates[1] && Ve(m, e.selectedDates[1], !0) === 0), p === "nextMonthDay" && W.classList.add("inRange")))) : W.classList.add("flatpickr-disabled"), e.config.mode === "range" && zl(m) && !fr(m) && W.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && p !== "prevMonthDay" && S % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(m) + "</span>"), Oe("onDayCreate", W), W;
7606
7608
  }
7607
7609
  function P(p) {
7608
7610
  p.focus(), e.config.mode === "range" && hn(p);
7609
7611
  }
7610
7612
  function k(p) {
7611
7613
  for (var m = p > 0 ? 0 : e.config.showMonths - 1, w = p > 0 ? e.config.showMonths : -1, S = m; S != w; S += p)
7612
- for (var H = e.daysContainer.children[S], U = p > 0 ? 0 : H.children.length - 1, oe = p > 0 ? H.children.length : -1, te = U; te != oe; te += p) {
7614
+ for (var H = e.daysContainer.children[S], W = p > 0 ? 0 : H.children.length - 1, oe = p > 0 ? H.children.length : -1, te = W; te != oe; te += p) {
7613
7615
  var ce = H.children[te];
7614
7616
  if (ce.className.indexOf("hidden") === -1 && z(ce.dateObj))
7615
7617
  return ce;
7616
7618
  }
7617
7619
  }
7618
7620
  function N(p, m) {
7619
- for (var w = p.className.indexOf("Month") === -1 ? p.dateObj.getMonth() : e.currentMonth, S = m > 0 ? e.config.showMonths : -1, H = m > 0 ? 1 : -1, U = w - e.currentMonth; U != S; U += H)
7620
- for (var oe = e.daysContainer.children[U], te = w - e.currentMonth === U ? p.$i + m : m < 0 ? oe.children.length - 1 : 0, ce = oe.children.length, q = te; q >= 0 && q < ce && q != (m > 0 ? ce : -1); q += H) {
7621
+ for (var w = p.className.indexOf("Month") === -1 ? p.dateObj.getMonth() : e.currentMonth, S = m > 0 ? e.config.showMonths : -1, H = m > 0 ? 1 : -1, W = w - e.currentMonth; W != S; W += H)
7622
+ for (var oe = e.daysContainer.children[W], te = w - e.currentMonth === W ? p.$i + m : m < 0 ? oe.children.length - 1 : 0, ce = oe.children.length, q = te; q >= 0 && q < ce && q != (m > 0 ? ce : -1); q += H) {
7621
7623
  var re = oe.children[q];
7622
7624
  if (re.className.indexOf("hidden") === -1 && z(re.dateObj) && Math.abs(p.$i - q) >= Math.abs(m))
7623
7625
  return P(re);
@@ -7629,14 +7631,14 @@ function rg(t, n) {
7629
7631
  H === void 0 ? e._input.focus() : S ? N(H, m) : P(H);
7630
7632
  }
7631
7633
  function y(p, m) {
7632
- for (var w = (new Date(p, m, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, S = e.utils.getDaysInMonth((m - 1 + 12) % 12, p), H = e.utils.getDaysInMonth(m, p), U = window.document.createDocumentFragment(), oe = e.config.showMonths > 1, te = oe ? "prevMonthDay hidden" : "prevMonthDay", ce = oe ? "nextMonthDay hidden" : "nextMonthDay", q = S + 1 - w, re = 0; q <= S; q++, re++)
7633
- U.appendChild(F("flatpickr-day " + te, new Date(p, m - 1, q), q, re));
7634
+ for (var w = (new Date(p, m, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, S = e.utils.getDaysInMonth((m - 1 + 12) % 12, p), H = e.utils.getDaysInMonth(m, p), W = window.document.createDocumentFragment(), oe = e.config.showMonths > 1, te = oe ? "prevMonthDay hidden" : "prevMonthDay", ce = oe ? "nextMonthDay hidden" : "nextMonthDay", q = S + 1 - w, re = 0; q <= S; q++, re++)
7635
+ W.appendChild(j("flatpickr-day " + te, new Date(p, m - 1, q), q, re));
7634
7636
  for (q = 1; q <= H; q++, re++)
7635
- U.appendChild(F("flatpickr-day", new Date(p, m, q), q, re));
7637
+ W.appendChild(j("flatpickr-day", new Date(p, m, q), q, re));
7636
7638
  for (var we = H + 1; we <= 42 - w && (e.config.showMonths === 1 || re % 7 !== 0); we++, re++)
7637
- U.appendChild(F("flatpickr-day " + ce, new Date(p, m + 1, we % H), we, re));
7639
+ W.appendChild(j("flatpickr-day " + ce, new Date(p, m + 1, we % H), we, re));
7638
7640
  var et = ge("div", "dayContainer");
7639
- return et.appendChild(U), et;
7641
+ return et.appendChild(W), et;
7640
7642
  }
7641
7643
  function C() {
7642
7644
  if (e.daysContainer !== void 0) {
@@ -7648,7 +7650,7 @@ function rg(t, n) {
7648
7650
  e.daysContainer.appendChild(p), e.days = e.daysContainer.firstChild, e.config.mode === "range" && e.selectedDates.length === 1 && hn();
7649
7651
  }
7650
7652
  }
7651
- function j() {
7653
+ function F() {
7652
7654
  if (!(e.config.showMonths > 1 || e.config.monthSelectorType !== "dropdown")) {
7653
7655
  var p = function(S) {
7654
7656
  return e.config.minDate !== void 0 && e.currentYear === e.config.minDate.getFullYear() && S < e.config.minDate.getMonth() ? !1 : !(e.config.maxDate !== void 0 && e.currentYear === e.config.maxDate.getFullYear() && S > e.config.maxDate.getMonth());
@@ -7657,7 +7659,7 @@ function rg(t, n) {
7657
7659
  for (var m = 0; m < 12; m++)
7658
7660
  if (p(m)) {
7659
7661
  var w = ge("option", "flatpickr-monthDropdown-month");
7660
- w.value = new Date(e.currentYear, m).getMonth().toString(), w.textContent = Wn(m, e.config.shorthandCurrentMonth, e.l10n), w.tabIndex = -1, e.currentMonth === m && (w.selected = !0), e.monthsDropdownContainer.appendChild(w);
7662
+ w.value = new Date(e.currentYear, m).getMonth().toString(), w.textContent = Un(m, e.config.shorthandCurrentMonth, e.l10n), w.tabIndex = -1, e.currentMonth === m && (w.selected = !0), e.monthsDropdownContainer.appendChild(w);
7661
7663
  }
7662
7664
  }
7663
7665
  }
@@ -7666,11 +7668,11 @@ function rg(t, n) {
7666
7668
  e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? w = ge("span", "cur-month") : (e.monthsDropdownContainer = ge("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), b(e.monthsDropdownContainer, "change", function(oe) {
7667
7669
  var te = ze(oe), ce = parseInt(te.value, 10);
7668
7670
  e.changeMonth(ce - e.currentMonth), Oe("onMonthChange");
7669
- }), j(), w = e.monthsDropdownContainer);
7671
+ }), F(), w = e.monthsDropdownContainer);
7670
7672
  var S = Cn("cur-year", { tabindex: "-1" }), H = S.getElementsByTagName("input")[0];
7671
7673
  H.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && H.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (H.setAttribute("max", e.config.maxDate.getFullYear().toString()), H.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
7672
- var U = ge("div", "flatpickr-current-month");
7673
- return U.appendChild(w), U.appendChild(S), m.appendChild(U), p.appendChild(m), {
7674
+ var W = ge("div", "flatpickr-current-month");
7675
+ return W.appendChild(w), W.appendChild(S), m.appendChild(W), p.appendChild(m), {
7674
7676
  container: p,
7675
7677
  yearElement: H,
7676
7678
  monthElement: w
@@ -7684,7 +7686,7 @@ function rg(t, n) {
7684
7686
  }
7685
7687
  e.monthNav.appendChild(e.nextMonthNav);
7686
7688
  }
7687
- function W() {
7689
+ function U() {
7688
7690
  return e.monthNav = ge("div", "flatpickr-months"), e.yearElements = [], e.monthElements = [], e.prevMonthNav = ge("span", "flatpickr-prev-month"), e.prevMonthNav.innerHTML = e.config.prevArrow, e.nextMonthNav = ge("span", "flatpickr-next-month"), e.nextMonthNav.innerHTML = e.config.nextArrow, I(), Object.defineProperty(e, "_hidePrevMonthArrow", {
7689
7691
  get: function() {
7690
7692
  return e.__hidePrevMonthArrow;
@@ -7703,7 +7705,7 @@ function rg(t, n) {
7703
7705
  }
7704
7706
  function K() {
7705
7707
  e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
7706
- var p = jr(e.config);
7708
+ var p = Fr(e.config);
7707
7709
  e.timeContainer = ge("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
7708
7710
  var m = ge("span", "flatpickr-time-separator", ":"), w = Cn("flatpickr-hour", {
7709
7711
  "aria-label": e.l10n.hourAriaLabel
@@ -7752,12 +7754,12 @@ function rg(t, n) {
7752
7754
  function Y(p, m) {
7753
7755
  m === void 0 && (m = !0);
7754
7756
  var w = m ? p : p - e.currentMonth;
7755
- w < 0 && e._hidePrevMonthArrow === !0 || w > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += w, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Oe("onYearChange"), j()), C(), Oe("onMonthChange"), bn());
7757
+ w < 0 && e._hidePrevMonthArrow === !0 || w > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += w, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Oe("onYearChange"), F()), C(), Oe("onMonthChange"), bn());
7756
7758
  }
7757
7759
  function J(p, m) {
7758
7760
  if (p === void 0 && (p = !0), m === void 0 && (m = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, m === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
7759
- var w = jr(e.config), S = w.hours, H = w.minutes, U = w.seconds;
7760
- f(S, H, U);
7761
+ var w = Fr(e.config), S = w.hours, H = w.minutes, W = w.seconds;
7762
+ f(S, H, W);
7761
7763
  }
7762
7764
  e.redraw(), p && Oe("onChange");
7763
7765
  }
@@ -7822,16 +7824,16 @@ function rg(t, n) {
7822
7824
  }
7823
7825
  function me(p) {
7824
7826
  if (e.isOpen && !e.config.inline) {
7825
- var m = ze(p), w = de(m), S = m === e.input || m === e.altInput || e.element.contains(m) || p.path && p.path.indexOf && (~p.path.indexOf(e.input) || ~p.path.indexOf(e.altInput)), H = !S && !w && !de(p.relatedTarget), U = !e.config.ignoredFocusElements.some(function(oe) {
7827
+ var m = ze(p), w = de(m), S = m === e.input || m === e.altInput || e.element.contains(m) || p.path && p.path.indexOf && (~p.path.indexOf(e.input) || ~p.path.indexOf(e.altInput)), H = !S && !w && !de(p.relatedTarget), W = !e.config.ignoredFocusElements.some(function(oe) {
7826
7828
  return oe.contains(m);
7827
7829
  });
7828
- H && U && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && s(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
7830
+ H && W && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && s(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
7829
7831
  }
7830
7832
  }
7831
7833
  function ee(p) {
7832
7834
  if (!(!p || e.config.minDate && p < e.config.minDate.getFullYear() || e.config.maxDate && p > e.config.maxDate.getFullYear())) {
7833
7835
  var m = p, w = e.currentYear !== m;
7834
- e.currentYear = m || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), w && (e.redraw(), Oe("onYearChange"), j());
7836
+ e.currentYear = m || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), w && (e.redraw(), Oe("onYearChange"), F());
7835
7837
  }
7836
7838
  }
7837
7839
  function z(p, m) {
@@ -7844,8 +7846,8 @@ function rg(t, n) {
7844
7846
  return !0;
7845
7847
  if (S === void 0)
7846
7848
  return !1;
7847
- for (var H = !!e.config.enable, U = (w = e.config.enable) !== null && w !== void 0 ? w : e.config.disable, oe = 0, te = void 0; oe < U.length; oe++) {
7848
- if (te = U[oe], typeof te == "function" && te(S) || te instanceof Date && S !== void 0 && te.getTime() === S.getTime())
7849
+ for (var H = !!e.config.enable, W = (w = e.config.enable) !== null && w !== void 0 ? w : e.config.disable, oe = 0, te = void 0; oe < W.length; oe++) {
7850
+ if (te = W[oe], typeof te == "function" && te(S) || te instanceof Date && S !== void 0 && te.getTime() === S.getTime())
7849
7851
  return H;
7850
7852
  if (typeof te == "string") {
7851
7853
  var ce = e.parseDate(te, void 0, !0);
@@ -7863,12 +7865,12 @@ function rg(t, n) {
7863
7865
  m && w && !(p.relatedTarget && de(p.relatedTarget)) && e.setDate(e._input.value, !0, p.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
7864
7866
  }
7865
7867
  function mn(p) {
7866
- var m = ze(p), w = e.config.wrap ? t.contains(m) : m === e._input, S = e.config.allowInput, H = e.isOpen && (!S || !w), U = e.config.inline && w && !S;
7868
+ var m = ze(p), w = e.config.wrap ? t.contains(m) : m === e._input, S = e.config.allowInput, H = e.isOpen && (!S || !w), W = e.config.inline && w && !S;
7867
7869
  if (p.keyCode === 13 && w) {
7868
7870
  if (S)
7869
7871
  return e.setDate(e._input.value, !0, m === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), m.blur();
7870
7872
  e.open();
7871
- } else if (de(m) || H || U) {
7873
+ } else if (de(m) || H || W) {
7872
7874
  var oe = !!e.timeContainer && e.timeContainer.contains(m);
7873
7875
  switch (p.keyCode) {
7874
7876
  case 13:
@@ -7931,21 +7933,21 @@ function rg(t, n) {
7931
7933
  }
7932
7934
  function hn(p, m) {
7933
7935
  if (m === void 0 && (m = "flatpickr-day"), !(e.selectedDates.length !== 1 || p && (!p.classList.contains(m) || p.classList.contains("flatpickr-disabled")))) {
7934
- for (var w = p ? p.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), S = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), H = Math.min(w, e.selectedDates[0].getTime()), U = Math.max(w, e.selectedDates[0].getTime()), oe = !1, te = 0, ce = 0, q = H; q < U; q += tg.DAY)
7935
- z(new Date(q), !0) || (oe = oe || q > H && q < U, q < S && (!te || q > te) ? te = q : q > S && (!ce || q < ce) && (ce = q));
7936
+ for (var w = p ? p.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), S = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), H = Math.min(w, e.selectedDates[0].getTime()), W = Math.max(w, e.selectedDates[0].getTime()), oe = !1, te = 0, ce = 0, q = H; q < W; q += eg.DAY)
7937
+ z(new Date(q), !0) || (oe = oe || q > H && q < W, q < S && (!te || q > te) ? te = q : q > S && (!ce || q < ce) && (ce = q));
7936
7938
  var re = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + m));
7937
7939
  re.forEach(function(we) {
7938
- var et = we.dateObj, Be = et.getTime(), Ut = te > 0 && Be < te || ce > 0 && Be > ce;
7939
- if (Ut) {
7940
- we.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(jt) {
7941
- we.classList.remove(jt);
7940
+ var et = we.dateObj, Be = et.getTime(), Wt = te > 0 && Be < te || ce > 0 && Be > ce;
7941
+ if (Wt) {
7942
+ we.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Ft) {
7943
+ we.classList.remove(Ft);
7942
7944
  });
7943
7945
  return;
7944
- } else if (oe && !Ut)
7946
+ } else if (oe && !Wt)
7945
7947
  return;
7946
- ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(jt) {
7947
- we.classList.remove(jt);
7948
- }), p !== void 0 && (p.classList.add(w <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), S < w && Be === S ? we.classList.add("startRange") : S > w && Be === S && we.classList.add("endRange"), Be >= te && (ce === 0 || Be <= ce) && Jh(Be, S, w) && we.classList.add("inRange"));
7948
+ ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(Ft) {
7949
+ we.classList.remove(Ft);
7950
+ }), p !== void 0 && (p.classList.add(w <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), S < w && Be === S ? we.classList.add("startRange") : S > w && Be === S && we.classList.add("endRange"), Be >= te && (ce === 0 || Be <= ce) && Qh(Be, S, w) && we.classList.add("inRange"));
7949
7951
  });
7950
7952
  }
7951
7953
  }
@@ -8014,8 +8016,8 @@ function rg(t, n) {
8014
8016
  w.dateFormat = m.noCalendar || S ? "H:i" + (m.enableSeconds ? ":S" : "") : H + " H:i" + (m.enableSeconds ? ":S" : "");
8015
8017
  }
8016
8018
  if (m.altInput && (m.enableTime || S) && !m.altFormat) {
8017
- var U = Se.defaultConfig.altFormat || _t.altFormat;
8018
- w.altFormat = m.noCalendar || S ? "h:i" + (m.enableSeconds ? ":S K" : " K") : U + (" h:i" + (m.enableSeconds ? ":S" : "") + " K");
8019
+ var W = Se.defaultConfig.altFormat || _t.altFormat;
8020
+ w.altFormat = m.noCalendar || S ? "h:i" + (m.enableSeconds ? ":S K" : " K") : W + (" h:i" + (m.enableSeconds ? ":S" : "") + " K");
8019
8021
  }
8020
8022
  Object.defineProperty(e.config, "minDate", {
8021
8023
  get: function() {
@@ -8071,23 +8073,23 @@ function rg(t, n) {
8071
8073
  return void e.config.position(e, p);
8072
8074
  if (e.calendarContainer !== void 0) {
8073
8075
  Oe("onPreCalendarPosition");
8074
- var m = p || e._positionElement, w = Array.prototype.reduce.call(e.calendarContainer.children, function(Xl, Ql) {
8076
+ var m = p || e._positionElement, w = Array.prototype.reduce.call(e.calendarContainer.children, (function(Xl, Ql) {
8075
8077
  return Xl + Ql.offsetHeight;
8076
- }, 0), S = e.calendarContainer.offsetWidth, H = e.config.position.split(" "), U = H[0], oe = H.length > 1 ? H[1] : null, te = m.getBoundingClientRect(), ce = window.innerHeight - te.bottom, q = U === "above" || U !== "below" && ce < w && te.top > w, re = window.pageYOffset + te.top + (q ? -w - 2 : m.offsetHeight + 2);
8078
+ }), 0), S = e.calendarContainer.offsetWidth, H = e.config.position.split(" "), W = H[0], oe = H.length > 1 ? H[1] : null, te = m.getBoundingClientRect(), ce = window.innerHeight - te.bottom, q = W === "above" || W !== "below" && ce < w && te.top > w, re = window.pageYOffset + te.top + (q ? -w - 2 : m.offsetHeight + 2);
8077
8079
  if (Le(e.calendarContainer, "arrowTop", !q), Le(e.calendarContainer, "arrowBottom", q), !e.config.inline) {
8078
8080
  var we = window.pageXOffset + te.left, et = !1, Be = !1;
8079
8081
  oe === "center" ? (we -= (S - te.width) / 2, et = !0) : oe === "right" && (we -= S - te.width, Be = !0), Le(e.calendarContainer, "arrowLeft", !et && !Be), Le(e.calendarContainer, "arrowCenter", et), Le(e.calendarContainer, "arrowRight", Be);
8080
- var Ut = window.document.body.offsetWidth - (window.pageXOffset + te.right), jt = we + S > window.document.body.offsetWidth, Wl = Ut + S > window.document.body.offsetWidth;
8081
- if (Le(e.calendarContainer, "rightMost", jt), !e.config.static)
8082
- if (e.calendarContainer.style.top = re + "px", !jt)
8082
+ var Wt = window.document.body.offsetWidth - (window.pageXOffset + te.right), Ft = we + S > window.document.body.offsetWidth, Ul = Wt + S > window.document.body.offsetWidth;
8083
+ if (Le(e.calendarContainer, "rightMost", Ft), !e.config.static)
8084
+ if (e.calendarContainer.style.top = re + "px", !Ft)
8083
8085
  e.calendarContainer.style.left = we + "px", e.calendarContainer.style.right = "auto";
8084
- else if (!Wl)
8085
- e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Ut + "px";
8086
+ else if (!Ul)
8087
+ e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Wt + "px";
8086
8088
  else {
8087
8089
  var mr = Nl();
8088
8090
  if (mr === void 0)
8089
8091
  return;
8090
- var Ul = window.document.body.offsetWidth, Yl = Math.max(0, Ul / 2 - S / 2), Gl = ".flatpickr-calendar.centerMost:before", Kl = ".flatpickr-calendar.centerMost:after", Zl = mr.cssRules.length, ql = "{left:" + te.left + "px;right:auto;}";
8092
+ var Wl = window.document.body.offsetWidth, Yl = Math.max(0, Wl / 2 - S / 2), Gl = ".flatpickr-calendar.centerMost:before", Kl = ".flatpickr-calendar.centerMost:after", Zl = mr.cssRules.length, ql = "{left:" + te.left + "px;right:auto;}";
8091
8093
  Le(e.calendarContainer, "rightMost", !1), Le(e.calendarContainer, "centerMost", !0), mr.insertRule(Gl + "," + Kl + ql, Zl), e.calendarContainer.style.left = Yl + "px", e.calendarContainer.style.right = "auto";
8092
8094
  }
8093
8095
  }
@@ -8106,14 +8108,14 @@ function rg(t, n) {
8106
8108
  break;
8107
8109
  }
8108
8110
  }
8109
- return p ?? jl();
8111
+ return p ?? Fl();
8110
8112
  }
8111
- function jl() {
8113
+ function Fl() {
8112
8114
  var p = document.createElement("style");
8113
8115
  return document.head.appendChild(p), p.sheet;
8114
8116
  }
8115
8117
  function Ho() {
8116
- e.config.noCalendar || e.isMobile || (j(), bn(), C());
8118
+ e.config.noCalendar || e.isMobile || (F(), bn(), C());
8117
8119
  }
8118
8120
  function ur() {
8119
8121
  e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
@@ -8124,7 +8126,7 @@ function rg(t, n) {
8124
8126
  return re.classList && re.classList.contains("flatpickr-day") && !re.classList.contains("flatpickr-disabled") && !re.classList.contains("notAllowed");
8125
8127
  }, w = Sl(ze(p), m);
8126
8128
  if (w !== void 0) {
8127
- var S = w, H = e.latestSelectedDateObj = new Date(S.dateObj.getTime()), U = (H.getMonth() < e.currentMonth || H.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
8129
+ var S = w, H = e.latestSelectedDateObj = new Date(S.dateObj.getTime()), W = (H.getMonth() < e.currentMonth || H.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
8128
8130
  if (e.selectedDateElem = S, e.config.mode === "single")
8129
8131
  e.selectedDates = [H];
8130
8132
  else if (e.config.mode === "multiple") {
@@ -8133,11 +8135,11 @@ function rg(t, n) {
8133
8135
  } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = H, e.selectedDates.push(H), Ve(H, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(re, we) {
8134
8136
  return re.getTime() - we.getTime();
8135
8137
  }));
8136
- if (g(), U) {
8138
+ if (g(), W) {
8137
8139
  var te = e.currentYear !== H.getFullYear();
8138
- e.currentYear = H.getFullYear(), e.currentMonth = H.getMonth(), te && (Oe("onYearChange"), j()), Oe("onMonthChange");
8140
+ e.currentYear = H.getFullYear(), e.currentMonth = H.getMonth(), te && (Oe("onYearChange"), F()), Oe("onMonthChange");
8139
8141
  }
8140
- if (bn(), C(), lt(), !U && e.config.mode !== "range" && e.config.showMonths === 1 ? P(S) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
8142
+ if (bn(), C(), lt(), !W && e.config.mode !== "range" && e.config.showMonths === 1 ? P(S) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
8141
8143
  var ce = e.config.mode === "single" && !e.config.enableTime, q = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
8142
8144
  (ce || q) && ur();
8143
8145
  }
@@ -8156,7 +8158,7 @@ function rg(t, n) {
8156
8158
  }
8157
8159
  ]
8158
8160
  };
8159
- function Fl(p, m) {
8161
+ function jl(p, m) {
8160
8162
  if (p !== null && typeof p == "object") {
8161
8163
  Object.assign(e.config, p);
8162
8164
  for (var w in p)
@@ -8275,7 +8277,7 @@ function rg(t, n) {
8275
8277
  function bn() {
8276
8278
  e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(p, m) {
8277
8279
  var w = new Date(e.currentYear, e.currentMonth, 1);
8278
- w.setMonth(e.currentMonth + m), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[m].textContent = Wn(w.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = w.getMonth().toString(), p.value = w.getFullYear().toString();
8280
+ w.setMonth(e.currentMonth + m), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[m].textContent = Un(w.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = w.getMonth().toString(), p.value = w.getFullYear().toString();
8279
8281
  }), e._hidePrevMonthArrow = e.config.minDate !== void 0 && (e.currentYear === e.config.minDate.getFullYear() ? e.currentMonth <= e.config.minDate.getMonth() : e.currentYear < e.config.minDate.getFullYear()), e._hideNextMonthArrow = e.config.maxDate !== void 0 && (e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth + 1 > e.config.maxDate.getMonth() : e.currentYear > e.config.maxDate.getFullYear()));
8280
8282
  }
8281
8283
  function pr(p) {
@@ -8297,10 +8299,10 @@ function rg(t, n) {
8297
8299
  p.preventDefault();
8298
8300
  var m = p.type === "keydown", w = ze(p), S = w;
8299
8301
  e.amPM !== void 0 && w === e.amPM && (e.amPM.textContent = e.l10n.amPM[Ge(e.amPM.textContent === e.l10n.amPM[0])]);
8300
- var H = parseFloat(S.getAttribute("min")), U = parseFloat(S.getAttribute("max")), oe = parseFloat(S.getAttribute("step")), te = parseInt(S.value, 10), ce = p.delta || (m ? p.which === 38 ? 1 : -1 : 0), q = te + oe * ce;
8302
+ var H = parseFloat(S.getAttribute("min")), W = parseFloat(S.getAttribute("max")), oe = parseFloat(S.getAttribute("step")), te = parseInt(S.value, 10), ce = p.delta || (m ? p.which === 38 ? 1 : -1 : 0), q = te + oe * ce;
8301
8303
  if (typeof S.value < "u" && S.value.length === 2) {
8302
8304
  var re = S === e.hourElement, we = S === e.minuteElement;
8303
- q < H ? (q = U + q + Ge(!re) + (Ge(re) && Ge(!e.amPM)), we && L(void 0, -1, e.hourElement)) : q > U && (q = S === e.hourElement ? q - U - Ge(!e.amPM) : H, we && L(void 0, 1, e.hourElement)), e.amPM && re && (oe === 1 ? q + te === 23 : Math.abs(q - te) > oe) && (e.amPM.textContent = e.l10n.amPM[Ge(e.amPM.textContent === e.l10n.amPM[0])]), S.value = _e(q);
8305
+ q < H ? (q = W + q + Ge(!re) + (Ge(re) && Ge(!e.amPM)), we && L(void 0, -1, e.hourElement)) : q > W && (q = S === e.hourElement ? q - W - Ge(!e.amPM) : H, we && L(void 0, 1, e.hourElement)), e.amPM && re && (oe === 1 ? q + te === 23 : Math.abs(q - te) > oe) && (e.amPM.textContent = e.l10n.amPM[Ge(e.amPM.textContent === e.l10n.amPM[0])]), S.value = _e(q);
8304
8306
  }
8305
8307
  }
8306
8308
  return o(), e;
@@ -8313,7 +8315,7 @@ function Ht(t, n) {
8313
8315
  try {
8314
8316
  if (i.getAttribute("data-fp-omit") !== null)
8315
8317
  continue;
8316
- i._flatpickr !== void 0 && (i._flatpickr.destroy(), i._flatpickr = void 0), i._flatpickr = rg(i, n || {}), r.push(i._flatpickr);
8318
+ i._flatpickr !== void 0 && (i._flatpickr.destroy(), i._flatpickr = void 0), i._flatpickr = ng(i, n || {}), r.push(i._flatpickr);
8317
8319
  } catch (a) {
8318
8320
  console.error(a);
8319
8321
  }
@@ -8349,7 +8351,7 @@ Date.prototype.fp_incr = function(t) {
8349
8351
  return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof t == "string" ? parseInt(t, 10) : t));
8350
8352
  };
8351
8353
  typeof window < "u" && (window.flatpickr = Se);
8352
- const og = ({
8354
+ const rg = ({
8353
8355
  title: t,
8354
8356
  titleId: n,
8355
8357
  ...e
@@ -8413,28 +8415,28 @@ const og = ({
8413
8415
  } })))), /* @__PURE__ */ d.createElement("path", { fill: "none", stroke: "currentcolor", d: "M123.3-21.9c1.6 4.3 2.5 8.9 2.5 13.8c0 21.4-16.9 38.8-38.1 39.7v.1h-1.7h-11.4h-75.2c-17.2-0.4-31.1-14.4-31.1-31.7c0-17.5 14.2-31.7 31.7-31.7c1.7 0 3.4 .2 5 .4c0-0.1 0-0.2 0-0.4c0-20.8 16.9-37.7 37.7-37.7c15.5 0 28.7 9.2 34.6 22.5c2.8-0.6 5.7-0.9 8.7-0.9c17.1 0 31.7 10.7 37.3 25.9Z", strokeDasharray: "427 427", strokeDashoffset: 427, strokeWidth: 6, strokeLinecap: "round", visibility: "hidden", transform: "translate(51.4,122.3)", style: {
8414
8416
  animation: "5s linear infinite both a14_t, 5s linear infinite forwards a14_v, 5s linear infinite both a14_o, 5s linear infinite both a14_do"
8415
8417
  } }));
8416
- Z(og);
8418
+ Z(rg);
8417
8419
  V.createContext({});
8418
- const ig = `
8420
+ const og = `
8419
8421
  jn:text-theme-high
8420
8422
  jn:flex
8421
8423
  jn:rounded
8422
8424
  jn:leading-5
8423
8425
  jn:overflow-hidden
8424
8426
  jn:items-center
8425
- `, ag = `
8427
+ `, ig = `
8426
8428
  jn:font-bold
8427
- `, lg = `
8429
+ `, ag = `
8428
8430
  jn:py-3
8429
8431
  jn:pr-4
8430
8432
  jn:ml-7
8431
- `, sg = `
8433
+ `, lg = `
8432
8434
  jn:w-[4px]
8433
8435
  jn:self-stretch
8434
8436
  jn:border-l-4
8435
8437
  jn:mr-6
8436
8438
  jn:shrink-0
8437
- `, cg = `
8439
+ `, sg = `
8438
8440
  jn:ml-auto
8439
8441
  jn:self-stretch
8440
8442
  jn:flex
@@ -8452,7 +8454,7 @@ const ig = `
8452
8454
  dangerBg: "jn:bg-theme-message-danger",
8453
8455
  success: "jn:border-theme-message-success",
8454
8456
  successBg: "jn:bg-theme-message-success"
8455
- }, ug = (t) => {
8457
+ }, cg = (t) => {
8456
8458
  switch (t) {
8457
8459
  case "error":
8458
8460
  return Ze.errorBg;
@@ -8467,7 +8469,7 @@ const ig = `
8467
8469
  default:
8468
8470
  return Ze.defaultBg;
8469
8471
  }
8470
- }, dg = (t) => {
8472
+ }, ug = (t) => {
8471
8473
  switch (t) {
8472
8474
  case "error":
8473
8475
  return Ze.error;
@@ -8482,7 +8484,7 @@ const ig = `
8482
8484
  default:
8483
8485
  return Ze.default;
8484
8486
  }
8485
- }, fg = (t) => new Set(Object.values(Qr)).has(t), pg = (t) => t === "error" ? "dangerous" : fg(t) ? t : "default", mg = (t) => {
8487
+ }, dg = (t) => new Set(Object.values(Qr)).has(t), fg = (t) => t === "error" ? "dangerous" : dg(t) ? t : "default", pg = (t) => {
8486
8488
  switch (t) {
8487
8489
  case "info":
8488
8490
  return "jn:text-theme-info jn:shrink-0";
@@ -8497,13 +8499,13 @@ const ig = `
8497
8499
  default:
8498
8500
  return "jn:text-theme-info jn:shrink-0";
8499
8501
  }
8500
- }, hg = (t, n, e, r) => {
8502
+ }, mg = (t, n, e, r) => {
8501
8503
  !t || n < 1 || (r.current !== null && clearTimeout(r.current), r.current = window.setTimeout(() => {
8502
8504
  e();
8503
8505
  }, n));
8504
- }, gg = (t) => {
8506
+ }, hg = (t) => {
8505
8507
  t.current !== null && (clearTimeout(t.current), t.current = null);
8506
- }, vg = ({
8508
+ }, gg = ({
8507
8509
  title: t,
8508
8510
  variant: n = "info",
8509
8511
  dismissible: e = !1,
@@ -8517,24 +8519,24 @@ const ig = `
8517
8519
  u(!1), i && i();
8518
8520
  };
8519
8521
  if (Ce(() => () => {
8520
- gg(c);
8522
+ hg(c);
8521
8523
  }, []), Ce(() => {
8522
- hg(r, o, f, c);
8524
+ mg(r, o, f, c);
8523
8525
  }, [r, o]), !s) return null;
8524
- const v = pg(n), b = ug(n), x = dg(n);
8526
+ const v = fg(n), b = cg(n), x = ug(n);
8525
8527
  return /* @__PURE__ */ _.jsxs(
8526
8528
  "div",
8527
8529
  {
8528
- className: `juno-message juno-message-${n} ${ig} ${b} ${a}`,
8530
+ className: `juno-message juno-message-${n} ${og} ${b} ${a}`,
8529
8531
  ...l,
8530
8532
  children: [
8531
- /* @__PURE__ */ _.jsx("div", { className: `juno-message-border ${sg} ${x}` }),
8532
- /* @__PURE__ */ _.jsx(Tn, { icon: v, className: `${mg(n)}` }),
8533
- /* @__PURE__ */ _.jsxs("div", { className: `juno-message-content ${lg}`, children: [
8534
- t && /* @__PURE__ */ _.jsx("h1", { className: ag, children: t }),
8533
+ /* @__PURE__ */ _.jsx("div", { className: `juno-message-border ${lg} ${x}` }),
8534
+ /* @__PURE__ */ _.jsx(Tn, { icon: v, className: `${pg(n)}` }),
8535
+ /* @__PURE__ */ _.jsxs("div", { className: `juno-message-content ${ag}`, children: [
8536
+ t && /* @__PURE__ */ _.jsx("h1", { className: ig, children: t }),
8535
8537
  /* @__PURE__ */ _.jsx("div", { children: h || g })
8536
8538
  ] }),
8537
- e && /* @__PURE__ */ _.jsx("div", { className: cg, children: /* @__PURE__ */ _.jsx(
8539
+ e && /* @__PURE__ */ _.jsx("div", { className: sg, children: /* @__PURE__ */ _.jsx(
8538
8540
  Tn,
8539
8541
  {
8540
8542
  icon: "close",
@@ -8556,21 +8558,21 @@ function Zr(t, n) {
8556
8558
  for (var e = 0, r = Array(n); e < n; e++) r[e] = t[e];
8557
8559
  return r;
8558
8560
  }
8559
- function bg(t) {
8561
+ function vg(t) {
8560
8562
  if (Array.isArray(t)) return Zr(t);
8561
8563
  }
8562
- function yg(t, n, e) {
8563
- return (n = Og(n)) in t ? Object.defineProperty(t, n, {
8564
+ function bg(t, n, e) {
8565
+ return (n = Cg(n)) in t ? Object.defineProperty(t, n, {
8564
8566
  value: e,
8565
8567
  enumerable: !0,
8566
8568
  configurable: !0,
8567
8569
  writable: !0
8568
8570
  }) : t[n] = e, t;
8569
8571
  }
8570
- function wg(t) {
8572
+ function yg(t) {
8571
8573
  if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
8572
8574
  }
8573
- function xg() {
8575
+ function wg() {
8574
8576
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
8575
8577
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
8576
8578
  }
@@ -8588,17 +8590,17 @@ function Ki(t) {
8588
8590
  for (var n = 1; n < arguments.length; n++) {
8589
8591
  var e = arguments[n] != null ? arguments[n] : {};
8590
8592
  n % 2 ? Gi(Object(e), !0).forEach(function(r) {
8591
- yg(t, r, e[r]);
8593
+ bg(t, r, e[r]);
8592
8594
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Gi(Object(e)).forEach(function(r) {
8593
8595
  Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
8594
8596
  });
8595
8597
  }
8596
8598
  return t;
8597
8599
  }
8598
- function Eg(t) {
8599
- return bg(t) || wg(t) || Dg(t) || xg();
8600
+ function xg(t) {
8601
+ return vg(t) || yg(t) || Og(t) || wg();
8600
8602
  }
8601
- function Cg(t, n) {
8603
+ function Eg(t, n) {
8602
8604
  if (typeof t != "object" || !t) return t;
8603
8605
  var e = t[Symbol.toPrimitive];
8604
8606
  if (e !== void 0) {
@@ -8608,11 +8610,11 @@ function Cg(t, n) {
8608
8610
  }
8609
8611
  return (n === "string" ? String : Number)(t);
8610
8612
  }
8611
- function Og(t) {
8612
- var n = Cg(t, "string");
8613
+ function Cg(t) {
8614
+ var n = Eg(t, "string");
8613
8615
  return typeof n == "symbol" ? n : n + "";
8614
8616
  }
8615
- function Dg(t, n) {
8617
+ function Og(t, n) {
8616
8618
  if (t) {
8617
8619
  if (typeof t == "string") return Zr(t, n);
8618
8620
  var e = {}.toString.call(t).slice(8, -1);
@@ -8632,15 +8634,15 @@ var Zi = {
8632
8634
  var e = t.indexOf(n);
8633
8635
  e !== -1 && t.splice(e, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
8634
8636
  }
8635
- }, Mg = function(t) {
8637
+ }, Dg = function(t) {
8636
8638
  return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
8637
- }, Sg = function(t) {
8639
+ }, Mg = function(t) {
8638
8640
  return t?.key === "Escape" || t?.key === "Esc" || t?.keyCode === 27;
8639
8641
  }, en = function(t) {
8640
8642
  return t?.key === "Tab" || t?.keyCode === 9;
8641
- }, kg = function(t) {
8643
+ }, Sg = function(t) {
8642
8644
  return en(t) && !t.shiftKey;
8643
- }, Tg = function(t) {
8645
+ }, kg = function(t) {
8644
8646
  return en(t) && t.shiftKey;
8645
8647
  }, qi = function(t) {
8646
8648
  return setTimeout(t, 0);
@@ -8650,13 +8652,13 @@ var Zi = {
8650
8652
  return typeof t == "function" ? t.apply(void 0, e) : t;
8651
8653
  }, Dn = function(t) {
8652
8654
  return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
8653
- }, Ig = [], Ag = function(t, n) {
8654
- var e = n?.document || document, r = n?.trapStack || Ig, o = Ki({
8655
+ }, Tg = [], Ig = function(t, n) {
8656
+ var e = n?.document || document, r = n?.trapStack || Tg, o = Ki({
8655
8657
  returnFocusOnDeactivate: !0,
8656
8658
  escapeDeactivates: !0,
8657
8659
  delayInitialFocus: !0,
8658
- isKeyForward: kg,
8659
- isKeyBackward: Tg
8660
+ isKeyForward: Sg,
8661
+ isKeyBackward: kg
8660
8662
  }, n), i = {
8661
8663
  // containers given to createFocusTrap()
8662
8664
  // @type {Array<HTMLElement>}
@@ -8694,19 +8696,19 @@ var Zi = {
8694
8696
  delayInitialFocusTimer: void 0,
8695
8697
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
8696
8698
  recentNavEvent: void 0
8697
- }, a, l = function(y, C, j) {
8698
- return y && y[C] !== void 0 ? y[C] : o[j || C];
8699
+ }, a, l = function(y, C, F) {
8700
+ return y && y[C] !== void 0 ? y[C] : o[F || C];
8699
8701
  }, s = function(y, C) {
8700
- var j = typeof C?.composedPath == "function" ? C.composedPath() : void 0;
8702
+ var F = typeof C?.composedPath == "function" ? C.composedPath() : void 0;
8701
8703
  return i.containerGroups.findIndex(function(B) {
8702
- var I = B.container, W = B.tabbableNodes;
8703
- return I.contains(y) || j?.includes(I) || W.find(function(K) {
8704
+ var I = B.container, U = B.tabbableNodes;
8705
+ return I.contains(y) || F?.includes(I) || U.find(function(K) {
8704
8706
  return K === y;
8705
8707
  });
8706
8708
  });
8707
8709
  }, u = function(y) {
8708
- var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, j = C.hasFallback, B = j === void 0 ? !1 : j, I = C.params, W = I === void 0 ? [] : I, K = o[y];
8709
- if (typeof K == "function" && (K = K.apply(void 0, Eg(W))), K === !0 && (K = void 0), !K) {
8710
+ var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, F = C.hasFallback, B = F === void 0 ? !1 : F, I = C.params, U = I === void 0 ? [] : I, K = o[y];
8711
+ if (typeof K == "function" && (K = K.apply(void 0, xg(U))), K === !0 && (K = void 0), !K) {
8710
8712
  if (K === void 0 || K === !1)
8711
8713
  return K;
8712
8714
  throw new Error("`".concat(y, "` was specified but was not a node, or did not return a node"));
@@ -8732,8 +8734,8 @@ var Zi = {
8732
8734
  if (s(e.activeElement) >= 0)
8733
8735
  y = e.activeElement;
8734
8736
  else {
8735
- var C = i.tabbableGroups[0], j = C && C.firstTabbableNode;
8736
- y = j || u("fallbackFocus");
8737
+ var C = i.tabbableGroups[0], F = C && C.firstTabbableNode;
8738
+ y = F || u("fallbackFocus");
8737
8739
  }
8738
8740
  else y === null && (y = u("fallbackFocus"));
8739
8741
  if (!y)
@@ -8741,9 +8743,9 @@ var Zi = {
8741
8743
  return y;
8742
8744
  }, g = function() {
8743
8745
  if (i.containerGroups = i.containers.map(function(y) {
8744
- var C = qa(y, o.tabbableOptions), j = Xa(y, o.tabbableOptions), B = C.length > 0 ? C[0] : void 0, I = C.length > 0 ? C[C.length - 1] : void 0, W = j.find(function(A) {
8746
+ var C = qa(y, o.tabbableOptions), F = Xa(y, o.tabbableOptions), B = C.length > 0 ? C[0] : void 0, I = C.length > 0 ? C[C.length - 1] : void 0, U = F.find(function(A) {
8745
8747
  return yt(A);
8746
- }), K = j.slice().reverse().find(function(A) {
8748
+ }), K = F.slice().reverse().find(function(A) {
8747
8749
  return yt(A);
8748
8750
  }), $ = !!C.find(function(A) {
8749
8751
  return ct(A) > 0;
@@ -8751,7 +8753,7 @@ var Zi = {
8751
8753
  return {
8752
8754
  container: y,
8753
8755
  tabbableNodes: C,
8754
- focusableNodes: j,
8756
+ focusableNodes: F,
8755
8757
  /** True if at least one node with positive `tabindex` was found in this container. */
8756
8758
  posTabIndexesFound: $,
8757
8759
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
@@ -8766,7 +8768,7 @@ var Zi = {
8766
8768
  // "close enough most of the time" alternative for positive tabindexes which should generally
8767
8769
  // be avoided anyway...
8768
8770
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
8769
- firstDomTabbableNode: W,
8771
+ firstDomTabbableNode: U,
8770
8772
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
8771
8773
  lastDomTabbableNode: K,
8772
8774
  /**
@@ -8779,9 +8781,9 @@ var Zi = {
8779
8781
  */
8780
8782
  nextTabbableNode: function(A) {
8781
8783
  var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, Y = C.indexOf(A);
8782
- return Y < 0 ? O ? j.slice(j.indexOf(A) + 1).find(function(J) {
8784
+ return Y < 0 ? O ? F.slice(F.indexOf(A) + 1).find(function(J) {
8783
8785
  return yt(J);
8784
- }) : j.slice(0, j.indexOf(A)).reverse().find(function(J) {
8786
+ }) : F.slice(0, F.indexOf(A)).reverse().find(function(J) {
8785
8787
  return yt(J);
8786
8788
  }) : C[Y + (O ? 1 : -1)];
8787
8789
  }
@@ -8806,7 +8808,7 @@ var Zi = {
8806
8808
  }
8807
8809
  y.focus({
8808
8810
  preventScroll: !!o.preventScroll
8809
- }), i.mostRecentlyFocusedNode = y, Mg(y) && y.select();
8811
+ }), i.mostRecentlyFocusedNode = y, Dg(y) && y.select();
8810
8812
  }
8811
8813
  }, v = function(y) {
8812
8814
  var C = u("setReturnFocus", {
@@ -8814,13 +8816,13 @@ var Zi = {
8814
8816
  });
8815
8817
  return C || (C === !1 ? !1 : y);
8816
8818
  }, b = function(y) {
8817
- var C = y.target, j = y.event, B = y.isBackward, I = B === void 0 ? !1 : B;
8818
- C = C || Dn(j), g();
8819
- var W = null;
8819
+ var C = y.target, F = y.event, B = y.isBackward, I = B === void 0 ? !1 : B;
8820
+ C = C || Dn(F), g();
8821
+ var U = null;
8820
8822
  if (i.tabbableGroups.length > 0) {
8821
- var K = s(C, j), $ = K >= 0 ? i.containerGroups[K] : void 0;
8823
+ var K = s(C, F), $ = K >= 0 ? i.containerGroups[K] : void 0;
8822
8824
  if (K < 0)
8823
- I ? W = i.tabbableGroups[i.tabbableGroups.length - 1].lastTabbableNode : W = i.tabbableGroups[0].firstTabbableNode;
8825
+ I ? U = i.tabbableGroups[i.tabbableGroups.length - 1].lastTabbableNode : U = i.tabbableGroups[0].firstTabbableNode;
8824
8826
  else if (I) {
8825
8827
  var A = i.tabbableGroups.findIndex(function(de) {
8826
8828
  var me = de.firstTabbableNode;
@@ -8828,8 +8830,8 @@ var Zi = {
8828
8830
  });
8829
8831
  if (A < 0 && ($.container === C || Mn(C, o.tabbableOptions) && !yt(C, o.tabbableOptions) && !$.nextTabbableNode(C, !1)) && (A = K), A >= 0) {
8830
8832
  var O = A === 0 ? i.tabbableGroups.length - 1 : A - 1, Y = i.tabbableGroups[O];
8831
- W = ct(C) >= 0 ? Y.lastTabbableNode : Y.lastDomTabbableNode;
8832
- } else en(j) || (W = $.nextTabbableNode(C, !1));
8833
+ U = ct(C) >= 0 ? Y.lastTabbableNode : Y.lastDomTabbableNode;
8834
+ } else en(F) || (U = $.nextTabbableNode(C, !1));
8833
8835
  } else {
8834
8836
  var J = i.tabbableGroups.findIndex(function(de) {
8835
8837
  var me = de.lastTabbableNode;
@@ -8837,12 +8839,12 @@ var Zi = {
8837
8839
  });
8838
8840
  if (J < 0 && ($.container === C || Mn(C, o.tabbableOptions) && !yt(C, o.tabbableOptions) && !$.nextTabbableNode(C)) && (J = K), J >= 0) {
8839
8841
  var ae = J === i.tabbableGroups.length - 1 ? 0 : J + 1, G = i.tabbableGroups[ae];
8840
- W = ct(C) >= 0 ? G.firstTabbableNode : G.firstDomTabbableNode;
8841
- } else en(j) || (W = $.nextTabbableNode(C));
8842
+ U = ct(C) >= 0 ? G.firstTabbableNode : G.firstDomTabbableNode;
8843
+ } else en(F) || (U = $.nextTabbableNode(C));
8842
8844
  }
8843
8845
  } else
8844
- W = u("fallbackFocus");
8845
- return W;
8846
+ U = u("fallbackFocus");
8847
+ return U;
8846
8848
  }, x = function(y) {
8847
8849
  var C = Dn(y);
8848
8850
  if (!(s(C, y) >= 0)) {
@@ -8861,15 +8863,15 @@ var Zi = {
8861
8863
  Gt(o.allowOutsideClick, y) || y.preventDefault();
8862
8864
  }
8863
8865
  }, M = function(y) {
8864
- var C = Dn(y), j = s(C, y) >= 0;
8865
- if (j || C instanceof Document)
8866
- j && (i.mostRecentlyFocusedNode = C);
8866
+ var C = Dn(y), F = s(C, y) >= 0;
8867
+ if (F || C instanceof Document)
8868
+ F && (i.mostRecentlyFocusedNode = C);
8867
8869
  else {
8868
8870
  y.stopImmediatePropagation();
8869
8871
  var B, I = !0;
8870
8872
  if (i.mostRecentlyFocusedNode)
8871
8873
  if (ct(i.mostRecentlyFocusedNode) > 0) {
8872
- var W = s(i.mostRecentlyFocusedNode), K = i.containerGroups[W].tabbableNodes;
8874
+ var U = s(i.mostRecentlyFocusedNode), K = i.containerGroups[U].tabbableNodes;
8873
8875
  if (K.length > 0) {
8874
8876
  var $ = K.findIndex(function(A) {
8875
8877
  return A === i.mostRecentlyFocusedNode;
@@ -8895,19 +8897,19 @@ var Zi = {
8895
8897
  }, D = function(y) {
8896
8898
  var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
8897
8899
  i.recentNavEvent = y;
8898
- var j = b({
8900
+ var F = b({
8899
8901
  event: y,
8900
8902
  isBackward: C
8901
8903
  });
8902
- j && (en(y) && y.preventDefault(), f(j));
8904
+ F && (en(y) && y.preventDefault(), f(F));
8903
8905
  }, T = function(y) {
8904
8906
  (o.isKeyForward(y) || o.isKeyBackward(y)) && D(y, o.isKeyBackward(y));
8905
8907
  }, L = function(y) {
8906
- Sg(y) && Gt(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), a.deactivate());
8908
+ Mg(y) && Gt(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), a.deactivate());
8907
8909
  }, R = function(y) {
8908
8910
  var C = Dn(y);
8909
8911
  s(C, y) >= 0 || Gt(o.clickOutsideDeactivates, y) || Gt(o.allowOutsideClick, y) || (y.preventDefault(), y.stopImmediatePropagation());
8910
- }, F = function() {
8912
+ }, j = function() {
8911
8913
  if (i.active)
8912
8914
  return Zi.activateTrap(r, a), i.delayInitialFocusTimer = o.delayInitialFocus ? qi(function() {
8913
8915
  f(c());
@@ -8928,8 +8930,8 @@ var Zi = {
8928
8930
  if (i.active)
8929
8931
  return e.removeEventListener("focusin", M, !0), e.removeEventListener("mousedown", x, !0), e.removeEventListener("touchstart", x, !0), e.removeEventListener("click", R, !0), e.removeEventListener("keydown", T, !0), e.removeEventListener("keydown", L), a;
8930
8932
  }, k = function(y) {
8931
- var C = y.some(function(j) {
8932
- var B = Array.from(j.removedNodes);
8933
+ var C = y.some(function(F) {
8934
+ var B = Array.from(F.removedNodes);
8933
8935
  return B.some(function(I) {
8934
8936
  return I === i.mostRecentlyFocusedNode;
8935
8937
  });
@@ -8953,10 +8955,10 @@ var Zi = {
8953
8955
  activate: function(y) {
8954
8956
  if (i.active)
8955
8957
  return this;
8956
- var C = l(y, "onActivate"), j = l(y, "onPostActivate"), B = l(y, "checkCanFocusTrap");
8958
+ var C = l(y, "onActivate"), F = l(y, "onPostActivate"), B = l(y, "checkCanFocusTrap");
8957
8959
  B || g(), i.active = !0, i.paused = !1, i.nodeFocusedBeforeActivation = h(e), C?.();
8958
8960
  var I = function() {
8959
- B && g(), F(), E(), j?.();
8961
+ B && g(), j(), E(), F?.();
8960
8962
  };
8961
8963
  return B ? (B(i.containers.concat()).then(I, I), this) : (I(), this);
8962
8964
  },
@@ -8969,14 +8971,14 @@ var Zi = {
8969
8971
  checkCanReturnFocus: o.checkCanReturnFocus
8970
8972
  }, y);
8971
8973
  clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0, P(), i.active = !1, i.paused = !1, E(), Zi.deactivateTrap(r, a);
8972
- var j = l(C, "onDeactivate"), B = l(C, "onPostDeactivate"), I = l(C, "checkCanReturnFocus"), W = l(C, "returnFocus", "returnFocusOnDeactivate");
8973
- j?.();
8974
+ var F = l(C, "onDeactivate"), B = l(C, "onPostDeactivate"), I = l(C, "checkCanReturnFocus"), U = l(C, "returnFocus", "returnFocusOnDeactivate");
8975
+ F?.();
8974
8976
  var K = function() {
8975
8977
  qi(function() {
8976
- W && f(v(i.nodeFocusedBeforeActivation)), B?.();
8978
+ U && f(v(i.nodeFocusedBeforeActivation)), B?.();
8977
8979
  });
8978
8980
  };
8979
- return W && I ? (I(v(i.nodeFocusedBeforeActivation)).then(K, K), this) : (K(), this);
8981
+ return U && I ? (I(v(i.nodeFocusedBeforeActivation)).then(K, K), this) : (K(), this);
8980
8982
  },
8981
8983
  pause: function(y) {
8982
8984
  return i.active ? (i.manuallyPaused = !0, this._setPausedState(!0, y)) : this;
@@ -8986,8 +8988,8 @@ var Zi = {
8986
8988
  },
8987
8989
  updateContainerElements: function(y) {
8988
8990
  var C = [].concat(y).filter(Boolean);
8989
- return i.containers = C.map(function(j) {
8990
- return typeof j == "string" ? e.querySelector(j) : j;
8991
+ return i.containers = C.map(function(F) {
8992
+ return typeof F == "string" ? e.querySelector(F) : F;
8991
8993
  }), i.active && g(), E(), this;
8992
8994
  }
8993
8995
  }, Object.defineProperties(a, {
@@ -9001,21 +9003,21 @@ var Zi = {
9001
9003
  if (i.paused === y)
9002
9004
  return this;
9003
9005
  if (i.paused = y, y) {
9004
- var j = l(C, "onPause"), B = l(C, "onPostPause");
9005
- j?.(), P(), E(), B?.();
9006
+ var F = l(C, "onPause"), B = l(C, "onPostPause");
9007
+ F?.(), P(), E(), B?.();
9006
9008
  } else {
9007
- var I = l(C, "onUnpause"), W = l(C, "onPostUnpause");
9008
- I?.(), g(), F(), E(), W?.();
9009
+ var I = l(C, "onUnpause"), U = l(C, "onPostUnpause");
9010
+ I?.(), g(), j(), E(), U?.();
9009
9011
  }
9010
9012
  return this;
9011
9013
  }
9012
9014
  }
9013
9015
  }), a.updateContainerElements(t), a;
9014
9016
  };
9015
- const Pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9017
+ const Ag = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9016
9018
  __proto__: null,
9017
- createFocusTrap: Ag
9018
- }, Symbol.toStringTag, { value: "Module" })), Ng = /* @__PURE__ */ ea(Pg), jg = /* @__PURE__ */ ea(hp);
9019
+ createFocusTrap: Ig
9020
+ }, Symbol.toStringTag, { value: "Module" })), Pg = /* @__PURE__ */ ea(Ag), Ng = /* @__PURE__ */ ea(hp);
9019
9021
  var Xi;
9020
9022
  function Fg() {
9021
9023
  if (Xi) return On.exports;
@@ -9094,26 +9096,26 @@ function Fg() {
9094
9096
  }
9095
9097
  return (k === "string" ? String : Number)(P);
9096
9098
  }
9097
- var x = V, M = Ng, D = M.createFocusTrap, T = jg, L = T.isFocusable, R = parseInt((n = (e = /^(\d+)\./.exec(x.version)) === null || e === void 0 ? void 0 : e[1]) !== null && n !== void 0 ? n : 0, 10), F = /* @__PURE__ */ function(P) {
9099
+ var x = V, M = Pg, D = M.createFocusTrap, T = Ng, L = T.isFocusable, R = parseInt((n = (e = /^(\d+)\./.exec(x.version)) === null || e === void 0 ? void 0 : e[1]) !== null && n !== void 0 ? n : 0, 10), j = /* @__PURE__ */ (function(P) {
9098
9100
  function k(N) {
9099
9101
  var E;
9100
- r(this, k), E = a(this, k, [N]), f(E, "getNodeForOption", function(j) {
9101
- var B, I = (B = this.internalOptions[j]) !== null && B !== void 0 ? B : this.originalOptions[j];
9102
+ r(this, k), E = a(this, k, [N]), f(E, "getNodeForOption", function(F) {
9103
+ var B, I = (B = this.internalOptions[F]) !== null && B !== void 0 ? B : this.originalOptions[F];
9102
9104
  if (typeof I == "function") {
9103
- for (var W = arguments.length, K = new Array(W > 1 ? W - 1 : 0), $ = 1; $ < W; $++)
9105
+ for (var U = arguments.length, K = new Array(U > 1 ? U - 1 : 0), $ = 1; $ < U; $++)
9104
9106
  K[$ - 1] = arguments[$];
9105
9107
  I = I.apply(void 0, K);
9106
9108
  }
9107
9109
  if (I === !0 && (I = void 0), !I) {
9108
9110
  if (I === void 0 || I === !1)
9109
9111
  return I;
9110
- throw new Error("`".concat(j, "` was specified but was not a node, or did not return a node"));
9112
+ throw new Error("`".concat(F, "` was specified but was not a node, or did not return a node"));
9111
9113
  }
9112
9114
  var A = I;
9113
9115
  if (typeof I == "string") {
9114
9116
  var O;
9115
9117
  if (A = (O = this.getDocument()) === null || O === void 0 ? void 0 : O.querySelector(I), !A)
9116
- throw new Error("`".concat(j, "` as selector refers to no known node"));
9118
+ throw new Error("`".concat(F, "` as selector refers to no known node"));
9117
9119
  }
9118
9120
  return A;
9119
9121
  }), E.handleDeactivate = E.handleDeactivate.bind(E), E.handlePostDeactivate = E.handlePostDeactivate.bind(E), E.handleClickOutsideDeactivates = E.handleClickOutsideDeactivates.bind(E), E.internalOptions = {
@@ -9220,7 +9222,7 @@ function Fg() {
9220
9222
  N.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
9221
9223
  // as a result of the click-through) -- in which case do NOT restore focus
9222
9224
  // to `returnFocusNode` because focus should remain on the outside node
9223
- !L(N.outsideClick.target, N.internalOptions.tabbableOptions))), j = N.internalOptions.preventScroll, B = j === void 0 ? !1 : j;
9225
+ !L(N.outsideClick.target, N.internalOptions.tabbableOptions))), F = N.internalOptions.preventScroll, B = F === void 0 ? !1 : F;
9224
9226
  C && y.focus({
9225
9227
  preventScroll: B
9226
9228
  }), N.originalOptions.onPostDeactivate && N.originalOptions.onPostDeactivate.call(null), N.outsideClick = null;
@@ -9247,12 +9249,12 @@ function Fg() {
9247
9249
  value: function(N) {
9248
9250
  if (this.focusTrap) {
9249
9251
  N.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
9250
- var E = !N.active && this.props.active, y = N.active && !this.props.active, C = !N.paused && this.props.paused, j = N.paused && !this.props.paused;
9252
+ var E = !N.active && this.props.active, y = N.active && !this.props.active, C = !N.paused && this.props.paused, F = N.paused && !this.props.paused;
9251
9253
  if (E && (this.updatePreviousElement(), this.focusTrap.activate()), y) {
9252
9254
  this.deactivateTrap();
9253
9255
  return;
9254
9256
  }
9255
- C && this.focusTrap.pause(), j && this.focusTrap.unpause();
9257
+ C && this.focusTrap.pause(), F && this.focusTrap.unpause();
9256
9258
  } else
9257
9259
  N.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
9258
9260
  }
@@ -9268,9 +9270,9 @@ function Fg() {
9268
9270
  if (E) {
9269
9271
  if (E.type && E.type === x.Fragment)
9270
9272
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
9271
- var y = function(j) {
9273
+ var y = function(F) {
9272
9274
  var B = N.props.containerElements;
9273
- E && (R >= 19 ? typeof E.props.ref == "function" ? E.props.ref(j) : E.props.ref && (E.props.ref.current = j) : typeof E.ref == "function" ? E.ref(j) : E.ref && (E.ref.current = j)), N.focusTrapElements = B || [j];
9275
+ E && (R >= 19 ? typeof E.props.ref == "function" ? E.props.ref(F) : E.props.ref && (E.props.ref.current = F) : typeof E.ref == "function" ? E.ref(F) : E.ref && (E.ref.current = F)), N.focusTrapElements = B || [F];
9274
9276
  }, C = x.cloneElement(E, {
9275
9277
  ref: y
9276
9278
  });
@@ -9279,34 +9281,35 @@ function Fg() {
9279
9281
  return null;
9280
9282
  }
9281
9283
  }]);
9282
- }(x.Component);
9283
- return F.defaultProps = {
9284
+ })(x.Component);
9285
+ return j.defaultProps = {
9284
9286
  active: !0,
9285
9287
  paused: !1,
9286
9288
  focusTrapOptions: {},
9287
9289
  _createFocusTrap: D
9288
- }, On.exports = F, On.exports.FocusTrap = F, On.exports;
9290
+ }, On.exports = j, On.exports.FocusTrap = j, On.exports;
9289
9291
  }
9290
9292
  Fg();
9291
- ye(void 0);
9292
- ye(null);
9293
- ye({});
9294
- const Lg = `
9293
+ be(void 0);
9294
+ be(null);
9295
+ be({});
9296
+ const jg = `
9295
9297
  jn:h-px
9296
9298
  jn:w-full
9297
9299
  jn:bg-theme-background-lvl-3
9298
- `, Rg = V.forwardRef(
9299
- ({ className: t = "", ...n }, e) => /* @__PURE__ */ _.jsx("div", { className: `juno-select-divider ${Lg} ${t}`, ref: e, ...n })
9300
+ `, Lg = V.forwardRef(
9301
+ ({ className: t = "", ...n }, e) => /* @__PURE__ */ _.jsx("div", { className: `juno-select-divider ${jg} ${t}`, ref: e, ...n })
9300
9302
  );
9301
- Rg.displayName = "SelectDivider";
9302
- ye(void 0);
9303
- ye(void 0);
9304
- const _g = V.createContext(null), Tl = () => {
9305
- const t = V.useContext(_g);
9303
+ Lg.displayName = "SelectDivider";
9304
+ be(void 0);
9305
+ be(0);
9306
+ be(void 0);
9307
+ const Rg = V.createContext(null), Tl = () => {
9308
+ const t = V.useContext(Rg);
9306
9309
  if (t == null)
9307
9310
  throw new Error("Tooltip components must be wrapped in <Tooltip />");
9308
9311
  return t;
9309
- }, Hg = `
9312
+ }, _g = `
9310
9313
  jn:bg-theme-background-lvl-1
9311
9314
  jn:text-theme-high
9312
9315
  jn:inline-flex
@@ -9314,12 +9317,12 @@ const _g = V.createContext(null), Tl = () => {
9314
9317
  jn:p-2
9315
9318
  jn:rounded
9316
9319
  jn:drop-shadow-[0_0_4px_rgba(0,0,0,0.15)]
9317
- `, Bg = `
9320
+ `, Hg = `
9318
9321
  jn:mx-4
9319
9322
  jn:max-w-full
9320
- `, zg = `
9323
+ `, Bg = `
9321
9324
  jn:shrink-0
9322
- `, Vg = (t) => {
9325
+ `, zg = (t) => {
9323
9326
  switch (t) {
9324
9327
  case "error":
9325
9328
  return "dangerous";
@@ -9332,7 +9335,7 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
9332
9335
  return o.disabled ? null : /* @__PURE__ */ _.jsx(_.Fragment, { children: o.open && /* @__PURE__ */ _.jsxs(
9333
9336
  "div",
9334
9337
  {
9335
- className: `juno-tooltip juno-tooltip-${a} ${Hg} ${t}`,
9338
+ className: `juno-tooltip juno-tooltip-${a} ${_g} ${t}`,
9336
9339
  ref: i,
9337
9340
  style: {
9338
9341
  ...o.floatingStyles
@@ -9342,12 +9345,12 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
9342
9345
  a && /* @__PURE__ */ _.jsx(
9343
9346
  Tn,
9344
9347
  {
9345
- icon: Vg(a),
9348
+ icon: zg(a),
9346
9349
  color: `jn:text-theme-${a}`,
9347
- className: `juno-tooltip-popover-icon ${zg}`
9350
+ className: `juno-tooltip-popover-icon ${Bg}`
9348
9351
  }
9349
9352
  ),
9350
- /* @__PURE__ */ _.jsx("p", { className: `${Bg}`, children: n })
9353
+ /* @__PURE__ */ _.jsx("p", { className: `${Hg}`, children: n })
9351
9354
  ]
9352
9355
  }
9353
9356
  ) });
@@ -9375,21 +9378,21 @@ V.forwardRef(function({ children: t, asChild: n = !1, className: e = "", ...r },
9375
9378
  }
9376
9379
  );
9377
9380
  });
9378
- const $g = (t) => t === "info" || t === "success", Kg = ({ className: t }) => {
9381
+ const Vg = (t) => t === "info" || t === "success", Gg = ({ className: t }) => {
9379
9382
  const n = ls(), { removeMessage: e } = ss(), r = (o) => {
9380
9383
  e(o);
9381
9384
  };
9382
9385
  return /* @__PURE__ */ V.createElement(V.Fragment, null, n && n.length > 0 && /* @__PURE__ */ V.createElement("div", { role: "group", className: `juno-message-provider ${t || ""}` }, n.map((o, i) => {
9383
9386
  const { id: a, variant: l, text: s, ...u } = o;
9384
9387
  return /* @__PURE__ */ V.createElement(
9385
- vg,
9388
+ gg,
9386
9389
  {
9387
9390
  role: "alert",
9388
9391
  key: a,
9389
9392
  className: i > 0 ? "mt-4" : "",
9390
9393
  variant: l,
9391
9394
  dismissible: !0,
9392
- autoDismiss: $g(l),
9395
+ autoDismiss: Vg(l),
9393
9396
  onDismiss: () => r(a),
9394
9397
  ...u
9395
9398
  },
@@ -9398,8 +9401,8 @@ const $g = (t) => t === "info" || t === "success", Kg = ({ className: t }) => {
9398
9401
  })));
9399
9402
  };
9400
9403
  export {
9401
- Kg as Messages,
9402
- Gg as MessagesProvider,
9404
+ Gg as Messages,
9405
+ Yg as MessagesProvider,
9403
9406
  ss as useActions,
9404
9407
  ls as useMessages
9405
9408
  };