@oncehub/ui-react 2.1.3 → 2.1.4-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  import * as ue from "react";
3
3
  import j, { forwardRef as At, useState as me, useEffect as be, useRef as K, useCallback as Oe, useMemo as Se, useLayoutEffect as Ti, useContext as Me, createContext as We, Fragment as Qe, isValidElement as eu, cloneElement as tu, createElement as nu, useId as bt, useReducer as Ni, useSyncExternalStore as ru, createRef as _d } from "react";
4
4
  import * as Kn from "react-dom";
5
- import { createPortal as rn, flushSync as nt } from "react-dom";
5
+ import { createPortal as rn, flushSync as rt } from "react-dom";
6
6
  function Ad(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
@@ -54,18 +54,18 @@ function ou() {
54
54
  function e(y) {
55
55
  if (y == null) return null;
56
56
  if (typeof y == "function")
57
- return y.$$typeof === oe ? null : y.displayName || y.name || null;
57
+ return y.$$typeof === ie ? null : y.displayName || y.name || null;
58
58
  if (typeof y == "string") return y;
59
59
  switch (y) {
60
- case _:
60
+ case A:
61
61
  return "Fragment";
62
- case x:
62
+ case w:
63
63
  return "Portal";
64
64
  case H:
65
65
  return "Profiler";
66
66
  case M:
67
67
  return "StrictMode";
68
- case Z:
68
+ case X:
69
69
  return "Suspense";
70
70
  case G:
71
71
  return "SuspenseList";
@@ -74,19 +74,19 @@ function ou() {
74
74
  switch (typeof y.tag == "number" && console.error(
75
75
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
76
76
  ), y.$$typeof) {
77
- case R:
77
+ case L:
78
78
  return (y.displayName || "Context") + ".Provider";
79
- case A:
79
+ case _:
80
80
  return (y._context.displayName || "Context") + ".Consumer";
81
- case L:
82
- var ie = y.render;
83
- return y = y.displayName, y || (y = ie.displayName || ie.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
84
- case B:
85
- return ie = y.displayName || null, ie !== null ? ie : e(y.type) || "Memo";
86
- case se:
87
- ie = y._payload, y = y._init;
81
+ case F:
82
+ var oe = y.render;
83
+ return y = y.displayName, y || (y = oe.displayName || oe.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
84
+ case W:
85
+ return oe = y.displayName || null, oe !== null ? oe : e(y.type) || "Memo";
86
+ case ae:
87
+ oe = y._payload, y = y._init;
88
88
  try {
89
- return e(y(ie));
89
+ return e(y(oe));
90
90
  } catch {
91
91
  }
92
92
  }
@@ -98,15 +98,15 @@ function ou() {
98
98
  function t(y) {
99
99
  try {
100
100
  n(y);
101
- var ie = !1;
101
+ var oe = !1;
102
102
  } catch {
103
- ie = !0;
103
+ oe = !0;
104
104
  }
105
- if (ie) {
106
- ie = console;
107
- var Q = ie.error, $e = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
105
+ if (oe) {
106
+ oe = console;
107
+ var Q = oe.error, $e = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
108
108
  return Q.call(
109
- ie,
109
+ oe,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
111
  $e
112
112
  ), n(y);
@@ -157,14 +157,14 @@ function ou() {
157
157
  try {
158
158
  throw Error();
159
159
  } catch (Q) {
160
- var ie = Q.stack.trim().match(/\n( *(at )?)/);
161
- E = ie && ie[1] || "", J = -1 < Q.stack.indexOf(`
160
+ var oe = Q.stack.trim().match(/\n( *(at )?)/);
161
+ E = oe && oe[1] || "", J = -1 < Q.stack.indexOf(`
162
162
  at`) ? " (<anonymous>)" : -1 < Q.stack.indexOf("@") ? "@unknown:0:0" : "";
163
163
  }
164
164
  return `
165
165
  ` + E + y + J;
166
166
  }
167
- function d(y, ie) {
167
+ function d(y, oe) {
168
168
  if (!y || q) return "";
169
169
  var Q = I.get(y);
170
170
  if (Q !== void 0) return Q;
@@ -175,7 +175,7 @@ function ou() {
175
175
  var _e = {
176
176
  DetermineComponentFrameRoot: function() {
177
177
  try {
178
- if (ie) {
178
+ if (oe) {
179
179
  var he = function() {
180
180
  throw Error();
181
181
  };
@@ -264,29 +264,29 @@ function ou() {
264
264
  function l(y) {
265
265
  if (y == null) return "";
266
266
  if (typeof y == "function") {
267
- var ie = y.prototype;
267
+ var oe = y.prototype;
268
268
  return d(
269
269
  y,
270
- !(!ie || !ie.isReactComponent)
270
+ !(!oe || !oe.isReactComponent)
271
271
  );
272
272
  }
273
273
  if (typeof y == "string") return a(y);
274
274
  switch (y) {
275
- case Z:
275
+ case X:
276
276
  return a("Suspense");
277
277
  case G:
278
278
  return a("SuspenseList");
279
279
  }
280
280
  if (typeof y == "object")
281
281
  switch (y.$$typeof) {
282
- case L:
282
+ case F:
283
283
  return y = d(y.render, !1), y;
284
- case B:
284
+ case W:
285
285
  return l(y.type);
286
- case se:
287
- ie = y._payload, y = y._init;
286
+ case ae:
287
+ oe = y._payload, y = y._init;
288
288
  try {
289
- return l(y(ie));
289
+ return l(y(oe));
290
290
  } catch {
291
291
  }
292
292
  }
@@ -298,16 +298,16 @@ function ou() {
298
298
  }
299
299
  function c(y) {
300
300
  if (T.call(y, "key")) {
301
- var ie = Object.getOwnPropertyDescriptor(y, "key").get;
302
- if (ie && ie.isReactWarning) return !1;
301
+ var oe = Object.getOwnPropertyDescriptor(y, "key").get;
302
+ if (oe && oe.isReactWarning) return !1;
303
303
  }
304
304
  return y.key !== void 0;
305
305
  }
306
- function h(y, ie) {
306
+ function h(y, oe) {
307
307
  function Q() {
308
308
  ye || (ye = !0, console.error(
309
309
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
310
- ie
310
+ oe
311
311
  ));
312
312
  }
313
313
  Q.isReactWarning = !0, Object.defineProperty(y, "key", {
@@ -321,11 +321,11 @@ function ou() {
321
321
  "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."
322
322
  )), y = this.props.ref, y !== void 0 ? y : null;
323
323
  }
324
- function f(y, ie, Q, $e, _e, ce) {
324
+ function f(y, oe, Q, $e, _e, ce) {
325
325
  return Q = ce.ref, y = {
326
- $$typeof: w,
326
+ $$typeof: x,
327
327
  type: y,
328
- key: ie,
328
+ key: oe,
329
329
  props: ce,
330
330
  _owner: _e
331
331
  }, (Q !== void 0 ? Q : null) !== null ? Object.defineProperty(y, "ref", {
@@ -343,9 +343,9 @@ function ou() {
343
343
  value: null
344
344
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
345
345
  }
346
- function u(y, ie, Q, $e, _e, ce) {
347
- if (typeof y == "string" || typeof y == "function" || y === _ || y === H || y === M || y === Z || y === G || y === le || typeof y == "object" && y !== null && (y.$$typeof === se || y.$$typeof === B || y.$$typeof === R || y.$$typeof === A || y.$$typeof === L || y.$$typeof === X || y.getModuleId !== void 0)) {
348
- var te = ie.children;
346
+ function u(y, oe, Q, $e, _e, ce) {
347
+ if (typeof y == "string" || typeof y == "function" || y === A || y === H || y === M || y === X || y === G || y === de || typeof y == "object" && y !== null && (y.$$typeof === ae || y.$$typeof === W || y.$$typeof === L || y.$$typeof === _ || y.$$typeof === F || y.$$typeof === Z || y.getModuleId !== void 0)) {
348
+ var te = oe.children;
349
349
  if (te !== void 0)
350
350
  if ($e)
351
351
  if (P(te)) {
@@ -358,14 +358,14 @@ function ou() {
358
358
  );
359
359
  else m(te, y);
360
360
  } else
361
- te = "", (y === void 0 || typeof y == "object" && y !== null && Object.keys(y).length === 0) && (te += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), y === null ? $e = "null" : P(y) ? $e = "array" : y !== void 0 && y.$$typeof === w ? ($e = "<" + (e(y.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : $e = typeof y, console.error(
361
+ te = "", (y === void 0 || typeof y == "object" && y !== null && Object.keys(y).length === 0) && (te += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."), y === null ? $e = "null" : P(y) ? $e = "array" : y !== void 0 && y.$$typeof === x ? ($e = "<" + (e(y.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : $e = typeof y, console.error(
362
362
  "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
363
363
  $e,
364
364
  te
365
365
  );
366
- if (T.call(ie, "key")) {
366
+ if (T.call(oe, "key")) {
367
367
  te = e(y);
368
- var ve = Object.keys(ie).filter(function(Fe) {
368
+ var ve = Object.keys(oe).filter(function(Fe) {
369
369
  return Fe !== "key";
370
370
  });
371
371
  $e = 0 < ve.length ? "{key: someKey, " + ve.join(": ..., ") + ": ...}" : "{key: someKey}", ke[te + $e] || (ve = 0 < ve.length ? "{" + ve.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -381,36 +381,36 @@ React keys must be passed directly to JSX without using spread:
381
381
  te
382
382
  ), ke[te + $e] = !0);
383
383
  }
384
- if (te = null, Q !== void 0 && (t(Q), te = "" + Q), c(ie) && (t(ie.key), te = "" + ie.key), "key" in ie) {
384
+ if (te = null, Q !== void 0 && (t(Q), te = "" + Q), c(oe) && (t(oe.key), te = "" + oe.key), "key" in oe) {
385
385
  Q = {};
386
- for (var Ee in ie)
387
- Ee !== "key" && (Q[Ee] = ie[Ee]);
388
- } else Q = ie;
386
+ for (var Ee in oe)
387
+ Ee !== "key" && (Q[Ee] = oe[Ee]);
388
+ } else Q = oe;
389
389
  return te && h(
390
390
  Q,
391
391
  typeof y == "function" ? y.displayName || y.name || "Unknown" : y
392
392
  ), f(y, te, ce, _e, s(), Q);
393
393
  }
394
- function m(y, ie) {
394
+ function m(y, oe) {
395
395
  if (typeof y == "object" && y && y.$$typeof !== pe) {
396
396
  if (P(y))
397
397
  for (var Q = 0; Q < y.length; Q++) {
398
398
  var $e = y[Q];
399
- v($e) && C($e, ie);
399
+ v($e) && C($e, oe);
400
400
  }
401
401
  else if (v(y))
402
402
  y._store && (y._store.validated = 1);
403
- else if (y === null || typeof y != "object" ? Q = null : (Q = ae && y[ae] || y["@@iterator"], Q = typeof Q == "function" ? Q : null), typeof Q == "function" && Q !== y.entries && (Q = Q.call(y), Q !== y))
403
+ else if (y === null || typeof y != "object" ? Q = null : (Q = le && y[le] || y["@@iterator"], Q = typeof Q == "function" ? Q : null), typeof Q == "function" && Q !== y.entries && (Q = Q.call(y), Q !== y))
404
404
  for (; !(y = Q.next()).done; )
405
- v(y.value) && C(y.value, ie);
405
+ v(y.value) && C(y.value, oe);
406
406
  }
407
407
  }
408
408
  function v(y) {
409
- return typeof y == "object" && y !== null && y.$$typeof === w;
409
+ return typeof y == "object" && y !== null && y.$$typeof === x;
410
410
  }
411
- function C(y, ie) {
412
- if (y._store && !y._store.validated && y.key == null && (y._store.validated = 1, ie = O(ie), !Ge[ie])) {
413
- Ge[ie] = !0;
411
+ function C(y, oe) {
412
+ if (y._store && !y._store.validated && y.key == null && (y._store.validated = 1, oe = O(oe), !Ge[oe])) {
413
+ Ge[oe] = !0;
414
414
  var Q = "";
415
415
  y && y._owner != null && y._owner !== s() && (Q = null, typeof y._owner.tag == "number" ? Q = e(y._owner.type) : typeof y._owner.name == "string" && (Q = y._owner.name), Q = " It was passed a child from " + Q + ".");
416
416
  var $e = z.getCurrentStack;
@@ -419,26 +419,26 @@ React keys must be passed directly to JSX without using spread:
419
419
  return $e && (_e += $e() || ""), _e;
420
420
  }, console.error(
421
421
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
422
- ie,
422
+ oe,
423
423
  Q
424
424
  ), z.getCurrentStack = $e;
425
425
  }
426
426
  }
427
427
  function O(y) {
428
- var ie = "", Q = s();
429
- return Q && (Q = e(Q.type)) && (ie = `
428
+ var oe = "", Q = s();
429
+ return Q && (Q = e(Q.type)) && (oe = `
430
430
 
431
- Check the render method of \`` + Q + "`."), ie || (y = e(y)) && (ie = `
431
+ Check the render method of \`` + Q + "`."), oe || (y = e(y)) && (oe = `
432
432
 
433
- Check the top-level render call using <` + y + ">."), ie;
433
+ Check the top-level render call using <` + y + ">."), oe;
434
434
  }
435
- var $ = j, w = Symbol.for("react.transitional.element"), x = Symbol.for("react.portal"), _ = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), R = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), Z = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), B = Symbol.for("react.memo"), se = Symbol.for("react.lazy"), le = Symbol.for("react.offscreen"), ae = Symbol.iterator, oe = Symbol.for("react.client.reference"), z = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, D = Object.assign, X = Symbol.for("react.client.reference"), P = Array.isArray, U = 0, k, ee, Y, ne, fe, ge, Te;
435
+ var $ = j, x = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), A = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), H = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), L = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), G = Symbol.for("react.suspense_list"), W = Symbol.for("react.memo"), ae = Symbol.for("react.lazy"), de = Symbol.for("react.offscreen"), le = Symbol.iterator, ie = Symbol.for("react.client.reference"), z = $.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, T = Object.prototype.hasOwnProperty, D = Object.assign, Z = Symbol.for("react.client.reference"), P = Array.isArray, U = 0, k, ee, Y, ne, fe, ge, Te;
436
436
  r.__reactDisabledLog = !0;
437
437
  var E, J, q = !1, I = new (typeof WeakMap == "function" ? WeakMap : Map)(), pe = Symbol.for("react.client.reference"), ye, Pe = {}, ke = {}, Ge = {};
438
- fn.Fragment = _, fn.jsx = function(y, ie, Q, $e, _e) {
439
- return u(y, ie, Q, !1, $e, _e);
440
- }, fn.jsxs = function(y, ie, Q, $e, _e) {
441
- return u(y, ie, Q, !0, $e, _e);
438
+ fn.Fragment = A, fn.jsx = function(y, oe, Q, $e, _e) {
439
+ return u(y, oe, Q, !1, $e, _e);
440
+ }, fn.jsxs = function(y, oe, Q, $e, _e) {
441
+ return u(y, oe, Q, !0, $e, _e);
442
442
  };
443
443
  }()), fn;
444
444
  }
@@ -542,9 +542,9 @@ const hu = "_checkboxLayout_bt7qx_1", vu = "_checkboxLabel_bt7qx_4", gu = "_chec
542
542
  const [p, f] = me(i);
543
543
  let u = {}, m, v = o ? "#9b9b9b" : "#ffffff";
544
544
  if (n) {
545
- const w = Et(n);
546
- if (n = pt.convert3HexTo6(n), w === "dark" || w === "light") {
547
- switch (w) {
545
+ const x = Et(n);
546
+ if (n = pt.convert3HexTo6(n), x === "dark" || x === "light") {
547
+ switch (x) {
548
548
  case "dark":
549
549
  v = o ? p ? "#9b9b9b" : "#f9f9f9" : "#ffffff";
550
550
  break;
@@ -555,31 +555,31 @@ const hu = "_checkboxLayout_bt7qx_1", vu = "_checkboxLabel_bt7qx_4", gu = "_chec
555
555
  v = "#9b9b9b";
556
556
  break;
557
557
  }
558
- const x = o ? "#f9f9f9" : p ? n : "#ffffff";
558
+ const w = o ? "#f9f9f9" : p ? n : "#ffffff";
559
559
  m = o ? "#e4e4e4" : n == "#ffffff" ? "#333333" : n, p && (u = {
560
- backgroundColor: x,
560
+ backgroundColor: w,
561
561
  borderColor: m,
562
562
  outlineColor: m
563
563
  });
564
564
  }
565
565
  }
566
- const C = o ? ht.checkboxDisabled : "", O = [ht.checkboxLayout, ht[t], C, a].filter(Boolean).join(" "), $ = (w) => {
567
- w.key != "Enter" && (w.preventDefault(), d?.(w.target.checked), f(!p));
566
+ const C = o ? ht.checkboxDisabled : "", O = [ht.checkboxLayout, ht[t], C, a].filter(Boolean).join(" "), $ = (x) => {
567
+ x.key != "Enter" && (x.preventDefault(), d?.(x.target.checked), f(!p));
568
568
  };
569
- return /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsx("div", { className: O, "data-testid": "checkbox", children: /* @__PURE__ */ N.jsxs("label", { className: ht.checkboxLabel, htmlFor: r, onClick: (w) => $(w), children: [
569
+ return /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsx("div", { className: O, "data-testid": "checkbox", children: /* @__PURE__ */ N.jsxs("label", { className: ht.checkboxLabel, htmlFor: r, onClick: (x) => $(x), children: [
570
570
  /* @__PURE__ */ N.jsxs(
571
571
  "div",
572
572
  {
573
573
  className: ht.checkboxInnerContainer,
574
574
  tabIndex: s || o ? -1 : 0,
575
- onKeyPress: (w) => $(w),
575
+ onKeyPress: (x) => $(x),
576
576
  "data-testid": "checkbox-inner-container",
577
577
  children: [
578
578
  /* @__PURE__ */ N.jsx(
579
579
  "input",
580
580
  {
581
581
  className: ht.checkboxInput,
582
- onChange: (w) => $(w),
582
+ onChange: (x) => $(x),
583
583
  type: "checkbox",
584
584
  checked: p,
585
585
  disabled: o,
@@ -630,11 +630,11 @@ const Tu = "_textInputWrapper_1i9m6_1", Nu = "_textInput_1i9m6_1", Go = {
630
630
  textInputWrapper: Tu,
631
631
  textInput: Nu
632
632
  };
633
- var de = {}, hn = { exports: {} }, Iu = hn.exports, zo;
633
+ var se = {}, hn = { exports: {} }, Iu = hn.exports, zo;
634
634
  function _u() {
635
635
  return zo || (zo = 1, function(e, n) {
636
636
  (function(t, r) {
637
- var i = "1.0.40", o = "", a = "?", d = "function", l = "undefined", s = "object", c = "string", h = "major", p = "model", f = "name", u = "type", m = "vendor", v = "version", C = "architecture", O = "console", $ = "mobile", w = "tablet", x = "smarttv", _ = "wearable", M = "embedded", H = 500, A = "Amazon", R = "Apple", L = "ASUS", Z = "BlackBerry", G = "Browser", B = "Chrome", se = "Edge", le = "Firefox", ae = "Google", oe = "Huawei", z = "LG", T = "Microsoft", D = "Motorola", X = "Opera", P = "Samsung", U = "Sharp", k = "Sony", ee = "Xiaomi", Y = "Zebra", ne = "Facebook", fe = "Chromium OS", ge = "Mac OS", Te = " Browser", E = function(ce, te) {
637
+ var i = "1.0.40", o = "", a = "?", d = "function", l = "undefined", s = "object", c = "string", h = "major", p = "model", f = "name", u = "type", m = "vendor", v = "version", C = "architecture", O = "console", $ = "mobile", x = "tablet", w = "smarttv", A = "wearable", M = "embedded", H = 500, _ = "Amazon", L = "Apple", F = "ASUS", X = "BlackBerry", G = "Browser", W = "Chrome", ae = "Edge", de = "Firefox", le = "Google", ie = "Huawei", z = "LG", T = "Microsoft", D = "Motorola", Z = "Opera", P = "Samsung", U = "Sharp", k = "Sony", ee = "Xiaomi", Y = "Zebra", ne = "Facebook", fe = "Chromium OS", ge = "Mac OS", Te = " Browser", E = function(ce, te) {
638
638
  var ve = {};
639
639
  for (var Ee in ce)
640
640
  te[Ee] && te[Ee].length % 2 === 0 ? ve[Ee] = te[Ee].concat(ce[Ee]) : ve[Ee] = ce[Ee];
@@ -670,10 +670,10 @@ function _u() {
670
670
  } else if (q(te[ve], ce))
671
671
  return ve === a ? r : ve;
672
672
  return te.hasOwnProperty("*") ? te["*"] : ce;
673
- }, Ge = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, y = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, ie = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [v, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [v, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, v], [/opios[\/ ]+([\w\.]+)/i], [v, [f, X + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [v, [f, X + " GX"]], [/\bopr\/([\w\.]+)/i], [v, [f, X]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [v, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [v, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, v], [/quark(?:pc)?\/([-\w\.]+)/i], [v, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [v, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [v, [f, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [v, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [v, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [v, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [v, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [v, [f, "Smart Lenovo " + G]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + G], v], [/\bfocus\/([\w\.]+)/i], [v, [f, le + " Focus"]], [/\bopt\/([\w\.]+)/i], [v, [f, X + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [v, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [v, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [v, [f, X + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [v, [f, "MIUI" + Te]], [/fxios\/([\w\.-]+)/i], [v, [f, le]], [/\bqihoobrowser\/?([\w\.]*)/i], [v, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], v], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + Te], v], [/samsungbrowser\/([\w\.]+)/i], [v, [f, P + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [v, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], v], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, v], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [v, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, ne], v], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, v], [/\bgsa\/([\w\.]+) .*safari\//i], [v, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [v, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [v, [f, B + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, B + " WebView"], v], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [v, [f, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, v], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [v, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [v, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [v, ke, Ge]], [/(webkit|khtml)\/([\w\.]+)/i], [f, v], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], v], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, v], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [v, [f, le + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [f, [v, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [v, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[C, "amd64"]], [/(ia32(?=;))/i], [[C, I]], [/((?:i[346]|x)86)[;\)]/i], [[C, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[C, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[C, "armhf"]], [/windows (ce|mobile); ppc;/i], [[C, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[C, /ower/, o, I]], [/(sun4\w)[;\)]/i], [[C, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[C, I]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [m, P], [u, w]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [p, [m, P], [u, $]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [m, R], [u, $]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [m, R], [u, w]], [/(macintosh);/i], [p, [m, R]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [m, U], [u, $]], [/(?:honor)([-\w ]+)[;\)]/i], [p, [m, "Honor"], [u, $]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [m, oe], [u, w]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [m, oe], [u, $]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[p, /_/g, " "], [m, ee], [u, $]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [m, ee], [u, w]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [m, "OPPO"], [u, $]], [/\b(opd2\d{3}a?) bui/i], [p, [m, "OPPO"], [u, w]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [m, "Vivo"], [u, $]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [p, [m, "Realme"], [u, $]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [m, D], [u, $]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [m, D], [u, w]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [m, z], [u, w]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [m, z], [u, $]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [m, "Lenovo"], [u, w]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [m, "Nokia"], [u, $]], [/(pixel c)\b/i], [p, [m, ae], [u, w]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [m, ae], [u, $]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [m, k], [u, $]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [m, k], [u, w]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [m, "OnePlus"], [u, $]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [m, A], [u, w]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [m, A], [u, $]], [/(playbook);[-\w\),; ]+(rim)/i], [p, m, [u, w]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [m, Z], [u, $]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [m, L], [u, w]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [m, L], [u, $]], [/(nexus 9)/i], [p, [m, "HTC"], [u, w]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [p, /_/g, " "], [u, $]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [p, [m, "TCL"], [u, w]], [/(itel) ((\w+))/i], [[m, I], p, [u, ke, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [m, "Acer"], [u, w]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [m, "Meizu"], [u, $]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [p, [m, "Ulefone"], [u, $]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [p, [m, "Energizer"], [u, $]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [p, [m, "Cat"], [u, $]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [p, [m, "Smartfren"], [u, $]], [/droid.+; (a(?:015|06[35]|142p?))/i], [p, [m, "Nothing"], [u, $]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, p, [u, $]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, p, [u, w]], [/(surface duo)/i], [p, [m, T], [u, w]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [m, "Fairphone"], [u, $]], [/(u304aa)/i], [p, [m, "AT&T"], [u, $]], [/\bsie-(\w*)/i], [p, [m, "Siemens"], [u, $]], [/\b(rct\w+) b/i], [p, [m, "RCA"], [u, w]], [/\b(venue[\d ]{2,7}) b/i], [p, [m, "Dell"], [u, w]], [/\b(q(?:mv|ta)\w+) b/i], [p, [m, "Verizon"], [u, w]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [m, "Barnes & Noble"], [u, w]], [/\b(tm\d{3}\w+) b/i], [p, [m, "NuVision"], [u, w]], [/\b(k88) b/i], [p, [m, "ZTE"], [u, w]], [/\b(nx\d{3}j) b/i], [p, [m, "ZTE"], [u, $]], [/\b(gen\d{3}) b.+49h/i], [p, [m, "Swiss"], [u, $]], [/\b(zur\d{3}) b/i], [p, [m, "Swiss"], [u, w]], [/\b((zeki)?tb.*\b) b/i], [p, [m, "Zeki"], [u, w]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], p, [u, w]], [/\b(ns-?\w{0,9}) b/i], [p, [m, "Insignia"], [u, w]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [m, "NextBook"], [u, w]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], p, [u, $]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], p, [u, $]], [/\b(ph-1) /i], [p, [m, "Essential"], [u, $]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [m, "Envizen"], [u, w]], [/\b(trio[-\w\. ]+) b/i], [p, [m, "MachSpeed"], [u, w]], [/\btu_(1491) b/i], [p, [m, "Rotor"], [u, w]], [/(shield[\w ]+) b/i], [p, [m, "Nvidia"], [u, w]], [/(sprint) (\w+)/i], [m, p, [u, $]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [m, T], [u, $]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [m, Y], [u, w]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [m, Y], [u, $]], [/smart-tv.+(samsung)/i], [m, [u, x]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [m, P], [u, x]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, z], [u, x]], [/(apple) ?tv/i], [m, [p, R + " TV"], [u, x]], [/crkey/i], [[p, B + "cast"], [m, ae], [u, x]], [/droid.+aft(\w+)( bui|\))/i], [p, [m, A], [u, x]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [m, U], [u, x]], [/(bravia[\w ]+)( bui|\))/i], [p, [m, k], [u, x]], [/(mitv-\w{5}) bui/i], [p, [m, ee], [u, x]], [/Hbbtv.*(technisat) (.*);/i], [m, p, [u, x]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, ye], [p, ye], [u, x]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[u, x]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, p, [u, O]], [/droid.+; (shield) bui/i], [p, [m, "Nvidia"], [u, O]], [/(playstation [345portablevi]+)/i], [p, [m, k], [u, O]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [m, T], [u, O]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [p, [m, P], [u, _]], [/((pebble))app/i], [m, p, [u, _]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [m, R], [u, _]], [/droid.+; (glass) \d/i], [p, [m, ae], [u, _]], [/droid.+; (wt63?0{2,3})\)/i], [p, [m, Y], [u, _]], [/droid.+; (glass) \d/i], [p, [m, ae], [u, _]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, p, [u, _]], [/; (quest( \d| pro)?)/i], [p, [m, ne], [u, _]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [u, M]], [/(aeobc)\b/i], [p, [m, A], [u, M]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [p, [u, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [u, w]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[u, w]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[u, $]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [v, [f, se + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, v], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [v, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, v], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [v, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, v], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [f, [v, ke, y]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[v, ke, y], [f, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[v, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, ge], [v, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [v, f], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [f, v], [/\(bb(10);/i], [v, [f, Z]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [v, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [v, [f, le + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [v, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [v, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [v, [f, B + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, fe], v], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, v], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], v], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, v]] }, Q = function(ce, te) {
673
+ }, Ge = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, y = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, oe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [v, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [v, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, v], [/opios[\/ ]+([\w\.]+)/i], [v, [f, Z + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [v, [f, Z + " GX"]], [/\bopr\/([\w\.]+)/i], [v, [f, Z]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [v, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [v, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, v], [/quark(?:pc)?\/([-\w\.]+)/i], [v, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [v, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [v, [f, "UC" + G]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [v, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [v, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [v, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [v, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [v, [f, "Smart Lenovo " + G]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + G], v], [/\bfocus\/([\w\.]+)/i], [v, [f, de + " Focus"]], [/\bopt\/([\w\.]+)/i], [v, [f, Z + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [v, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [v, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [v, [f, Z + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [v, [f, "MIUI" + Te]], [/fxios\/([\w\.-]+)/i], [v, [f, de]], [/\bqihoobrowser\/?([\w\.]*)/i], [v, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], v], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + Te], v], [/samsungbrowser\/([\w\.]+)/i], [v, [f, P + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [v, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], v], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, v], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [v, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, ne], v], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, v], [/\bgsa\/([\w\.]+) .*safari\//i], [v, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [v, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [v, [f, W + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, W + " WebView"], v], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [v, [f, "Android " + G]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, v], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [v, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [v, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [v, ke, Ge]], [/(webkit|khtml)\/([\w\.]+)/i], [f, v], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], v], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, v], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [v, [f, de + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [f, [v, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [v, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[C, "amd64"]], [/(ia32(?=;))/i], [[C, I]], [/((?:i[346]|x)86)[;\)]/i], [[C, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[C, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[C, "armhf"]], [/windows (ce|mobile); ppc;/i], [[C, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[C, /ower/, o, I]], [/(sun4\w)[;\)]/i], [[C, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[C, I]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [p, [m, P], [u, x]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [p, [m, P], [u, $]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [p, [m, L], [u, $]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [p, [m, L], [u, x]], [/(macintosh);/i], [p, [m, L]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [p, [m, U], [u, $]], [/(?:honor)([-\w ]+)[;\)]/i], [p, [m, "Honor"], [u, $]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [p, [m, ie], [u, x]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [p, [m, ie], [u, $]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[p, /_/g, " "], [m, ee], [u, $]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[p, /_/g, " "], [m, ee], [u, x]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [p, [m, "OPPO"], [u, $]], [/\b(opd2\d{3}a?) bui/i], [p, [m, "OPPO"], [u, x]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [p, [m, "Vivo"], [u, $]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [p, [m, "Realme"], [u, $]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [p, [m, D], [u, $]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [p, [m, D], [u, x]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [p, [m, z], [u, x]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [p, [m, z], [u, $]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [p, [m, "Lenovo"], [u, x]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[p, /_/g, " "], [m, "Nokia"], [u, $]], [/(pixel c)\b/i], [p, [m, le], [u, x]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [p, [m, le], [u, $]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [p, [m, k], [u, $]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[p, "Xperia Tablet"], [m, k], [u, x]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [p, [m, "OnePlus"], [u, $]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [p, [m, _], [u, x]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[p, /(.+)/g, "Fire Phone $1"], [m, _], [u, $]], [/(playbook);[-\w\),; ]+(rim)/i], [p, m, [u, x]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [p, [m, X], [u, $]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [p, [m, F], [u, x]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [p, [m, F], [u, $]], [/(nexus 9)/i], [p, [m, "HTC"], [u, x]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [m, [p, /_/g, " "], [u, $]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [p, [m, "TCL"], [u, x]], [/(itel) ((\w+))/i], [[m, I], p, [u, ke, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [p, [m, "Acer"], [u, x]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [p, [m, "Meizu"], [u, $]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [p, [m, "Ulefone"], [u, $]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [p, [m, "Energizer"], [u, $]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [p, [m, "Cat"], [u, $]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [p, [m, "Smartfren"], [u, $]], [/droid.+; (a(?:015|06[35]|142p?))/i], [p, [m, "Nothing"], [u, $]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [m, p, [u, $]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [m, p, [u, x]], [/(surface duo)/i], [p, [m, T], [u, x]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [p, [m, "Fairphone"], [u, $]], [/(u304aa)/i], [p, [m, "AT&T"], [u, $]], [/\bsie-(\w*)/i], [p, [m, "Siemens"], [u, $]], [/\b(rct\w+) b/i], [p, [m, "RCA"], [u, x]], [/\b(venue[\d ]{2,7}) b/i], [p, [m, "Dell"], [u, x]], [/\b(q(?:mv|ta)\w+) b/i], [p, [m, "Verizon"], [u, x]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [p, [m, "Barnes & Noble"], [u, x]], [/\b(tm\d{3}\w+) b/i], [p, [m, "NuVision"], [u, x]], [/\b(k88) b/i], [p, [m, "ZTE"], [u, x]], [/\b(nx\d{3}j) b/i], [p, [m, "ZTE"], [u, $]], [/\b(gen\d{3}) b.+49h/i], [p, [m, "Swiss"], [u, $]], [/\b(zur\d{3}) b/i], [p, [m, "Swiss"], [u, x]], [/\b((zeki)?tb.*\b) b/i], [p, [m, "Zeki"], [u, x]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[m, "Dragon Touch"], p, [u, x]], [/\b(ns-?\w{0,9}) b/i], [p, [m, "Insignia"], [u, x]], [/\b((nxa|next)-?\w{0,9}) b/i], [p, [m, "NextBook"], [u, x]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[m, "Voice"], p, [u, $]], [/\b(lvtel\-)?(v1[12]) b/i], [[m, "LvTel"], p, [u, $]], [/\b(ph-1) /i], [p, [m, "Essential"], [u, $]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [p, [m, "Envizen"], [u, x]], [/\b(trio[-\w\. ]+) b/i], [p, [m, "MachSpeed"], [u, x]], [/\btu_(1491) b/i], [p, [m, "Rotor"], [u, x]], [/(shield[\w ]+) b/i], [p, [m, "Nvidia"], [u, x]], [/(sprint) (\w+)/i], [m, p, [u, $]], [/(kin\.[onetw]{3})/i], [[p, /\./g, " "], [m, T], [u, $]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [p, [m, Y], [u, x]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [p, [m, Y], [u, $]], [/smart-tv.+(samsung)/i], [m, [u, w]], [/hbbtv.+maple;(\d+)/i], [[p, /^/, "SmartTV"], [m, P], [u, w]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[m, z], [u, w]], [/(apple) ?tv/i], [m, [p, L + " TV"], [u, w]], [/crkey/i], [[p, W + "cast"], [m, le], [u, w]], [/droid.+aft(\w+)( bui|\))/i], [p, [m, _], [u, w]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [p, [m, U], [u, w]], [/(bravia[\w ]+)( bui|\))/i], [p, [m, k], [u, w]], [/(mitv-\w{5}) bui/i], [p, [m, ee], [u, w]], [/Hbbtv.*(technisat) (.*);/i], [m, p, [u, w]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[m, ye], [p, ye], [u, w]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[u, w]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [m, p, [u, O]], [/droid.+; (shield) bui/i], [p, [m, "Nvidia"], [u, O]], [/(playstation [345portablevi]+)/i], [p, [m, k], [u, O]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [p, [m, T], [u, O]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [p, [m, P], [u, A]], [/((pebble))app/i], [m, p, [u, A]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [p, [m, L], [u, A]], [/droid.+; (glass) \d/i], [p, [m, le], [u, A]], [/droid.+; (wt63?0{2,3})\)/i], [p, [m, Y], [u, A]], [/droid.+; (glass) \d/i], [p, [m, le], [u, A]], [/(pico) (4|neo3(?: link|pro)?)/i], [m, p, [u, A]], [/; (quest( \d| pro)?)/i], [p, [m, ne], [u, A]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [m, [u, M]], [/(aeobc)\b/i], [p, [m, _], [u, M]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [p, [u, $]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [p, [u, x]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[u, x]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[u, $]], [/(android[-\w\. ]{0,9});.+buil/i], [p, [m, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [v, [f, ae + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, v], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [v, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, v], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [v, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, v], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [f, [v, ke, y]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[v, ke, y], [f, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[v, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, ge], [v, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [v, f], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [f, v], [/\(bb(10);/i], [v, [f, X]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [v, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [v, [f, de + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [v, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [v, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [v, [f, W + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, fe], v], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, v], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], v], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, v]] }, Q = function(ce, te) {
674
674
  if (typeof ce === s && (te = ce, ce = r), !(this instanceof Q))
675
675
  return new Q(ce, te).getResult();
676
- var ve = typeof t !== l && t.navigator ? t.navigator : r, Ee = ce || (ve && ve.userAgent ? ve.userAgent : o), Fe = ve && ve.userAgentData ? ve.userAgentData : r, De = te ? E(ie, te) : ie, we = ve && ve.userAgent == Ee;
676
+ var ve = typeof t !== l && t.navigator ? t.navigator : r, Ee = ce || (ve && ve.userAgent ? ve.userAgent : o), Fe = ve && ve.userAgentData ? ve.userAgentData : r, De = te ? E(oe, te) : oe, we = ve && ve.userAgent == Ee;
677
677
  return this.getBrowser = function() {
678
678
  var he = {};
679
679
  return he[f] = r, he[v] = r, Pe.call(he, Ee, De.browser), he[h] = pe(he[v]), we && ve && ve.brave && typeof ve.brave.isBrave == d && (he[f] = "Brave"), he;
@@ -682,7 +682,7 @@ function _u() {
682
682
  return he[C] = r, Pe.call(he, Ee, De.cpu), he;
683
683
  }, this.getDevice = function() {
684
684
  var he = {};
685
- return he[m] = r, he[p] = r, he[u] = r, Pe.call(he, Ee, De.device), we && !he[u] && Fe && Fe.mobile && (he[u] = $), we && he[p] == "Macintosh" && ve && typeof ve.standalone !== l && ve.maxTouchPoints && ve.maxTouchPoints > 2 && (he[p] = "iPad", he[u] = w), he;
685
+ return he[m] = r, he[p] = r, he[u] = r, Pe.call(he, Ee, De.device), we && !he[u] && Fe && Fe.mobile && (he[u] = $), we && he[p] == "Macintosh" && ve && typeof ve.standalone !== l && ve.maxTouchPoints && ve.maxTouchPoints > 2 && (he[p] = "iPad", he[u] = x), he;
686
686
  }, this.getEngine = function() {
687
687
  var he = {};
688
688
  return he[f] = r, he[v] = r, Pe.call(he, Ee, De.engine), he;
@@ -697,7 +697,7 @@ function _u() {
697
697
  return Ee = typeof he === c && he.length > H ? ye(he, H) : he, this;
698
698
  }, this.setUA(Ee), this;
699
699
  };
700
- Q.VERSION = i, Q.BROWSER = J([f, v, h]), Q.CPU = J([C]), Q.DEVICE = J([p, m, u, O, $, x, w, _, M]), Q.ENGINE = Q.OS = J([f, v]), e.exports && (n = e.exports = Q), n.UAParser = Q;
700
+ Q.VERSION = i, Q.BROWSER = J([f, v, h]), Q.CPU = J([C]), Q.DEVICE = J([p, m, u, O, $, w, x, A, M]), Q.ENGINE = Q.OS = J([f, v]), e.exports && (n = e.exports = Q), n.UAParser = Q;
701
701
  var $e = typeof t !== l && (t.jQuery || t.Zepto);
702
702
  if ($e && !$e.ua) {
703
703
  var _e = new Q();
@@ -715,8 +715,8 @@ function _u() {
715
715
  }
716
716
  var Ko;
717
717
  function Au() {
718
- if (Ko) return de;
719
- Ko = 1, Object.defineProperty(de, "__esModule", { value: !0 });
718
+ if (Ko) return se;
719
+ Ko = 1, Object.defineProperty(se, "__esModule", { value: !0 });
720
720
  function e(S) {
721
721
  return S && typeof S == "object" && "default" in S ? S.default : S;
722
722
  }
@@ -736,8 +736,8 @@ function Au() {
736
736
  engine: b.getEngine(),
737
737
  os: b.getOS(),
738
738
  ua: b.getUA(),
739
- setUserAgent: function(W) {
740
- return b.setUA(W);
739
+ setUserAgent: function(B) {
740
+ return b.setUA(B);
741
741
  }
742
742
  };
743
743
  }, f = /* @__PURE__ */ Object.freeze({
@@ -754,20 +754,20 @@ function Au() {
754
754
  function u(S, g) {
755
755
  var b = Object.keys(S);
756
756
  if (Object.getOwnPropertySymbols) {
757
- var F = Object.getOwnPropertySymbols(S);
758
- g && (F = F.filter(function(W) {
759
- return Object.getOwnPropertyDescriptor(S, W).enumerable;
760
- })), b.push.apply(b, F);
757
+ var R = Object.getOwnPropertySymbols(S);
758
+ g && (R = R.filter(function(B) {
759
+ return Object.getOwnPropertyDescriptor(S, B).enumerable;
760
+ })), b.push.apply(b, R);
761
761
  }
762
762
  return b;
763
763
  }
764
764
  function m(S) {
765
765
  for (var g = 1; g < arguments.length; g++) {
766
766
  var b = arguments[g] != null ? arguments[g] : {};
767
- g % 2 ? u(Object(b), !0).forEach(function(F) {
768
- w(S, F, b[F]);
769
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(S, Object.getOwnPropertyDescriptors(b)) : u(Object(b)).forEach(function(F) {
770
- Object.defineProperty(S, F, Object.getOwnPropertyDescriptor(b, F));
767
+ g % 2 ? u(Object(b), !0).forEach(function(R) {
768
+ x(S, R, b[R]);
769
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(S, Object.getOwnPropertyDescriptors(b)) : u(Object(b)).forEach(function(R) {
770
+ Object.defineProperty(S, R, Object.getOwnPropertyDescriptor(b, R));
771
771
  });
772
772
  }
773
773
  return S;
@@ -786,14 +786,14 @@ function Au() {
786
786
  }
787
787
  function O(S, g) {
788
788
  for (var b = 0; b < g.length; b++) {
789
- var F = g[b];
790
- F.enumerable = F.enumerable || !1, F.configurable = !0, "value" in F && (F.writable = !0), Object.defineProperty(S, F.key, F);
789
+ var R = g[b];
790
+ R.enumerable = R.enumerable || !1, R.configurable = !0, "value" in R && (R.writable = !0), Object.defineProperty(S, R.key, R);
791
791
  }
792
792
  }
793
793
  function $(S, g, b) {
794
794
  return g && O(S.prototype, g), S;
795
795
  }
796
- function w(S, g, b) {
796
+ function x(S, g, b) {
797
797
  return g in S ? Object.defineProperty(S, g, {
798
798
  value: b,
799
799
  enumerable: !0,
@@ -801,17 +801,17 @@ function Au() {
801
801
  writable: !0
802
802
  }) : S[g] = b, S;
803
803
  }
804
- function x() {
805
- return x = Object.assign || function(S) {
804
+ function w() {
805
+ return w = Object.assign || function(S) {
806
806
  for (var g = 1; g < arguments.length; g++) {
807
807
  var b = arguments[g];
808
- for (var F in b)
809
- Object.prototype.hasOwnProperty.call(b, F) && (S[F] = b[F]);
808
+ for (var R in b)
809
+ Object.prototype.hasOwnProperty.call(b, R) && (S[R] = b[R]);
810
810
  }
811
811
  return S;
812
- }, x.apply(this, arguments);
812
+ }, w.apply(this, arguments);
813
813
  }
814
- function _(S, g) {
814
+ function A(S, g) {
815
815
  if (typeof g != "function" && g !== null)
816
816
  throw new TypeError("Super expression must either be null or a function");
817
817
  S.prototype = Object.create(g && g.prototype, {
@@ -828,78 +828,78 @@ function Au() {
828
828
  }, M(S);
829
829
  }
830
830
  function H(S, g) {
831
- return H = Object.setPrototypeOf || function(F, W) {
832
- return F.__proto__ = W, F;
831
+ return H = Object.setPrototypeOf || function(R, B) {
832
+ return R.__proto__ = B, R;
833
833
  }, H(S, g);
834
834
  }
835
- function A(S, g) {
835
+ function _(S, g) {
836
836
  if (S == null) return {};
837
- var b = {}, F = Object.keys(S), W, Ce;
838
- for (Ce = 0; Ce < F.length; Ce++)
839
- W = F[Ce], !(g.indexOf(W) >= 0) && (b[W] = S[W]);
837
+ var b = {}, R = Object.keys(S), B, Ce;
838
+ for (Ce = 0; Ce < R.length; Ce++)
839
+ B = R[Ce], !(g.indexOf(B) >= 0) && (b[B] = S[B]);
840
840
  return b;
841
841
  }
842
- function R(S, g) {
842
+ function L(S, g) {
843
843
  if (S == null) return {};
844
- var b = A(S, g), F, W;
844
+ var b = _(S, g), R, B;
845
845
  if (Object.getOwnPropertySymbols) {
846
846
  var Ce = Object.getOwnPropertySymbols(S);
847
- for (W = 0; W < Ce.length; W++)
848
- F = Ce[W], !(g.indexOf(F) >= 0) && Object.prototype.propertyIsEnumerable.call(S, F) && (b[F] = S[F]);
847
+ for (B = 0; B < Ce.length; B++)
848
+ R = Ce[B], !(g.indexOf(R) >= 0) && Object.prototype.propertyIsEnumerable.call(S, R) && (b[R] = S[R]);
849
849
  }
850
850
  return b;
851
851
  }
852
- function L(S) {
852
+ function F(S) {
853
853
  if (S === void 0)
854
854
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
855
855
  return S;
856
856
  }
857
- function Z(S, g) {
857
+ function X(S, g) {
858
858
  if (g && (typeof g == "object" || typeof g == "function"))
859
859
  return g;
860
860
  if (g !== void 0)
861
861
  throw new TypeError("Derived constructors may only return object or undefined");
862
- return L(S);
862
+ return F(S);
863
863
  }
864
864
  function G(S, g) {
865
- return B(S) || se(S, g) || le(S, g) || oe();
865
+ return W(S) || ae(S, g) || de(S, g) || ie();
866
866
  }
867
- function B(S) {
867
+ function W(S) {
868
868
  if (Array.isArray(S)) return S;
869
869
  }
870
- function se(S, g) {
870
+ function ae(S, g) {
871
871
  var b = S == null ? null : typeof Symbol < "u" && S[Symbol.iterator] || S["@@iterator"];
872
872
  if (b != null) {
873
- var F = [], W = !0, Ce = !1, je, tt;
873
+ var R = [], B = !0, Ce = !1, je, tt;
874
874
  try {
875
- for (b = b.call(S); !(W = (je = b.next()).done) && (F.push(je.value), !(g && F.length === g)); W = !0)
875
+ for (b = b.call(S); !(B = (je = b.next()).done) && (R.push(je.value), !(g && R.length === g)); B = !0)
876
876
  ;
877
877
  } catch (kn) {
878
878
  Ce = !0, tt = kn;
879
879
  } finally {
880
880
  try {
881
- !W && b.return != null && b.return();
881
+ !B && b.return != null && b.return();
882
882
  } finally {
883
883
  if (Ce) throw tt;
884
884
  }
885
885
  }
886
- return F;
886
+ return R;
887
887
  }
888
888
  }
889
- function le(S, g) {
889
+ function de(S, g) {
890
890
  if (S) {
891
- if (typeof S == "string") return ae(S, g);
891
+ if (typeof S == "string") return le(S, g);
892
892
  var b = Object.prototype.toString.call(S).slice(8, -1);
893
893
  if (b === "Object" && S.constructor && (b = S.constructor.name), b === "Map" || b === "Set") return Array.from(S);
894
- if (b === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)) return ae(S, g);
894
+ if (b === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)) return le(S, g);
895
895
  }
896
896
  }
897
- function ae(S, g) {
897
+ function le(S, g) {
898
898
  (g == null || g > S.length) && (g = S.length);
899
- for (var b = 0, F = new Array(g); b < g; b++) F[b] = S[b];
900
- return F;
899
+ for (var b = 0, R = new Array(g); b < g; b++) R[b] = S[b];
900
+ return R;
901
901
  }
902
- function oe() {
902
+ function ie() {
903
903
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
904
904
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
905
905
  }
@@ -931,7 +931,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
931
931
  WindowsPhone: "Windows Phone",
932
932
  Windows: "Windows",
933
933
  MAC_OS: "Mac OS"
934
- }, X = {
934
+ }, Z = {
935
935
  isMobile: !1,
936
936
  isTablet: !1,
937
937
  isBrowser: !1,
@@ -969,7 +969,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
969
969
  isEmbedded: !0
970
970
  };
971
971
  default:
972
- return X;
972
+ return Z;
973
973
  }
974
974
  }, U = function(g) {
975
975
  return h(g);
@@ -981,79 +981,79 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
981
981
  }, Y = function(g) {
982
982
  var b = ee();
983
983
  return b && b.platform && (b.platform.indexOf(g) !== -1 || b.platform === "MacIntel" && b.maxTouchPoints > 1 && !window.MSStream);
984
- }, ne = function(g, b, F, W, Ce) {
984
+ }, ne = function(g, b, R, B, Ce) {
985
985
  return {
986
986
  isBrowser: g,
987
987
  browserMajorVersion: k(b.major),
988
988
  browserFullVersion: k(b.version),
989
989
  browserName: k(b.name),
990
- engineName: k(F.name),
991
- engineVersion: k(F.version),
992
- osName: k(W.name),
993
- osVersion: k(W.version),
990
+ engineName: k(R.name),
991
+ engineVersion: k(R.version),
992
+ osName: k(B.name),
993
+ osVersion: k(B.version),
994
994
  userAgent: k(Ce)
995
995
  };
996
- }, fe = function(g, b, F, W) {
996
+ }, fe = function(g, b, R, B) {
997
997
  return m({}, g, {
998
998
  vendor: k(b.vendor),
999
999
  model: k(b.model),
1000
- os: k(F.name),
1001
- osVersion: k(F.version),
1002
- ua: k(W)
1000
+ os: k(R.name),
1001
+ osVersion: k(R.version),
1002
+ ua: k(B)
1003
1003
  });
1004
- }, ge = function(g, b, F, W) {
1004
+ }, ge = function(g, b, R, B) {
1005
1005
  return {
1006
1006
  isSmartTV: g,
1007
1007
  engineName: k(b.name),
1008
1008
  engineVersion: k(b.version),
1009
- osName: k(F.name),
1010
- osVersion: k(F.version),
1011
- userAgent: k(W)
1009
+ osName: k(R.name),
1010
+ osVersion: k(R.version),
1011
+ userAgent: k(B)
1012
1012
  };
1013
- }, Te = function(g, b, F, W) {
1013
+ }, Te = function(g, b, R, B) {
1014
1014
  return {
1015
1015
  isConsole: g,
1016
1016
  engineName: k(b.name),
1017
1017
  engineVersion: k(b.version),
1018
- osName: k(F.name),
1019
- osVersion: k(F.version),
1020
- userAgent: k(W)
1018
+ osName: k(R.name),
1019
+ osVersion: k(R.version),
1020
+ userAgent: k(B)
1021
1021
  };
1022
- }, E = function(g, b, F, W) {
1022
+ }, E = function(g, b, R, B) {
1023
1023
  return {
1024
1024
  isWearable: g,
1025
1025
  engineName: k(b.name),
1026
1026
  engineVersion: k(b.version),
1027
- osName: k(F.name),
1028
- osVersion: k(F.version),
1029
- userAgent: k(W)
1027
+ osName: k(R.name),
1028
+ osVersion: k(R.version),
1029
+ userAgent: k(B)
1030
1030
  };
1031
- }, J = function(g, b, F, W, Ce) {
1031
+ }, J = function(g, b, R, B, Ce) {
1032
1032
  return {
1033
1033
  isEmbedded: g,
1034
1034
  vendor: k(b.vendor),
1035
1035
  model: k(b.model),
1036
- engineName: k(F.name),
1037
- engineVersion: k(F.version),
1038
- osName: k(W.name),
1039
- osVersion: k(W.version),
1036
+ engineName: k(R.name),
1037
+ engineVersion: k(R.version),
1038
+ osName: k(B.name),
1039
+ osVersion: k(B.version),
1040
1040
  userAgent: k(Ce)
1041
1041
  };
1042
1042
  };
1043
1043
  function q(S) {
1044
- var g = S ? p(S) : f, b = g.device, F = g.browser, W = g.engine, Ce = g.os, je = g.ua, tt = P(b.type), kn = tt.isBrowser, J0 = tt.isMobile, Q0 = tt.isTablet, Do = tt.isSmartTV, jo = tt.isConsole, Bo = tt.isWearable, Wo = tt.isEmbedded;
1044
+ var g = S ? p(S) : f, b = g.device, R = g.browser, B = g.engine, Ce = g.os, je = g.ua, tt = P(b.type), kn = tt.isBrowser, J0 = tt.isMobile, Q0 = tt.isTablet, Do = tt.isSmartTV, jo = tt.isConsole, Bo = tt.isWearable, Wo = tt.isEmbedded;
1045
1045
  if (kn)
1046
- return ne(kn, F, W, Ce, je);
1046
+ return ne(kn, R, B, Ce, je);
1047
1047
  if (Do)
1048
- return ge(Do, W, Ce, je);
1048
+ return ge(Do, B, Ce, je);
1049
1049
  if (jo)
1050
- return Te(jo, W, Ce, je);
1050
+ return Te(jo, B, Ce, je);
1051
1051
  if (J0 || Q0)
1052
1052
  return fe(tt, b, Ce, je);
1053
1053
  if (Bo)
1054
- return E(Bo, W, Ce, je);
1054
+ return E(Bo, B, Ce, je);
1055
1055
  if (Wo)
1056
- return J(Wo, b, W, Ce, je);
1056
+ return J(Wo, b, B, Ce, je);
1057
1057
  }
1058
1058
  var I = function(g) {
1059
1059
  var b = g.type;
@@ -1076,7 +1076,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1076
1076
  }, y = function(g) {
1077
1077
  var b = g.type;
1078
1078
  return b === z.Console;
1079
- }, ie = function(g) {
1079
+ }, oe = function(g) {
1080
1080
  var b = g.type;
1081
1081
  return b === z.Embedded;
1082
1082
  }, Q = function(g) {
@@ -1175,39 +1175,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1175
1175
  return k(g);
1176
1176
  };
1177
1177
  function So(S) {
1178
- var g = S || f, b = g.device, F = g.browser, W = g.os, Ce = g.engine, je = g.ua;
1178
+ var g = S || f, b = g.device, R = g.browser, B = g.os, Ce = g.engine, je = g.ua;
1179
1179
  return {
1180
1180
  isSmartTV: Pe(b),
1181
1181
  isConsole: y(b),
1182
1182
  isWearable: Ge(b),
1183
- isEmbedded: ie(b),
1184
- isMobileSafari: co(F) || mt(),
1185
- isChromium: qe(F),
1183
+ isEmbedded: oe(b),
1184
+ isMobileSafari: co(R) || mt(),
1185
+ isChromium: qe(R),
1186
1186
  isMobile: ye(b) || mt(),
1187
1187
  isMobileOnly: I(b),
1188
1188
  isTablet: pe(b) || mt(),
1189
1189
  isBrowser: ke(b),
1190
1190
  isDesktop: ke(b),
1191
- isAndroid: ce(W),
1192
- isWinPhone: Ee(W),
1193
- isIOS: Fe(W) || mt(),
1194
- isChrome: he(F),
1195
- isFirefox: Ue(F),
1196
- isSafari: uo(F),
1197
- isOpera: fo(F),
1198
- isIE: po(F),
1199
- osVersion: De(W),
1200
- osName: we(W),
1201
- fullBrowserVersion: vo(F),
1202
- browserVersion: go(F),
1203
- browserName: $o(F),
1191
+ isAndroid: ce(B),
1192
+ isWinPhone: Ee(B),
1193
+ isIOS: Fe(B) || mt(),
1194
+ isChrome: he(R),
1195
+ isFirefox: Ue(R),
1196
+ isSafari: uo(R),
1197
+ isOpera: fo(R),
1198
+ isIE: po(R),
1199
+ osVersion: De(B),
1200
+ osName: we(B),
1201
+ fullBrowserVersion: vo(R),
1202
+ browserVersion: go(R),
1203
+ browserName: $o(R),
1204
1204
  mobileVendor: Q(b),
1205
1205
  mobileModel: $e(b),
1206
1206
  engineName: bo(Ce),
1207
1207
  engineVersion: yo(Ce),
1208
1208
  getUA: Oo(je),
1209
- isEdge: kt(F) || Gt(je),
1210
- isYandex: so(F),
1209
+ isEdge: kt(R) || Gt(je),
1210
+ isYandex: so(R),
1211
1211
  deviceType: _e(b),
1212
1212
  isIOS13: xo(),
1213
1213
  isIPad13: mt(),
@@ -1215,85 +1215,85 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1215
1215
  isIPod13: Eo(),
1216
1216
  isElectron: wo(),
1217
1217
  isEdgeChromium: Gt(je),
1218
- isLegacyEdge: kt(F) && !Gt(je),
1219
- isWindows: te(W),
1220
- isMacOs: ve(W),
1221
- isMIUI: mo(F),
1222
- isSamsungBrowser: ho(F)
1218
+ isLegacyEdge: kt(R) && !Gt(je),
1219
+ isWindows: te(B),
1220
+ isMacOs: ve(B),
1221
+ isMIUI: mo(R),
1222
+ isSamsungBrowser: ho(R)
1223
1223
  };
1224
1224
  }
1225
- var Po = Pe(d), To = y(d), No = Ge(d), i0 = ie(d), o0 = co(o) || mt(), a0 = qe(o), Fn = ye(d) || mt(), Io = I(d), _o = pe(d) || mt(), Ao = ke(d), d0 = ke(d), Ro = ce(s), Fo = Ee(s), ko = Fe(s) || mt(), l0 = he(o), s0 = Ue(o), u0 = uo(o), c0 = fo(o), Mo = po(o), f0 = De(s), p0 = we(s), m0 = vo(o), h0 = go(o), v0 = $o(o), g0 = Q(d), $0 = $e(d), b0 = bo(l), y0 = yo(l), w0 = Oo(c), x0 = kt(o) || Gt(c), C0 = so(o), E0 = _e(d), O0 = xo(), S0 = mt(), P0 = Co(), T0 = Eo(), N0 = wo(), I0 = Gt(c), _0 = kt(o) && !Gt(c), A0 = te(s), R0 = ve(s), F0 = mo(o), k0 = ho(o), M0 = function(g) {
1225
+ var Po = Pe(d), To = y(d), No = Ge(d), i0 = oe(d), o0 = co(o) || mt(), a0 = qe(o), Fn = ye(d) || mt(), Io = I(d), _o = pe(d) || mt(), Ao = ke(d), d0 = ke(d), Ro = ce(s), Fo = Ee(s), ko = Fe(s) || mt(), l0 = he(o), s0 = Ue(o), u0 = uo(o), c0 = fo(o), Mo = po(o), f0 = De(s), p0 = we(s), m0 = vo(o), h0 = go(o), v0 = $o(o), g0 = Q(d), $0 = $e(d), b0 = bo(l), y0 = yo(l), w0 = Oo(c), x0 = kt(o) || Gt(c), C0 = so(o), E0 = _e(d), O0 = xo(), S0 = mt(), P0 = Co(), T0 = Eo(), N0 = wo(), I0 = Gt(c), _0 = kt(o) && !Gt(c), A0 = te(s), R0 = ve(s), F0 = mo(o), k0 = ho(o), M0 = function(g) {
1226
1226
  if (!g || typeof g != "string") {
1227
1227
  console.error("No valid user agent string was provided");
1228
1228
  return;
1229
1229
  }
1230
- var b = p(g), F = b.device, W = b.browser, Ce = b.os, je = b.engine, tt = b.ua;
1230
+ var b = p(g), R = b.device, B = b.browser, Ce = b.os, je = b.engine, tt = b.ua;
1231
1231
  return So({
1232
- device: F,
1233
- browser: W,
1232
+ device: R,
1233
+ browser: B,
1234
1234
  os: Ce,
1235
1235
  engine: je,
1236
1236
  ua: tt
1237
1237
  });
1238
1238
  }, L0 = function(g) {
1239
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1240
- return Ro ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1239
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1240
+ return Ro ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1241
1241
  }, D0 = function(g) {
1242
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1243
- return Ao ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1242
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1243
+ return Ao ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1244
1244
  }, j0 = function(g) {
1245
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1246
- return Mo ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1245
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1246
+ return Mo ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1247
1247
  }, B0 = function(g) {
1248
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1249
- return ko ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1248
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1249
+ return ko ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1250
1250
  }, W0 = function(g) {
1251
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1252
- return Fn ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1251
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1252
+ return Fn ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1253
1253
  }, V0 = function(g) {
1254
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1255
- return _o ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1254
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1255
+ return _o ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1256
1256
  }, U0 = function(g) {
1257
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1258
- return Fo ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1257
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1258
+ return Fo ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1259
1259
  }, H0 = function(g) {
1260
- var b = g.renderWithFragment, F = g.children;
1260
+ var b = g.renderWithFragment, R = g.children;
1261
1261
  g.viewClassName, g.style;
1262
- var W = R(g, ["renderWithFragment", "children", "viewClassName", "style"]);
1263
- return Io ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1262
+ var B = L(g, ["renderWithFragment", "children", "viewClassName", "style"]);
1263
+ return Io ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1264
1264
  }, G0 = function(g) {
1265
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1266
- return Po ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1265
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1266
+ return Po ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1267
1267
  }, z0 = function(g) {
1268
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1269
- return To ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1268
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1269
+ return To ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1270
1270
  }, K0 = function(g) {
1271
- var b = g.renderWithFragment, F = g.children, W = R(g, ["renderWithFragment", "children"]);
1272
- return No ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", W, F) : null;
1271
+ var b = g.renderWithFragment, R = g.children, B = L(g, ["renderWithFragment", "children"]);
1272
+ return No ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", B, R) : null;
1273
1273
  }, q0 = function(g) {
1274
- var b = g.renderWithFragment, F = g.children;
1274
+ var b = g.renderWithFragment, R = g.children;
1275
1275
  g.viewClassName, g.style;
1276
- var W = g.condition, Ce = R(g, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
1277
- return W ? b ? t.createElement(n.Fragment, null, F) : t.createElement("div", Ce, F) : null;
1276
+ var B = g.condition, Ce = L(g, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
1277
+ return B ? b ? t.createElement(n.Fragment, null, R) : t.createElement("div", Ce, R) : null;
1278
1278
  };
1279
1279
  function Y0(S) {
1280
1280
  return /* @__PURE__ */ function(g) {
1281
- _(b, g);
1282
- function b(F) {
1283
- var W;
1284
- return C(this, b), W = Z(this, M(b).call(this, F)), W.isEventListenerAdded = !1, W.handleOrientationChange = W.handleOrientationChange.bind(L(W)), W.onOrientationChange = W.onOrientationChange.bind(L(W)), W.onPageLoad = W.onPageLoad.bind(L(W)), W.state = {
1281
+ A(b, g);
1282
+ function b(R) {
1283
+ var B;
1284
+ return C(this, b), B = X(this, M(b).call(this, R)), B.isEventListenerAdded = !1, B.handleOrientationChange = B.handleOrientationChange.bind(F(B)), B.onOrientationChange = B.onOrientationChange.bind(F(B)), B.onPageLoad = B.onPageLoad.bind(F(B)), B.state = {
1285
1285
  isLandscape: !1,
1286
1286
  isPortrait: !1
1287
- }, W;
1287
+ }, B;
1288
1288
  }
1289
1289
  return $(b, [{
1290
1290
  key: "handleOrientationChange",
1291
1291
  value: function() {
1292
1292
  this.isEventListenerAdded || (this.isEventListenerAdded = !0);
1293
- var W = window.innerWidth > window.innerHeight ? 90 : 0;
1293
+ var B = window.innerWidth > window.innerHeight ? 90 : 0;
1294
1294
  this.setState({
1295
- isPortrait: W === 0,
1296
- isLandscape: W === 90
1295
+ isPortrait: B === 0,
1296
+ isLandscape: B === 90
1297
1297
  });
1298
1298
  }
1299
1299
  }, {
@@ -1319,7 +1319,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1319
1319
  }, {
1320
1320
  key: "render",
1321
1321
  value: function() {
1322
- return t.createElement(S, x({}, this.props, {
1322
+ return t.createElement(S, w({}, this.props, {
1323
1323
  isLandscape: this.state.isLandscape,
1324
1324
  isPortrait: this.state.isPortrait
1325
1325
  }));
@@ -1335,29 +1335,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1335
1335
  isLandscape: Ce === 90,
1336
1336
  orientation: Ce === 0 ? "portrait" : "landscape"
1337
1337
  };
1338
- }), g = G(S, 2), b = g[0], F = g[1], W = n.useCallback(function() {
1338
+ }), g = G(S, 2), b = g[0], R = g[1], B = n.useCallback(function() {
1339
1339
  var Ce = window.innerWidth > window.innerHeight ? 90 : 0, je = {
1340
1340
  isPortrait: Ce === 0,
1341
1341
  isLandscape: Ce === 90,
1342
1342
  orientation: Ce === 0 ? "portrait" : "landscape"
1343
1343
  };
1344
- b.orientation !== je.orientation && F(je);
1344
+ b.orientation !== je.orientation && R(je);
1345
1345
  }, [b.orientation]);
1346
1346
  return n.useEffect(function() {
1347
- return (typeof window > "u" ? "undefined" : v(window)) !== void 0 && Fn && (W(), window.addEventListener("load", W, !1), window.addEventListener("resize", W, !1)), function() {
1348
- window.removeEventListener("resize", W, !1), window.removeEventListener("load", W, !1);
1347
+ return (typeof window > "u" ? "undefined" : v(window)) !== void 0 && Fn && (B(), window.addEventListener("load", B, !1), window.addEventListener("resize", B, !1)), function() {
1348
+ window.removeEventListener("resize", B, !1), window.removeEventListener("load", B, !1);
1349
1349
  };
1350
- }, [W]), b;
1350
+ }, [B]), b;
1351
1351
  }
1352
1352
  function Lo(S) {
1353
1353
  var g = S || window.navigator.userAgent;
1354
1354
  return p(g);
1355
1355
  }
1356
1356
  function Z0(S) {
1357
- var g = S || window.navigator.userAgent, b = Lo(g), F = So(b);
1358
- return [F, b];
1357
+ var g = S || window.navigator.userAgent, b = Lo(g), R = So(b);
1358
+ return [R, b];
1359
1359
  }
1360
- return de.AndroidView = L0, de.BrowserTypes = T, de.BrowserView = D0, de.ConsoleView = z0, de.CustomView = q0, de.IEView = j0, de.IOSView = B0, de.MobileOnlyView = H0, de.MobileView = W0, de.OsTypes = D, de.SmartTVView = G0, de.TabletView = V0, de.WearableView = K0, de.WinPhoneView = U0, de.browserName = v0, de.browserVersion = h0, de.deviceDetect = q, de.deviceType = E0, de.engineName = b0, de.engineVersion = y0, de.fullBrowserVersion = m0, de.getSelectorsByUserAgent = M0, de.getUA = w0, de.isAndroid = Ro, de.isBrowser = Ao, de.isChrome = l0, de.isChromium = a0, de.isConsole = To, de.isDesktop = d0, de.isEdge = x0, de.isEdgeChromium = I0, de.isElectron = N0, de.isEmbedded = i0, de.isFirefox = s0, de.isIE = Mo, de.isIOS = ko, de.isIOS13 = O0, de.isIPad13 = S0, de.isIPhone13 = P0, de.isIPod13 = T0, de.isLegacyEdge = _0, de.isMIUI = F0, de.isMacOs = R0, de.isMobile = Fn, de.isMobileOnly = Io, de.isMobileSafari = o0, de.isOpera = c0, de.isSafari = u0, de.isSamsungBrowser = k0, de.isSmartTV = Po, de.isTablet = _o, de.isWearable = No, de.isWinPhone = Fo, de.isWindows = A0, de.isYandex = C0, de.mobileModel = $0, de.mobileVendor = g0, de.osName = p0, de.osVersion = f0, de.parseUserAgent = p, de.setUserAgent = U, de.useDeviceData = Lo, de.useDeviceSelectors = Z0, de.useMobileOrientation = X0, de.withOrientationChange = Y0, de;
1360
+ return se.AndroidView = L0, se.BrowserTypes = T, se.BrowserView = D0, se.ConsoleView = z0, se.CustomView = q0, se.IEView = j0, se.IOSView = B0, se.MobileOnlyView = H0, se.MobileView = W0, se.OsTypes = D, se.SmartTVView = G0, se.TabletView = V0, se.WearableView = K0, se.WinPhoneView = U0, se.browserName = v0, se.browserVersion = h0, se.deviceDetect = q, se.deviceType = E0, se.engineName = b0, se.engineVersion = y0, se.fullBrowserVersion = m0, se.getSelectorsByUserAgent = M0, se.getUA = w0, se.isAndroid = Ro, se.isBrowser = Ao, se.isChrome = l0, se.isChromium = a0, se.isConsole = To, se.isDesktop = d0, se.isEdge = x0, se.isEdgeChromium = I0, se.isElectron = N0, se.isEmbedded = i0, se.isFirefox = s0, se.isIE = Mo, se.isIOS = ko, se.isIOS13 = O0, se.isIPad13 = S0, se.isIPhone13 = P0, se.isIPod13 = T0, se.isLegacyEdge = _0, se.isMIUI = F0, se.isMacOs = R0, se.isMobile = Fn, se.isMobileOnly = Io, se.isMobileSafari = o0, se.isOpera = c0, se.isSafari = u0, se.isSamsungBrowser = k0, se.isSmartTV = Po, se.isTablet = _o, se.isWearable = No, se.isWinPhone = Fo, se.isWindows = A0, se.isYandex = C0, se.mobileModel = $0, se.mobileVendor = g0, se.osName = p0, se.osVersion = f0, se.parseUserAgent = p, se.setUserAgent = U, se.useDeviceData = Lo, se.useDeviceSelectors = Z0, se.useMobileOrientation = X0, se.withOrientationChange = Y0, se;
1361
1361
  }
1362
1362
  var Ru = Au();
1363
1363
  const A7 = j.memo(
@@ -1462,9 +1462,9 @@ const R7 = ({
1462
1462
  className: o = "",
1463
1463
  style: a = {}
1464
1464
  }) => {
1465
- const d = K(e), [l, s] = me(n), [c, h] = me(""), [p, f] = me(!1), [u, m] = me(!1), v = K(null), C = K(null), O = K(null), $ = K(null), w = K(null), x = K(null), [_, M] = me(-1), H = K(0), A = K(0), [R, L] = me(!1);
1466
- let Z = {};
1467
- const [G, B] = me({ left: 0, top: 0 }), [se, le] = me(null), ae = K(!1), oe = K(null), z = () => {
1465
+ const d = K(e), [l, s] = me(n), [c, h] = me(""), [p, f] = me(!1), [u, m] = me(!1), v = K(null), C = K(null), O = K(null), $ = K(null), x = K(null), w = K(null), [A, M] = me(-1), H = K(0), _ = K(0), [L, F] = me(!1);
1466
+ let X = {};
1467
+ const [G, W] = me({ left: 0, top: 0 }), [ae, de] = me(null), le = K(!1), ie = K(null), z = () => {
1468
1468
  setTimeout(() => {
1469
1469
  (v.current?.children[0]).focus();
1470
1470
  }, 0);
@@ -1478,7 +1478,7 @@ const R7 = ({
1478
1478
  };
1479
1479
  }, []);
1480
1480
  const T = () => {
1481
- H.current = window.innerHeight, A.current = document.body.scrollHeight, L(!0);
1481
+ H.current = window.innerHeight, _.current = document.body.scrollHeight, F(!0);
1482
1482
  };
1483
1483
  be(() => (T(), window.addEventListener("resize", T), () => {
1484
1484
  window.addEventListener("resize", T);
@@ -1493,7 +1493,7 @@ const R7 = ({
1493
1493
  const E = e.filter((J) => J.label.toLowerCase().includes(c.toLowerCase()));
1494
1494
  d.current = E;
1495
1495
  }, [e, c]);
1496
- const X = l.length > 0 ? l.map((E) => {
1496
+ const Z = l.length > 0 ? l.map((E) => {
1497
1497
  const J = e.find((q) => q.value === E);
1498
1498
  return J?.label !== null ? J?.label : "";
1499
1499
  }).filter((E) => E !== "").join(", ") : "Select your option", P = (E) => {
@@ -1506,7 +1506,7 @@ const R7 = ({
1506
1506
  ee(), f(E), setTimeout(() => {
1507
1507
  O.current ? O.current?.focus() : $.current?.focus(), D("use up and down arrow keys to navigate");
1508
1508
  }, 0);
1509
- }, k = () => A.current - (H.current + window.scrollY), ee = () => {
1509
+ }, k = () => _.current - (H.current + window.scrollY), ee = () => {
1510
1510
  if (v.current) {
1511
1511
  const E = v.current.getBoundingClientRect();
1512
1512
  setTimeout(() => {
@@ -1514,7 +1514,7 @@ const R7 = ({
1514
1514
  let pe;
1515
1515
  if (J) {
1516
1516
  const ye = E.height, Pe = E.top, ke = J.height, Ge = ke > Pe + window.scrollY;
1517
- Pe < ke && (Ge || Ge && I < ke || q > ke || I > ke) || Pe > ke && I > ke ? pe = E.y + ye : pe = E.y - ke, B({
1517
+ Pe < ke && (Ge || Ge && I < ke || q > ke || I > ke) || Pe > ke && I > ke ? pe = E.y + ye : pe = E.y - ke, W({
1518
1518
  left: E.left,
1519
1519
  top: pe ?? E.top
1520
1520
  });
@@ -1526,36 +1526,36 @@ const R7 = ({
1526
1526
  window.removeEventListener("scroll", ee), window.removeEventListener("resize", ee);
1527
1527
  }), [p]);
1528
1528
  const Y = (E) => {
1529
- E.preventDefault(), E.key === "Shift" ? ae.current = !0 : E.shiftKey && ae.current && E.key === "Tab" || E.key === "Tab" ? (setTimeout(() => {
1529
+ E.preventDefault(), E.key === "Shift" ? le.current = !0 : E.shiftKey && le.current && E.key === "Tab" || E.key === "Tab" ? (setTimeout(() => {
1530
1530
  O.current ? O.current?.focus() : $.current?.focus();
1531
- }, 0), ae.current = !1) : E.key === "Escape" || E.key === "Enter" || E.key === "Space" || E.key === " " ? (U(!1), z()) : ae.current = !1;
1531
+ }, 0), le.current = !1) : E.key === "Escape" || E.key === "Enter" || E.key === "Space" || E.key === " " ? (U(!1), z()) : le.current = !1;
1532
1532
  }, ne = (E) => {
1533
1533
  const { key: J } = E;
1534
1534
  if (J === "Tab" || E.shiftKey && J === "Tab")
1535
1535
  setTimeout(() => {
1536
- w.current?.focus();
1536
+ x.current?.focus();
1537
1537
  }, 0);
1538
1538
  else if (J === "ArrowDown" || J === "ArrowUp") {
1539
1539
  E.preventDefault(), setTimeout(() => {
1540
1540
  $.current?.focus();
1541
1541
  }, 0);
1542
- let q = _;
1543
- if (J === "ArrowDown" ? q = Math.min(_ + 1, d.current.length - 1) : J === "ArrowUp" && (q = Math.max(_ - 1, 0)), _ === 0 && E.key === "ArrowUp" ? q = d.current.length - 1 : _ === d.current.length - 1 && E.key === "ArrowDown" && (q = 0), M(q), x.current && q >= 0) {
1544
- const I = x.current.querySelectorAll(`.${ze.optionsList}`)[q], pe = I.children[0].getAttribute("aria-checked"), ye = `${I.textContent} ${pe === "true" ? "selected" : "not selected"} ${q + 1} out of ${d.current.length}`;
1542
+ let q = A;
1543
+ if (J === "ArrowDown" ? q = Math.min(A + 1, d.current.length - 1) : J === "ArrowUp" && (q = Math.max(A - 1, 0)), A === 0 && E.key === "ArrowUp" ? q = d.current.length - 1 : A === d.current.length - 1 && E.key === "ArrowDown" && (q = 0), M(q), w.current && q >= 0) {
1544
+ const I = w.current.querySelectorAll(`.${ze.optionsList}`)[q], pe = I.children[0].getAttribute("aria-checked"), ye = `${I.textContent} ${pe === "true" ? "selected" : "not selected"} ${q + 1} out of ${d.current.length}`;
1545
1545
  D(ye), I && I.scrollIntoView({
1546
1546
  block: "nearest",
1547
1547
  inline: "nearest"
1548
1548
  });
1549
1549
  }
1550
- } else J === "Enter" || J === "Space" || J === " " ? _ !== -1 && P(d.current[_].value) : J === "Escape" && (U(!1), z());
1550
+ } else J === "Enter" || J === "Space" || J === " " ? A !== -1 && P(d.current[A].value) : J === "Escape" && (U(!1), z());
1551
1551
  };
1552
1552
  be(() => {
1553
- se && clearTimeout(se);
1553
+ ae && clearTimeout(ae);
1554
1554
  const E = setTimeout(() => {
1555
1555
  const J = d.current.length ? `${d.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
1556
1556
  p && D(J);
1557
1557
  }, 500);
1558
- le(E);
1558
+ de(E);
1559
1559
  }, [c]);
1560
1560
  const fe = () => {
1561
1561
  m(!0);
@@ -1563,13 +1563,13 @@ const R7 = ({
1563
1563
  m(!1);
1564
1564
  };
1565
1565
  if (be(() => {
1566
- const E = oe.current;
1566
+ const E = ie.current;
1567
1567
  return E && (E.addEventListener("focus", fe), E.addEventListener("blur", ge)), () => {
1568
1568
  E && (E.removeEventListener("focus", fe), E.removeEventListener("blur", ge));
1569
1569
  };
1570
1570
  }, [fe, ge]), i) {
1571
1571
  const E = Et(i);
1572
- i = pt.convert3HexTo6(i), (E === "dark" || E === "light") && (Z = {
1572
+ i = pt.convert3HexTo6(i), (E === "dark" || E === "light") && (X = {
1573
1573
  borderBottomColor: i === "#ffffff" ? "#c8c8c8" : u || p ? i : "#333333"
1574
1574
  });
1575
1575
  }
@@ -1582,7 +1582,7 @@ const R7 = ({
1582
1582
  "div",
1583
1583
  {
1584
1584
  className: `${ze.selectedValues} ${p ? ze.focused : ""} ${l.length === 0 ? ze.placeholder : ""}`,
1585
- ref: oe,
1585
+ ref: ie,
1586
1586
  onFocus: fe,
1587
1587
  onBlur: ge,
1588
1588
  onClick: () => U(!p),
@@ -1591,13 +1591,13 @@ const R7 = ({
1591
1591
  },
1592
1592
  tabIndex: 0,
1593
1593
  "data-testid": "selected-input",
1594
- style: { ...Z, ...a },
1594
+ style: { ...X, ...a },
1595
1595
  "aria-expanded": p,
1596
1596
  "aria-haspopup": "listbox",
1597
1597
  "aria-multiselectable": "true",
1598
1598
  "aria-autocomplete": "list",
1599
1599
  role: "combobox",
1600
- children: X
1600
+ children: Z
1601
1601
  }
1602
1602
  ),
1603
1603
  /* @__PURE__ */ N.jsx(
@@ -1617,7 +1617,7 @@ const R7 = ({
1617
1617
  )
1618
1618
  ] }),
1619
1619
  /* @__PURE__ */ N.jsx("div", { id: "announcement", "aria-live": "assertive", role: "alert", className: ze.announcement }),
1620
- R ? rn(
1620
+ L ? rn(
1621
1621
  /* @__PURE__ */ N.jsx(N.Fragment, { children: p && v && /* @__PURE__ */ N.jsx(
1622
1622
  "div",
1623
1623
  {
@@ -1657,14 +1657,14 @@ const R7 = ({
1657
1657
  }
1658
1658
  }
1659
1659
  ) }),
1660
- /* @__PURE__ */ N.jsx("ul", { ref: x, role: "listbox", children: d.current.map((E, J) => (
1660
+ /* @__PURE__ */ N.jsx("ul", { ref: w, role: "listbox", children: d.current.map((E, J) => (
1661
1661
  // eslint-disable-next-line jsx-a11y/role-supports-aria-props
1662
1662
  /* @__PURE__ */ N.jsxs(
1663
1663
  "li",
1664
1664
  {
1665
- className: `${ze.optionsList} ${J === _ ? ze.focused : ""}`,
1665
+ className: `${ze.optionsList} ${J === A ? ze.focused : ""}`,
1666
1666
  onClick: () => P(E.value),
1667
- "aria-selected": J === _,
1667
+ "aria-selected": J === A,
1668
1668
  role: "option",
1669
1669
  children: [
1670
1670
  /* @__PURE__ */ N.jsx(
@@ -1706,7 +1706,7 @@ const R7 = ({
1706
1706
  onKeyDown: (E) => {
1707
1707
  Y(E);
1708
1708
  },
1709
- ref: w,
1709
+ ref: x,
1710
1710
  children: "Done"
1711
1711
  }
1712
1712
  )
@@ -1750,27 +1750,27 @@ const R7 = ({
1750
1750
  variant: l = "default",
1751
1751
  placeholder: s = "Select your option"
1752
1752
  }) => {
1753
- const c = K(e), [h, p] = me(n), [f, u] = me(""), [m, v] = me(!1), [C, O] = me(!1), $ = K(null), w = K(null), x = K(null), _ = K(null), M = K(null), H = K(null), [A, R] = me(-1), L = K(0), Z = K(0), [G, B] = me(!1);
1754
- let se = {};
1755
- const [le, ae] = me({ left: 0, top: 0 }), [oe, z] = me(null), T = K(!1), D = K(null);
1753
+ const c = K(e), [h, p] = me(n), [f, u] = me(""), [m, v] = me(!1), [C, O] = me(!1), $ = K(null), x = K(null), w = K(null), A = K(null), M = K(null), H = K(null), [_, L] = me(-1), F = K(0), X = K(0), [G, W] = me(!1);
1754
+ let ae = {};
1755
+ const [de, le] = me({ left: 0, top: 0 }), [ie, z] = me(null), T = K(!1), D = K(null);
1756
1756
  be(() => {
1757
1757
  p(n);
1758
1758
  }, [n]);
1759
- const X = () => {
1759
+ const Z = () => {
1760
1760
  setTimeout(() => {
1761
1761
  ($.current?.children[0]).focus();
1762
1762
  }, 0);
1763
1763
  };
1764
1764
  be(() => {
1765
1765
  const I = (pe) => {
1766
- w.current && !w.current.contains(pe.target) && (v(!1), u(""), X());
1766
+ x.current && !x.current.contains(pe.target) && (v(!1), u(""), Z());
1767
1767
  };
1768
1768
  return document.addEventListener("mousedown", I), () => {
1769
1769
  document.removeEventListener("mousedown", I);
1770
1770
  };
1771
1771
  }, []);
1772
1772
  const P = () => {
1773
- L.current = window.innerHeight, Z.current = document.body.scrollHeight, B(!0);
1773
+ F.current = window.innerHeight, X.current = document.body.scrollHeight, W(!0);
1774
1774
  };
1775
1775
  be(() => (P(), window.addEventListener("resize", P), () => {
1776
1776
  window.addEventListener("resize", P);
@@ -1798,22 +1798,22 @@ const R7 = ({
1798
1798
  }
1799
1799
  }, Y = (I) => {
1800
1800
  ne(), v(I), setTimeout(() => {
1801
- x.current ? x.current?.focus() : _.current?.focus(), U("use up and down arrow keys to navigate");
1801
+ w.current ? w.current?.focus() : A.current?.focus(), U("use up and down arrow keys to navigate");
1802
1802
  }, 0);
1803
1803
  }, ne = () => {
1804
1804
  if ($.current) {
1805
1805
  const I = $.current.getBoundingClientRect();
1806
1806
  setTimeout(() => {
1807
- const pe = w?.current?.getBoundingClientRect();
1807
+ const pe = x?.current?.getBoundingClientRect();
1808
1808
  if (pe) {
1809
- const ye = pe.height, Pe = pe.width, ke = window.innerWidth, Ge = L.current - I.bottom, y = I.top;
1810
- let ie;
1811
- Ge >= ye ? ie = I.bottom : y >= ye ? ie = I.top - ye : Ge >= y ? ie = I.bottom : ie = I.top - ye;
1809
+ const ye = pe.height, Pe = pe.width, ke = window.innerWidth, Ge = F.current - I.bottom, y = I.top;
1810
+ let oe;
1811
+ Ge >= ye ? oe = I.bottom : y >= ye ? oe = I.top - ye : Ge >= y ? oe = I.bottom : oe = I.top - ye;
1812
1812
  const Q = ke - I.left, $e = I.right;
1813
1813
  let _e;
1814
- Q - 20 >= Pe ? _e = I.left : $e >= Pe ? _e = I.right - Pe + 20 : Q >= $e ? _e = Math.max(20, ke - Pe - 20) : _e = Math.max(20, I.right - Pe + 20), ae({
1814
+ Q - 20 >= Pe ? _e = I.left : $e >= Pe ? _e = I.right - Pe + 20 : Q >= $e ? _e = Math.max(20, ke - Pe - 20) : _e = Math.max(20, I.right - Pe + 20), le({
1815
1815
  left: _e,
1816
- top: ie
1816
+ top: oe
1817
1817
  });
1818
1818
  }
1819
1819
  }, 10);
@@ -1824,8 +1824,8 @@ const R7 = ({
1824
1824
  }), [m]);
1825
1825
  const fe = (I) => {
1826
1826
  I.preventDefault(), I.key === "Shift" ? T.current = !0 : I.shiftKey && T.current && I.key === "Tab" || I.key === "Tab" ? (setTimeout(() => {
1827
- x.current ? x.current?.focus() : _.current?.focus();
1828
- }, 0), T.current = !1) : I.key === "Escape" || I.key === "Enter" || I.key === "Space" || I.key === " " ? (Y(!1), X()) : T.current = !1;
1827
+ w.current ? w.current?.focus() : A.current?.focus();
1828
+ }, 0), T.current = !1) : I.key === "Escape" || I.key === "Enter" || I.key === "Space" || I.key === " " ? (Y(!1), Z()) : T.current = !1;
1829
1829
  }, ge = (I) => {
1830
1830
  const { key: pe } = I;
1831
1831
  if (pe === "Tab" || I.shiftKey && pe === "Tab")
@@ -1834,20 +1834,20 @@ const R7 = ({
1834
1834
  }, 0);
1835
1835
  else if (pe === "ArrowDown" || pe === "ArrowUp") {
1836
1836
  I.preventDefault(), setTimeout(() => {
1837
- _.current?.focus();
1837
+ A.current?.focus();
1838
1838
  }, 0);
1839
- let ye = A;
1840
- if (pe === "ArrowDown" ? ye = Math.min(A + 1, c.current.length - 1) : pe === "ArrowUp" && (ye = Math.max(A - 1, 0)), A === 0 && I.key === "ArrowUp" ? ye = c.current.length - 1 : A === c.current.length - 1 && I.key === "ArrowDown" && (ye = 0), R(ye), H.current && ye >= 0) {
1839
+ let ye = _;
1840
+ if (pe === "ArrowDown" ? ye = Math.min(_ + 1, c.current.length - 1) : pe === "ArrowUp" && (ye = Math.max(_ - 1, 0)), _ === 0 && I.key === "ArrowUp" ? ye = c.current.length - 1 : _ === c.current.length - 1 && I.key === "ArrowDown" && (ye = 0), L(ye), H.current && ye >= 0) {
1841
1841
  const Pe = H.current.querySelectorAll(`.${Le.optionsList}`)[ye], ke = Pe.children[0].getAttribute("aria-checked"), Ge = `${Pe.textContent} ${ke === "true" ? "selected" : "not selected"} ${ye + 1} out of ${c.current.length}`;
1842
1842
  U(Ge), Pe && Pe.scrollIntoView({
1843
1843
  block: "nearest",
1844
1844
  inline: "nearest"
1845
1845
  });
1846
1846
  }
1847
- } else pe === "Enter" || pe === "Space" || pe === " " ? A !== -1 && ee(c.current[A].value) : pe === "Escape" && (Y(!1), X());
1847
+ } else pe === "Enter" || pe === "Space" || pe === " " ? _ !== -1 && ee(c.current[_].value) : pe === "Escape" && (Y(!1), Z());
1848
1848
  };
1849
1849
  be(() => {
1850
- oe && clearTimeout(oe);
1850
+ ie && clearTimeout(ie);
1851
1851
  const I = setTimeout(() => {
1852
1852
  const pe = c.current.length ? `${c.current.length} results are available, use up and down arrow keys to navigate` : "No results available";
1853
1853
  m && U(pe);
@@ -1866,14 +1866,14 @@ const R7 = ({
1866
1866
  };
1867
1867
  }, [Te, E]), i) {
1868
1868
  const I = Et(i);
1869
- i = pt.convert3HexTo6(i), (I === "dark" || I === "light") && (se = {
1869
+ i = pt.convert3HexTo6(i), (I === "dark" || I === "light") && (ae = {
1870
1870
  "--theme-color": i
1871
1871
  });
1872
1872
  }
1873
1873
  const J = () => {
1874
1874
  v(!1);
1875
1875
  }, q = () => {
1876
- v(!1), u(""), X(), t(h);
1876
+ v(!1), u(""), Z(), t(h);
1877
1877
  };
1878
1878
  return /* @__PURE__ */ N.jsx("div", { className: Le.multiSelectContainer, children: /* @__PURE__ */ N.jsxs("div", { className: Le.listOptionsWrap, children: [
1879
1879
  /* @__PURE__ */ N.jsx("div", { className: `${o} ${Le.selectedValuesWrap}`, ref: $, children: /* @__PURE__ */ N.jsxs(
@@ -1889,7 +1889,7 @@ const R7 = ({
1889
1889
  },
1890
1890
  tabIndex: 0,
1891
1891
  "data-testid": "selected-input",
1892
- style: { ...se, ...a },
1892
+ style: { ...ae, ...a },
1893
1893
  "aria-expanded": m,
1894
1894
  "aria-haspopup": "listbox",
1895
1895
  "aria-multiselectable": "true",
@@ -1942,12 +1942,12 @@ const R7 = ({
1942
1942
  "div",
1943
1943
  {
1944
1944
  className: `${Le.optionsListContainer}`,
1945
- ref: w,
1945
+ ref: x,
1946
1946
  onClick: (I) => I.stopPropagation(),
1947
1947
  style: {
1948
- opacity: le.top ? 1 : 0,
1949
- left: le.left,
1950
- top: le.top,
1948
+ opacity: de.top ? 1 : 0,
1949
+ left: de.left,
1950
+ top: de.top,
1951
1951
  paddingBottom: c.current.length === 1 ? 0 : void 0
1952
1952
  },
1953
1953
  children: [
@@ -1956,7 +1956,7 @@ const R7 = ({
1956
1956
  "input",
1957
1957
  {
1958
1958
  type: "text",
1959
- ref: x,
1959
+ ref: w,
1960
1960
  placeholder: "Type to filter",
1961
1961
  className: Le.searchInput,
1962
1962
  value: f,
@@ -1972,9 +1972,9 @@ const R7 = ({
1972
1972
  /* @__PURE__ */ N.jsxs(
1973
1973
  "li",
1974
1974
  {
1975
- className: `${Le.optionsList} ${pe === A ? Le.focused : ""}`,
1975
+ className: `${Le.optionsList} ${pe === _ ? Le.focused : ""}`,
1976
1976
  onClick: () => ee(I.value),
1977
- "aria-selected": pe === A,
1977
+ "aria-selected": pe === _,
1978
1978
  role: "option",
1979
1979
  children: [
1980
1980
  /* @__PURE__ */ N.jsx(
@@ -1996,7 +1996,7 @@ const R7 = ({
1996
1996
  /* @__PURE__ */ N.jsx(
1997
1997
  "input",
1998
1998
  {
1999
- ref: _,
1999
+ ref: A,
2000
2000
  onKeyDown: (I) => {
2001
2001
  ge(I);
2002
2002
  },
@@ -2046,11 +2046,11 @@ const R7 = ({
2046
2046
  const [l, s] = me(n), c = K({});
2047
2047
  let h = {}, p;
2048
2048
  const f = (u) => {
2049
- const m = e.find((w) => w.value === u);
2049
+ const m = e.find((x) => x.value === u);
2050
2050
  if (!m || m.disable)
2051
2051
  return;
2052
2052
  c.current[u]?.click();
2053
- const O = l.includes(u) ? l.filter((w) => w !== u) : [...l, u];
2053
+ const O = l.includes(u) ? l.filter((x) => x !== u) : [...l, u];
2054
2054
  (r === void 0 || O.length <= r) && (s(O), t(O));
2055
2055
  };
2056
2056
  if (i) {
@@ -3005,8 +3005,8 @@ function x1(e, n) {
3005
3005
  if (O) {
3006
3006
  let $ = O.getAttribute("disabled");
3007
3007
  if ($ === "true" || $ === "") return;
3008
- let w = O.getAttribute("aria-disabled");
3009
- if (w === "true" || w === "") return;
3008
+ let x = O.getAttribute("aria-disabled");
3009
+ if (x === "true" || x === "") return;
3010
3010
  (O instanceof HTMLInputElement && (O.type === "radio" || O.type === "checkbox") || O.role === "radio" || O.role === "checkbox" || O.role === "switch") && O.click(), O.focus({ preventScroll: !0 });
3011
3011
  }
3012
3012
  }
@@ -3540,7 +3540,7 @@ function F1(e) {
3540
3540
  ...e,
3541
3541
  onChange: (i, o) => {
3542
3542
  var a;
3543
- o ? nt(n) : n(), (a = e.onChange) == null || a.call(e, i, o);
3543
+ o ? rt(n) : n(), (a = e.onChange) == null || a.call(e, i, o);
3544
3544
  }
3545
3545
  }, [r] = ue.useState(
3546
3546
  () => new A1(t)
@@ -4333,8 +4333,8 @@ const y2 = async (e, n, t) => {
4333
4333
  } = d[m], {
4334
4334
  x: O,
4335
4335
  y: $,
4336
- data: w,
4337
- reset: x
4336
+ data: x,
4337
+ reset: w
4338
4338
  } = await C({
4339
4339
  x: c,
4340
4340
  y: h,
@@ -4353,13 +4353,13 @@ const y2 = async (e, n, t) => {
4353
4353
  ...f,
4354
4354
  [v]: {
4355
4355
  ...f[v],
4356
- ...w
4356
+ ...x
4357
4357
  }
4358
- }, x && u <= 50 && (u++, typeof x == "object" && (x.placement && (p = x.placement), x.rects && (s = x.rects === !0 ? await a.getElementRects({
4358
+ }, w && u <= 50 && (u++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (s = w.rects === !0 ? await a.getElementRects({
4359
4359
  reference: e,
4360
4360
  floating: n,
4361
4361
  strategy: i
4362
- }) : x.rects), {
4362
+ }) : w.rects), {
4363
4363
  x: c,
4364
4364
  y: h
4365
4365
  } = da(s, p, l)), m = -1);
@@ -4398,23 +4398,23 @@ async function pr(e, n) {
4398
4398
  y: i,
4399
4399
  width: a.floating.width,
4400
4400
  height: a.floating.height
4401
- } : a.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d.floating)), w = await (o.isElement == null ? void 0 : o.isElement($)) ? await (o.getScale == null ? void 0 : o.getScale($)) || {
4401
+ } : a.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(d.floating)), x = await (o.isElement == null ? void 0 : o.isElement($)) ? await (o.getScale == null ? void 0 : o.getScale($)) || {
4402
4402
  x: 1,
4403
4403
  y: 1
4404
4404
  } : {
4405
4405
  x: 1,
4406
4406
  y: 1
4407
- }, x = Jn(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
4407
+ }, w = Jn(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
4408
4408
  elements: d,
4409
4409
  rect: O,
4410
4410
  offsetParent: $,
4411
4411
  strategy: l
4412
4412
  }) : O);
4413
4413
  return {
4414
- top: (C.top - x.top + u.top) / w.y,
4415
- bottom: (x.bottom - C.bottom + u.bottom) / w.y,
4416
- left: (C.left - x.left + u.left) / w.x,
4417
- right: (x.right - C.right + u.right) / w.x
4414
+ top: (C.top - w.top + u.top) / x.y,
4415
+ bottom: (w.bottom - C.bottom + u.bottom) / x.y,
4416
+ left: (C.left - w.left + u.left) / x.x,
4417
+ right: (w.right - C.right + u.right) / x.x
4418
4418
  };
4419
4419
  }
4420
4420
  const w2 = function(e) {
@@ -4441,55 +4441,55 @@ const w2 = function(e) {
4441
4441
  } = dn(e, n);
4442
4442
  if ((t = o.arrow) != null && t.alignmentOffset)
4443
4443
  return {};
4444
- const C = _t(i), O = Ut(d), $ = _t(d) === d, w = await (l.isRTL == null ? void 0 : l.isRTL(s.floating)), x = p || ($ || !m ? [Zn(d)] : h2(d)), _ = u !== "none";
4445
- !p && _ && x.push(...g2(d, m, u, w));
4446
- const M = [d, ...x], H = await pr(n, v), A = [];
4447
- let R = ((r = o.flip) == null ? void 0 : r.overflows) || [];
4448
- if (c && A.push(H[C]), h) {
4449
- const B = m2(i, a, w);
4450
- A.push(H[B[0]], H[B[1]]);
4444
+ const C = _t(i), O = Ut(d), $ = _t(d) === d, x = await (l.isRTL == null ? void 0 : l.isRTL(s.floating)), w = p || ($ || !m ? [Zn(d)] : h2(d)), A = u !== "none";
4445
+ !p && A && w.push(...g2(d, m, u, x));
4446
+ const M = [d, ...w], H = await pr(n, v), _ = [];
4447
+ let L = ((r = o.flip) == null ? void 0 : r.overflows) || [];
4448
+ if (c && _.push(H[C]), h) {
4449
+ const W = m2(i, a, x);
4450
+ _.push(H[W[0]], H[W[1]]);
4451
4451
  }
4452
- if (R = [...R, {
4452
+ if (L = [...L, {
4453
4453
  placement: i,
4454
- overflows: A
4455
- }], !A.every((B) => B <= 0)) {
4456
- var L, Z;
4457
- const B = (((L = o.flip) == null ? void 0 : L.index) || 0) + 1, se = M[B];
4458
- if (se)
4454
+ overflows: _
4455
+ }], !_.every((W) => W <= 0)) {
4456
+ var F, X;
4457
+ const W = (((F = o.flip) == null ? void 0 : F.index) || 0) + 1, ae = M[W];
4458
+ if (ae)
4459
4459
  return {
4460
4460
  data: {
4461
- index: B,
4462
- overflows: R
4461
+ index: W,
4462
+ overflows: L
4463
4463
  },
4464
4464
  reset: {
4465
- placement: se
4465
+ placement: ae
4466
4466
  }
4467
4467
  };
4468
- let le = (Z = R.filter((ae) => ae.overflows[0] <= 0).sort((ae, oe) => ae.overflows[1] - oe.overflows[1])[0]) == null ? void 0 : Z.placement;
4469
- if (!le)
4468
+ let de = (X = L.filter((le) => le.overflows[0] <= 0).sort((le, ie) => le.overflows[1] - ie.overflows[1])[0]) == null ? void 0 : X.placement;
4469
+ if (!de)
4470
4470
  switch (f) {
4471
4471
  case "bestFit": {
4472
4472
  var G;
4473
- const ae = (G = R.filter((oe) => {
4474
- if (_) {
4475
- const z = Ut(oe.placement);
4473
+ const le = (G = L.filter((ie) => {
4474
+ if (A) {
4475
+ const z = Ut(ie.placement);
4476
4476
  return z === O || // Create a bias to the `y` side axis due to horizontal
4477
4477
  // reading directions favoring greater width.
4478
4478
  z === "y";
4479
4479
  }
4480
4480
  return !0;
4481
- }).map((oe) => [oe.placement, oe.overflows.filter((z) => z > 0).reduce((z, T) => z + T, 0)]).sort((oe, z) => oe[1] - z[1])[0]) == null ? void 0 : G[0];
4482
- ae && (le = ae);
4481
+ }).map((ie) => [ie.placement, ie.overflows.filter((z) => z > 0).reduce((z, T) => z + T, 0)]).sort((ie, z) => ie[1] - z[1])[0]) == null ? void 0 : G[0];
4482
+ le && (de = le);
4483
4483
  break;
4484
4484
  }
4485
4485
  case "initialPlacement":
4486
- le = d;
4486
+ de = d;
4487
4487
  break;
4488
4488
  }
4489
- if (i !== le)
4489
+ if (i !== de)
4490
4490
  return {
4491
4491
  reset: {
4492
- placement: le
4492
+ placement: de
4493
4493
  }
4494
4494
  };
4495
4495
  }
@@ -4623,19 +4623,19 @@ const C2 = function(e) {
4623
4623
  } = o.floating;
4624
4624
  let v, C;
4625
4625
  h === "top" || h === "bottom" ? (v = h, C = p === (await (a.isRTL == null ? void 0 : a.isRTL(d.floating)) ? "start" : "end") ? "left" : "right") : (C = h, v = p === "end" ? "top" : "bottom");
4626
- const O = m - c.top - c.bottom, $ = u - c.left - c.right, w = Vt(m - c[v], O), x = Vt(u - c[C], $), _ = !n.middlewareData.shift;
4627
- let M = w, H = x;
4628
- if ((t = n.middlewareData.shift) != null && t.enabled.x && (H = $), (r = n.middlewareData.shift) != null && r.enabled.y && (M = O), _ && !p) {
4629
- const R = Ye(c.left, 0), L = Ye(c.right, 0), Z = Ye(c.top, 0), G = Ye(c.bottom, 0);
4630
- f ? H = u - 2 * (R !== 0 || L !== 0 ? R + L : Ye(c.left, c.right)) : M = m - 2 * (Z !== 0 || G !== 0 ? Z + G : Ye(c.top, c.bottom));
4626
+ const O = m - c.top - c.bottom, $ = u - c.left - c.right, x = Vt(m - c[v], O), w = Vt(u - c[C], $), A = !n.middlewareData.shift;
4627
+ let M = x, H = w;
4628
+ if ((t = n.middlewareData.shift) != null && t.enabled.x && (H = $), (r = n.middlewareData.shift) != null && r.enabled.y && (M = O), A && !p) {
4629
+ const L = Ye(c.left, 0), F = Ye(c.right, 0), X = Ye(c.top, 0), G = Ye(c.bottom, 0);
4630
+ f ? H = u - 2 * (L !== 0 || F !== 0 ? L + F : Ye(c.left, c.right)) : M = m - 2 * (X !== 0 || G !== 0 ? X + G : Ye(c.top, c.bottom));
4631
4631
  }
4632
4632
  await l({
4633
4633
  ...n,
4634
4634
  availableWidth: H,
4635
4635
  availableHeight: M
4636
4636
  });
4637
- const A = await a.getDimensions(d.floating);
4638
- return u !== A.width || m !== A.height ? {
4637
+ const _ = await a.getDimensions(d.floating);
4638
+ return u !== _.width || m !== _.height ? {
4639
4639
  reset: {
4640
4640
  rects: !0
4641
4641
  }
@@ -4693,8 +4693,8 @@ function Ht(e, n, t, r) {
4693
4693
  const p = it(o), f = r && Xe(r) ? it(r) : r;
4694
4694
  let u = p, m = ii(u);
4695
4695
  for (; m && r && f !== u; ) {
4696
- const v = Zt(m), C = m.getBoundingClientRect(), O = ft(m), $ = C.left + (m.clientLeft + parseFloat(O.paddingLeft)) * v.x, w = C.top + (m.clientTop + parseFloat(O.paddingTop)) * v.y;
4697
- l *= v.x, s *= v.y, c *= v.x, h *= v.y, l += $, s += w, u = it(m), m = ii(u);
4696
+ const v = Zt(m), C = m.getBoundingClientRect(), O = ft(m), $ = C.left + (m.clientLeft + parseFloat(O.paddingLeft)) * v.x, x = C.top + (m.clientTop + parseFloat(O.paddingTop)) * v.y;
4697
+ l *= v.x, s *= v.y, c *= v.x, h *= v.y, l += $, s += x, u = it(m), m = ii(u);
4698
4698
  }
4699
4699
  }
4700
4700
  return Jn({
@@ -4948,26 +4948,26 @@ function B2(e, n) {
4948
4948
  rootMargin: -u + "px " + -m + "px " + -v + "px " + -C + "px",
4949
4949
  threshold: Ye(0, Vt(1, l)) || 1
4950
4950
  };
4951
- let w = !0;
4952
- function x(_) {
4953
- const M = _[0].intersectionRatio;
4951
+ let x = !0;
4952
+ function w(A) {
4953
+ const M = A[0].intersectionRatio;
4954
4954
  if (M !== l) {
4955
- if (!w)
4955
+ if (!x)
4956
4956
  return a();
4957
4957
  M ? a(!1, M) : r = setTimeout(() => {
4958
4958
  a(!1, 1e-7);
4959
4959
  }, 1e3);
4960
4960
  }
4961
- M === 1 && !Fl(s, e.getBoundingClientRect()) && a(), w = !1;
4961
+ M === 1 && !Fl(s, e.getBoundingClientRect()) && a(), x = !1;
4962
4962
  }
4963
4963
  try {
4964
- t = new IntersectionObserver(x, {
4964
+ t = new IntersectionObserver(w, {
4965
4965
  ...$,
4966
4966
  // Handle <iframe>s
4967
4967
  root: i.ownerDocument
4968
4968
  });
4969
4969
  } catch {
4970
- t = new IntersectionObserver(x, $);
4970
+ t = new IntersectionObserver(w, $);
4971
4971
  }
4972
4972
  t.observe(e);
4973
4973
  }
@@ -5089,69 +5089,69 @@ function K2(e) {
5089
5089
  isPositioned: !1
5090
5090
  }), [p, f] = ue.useState(r);
5091
5091
  Qn(p, r) || f(r);
5092
- const [u, m] = ue.useState(null), [v, C] = ue.useState(null), O = ue.useCallback((oe) => {
5093
- oe !== _.current && (_.current = oe, m(oe));
5094
- }, []), $ = ue.useCallback((oe) => {
5095
- oe !== M.current && (M.current = oe, C(oe));
5096
- }, []), w = o || u, x = a || v, _ = ue.useRef(null), M = ue.useRef(null), H = ue.useRef(c), A = l != null, R = Ar(l), L = Ar(i), Z = Ar(s), G = ue.useCallback(() => {
5097
- if (!_.current || !M.current)
5092
+ const [u, m] = ue.useState(null), [v, C] = ue.useState(null), O = ue.useCallback((ie) => {
5093
+ ie !== A.current && (A.current = ie, m(ie));
5094
+ }, []), $ = ue.useCallback((ie) => {
5095
+ ie !== M.current && (M.current = ie, C(ie));
5096
+ }, []), x = o || u, w = a || v, A = ue.useRef(null), M = ue.useRef(null), H = ue.useRef(c), _ = l != null, L = Ar(l), F = Ar(i), X = Ar(s), G = ue.useCallback(() => {
5097
+ if (!A.current || !M.current)
5098
5098
  return;
5099
- const oe = {
5099
+ const ie = {
5100
5100
  placement: n,
5101
5101
  strategy: t,
5102
5102
  middleware: p
5103
5103
  };
5104
- L.current && (oe.platform = L.current), z2(_.current, M.current, oe).then((z) => {
5104
+ F.current && (ie.platform = F.current), z2(A.current, M.current, ie).then((z) => {
5105
5105
  const T = {
5106
5106
  ...z,
5107
5107
  // The floating element's position may be recomputed while it's closed
5108
5108
  // but still mounted (such as when transitioning out). To ensure
5109
5109
  // `isPositioned` will be `false` initially on the next open, avoid
5110
5110
  // setting it to `true` when `open === false` (must be specified).
5111
- isPositioned: Z.current !== !1
5111
+ isPositioned: X.current !== !1
5112
5112
  };
5113
- B.current && !Qn(H.current, T) && (H.current = T, Kn.flushSync(() => {
5113
+ W.current && !Qn(H.current, T) && (H.current = T, Kn.flushSync(() => {
5114
5114
  h(T);
5115
5115
  }));
5116
5116
  });
5117
- }, [p, n, t, L, Z]);
5117
+ }, [p, n, t, F, X]);
5118
5118
  Hn(() => {
5119
- s === !1 && H.current.isPositioned && (H.current.isPositioned = !1, h((oe) => ({
5120
- ...oe,
5119
+ s === !1 && H.current.isPositioned && (H.current.isPositioned = !1, h((ie) => ({
5120
+ ...ie,
5121
5121
  isPositioned: !1
5122
5122
  })));
5123
5123
  }, [s]);
5124
- const B = ue.useRef(!1);
5125
- Hn(() => (B.current = !0, () => {
5126
- B.current = !1;
5124
+ const W = ue.useRef(!1);
5125
+ Hn(() => (W.current = !0, () => {
5126
+ W.current = !1;
5127
5127
  }), []), Hn(() => {
5128
- if (w && (_.current = w), x && (M.current = x), w && x) {
5129
- if (R.current)
5130
- return R.current(w, x, G);
5128
+ if (x && (A.current = x), w && (M.current = w), x && w) {
5129
+ if (L.current)
5130
+ return L.current(x, w, G);
5131
5131
  G();
5132
5132
  }
5133
- }, [w, x, G, R, A]);
5134
- const se = ue.useMemo(() => ({
5135
- reference: _,
5133
+ }, [x, w, G, L, _]);
5134
+ const ae = ue.useMemo(() => ({
5135
+ reference: A,
5136
5136
  floating: M,
5137
5137
  setReference: O,
5138
5138
  setFloating: $
5139
- }), [O, $]), le = ue.useMemo(() => ({
5140
- reference: w,
5141
- floating: x
5142
- }), [w, x]), ae = ue.useMemo(() => {
5143
- const oe = {
5139
+ }), [O, $]), de = ue.useMemo(() => ({
5140
+ reference: x,
5141
+ floating: w
5142
+ }), [x, w]), le = ue.useMemo(() => {
5143
+ const ie = {
5144
5144
  position: t,
5145
5145
  left: 0,
5146
5146
  top: 0
5147
5147
  };
5148
- if (!le.floating)
5149
- return oe;
5150
- const z = ua(le.floating, c.x), T = ua(le.floating, c.y);
5148
+ if (!de.floating)
5149
+ return ie;
5150
+ const z = ua(de.floating, c.x), T = ua(de.floating, c.y);
5151
5151
  return d ? {
5152
- ...oe,
5152
+ ...ie,
5153
5153
  transform: "translate(" + z + "px, " + T + "px)",
5154
- ...kl(le.floating) >= 1.5 && {
5154
+ ...kl(de.floating) >= 1.5 && {
5155
5155
  willChange: "transform"
5156
5156
  }
5157
5157
  } : {
@@ -5159,14 +5159,14 @@ function K2(e) {
5159
5159
  left: z,
5160
5160
  top: T
5161
5161
  };
5162
- }, [t, d, le.floating, c.x, c.y]);
5162
+ }, [t, d, de.floating, c.x, c.y]);
5163
5163
  return ue.useMemo(() => ({
5164
5164
  ...c,
5165
5165
  update: G,
5166
- refs: se,
5167
- elements: le,
5168
- floatingStyles: ae
5169
- }), [c, G, se, le, ae]);
5166
+ refs: ae,
5167
+ elements: de,
5168
+ floatingStyles: le
5169
+ }), [c, G, ae, de, le]);
5170
5170
  }
5171
5171
  const Ml = (e, n) => ({
5172
5172
  ...V2(e),
@@ -5310,11 +5310,11 @@ function pf(e) {
5310
5310
  }
5311
5311
  }
5312
5312
  }), u = ue.useCallback(($) => {
5313
- const w = Xe($) ? {
5313
+ const x = Xe($) ? {
5314
5314
  getBoundingClientRect: () => $.getBoundingClientRect(),
5315
5315
  contextElement: $
5316
5316
  } : $;
5317
- l(w), f.refs.setReference(w);
5317
+ l(x), f.refs.setReference(x);
5318
5318
  }, [f.refs]), m = ue.useCallback(($) => {
5319
5319
  (Xe($) || $ === null) && (h.current = $, a($)), (Xe(f.refs.reference.current) || f.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
5320
5320
  // `null` to support `positionReference` + an unstable `reference`
@@ -5337,7 +5337,7 @@ function pf(e) {
5337
5337
  }), [f, v, C, n, r]);
5338
5338
  return ai(() => {
5339
5339
  r.dataRef.current.floatingContext = O;
5340
- const $ = p?.nodesRef.current.find((w) => w.id === n);
5340
+ const $ = p?.nodesRef.current.find((x) => x.id === n);
5341
5341
  $ && ($.context = O);
5342
5342
  }), ue.useMemo(() => ({
5343
5343
  ...f,
@@ -5442,13 +5442,13 @@ const hf = (e) => ({
5442
5442
  const $ = {
5443
5443
  ...n,
5444
5444
  ...await Ml(-f.offsetTop - p.clientTop - h.reference.height / 2 - f.offsetHeight / 2 - o).fn(n)
5445
- }, w = await _r(ha($, u.scrollHeight + m + p.clientTop), c), x = await _r($, {
5445
+ }, x = await _r(ha($, u.scrollHeight + m + p.clientTop), c), w = await _r($, {
5446
5446
  ...c,
5447
5447
  elementContext: "reference"
5448
- }), _ = Ye(0, w.top), M = $.y + _, R = (u.scrollHeight > u.clientHeight ? (L) => L : yn)(Ye(0, u.scrollHeight + (v && O || C ? m * 2 : 0) - _ - Ye(0, w.bottom)));
5449
- if (u.style.maxHeight = R + "px", u.scrollTop = _, i) {
5450
- const L = u.offsetHeight < f.offsetHeight * Vt(d, t.current.length) - 1 || x.top >= -l || x.bottom >= -l;
5451
- Kn.flushSync(() => i(L));
5448
+ }), A = Ye(0, x.top), M = $.y + A, L = (u.scrollHeight > u.clientHeight ? (F) => F : yn)(Ye(0, u.scrollHeight + (v && O || C ? m * 2 : 0) - A - Ye(0, x.bottom)));
5449
+ if (u.style.maxHeight = L + "px", u.scrollTop = A, i) {
5450
+ const F = u.offsetHeight < f.offsetHeight * Vt(d, t.current.length) - 1 || w.top >= -l || w.bottom >= -l;
5451
+ Kn.flushSync(() => i(F));
5452
5452
  }
5453
5453
  return r && (r.current = await _r(ha({
5454
5454
  ...$,
@@ -5473,9 +5473,9 @@ function vf(e, n) {
5473
5473
  function f(m) {
5474
5474
  if (m.ctrlKey || !u || o.current == null)
5475
5475
  return;
5476
- const v = m.deltaY, C = o.current.top >= -0.5, O = o.current.bottom >= -0.5, $ = u.scrollHeight - u.clientHeight, w = v < 0 ? -1 : 1, x = v < 0 ? "max" : "min";
5476
+ const v = m.deltaY, C = o.current.top >= -0.5, O = o.current.bottom >= -0.5, $ = u.scrollHeight - u.clientHeight, x = v < 0 ? -1 : 1, w = v < 0 ? "max" : "min";
5477
5477
  u.scrollHeight <= u.clientHeight || (!C && v > 0 || !O && v < 0 ? (m.preventDefault(), Kn.flushSync(() => {
5478
- l((_) => _ + Math[x](v, $ * w));
5478
+ l((A) => A + Math[w](v, $ * x));
5479
5479
  })) : /firefox/i.test(c2()) && (u.scrollTop += v));
5480
5480
  }
5481
5481
  const u = a?.current || r.floating;
@@ -5554,32 +5554,32 @@ function Ul({ children: e, enabled: n = !0 }) {
5554
5554
  Ne(() => {
5555
5555
  s && o(0);
5556
5556
  }, [s]);
5557
- let { refs: C, floatingStyles: O, context: $ } = pf({ open: s, placement: m === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${m}` : `${m}-${v}`, strategy: "absolute", transform: !1, middleware: [Ml({ mainAxis: m === "selection" ? 0 : h, crossAxis: p }), q2({ padding: f }), m !== "selection" && Y2({ padding: f }), m === "selection" && u ? hf({ ...u, padding: f, overflowRef: a, offset: i, minItemsVisible: va, referenceOverflowThreshold: f, onFallbackChange(L) {
5558
- var Z, G;
5559
- if (!L) return;
5560
- let B = $.elements.floating;
5561
- if (!B) return;
5562
- let se = parseFloat(getComputedStyle(B).scrollPaddingBottom) || 0, le = Math.min(va, B.childElementCount), ae = 0, oe = 0;
5563
- for (let z of (G = (Z = $.elements.floating) == null ? void 0 : Z.childNodes) != null ? G : []) if (z instanceof HTMLElement) {
5564
- let T = z.offsetTop, D = T + z.clientHeight + se, X = B.scrollTop, P = X + B.clientHeight;
5565
- if (T >= X && D <= P) le--;
5557
+ let { refs: C, floatingStyles: O, context: $ } = pf({ open: s, placement: m === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${m}` : `${m}-${v}`, strategy: "absolute", transform: !1, middleware: [Ml({ mainAxis: m === "selection" ? 0 : h, crossAxis: p }), q2({ padding: f }), m !== "selection" && Y2({ padding: f }), m === "selection" && u ? hf({ ...u, padding: f, overflowRef: a, offset: i, minItemsVisible: va, referenceOverflowThreshold: f, onFallbackChange(F) {
5558
+ var X, G;
5559
+ if (!F) return;
5560
+ let W = $.elements.floating;
5561
+ if (!W) return;
5562
+ let ae = parseFloat(getComputedStyle(W).scrollPaddingBottom) || 0, de = Math.min(va, W.childElementCount), le = 0, ie = 0;
5563
+ for (let z of (G = (X = $.elements.floating) == null ? void 0 : X.childNodes) != null ? G : []) if (z instanceof HTMLElement) {
5564
+ let T = z.offsetTop, D = T + z.clientHeight + ae, Z = W.scrollTop, P = Z + W.clientHeight;
5565
+ if (T >= Z && D <= P) de--;
5566
5566
  else {
5567
- oe = Math.max(0, Math.min(D, P) - Math.max(T, X)), ae = z.clientHeight;
5567
+ ie = Math.max(0, Math.min(D, P) - Math.max(T, Z)), le = z.clientHeight;
5568
5568
  break;
5569
5569
  }
5570
5570
  }
5571
- le >= 1 && o((z) => {
5572
- let T = ae * le - oe + se;
5571
+ de >= 1 && o((z) => {
5572
+ let T = le * de - ie + ae;
5573
5573
  return z >= T ? z : T;
5574
5574
  });
5575
- } }) : null, X2({ padding: f, apply({ availableWidth: L, availableHeight: Z, elements: G }) {
5576
- Object.assign(G.floating.style, { overflow: "auto", maxWidth: `${L}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${Z}px)` });
5577
- } })].filter(Boolean), whileElementsMounted: W2 }), [w = m, x = v] = $.placement.split("-");
5578
- m === "selection" && (w = "selection");
5579
- let _ = Se(() => ({ anchor: [w, x].filter(Boolean).join(" ") }), [w, x]), M = vf($, { overflowRef: a, onChange: o }), { getReferenceProps: H, getFloatingProps: A } = mf([M]), R = re((L) => {
5580
- l(L), C.setFloating(L);
5575
+ } }) : null, X2({ padding: f, apply({ availableWidth: F, availableHeight: X, elements: G }) {
5576
+ Object.assign(G.floating.style, { overflow: "auto", maxWidth: `${F}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${X}px)` });
5577
+ } })].filter(Boolean), whileElementsMounted: W2 }), [x = m, w = v] = $.placement.split("-");
5578
+ m === "selection" && (x = "selection");
5579
+ let A = Se(() => ({ anchor: [x, w].filter(Boolean).join(" ") }), [x, w]), M = vf($, { overflowRef: a, onChange: o }), { getReferenceProps: H, getFloatingProps: _ } = mf([M]), L = re((F) => {
5580
+ l(F), C.setFloating(F);
5581
5581
  });
5582
- return ue.createElement(qi.Provider, { value: r }, ue.createElement(ln.Provider, { value: { setFloating: R, setReference: C.setReference, styles: O, getReferenceProps: H, getFloatingProps: A, slot: _ } }, e));
5582
+ return ue.createElement(qi.Provider, { value: r }, ue.createElement(ln.Provider, { value: { setFloating: L, setReference: C.setReference, styles: O, getReferenceProps: H, getFloatingProps: _, slot: A } }, e));
5583
5583
  }
5584
5584
  function $f(e) {
5585
5585
  Ne(() => {
@@ -5900,8 +5900,8 @@ function Wf(e, n) {
5900
5900
  let Vf = Qe;
5901
5901
  function Uf(e, n) {
5902
5902
  var t, r;
5903
- let i = lr(), { value: o, defaultValue: a, onChange: d, form: l, name: s, by: c, disabled: h = i || !1, onClose: p, __demoMode: f = !1, multiple: u = !1, immediate: m = !1, virtual: v = null, nullable: C, ...O } = e, $ = Xd(a), [w = u ? [] : void 0, x] = Yd(o, d, $), [_, M] = Ni(Wf, { dataRef: _d(), comboboxState: f ? 0 : 1, isTyping: !1, options: [], virtual: v ? { options: v.options, disabled: (t = v.disabled) != null ? t : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: f }), H = K(!1), A = K({ static: !1, hold: !1 }), R = ul(c), L = re((q) => v ? c === null ? v.options.indexOf(q) : v.options.findIndex((I) => R(I, q)) : _.options.findIndex((I) => R(I.dataRef.current.value, q))), Z = Oe((q) => Ke(B.mode, { 1: () => w.some((I) => R(I, q)), 0: () => R(w, q) }), [w]), G = re((q) => _.activeOptionIndex === L(q)), B = Se(() => ({ ..._, immediate: m, optionsPropsRef: A, value: w, defaultValue: $, disabled: h, mode: u ? 1 : 0, virtual: v ? _.virtual : null, get activeOptionIndex() {
5904
- if (H.current && _.activeOptionIndex === null && (v ? v.options.length > 0 : _.options.length > 0)) {
5903
+ let i = lr(), { value: o, defaultValue: a, onChange: d, form: l, name: s, by: c, disabled: h = i || !1, onClose: p, __demoMode: f = !1, multiple: u = !1, immediate: m = !1, virtual: v = null, nullable: C, ...O } = e, $ = Xd(a), [x = u ? [] : void 0, w] = Yd(o, d, $), [A, M] = Ni(Wf, { dataRef: _d(), comboboxState: f ? 0 : 1, isTyping: !1, options: [], virtual: v ? { options: v.options, disabled: (t = v.disabled) != null ? t : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: f }), H = K(!1), _ = K({ static: !1, hold: !1 }), L = ul(c), F = re((q) => v ? c === null ? v.options.indexOf(q) : v.options.findIndex((I) => L(I, q)) : A.options.findIndex((I) => L(I.dataRef.current.value, q))), X = Oe((q) => Ke(W.mode, { 1: () => x.some((I) => L(I, q)), 0: () => L(x, q) }), [x]), G = re((q) => A.activeOptionIndex === F(q)), W = Se(() => ({ ...A, immediate: m, optionsPropsRef: _, value: x, defaultValue: $, disabled: h, mode: u ? 1 : 0, virtual: v ? A.virtual : null, get activeOptionIndex() {
5904
+ if (H.current && A.activeOptionIndex === null && (v ? v.options.length > 0 : A.options.length > 0)) {
5905
5905
  if (v) {
5906
5906
  let I = v.options.findIndex((pe) => {
5907
5907
  var ye, Pe;
@@ -5909,44 +5909,44 @@ function Uf(e, n) {
5909
5909
  });
5910
5910
  if (I !== -1) return I;
5911
5911
  }
5912
- let q = _.options.findIndex((I) => !I.dataRef.current.disabled);
5912
+ let q = A.options.findIndex((I) => !I.dataRef.current.disabled);
5913
5913
  if (q !== -1) return q;
5914
5914
  }
5915
- return _.activeOptionIndex;
5916
- }, calculateIndex: L, compare: R, isSelected: Z, isActive: G }), [w, $, h, u, f, _, v]);
5915
+ return A.activeOptionIndex;
5916
+ }, calculateIndex: F, compare: L, isSelected: X, isActive: G }), [x, $, h, u, f, A, v]);
5917
5917
  Ne(() => {
5918
5918
  var q;
5919
5919
  v && M({ type: 7, options: v.options, disabled: (q = v.disabled) != null ? q : null });
5920
5920
  }, [v, v?.options, v?.disabled]), Ne(() => {
5921
- _.dataRef.current = B;
5922
- }, [B]);
5923
- let se = B.comboboxState === 0;
5924
- bl(se, [B.buttonElement, B.inputElement, B.optionsElement], () => ne.closeCombobox());
5925
- let le = Se(() => {
5921
+ A.dataRef.current = W;
5922
+ }, [W]);
5923
+ let ae = W.comboboxState === 0;
5924
+ bl(ae, [W.buttonElement, W.inputElement, W.optionsElement], () => ne.closeCombobox());
5925
+ let de = Se(() => {
5926
5926
  var q, I, pe;
5927
- return { open: B.comboboxState === 0, disabled: h, activeIndex: B.activeOptionIndex, activeOption: B.activeOptionIndex === null ? null : B.virtual ? B.virtual.options[(q = B.activeOptionIndex) != null ? q : 0] : (pe = (I = B.options[B.activeOptionIndex]) == null ? void 0 : I.dataRef.current.value) != null ? pe : null, value: w };
5928
- }, [B, h, w]), ae = re(() => {
5929
- if (B.activeOptionIndex !== null) {
5930
- if (ne.setIsTyping(!1), B.virtual) P(B.virtual.options[B.activeOptionIndex]);
5927
+ return { open: W.comboboxState === 0, disabled: h, activeIndex: W.activeOptionIndex, activeOption: W.activeOptionIndex === null ? null : W.virtual ? W.virtual.options[(q = W.activeOptionIndex) != null ? q : 0] : (pe = (I = W.options[W.activeOptionIndex]) == null ? void 0 : I.dataRef.current.value) != null ? pe : null, value: x };
5928
+ }, [W, h, x]), le = re(() => {
5929
+ if (W.activeOptionIndex !== null) {
5930
+ if (ne.setIsTyping(!1), W.virtual) P(W.virtual.options[W.activeOptionIndex]);
5931
5931
  else {
5932
- let { dataRef: q } = B.options[B.activeOptionIndex];
5932
+ let { dataRef: q } = W.options[W.activeOptionIndex];
5933
5933
  P(q.current.value);
5934
5934
  }
5935
- ne.goToOption(xe.Specific, B.activeOptionIndex);
5935
+ ne.goToOption(xe.Specific, W.activeOptionIndex);
5936
5936
  }
5937
- }), oe = re(() => {
5937
+ }), ie = re(() => {
5938
5938
  M({ type: 0 }), H.current = !0;
5939
5939
  }), z = re(() => {
5940
5940
  M({ type: 1 }), H.current = !1, p?.();
5941
5941
  }), T = re((q) => {
5942
5942
  M({ type: 3, isTyping: q });
5943
- }), D = re((q, I, pe) => (H.current = !1, q === xe.Specific ? M({ type: 2, focus: xe.Specific, idx: I, trigger: pe }) : M({ type: 2, focus: q, trigger: pe }))), X = re((q, I) => (M({ type: 4, payload: { id: q, dataRef: I } }), () => {
5944
- B.isActive(I.current.value) && (H.current = !0), M({ type: 5, id: q });
5945
- })), P = re((q) => Ke(B.mode, { 0() {
5946
- return x?.(q);
5943
+ }), D = re((q, I, pe) => (H.current = !1, q === xe.Specific ? M({ type: 2, focus: xe.Specific, idx: I, trigger: pe }) : M({ type: 2, focus: q, trigger: pe }))), Z = re((q, I) => (M({ type: 4, payload: { id: q, dataRef: I } }), () => {
5944
+ W.isActive(I.current.value) && (H.current = !0), M({ type: 5, id: q });
5945
+ })), P = re((q) => Ke(W.mode, { 0() {
5946
+ return w?.(q);
5947
5947
  }, 1() {
5948
- let I = B.value.slice(), pe = I.findIndex((ye) => R(ye, q));
5949
- return pe === -1 ? I.push(q) : I.splice(pe, 1), x?.(I);
5948
+ let I = W.value.slice(), pe = I.findIndex((ye) => L(ye, q));
5949
+ return pe === -1 ? I.push(q) : I.splice(pe, 1), w?.(I);
5950
5950
  } })), U = re((q) => {
5951
5951
  M({ type: 6, trigger: q });
5952
5952
  }), k = re((q) => {
@@ -5955,15 +5955,15 @@ function Uf(e, n) {
5955
5955
  M({ type: 9, element: q });
5956
5956
  }), Y = re((q) => {
5957
5957
  M({ type: 10, element: q });
5958
- }), ne = Se(() => ({ onChange: P, registerOption: X, goToOption: D, setIsTyping: T, closeCombobox: z, openCombobox: oe, setActivationTrigger: U, selectActiveOption: ae, setInputElement: k, setButtonElement: ee, setOptionsElement: Y }), []), [fe, ge] = dl(), Te = n === null ? {} : { ref: n }, E = Oe(() => {
5959
- if ($ !== void 0) return x?.($);
5960
- }, [x, $]), J = He();
5961
- return j.createElement(ge, { value: fe, props: { htmlFor: (r = B.inputElement) == null ? void 0 : r.id }, slot: { open: B.comboboxState === 0, disabled: h } }, j.createElement(Ul, null, j.createElement(Qi.Provider, { value: ne }, j.createElement(xn.Provider, { value: B }, j.createElement(Xi, { value: Ke(B.comboboxState, { 0: Je.Open, 1: Je.Closed }) }, s != null && j.createElement(tl, { disabled: h, data: w != null ? { [s]: w } : {}, form: l, onReset: E }), J({ ourProps: Te, theirProps: O, slot: le, defaultTag: Vf, name: "Combobox" }))))));
5958
+ }), ne = Se(() => ({ onChange: P, registerOption: Z, goToOption: D, setIsTyping: T, closeCombobox: z, openCombobox: ie, setActivationTrigger: U, selectActiveOption: le, setInputElement: k, setButtonElement: ee, setOptionsElement: Y }), []), [fe, ge] = dl(), Te = n === null ? {} : { ref: n }, E = Oe(() => {
5959
+ if ($ !== void 0) return w?.($);
5960
+ }, [w, $]), J = He();
5961
+ return j.createElement(ge, { value: fe, props: { htmlFor: (r = W.inputElement) == null ? void 0 : r.id }, slot: { open: W.comboboxState === 0, disabled: h } }, j.createElement(Ul, null, j.createElement(Qi.Provider, { value: ne }, j.createElement(xn.Provider, { value: W }, j.createElement(Xi, { value: Ke(W.comboboxState, { 0: Je.Open, 1: Je.Closed }) }, s != null && j.createElement(tl, { disabled: h, data: x != null ? { [s]: x } : {}, form: l, onReset: E }), J({ ourProps: Te, theirProps: O, slot: de, defaultTag: Vf, name: "Combobox" }))))));
5962
5962
  }
5963
5963
  let Hf = "input";
5964
5964
  function Gf(e, n) {
5965
5965
  var t, r, i, o, a;
5966
- let d = sn("Combobox.Input"), l = An("Combobox.Input"), s = bt(), c = Li(), { id: h = c || `headlessui-combobox-input-${s}`, onChange: p, displayValue: f, disabled: u = d.disabled || !1, autoFocus: m = !1, type: v = "text", ...C } = e, O = K(null), $ = Ze(O, n, Bl(), l.setInputElement), w = Nn(d.inputElement), x = Ft(), _ = re(() => {
5966
+ let d = sn("Combobox.Input"), l = An("Combobox.Input"), s = bt(), c = Li(), { id: h = c || `headlessui-combobox-input-${s}`, onChange: p, displayValue: f, disabled: u = d.disabled || !1, autoFocus: m = !1, type: v = "text", ...C } = e, O = K(null), $ = Ze(O, n, Bl(), l.setInputElement), x = Nn(d.inputElement), w = Ft(), A = re(() => {
5967
5967
  l.onChange(null), d.optionsElement && (d.optionsElement.scrollTop = 0), l.goToOption(xe.Nothing);
5968
5968
  }), M = Se(() => {
5969
5969
  var P;
@@ -5973,11 +5973,11 @@ function Gf(e, n) {
5973
5973
  if (d.isTyping) return;
5974
5974
  let Y = O.current;
5975
5975
  Y && ((ee === 0 && U === 1 || P !== k) && (Y.value = P), requestAnimationFrame(() => {
5976
- if (d.isTyping || !Y || w?.activeElement !== Y) return;
5976
+ if (d.isTyping || !Y || x?.activeElement !== Y) return;
5977
5977
  let { selectionStart: ne, selectionEnd: fe } = Y;
5978
5978
  Math.abs((fe ?? 0) - (ne ?? 0)) === 0 && ne === 0 && Y.setSelectionRange(Y.value.length, Y.value.length);
5979
5979
  }));
5980
- }, [M, d.comboboxState, w, d.isTyping]), ia(([P], [U]) => {
5980
+ }, [M, d.comboboxState, x, d.isTyping]), ia(([P], [U]) => {
5981
5981
  if (P === 0 && U === 1) {
5982
5982
  if (d.isTyping) return;
5983
5983
  let k = O.current;
@@ -5986,13 +5986,13 @@ function Gf(e, n) {
5986
5986
  k.value = "", k.value = ee, fe !== null ? k.setSelectionRange(Y, ne, fe) : k.setSelectionRange(Y, ne);
5987
5987
  }
5988
5988
  }, [d.comboboxState]);
5989
- let H = K(!1), A = re(() => {
5989
+ let H = K(!1), _ = re(() => {
5990
5990
  H.current = !0;
5991
- }), R = re(() => {
5992
- x.nextFrame(() => {
5991
+ }), L = re(() => {
5992
+ w.nextFrame(() => {
5993
5993
  H.current = !1;
5994
5994
  });
5995
- }), L = re((P) => {
5995
+ }), F = re((P) => {
5996
5996
  switch (l.setIsTyping(!0), P.key) {
5997
5997
  case Ie.Enter:
5998
5998
  if (d.comboboxState !== 0 || H.current) return;
@@ -6006,7 +6006,7 @@ function Gf(e, n) {
6006
6006
  return P.preventDefault(), P.stopPropagation(), Ke(d.comboboxState, { 0: () => l.goToOption(xe.Next), 1: () => l.openCombobox() });
6007
6007
  case Ie.ArrowUp:
6008
6008
  return P.preventDefault(), P.stopPropagation(), Ke(d.comboboxState, { 0: () => l.goToOption(xe.Previous), 1: () => {
6009
- nt(() => l.openCombobox()), d.value || l.goToOption(xe.Last);
6009
+ rt(() => l.openCombobox()), d.value || l.goToOption(xe.Last);
6010
6010
  } });
6011
6011
  case Ie.Home:
6012
6012
  if (P.shiftKey) break;
@@ -6019,26 +6019,26 @@ function Gf(e, n) {
6019
6019
  case Ie.PageDown:
6020
6020
  return P.preventDefault(), P.stopPropagation(), l.goToOption(xe.Last);
6021
6021
  case Ie.Escape:
6022
- return d.comboboxState !== 0 ? void 0 : (P.preventDefault(), d.optionsElement && !d.optionsPropsRef.current.static && P.stopPropagation(), d.mode === 0 && d.value === null && _(), l.closeCombobox());
6022
+ return d.comboboxState !== 0 ? void 0 : (P.preventDefault(), d.optionsElement && !d.optionsPropsRef.current.static && P.stopPropagation(), d.mode === 0 && d.value === null && A(), l.closeCombobox());
6023
6023
  case Ie.Tab:
6024
6024
  if (d.comboboxState !== 0) return;
6025
6025
  d.mode === 0 && d.activationTrigger !== 1 && l.selectActiveOption(), l.closeCombobox();
6026
6026
  break;
6027
6027
  }
6028
- }), Z = re((P) => {
6029
- p?.(P), d.mode === 0 && P.target.value === "" && _(), l.openCombobox();
6028
+ }), X = re((P) => {
6029
+ p?.(P), d.mode === 0 && P.target.value === "" && A(), l.openCombobox();
6030
6030
  }), G = re((P) => {
6031
6031
  var U, k, ee;
6032
6032
  let Y = (U = P.relatedTarget) != null ? U : Mt.find((ne) => ne !== P.currentTarget);
6033
- if (!((k = d.optionsElement) != null && k.contains(Y)) && !((ee = d.buttonElement) != null && ee.contains(Y)) && d.comboboxState === 0) return P.preventDefault(), d.mode === 0 && d.value === null && _(), l.closeCombobox();
6034
- }), B = re((P) => {
6033
+ if (!((k = d.optionsElement) != null && k.contains(Y)) && !((ee = d.buttonElement) != null && ee.contains(Y)) && d.comboboxState === 0) return P.preventDefault(), d.mode === 0 && d.value === null && A(), l.closeCombobox();
6034
+ }), W = re((P) => {
6035
6035
  var U, k, ee;
6036
6036
  let Y = (U = P.relatedTarget) != null ? U : Mt.find((ne) => ne !== P.currentTarget);
6037
- (k = d.buttonElement) != null && k.contains(Y) || (ee = d.optionsElement) != null && ee.contains(Y) || d.disabled || d.immediate && d.comboboxState !== 0 && x.microTask(() => {
6038
- nt(() => l.openCombobox()), l.setActivationTrigger(1);
6037
+ (k = d.buttonElement) != null && k.contains(Y) || (ee = d.optionsElement) != null && ee.contains(Y) || d.disabled || d.immediate && d.comboboxState !== 0 && w.microTask(() => {
6038
+ rt(() => l.openCombobox()), l.setActivationTrigger(1);
6039
6039
  });
6040
- }), se = Tn(), le = ol(), { isFocused: ae, focusProps: oe } = ki({ autoFocus: m }), { isHovered: z, hoverProps: T } = Fi({ isDisabled: u }), D = Se(() => ({ open: d.comboboxState === 0, disabled: u, hover: z, focus: ae, autofocus: m }), [d, z, ae, m, u]), X = Pn({ ref: $, id: h, role: "combobox", type: v, "aria-controls": (t = d.optionsElement) == null ? void 0 : t.id, "aria-expanded": d.comboboxState === 0, "aria-activedescendant": d.activeOptionIndex === null ? void 0 : d.virtual ? (r = d.options.find((P) => !P.dataRef.current.disabled && d.compare(P.dataRef.current.value, d.virtual.options[d.activeOptionIndex]))) == null ? void 0 : r.id : (i = d.options[d.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": se, "aria-describedby": le, "aria-autocomplete": "list", defaultValue: (a = (o = e.defaultValue) != null ? o : d.defaultValue !== void 0 ? f?.(d.defaultValue) : null) != null ? a : d.defaultValue, disabled: u || void 0, autoFocus: m, onCompositionStart: A, onCompositionEnd: R, onKeyDown: L, onChange: Z, onFocus: B, onBlur: G }, oe, T);
6041
- return He()({ ourProps: X, theirProps: C, slot: D, defaultTag: Hf, name: "Combobox.Input" });
6040
+ }), ae = Tn(), de = ol(), { isFocused: le, focusProps: ie } = ki({ autoFocus: m }), { isHovered: z, hoverProps: T } = Fi({ isDisabled: u }), D = Se(() => ({ open: d.comboboxState === 0, disabled: u, hover: z, focus: le, autofocus: m }), [d, z, le, m, u]), Z = Pn({ ref: $, id: h, role: "combobox", type: v, "aria-controls": (t = d.optionsElement) == null ? void 0 : t.id, "aria-expanded": d.comboboxState === 0, "aria-activedescendant": d.activeOptionIndex === null ? void 0 : d.virtual ? (r = d.options.find((P) => !P.dataRef.current.disabled && d.compare(P.dataRef.current.value, d.virtual.options[d.activeOptionIndex]))) == null ? void 0 : r.id : (i = d.options[d.activeOptionIndex]) == null ? void 0 : i.id, "aria-labelledby": ae, "aria-describedby": de, "aria-autocomplete": "list", defaultValue: (a = (o = e.defaultValue) != null ? o : d.defaultValue !== void 0 ? f?.(d.defaultValue) : null) != null ? a : d.defaultValue, disabled: u || void 0, autoFocus: m, onCompositionStart: _, onCompositionEnd: L, onKeyDown: F, onChange: X, onFocus: W, onBlur: G }, ie, T);
6041
+ return He()({ ourProps: Z, theirProps: C, slot: D, defaultTag: Hf, name: "Combobox.Input" });
6042
6042
  }
6043
6043
  let zf = "button";
6044
6044
  function Kf(e, n) {
@@ -6047,90 +6047,90 @@ function Kf(e, n) {
6047
6047
  switch (M.key) {
6048
6048
  case Ie.Space:
6049
6049
  case Ie.Enter:
6050
- M.preventDefault(), M.stopPropagation(), r.comboboxState === 1 && nt(() => i.openCombobox()), h();
6050
+ M.preventDefault(), M.stopPropagation(), r.comboboxState === 1 && rt(() => i.openCombobox()), h();
6051
6051
  return;
6052
6052
  case Ie.ArrowDown:
6053
- M.preventDefault(), M.stopPropagation(), r.comboboxState === 1 && (nt(() => i.openCombobox()), r.value || i.goToOption(xe.First)), h();
6053
+ M.preventDefault(), M.stopPropagation(), r.comboboxState === 1 && (rt(() => i.openCombobox()), r.value || i.goToOption(xe.First)), h();
6054
6054
  return;
6055
6055
  case Ie.ArrowUp:
6056
- M.preventDefault(), M.stopPropagation(), r.comboboxState === 1 && (nt(() => i.openCombobox()), r.value || i.goToOption(xe.Last)), h();
6056
+ M.preventDefault(), M.stopPropagation(), r.comboboxState === 1 && (rt(() => i.openCombobox()), r.value || i.goToOption(xe.Last)), h();
6057
6057
  return;
6058
6058
  case Ie.Escape:
6059
6059
  if (r.comboboxState !== 0) return;
6060
- M.preventDefault(), r.optionsElement && !r.optionsPropsRef.current.static && M.stopPropagation(), nt(() => i.closeCombobox()), h();
6060
+ M.preventDefault(), r.optionsElement && !r.optionsPropsRef.current.static && M.stopPropagation(), rt(() => i.closeCombobox()), h();
6061
6061
  return;
6062
6062
  default:
6063
6063
  return;
6064
6064
  }
6065
6065
  }), f = re((M) => {
6066
6066
  M.preventDefault(), !nl(M.currentTarget) && (M.button === Zi.Left && (r.comboboxState === 0 ? i.closeCombobox() : i.openCombobox()), h());
6067
- }), u = Tn([d]), { isFocusVisible: m, focusProps: v } = ki({ autoFocus: s }), { isHovered: C, hoverProps: O } = Fi({ isDisabled: l }), { pressed: $, pressProps: w } = Kd({ disabled: l }), x = Se(() => ({ open: r.comboboxState === 0, active: $ || r.comboboxState === 0, disabled: l, value: r.value, hover: C, focus: m }), [r, C, m, $, l]), _ = Pn({ ref: o, id: d, type: wl(e, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (t = r.optionsElement) == null ? void 0 : t.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": u, disabled: l || void 0, autoFocus: s, onMouseDown: f, onKeyDown: p }, v, O, w);
6068
- return He()({ ourProps: _, theirProps: c, slot: x, defaultTag: zf, name: "Combobox.Button" });
6067
+ }), u = Tn([d]), { isFocusVisible: m, focusProps: v } = ki({ autoFocus: s }), { isHovered: C, hoverProps: O } = Fi({ isDisabled: l }), { pressed: $, pressProps: x } = Kd({ disabled: l }), w = Se(() => ({ open: r.comboboxState === 0, active: $ || r.comboboxState === 0, disabled: l, value: r.value, hover: C, focus: m }), [r, C, m, $, l]), A = Pn({ ref: o, id: d, type: wl(e, r.buttonElement), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": (t = r.optionsElement) == null ? void 0 : t.id, "aria-expanded": r.comboboxState === 0, "aria-labelledby": u, disabled: l || void 0, autoFocus: s, onMouseDown: f, onKeyDown: p }, v, O, x);
6068
+ return He()({ ourProps: A, theirProps: c, slot: w, defaultTag: zf, name: "Combobox.Button" });
6069
6069
  }
6070
6070
  let qf = "div", Yf = en.RenderStrategy | en.Static;
6071
6071
  function Xf(e, n) {
6072
6072
  var t, r, i;
6073
6073
  let o = bt(), { id: a = `headlessui-combobox-options-${o}`, hold: d = !1, anchor: l, portal: s = !1, modal: c = !0, transition: h = !1, ...p } = e, f = sn("Combobox.Options"), u = An("Combobox.Options"), m = jl(l);
6074
6074
  m && (s = !0);
6075
- let [v, C] = Vl(m), [O, $] = me(null), w = Wl(), x = Ze(n, m ? v : null, u.setOptionsElement, $), _ = Nn(f.optionsElement), M = mr(), [H, A] = Ui(h, O, M !== null ? (M & Je.Open) === Je.Open : f.comboboxState === 0);
6075
+ let [v, C] = Vl(m), [O, $] = me(null), x = Wl(), w = Ze(n, m ? v : null, u.setOptionsElement, $), A = Nn(f.optionsElement), M = mr(), [H, _] = Ui(h, O, M !== null ? (M & Je.Open) === Je.Open : f.comboboxState === 0);
6076
6076
  ml(H, f.inputElement, u.closeCombobox);
6077
- let R = f.__demoMode ? !1 : c && f.comboboxState === 0;
6078
- xl(R, _);
6079
6077
  let L = f.__demoMode ? !1 : c && f.comboboxState === 0;
6080
- pl(L, { allowed: Oe(() => [f.inputElement, f.buttonElement, f.optionsElement], [f.inputElement, f.buttonElement, f.optionsElement]) }), Ne(() => {
6081
- var X;
6082
- f.optionsPropsRef.current.static = (X = e.static) != null ? X : !1;
6078
+ xl(L, A);
6079
+ let F = f.__demoMode ? !1 : c && f.comboboxState === 0;
6080
+ pl(F, { allowed: Oe(() => [f.inputElement, f.buttonElement, f.optionsElement], [f.inputElement, f.buttonElement, f.optionsElement]) }), Ne(() => {
6081
+ var Z;
6082
+ f.optionsPropsRef.current.static = (Z = e.static) != null ? Z : !1;
6083
6083
  }, [f.optionsPropsRef, e.static]), Ne(() => {
6084
6084
  f.optionsPropsRef.current.hold = d;
6085
- }, [f.optionsPropsRef, d]), l2(f.comboboxState === 0, { container: f.optionsElement, accept(X) {
6086
- return X.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : X.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
6087
- }, walk(X) {
6088
- X.setAttribute("role", "none");
6085
+ }, [f.optionsPropsRef, d]), l2(f.comboboxState === 0, { container: f.optionsElement, accept(Z) {
6086
+ return Z.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : Z.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
6087
+ }, walk(Z) {
6088
+ Z.setAttribute("role", "none");
6089
6089
  } });
6090
- let Z = Tn([(t = f.buttonElement) == null ? void 0 : t.id]), G = Se(() => ({ open: f.comboboxState === 0, option: void 0 }), [f.comboboxState]), B = re(() => {
6090
+ let X = Tn([(t = f.buttonElement) == null ? void 0 : t.id]), G = Se(() => ({ open: f.comboboxState === 0, option: void 0 }), [f.comboboxState]), W = re(() => {
6091
6091
  u.setActivationTrigger(0);
6092
- }), se = re((X) => {
6093
- X.preventDefault(), u.setActivationTrigger(0);
6094
- }), le = Pn(m ? w() : {}, { "aria-labelledby": Z, role: "listbox", "aria-multiselectable": f.mode === 1 ? !0 : void 0, id: a, ref: x, style: { ...p.style, ...C, "--input-width": ti(f.inputElement, !0).width, "--button-width": ti(f.buttonElement, !0).width }, onWheel: f.activationTrigger === 0 ? void 0 : B, onMouseDown: se, ...Vi(A) }), ae = H && f.comboboxState === 1, oe = er(ae, (r = f.virtual) == null ? void 0 : r.options), z = er(ae, f.value), T = re((X) => f.compare(z, X));
6092
+ }), ae = re((Z) => {
6093
+ Z.preventDefault(), u.setActivationTrigger(0);
6094
+ }), de = Pn(m ? x() : {}, { "aria-labelledby": X, role: "listbox", "aria-multiselectable": f.mode === 1 ? !0 : void 0, id: a, ref: w, style: { ...p.style, ...C, "--input-width": ti(f.inputElement, !0).width, "--button-width": ti(f.buttonElement, !0).width }, onWheel: f.activationTrigger === 0 ? void 0 : W, onMouseDown: ae, ...Vi(_) }), le = H && f.comboboxState === 1, ie = er(le, (r = f.virtual) == null ? void 0 : r.options), z = er(le, f.value), T = re((Z) => f.compare(z, Z));
6095
6095
  if (f.virtual) {
6096
- if (oe === void 0) throw new Error("Missing `options` in virtual mode");
6097
- Object.assign(p, { children: j.createElement(xn.Provider, { value: oe !== f.virtual.options ? { ...f, virtual: { ...f.virtual, options: oe } } : f }, j.createElement(Bf, { slot: G }, p.children)) });
6096
+ if (ie === void 0) throw new Error("Missing `options` in virtual mode");
6097
+ Object.assign(p, { children: j.createElement(xn.Provider, { value: ie !== f.virtual.options ? { ...f, virtual: { ...f.virtual, options: ie } } : f }, j.createElement(Bf, { slot: G }, p.children)) });
6098
6098
  }
6099
6099
  let D = He();
6100
- return j.createElement(Kl, { enabled: s ? e.static || H : !1 }, j.createElement(xn.Provider, { value: f.mode === 1 ? f : { ...f, isSelected: T } }, D({ ourProps: le, theirProps: { ...p, children: j.createElement(yf, { freeze: ae }, typeof p.children == "function" ? (i = p.children) == null ? void 0 : i.call(p, G) : p.children) }, slot: G, defaultTag: qf, features: Yf, visible: H, name: "Combobox.Options" })));
6100
+ return j.createElement(Kl, { enabled: s ? e.static || H : !1 }, j.createElement(xn.Provider, { value: f.mode === 1 ? f : { ...f, isSelected: T } }, D({ ourProps: de, theirProps: { ...p, children: j.createElement(yf, { freeze: le }, typeof p.children == "function" ? (i = p.children) == null ? void 0 : i.call(p, G) : p.children) }, slot: G, defaultTag: qf, features: Yf, visible: H, name: "Combobox.Options" })));
6101
6101
  }
6102
6102
  let Zf = "div";
6103
6103
  function Jf(e, n) {
6104
6104
  var t, r, i, o;
6105
- let a = sn("Combobox.Option"), d = An("Combobox.Option"), l = bt(), { id: s = `headlessui-combobox-option-${l}`, value: c, disabled: h = (i = (r = (t = a.virtual) == null ? void 0 : t.disabled) == null ? void 0 : r.call(t, c)) != null ? i : !1, order: p = null, ...f } = e, u = yl(a.inputElement), m = a.virtual ? a.activeOptionIndex === a.calculateIndex(c) : a.activeOptionIndex === null ? !1 : ((o = a.options[a.activeOptionIndex]) == null ? void 0 : o.id) === s, v = a.isSelected(c), C = K(null), O = Ot({ disabled: h, value: c, domRef: C, order: p }), $ = Me(ql), w = Ze(n, C, $ ? $.measureElement : null), x = re(() => {
6105
+ let a = sn("Combobox.Option"), d = An("Combobox.Option"), l = bt(), { id: s = `headlessui-combobox-option-${l}`, value: c, disabled: h = (i = (r = (t = a.virtual) == null ? void 0 : t.disabled) == null ? void 0 : r.call(t, c)) != null ? i : !1, order: p = null, ...f } = e, u = yl(a.inputElement), m = a.virtual ? a.activeOptionIndex === a.calculateIndex(c) : a.activeOptionIndex === null ? !1 : ((o = a.options[a.activeOptionIndex]) == null ? void 0 : o.id) === s, v = a.isSelected(c), C = K(null), O = Ot({ disabled: h, value: c, domRef: C, order: p }), $ = Me(ql), x = Ze(n, C, $ ? $.measureElement : null), w = re(() => {
6106
6106
  d.setIsTyping(!1), d.onChange(c);
6107
6107
  });
6108
6108
  Ne(() => d.registerOption(s, O), [O, s]);
6109
- let _ = K(!(a.virtual || a.__demoMode));
6109
+ let A = K(!(a.virtual || a.__demoMode));
6110
6110
  Ne(() => {
6111
6111
  if (!a.virtual && !a.__demoMode) return ct().requestAnimationFrame(() => {
6112
- _.current = !0;
6112
+ A.current = !0;
6113
6113
  });
6114
6114
  }, [a.virtual, a.__demoMode]), Ne(() => {
6115
- if (_.current && a.comboboxState === 0 && m && a.activationTrigger !== 0) return ct().requestAnimationFrame(() => {
6116
- var se, le;
6117
- (le = (se = C.current) == null ? void 0 : se.scrollIntoView) == null || le.call(se, { block: "nearest" });
6115
+ if (A.current && a.comboboxState === 0 && m && a.activationTrigger !== 0) return ct().requestAnimationFrame(() => {
6116
+ var ae, de;
6117
+ (de = (ae = C.current) == null ? void 0 : ae.scrollIntoView) == null || de.call(ae, { block: "nearest" });
6118
6118
  });
6119
6119
  }, [C, m, a.comboboxState, a.activationTrigger, a.activeOptionIndex]);
6120
- let M = re((se) => {
6121
- se.preventDefault(), se.button === Zi.Left && (h || (x(), $l() || requestAnimationFrame(() => u()), a.mode === 0 && d.closeCombobox()));
6120
+ let M = re((ae) => {
6121
+ ae.preventDefault(), ae.button === Zi.Left && (h || (w(), $l() || requestAnimationFrame(() => u()), a.mode === 0 && d.closeCombobox()));
6122
6122
  }), H = re(() => {
6123
6123
  if (h) return d.goToOption(xe.Nothing);
6124
- let se = a.calculateIndex(c);
6125
- d.goToOption(xe.Specific, se);
6126
- }), A = Cl(), R = re((se) => A.update(se)), L = re((se) => {
6127
- if (!A.wasMoved(se) || h || m) return;
6128
- let le = a.calculateIndex(c);
6129
- d.goToOption(xe.Specific, le, 0);
6130
- }), Z = re((se) => {
6131
- A.wasMoved(se) && (h || m && (a.optionsPropsRef.current.hold || d.goToOption(xe.Nothing)));
6132
- }), G = Se(() => ({ active: m, focus: m, selected: v, disabled: h }), [m, v, h]), B = { id: s, ref: w, role: "option", tabIndex: h === !0 ? void 0 : -1, "aria-disabled": h === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onMouseDown: M, onFocus: H, onPointerEnter: R, onMouseEnter: R, onPointerMove: L, onMouseMove: L, onPointerLeave: Z, onMouseLeave: Z };
6133
- return He()({ ourProps: B, theirProps: f, slot: G, defaultTag: Zf, name: "Combobox.Option" });
6124
+ let ae = a.calculateIndex(c);
6125
+ d.goToOption(xe.Specific, ae);
6126
+ }), _ = Cl(), L = re((ae) => _.update(ae)), F = re((ae) => {
6127
+ if (!_.wasMoved(ae) || h || m) return;
6128
+ let de = a.calculateIndex(c);
6129
+ d.goToOption(xe.Specific, de, 0);
6130
+ }), X = re((ae) => {
6131
+ _.wasMoved(ae) && (h || m && (a.optionsPropsRef.current.hold || d.goToOption(xe.Nothing)));
6132
+ }), G = Se(() => ({ active: m, focus: m, selected: v, disabled: h }), [m, v, h]), W = { id: s, ref: x, role: "option", tabIndex: h === !0 ? void 0 : -1, "aria-disabled": h === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onMouseDown: M, onFocus: H, onPointerEnter: L, onMouseEnter: L, onPointerMove: F, onMouseMove: F, onPointerLeave: X, onMouseLeave: X };
6133
+ return He()({ ourProps: W, theirProps: f, slot: G, defaultTag: Zf, name: "Combobox.Option" });
6134
6134
  }
6135
6135
  let Qf = Ve(Uf), Yl = Ve(Kf), Xl = Ve(Gf), e3 = ll, Zl = Ve(Xf), Jl = Ve(Jf), t3 = Object.assign(Qf, { Input: Xl, Button: Yl, Label: e3, Options: Zl, Option: Jl });
6136
6136
  function n3() {
@@ -6192,41 +6192,41 @@ function es(e, n) {
6192
6192
  let ts = Qe, ns = en.RenderStrategy;
6193
6193
  function a3(e, n) {
6194
6194
  var t, r;
6195
- let { transition: i = !0, beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: l, enter: s, enterFrom: c, enterTo: h, entered: p, leave: f, leaveFrom: u, leaveTo: m, ...v } = e, [C, O] = me(null), $ = K(null), w = Ql(e), x = Ze(...w ? [$, n, O] : n === null ? [] : [n]), _ = (t = v.unmount) == null || t ? Nt.Unmount : Nt.Hidden, { show: M, appear: H, initial: A } = i3(), [R, L] = me(M ? "visible" : "hidden"), Z = o3(), { register: G, unregister: B } = Z;
6195
+ let { transition: i = !0, beforeEnter: o, afterEnter: a, beforeLeave: d, afterLeave: l, enter: s, enterFrom: c, enterTo: h, entered: p, leave: f, leaveFrom: u, leaveTo: m, ...v } = e, [C, O] = me(null), $ = K(null), x = Ql(e), w = Ze(...x ? [$, n, O] : n === null ? [] : [n]), A = (t = v.unmount) == null || t ? Nt.Unmount : Nt.Hidden, { show: M, appear: H, initial: _ } = i3(), [L, F] = me(M ? "visible" : "hidden"), X = o3(), { register: G, unregister: W } = X;
6196
6196
  Ne(() => G($), [G, $]), Ne(() => {
6197
- if (_ === Nt.Hidden && $.current) {
6198
- if (M && R !== "visible") {
6199
- L("visible");
6197
+ if (A === Nt.Hidden && $.current) {
6198
+ if (M && L !== "visible") {
6199
+ F("visible");
6200
6200
  return;
6201
6201
  }
6202
- return Ke(R, { hidden: () => B($), visible: () => G($) });
6202
+ return Ke(L, { hidden: () => W($), visible: () => G($) });
6203
6203
  }
6204
- }, [R, $, G, B, M, _]);
6205
- let se = Ji();
6204
+ }, [L, $, G, W, M, A]);
6205
+ let ae = Ji();
6206
6206
  Ne(() => {
6207
- if (w && se && R === "visible" && $.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
6208
- }, [$, R, se, w]);
6209
- let le = A && !H, ae = H && M && A, oe = K(!1), z = es(() => {
6210
- oe.current || (L("hidden"), B($));
6211
- }, Z), T = re((Y) => {
6212
- oe.current = !0;
6207
+ if (x && ae && L === "visible" && $.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
6208
+ }, [$, L, ae, x]);
6209
+ let de = _ && !H, le = H && M && _, ie = K(!1), z = es(() => {
6210
+ ie.current || (F("hidden"), W($));
6211
+ }, X), T = re((Y) => {
6212
+ ie.current = !0;
6213
6213
  let ne = Y ? "enter" : "leave";
6214
6214
  z.onStart($, ne, (fe) => {
6215
6215
  fe === "enter" ? o?.() : fe === "leave" && d?.();
6216
6216
  });
6217
6217
  }), D = re((Y) => {
6218
6218
  let ne = Y ? "enter" : "leave";
6219
- oe.current = !1, z.onStop($, ne, (fe) => {
6219
+ ie.current = !1, z.onStop($, ne, (fe) => {
6220
6220
  fe === "enter" ? a?.() : fe === "leave" && l?.();
6221
- }), ne === "leave" && !gr(z) && (L("hidden"), B($));
6221
+ }), ne === "leave" && !gr(z) && (F("hidden"), W($));
6222
6222
  });
6223
6223
  be(() => {
6224
- w && i || (T(M), D(M));
6225
- }, [M, w, i]);
6226
- let X = !(!i || !w || !se || le), [, P] = Ui(X, C, M, { start: T, end: D }), U = Tt({ ref: x, className: ((r = ei(v.className, ae && s, ae && c, P.enter && s, P.enter && P.closed && c, P.enter && !P.closed && h, P.leave && f, P.leave && !P.closed && u, P.leave && P.closed && m, !P.transition && M && p)) == null ? void 0 : r.trim()) || void 0, ...Vi(P) }), k = 0;
6227
- R === "visible" && (k |= Je.Open), R === "hidden" && (k |= Je.Closed), P.enter && (k |= Je.Opening), P.leave && (k |= Je.Closing);
6224
+ x && i || (T(M), D(M));
6225
+ }, [M, x, i]);
6226
+ let Z = !(!i || !x || !ae || de), [, P] = Ui(Z, C, M, { start: T, end: D }), U = Tt({ ref: w, className: ((r = ei(v.className, le && s, le && c, P.enter && s, P.enter && P.closed && c, P.enter && !P.closed && h, P.leave && f, P.leave && !P.closed && u, P.leave && P.closed && m, !P.transition && M && p)) == null ? void 0 : r.trim()) || void 0, ...Vi(P) }), k = 0;
6227
+ L === "visible" && (k |= Je.Open), L === "hidden" && (k |= Je.Closed), P.enter && (k |= Je.Opening), P.leave && (k |= Je.Closing);
6228
6228
  let ee = He();
6229
- return j.createElement(vr.Provider, { value: z }, j.createElement(Xi, { value: k }, ee({ ourProps: U, theirProps: v, defaultTag: ts, features: ns, visible: R === "visible", name: "Transition.Child" })));
6229
+ return j.createElement(vr.Provider, { value: z }, j.createElement(Xi, { value: k }, ee({ ourProps: U, theirProps: v, defaultTag: ts, features: ns, visible: L === "visible", name: "Transition.Child" })));
6230
6230
  }
6231
6231
  function d3(e, n) {
6232
6232
  let { show: t, appear: r = !1, unmount: i = !0, ...o } = e, a = K(null), d = Ql(e), l = Ze(...d ? [a, n] : n === null ? [] : [n]);
@@ -6244,13 +6244,13 @@ function d3(e, n) {
6244
6244
  t ? h("visible") : !gr(p) && a.current !== null && h("hidden");
6245
6245
  }, [t, p]);
6246
6246
  let C = { unmount: i }, O = re(() => {
6247
- var x;
6248
- f && u(!1), (x = e.beforeEnter) == null || x.call(e);
6247
+ var w;
6248
+ f && u(!1), (w = e.beforeEnter) == null || w.call(e);
6249
6249
  }), $ = re(() => {
6250
- var x;
6251
- f && u(!1), (x = e.beforeLeave) == null || x.call(e);
6252
- }), w = He();
6253
- return j.createElement(vr.Provider, { value: p }, j.createElement(hr.Provider, { value: v }, w({ ourProps: { ...C, as: Qe, children: j.createElement(rs, { ref: l, ...C, ...o, beforeEnter: O, beforeLeave: $ }) }, theirProps: {}, defaultTag: Qe, features: ns, visible: c === "visible", name: "Transition" })));
6250
+ var w;
6251
+ f && u(!1), (w = e.beforeLeave) == null || w.call(e);
6252
+ }), x = He();
6253
+ return j.createElement(vr.Provider, { value: p }, j.createElement(hr.Provider, { value: v }, x({ ourProps: { ...C, as: Qe, children: j.createElement(rs, { ref: l, ...C, ...o, beforeEnter: O, beforeLeave: $ }) }, theirProps: {}, defaultTag: Qe, features: ns, visible: c === "visible", name: "Transition" })));
6254
6254
  }
6255
6255
  function l3(e, n) {
6256
6256
  let t = Me(hr) !== null, r = mr() !== null;
@@ -6389,67 +6389,67 @@ function y3(e, n) {
6389
6389
  var t;
6390
6390
  let r = lr(), { value: i, defaultValue: o, form: a, name: d, onChange: l, by: s, invalid: c = !1, disabled: h = r || !1, horizontal: p = !1, multiple: f = !1, __demoMode: u = !1, ...m } = e;
6391
6391
  const v = p ? "horizontal" : "vertical";
6392
- let C = Ze(n), O = Xd(o), [$ = f ? [] : void 0, w] = Yd(i, l, O), [x, _] = Ni($3, { dataRef: _d(), listboxState: u ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, optionsVisible: !1, buttonElement: null, optionsElement: null, __demoMode: u }), M = K({ static: !1, hold: !1 }), H = K(/* @__PURE__ */ new Map()), A = ul(s), R = Oe((E) => Ke(L.mode, { 1: () => $.some((J) => A(J, E)), 0: () => A($, E) }), [$]), L = Se(() => ({ ...x, value: $, disabled: h, invalid: c, mode: f ? 1 : 0, orientation: v, compare: A, isSelected: R, optionsPropsRef: M, listRef: H }), [$, h, c, f, x, H]);
6392
+ let C = Ze(n), O = Xd(o), [$ = f ? [] : void 0, x] = Yd(i, l, O), [w, A] = Ni($3, { dataRef: _d(), listboxState: u ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, optionsVisible: !1, buttonElement: null, optionsElement: null, __demoMode: u }), M = K({ static: !1, hold: !1 }), H = K(/* @__PURE__ */ new Map()), _ = ul(s), L = Oe((E) => Ke(F.mode, { 1: () => $.some((J) => _(J, E)), 0: () => _($, E) }), [$]), F = Se(() => ({ ...w, value: $, disabled: h, invalid: c, mode: f ? 1 : 0, orientation: v, compare: _, isSelected: L, optionsPropsRef: M, listRef: H }), [$, h, c, f, w, H]);
6393
6393
  Ne(() => {
6394
- x.dataRef.current = L;
6395
- }, [L]);
6396
- let Z = L.listboxState === 0;
6397
- bl(Z, [L.buttonElement, L.optionsElement], (E, J) => {
6394
+ w.dataRef.current = F;
6395
+ }, [F]);
6396
+ let X = F.listboxState === 0;
6397
+ bl(X, [F.buttonElement, F.optionsElement], (E, J) => {
6398
6398
  var q;
6399
- _({ type: 1 }), vl(J, Bi.Loose) || (E.preventDefault(), (q = L.buttonElement) == null || q.focus());
6399
+ A({ type: 1 }), vl(J, Bi.Loose) || (E.preventDefault(), (q = F.buttonElement) == null || q.focus());
6400
6400
  });
6401
- let G = Se(() => ({ open: L.listboxState === 0, disabled: h, invalid: c, value: $ }), [L, h, $, c]), B = re((E) => {
6402
- let J = L.options.find((q) => q.id === E);
6401
+ let G = Se(() => ({ open: F.listboxState === 0, disabled: h, invalid: c, value: $ }), [F, h, $, c]), W = re((E) => {
6402
+ let J = F.options.find((q) => q.id === E);
6403
6403
  J && D(J.dataRef.current.value);
6404
- }), se = re(() => {
6405
- if (L.activeOptionIndex !== null) {
6406
- let { dataRef: E, id: J } = L.options[L.activeOptionIndex];
6407
- D(E.current.value), _({ type: 2, focus: xe.Specific, id: J });
6408
- }
6409
- }), le = re(() => _({ type: 0 })), ae = re(() => _({ type: 1 })), oe = Ft(), z = re((E, J, q) => {
6410
- oe.dispose(), oe.microTask(() => E === xe.Specific ? _({ type: 2, focus: xe.Specific, id: J, trigger: q }) : _({ type: 2, focus: E, trigger: q }));
6411
- }), T = re((E, J) => (_({ type: 5, id: E, dataRef: J }), () => _({ type: 6, id: E }))), D = re((E) => Ke(L.mode, { 0() {
6412
- return w?.(E);
6404
+ }), ae = re(() => {
6405
+ if (F.activeOptionIndex !== null) {
6406
+ let { dataRef: E, id: J } = F.options[F.activeOptionIndex];
6407
+ D(E.current.value), A({ type: 2, focus: xe.Specific, id: J });
6408
+ }
6409
+ }), de = re(() => A({ type: 0 })), le = re(() => A({ type: 1 })), ie = Ft(), z = re((E, J, q) => {
6410
+ ie.dispose(), ie.microTask(() => E === xe.Specific ? A({ type: 2, focus: xe.Specific, id: J, trigger: q }) : A({ type: 2, focus: E, trigger: q }));
6411
+ }), T = re((E, J) => (A({ type: 5, id: E, dataRef: J }), () => A({ type: 6, id: E }))), D = re((E) => Ke(F.mode, { 0() {
6412
+ return x?.(E);
6413
6413
  }, 1() {
6414
- let J = L.value.slice(), q = J.findIndex((I) => A(I, E));
6415
- return q === -1 ? J.push(E) : J.splice(q, 1), w?.(J);
6416
- } })), X = re((E) => _({ type: 3, value: E })), P = re(() => _({ type: 4 })), U = re((E) => {
6417
- _({ type: 7, element: E });
6414
+ let J = F.value.slice(), q = J.findIndex((I) => _(I, E));
6415
+ return q === -1 ? J.push(E) : J.splice(q, 1), x?.(J);
6416
+ } })), Z = re((E) => A({ type: 3, value: E })), P = re(() => A({ type: 4 })), U = re((E) => {
6417
+ A({ type: 7, element: E });
6418
6418
  }), k = re((E) => {
6419
- _({ type: 8, element: E });
6420
- }), ee = Se(() => ({ onChange: D, registerOption: T, goToOption: z, closeListbox: ae, openListbox: le, selectActiveOption: se, selectOption: B, search: X, clearSearch: P, setButtonElement: U, setOptionsElement: k }), []), [Y, ne] = dl({ inherit: !0 }), fe = { ref: C }, ge = Oe(() => {
6421
- if (O !== void 0) return w?.(O);
6422
- }, [w, O]), Te = He();
6423
- return j.createElement(ne, { value: Y, props: { htmlFor: (t = L.buttonElement) == null ? void 0 : t.id }, slot: { open: L.listboxState === 0, disabled: h } }, j.createElement(Ul, null, j.createElement(eo.Provider, { value: ee }, j.createElement(br.Provider, { value: L }, j.createElement(Xi, { value: Ke(L.listboxState, { 0: Je.Open, 1: Je.Closed }) }, d != null && $ != null && j.createElement(tl, { disabled: h, data: { [d]: $ }, form: a, onReset: ge }), Te({ ourProps: fe, theirProps: m, slot: G, defaultTag: b3, name: "Listbox" }))))));
6419
+ A({ type: 8, element: E });
6420
+ }), ee = Se(() => ({ onChange: D, registerOption: T, goToOption: z, closeListbox: le, openListbox: de, selectActiveOption: ae, selectOption: W, search: Z, clearSearch: P, setButtonElement: U, setOptionsElement: k }), []), [Y, ne] = dl({ inherit: !0 }), fe = { ref: C }, ge = Oe(() => {
6421
+ if (O !== void 0) return x?.(O);
6422
+ }, [x, O]), Te = He();
6423
+ return j.createElement(ne, { value: Y, props: { htmlFor: (t = F.buttonElement) == null ? void 0 : t.id }, slot: { open: F.listboxState === 0, disabled: h } }, j.createElement(Ul, null, j.createElement(eo.Provider, { value: ee }, j.createElement(br.Provider, { value: F }, j.createElement(Xi, { value: Ke(F.listboxState, { 0: Je.Open, 1: Je.Closed }) }, d != null && $ != null && j.createElement(tl, { disabled: h, data: { [d]: $ }, form: a, onReset: ge }), Te({ ourProps: fe, theirProps: m, slot: G, defaultTag: b3, name: "Listbox" }))))));
6424
6424
  }
6425
6425
  let w3 = "button";
6426
6426
  function x3(e, n) {
6427
6427
  var t;
6428
- let r = Rn("Listbox.Button"), i = $r("Listbox.Button"), o = bt(), a = Li(), { id: d = a || `headlessui-listbox-button-${o}`, disabled: l = r.disabled || !1, autoFocus: s = !1, ...c } = e, h = Ze(n, Bl(), i.setButtonElement), p = gf(), f = re((L) => {
6429
- switch (L.key) {
6428
+ let r = Rn("Listbox.Button"), i = $r("Listbox.Button"), o = bt(), a = Li(), { id: d = a || `headlessui-listbox-button-${o}`, disabled: l = r.disabled || !1, autoFocus: s = !1, ...c } = e, h = Ze(n, Bl(), i.setButtonElement), p = gf(), f = re((F) => {
6429
+ switch (F.key) {
6430
6430
  case Ie.Enter:
6431
- s1(L.currentTarget);
6431
+ s1(F.currentTarget);
6432
6432
  break;
6433
6433
  case Ie.Space:
6434
6434
  case Ie.ArrowDown:
6435
- L.preventDefault(), nt(() => i.openListbox()), r.value || i.goToOption(xe.First);
6435
+ F.preventDefault(), rt(() => i.openListbox()), r.value || i.goToOption(xe.First);
6436
6436
  break;
6437
6437
  case Ie.ArrowUp:
6438
- L.preventDefault(), nt(() => i.openListbox()), r.value || i.goToOption(xe.Last);
6438
+ F.preventDefault(), rt(() => i.openListbox()), r.value || i.goToOption(xe.Last);
6439
6439
  break;
6440
6440
  }
6441
- }), u = re((L) => {
6442
- switch (L.key) {
6441
+ }), u = re((F) => {
6442
+ switch (F.key) {
6443
6443
  case Ie.Space:
6444
- L.preventDefault();
6444
+ F.preventDefault();
6445
6445
  break;
6446
6446
  }
6447
- }), m = re((L) => {
6448
- var Z;
6449
- if (nl(L.currentTarget)) return L.preventDefault();
6450
- r.listboxState === 0 ? (nt(() => i.closeListbox()), (Z = r.buttonElement) == null || Z.focus({ preventScroll: !0 })) : (L.preventDefault(), i.openListbox());
6451
- }), v = re((L) => L.preventDefault()), C = Tn([d]), O = ol(), { isFocusVisible: $, focusProps: w } = ki({ autoFocus: s }), { isHovered: x, hoverProps: _ } = Fi({ isDisabled: l }), { pressed: M, pressProps: H } = Kd({ disabled: l }), A = Se(() => ({ open: r.listboxState === 0, active: M || r.listboxState === 0, disabled: l, invalid: r.invalid, value: r.value, hover: x, focus: $, autofocus: s }), [r.listboxState, r.value, l, x, $, M, r.invalid, s]), R = Pn(p(), { ref: h, id: d, type: wl(e, r.buttonElement), "aria-haspopup": "listbox", "aria-controls": (t = r.optionsElement) == null ? void 0 : t.id, "aria-expanded": r.listboxState === 0, "aria-labelledby": C, "aria-describedby": O, disabled: l || void 0, autoFocus: s, onKeyDown: f, onKeyUp: u, onKeyPress: v, onClick: m }, w, _, H);
6452
- return He()({ ourProps: R, theirProps: c, slot: A, defaultTag: w3, name: "Listbox.Button" });
6447
+ }), m = re((F) => {
6448
+ var X;
6449
+ if (nl(F.currentTarget)) return F.preventDefault();
6450
+ r.listboxState === 0 ? (rt(() => i.closeListbox()), (X = r.buttonElement) == null || X.focus({ preventScroll: !0 })) : (F.preventDefault(), i.openListbox());
6451
+ }), v = re((F) => F.preventDefault()), C = Tn([d]), O = ol(), { isFocusVisible: $, focusProps: x } = ki({ autoFocus: s }), { isHovered: w, hoverProps: A } = Fi({ isDisabled: l }), { pressed: M, pressProps: H } = Kd({ disabled: l }), _ = Se(() => ({ open: r.listboxState === 0, active: M || r.listboxState === 0, disabled: l, invalid: r.invalid, value: r.value, hover: w, focus: $, autofocus: s }), [r.listboxState, r.value, l, w, $, M, r.invalid, s]), L = Pn(p(), { ref: h, id: d, type: wl(e, r.buttonElement), "aria-haspopup": "listbox", "aria-controls": (t = r.optionsElement) == null ? void 0 : t.id, "aria-expanded": r.listboxState === 0, "aria-labelledby": C, "aria-describedby": O, disabled: l || void 0, autoFocus: s, onKeyDown: f, onKeyUp: u, onKeyPress: v, onClick: m }, x, A, H);
6452
+ return He()({ ourProps: L, theirProps: c, slot: _, defaultTag: w3, name: "Listbox.Button" });
6453
6453
  }
6454
6454
  let os = We(!1), C3 = "div", E3 = en.RenderStrategy | en.Static;
6455
6455
  function O3(e, n) {
@@ -6458,29 +6458,29 @@ function O3(e, n) {
6458
6458
  h && (d = !0);
6459
6459
  let u = Rn("Listbox.Options"), m = $r("Listbox.Options"), v = Nn(u.optionsElement), C = mr(), [O, $] = Ui(s, p, C !== null ? (C & Je.Open) === Je.Open : u.listboxState === 0);
6460
6460
  ml(O, u.buttonElement, m.closeListbox);
6461
- let w = u.__demoMode ? !1 : l && u.listboxState === 0;
6462
- xl(w, v);
6463
6461
  let x = u.__demoMode ? !1 : l && u.listboxState === 0;
6464
- pl(x, { allowed: Oe(() => [u.buttonElement, u.optionsElement], [u.buttonElement, u.optionsElement]) });
6465
- let _ = u.listboxState !== 0, M = u3(_, u.buttonElement) ? !1 : O, H = O && u.listboxState === 1, A = er(H, u.value), R = re((P) => u.compare(A, P)), L = Se(() => {
6462
+ xl(x, v);
6463
+ let w = u.__demoMode ? !1 : l && u.listboxState === 0;
6464
+ pl(w, { allowed: Oe(() => [u.buttonElement, u.optionsElement], [u.buttonElement, u.optionsElement]) });
6465
+ let A = u.listboxState !== 0, M = u3(A, u.buttonElement) ? !1 : O, H = O && u.listboxState === 1, _ = er(H, u.value), L = re((P) => u.compare(_, P)), F = Se(() => {
6466
6466
  var P;
6467
6467
  if (h == null || !((P = h?.to) != null && P.includes("selection"))) return null;
6468
- let U = u.options.findIndex((k) => R(k.dataRef.current.value));
6468
+ let U = u.options.findIndex((k) => L(k.dataRef.current.value));
6469
6469
  return U === -1 && (U = 0), U;
6470
- }, [h, u.options]), Z = (() => {
6470
+ }, [h, u.options]), X = (() => {
6471
6471
  if (h == null) return;
6472
- if (L === null) return { ...h, inner: void 0 };
6472
+ if (F === null) return { ...h, inner: void 0 };
6473
6473
  let P = Array.from(u.listRef.current.values());
6474
- return { ...h, inner: { listRef: { current: P }, index: L } };
6475
- })(), [G, B] = Vl(Z), se = Wl(), le = Ze(n, h ? G : null, m.setOptionsElement, f), ae = Ft();
6474
+ return { ...h, inner: { listRef: { current: P }, index: F } };
6475
+ })(), [G, W] = Vl(X), ae = Wl(), de = Ze(n, h ? G : null, m.setOptionsElement, f), le = Ft();
6476
6476
  be(() => {
6477
6477
  var P;
6478
6478
  let U = u.optionsElement;
6479
6479
  U && u.listboxState === 0 && U !== ((P = on(U)) == null ? void 0 : P.activeElement) && U?.focus({ preventScroll: !0 });
6480
6480
  }, [u.listboxState, u.optionsElement]);
6481
- let oe = re((P) => {
6481
+ let ie = re((P) => {
6482
6482
  var U, k;
6483
- switch (ae.dispose(), P.key) {
6483
+ switch (le.dispose(), P.key) {
6484
6484
  case Ie.Space:
6485
6485
  if (u.searchQuery !== "") return P.preventDefault(), P.stopPropagation(), m.search(P.key);
6486
6486
  case Ie.Enter:
@@ -6488,7 +6488,7 @@ function O3(e, n) {
6488
6488
  let { dataRef: ee } = u.options[u.activeOptionIndex];
6489
6489
  m.onChange(ee.current.value);
6490
6490
  }
6491
- u.mode === 0 && (nt(() => m.closeListbox()), (U = u.buttonElement) == null || U.focus({ preventScroll: !0 }));
6491
+ u.mode === 0 && (rt(() => m.closeListbox()), (U = u.buttonElement) == null || U.focus({ preventScroll: !0 }));
6492
6492
  break;
6493
6493
  case Ke(u.orientation, { vertical: Ie.ArrowDown, horizontal: Ie.ArrowRight }):
6494
6494
  return P.preventDefault(), P.stopPropagation(), m.goToOption(xe.Next);
@@ -6501,48 +6501,48 @@ function O3(e, n) {
6501
6501
  case Ie.PageDown:
6502
6502
  return P.preventDefault(), P.stopPropagation(), m.goToOption(xe.Last);
6503
6503
  case Ie.Escape:
6504
- P.preventDefault(), P.stopPropagation(), nt(() => m.closeListbox()), (k = u.buttonElement) == null || k.focus({ preventScroll: !0 });
6504
+ P.preventDefault(), P.stopPropagation(), rt(() => m.closeListbox()), (k = u.buttonElement) == null || k.focus({ preventScroll: !0 });
6505
6505
  return;
6506
6506
  case Ie.Tab:
6507
- P.preventDefault(), P.stopPropagation(), nt(() => m.closeListbox()), K1(u.buttonElement, P.shiftKey ? ri.Previous : ri.Next);
6507
+ P.preventDefault(), P.stopPropagation(), rt(() => m.closeListbox()), K1(u.buttonElement, P.shiftKey ? ri.Previous : ri.Next);
6508
6508
  break;
6509
6509
  default:
6510
- P.key.length === 1 && (m.search(P.key), ae.setTimeout(() => m.clearSearch(), 350));
6510
+ P.key.length === 1 && (m.search(P.key), le.setTimeout(() => m.clearSearch(), 350));
6511
6511
  break;
6512
6512
  }
6513
- }), z = (t = u.buttonElement) == null ? void 0 : t.id, T = Se(() => ({ open: u.listboxState === 0 }), [u.listboxState]), D = Pn(h ? se() : {}, { id: o, ref: le, "aria-activedescendant": u.activeOptionIndex === null || (r = u.options[u.activeOptionIndex]) == null ? void 0 : r.id, "aria-multiselectable": u.mode === 1 ? !0 : void 0, "aria-labelledby": z, "aria-orientation": u.orientation, onKeyDown: oe, role: "listbox", tabIndex: u.listboxState === 0 ? 0 : void 0, style: { ...c.style, ...B, "--button-width": ti(u.buttonElement, !0).width }, ...Vi($) }), X = He();
6514
- return j.createElement(Kl, { enabled: d ? e.static || O : !1 }, j.createElement(br.Provider, { value: u.mode === 1 ? u : { ...u, isSelected: R } }, X({ ourProps: D, theirProps: c, slot: T, defaultTag: C3, features: E3, visible: M, name: "Listbox.Options" })));
6513
+ }), z = (t = u.buttonElement) == null ? void 0 : t.id, T = Se(() => ({ open: u.listboxState === 0 }), [u.listboxState]), D = Pn(h ? ae() : {}, { id: o, ref: de, "aria-activedescendant": u.activeOptionIndex === null || (r = u.options[u.activeOptionIndex]) == null ? void 0 : r.id, "aria-multiselectable": u.mode === 1 ? !0 : void 0, "aria-labelledby": z, "aria-orientation": u.orientation, onKeyDown: ie, role: "listbox", tabIndex: u.listboxState === 0 ? 0 : void 0, style: { ...c.style, ...W, "--button-width": ti(u.buttonElement, !0).width }, ...Vi($) }), Z = He();
6514
+ return j.createElement(Kl, { enabled: d ? e.static || O : !1 }, j.createElement(br.Provider, { value: u.mode === 1 ? u : { ...u, isSelected: L } }, Z({ ourProps: D, theirProps: c, slot: T, defaultTag: C3, features: E3, visible: M, name: "Listbox.Options" })));
6515
6515
  }
6516
6516
  let S3 = "div";
6517
6517
  function P3(e, n) {
6518
6518
  let t = bt(), { id: r = `headlessui-listbox-option-${t}`, disabled: i = !1, value: o, ...a } = e, d = Me(os) === !0, l = Rn("Listbox.Option"), s = $r("Listbox.Option"), c = l.activeOptionIndex !== null ? l.options[l.activeOptionIndex].id === r : !1, h = l.isSelected(o), p = K(null), f = f3(p), u = Ot({ disabled: i, value: o, domRef: p, get textValue() {
6519
6519
  return f();
6520
- } }), m = Ze(n, p, (A) => {
6521
- A ? l.listRef.current.set(r, A) : l.listRef.current.delete(r);
6520
+ } }), m = Ze(n, p, (_) => {
6521
+ _ ? l.listRef.current.set(r, _) : l.listRef.current.delete(r);
6522
6522
  });
6523
6523
  Ne(() => {
6524
6524
  if (!l.__demoMode && l.listboxState === 0 && c && l.activationTrigger !== 0) return ct().requestAnimationFrame(() => {
6525
- var A, R;
6526
- (R = (A = p.current) == null ? void 0 : A.scrollIntoView) == null || R.call(A, { block: "nearest" });
6525
+ var _, L;
6526
+ (L = (_ = p.current) == null ? void 0 : _.scrollIntoView) == null || L.call(_, { block: "nearest" });
6527
6527
  });
6528
6528
  }, [p, c, l.__demoMode, l.listboxState, l.activationTrigger, l.activeOptionIndex]), Ne(() => {
6529
6529
  if (!d) return s.registerOption(r, u);
6530
6530
  }, [u, r, d]);
6531
- let v = re((A) => {
6532
- var R;
6533
- if (i) return A.preventDefault();
6534
- s.onChange(o), l.mode === 0 && (nt(() => s.closeListbox()), (R = l.buttonElement) == null || R.focus({ preventScroll: !0 }));
6531
+ let v = re((_) => {
6532
+ var L;
6533
+ if (i) return _.preventDefault();
6534
+ s.onChange(o), l.mode === 0 && (rt(() => s.closeListbox()), (L = l.buttonElement) == null || L.focus({ preventScroll: !0 }));
6535
6535
  }), C = re(() => {
6536
6536
  if (i) return s.goToOption(xe.Nothing);
6537
6537
  s.goToOption(xe.Specific, r);
6538
- }), O = Cl(), $ = re((A) => {
6539
- O.update(A), !i && (c || s.goToOption(xe.Specific, r, 0));
6540
- }), w = re((A) => {
6541
- O.wasMoved(A) && (i || c || s.goToOption(xe.Specific, r, 0));
6542
- }), x = re((A) => {
6543
- O.wasMoved(A) && (i || c && s.goToOption(xe.Nothing));
6544
- }), _ = Se(() => ({ active: c, focus: c, selected: h, disabled: i, selectedOption: h && d }), [c, h, i, d]), M = d ? {} : { id: r, ref: m, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": h, disabled: void 0, onClick: v, onFocus: C, onPointerEnter: $, onMouseEnter: $, onPointerMove: w, onMouseMove: w, onPointerLeave: x, onMouseLeave: x }, H = He();
6545
- return !h && d ? null : H({ ourProps: M, theirProps: a, slot: _, defaultTag: S3, name: "Listbox.Option" });
6538
+ }), O = Cl(), $ = re((_) => {
6539
+ O.update(_), !i && (c || s.goToOption(xe.Specific, r, 0));
6540
+ }), x = re((_) => {
6541
+ O.wasMoved(_) && (i || c || s.goToOption(xe.Specific, r, 0));
6542
+ }), w = re((_) => {
6543
+ O.wasMoved(_) && (i || c && s.goToOption(xe.Nothing));
6544
+ }), A = Se(() => ({ active: c, focus: c, selected: h, disabled: i, selectedOption: h && d }), [c, h, i, d]), M = d ? {} : { id: r, ref: m, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": h, disabled: void 0, onClick: v, onFocus: C, onPointerEnter: $, onMouseEnter: $, onPointerMove: x, onMouseMove: x, onPointerLeave: w, onMouseLeave: w }, H = He();
6545
+ return !h && d ? null : H({ ourProps: M, theirProps: a, slot: A, defaultTag: S3, name: "Listbox.Option" });
6546
6546
  }
6547
6547
  let T3 = Qe;
6548
6548
  function N3(e, n) {
@@ -6571,7 +6571,7 @@ function F3({
6571
6571
  clipRule: "evenodd"
6572
6572
  }));
6573
6573
  }
6574
- const ss = /* @__PURE__ */ ue.forwardRef(F3), k3 = "_select_c79hj_1", M3 = "_selectContainer_c79hj_4", L3 = "_selectButton_c79hj_7", D3 = "_open_c79hj_13", j3 = "_selectValue_c79hj_16", B3 = "_seletIcon_c79hj_19", W3 = "_selectText_c79hj_22", V3 = "_chevronDownIconSpan_c79hj_25", U3 = "_chevronDownIcon_c79hj_25", H3 = "_leave_c79hj_32", G3 = "_leaveFrom_c79hj_36", z3 = "_leaveTo_c79hj_40", K3 = "_selectOptions_c79hj_44", rt = {
6574
+ const ss = /* @__PURE__ */ ue.forwardRef(F3), k3 = "_select_c79hj_1", M3 = "_selectContainer_c79hj_4", L3 = "_selectButton_c79hj_7", D3 = "_open_c79hj_13", j3 = "_selectValue_c79hj_16", B3 = "_seletIcon_c79hj_19", W3 = "_selectText_c79hj_22", V3 = "_chevronDownIconSpan_c79hj_25", U3 = "_chevronDownIcon_c79hj_25", H3 = "_leave_c79hj_32", G3 = "_leaveFrom_c79hj_36", z3 = "_leaveTo_c79hj_40", K3 = "_selectOptions_c79hj_44", nt = {
6575
6575
  select: k3,
6576
6576
  selectContainer: M3,
6577
6577
  selectButton: L3,
@@ -6585,70 +6585,70 @@ const ss = /* @__PURE__ */ ue.forwardRef(F3), k3 = "_select_c79hj_1", M3 = "_sel
6585
6585
  leaveFrom: G3,
6586
6586
  leaveTo: z3,
6587
6587
  selectOptions: K3
6588
- }, q3 = ({ children: e, selected: n, onSelect: t, themeColor: r }) => {
6589
- const [i, o] = me(!1), [a, d] = me(!1), [l, s] = me(!1), c = K(null), h = K(null), p = K(null), [f, u] = me({ left: 0, top: 0 }), [m, v] = me(!1), C = K(0), O = K(0);
6590
- let $ = "#333333";
6588
+ }, q3 = ({ children: e, selected: n, onSelect: t, themeColor: r, placeholder: i }) => {
6589
+ const [o, a] = me(!1), [d, l] = me(!1), [s, c] = me(!1), h = K(null), p = K(null), f = K(null), [u, m] = me({ left: 0, top: 0 }), [v, C] = me(!1), O = K(0), $ = K(0);
6590
+ let x = "#333333";
6591
6591
  const w = () => {
6592
- C.current = window.innerHeight, O.current = document.body.scrollHeight, o(!0);
6592
+ O.current = window.innerHeight, $.current = document.body.scrollHeight, a(!0);
6593
6593
  };
6594
6594
  be(() => (w(), window.addEventListener("resize", w), () => {
6595
6595
  window.removeEventListener("resize", w);
6596
6596
  }), []);
6597
- const x = () => O.current - (C.current + window.scrollY), _ = () => {
6598
- if (c.current) {
6599
- const R = c.current.getBoundingClientRect();
6600
- v(!1), setTimeout(() => {
6601
- const L = p?.current?.getBoundingClientRect(), Z = x(), G = C.current - R.bottom;
6602
- if (L) {
6603
- const B = L.height, se = R.top, le = B >= se + window.scrollY, ae = B >= se && (le || Z >= B || G >= B) || se >= B && G >= B ? R.y + R.height : R.y - B;
6604
- u({
6605
- left: R.left,
6606
- top: ae ?? R.top
6607
- }), v(!0);
6597
+ const A = () => $.current - (O.current + window.scrollY), M = () => {
6598
+ if (h.current) {
6599
+ const F = h.current.getBoundingClientRect();
6600
+ C(!1), setTimeout(() => {
6601
+ const X = f?.current?.getBoundingClientRect(), G = A(), W = O.current - F.bottom;
6602
+ if (X) {
6603
+ const ae = X.height, de = F.top, le = ae >= de + window.scrollY, ie = ae >= de && (le || G >= ae || W >= ae) || de >= ae && W >= ae ? F.y + F.height : F.y - ae;
6604
+ m({
6605
+ left: F.left,
6606
+ top: ie ?? F.top
6607
+ }), C(!0);
6608
6608
  }
6609
6609
  }, 0);
6610
6610
  }
6611
6611
  };
6612
- if (be(() => (window.addEventListener("scroll", _), window.addEventListener("resize", _), () => {
6613
- window.removeEventListener("scroll", _), window.removeEventListener("resize", _);
6612
+ if (be(() => (window.addEventListener("scroll", M), window.addEventListener("resize", M), () => {
6613
+ window.removeEventListener("scroll", M), window.removeEventListener("resize", M);
6614
6614
  }), []), r) {
6615
6615
  r = pt.convert3HexTo6(r);
6616
- const R = Et(r);
6617
- (R === "dark" || R === "light") && ($ = r === "#ffffff" ? "#c8c8c8" : r);
6618
- }
6619
- const M = (R) => {
6620
- t(R);
6621
- }, H = () => s(!0), A = () => s(!1);
6622
- return /* @__PURE__ */ N.jsx(R3, { value: n, onChange: M, children: ({ open: R }) => (R !== a && (d(R), R ? _() : v(!1)), /* @__PURE__ */ N.jsxs("div", { className: rt.select, children: [
6623
- /* @__PURE__ */ N.jsx("div", { className: rt.selectContainer, ref: c, children: /* @__PURE__ */ N.jsxs(
6616
+ const F = Et(r);
6617
+ (F === "dark" || F === "light") && (x = r === "#ffffff" ? "#c8c8c8" : r);
6618
+ }
6619
+ const H = (F) => {
6620
+ t(F);
6621
+ }, _ = () => c(!0), L = () => c(!1);
6622
+ return /* @__PURE__ */ N.jsx(R3, { value: n, onChange: H, children: ({ open: F }) => (F !== d && (l(F), F ? M() : C(!1)), /* @__PURE__ */ N.jsxs("div", { className: nt.select, children: [
6623
+ /* @__PURE__ */ N.jsx("div", { className: nt.selectContainer, ref: h, children: /* @__PURE__ */ N.jsxs(
6624
6624
  as,
6625
6625
  {
6626
- ref: h,
6626
+ ref: p,
6627
6627
  "data-testid": "select-options",
6628
- onFocus: H,
6629
- onBlur: A,
6630
- className: `${rt.selectButton} ${R ? rt.open : ""}`,
6628
+ onFocus: _,
6629
+ onBlur: L,
6630
+ className: `${nt.selectButton} ${F ? nt.open : ""}`,
6631
6631
  style: {
6632
- borderBottomColor: r && (l || R) ? $ : ""
6632
+ borderBottomColor: r && (s || F) ? x : ""
6633
6633
  },
6634
6634
  children: [
6635
- n && /* @__PURE__ */ N.jsxs("span", { className: rt.selectValue, children: [
6636
- n.avatar && /* @__PURE__ */ N.jsx("img", { src: n.avatar, alt: "", className: rt.seletIcon }),
6637
- /* @__PURE__ */ N.jsx("span", { className: rt.selectText, children: n.label })
6638
- ] }),
6639
- /* @__PURE__ */ N.jsx("span", { className: rt.chevronDownIconSpan, children: /* @__PURE__ */ N.jsx(
6635
+ n ? /* @__PURE__ */ N.jsxs("span", { className: nt.selectValue, children: [
6636
+ n.avatar && /* @__PURE__ */ N.jsx("img", { src: n.avatar, alt: "", className: nt.seletIcon }),
6637
+ /* @__PURE__ */ N.jsx("span", { className: nt.selectText, children: n.label })
6638
+ ] }) : i && /* @__PURE__ */ N.jsx("span", { className: nt.selectValue, style: { color: i.color || "#9ca3af" }, children: i.text }),
6639
+ /* @__PURE__ */ N.jsx("span", { className: nt.chevronDownIconSpan, children: /* @__PURE__ */ N.jsx(
6640
6640
  ss,
6641
6641
  {
6642
- className: rt.chevronDownIcon,
6642
+ className: nt.chevronDownIcon,
6643
6643
  "aria-hidden": "true",
6644
- "data-open": a ? !0 : void 0
6644
+ "data-open": d ? !0 : void 0
6645
6645
  }
6646
6646
  ) })
6647
6647
  ]
6648
6648
  }
6649
6649
  ) }),
6650
- i && rn(
6651
- R && /* @__PURE__ */ N.jsx(
6650
+ o && rn(
6651
+ F && /* @__PURE__ */ N.jsx(
6652
6652
  "div",
6653
6653
  {
6654
6654
  style: {
@@ -6660,13 +6660,13 @@ const ss = /* @__PURE__ */ ue.forwardRef(F3), k3 = "_select_c79hj_1", M3 = "_sel
6660
6660
  children: /* @__PURE__ */ N.jsx(
6661
6661
  "div",
6662
6662
  {
6663
- ref: p,
6663
+ ref: f,
6664
6664
  style: {
6665
6665
  position: "absolute",
6666
- opacity: m ? 1 : 0,
6667
- width: c.current?.clientWidth ?? "auto",
6668
- left: f.left,
6669
- top: f.top
6666
+ opacity: v ? 1 : 0,
6667
+ width: h.current?.clientWidth ?? "auto",
6668
+ left: u.left,
6669
+ top: u.top
6670
6670
  },
6671
6671
  children: e
6672
6672
  }
@@ -6680,11 +6680,11 @@ const ss = /* @__PURE__ */ ue.forwardRef(F3), k3 = "_select_c79hj_1", M3 = "_sel
6680
6680
  is,
6681
6681
  {
6682
6682
  as: Qe,
6683
- leave: rt.leave,
6684
- leaveFrom: rt.leaveFrom,
6685
- leaveTo: rt.leaveTo,
6683
+ leave: nt.leave,
6684
+ leaveFrom: nt.leaveFrom,
6685
+ leaveTo: nt.leaveTo,
6686
6686
  afterLeave: () => n(""),
6687
- children: /* @__PURE__ */ N.jsx(ds, { className: rt.selectOptions, children: e })
6687
+ children: /* @__PURE__ */ N.jsx(ds, { className: nt.selectOptions, children: e })
6688
6688
  }
6689
6689
  ), us = At((e, n) => /* @__PURE__ */ N.jsx(ls, { ref: n, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
6690
6690
  us.displayName = "SelectOption";
@@ -6709,25 +6709,25 @@ const X3 = "_autocomplete_1wp4j_1", Z3 = "_autocompleteContainer_1wp4j_4", J3 =
6709
6709
  clearSearch: o = !1,
6710
6710
  themeColor: a
6711
6711
  }) => {
6712
- const d = K(null), l = K(null), s = K(null), c = K(null), [h, p] = me(!1), [f, u] = me(!1), [m, v] = me(!1), [C, O] = me({ top: 0, left: 0 }), [$, w] = me(!1), x = K(0), _ = K(0);
6712
+ const d = K(null), l = K(null), s = K(null), c = K(null), [h, p] = me(!1), [f, u] = me(!1), [m, v] = me(!1), [C, O] = me({ top: 0, left: 0 }), [$, x] = me(!1), w = K(0), A = K(0);
6713
6713
  let M = {};
6714
6714
  be(() => {
6715
6715
  d.current && n && (d.current.value = n.label || "");
6716
6716
  }, [n]), be(() => {
6717
- x.current = window.innerHeight, _.current = document.body.scrollHeight, v(!0);
6717
+ w.current = window.innerHeight, A.current = document.body.scrollHeight, v(!0);
6718
6718
  }, []);
6719
6719
  const H = Oe(() => {
6720
6720
  if (s.current) {
6721
- const Z = window.visualViewport, G = s.current.getBoundingClientRect();
6722
- w(!1), setTimeout(() => {
6723
- const B = c?.current?.getBoundingClientRect();
6724
- let se = G.left, le = G.y + G.height, ae = window.innerHeight - G.bottom, oe = document.body.scrollHeight - (window.innerHeight + window.scrollY);
6725
- if (Z && (se = G.left + Z.offsetLeft, le = G.top + G.height + Z.offsetTop, ae = Z.height - (G.bottom - Z.offsetTop), oe = document.body.scrollHeight - (Z.height + Z.pageTop)), B) {
6726
- const z = B.height, T = G.top, D = z >= T + window.scrollY, X = z >= T && (D || oe >= z || ae >= z) || T >= z && ae >= z ? le : (Z ? G.top + Z.offsetTop : G.y) - z;
6721
+ const X = window.visualViewport, G = s.current.getBoundingClientRect();
6722
+ x(!1), setTimeout(() => {
6723
+ const W = c?.current?.getBoundingClientRect();
6724
+ let ae = G.left, de = G.y + G.height, le = window.innerHeight - G.bottom, ie = document.body.scrollHeight - (window.innerHeight + window.scrollY);
6725
+ if (X && (ae = G.left + X.offsetLeft, de = G.top + G.height + X.offsetTop, le = X.height - (G.bottom - X.offsetTop), ie = document.body.scrollHeight - (X.height + X.pageTop)), W) {
6726
+ const z = W.height, T = G.top, D = z >= T + window.scrollY, Z = z >= T && (D || ie >= z || le >= z) || T >= z && le >= z ? de : (X ? G.top + X.offsetTop : G.y) - z;
6727
6727
  O({
6728
- left: se,
6729
- top: X ?? (Z ? G.top + Z.offsetTop : G.top)
6730
- }), w(!0);
6728
+ left: ae,
6729
+ top: Z ?? (X ? G.top + X.offsetTop : G.top)
6730
+ }), x(!0);
6731
6731
  }
6732
6732
  }, 0);
6733
6733
  }
@@ -6735,22 +6735,22 @@ const X3 = "_autocomplete_1wp4j_1", Z3 = "_autocompleteContainer_1wp4j_4", J3 =
6735
6735
  be(() => (window.addEventListener("scroll", H), window.addEventListener("resize", H), () => {
6736
6736
  window.removeEventListener("scroll", H), window.removeEventListener("resize", H);
6737
6737
  }), []);
6738
- const A = (Z) => {
6738
+ const _ = (X) => {
6739
6739
  typeof f < "u" && d.current && (f ? (d.current.dispatchEvent(new KeyboardEvent("keydown", { key: "Escape", bubbles: !0 })), p(!1)) : (H(), p(!0), n && (d.current.value = n.label || ""), o && (d.current.value = "", r("")), d.current.dispatchEvent(new KeyboardEvent("keydown", { key: "ArrowDown", bubbles: !0 }))));
6740
- }, R = () => {
6741
- p(!0);
6742
6740
  }, L = () => {
6741
+ p(!0);
6742
+ }, F = () => {
6743
6743
  p(!1);
6744
6744
  };
6745
6745
  if (a) {
6746
- const Z = Et(a);
6746
+ const X = Et(a);
6747
6747
  a = pt.convert3HexTo6(a);
6748
6748
  let G;
6749
- a === "#ffffff" ? G = "#c8c8c8" : h ? G = a : G = "#333333", (Z === "dark" || Z === "light") && (M = {
6749
+ a === "#ffffff" ? G = "#c8c8c8" : h ? G = a : G = "#333333", (X === "dark" || X === "light") && (M = {
6750
6750
  borderBottomColor: G
6751
6751
  });
6752
6752
  }
6753
- return /* @__PURE__ */ N.jsx(t3, { value: n, onChange: t, disabled: i, children: ({ open: Z }) => (Z !== f && (u(Z), Z ? H() : w(!1)), /* @__PURE__ */ N.jsxs("div", { className: st.autocomplete, children: [
6753
+ return /* @__PURE__ */ N.jsx(t3, { value: n, onChange: t, disabled: i, children: ({ open: X }) => (X !== f && (u(X), X ? H() : x(!1)), /* @__PURE__ */ N.jsxs("div", { className: st.autocomplete, children: [
6754
6754
  /* @__PURE__ */ N.jsxs("div", { ref: s, className: `${st.autocompleteContainer} ${i ? st.disable : ""}`, children: [
6755
6755
  /* @__PURE__ */ N.jsx(
6756
6756
  Xl,
@@ -6762,9 +6762,9 @@ const X3 = "_autocomplete_1wp4j_1", Z3 = "_autocompleteContainer_1wp4j_4", J3 =
6762
6762
  onChange: (G) => {
6763
6763
  r(G.target.value);
6764
6764
  },
6765
- onClick: A,
6766
- onFocus: R,
6767
- onBlur: L,
6765
+ onClick: _,
6766
+ onFocus: L,
6767
+ onBlur: F,
6768
6768
  style: { ...M },
6769
6769
  placeholder: "Select your option",
6770
6770
  autoComplete: "off"
@@ -6775,12 +6775,12 @@ const X3 = "_autocomplete_1wp4j_1", Z3 = "_autocompleteContainer_1wp4j_4", J3 =
6775
6775
  {
6776
6776
  className: `${st.chevronDownIcon} ${i ? st.disable : ""}`,
6777
6777
  "aria-hidden": "true",
6778
- "data-open": Z ? !0 : void 0
6778
+ "data-open": X ? !0 : void 0
6779
6779
  }
6780
6780
  ) })
6781
6781
  ] }),
6782
6782
  m ? rn(
6783
- /* @__PURE__ */ N.jsx(N.Fragment, { children: Z && /* @__PURE__ */ N.jsx(
6783
+ /* @__PURE__ */ N.jsx(N.Fragment, { children: X && /* @__PURE__ */ N.jsx(
6784
6784
  "div",
6785
6785
  {
6786
6786
  style: {
@@ -6877,65 +6877,65 @@ function $9() {
6877
6877
  if (wa) return Ae;
6878
6878
  wa = 1;
6879
6879
  var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, t = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, a = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, s = e ? Symbol.for("react.concurrent_mode") : 60111, c = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, f = e ? Symbol.for("react.memo") : 60115, u = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, C = e ? Symbol.for("react.responder") : 60118, O = e ? Symbol.for("react.scope") : 60119;
6880
- function $(x) {
6881
- if (typeof x == "object" && x !== null) {
6882
- var _ = x.$$typeof;
6883
- switch (_) {
6880
+ function $(w) {
6881
+ if (typeof w == "object" && w !== null) {
6882
+ var A = w.$$typeof;
6883
+ switch (A) {
6884
6884
  case n:
6885
- switch (x = x.type, x) {
6885
+ switch (w = w.type, w) {
6886
6886
  case l:
6887
6887
  case s:
6888
6888
  case r:
6889
6889
  case o:
6890
6890
  case i:
6891
6891
  case h:
6892
- return x;
6892
+ return w;
6893
6893
  default:
6894
- switch (x = x && x.$$typeof, x) {
6894
+ switch (w = w && w.$$typeof, w) {
6895
6895
  case d:
6896
6896
  case c:
6897
6897
  case u:
6898
6898
  case f:
6899
6899
  case a:
6900
- return x;
6900
+ return w;
6901
6901
  default:
6902
- return _;
6902
+ return A;
6903
6903
  }
6904
6904
  }
6905
6905
  case t:
6906
- return _;
6906
+ return A;
6907
6907
  }
6908
6908
  }
6909
6909
  }
6910
- function w(x) {
6911
- return $(x) === s;
6912
- }
6913
- return Ae.AsyncMode = l, Ae.ConcurrentMode = s, Ae.ContextConsumer = d, Ae.ContextProvider = a, Ae.Element = n, Ae.ForwardRef = c, Ae.Fragment = r, Ae.Lazy = u, Ae.Memo = f, Ae.Portal = t, Ae.Profiler = o, Ae.StrictMode = i, Ae.Suspense = h, Ae.isAsyncMode = function(x) {
6914
- return w(x) || $(x) === l;
6915
- }, Ae.isConcurrentMode = w, Ae.isContextConsumer = function(x) {
6916
- return $(x) === d;
6917
- }, Ae.isContextProvider = function(x) {
6918
- return $(x) === a;
6919
- }, Ae.isElement = function(x) {
6920
- return typeof x == "object" && x !== null && x.$$typeof === n;
6921
- }, Ae.isForwardRef = function(x) {
6922
- return $(x) === c;
6923
- }, Ae.isFragment = function(x) {
6924
- return $(x) === r;
6925
- }, Ae.isLazy = function(x) {
6926
- return $(x) === u;
6927
- }, Ae.isMemo = function(x) {
6928
- return $(x) === f;
6929
- }, Ae.isPortal = function(x) {
6930
- return $(x) === t;
6931
- }, Ae.isProfiler = function(x) {
6932
- return $(x) === o;
6933
- }, Ae.isStrictMode = function(x) {
6934
- return $(x) === i;
6935
- }, Ae.isSuspense = function(x) {
6936
- return $(x) === h;
6937
- }, Ae.isValidElementType = function(x) {
6938
- return typeof x == "string" || typeof x == "function" || x === r || x === s || x === o || x === i || x === h || x === p || typeof x == "object" && x !== null && (x.$$typeof === u || x.$$typeof === f || x.$$typeof === a || x.$$typeof === d || x.$$typeof === c || x.$$typeof === v || x.$$typeof === C || x.$$typeof === O || x.$$typeof === m);
6910
+ function x(w) {
6911
+ return $(w) === s;
6912
+ }
6913
+ return Ae.AsyncMode = l, Ae.ConcurrentMode = s, Ae.ContextConsumer = d, Ae.ContextProvider = a, Ae.Element = n, Ae.ForwardRef = c, Ae.Fragment = r, Ae.Lazy = u, Ae.Memo = f, Ae.Portal = t, Ae.Profiler = o, Ae.StrictMode = i, Ae.Suspense = h, Ae.isAsyncMode = function(w) {
6914
+ return x(w) || $(w) === l;
6915
+ }, Ae.isConcurrentMode = x, Ae.isContextConsumer = function(w) {
6916
+ return $(w) === d;
6917
+ }, Ae.isContextProvider = function(w) {
6918
+ return $(w) === a;
6919
+ }, Ae.isElement = function(w) {
6920
+ return typeof w == "object" && w !== null && w.$$typeof === n;
6921
+ }, Ae.isForwardRef = function(w) {
6922
+ return $(w) === c;
6923
+ }, Ae.isFragment = function(w) {
6924
+ return $(w) === r;
6925
+ }, Ae.isLazy = function(w) {
6926
+ return $(w) === u;
6927
+ }, Ae.isMemo = function(w) {
6928
+ return $(w) === f;
6929
+ }, Ae.isPortal = function(w) {
6930
+ return $(w) === t;
6931
+ }, Ae.isProfiler = function(w) {
6932
+ return $(w) === o;
6933
+ }, Ae.isStrictMode = function(w) {
6934
+ return $(w) === i;
6935
+ }, Ae.isSuspense = function(w) {
6936
+ return $(w) === h;
6937
+ }, Ae.isValidElementType = function(w) {
6938
+ return typeof w == "string" || typeof w == "function" || w === r || w === s || w === o || w === i || w === h || w === p || typeof w == "object" && w !== null && (w.$$typeof === u || w.$$typeof === f || w.$$typeof === a || w.$$typeof === d || w.$$typeof === c || w.$$typeof === v || w.$$typeof === C || w.$$typeof === O || w.$$typeof === m);
6939
6939
  }, Ae.typeOf = $, Ae;
6940
6940
  }
6941
6941
  var Re = {};
@@ -6955,7 +6955,7 @@ function b9() {
6955
6955
  return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
6956
6956
  E === r || E === s || E === o || E === i || E === h || E === p || typeof E == "object" && E !== null && (E.$$typeof === u || E.$$typeof === f || E.$$typeof === a || E.$$typeof === d || E.$$typeof === c || E.$$typeof === v || E.$$typeof === C || E.$$typeof === O || E.$$typeof === m);
6957
6957
  }
6958
- function w(E) {
6958
+ function x(E) {
6959
6959
  if (typeof E == "object" && E !== null) {
6960
6960
  var J = E.$$typeof;
6961
6961
  switch (J) {
@@ -6987,47 +6987,47 @@ function b9() {
6987
6987
  }
6988
6988
  }
6989
6989
  }
6990
- var x = l, _ = s, M = d, H = a, A = n, R = c, L = r, Z = u, G = f, B = t, se = o, le = i, ae = h, oe = !1;
6990
+ var w = l, A = s, M = d, H = a, _ = n, L = c, F = r, X = u, G = f, W = t, ae = o, de = i, le = h, ie = !1;
6991
6991
  function z(E) {
6992
- return oe || (oe = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(E) || w(E) === l;
6992
+ return ie || (ie = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), T(E) || x(E) === l;
6993
6993
  }
6994
6994
  function T(E) {
6995
- return w(E) === s;
6995
+ return x(E) === s;
6996
6996
  }
6997
6997
  function D(E) {
6998
- return w(E) === d;
6998
+ return x(E) === d;
6999
6999
  }
7000
- function X(E) {
7001
- return w(E) === a;
7000
+ function Z(E) {
7001
+ return x(E) === a;
7002
7002
  }
7003
7003
  function P(E) {
7004
7004
  return typeof E == "object" && E !== null && E.$$typeof === n;
7005
7005
  }
7006
7006
  function U(E) {
7007
- return w(E) === c;
7007
+ return x(E) === c;
7008
7008
  }
7009
7009
  function k(E) {
7010
- return w(E) === r;
7010
+ return x(E) === r;
7011
7011
  }
7012
7012
  function ee(E) {
7013
- return w(E) === u;
7013
+ return x(E) === u;
7014
7014
  }
7015
7015
  function Y(E) {
7016
- return w(E) === f;
7016
+ return x(E) === f;
7017
7017
  }
7018
7018
  function ne(E) {
7019
- return w(E) === t;
7019
+ return x(E) === t;
7020
7020
  }
7021
7021
  function fe(E) {
7022
- return w(E) === o;
7022
+ return x(E) === o;
7023
7023
  }
7024
7024
  function ge(E) {
7025
- return w(E) === i;
7025
+ return x(E) === i;
7026
7026
  }
7027
7027
  function Te(E) {
7028
- return w(E) === h;
7028
+ return x(E) === h;
7029
7029
  }
7030
- Re.AsyncMode = x, Re.ConcurrentMode = _, Re.ContextConsumer = M, Re.ContextProvider = H, Re.Element = A, Re.ForwardRef = R, Re.Fragment = L, Re.Lazy = Z, Re.Memo = G, Re.Portal = B, Re.Profiler = se, Re.StrictMode = le, Re.Suspense = ae, Re.isAsyncMode = z, Re.isConcurrentMode = T, Re.isContextConsumer = D, Re.isContextProvider = X, Re.isElement = P, Re.isForwardRef = U, Re.isFragment = k, Re.isLazy = ee, Re.isMemo = Y, Re.isPortal = ne, Re.isProfiler = fe, Re.isStrictMode = ge, Re.isSuspense = Te, Re.isValidElementType = $, Re.typeOf = w;
7030
+ Re.AsyncMode = w, Re.ConcurrentMode = A, Re.ContextConsumer = M, Re.ContextProvider = H, Re.Element = _, Re.ForwardRef = L, Re.Fragment = F, Re.Lazy = X, Re.Memo = G, Re.Portal = W, Re.Profiler = ae, Re.StrictMode = de, Re.Suspense = le, Re.isAsyncMode = z, Re.isConcurrentMode = T, Re.isContextConsumer = D, Re.isContextProvider = Z, Re.isElement = P, Re.isForwardRef = U, Re.isFragment = k, Re.isLazy = ee, Re.isMemo = Y, Re.isPortal = ne, Re.isProfiler = fe, Re.isStrictMode = ge, Re.isSuspense = Te, Re.isValidElementType = $, Re.typeOf = x;
7031
7031
  }()), Re;
7032
7032
  }
7033
7033
  var Ca;
@@ -7180,14 +7180,14 @@ function x9() {
7180
7180
  symbol: C("symbol"),
7181
7181
  any: O(),
7182
7182
  arrayOf: $,
7183
- element: w(),
7184
- elementType: x(),
7185
- instanceOf: _,
7186
- node: R(),
7183
+ element: x(),
7184
+ elementType: w(),
7185
+ instanceOf: A,
7186
+ node: L(),
7187
7187
  objectOf: H,
7188
7188
  oneOf: M,
7189
- oneOfType: A,
7190
- shape: Z,
7189
+ oneOfType: _,
7190
+ shape: X,
7191
7191
  exact: G
7192
7192
  };
7193
7193
  function u(T, D) {
@@ -7199,7 +7199,7 @@ function x9() {
7199
7199
  m.prototype = Error.prototype;
7200
7200
  function v(T) {
7201
7201
  if (process.env.NODE_ENV !== "production")
7202
- var D = {}, X = 0;
7202
+ var D = {}, Z = 0;
7203
7203
  function P(k, ee, Y, ne, fe, ge, Te) {
7204
7204
  if (ne = ne || p, ge = ge || Y, Te !== t) {
7205
7205
  if (l) {
@@ -7210,9 +7210,9 @@ function x9() {
7210
7210
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
7211
7211
  var J = ne + ":" + Y;
7212
7212
  !D[J] && // Avoid spamming the console because they are often not actionable except for lib authors
7213
- X < 3 && (o(
7213
+ Z < 3 && (o(
7214
7214
  "You are manually calling a React.PropTypes validation function for the `" + ge + "` prop on `" + ne + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
7215
- ), D[J] = !0, X++);
7215
+ ), D[J] = !0, Z++);
7216
7216
  }
7217
7217
  }
7218
7218
  return ee[Y] == null ? k ? ee[Y] === null ? new m("The " + fe + " `" + ge + "` is marked as required " + ("in `" + ne + "`, but its value is `null`.")) : new m("The " + fe + " `" + ge + "` is marked as required in " + ("`" + ne + "`, but its value is `undefined`.")) : null : T(ee, Y, ne, fe, ge);
@@ -7221,10 +7221,10 @@ function x9() {
7221
7221
  return U.isRequired = P.bind(null, !0), U;
7222
7222
  }
7223
7223
  function C(T) {
7224
- function D(X, P, U, k, ee, Y) {
7225
- var ne = X[P], fe = le(ne);
7224
+ function D(Z, P, U, k, ee, Y) {
7225
+ var ne = Z[P], fe = de(ne);
7226
7226
  if (fe !== T) {
7227
- var ge = ae(ne);
7227
+ var ge = le(ne);
7228
7228
  return new m(
7229
7229
  "Invalid " + k + " `" + ee + "` of type " + ("`" + ge + "` supplied to `" + U + "`, expected ") + ("`" + T + "`."),
7230
7230
  { expectedType: T }
@@ -7238,12 +7238,12 @@ function x9() {
7238
7238
  return v(a);
7239
7239
  }
7240
7240
  function $(T) {
7241
- function D(X, P, U, k, ee) {
7241
+ function D(Z, P, U, k, ee) {
7242
7242
  if (typeof T != "function")
7243
7243
  return new m("Property `" + ee + "` of component `" + U + "` has invalid PropType notation inside arrayOf.");
7244
- var Y = X[P];
7244
+ var Y = Z[P];
7245
7245
  if (!Array.isArray(Y)) {
7246
- var ne = le(Y);
7246
+ var ne = de(Y);
7247
7247
  return new m("Invalid " + k + " `" + ee + "` of type " + ("`" + ne + "` supplied to `" + U + "`, expected an array."));
7248
7248
  }
7249
7249
  for (var fe = 0; fe < Y.length; fe++) {
@@ -7255,32 +7255,32 @@ function x9() {
7255
7255
  }
7256
7256
  return v(D);
7257
7257
  }
7258
- function w() {
7259
- function T(D, X, P, U, k) {
7260
- var ee = D[X];
7258
+ function x() {
7259
+ function T(D, Z, P, U, k) {
7260
+ var ee = D[Z];
7261
7261
  if (!d(ee)) {
7262
- var Y = le(ee);
7262
+ var Y = de(ee);
7263
7263
  return new m("Invalid " + U + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected a single ReactElement."));
7264
7264
  }
7265
7265
  return null;
7266
7266
  }
7267
7267
  return v(T);
7268
7268
  }
7269
- function x() {
7270
- function T(D, X, P, U, k) {
7271
- var ee = D[X];
7269
+ function w() {
7270
+ function T(D, Z, P, U, k) {
7271
+ var ee = D[Z];
7272
7272
  if (!e.isValidElementType(ee)) {
7273
- var Y = le(ee);
7273
+ var Y = de(ee);
7274
7274
  return new m("Invalid " + U + " `" + k + "` of type " + ("`" + Y + "` supplied to `" + P + "`, expected a single ReactElement type."));
7275
7275
  }
7276
7276
  return null;
7277
7277
  }
7278
7278
  return v(T);
7279
7279
  }
7280
- function _(T) {
7281
- function D(X, P, U, k, ee) {
7282
- if (!(X[P] instanceof T)) {
7283
- var Y = T.name || p, ne = z(X[P]);
7280
+ function A(T) {
7281
+ function D(Z, P, U, k, ee) {
7282
+ if (!(Z[P] instanceof T)) {
7283
+ var Y = T.name || p, ne = z(Z[P]);
7284
7284
  return new m("Invalid " + k + " `" + ee + "` of type " + ("`" + ne + "` supplied to `" + U + "`, expected ") + ("instance of `" + Y + "`."));
7285
7285
  }
7286
7286
  return null;
@@ -7292,12 +7292,12 @@ function x9() {
7292
7292
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
7293
7293
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
7294
7294
  ) : o("Invalid argument supplied to oneOf, expected an array.")), a;
7295
- function D(X, P, U, k, ee) {
7296
- for (var Y = X[P], ne = 0; ne < T.length; ne++)
7295
+ function D(Z, P, U, k, ee) {
7296
+ for (var Y = Z[P], ne = 0; ne < T.length; ne++)
7297
7297
  if (u(Y, T[ne]))
7298
7298
  return null;
7299
7299
  var fe = JSON.stringify(T, function(Te, E) {
7300
- var J = ae(E);
7300
+ var J = le(E);
7301
7301
  return J === "symbol" ? String(E) : E;
7302
7302
  });
7303
7303
  return new m("Invalid " + k + " `" + ee + "` of value `" + String(Y) + "` " + ("supplied to `" + U + "`, expected one of " + fe + "."));
@@ -7305,10 +7305,10 @@ function x9() {
7305
7305
  return v(D);
7306
7306
  }
7307
7307
  function H(T) {
7308
- function D(X, P, U, k, ee) {
7308
+ function D(Z, P, U, k, ee) {
7309
7309
  if (typeof T != "function")
7310
7310
  return new m("Property `" + ee + "` of component `" + U + "` has invalid PropType notation inside objectOf.");
7311
- var Y = X[P], ne = le(Y);
7311
+ var Y = Z[P], ne = de(Y);
7312
7312
  if (ne !== "object")
7313
7313
  return new m("Invalid " + k + " `" + ee + "` of type " + ("`" + ne + "` supplied to `" + U + "`, expected an object."));
7314
7314
  for (var fe in Y)
@@ -7321,14 +7321,14 @@ function x9() {
7321
7321
  }
7322
7322
  return v(D);
7323
7323
  }
7324
- function A(T) {
7324
+ function _(T) {
7325
7325
  if (!Array.isArray(T))
7326
7326
  return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), a;
7327
7327
  for (var D = 0; D < T.length; D++) {
7328
- var X = T[D];
7329
- if (typeof X != "function")
7328
+ var Z = T[D];
7329
+ if (typeof Z != "function")
7330
7330
  return o(
7331
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(X) + " at index " + D + "."
7331
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(Z) + " at index " + D + "."
7332
7332
  ), a;
7333
7333
  }
7334
7334
  function P(U, k, ee, Y, ne) {
@@ -7343,26 +7343,26 @@ function x9() {
7343
7343
  }
7344
7344
  return v(P);
7345
7345
  }
7346
- function R() {
7347
- function T(D, X, P, U, k) {
7348
- return B(D[X]) ? null : new m("Invalid " + U + " `" + k + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
7346
+ function L() {
7347
+ function T(D, Z, P, U, k) {
7348
+ return W(D[Z]) ? null : new m("Invalid " + U + " `" + k + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
7349
7349
  }
7350
7350
  return v(T);
7351
7351
  }
7352
- function L(T, D, X, P, U) {
7352
+ function F(T, D, Z, P, U) {
7353
7353
  return new m(
7354
- (T || "React class") + ": " + D + " type `" + X + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
7354
+ (T || "React class") + ": " + D + " type `" + Z + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + U + "`."
7355
7355
  );
7356
7356
  }
7357
- function Z(T) {
7358
- function D(X, P, U, k, ee) {
7359
- var Y = X[P], ne = le(Y);
7357
+ function X(T) {
7358
+ function D(Z, P, U, k, ee) {
7359
+ var Y = Z[P], ne = de(Y);
7360
7360
  if (ne !== "object")
7361
7361
  return new m("Invalid " + k + " `" + ee + "` of type `" + ne + "` " + ("supplied to `" + U + "`, expected `object`."));
7362
7362
  for (var fe in T) {
7363
7363
  var ge = T[fe];
7364
7364
  if (typeof ge != "function")
7365
- return L(U, k, ee, fe, ae(ge));
7365
+ return F(U, k, ee, fe, le(ge));
7366
7366
  var Te = ge(Y, fe, U, k, ee + "." + fe, t);
7367
7367
  if (Te)
7368
7368
  return Te;
@@ -7372,18 +7372,18 @@ function x9() {
7372
7372
  return v(D);
7373
7373
  }
7374
7374
  function G(T) {
7375
- function D(X, P, U, k, ee) {
7376
- var Y = X[P], ne = le(Y);
7375
+ function D(Z, P, U, k, ee) {
7376
+ var Y = Z[P], ne = de(Y);
7377
7377
  if (ne !== "object")
7378
7378
  return new m("Invalid " + k + " `" + ee + "` of type `" + ne + "` " + ("supplied to `" + U + "`, expected `object`."));
7379
- var fe = n({}, X[P], T);
7379
+ var fe = n({}, Z[P], T);
7380
7380
  for (var ge in fe) {
7381
7381
  var Te = T[ge];
7382
7382
  if (r(T, ge) && typeof Te != "function")
7383
- return L(U, k, ee, ge, ae(Te));
7383
+ return F(U, k, ee, ge, le(Te));
7384
7384
  if (!Te)
7385
7385
  return new m(
7386
- "Invalid " + k + " `" + ee + "` key `" + ge + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(X[P], null, " ") + `
7386
+ "Invalid " + k + " `" + ee + "` key `" + ge + "` supplied to `" + U + "`.\nBad object: " + JSON.stringify(Z[P], null, " ") + `
7387
7387
  Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
7388
7388
  );
7389
7389
  var E = Te(Y, ge, U, k, ee + "." + ge, t);
@@ -7394,7 +7394,7 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
7394
7394
  }
7395
7395
  return v(D);
7396
7396
  }
7397
- function B(T) {
7397
+ function W(T) {
7398
7398
  switch (typeof T) {
7399
7399
  case "number":
7400
7400
  case "string":
@@ -7404,20 +7404,20 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
7404
7404
  return !T;
7405
7405
  case "object":
7406
7406
  if (Array.isArray(T))
7407
- return T.every(B);
7407
+ return T.every(W);
7408
7408
  if (T === null || d(T))
7409
7409
  return !0;
7410
7410
  var D = h(T);
7411
7411
  if (D) {
7412
- var X = D.call(T), P;
7412
+ var Z = D.call(T), P;
7413
7413
  if (D !== T.entries) {
7414
- for (; !(P = X.next()).done; )
7415
- if (!B(P.value))
7414
+ for (; !(P = Z.next()).done; )
7415
+ if (!W(P.value))
7416
7416
  return !1;
7417
7417
  } else
7418
- for (; !(P = X.next()).done; ) {
7418
+ for (; !(P = Z.next()).done; ) {
7419
7419
  var U = P.value;
7420
- if (U && !B(U[1]))
7420
+ if (U && !W(U[1]))
7421
7421
  return !1;
7422
7422
  }
7423
7423
  } else
@@ -7427,17 +7427,17 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
7427
7427
  return !1;
7428
7428
  }
7429
7429
  }
7430
- function se(T, D) {
7430
+ function ae(T, D) {
7431
7431
  return T === "symbol" ? !0 : D ? D["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && D instanceof Symbol : !1;
7432
7432
  }
7433
- function le(T) {
7433
+ function de(T) {
7434
7434
  var D = typeof T;
7435
- return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : se(D, T) ? "symbol" : D;
7435
+ return Array.isArray(T) ? "array" : T instanceof RegExp ? "object" : ae(D, T) ? "symbol" : D;
7436
7436
  }
7437
- function ae(T) {
7437
+ function le(T) {
7438
7438
  if (typeof T > "u" || T === null)
7439
7439
  return "" + T;
7440
- var D = le(T);
7440
+ var D = de(T);
7441
7441
  if (D === "object") {
7442
7442
  if (T instanceof Date)
7443
7443
  return "date";
@@ -7446,8 +7446,8 @@ Valid keys: ` + JSON.stringify(Object.keys(T), null, " ")
7446
7446
  }
7447
7447
  return D;
7448
7448
  }
7449
- function oe(T) {
7450
- var D = ae(T);
7449
+ function ie(T) {
7450
+ var D = le(T);
7451
7451
  switch (D) {
7452
7452
  case "array":
7453
7453
  case "object":
@@ -11868,8 +11868,8 @@ function Q8(e, n) {
11868
11868
  function e7(e, n, t) {
11869
11869
  var r = e.metadata, i = e.countries, o = e.defaultCountry, a = e.value, d = e.reset, l = e.international, s = e.displayInitialValueAsLocalNumber, c = e.initialValueFormat, h = n.defaultCountry, p = n.value, f = n.reset;
11870
11870
  t.country;
11871
- var u = t.value, m = t.hasUserSelectedACountry, v = t.latestCountrySelectedByUser, C = function(L) {
11872
- return Js(Un(Un({}, L), {}, {
11871
+ var u = t.value, m = t.hasUserSelectedACountry, v = t.latestCountrySelectedByUser, C = function(F) {
11872
+ return Js(Un(Un({}, F), {}, {
11873
11873
  international: l,
11874
11874
  useNationalFormat: s || c === "national",
11875
11875
  metadata: r
@@ -11897,8 +11897,8 @@ function e7(e, n, t) {
11897
11897
  value: void 0,
11898
11898
  defaultCountry: h
11899
11899
  })
11900
- ), w = !a && $;
11901
- if (!m && O && w)
11900
+ ), x = !a && $;
11901
+ if (!m && O && x)
11902
11902
  return {
11903
11903
  country: o,
11904
11904
  // If `phoneDigits` is empty, then automatically select the new `country`
@@ -11915,21 +11915,21 @@ function e7(e, n, t) {
11915
11915
  };
11916
11916
  }
11917
11917
  if (!Sd(a, p) && !Sd(a, u)) {
11918
- var x, _;
11918
+ var w, A;
11919
11919
  if (a) {
11920
- a && Hs(a), x = Ys(a, r);
11920
+ a && Hs(a), w = Ys(a, r);
11921
11921
  var M = Gs(i, r);
11922
- x && x.country ? (!M || M.indexOf(x.country) >= 0) && (_ = x.country) : (_ = Xs(a, {
11922
+ w && w.country ? (!M || M.indexOf(w.country) >= 0) && (A = w.country) : (A = Xs(a, {
11923
11923
  country: void 0,
11924
11924
  countries: M,
11925
11925
  metadata: r
11926
- }), _ || o && a.indexOf(xt(o, r)) === 0 && (_ = o));
11926
+ }), A || o && a.indexOf(xt(o, r)) === 0 && (A = o));
11927
11927
  }
11928
11928
  var H;
11929
11929
  if (a) {
11930
11930
  if (v) {
11931
- var A = _ ? v === _ : Jt(a, v, r);
11932
- A ? _ || (_ = v) : H = {
11931
+ var _ = A ? v === A : Jt(a, v, r);
11932
+ _ ? A || (A = v) : H = {
11933
11933
  latestCountrySelectedByUser: void 0
11934
11934
  };
11935
11935
  }
@@ -11940,12 +11940,12 @@ function e7(e, n, t) {
11940
11940
  };
11941
11941
  return Un(Un({}, H), {}, {
11942
11942
  phoneDigits: C({
11943
- phoneNumber: x,
11943
+ phoneNumber: w,
11944
11944
  value: a,
11945
11945
  defaultCountry: o
11946
11946
  }),
11947
11947
  value: a,
11948
- country: a ? _ : o
11948
+ country: a ? A : o
11949
11949
  });
11950
11950
  }
11951
11951
  }
@@ -12088,53 +12088,53 @@ var c7 = /* @__PURE__ */ function(e) {
12088
12088
  var C = r.props.metadata;
12089
12089
  return Or(v, C);
12090
12090
  }), dt(r, "onCountryChange", function(v) {
12091
- var C = r.props, O = C.international, $ = C.metadata, w = C.onChange, x = C.focusInputOnCountrySelection, _ = r.state, M = _.phoneDigits, H = _.country, A = H8(M, {
12091
+ var C = r.props, O = C.international, $ = C.metadata, x = C.onChange, w = C.focusInputOnCountrySelection, A = r.state, M = A.phoneDigits, H = A.country, _ = H8(M, {
12092
12092
  prevCountry: H,
12093
12093
  newCountry: v,
12094
12094
  metadata: $,
12095
12095
  // Convert the phone number to "national" format
12096
12096
  // when the user changes the selected country by hand.
12097
12097
  useNationalFormat: !O
12098
- }), R = Xt(A, v, $);
12099
- x && r.inputRef.current.focus(), r.setState({
12098
+ }), L = Xt(_, v, $);
12099
+ w && r.inputRef.current.focus(), r.setState({
12100
12100
  country: v,
12101
12101
  latestCountrySelectedByUser: v,
12102
12102
  hasUserSelectedACountry: !0,
12103
- phoneDigits: A,
12104
- value: R
12103
+ phoneDigits: _,
12104
+ value: L
12105
12105
  }, function() {
12106
- w(R);
12106
+ x(L);
12107
12107
  });
12108
12108
  }), dt(r, "onChange", function(v) {
12109
- var C = r.props, O = C.defaultCountry, $ = C.onChange, w = C.addInternationalOption, x = C.international, _ = C.limitMaxLength, M = C.countryCallingCodeEditable, H = C.metadata, A = r.state, R = A.countries, L = A.phoneDigits, Z = A.country, G = A.latestCountrySelectedByUser, B = K8(v, {
12110
- prevPhoneDigits: L,
12111
- country: Z,
12112
- countryRequired: !w,
12109
+ var C = r.props, O = C.defaultCountry, $ = C.onChange, x = C.addInternationalOption, w = C.international, A = C.limitMaxLength, M = C.countryCallingCodeEditable, H = C.metadata, _ = r.state, L = _.countries, F = _.phoneDigits, X = _.country, G = _.latestCountrySelectedByUser, W = K8(v, {
12110
+ prevPhoneDigits: F,
12111
+ country: X,
12112
+ countryRequired: !x,
12113
12113
  defaultCountry: O,
12114
12114
  latestCountrySelectedByUser: G,
12115
12115
  getAnyCountry: function() {
12116
12116
  return r.getFirstSupportedCountry({
12117
- countries: R
12117
+ countries: L
12118
12118
  });
12119
12119
  },
12120
- countries: R,
12121
- international: x,
12122
- limitMaxLength: _,
12120
+ countries: L,
12121
+ international: w,
12122
+ limitMaxLength: A,
12123
12123
  countryCallingCodeEditable: M,
12124
12124
  metadata: H
12125
- }), se = B.phoneDigits, le = B.country, ae = B.value, oe = {
12126
- phoneDigits: se,
12127
- value: ae,
12128
- country: le
12125
+ }), ae = W.phoneDigits, de = W.country, le = W.value, ie = {
12126
+ phoneDigits: ae,
12127
+ value: le,
12128
+ country: de
12129
12129
  };
12130
- G && ae && !Jt(ae, G, H) && (oe.latestCountrySelectedByUser = void 0), M === !1 && !ae && se === r.state.phoneDigits && (oe.forceRerender = {}), r.setState(
12131
- oe,
12130
+ G && le && !Jt(le, G, H) && (ie.latestCountrySelectedByUser = void 0), M === !1 && !le && ae === r.state.phoneDigits && (ie.forceRerender = {}), r.setState(
12131
+ ie,
12132
12132
  // Update the new `value` property.
12133
12133
  // Doing it after the `state` has been updated
12134
12134
  // because `onChange()` will trigger `getDerivedStateFromProps()`
12135
12135
  // with the new `value` which will be compared to `state.value` there.
12136
12136
  function() {
12137
- return $(ae);
12137
+ return $(le);
12138
12138
  }
12139
12139
  );
12140
12140
  }), dt(r, "_onFocus", function() {
@@ -12276,13 +12276,13 @@ var c7 = /* @__PURE__ */ function(e) {
12276
12276
  r.flags, r.flagComponent, r.flagUrl, r.addInternationalOption, r.internationalIcon, r.displayInitialValueAsLocalNumber, r.initialValueFormat, r.onCountryChange, r.limitMaxLength, r.countryCallingCodeEditable, r.focusInputOnCountrySelection, r.reset;
12277
12277
  var O = r.metadata, $ = r.international;
12278
12278
  r.locales;
12279
- var w = n7(r, t7), x = this.state, _ = x.country, M = x.countries, H = x.phoneDigits, A = x.isFocused, R = p ? d8 : f8, L = this.getCountrySelectOptions({
12279
+ var x = n7(r, t7), w = this.state, A = w.country, M = w.countries, H = w.phoneDigits, _ = w.isFocused, L = p ? d8 : f8, F = this.getCountrySelectOptions({
12280
12280
  countries: M
12281
12281
  });
12282
12282
  return /* @__PURE__ */ j.createElement(m, Qt({
12283
12283
  style: l,
12284
12284
  className: tr(s, "PhoneInput", {
12285
- "PhoneInput--focus": A,
12285
+ "PhoneInput--focus": _,
12286
12286
  "PhoneInput--disabled": o,
12287
12287
  "PhoneInput--readOnly": a
12288
12288
  })
@@ -12290,25 +12290,25 @@ var c7 = /* @__PURE__ */ function(e) {
12290
12290
  name: i ? "".concat(i, "Country") : void 0,
12291
12291
  "aria-label": C.country
12292
12292
  }, u, {
12293
- value: _,
12294
- options: L,
12293
+ value: A,
12294
+ options: F,
12295
12295
  onChange: this.onCountryChange,
12296
12296
  onFocus: this.onCountryFocus,
12297
12297
  onBlur: this.onCountryBlur,
12298
12298
  disabled: o || u && u.disabled,
12299
12299
  readOnly: a || u && u.readOnly,
12300
12300
  iconComponent: this.CountryIcon
12301
- })), /* @__PURE__ */ j.createElement(R, Qt({
12301
+ })), /* @__PURE__ */ j.createElement(L, Qt({
12302
12302
  ref: this.setInputRef,
12303
12303
  type: "tel",
12304
12304
  autoComplete: d
12305
- }, h, w, {
12305
+ }, h, x, {
12306
12306
  inputFormat: $ === !0 ? "INTERNATIONAL" : $ === !1 ? "NATIONAL" : "INTERNATIONAL_OR_NATIONAL",
12307
12307
  international: $ ? !0 : void 0,
12308
12308
  withCountryCallingCode: $ ? !0 : void 0,
12309
12309
  name: i,
12310
12310
  metadata: O,
12311
- country: _,
12311
+ country: A,
12312
12312
  value: H || "",
12313
12313
  onChange: this.onChange,
12314
12314
  onFocus: this.onFocus,
@@ -12316,7 +12316,7 @@ var c7 = /* @__PURE__ */ function(e) {
12316
12316
  disabled: o,
12317
12317
  readOnly: a,
12318
12318
  inputComponent: c,
12319
- className: tr("PhoneInputInput", h && h.className, w.className)
12319
+ className: tr("PhoneInputInput", h && h.className, x.className)
12320
12320
  })));
12321
12321
  }
12322
12322
  }], [{
@@ -13098,69 +13098,69 @@ const W7 = ({
13098
13098
  );
13099
13099
  be(() => {
13100
13100
  if (s) {
13101
- const A = O(s);
13102
- A && (w(A), u.current = s);
13101
+ const _ = O(s);
13102
+ _ && (x(_), u.current = s);
13103
13103
  }
13104
13104
  }, [s]);
13105
- const m = (A, R) => JSON.stringify(A) === JSON.stringify(R), v = (A, R) => Yt[A] < Yt[R] ? -1 : Yt[A] > Yt[R] ? 1 : 0, C = $7().sort(v).map((A) => ({
13106
- label: A + " +" + qr(A),
13107
- value: A
13108
- })), O = (A) => C.find((R) => R.value == A), [$, w] = me(() => {
13109
- const A = O(u.current);
13110
- return A || null;
13111
- }), x = (A) => {
13112
- u.current = A;
13113
- const R = O(A);
13114
- w(R), H(_.current);
13115
- }, _ = K(l ?? ""), M = (A) => {
13116
- const R = A.trim();
13117
- if (R && u.current) {
13118
- if (/^(\d)\1*$/.test(A.trim())) return !1;
13105
+ const m = (_, L) => JSON.stringify(_) === JSON.stringify(L), v = (_, L) => Yt[_] < Yt[L] ? -1 : Yt[_] > Yt[L] ? 1 : 0, C = $7().sort(v).map((_) => ({
13106
+ label: _ + " +" + qr(_),
13107
+ value: _
13108
+ })), O = (_) => C.find((L) => L.value == _), [$, x] = me(() => {
13109
+ const _ = O(u.current);
13110
+ return _ || null;
13111
+ }), w = (_) => {
13112
+ u.current = _;
13113
+ const L = O(_);
13114
+ x(L), H(A.current);
13115
+ }, A = K(l ?? ""), M = (_) => {
13116
+ const L = _.trim();
13117
+ if (L && u.current) {
13118
+ if (/^(\d)\1*$/.test(_.trim())) return !1;
13119
13119
  const G = `+${qr(
13120
13120
  u.current
13121
- )}${R}`;
13121
+ )}${L}`;
13122
13122
  return g7(G);
13123
13123
  }
13124
13124
  return !0;
13125
- }, H = (A, R = !1) => {
13125
+ }, H = (_, L = !1) => {
13126
13126
  if (!a) {
13127
13127
  const G = {
13128
- phoneNumber: A,
13128
+ phoneNumber: _,
13129
13129
  countryCode: u.current,
13130
13130
  error: void 0,
13131
13131
  id: d,
13132
- initialConsentChecked: R
13132
+ initialConsentChecked: L
13133
13133
  };
13134
13134
  r(G);
13135
13135
  }
13136
- A = A.trim();
13137
- const L = A ? M(A) ? void 0 : "invalid" : n ? "required" : void 0;
13138
- p(!(!h && L !== void 0));
13139
- const Z = {
13140
- phoneNumber: A,
13136
+ _ = _.trim();
13137
+ const F = _ ? M(_) ? void 0 : "invalid" : n ? "required" : void 0;
13138
+ p(!(!h && F !== void 0));
13139
+ const X = {
13140
+ phoneNumber: _,
13141
13141
  countryCode: u.current,
13142
- error: L,
13142
+ error: F,
13143
13143
  id: d,
13144
- initialConsentChecked: R
13144
+ initialConsentChecked: L
13145
13145
  };
13146
- r(Z);
13146
+ r(X);
13147
13147
  };
13148
13148
  return /* @__PURE__ */ N.jsx(N.Fragment, { children: /* @__PURE__ */ N.jsxs("div", { className: `${Pt.phoneWrapper} ${c?.trim() || ""}`, "data-testid": "phone-wrapper", children: [
13149
- /* @__PURE__ */ N.jsx("div", { className: `${Pt.countryCode} ouiCountryCode`, children: /* @__PURE__ */ N.jsx(q3, { selected: $, onSelect: x, "data-testid": "phone-select", themeColor: t, children: /* @__PURE__ */ N.jsx("div", { className: `${Pt.phonNumberList} ouiPhonNumberList`, children: /* @__PURE__ */ N.jsx(Y3, { setQuery: () => {
13150
- }, "data-testid": "phone-select-options", children: C.map((A) => /* @__PURE__ */ N.jsx(
13149
+ /* @__PURE__ */ N.jsx("div", { className: `${Pt.countryCode} ouiCountryCode`, children: /* @__PURE__ */ N.jsx(q3, { selected: $, onSelect: w, "data-testid": "phone-select", themeColor: t, children: /* @__PURE__ */ N.jsx("div", { className: `${Pt.phonNumberList} ouiPhonNumberList`, children: /* @__PURE__ */ N.jsx(Y3, { setQuery: () => {
13150
+ }, "data-testid": "phone-select-options", children: C.map((_) => /* @__PURE__ */ N.jsx(
13151
13151
  us,
13152
13152
  {
13153
13153
  disable: !1,
13154
- value: A.value,
13155
- className: ({ active: R }) => `${R || m($, A) ? Pt.active : ""}`,
13156
- "data-testid": `phone-select-option-${A.value}`,
13154
+ value: _.value,
13155
+ className: ({ active: L }) => `${L || m($, _) ? Pt.active : ""}`,
13156
+ "data-testid": `phone-select-option-${_.value}`,
13157
13157
  children: /* @__PURE__ */ N.jsx("div", { className: `${Pt.countryListText} ouiCountryListText`, children: /* @__PURE__ */ N.jsxs("span", { children: [
13158
- Yt[A.value],
13158
+ Yt[_.value],
13159
13159
  " +",
13160
- qr(A.value)
13160
+ qr(_.value)
13161
13161
  ] }) })
13162
13162
  },
13163
- A.value
13163
+ _.value
13164
13164
  )) }) }) }) }),
13165
13165
  /* @__PURE__ */ N.jsx("div", { className: `${Pt.phoneInputWrap} ouiPhoneInputWrap`, children: /* @__PURE__ */ N.jsx(
13166
13166
  s9,
@@ -13171,11 +13171,11 @@ const W7 = ({
13171
13171
  className: `${Pt.phoneInput} ${h && a ? Pt.serverError : ""} ouiPhoneInput`,
13172
13172
  id: d,
13173
13173
  value: l ?? "",
13174
- onBlur: (A) => {
13175
- _.current = A.target.value.trim();
13174
+ onBlur: (_) => {
13175
+ A.current = _.target.value.trim();
13176
13176
  },
13177
- onChange: (A) => {
13178
- _.current = A.target.value, H(_.current);
13177
+ onChange: (_) => {
13178
+ A.current = _.target.value, H(A.current);
13179
13179
  },
13180
13180
  "data-testid": "phone-input",
13181
13181
  themeColor: t