@oncehub/ui-react 1.3.2 → 1.3.4

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.
@@ -1,6 +1,7 @@
1
+ import "./index.css";
1
2
  import { jsx as O, Fragment as Ye, jsxs as we } from "react/jsx-runtime";
2
3
  import * as Pe from "react";
3
- import Y, { forwardRef as De, useState as Z, useEffect as X, useRef as P, useLayoutEffect as jr, Fragment as Le, isValidElement as qr, cloneElement as Hr, createElement as zr, createContext as je, useContext as We, useMemo as te, useReducer as On, createRef as Sn, useCallback as ze } from "react";
4
+ import Y, { forwardRef as De, useState as Z, useEffect as X, useRef as C, useLayoutEffect as jr, Fragment as Le, isValidElement as qr, cloneElement as Hr, createElement as zr, createContext as je, useContext as We, useMemo as te, useReducer as On, createRef as Sn, useCallback as ze } from "react";
4
5
  const Kr = "_button_6yspz_1", Gr = "_primary_6yspz_5", Yr = "_secondary_6yspz_12", Qr = "_small_6yspz_19", Xr = "_rounded_6yspz_22", Zr = "_medium_6yspz_26", Jr = "_large_6yspz_33", ei = "_squared_6yspz_40", ut = {
5
6
  button: Kr,
6
7
  primary: Gr,
@@ -100,7 +101,7 @@ const ti = "_checkboxLayout_yowbu_1", ni = "_checkboxLabel_yowbu_4", ri = "_chec
100
101
  }
101
102
  }
102
103
  const h = l ? Ce.checkboxDisabled : "", I = [Ce.checkboxLayout, Ce[n], h, o].filter(Boolean).join(" "), w = (g) => {
103
- g.key != "Enter" && (g.preventDefault(), f == null || f(g.target.checked), c(!s));
104
+ g.key != "Enter" && (g.preventDefault(), f?.(g.target.checked), c(!s));
104
105
  };
105
106
  return /* @__PURE__ */ O(Ye, { children: /* @__PURE__ */ O("div", { className: I, "data-testid": "checkbox", children: /* @__PURE__ */ we("label", { className: Ce.checkboxLabel, htmlFor: r, onClick: (g) => w(g), children: [
106
107
  /* @__PURE__ */ we(
@@ -168,14 +169,14 @@ const pi = "_textInputWrapper_stjey_1", bi = "_textInput_stjey_1", sn = {
168
169
  var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, y = {}, At = { exports: {} };
169
170
  (function(e, t) {
170
171
  (function(n, r) {
171
- var i = "1.0.36", l = "", o = "?", f = "function", p = "undefined", b = "object", v = "string", m = "major", s = "model", c = "name", a = "type", d = "vendor", u = "version", h = "architecture", I = "console", w = "mobile", g = "tablet", V = "smarttv", A = "wearable", q = "embedded", $ = 350, S = "Amazon", z = "Apple", ee = "ASUS", ne = "BlackBerry", C = "Browser", T = "Chrome", _ = "Edge", N = "Firefox", W = "Google", re = "Huawei", ie = "LG", pe = "Microsoft", me = "Motorola", le = "Opera", se = "Samsung", x = "Sharp", E = "Sony", M = "Xiaomi", he = "Zebra", Fe = "Facebook", tn = "Chromium OS", nn = "Mac OS", Vr = function(D, H) {
172
- var F = {};
172
+ var i = "1.0.37", l = "", o = "?", f = "function", p = "undefined", b = "object", v = "string", m = "major", s = "model", c = "name", a = "type", d = "vendor", u = "version", h = "architecture", I = "console", w = "mobile", g = "tablet", V = "smarttv", F = "wearable", q = "embedded", $ = 500, S = "Amazon", z = "Apple", ee = "ASUS", ne = "BlackBerry", _ = "Browser", T = "Chrome", L = "Edge", A = "Firefox", W = "Google", re = "Huawei", ie = "LG", pe = "Microsoft", me = "Motorola", se = "Opera", oe = "Samsung", x = "Sharp", E = "Sony", M = "Xiaomi", he = "Zebra", Fe = "Facebook", tn = "Chromium OS", nn = "Mac OS", Vr = function(D, H) {
173
+ var N = {};
173
174
  for (var K in D)
174
- H[K] && H[K].length % 2 === 0 ? F[K] = H[K].concat(D[K]) : F[K] = D[K];
175
- return F;
175
+ H[K] && H[K].length % 2 === 0 ? N[K] = H[K].concat(D[K]) : N[K] = D[K];
176
+ return N;
176
177
  }, st = function(D) {
177
- for (var H = {}, F = 0; F < D.length; F++)
178
- H[D[F].toUpperCase()] = D[F];
178
+ for (var H = {}, N = 0; N < D.length; N++)
179
+ H[D[N].toUpperCase()] = D[N];
179
180
  return H;
180
181
  }, rn = function(D, H) {
181
182
  return typeof D === v ? Ze(H).indexOf(Ze(D)) !== -1 : !1;
@@ -187,36 +188,36 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
187
188
  if (typeof D === v)
188
189
  return D = D.replace(/^\s\s*/, l), typeof H === p ? D : D.substring(0, $);
189
190
  }, Je = function(D, H) {
190
- for (var F = 0, K, Ae, ke, B, R, Te; F < H.length && !R; ) {
191
- var _t = H[F], ln = H[F + 1];
191
+ for (var N = 0, K, Ae, ke, B, R, Te; N < H.length && !R; ) {
192
+ var _t = H[N], ln = H[N + 1];
192
193
  for (K = Ae = 0; K < _t.length && !R && _t[K]; )
193
194
  if (R = _t[K++].exec(D), R)
194
195
  for (ke = 0; ke < ln.length; ke++)
195
196
  Te = R[++Ae], B = ln[ke], typeof B === b && B.length > 0 ? B.length === 2 ? typeof B[1] == f ? this[B[0]] = B[1].call(this, Te) : this[B[0]] = B[1] : B.length === 3 ? typeof B[1] === f && !(B[1].exec && B[1].test) ? this[B[0]] = Te ? B[1].call(this, Te, B[2]) : r : this[B[0]] = Te ? Te.replace(B[1], B[2]) : r : B.length === 4 && (this[B[0]] = Te ? B[3].call(this, Te.replace(B[1], B[2])) : r) : this[B] = Te || r;
196
- F += 2;
197
+ N += 2;
197
198
  }
198
199
  }, It = function(D, H) {
199
- for (var F in H)
200
- if (typeof H[F] === b && H[F].length > 0) {
201
- for (var K = 0; K < H[F].length; K++)
202
- if (rn(H[F][K], D))
203
- return F === o ? r : F;
204
- } else if (rn(H[F], D))
205
- return F === o ? r : F;
200
+ for (var N in H)
201
+ if (typeof H[N] === b && H[N].length > 0) {
202
+ for (var K = 0; K < H[N].length; K++)
203
+ if (rn(H[N][K], D))
204
+ return N === o ? r : N;
205
+ } else if (rn(H[N], D))
206
+ return N === o ? r : N;
206
207
  return D;
207
- }, Ur = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, on = { 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" }, an = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [u, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [u, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, u], [/opios[\/ ]+([\w\.]+)/i], [u, [c, le + " Mini"]], [/\bopr\/([\w\.]+)/i], [u, [c, le]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, u], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [u, [c, "UC" + C]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [u, [c, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [u, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [u, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [u, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [u, [c, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + C], u], [/\bfocus\/([\w\.]+)/i], [u, [c, N + " Focus"]], [/\bopt\/([\w\.]+)/i], [u, [c, le + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [u, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [u, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [u, [c, le + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [u, [c, "MIUI " + C]], [/fxios\/([-\w\.]+)/i], [u, [c, N]], [/\bqihu|(qi?ho?o?|360)browser/i], [[c, "360 " + C]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1 " + C], u], [/(comodo_dragon)\/([\w\.]+)/i], [[c, /_/g, " "], u], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [c, u], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, Fe], u], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [c, u], [/\bgsa\/([\w\.]+) .*safari\//i], [u, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [u, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [u, [c, T + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, T + " WebView"], u], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [u, [c, "Android " + C]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, u], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [u, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [u, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [u, It, Ur]], [/(webkit|khtml)\/([\w\.]+)/i], [c, u], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], u], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [u, [c, N + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [c, u], [/(cobalt)\/([\w\.]+)/i], [c, [u, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[h, "amd64"]], [/(ia32(?=;))/i], [[h, Ze]], [/((?:i[346]|x)86)[;\)]/i], [[h, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[h, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[h, "armhf"]], [/windows (ce|mobile); ppc;/i], [[h, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[h, /ower/, l, Ze]], [/(sun4\w)[;\)]/i], [[h, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[h, Ze]]], 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], [s, [d, se], [a, g]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [s, [d, se], [a, w]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [s, [d, z], [a, w]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [s, [d, z], [a, g]], [/(macintosh);/i], [s, [d, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [s, [d, x], [a, w]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [s, [d, re], [a, g]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [s, [d, re], [a, w]], [/\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, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[s, /_/g, " "], [d, M], [a, w]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[s, /_/g, " "], [d, M], [a, g]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [s, [d, "OPPO"], [a, w]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [s, [d, "Vivo"], [a, w]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [s, [d, "Realme"], [a, w]], [/\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], [s, [d, me], [a, w]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [s, [d, me], [a, g]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [s, [d, ie], [a, g]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [s, [d, ie], [a, w]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [s, [d, "Lenovo"], [a, g]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[s, /_/g, " "], [d, "Nokia"], [a, w]], [/(pixel c)\b/i], [s, [d, W], [a, g]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [s, [d, W], [a, w]], [/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], [s, [d, E], [a, w]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[s, "Xperia Tablet"], [d, E], [a, g]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [s, [d, "OnePlus"], [a, w]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [s, [d, S], [a, g]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[s, /(.+)/g, "Fire Phone $1"], [d, S], [a, w]], [/(playbook);[-\w\),; ]+(rim)/i], [s, d, [a, g]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [s, [d, ne], [a, w]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [s, [d, ee], [a, g]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [s, [d, ee], [a, w]], [/(nexus 9)/i], [s, [d, "HTC"], [a, g]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [s, /_/g, " "], [a, w]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [s, [d, "Acer"], [a, g]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [s, [d, "Meizu"], [a, w]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, s, [a, w]], [/(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], [d, s, [a, g]], [/(surface duo)/i], [s, [d, pe], [a, g]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [s, [d, "Fairphone"], [a, w]], [/(u304aa)/i], [s, [d, "AT&T"], [a, w]], [/\bsie-(\w*)/i], [s, [d, "Siemens"], [a, w]], [/\b(rct\w+) b/i], [s, [d, "RCA"], [a, g]], [/\b(venue[\d ]{2,7}) b/i], [s, [d, "Dell"], [a, g]], [/\b(q(?:mv|ta)\w+) b/i], [s, [d, "Verizon"], [a, g]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [s, [d, "Barnes & Noble"], [a, g]], [/\b(tm\d{3}\w+) b/i], [s, [d, "NuVision"], [a, g]], [/\b(k88) b/i], [s, [d, "ZTE"], [a, g]], [/\b(nx\d{3}j) b/i], [s, [d, "ZTE"], [a, w]], [/\b(gen\d{3}) b.+49h/i], [s, [d, "Swiss"], [a, w]], [/\b(zur\d{3}) b/i], [s, [d, "Swiss"], [a, g]], [/\b((zeki)?tb.*\b) b/i], [s, [d, "Zeki"], [a, g]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], s, [a, g]], [/\b(ns-?\w{0,9}) b/i], [s, [d, "Insignia"], [a, g]], [/\b((nxa|next)-?\w{0,9}) b/i], [s, [d, "NextBook"], [a, g]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], s, [a, w]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], s, [a, w]], [/\b(ph-1) /i], [s, [d, "Essential"], [a, w]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [s, [d, "Envizen"], [a, g]], [/\b(trio[-\w\. ]+) b/i], [s, [d, "MachSpeed"], [a, g]], [/\btu_(1491) b/i], [s, [d, "Rotor"], [a, g]], [/(shield[\w ]+) b/i], [s, [d, "Nvidia"], [a, g]], [/(sprint) (\w+)/i], [d, s, [a, w]], [/(kin\.[onetw]{3})/i], [[s, /\./g, " "], [d, pe], [a, w]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [s, [d, he], [a, g]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [s, [d, he], [a, w]], [/smart-tv.+(samsung)/i], [d, [a, V]], [/hbbtv.+maple;(\d+)/i], [[s, /^/, "SmartTV"], [d, se], [a, V]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, ie], [a, V]], [/(apple) ?tv/i], [d, [s, z + " TV"], [a, V]], [/crkey/i], [[s, T + "cast"], [d, W], [a, V]], [/droid.+aft(\w+)( bui|\))/i], [s, [d, S], [a, V]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [s, [d, x], [a, V]], [/(bravia[\w ]+)( bui|\))/i], [s, [d, E], [a, V]], [/(mitv-\w{5}) bui/i], [s, [d, M], [a, V]], [/Hbbtv.*(technisat) (.*);/i], [d, s, [a, V]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, Et], [s, Et], [a, V]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, V]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, s, [a, I]], [/droid.+; (shield) bui/i], [s, [d, "Nvidia"], [a, I]], [/(playstation [345portablevi]+)/i], [s, [d, E], [a, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [s, [d, pe], [a, I]], [/((pebble))app/i], [d, s, [a, A]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [s, [d, z], [a, A]], [/droid.+; (glass) \d/i], [s, [d, W], [a, A]], [/droid.+; (wt63?0{2,3})\)/i], [s, [d, he], [a, A]], [/(quest( 2| pro)?)/i], [s, [d, Fe], [a, A]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [a, q]], [/(aeobc)\b/i], [s, [d, S], [a, q]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [s, [a, w]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [s, [a, g]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, g]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, w]], [/(android[-\w\. ]{0,9});.+buil/i], [s, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [u, [c, _ + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [u, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, u], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [u, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, u], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [c, [u, It, on]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[c, "Windows"], [u, It, on]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[u, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, nn], [u, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [u, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, u], [/\(bb(10);/i], [u, [c, ne]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [u, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [u, [c, N + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [u, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [u, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [u, [c, T + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, tn], u], [/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], [c, u], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], u], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, u]] }, Oe = function(D, H) {
208
+ }, Ur = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, on = { 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" }, an = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [u, [c, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [u, [c, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [c, u], [/opios[\/ ]+([\w\.]+)/i], [u, [c, se + " Mini"]], [/\bopr\/([\w\.]+)/i], [u, [c, se]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [u, [c, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [c, u], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [u, [c, "UC" + _]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [u, [c, "WeChat"]], [/konqueror\/([\w\.]+)/i], [u, [c, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [u, [c, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [u, [c, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [u, [c, "Smart Lenovo " + _]], [/(avast|avg)\/([\w\.]+)/i], [[c, /(.+)/, "$1 Secure " + _], u], [/\bfocus\/([\w\.]+)/i], [u, [c, A + " Focus"]], [/\bopt\/([\w\.]+)/i], [u, [c, se + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [u, [c, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [u, [c, "Dolphin"]], [/coast\/([\w\.]+)/i], [u, [c, se + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [u, [c, "MIUI " + _]], [/fxios\/([-\w\.]+)/i], [u, [c, A]], [/\bqihu|(qi?ho?o?|360)browser/i], [[c, "360 " + _]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[c, /(.+)/, "$1 " + _], u], [/samsungbrowser\/([\w\.]+)/i], [u, [c, oe + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[c, /_/g, " "], u], [/metasr[\/ ]?([\d\.]+)/i], [u, [c, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[c, "Sogou Mobile"], u], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [c, u], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [c], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[c, Fe], u], [/(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, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [c, u], [/\bgsa\/([\w\.]+) .*safari\//i], [u, [c, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [u, [c, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [u, [c, T + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[c, T + " WebView"], u], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [u, [c, "Android " + _]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [c, u], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [u, [c, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [u, c], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [c, [u, It, Ur]], [/(webkit|khtml)\/([\w\.]+)/i], [c, u], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[c, "Netscape"], u], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [u, [c, A + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\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|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [c, u], [/(cobalt)\/([\w\.]+)/i], [c, [u, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[h, "amd64"]], [/(ia32(?=;))/i], [[h, Ze]], [/((?:i[346]|x)86)[;\)]/i], [[h, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[h, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[h, "armhf"]], [/windows (ce|mobile); ppc;/i], [[h, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[h, /ower/, l, Ze]], [/(sun4\w)[;\)]/i], [[h, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[h, Ze]]], 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], [s, [d, oe], [a, g]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [s, [d, oe], [a, w]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [s, [d, z], [a, w]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [s, [d, z], [a, g]], [/(macintosh);/i], [s, [d, z]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [s, [d, x], [a, w]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [s, [d, re], [a, g]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [s, [d, re], [a, w]], [/\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)?)(?: bui|\))/i], [[s, /_/g, " "], [d, M], [a, w]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[s, /_/g, " "], [d, M], [a, g]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [s, [d, "OPPO"], [a, w]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [s, [d, "Vivo"], [a, w]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [s, [d, "Realme"], [a, w]], [/\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], [s, [d, me], [a, w]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [s, [d, me], [a, g]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [s, [d, ie], [a, g]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [s, [d, ie], [a, w]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [s, [d, "Lenovo"], [a, g]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[s, /_/g, " "], [d, "Nokia"], [a, w]], [/(pixel c)\b/i], [s, [d, W], [a, g]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [s, [d, W], [a, w]], [/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], [s, [d, E], [a, w]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[s, "Xperia Tablet"], [d, E], [a, g]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [s, [d, "OnePlus"], [a, w]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [s, [d, S], [a, g]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[s, /(.+)/g, "Fire Phone $1"], [d, S], [a, w]], [/(playbook);[-\w\),; ]+(rim)/i], [s, d, [a, g]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [s, [d, ne], [a, w]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [s, [d, ee], [a, g]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [s, [d, ee], [a, w]], [/(nexus 9)/i], [s, [d, "HTC"], [a, g]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [s, /_/g, " "], [a, w]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [s, [d, "Acer"], [a, g]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [s, [d, "Meizu"], [a, w]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [s, [d, "Ulefone"], [a, w]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, s, [a, w]], [/(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], [d, s, [a, g]], [/(surface duo)/i], [s, [d, pe], [a, g]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [s, [d, "Fairphone"], [a, w]], [/(u304aa)/i], [s, [d, "AT&T"], [a, w]], [/\bsie-(\w*)/i], [s, [d, "Siemens"], [a, w]], [/\b(rct\w+) b/i], [s, [d, "RCA"], [a, g]], [/\b(venue[\d ]{2,7}) b/i], [s, [d, "Dell"], [a, g]], [/\b(q(?:mv|ta)\w+) b/i], [s, [d, "Verizon"], [a, g]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [s, [d, "Barnes & Noble"], [a, g]], [/\b(tm\d{3}\w+) b/i], [s, [d, "NuVision"], [a, g]], [/\b(k88) b/i], [s, [d, "ZTE"], [a, g]], [/\b(nx\d{3}j) b/i], [s, [d, "ZTE"], [a, w]], [/\b(gen\d{3}) b.+49h/i], [s, [d, "Swiss"], [a, w]], [/\b(zur\d{3}) b/i], [s, [d, "Swiss"], [a, g]], [/\b((zeki)?tb.*\b) b/i], [s, [d, "Zeki"], [a, g]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], s, [a, g]], [/\b(ns-?\w{0,9}) b/i], [s, [d, "Insignia"], [a, g]], [/\b((nxa|next)-?\w{0,9}) b/i], [s, [d, "NextBook"], [a, g]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], s, [a, w]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], s, [a, w]], [/\b(ph-1) /i], [s, [d, "Essential"], [a, w]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [s, [d, "Envizen"], [a, g]], [/\b(trio[-\w\. ]+) b/i], [s, [d, "MachSpeed"], [a, g]], [/\btu_(1491) b/i], [s, [d, "Rotor"], [a, g]], [/(shield[\w ]+) b/i], [s, [d, "Nvidia"], [a, g]], [/(sprint) (\w+)/i], [d, s, [a, w]], [/(kin\.[onetw]{3})/i], [[s, /\./g, " "], [d, pe], [a, w]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [s, [d, he], [a, g]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [s, [d, he], [a, w]], [/smart-tv.+(samsung)/i], [d, [a, V]], [/hbbtv.+maple;(\d+)/i], [[s, /^/, "SmartTV"], [d, oe], [a, V]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, ie], [a, V]], [/(apple) ?tv/i], [d, [s, z + " TV"], [a, V]], [/crkey/i], [[s, T + "cast"], [d, W], [a, V]], [/droid.+aft(\w+)( bui|\))/i], [s, [d, S], [a, V]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [s, [d, x], [a, V]], [/(bravia[\w ]+)( bui|\))/i], [s, [d, E], [a, V]], [/(mitv-\w{5}) bui/i], [s, [d, M], [a, V]], [/Hbbtv.*(technisat) (.*);/i], [d, s, [a, V]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, Et], [s, Et], [a, V]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, V]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, s, [a, I]], [/droid.+; (shield) bui/i], [s, [d, "Nvidia"], [a, I]], [/(playstation [345portablevi]+)/i], [s, [d, E], [a, I]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [s, [d, pe], [a, I]], [/((pebble))app/i], [d, s, [a, F]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [s, [d, z], [a, F]], [/droid.+; (glass) \d/i], [s, [d, W], [a, F]], [/droid.+; (wt63?0{2,3})\)/i], [s, [d, he], [a, F]], [/(quest( 2| pro)?)/i], [s, [d, Fe], [a, F]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [a, q]], [/(aeobc)\b/i], [s, [d, S], [a, q]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [s, [a, w]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [s, [a, g]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, g]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, w]], [/(android[-\w\. ]{0,9});.+buil/i], [s, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [u, [c, L + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [u, [c, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [c, u], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [u, c]], os: [[/microsoft (windows) (vista|xp)/i], [c, u], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [c, [u, It, on]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[u, It, on], [c, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[u, /_/g, "."], [c, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[c, nn], [u, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [u, c], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [c, u], [/\(bb(10);/i], [u, [c, ne]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [u, [c, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [u, [c, A + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [u, [c, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [u, [c, "watchOS"]], [/crkey\/([\d\.]+)/i], [u, [c, T + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[c, tn], u], [/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], [c, u], [/(sunos) ?([\w\.\d]*)/i], [[c, "Solaris"], u], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [c, u]] }, Oe = function(D, H) {
208
209
  if (typeof D === b && (H = D, D = r), !(this instanceof Oe))
209
210
  return new Oe(D, H).getResult();
210
- var F = typeof n !== p && n.navigator ? n.navigator : r, K = D || (F && F.userAgent ? F.userAgent : l), Ae = F && F.userAgentData ? F.userAgentData : r, ke = H ? Vr(an, H) : an, B = F && F.userAgent == K;
211
+ var N = typeof n !== p && n.navigator ? n.navigator : r, K = D || (N && N.userAgent ? N.userAgent : l), Ae = N && N.userAgentData ? N.userAgentData : r, ke = H ? Vr(an, H) : an, B = N && N.userAgent == K;
211
212
  return this.getBrowser = function() {
212
213
  var R = {};
213
- return R[c] = r, R[u] = r, Je.call(R, K, ke.browser), R[m] = Br(R[u]), B && F && F.brave && typeof F.brave.isBrave == f && (R[c] = "Brave"), R;
214
+ return R[c] = r, R[u] = r, Je.call(R, K, ke.browser), R[m] = Br(R[u]), B && N && N.brave && typeof N.brave.isBrave == f && (R[c] = "Brave"), R;
214
215
  }, this.getCPU = function() {
215
216
  var R = {};
216
217
  return R[h] = r, Je.call(R, K, ke.cpu), R;
217
218
  }, this.getDevice = function() {
218
219
  var R = {};
219
- return R[d] = r, R[s] = r, R[a] = r, Je.call(R, K, ke.device), B && !R[a] && Ae && Ae.mobile && (R[a] = w), B && R[s] == "Macintosh" && F && typeof F.standalone !== p && F.maxTouchPoints && F.maxTouchPoints > 2 && (R[s] = "iPad", R[a] = g), R;
220
+ return R[d] = r, R[s] = r, R[a] = r, Je.call(R, K, ke.device), B && !R[a] && Ae && Ae.mobile && (R[a] = w), B && R[s] == "Macintosh" && N && typeof N.standalone !== p && N.maxTouchPoints && N.maxTouchPoints > 2 && (R[s] = "iPad", R[a] = g), R;
220
221
  }, this.getEngine = function() {
221
222
  var R = {};
222
223
  return R[c] = r, R[u] = r, Je.call(R, K, ke.engine), R;
@@ -231,7 +232,7 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
231
232
  return K = typeof R === v && R.length > $ ? Et(R, $) : R, this;
232
233
  }, this.setUA(K), this;
233
234
  };
234
- Oe.VERSION = i, Oe.BROWSER = st([c, u, m]), Oe.CPU = st([h]), Oe.DEVICE = st([s, d, a, I, w, V, g, A, q]), Oe.ENGINE = Oe.OS = st([c, u]), e.exports && (t = e.exports = Oe), t.UAParser = Oe;
235
+ Oe.VERSION = i, Oe.BROWSER = st([c, u, m]), Oe.CPU = st([h]), Oe.DEVICE = st([s, d, a, I, w, V, g, F, q]), Oe.ENGINE = Oe.OS = st([c, u]), e.exports && (t = e.exports = Oe), t.UAParser = Oe;
235
236
  var He = typeof n !== p && (n.jQuery || n.Zepto);
236
237
  if (He && !He.ua) {
237
238
  var ct = new Oe();
@@ -240,8 +241,8 @@ var vi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
240
241
  }, He.ua.set = function(D) {
241
242
  ct.setUA(D);
242
243
  var H = ct.getResult();
243
- for (var F in H)
244
- He.ua[F] = H[F];
244
+ for (var N in H)
245
+ He.ua[N] = H[N];
245
246
  };
246
247
  }
247
248
  })(typeof window == "object" ? window : vi);
@@ -512,7 +513,7 @@ var ce = {
512
513
  }
513
514
  }, Ni = function(t) {
514
515
  return En(t);
515
- }, L = function(t) {
516
+ }, P = function(t) {
516
517
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
517
518
  return t || n;
518
519
  }, Ut = function() {
@@ -523,60 +524,60 @@ var ce = {
523
524
  }, Fi = function(t, n, r, i, l) {
524
525
  return {
525
526
  isBrowser: t,
526
- browserMajorVersion: L(n.major),
527
- browserFullVersion: L(n.version),
528
- browserName: L(n.name),
529
- engineName: L(r.name),
530
- engineVersion: L(r.version),
531
- osName: L(i.name),
532
- osVersion: L(i.version),
533
- userAgent: L(l)
527
+ browserMajorVersion: P(n.major),
528
+ browserFullVersion: P(n.version),
529
+ browserName: P(n.name),
530
+ engineName: P(r.name),
531
+ engineVersion: P(r.version),
532
+ osName: P(i.name),
533
+ osVersion: P(i.version),
534
+ userAgent: P(l)
534
535
  };
535
536
  }, fn = function(t, n, r, i) {
536
537
  return gi({}, t, {
537
- vendor: L(n.vendor),
538
- model: L(n.model),
539
- os: L(r.name),
540
- osVersion: L(r.version),
541
- ua: L(i)
538
+ vendor: P(n.vendor),
539
+ model: P(n.model),
540
+ os: P(r.name),
541
+ osVersion: P(r.version),
542
+ ua: P(i)
542
543
  });
543
544
  }, Ai = function(t, n, r, i) {
544
545
  return {
545
546
  isSmartTV: t,
546
- engineName: L(n.name),
547
- engineVersion: L(n.version),
548
- osName: L(r.name),
549
- osVersion: L(r.version),
550
- userAgent: L(i)
547
+ engineName: P(n.name),
548
+ engineVersion: P(n.version),
549
+ osName: P(r.name),
550
+ osVersion: P(r.version),
551
+ userAgent: P(i)
551
552
  };
552
553
  }, $i = function(t, n, r, i) {
553
554
  return {
554
555
  isConsole: t,
555
- engineName: L(n.name),
556
- engineVersion: L(n.version),
557
- osName: L(r.name),
558
- osVersion: L(r.version),
559
- userAgent: L(i)
556
+ engineName: P(n.name),
557
+ engineVersion: P(n.version),
558
+ osName: P(r.name),
559
+ osVersion: P(r.version),
560
+ userAgent: P(i)
560
561
  };
561
562
  }, Mi = function(t, n, r, i) {
562
563
  return {
563
564
  isWearable: t,
564
- engineName: L(n.name),
565
- engineVersion: L(n.version),
566
- osName: L(r.name),
567
- osVersion: L(r.version),
568
- userAgent: L(i)
565
+ engineName: P(n.name),
566
+ engineVersion: P(n.version),
567
+ osName: P(r.name),
568
+ osVersion: P(r.version),
569
+ userAgent: P(i)
569
570
  };
570
571
  }, Di = function(t, n, r, i, l) {
571
572
  return {
572
573
  isEmbedded: t,
573
- vendor: L(n.vendor),
574
- model: L(n.model),
575
- engineName: L(r.name),
576
- engineVersion: L(r.version),
577
- osName: L(i.name),
578
- osVersion: L(i.version),
579
- userAgent: L(l)
574
+ vendor: P(n.vendor),
575
+ model: P(n.model),
576
+ engineName: P(r.name),
577
+ engineVersion: P(r.version),
578
+ osName: P(i.name),
579
+ osVersion: P(i.version),
580
+ userAgent: P(l)
580
581
  };
581
582
  };
582
583
  function Wi(e) {
@@ -620,13 +621,13 @@ var _n = function(t) {
620
621
  return n === ce.Embedded;
621
622
  }, An = function(t) {
622
623
  var n = t.vendor;
623
- return L(n);
624
+ return P(n);
624
625
  }, $n = function(t) {
625
626
  var n = t.model;
626
- return L(n);
627
+ return P(n);
627
628
  }, Mn = function(t) {
628
629
  var n = t.type;
629
- return L(n, "browser");
630
+ return P(n, "browser");
630
631
  }, Dn = function(t) {
631
632
  var n = t.name;
632
633
  return n === Qe.Android;
@@ -644,10 +645,10 @@ var _n = function(t) {
644
645
  return n === Qe.IOS;
645
646
  }, jn = function(t) {
646
647
  var n = t.version;
647
- return L(n);
648
+ return P(n);
648
649
  }, qn = function(t) {
649
650
  var n = t.name;
650
- return L(n);
651
+ return P(n);
651
652
  }, Hn = function(t) {
652
653
  var n = t.name;
653
654
  return n === be.Chrome;
@@ -683,19 +684,19 @@ var _n = function(t) {
683
684
  return n === be.SamsungBrowser;
684
685
  }, tr = function(t) {
685
686
  var n = t.version;
686
- return L(n);
687
+ return P(n);
687
688
  }, nr = function(t) {
688
689
  var n = t.major;
689
- return L(n);
690
+ return P(n);
690
691
  }, rr = function(t) {
691
692
  var n = t.name;
692
- return L(n);
693
+ return P(n);
693
694
  }, ir = function(t) {
694
695
  var n = t.name;
695
- return L(n);
696
+ return P(n);
696
697
  }, or = function(t) {
697
698
  var n = t.version;
698
- return L(n);
699
+ return P(n);
699
700
  }, ar = function() {
700
701
  var t = Ut(), n = t && t.userAgent && t.userAgent.toLowerCase();
701
702
  return typeof n == "string" ? /electron/.test(n) : !1;
@@ -711,7 +712,7 @@ var _n = function(t) {
711
712
  }, cr = function() {
712
713
  return jt("iPod");
713
714
  }, ur = function(t) {
714
- return L(t);
715
+ return P(t);
715
716
  };
716
717
  function dr(e) {
717
718
  var t = e || In, n = t.device, r = t.browser, i = t.os, l = t.engine, o = t.ua;
@@ -961,7 +962,7 @@ y.useDeviceData = Or;
961
962
  y.useDeviceSelectors = Fo;
962
963
  y.useMobileOrientation = No;
963
964
  y.withOrientationChange = Ro;
964
- const ts = Y.memo(
965
+ const ns = Y.memo(
965
966
  De(
966
967
  ({ themeColor: e = "", onSubmit: t, style: n = {}, className: r = "", onInput: i, onFocus: l, onBlur: o, ...f }, p) => {
967
968
  const [b, v] = Z(!0), [m, s] = Z(!1);
@@ -971,7 +972,7 @@ const ts = Y.memo(
971
972
  const c = (w) => {
972
973
  !b && w.key === "Enter" && !w.shiftKey && t && (w.preventDefault(), t());
973
974
  }, a = (w) => {
974
- i == null || i(w), w.target.style.height = "40px", w.target.style.height = 2 + w.target.scrollHeight + "px";
975
+ i?.(w), w.target.style.height = "40px", w.target.style.height = 2 + w.target.scrollHeight + "px";
975
976
  };
976
977
  let d = {};
977
978
  const u = [sn.textInput, r].filter(Boolean).join(" "), h = () => {
@@ -997,7 +998,7 @@ const ts = Y.memo(
997
998
  ) });
998
999
  }
999
1000
  )
1000
- ), $o = "_multiSelectContainer_eqvx1_1", Mo = "_listOptionsWrap_eqvx1_4", Do = "_selectedValuesWrap_eqvx1_7", Wo = "_selectedValues_eqvx1_7", Vo = "_focused_eqvx1_13", Bo = "_dropDownIcon_eqvx1_16", Uo = "_optionsListContainer_eqvx1_19", jo = "_top_eqvx1_22", qo = "_optionsListWrap_eqvx1_25", Ho = "_searchInputWrap_eqvx1_28", zo = "_searchInput_eqvx1_28", Ko = "_optionsList_eqvx1_19", Go = "_optionsListCheckbox_eqvx1_37", Yo = "_btnContainer_eqvx1_46", oe = {
1001
+ ), $o = "_multiSelectContainer_eqvx1_1", Mo = "_listOptionsWrap_eqvx1_4", Do = "_selectedValuesWrap_eqvx1_7", Wo = "_selectedValues_eqvx1_7", Vo = "_focused_eqvx1_13", Bo = "_dropDownIcon_eqvx1_16", Uo = "_optionsListContainer_eqvx1_19", jo = "_top_eqvx1_22", qo = "_optionsListWrap_eqvx1_25", Ho = "_searchInputWrap_eqvx1_28", zo = "_searchInput_eqvx1_28", Ko = "_optionsList_eqvx1_19", Go = "_optionsListCheckbox_eqvx1_37", Yo = "_btnContainer_eqvx1_46", ae = {
1001
1002
  multiSelectContainer: $o,
1002
1003
  listOptionsWrap: Mo,
1003
1004
  selectedValuesWrap: Do,
@@ -1012,7 +1013,7 @@ const ts = Y.memo(
1012
1013
  optionsList: Ko,
1013
1014
  optionsListCheckbox: Go,
1014
1015
  btnContainer: Yo
1015
- }, ns = ({
1016
+ }, rs = ({
1016
1017
  options: e,
1017
1018
  checkedValue: t,
1018
1019
  onSelectionChange: n,
@@ -1022,59 +1023,54 @@ const ts = Y.memo(
1022
1023
  className: o = "",
1023
1024
  style: f = {}
1024
1025
  }) => {
1025
- const [p, b] = Z(e), [v, m] = Z(t), [s, c] = Z(""), [a, d] = Z(!1), u = P(null), h = P([]), I = P(null), w = P(null), [g, V] = Z(-1), [A, q] = Z("bottom");
1026
+ const [p, b] = Z(e), [v, m] = Z(t), [s, c] = Z(""), [a, d] = Z(!1), u = C(null), h = C([]), I = C(null), w = C(null), [g, V] = Z(-1), [F, q] = Z("bottom");
1026
1027
  let $ = {};
1027
1028
  X(() => {
1028
- const T = (_) => {
1029
- u.current && !u.current.contains(_.target) && (d(!1), c(""));
1029
+ const T = (L) => {
1030
+ u.current && !u.current.contains(L.target) && (d(!1), c(""));
1030
1031
  };
1031
1032
  return document.addEventListener("mousedown", T), () => {
1032
1033
  document.removeEventListener("mousedown", T);
1033
1034
  };
1034
1035
  }, []), X(() => {
1035
1036
  if (u.current) {
1036
- const T = u.current.getBoundingClientRect(), _ = window.innerHeight;
1037
- T.bottom + 280 > _ ? q("top") : q("bottom");
1037
+ const T = u.current.getBoundingClientRect(), L = window.innerHeight;
1038
+ T.bottom + 280 > L ? q("top") : q("bottom");
1038
1039
  }
1039
1040
  }, [a]), X(() => {
1040
- const T = e.filter((_) => _.text.toLowerCase().includes(s.toLowerCase()));
1041
+ const T = e.filter((L) => L.text.toLowerCase().includes(s.toLowerCase()));
1041
1042
  b(T);
1042
1043
  }, [e, s]);
1043
1044
  const S = (T) => {
1044
- const N = v.includes(T) ? v.filter((re) => re !== T) : [...v, T];
1045
- (i === void 0 || N.length <= i) && (m(N), n(N));
1045
+ const A = v.includes(T) ? v.filter((re) => re !== T) : [...v, T];
1046
+ (i === void 0 || A.length <= i) && (m(A), n(A));
1046
1047
  }, z = v.map((T) => {
1047
- const _ = e.find((N) => N.id === T);
1048
- return _ && _.text !== null ? _.text : "";
1048
+ const L = e.find((A) => A.id === T);
1049
+ return L && L.text !== null ? L.text : "";
1049
1050
  }).filter((T) => T !== "").join(", "), ee = (T) => {
1050
- const _ = e.find((N) => N.id === T);
1051
- if (_ && !_.disabled && (i === void 0 || v.length <= i)) {
1052
- const N = h.current[T];
1053
- N == null || N.click();
1054
- }
1051
+ const L = e.find((A) => A.id === T);
1052
+ L && !L.disabled && (i === void 0 || v.length <= i) && h.current[T]?.click();
1055
1053
  }, ne = (T) => {
1056
1054
  d(T), !a && p.length > 6 ? setTimeout(() => {
1057
- var _;
1058
- (_ = I.current) == null || _.focus();
1055
+ I.current?.focus();
1059
1056
  }, 0) : setTimeout(() => {
1060
- var N;
1061
- const _ = (N = w.current) == null ? void 0 : N.querySelector(`.${oe.optionsList}`);
1062
- _ && _.focus();
1057
+ const L = w.current?.querySelector(`.${ae.optionsList}`);
1058
+ L && L.focus();
1063
1059
  }, 0);
1064
- }, C = (T) => {
1065
- const { key: _ } = T;
1066
- if (_ === "ArrowDown" || _ === "ArrowUp") {
1060
+ }, _ = (T) => {
1061
+ const { key: L } = T;
1062
+ if (L === "ArrowDown" || L === "ArrowUp") {
1067
1063
  T.preventDefault();
1068
- let N = g;
1069
- if (_ === "ArrowDown" ? N = Math.min(g + 1, p.length - 1) : _ === "ArrowUp" && (N = Math.max(g - 1, 0)), V(N), w.current && N >= 0) {
1070
- const W = w.current.querySelectorAll(`.${oe.optionsList}`)[N];
1064
+ let A = g;
1065
+ if (L === "ArrowDown" ? A = Math.min(g + 1, p.length - 1) : L === "ArrowUp" && (A = Math.max(g - 1, 0)), V(A), w.current && A >= 0) {
1066
+ const W = w.current.querySelectorAll(`.${ae.optionsList}`)[A];
1071
1067
  W && W.scrollIntoView({
1072
1068
  block: "nearest",
1073
1069
  inline: "nearest"
1074
1070
  });
1075
1071
  }
1076
1072
  } else
1077
- _ === "Enter" && g !== -1 && ee(p[g].id);
1073
+ L === "Enter" && g !== -1 && ee(p[g].id);
1078
1074
  };
1079
1075
  if (l) {
1080
1076
  const T = qe(l);
@@ -1082,13 +1078,13 @@ const ts = Y.memo(
1082
1078
  borderBottomColor: l === "#ffffff" ? "#333333" : l
1083
1079
  });
1084
1080
  }
1085
- return /* @__PURE__ */ O("div", { className: oe.multiSelectContainer, children: /* @__PURE__ */ we("div", { className: oe.listOptionsWrap, ref: u, children: [
1086
- /* @__PURE__ */ we("div", { className: `${o} ${oe.selectedValuesWrap}`, children: [
1081
+ return /* @__PURE__ */ O("div", { className: ae.multiSelectContainer, children: /* @__PURE__ */ we("div", { className: ae.listOptionsWrap, ref: u, children: [
1082
+ /* @__PURE__ */ we("div", { className: `${o} ${ae.selectedValuesWrap}`, children: [
1087
1083
  /* @__PURE__ */ O(
1088
1084
  "input",
1089
1085
  {
1090
1086
  type: "text",
1091
- className: `${oe.selectedValues} ${a ? oe.focused : ""}`,
1087
+ className: `${ae.selectedValues} ${a ? ae.focused : ""}`,
1092
1088
  value: z,
1093
1089
  readOnly: !0,
1094
1090
  onClick: () => ne(!a),
@@ -1103,7 +1099,7 @@ const ts = Y.memo(
1103
1099
  /* @__PURE__ */ O(
1104
1100
  "span",
1105
1101
  {
1106
- className: oe.dropDownIcon,
1102
+ className: ae.dropDownIcon,
1107
1103
  onClick: () => ne(!a),
1108
1104
  "data-testid": "arrow-button",
1109
1105
  children: /* @__PURE__ */ O("svg", { width: "12px", height: "7px", viewBox: "0 0 12 7", version: "1.1", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ O("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: /* @__PURE__ */ O("g", { transform: "translate(-2360.000000, -295.000000)", fill: "#666666", children: /* @__PURE__ */ O("g", { transform: "translate(2006.000000, 248.000000)", children: /* @__PURE__ */ O(
@@ -1116,42 +1112,42 @@ const ts = Y.memo(
1116
1112
  }
1117
1113
  )
1118
1114
  ] }),
1119
- a && /* @__PURE__ */ we("div", { className: ` ${oe.optionsListContainer} ${A === "top" ? oe.top : ""}`, children: [
1120
- /* @__PURE__ */ we("div", { className: oe.optionsListWrap, children: [
1121
- e.length >= 6 && /* @__PURE__ */ O("div", { className: oe.searchInputWrap, children: /* @__PURE__ */ O(
1115
+ a && /* @__PURE__ */ we("div", { className: ` ${ae.optionsListContainer} ${F === "top" ? ae.top : ""}`, children: [
1116
+ /* @__PURE__ */ we("div", { className: ae.optionsListWrap, children: [
1117
+ e.length >= 6 && /* @__PURE__ */ O("div", { className: ae.searchInputWrap, children: /* @__PURE__ */ O(
1122
1118
  "input",
1123
1119
  {
1124
1120
  type: "text",
1125
1121
  placeholder: "Type to filter",
1126
- className: oe.searchInput,
1122
+ className: ae.searchInput,
1127
1123
  value: s,
1128
1124
  onChange: (T) => c(T.target.value),
1129
1125
  "data-testid": "search-input",
1130
- onKeyDown: C,
1126
+ onKeyDown: _,
1131
1127
  ref: I
1132
1128
  }
1133
1129
  ) }),
1134
- /* @__PURE__ */ O("ul", { ref: w, children: p.map((T, _) => /* @__PURE__ */ O(
1130
+ /* @__PURE__ */ O("ul", { ref: w, children: p.map((T, L) => /* @__PURE__ */ O(
1135
1131
  "li",
1136
1132
  {
1137
- className: `${oe.optionsList} ${_ === g ? oe.focused : ""}`,
1133
+ className: `${ae.optionsList} ${L === g ? ae.focused : ""}`,
1138
1134
  onClick: () => ee(T.id),
1139
- onKeyPress: (N) => {
1140
- (N.key === " " || N.code === "Space") && (N.preventDefault(), ee(T.id));
1135
+ onKeyPress: (A) => {
1136
+ (A.key === " " || A.code === "Space") && (A.preventDefault(), ee(T.id));
1141
1137
  },
1142
- "aria-selected": _ === g,
1138
+ "aria-selected": L === g,
1143
1139
  children: /* @__PURE__ */ O(
1144
1140
  Vt,
1145
1141
  {
1146
- className: oe.optionsListCheckbox,
1142
+ className: ae.optionsListCheckbox,
1147
1143
  tabIndex: -1,
1148
1144
  themeColor: l,
1149
- ref: (N) => {
1150
- h.current[T.id] = N;
1145
+ ref: (A) => {
1146
+ h.current[T.id] = A;
1151
1147
  },
1152
1148
  checked: v.includes(T.id),
1153
- onClick: (N) => {
1154
- N.stopPropagation(), S(T.id);
1149
+ onClick: (A) => {
1150
+ A.stopPropagation(), S(T.id);
1155
1151
  },
1156
1152
  disabled: T.disabled || i !== void 0 && v.length >= i && !v.includes(T.id),
1157
1153
  children: T.text
@@ -1161,7 +1157,7 @@ const ts = Y.memo(
1161
1157
  T.id
1162
1158
  )) })
1163
1159
  ] }),
1164
- /* @__PURE__ */ O("div", { className: oe.btnContainer, children: /* @__PURE__ */ O(
1160
+ /* @__PURE__ */ O("div", { className: ae.btnContainer, children: /* @__PURE__ */ O(
1165
1161
  kn,
1166
1162
  {
1167
1163
  themeColor: l,
@@ -1181,7 +1177,7 @@ const ts = Y.memo(
1181
1177
  quickOptionsWrap: Xo,
1182
1178
  selected: Zo,
1183
1179
  disabled: Jo
1184
- }, rs = ({
1180
+ }, is = ({
1185
1181
  options: e,
1186
1182
  checkedValue: t,
1187
1183
  onSelectionChange: n,
@@ -1191,17 +1187,14 @@ const ts = Y.memo(
1191
1187
  className: o = "",
1192
1188
  style: f = {}
1193
1189
  }) => {
1194
- const [p, b] = Z(t), v = P([]);
1190
+ const [p, b] = Z(t), v = C([]);
1195
1191
  let m = {};
1196
1192
  const s = (a) => {
1197
1193
  const u = p.includes(a) ? p.filter((I) => I !== a) : [...p, a];
1198
1194
  (i === void 0 || u.length <= i) && (b(u), n(u));
1199
1195
  }, c = (a) => {
1200
1196
  const d = e.find((u) => u.id === a);
1201
- if (d && !d.disabled && (i === void 0 || p.length <= i)) {
1202
- const u = v.current[a];
1203
- u == null || u.click();
1204
- }
1197
+ d && !d.disabled && (i === void 0 || p.length <= i) && v.current[a]?.click();
1205
1198
  };
1206
1199
  if (l) {
1207
1200
  const a = qe(l);
@@ -1266,7 +1259,7 @@ const ts = Y.memo(
1266
1259
  checkmarkCheck: ca,
1267
1260
  stroke: ua,
1268
1261
  disabled: da
1269
- }, is = ({
1262
+ }, os = ({
1270
1263
  options: e,
1271
1264
  onSelect: t,
1272
1265
  selected: n,
@@ -1278,7 +1271,7 @@ const ts = Y.memo(
1278
1271
  const [f, p] = Z(n);
1279
1272
  let b = {}, v = {}, m = "#ffffff";
1280
1273
  const s = (c) => {
1281
- (f == null ? void 0 : f.id) !== c.id && (t(c), p(c));
1274
+ f?.id !== c.id && (t(c), p(c));
1282
1275
  };
1283
1276
  if (r) {
1284
1277
  const c = qe(r);
@@ -1297,7 +1290,7 @@ const ts = Y.memo(
1297
1290
  "li",
1298
1291
  {
1299
1292
  tabIndex: c.disabled ? -1 : 0,
1300
- className: `${i} ${(f == null ? void 0 : f.id) === c.id ? Ee.selected : ""} ${c.disabled ? Ee.disabled : ""}`,
1293
+ className: `${i} ${f?.id === c.id ? Ee.selected : ""} ${c.disabled ? Ee.disabled : ""}`,
1301
1294
  style: { ...b, ...l },
1302
1295
  onClick: () => s(c),
1303
1296
  onKeyPress: (a) => {
@@ -1306,7 +1299,7 @@ const ts = Y.memo(
1306
1299
  "data-testid": "checkbox-input",
1307
1300
  children: [
1308
1301
  c.text,
1309
- (f == null ? void 0 : f.id) === c.id && /* @__PURE__ */ we("div", { className: Ee.triangle, style: { ...v }, children: [
1302
+ f?.id === c.id && /* @__PURE__ */ we("div", { className: Ee.triangle, style: { ...v }, children: [
1310
1303
  o && /* @__PURE__ */ O("div", { className: Ee.loader, style: { borderRightColor: r ?? "#006bb1" } }),
1311
1304
  !o && /* @__PURE__ */ O("div", { className: Ee.checkmarkWrap, children: /* @__PURE__ */ O(
1312
1305
  "svg",
@@ -1375,7 +1368,7 @@ let ha = class {
1375
1368
  Ue.isServer ? X(e, t) : jr(e, t);
1376
1369
  };
1377
1370
  function Se(e) {
1378
- let t = P(e);
1371
+ let t = C(e);
1379
1372
  return J(() => {
1380
1373
  t.current = e;
1381
1374
  }, [e]), t;
@@ -1515,7 +1508,7 @@ function ka(e, t, n) {
1515
1508
  }, [e, n]);
1516
1509
  }
1517
1510
  function Tr(e, t, n = !0) {
1518
- let r = P(!1);
1511
+ let r = C(!1);
1519
1512
  X(() => {
1520
1513
  requestAnimationFrame(() => {
1521
1514
  r.current = n;
@@ -1539,7 +1532,7 @@ function Tr(e, t, n = !0) {
1539
1532
  }
1540
1533
  return !Sr(p, Ht.Loose) && p.tabIndex !== -1 && o.preventDefault(), t(o, p);
1541
1534
  }
1542
- let l = P(null);
1535
+ let l = C(null);
1543
1536
  ft("pointerdown", (o) => {
1544
1537
  var f, p;
1545
1538
  r.current && (l.current = ((p = (f = o.composedPath) == null ? void 0 : f.call(o)) == null ? void 0 : p[0]) || o.target);
@@ -1568,7 +1561,7 @@ function Er(e, t) {
1568
1561
  }
1569
1562
  let Ta = Symbol();
1570
1563
  function ye(...e) {
1571
- let t = P(e);
1564
+ let t = C(e);
1572
1565
  X(() => {
1573
1566
  t.current = e;
1574
1567
  }, [e]);
@@ -1576,10 +1569,10 @@ function ye(...e) {
1576
1569
  for (let i of t.current)
1577
1570
  i != null && (typeof i == "function" ? i(r) : i.current = r);
1578
1571
  });
1579
- return e.every((r) => r == null || (r == null ? void 0 : r[Ta])) ? void 0 : n;
1572
+ return e.every((r) => r == null || r?.[Ta]) ? void 0 : n;
1580
1573
  }
1581
1574
  function Ea({ container: e, accept: t, walk: n, enabled: r = !0 }) {
1582
- let i = P(t), l = P(n);
1575
+ let i = C(t), l = C(n);
1583
1576
  X(() => {
1584
1577
  i.current = t, l.current = n;
1585
1578
  }, [t, n]), J(() => {
@@ -1665,7 +1658,7 @@ function pt(e, t = {}, n, r) {
1665
1658
  `), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((a) => ` - ${a}`).join(`
1666
1659
  `)].join(`
1667
1660
  `));
1668
- let m = b.props, s = typeof (m == null ? void 0 : m.className) == "function" ? (...a) => ht(m == null ? void 0 : m.className(...a), f.className) : ht(m == null ? void 0 : m.className, f.className), c = s ? { className: s } : {};
1661
+ let m = b.props, s = typeof m?.className == "function" ? (...a) => ht(m?.className(...a), f.className) : ht(m?.className, f.className), c = s ? { className: s } : {};
1669
1662
  return Hr(b, Object.assign({}, _r(b.props, wt(Pt(f, ["ref"]))), v, p, _a(b.ref, p.ref), c));
1670
1663
  }
1671
1664
  return zr(i, Object.assign({}, Pt(f, ["ref"]), i !== Le && p, i !== Le && v), b);
@@ -1691,7 +1684,7 @@ function _r(...e) {
1691
1684
  Object.assign(t, { [r](i, ...l) {
1692
1685
  let o = n[r];
1693
1686
  for (let f of o) {
1694
- if ((i instanceof Event || (i == null ? void 0 : i.nativeEvent) instanceof Event) && i.defaultPrevented)
1687
+ if ((i instanceof Event || i?.nativeEvent instanceof Event) && i.defaultPrevented)
1695
1688
  return;
1696
1689
  f(i, ...l);
1697
1690
  }
@@ -1718,7 +1711,7 @@ function Cr(e) {
1718
1711
  let t = e.parentElement, n = null;
1719
1712
  for (; t && !(t instanceof HTMLFieldSetElement); )
1720
1713
  t instanceof HTMLLegendElement && (n = t), t = t.parentElement;
1721
- let r = (t == null ? void 0 : t.getAttribute("disabled")) === "";
1714
+ let r = t?.getAttribute("disabled") === "";
1722
1715
  return r && Ca(n) ? !1 : r;
1723
1716
  }
1724
1717
  function Ca(e) {
@@ -1755,7 +1748,7 @@ function La(e, t) {
1755
1748
  }
1756
1749
  let Rr = fe(La), Gt = je(null);
1757
1750
  Gt.displayName = "OpenClosedContext";
1758
- var ae = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(ae || {});
1751
+ var le = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(le || {});
1759
1752
  function Ot() {
1760
1753
  return We(Gt);
1761
1754
  }
@@ -1764,11 +1757,11 @@ function Yt({ value: e, children: t }) {
1764
1757
  }
1765
1758
  var U = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(U || {});
1766
1759
  function Nr(e, t, n) {
1767
- let [r, i] = Z(n), l = e !== void 0, o = P(l), f = P(!1), p = P(!1);
1768
- return l && !o.current && !f.current ? (f.current = !0, o.current = l, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !l && o.current && !p.current && (p.current = !0, o.current = l, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [l ? e : r, k((b) => (l || i(b), t == null ? void 0 : t(b)))];
1760
+ let [r, i] = Z(n), l = e !== void 0, o = C(l), f = C(!1), p = C(!1);
1761
+ return l && !o.current && !f.current ? (f.current = !0, o.current = l, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !l && o.current && !p.current && (p.current = !0, o.current = l, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [l ? e : r, k((b) => (l || i(b), t?.(b)))];
1769
1762
  }
1770
1763
  function mn(e, t) {
1771
- let n = P([]), r = k(e);
1764
+ let n = C([]), r = k(e);
1772
1765
  X(() => {
1773
1766
  let i = [...n.current];
1774
1767
  for (let [l, o] of t.entries())
@@ -1782,7 +1775,7 @@ function hn(e) {
1782
1775
  return [e.screenX, e.screenY];
1783
1776
  }
1784
1777
  function Fr() {
1785
- let e = P([-1, -1]);
1778
+ let e = C([-1, -1]);
1786
1779
  return { wasMoved(t) {
1787
1780
  let n = hn(t);
1788
1781
  return e.current[0] === n[0] && e.current[1] === n[1] ? !1 : (e.current = n, !0);
@@ -1868,17 +1861,17 @@ function Ba(e, t) {
1868
1861
  }
1869
1862
  let Ua = Le;
1870
1863
  function ja(e, t) {
1871
- let { value: n, defaultValue: r, onChange: i, form: l, name: o, by: f = (x, E) => x === E, disabled: p = !1, __demoMode: b = !1, nullable: v = !1, multiple: m = !1, ...s } = e, [c = m ? [] : void 0, a] = Nr(n, i, r), [d, u] = On(Ba, { dataRef: Sn(), comboboxState: b ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), h = P(!1), I = P({ static: !1, hold: !1 }), w = P(null), g = P(null), V = P(null), A = P(null), q = k(typeof f == "string" ? (x, E) => {
1864
+ let { value: n, defaultValue: r, onChange: i, form: l, name: o, by: f = (x, E) => x === E, disabled: p = !1, __demoMode: b = !1, nullable: v = !1, multiple: m = !1, ...s } = e, [c = m ? [] : void 0, a] = Nr(n, i, r), [d, u] = On(Ba, { dataRef: Sn(), comboboxState: b ? 0 : 1, options: [], activeOptionIndex: null, activationTrigger: 1, labelId: null }), h = C(!1), I = C({ static: !1, hold: !1 }), w = C(null), g = C(null), V = C(null), F = C(null), q = k(typeof f == "string" ? (x, E) => {
1872
1865
  let M = f;
1873
- return (x == null ? void 0 : x[M]) === (E == null ? void 0 : E[M]);
1874
- } : f), $ = ze((x) => Q(S.mode, { 1: () => c.some((E) => q(E, x)), 0: () => q(c, x) }), [c]), S = te(() => ({ ...d, optionsPropsRef: I, labelRef: w, inputRef: g, buttonRef: V, optionsRef: A, value: c, defaultValue: r, disabled: p, mode: m ? 1 : 0, get activeOptionIndex() {
1866
+ return x?.[M] === E?.[M];
1867
+ } : f), $ = ze((x) => Q(S.mode, { 1: () => c.some((E) => q(E, x)), 0: () => q(c, x) }), [c]), S = te(() => ({ ...d, optionsPropsRef: I, labelRef: w, inputRef: g, buttonRef: V, optionsRef: F, value: c, defaultValue: r, disabled: p, mode: m ? 1 : 0, get activeOptionIndex() {
1875
1868
  if (h.current && d.activeOptionIndex === null && d.options.length > 0) {
1876
1869
  let x = d.options.findIndex((E) => !E.dataRef.current.disabled);
1877
1870
  if (x !== -1)
1878
1871
  return x;
1879
1872
  }
1880
1873
  return d.activeOptionIndex;
1881
- }, compare: q, isSelected: $, nullable: v, __demoMode: b }), [c, r, p, m, v, b, d]), z = P(S.activeOptionIndex !== null ? S.options[S.activeOptionIndex] : null);
1874
+ }, compare: q, isSelected: $, nullable: v, __demoMode: b }), [c, r, p, m, v, b, d]), z = C(S.activeOptionIndex !== null ? S.options[S.activeOptionIndex] : null);
1882
1875
  X(() => {
1883
1876
  let x = S.activeOptionIndex !== null ? S.options[S.activeOptionIndex] : null;
1884
1877
  z.current !== x && (z.current = x);
@@ -1888,88 +1881,88 @@ function ja(e, t) {
1888
1881
  let ee = te(() => ({ open: S.comboboxState === 0, disabled: p, activeIndex: S.activeOptionIndex, activeOption: S.activeOptionIndex === null ? null : S.options[S.activeOptionIndex].dataRef.current.value, value: c }), [S, p, c]), ne = k((x) => {
1889
1882
  let E = S.options.find((M) => M.id === x);
1890
1883
  E && ie(E.dataRef.current.value);
1891
- }), C = k(() => {
1884
+ }), _ = k(() => {
1892
1885
  if (S.activeOptionIndex !== null) {
1893
1886
  let { dataRef: x, id: E } = S.options[S.activeOptionIndex];
1894
1887
  ie(x.current.value), pe.goToOption(j.Specific, E);
1895
1888
  }
1896
1889
  }), T = k(() => {
1897
1890
  u({ type: 0 }), h.current = !0;
1898
- }), _ = k(() => {
1891
+ }), L = k(() => {
1899
1892
  u({ type: 1 }), h.current = !1;
1900
- }), N = k((x, E, M) => (h.current = !1, x === j.Specific ? u({ type: 2, focus: j.Specific, id: E, trigger: M }) : u({ type: 2, focus: x, trigger: M }))), W = k((x, E) => (u({ type: 3, id: x, dataRef: E }), () => {
1893
+ }), A = k((x, E, M) => (h.current = !1, x === j.Specific ? u({ type: 2, focus: j.Specific, id: E, trigger: M }) : u({ type: 2, focus: x, trigger: M }))), W = k((x, E) => (u({ type: 3, id: x, dataRef: E }), () => {
1901
1894
  var M;
1902
1895
  ((M = z.current) == null ? void 0 : M.id) === x && (h.current = !0), u({ type: 4, id: x });
1903
1896
  })), re = k((x) => (u({ type: 5, id: x }), () => u({ type: 5, id: null }))), ie = k((x) => Q(S.mode, { 0() {
1904
- return a == null ? void 0 : a(x);
1897
+ return a?.(x);
1905
1898
  }, 1() {
1906
1899
  let E = S.value.slice(), M = E.findIndex((he) => q(he, x));
1907
- return M === -1 ? E.push(x) : E.splice(M, 1), a == null ? void 0 : a(E);
1908
- } })), pe = te(() => ({ onChange: ie, registerOption: W, registerLabel: re, goToOption: N, closeCombobox: _, openCombobox: T, selectActiveOption: C, selectOption: ne }), []), me = t === null ? {} : { ref: t }, le = P(null), se = Re();
1900
+ return M === -1 ? E.push(x) : E.splice(M, 1), a?.(E);
1901
+ } })), pe = te(() => ({ onChange: ie, registerOption: W, registerLabel: re, goToOption: A, closeCombobox: L, openCombobox: T, selectActiveOption: _, selectOption: ne }), []), me = t === null ? {} : { ref: t }, se = C(null), oe = Re();
1909
1902
  return X(() => {
1910
- le.current && r !== void 0 && se.addEventListener(le.current, "reset", () => {
1911
- a == null || a(r);
1903
+ se.current && r !== void 0 && oe.addEventListener(se.current, "reset", () => {
1904
+ a?.(r);
1912
1905
  });
1913
- }, [le, a]), Y.createElement(Qt.Provider, { value: pe }, Y.createElement(Xt.Provider, { value: S }, Y.createElement(Yt, { value: Q(S.comboboxState, { 0: ae.Open, 1: ae.Closed }) }, o != null && c != null && zt({ [o]: c }).map(([x, E], M) => Y.createElement(Rr, { features: Kt.Hidden, ref: M === 0 ? (he) => {
1906
+ }, [se, a]), Y.createElement(Qt.Provider, { value: pe }, Y.createElement(Xt.Provider, { value: S }, Y.createElement(Yt, { value: Q(S.comboboxState, { 0: le.Open, 1: le.Closed }) }, o != null && c != null && zt({ [o]: c }).map(([x, E], M) => Y.createElement(Rr, { features: Kt.Hidden, ref: M === 0 ? (he) => {
1914
1907
  var Fe;
1915
- le.current = (Fe = he == null ? void 0 : he.closest("form")) != null ? Fe : null;
1908
+ se.current = (Fe = he?.closest("form")) != null ? Fe : null;
1916
1909
  } : void 0, ...wt({ key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: l, name: x, value: E }) })), ve({ ourProps: me, theirProps: s, slot: ee, defaultTag: Ua, name: "Combobox" }))));
1917
1910
  }
1918
1911
  let qa = "input";
1919
1912
  function Ha(e, t) {
1920
1913
  var n, r, i, l;
1921
- let o = Ne(), { id: f = `headlessui-combobox-input-${o}`, onChange: p, displayValue: b, type: v = "text", ...m } = e, s = Xe("Combobox.Input"), c = ot("Combobox.Input"), a = ye(s.inputRef, t), d = Aa(s.inputRef), u = P(!1), h = Re(), I = k(() => {
1914
+ let o = Ne(), { id: f = `headlessui-combobox-input-${o}`, onChange: p, displayValue: b, type: v = "text", ...m } = e, s = Xe("Combobox.Input"), c = ot("Combobox.Input"), a = ye(s.inputRef, t), d = Aa(s.inputRef), u = C(!1), h = Re(), I = k(() => {
1922
1915
  c.onChange(null), s.optionsRef.current && (s.optionsRef.current.scrollTop = 0), c.goToOption(j.Nothing);
1923
1916
  }), w = function() {
1924
- var C;
1925
- return typeof b == "function" && s.value !== void 0 ? (C = b(s.value)) != null ? C : "" : typeof s.value == "string" ? s.value : "";
1917
+ var _;
1918
+ return typeof b == "function" && s.value !== void 0 ? (_ = b(s.value)) != null ? _ : "" : typeof s.value == "string" ? s.value : "";
1926
1919
  }();
1927
- mn(([C, T], [_, N]) => {
1920
+ mn(([_, T], [L, A]) => {
1928
1921
  if (u.current)
1929
1922
  return;
1930
1923
  let W = s.inputRef.current;
1931
- W && ((N === 0 && T === 1 || C !== _) && (W.value = C), requestAnimationFrame(() => {
1932
- if (u.current || !W || (d == null ? void 0 : d.activeElement) !== W)
1924
+ W && ((A === 0 && T === 1 || _ !== L) && (W.value = _), requestAnimationFrame(() => {
1925
+ if (u.current || !W || d?.activeElement !== W)
1933
1926
  return;
1934
1927
  let { selectionStart: re, selectionEnd: ie } = W;
1935
1928
  Math.abs((ie ?? 0) - (re ?? 0)) === 0 && re === 0 && W.setSelectionRange(W.value.length, W.value.length);
1936
1929
  }));
1937
- }, [w, s.comboboxState, d]), mn(([C], [T]) => {
1938
- if (C === 0 && T === 1) {
1930
+ }, [w, s.comboboxState, d]), mn(([_], [T]) => {
1931
+ if (_ === 0 && T === 1) {
1939
1932
  if (u.current)
1940
1933
  return;
1941
- let _ = s.inputRef.current;
1942
- if (!_)
1934
+ let L = s.inputRef.current;
1935
+ if (!L)
1943
1936
  return;
1944
- let N = _.value, { selectionStart: W, selectionEnd: re, selectionDirection: ie } = _;
1945
- _.value = "", _.value = N, ie !== null ? _.setSelectionRange(W, re, ie) : _.setSelectionRange(W, re);
1937
+ let A = L.value, { selectionStart: W, selectionEnd: re, selectionDirection: ie } = L;
1938
+ L.value = "", L.value = A, ie !== null ? L.setSelectionRange(W, re, ie) : L.setSelectionRange(W, re);
1946
1939
  }
1947
1940
  }, [s.comboboxState]);
1948
- let g = P(!1), V = k(() => {
1941
+ let g = C(!1), V = k(() => {
1949
1942
  g.current = !0;
1950
- }), A = k(() => {
1943
+ }), F = k(() => {
1951
1944
  h.nextFrame(() => {
1952
1945
  g.current = !1;
1953
1946
  });
1954
- }), q = k((C) => {
1955
- switch (u.current = !0, C.key) {
1947
+ }), q = k((_) => {
1948
+ switch (u.current = !0, _.key) {
1956
1949
  case U.Enter:
1957
1950
  if (u.current = !1, s.comboboxState !== 0 || g.current)
1958
1951
  return;
1959
- if (C.preventDefault(), C.stopPropagation(), s.activeOptionIndex === null) {
1952
+ if (_.preventDefault(), _.stopPropagation(), s.activeOptionIndex === null) {
1960
1953
  c.closeCombobox();
1961
1954
  return;
1962
1955
  }
1963
1956
  c.selectActiveOption(), s.mode === 0 && c.closeCombobox();
1964
1957
  break;
1965
1958
  case U.ArrowDown:
1966
- return u.current = !1, C.preventDefault(), C.stopPropagation(), Q(s.comboboxState, { 0: () => {
1959
+ return u.current = !1, _.preventDefault(), _.stopPropagation(), Q(s.comboboxState, { 0: () => {
1967
1960
  c.goToOption(j.Next);
1968
1961
  }, 1: () => {
1969
1962
  c.openCombobox();
1970
1963
  } });
1971
1964
  case U.ArrowUp:
1972
- return u.current = !1, C.preventDefault(), C.stopPropagation(), Q(s.comboboxState, { 0: () => {
1965
+ return u.current = !1, _.preventDefault(), _.stopPropagation(), Q(s.comboboxState, { 0: () => {
1973
1966
  c.goToOption(j.Previous);
1974
1967
  }, 1: () => {
1975
1968
  c.openCombobox(), h.nextFrame(() => {
@@ -1977,33 +1970,33 @@ function Ha(e, t) {
1977
1970
  });
1978
1971
  } });
1979
1972
  case U.Home:
1980
- if (C.shiftKey)
1973
+ if (_.shiftKey)
1981
1974
  break;
1982
- return u.current = !1, C.preventDefault(), C.stopPropagation(), c.goToOption(j.First);
1975
+ return u.current = !1, _.preventDefault(), _.stopPropagation(), c.goToOption(j.First);
1983
1976
  case U.PageUp:
1984
- return u.current = !1, C.preventDefault(), C.stopPropagation(), c.goToOption(j.First);
1977
+ return u.current = !1, _.preventDefault(), _.stopPropagation(), c.goToOption(j.First);
1985
1978
  case U.End:
1986
- if (C.shiftKey)
1979
+ if (_.shiftKey)
1987
1980
  break;
1988
- return u.current = !1, C.preventDefault(), C.stopPropagation(), c.goToOption(j.Last);
1981
+ return u.current = !1, _.preventDefault(), _.stopPropagation(), c.goToOption(j.Last);
1989
1982
  case U.PageDown:
1990
- return u.current = !1, C.preventDefault(), C.stopPropagation(), c.goToOption(j.Last);
1983
+ return u.current = !1, _.preventDefault(), _.stopPropagation(), c.goToOption(j.Last);
1991
1984
  case U.Escape:
1992
- return u.current = !1, s.comboboxState !== 0 ? void 0 : (C.preventDefault(), s.optionsRef.current && !s.optionsPropsRef.current.static && C.stopPropagation(), s.nullable && s.mode === 0 && s.value === null && I(), c.closeCombobox());
1985
+ return u.current = !1, s.comboboxState !== 0 ? void 0 : (_.preventDefault(), s.optionsRef.current && !s.optionsPropsRef.current.static && _.stopPropagation(), s.nullable && s.mode === 0 && s.value === null && I(), c.closeCombobox());
1993
1986
  case U.Tab:
1994
1987
  if (u.current = !1, s.comboboxState !== 0)
1995
1988
  return;
1996
1989
  s.mode === 0 && c.selectActiveOption(), c.closeCombobox();
1997
1990
  break;
1998
1991
  }
1999
- }), $ = k((C) => {
2000
- p == null || p(C), s.nullable && s.mode === 0 && C.target.value === "" && I(), c.openCombobox();
1992
+ }), $ = k((_) => {
1993
+ p?.(_), s.nullable && s.mode === 0 && _.target.value === "" && I(), c.openCombobox();
2001
1994
  }), S = k(() => {
2002
1995
  u.current = !1;
2003
1996
  }), z = it(() => {
2004
1997
  if (s.labelId)
2005
1998
  return [s.labelId].join(" ");
2006
- }, [s.labelId]), ee = te(() => ({ open: s.comboboxState === 0, disabled: s.disabled }), [s]), ne = { ref: a, id: f, role: "combobox", type: v, "aria-controls": (n = s.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null || (r = s.options[s.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby": z, "aria-autocomplete": "list", defaultValue: (l = (i = e.defaultValue) != null ? i : s.defaultValue !== void 0 ? b == null ? void 0 : b(s.defaultValue) : null) != null ? l : s.defaultValue, disabled: s.disabled, onCompositionStart: V, onCompositionEnd: A, onKeyDown: q, onChange: $, onBlur: S };
1999
+ }, [s.labelId]), ee = te(() => ({ open: s.comboboxState === 0, disabled: s.disabled }), [s]), ne = { ref: a, id: f, role: "combobox", type: v, "aria-controls": (n = s.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": s.comboboxState === 0, "aria-activedescendant": s.activeOptionIndex === null || (r = s.options[s.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby": z, "aria-autocomplete": "list", defaultValue: (l = (i = e.defaultValue) != null ? i : s.defaultValue !== void 0 ? b?.(s.defaultValue) : null) != null ? l : s.defaultValue, disabled: s.disabled, onCompositionStart: V, onCompositionEnd: F, onKeyDown: q, onChange: $, onBlur: S };
2007
2000
  return ve({ ourProps: ne, theirProps: m, slot: ee, defaultTag: qa, name: "Combobox.Input" });
2008
2001
  }
2009
2002
  let za = "button";
@@ -2056,7 +2049,7 @@ function Ya(e, t) {
2056
2049
  }
2057
2050
  let Qa = "ul", Xa = Ge.RenderStrategy | Ge.Static;
2058
2051
  function Za(e, t) {
2059
- let n = Ne(), { id: r = `headlessui-combobox-options-${n}`, hold: i = !1, ...l } = e, o = Xe("Combobox.Options"), f = ye(o.optionsRef, t), p = Ot(), b = (() => p !== null ? (p & ae.Open) === ae.Open : o.comboboxState === 0)();
2052
+ let n = Ne(), { id: r = `headlessui-combobox-options-${n}`, hold: i = !1, ...l } = e, o = Xe("Combobox.Options"), f = ye(o.optionsRef, t), p = Ot(), b = (() => p !== null ? (p & le.Open) === le.Open : o.comboboxState === 0)();
2060
2053
  J(() => {
2061
2054
  var c;
2062
2055
  o.optionsPropsRef.current.static = (c = e.static) != null ? c : !1;
@@ -2076,9 +2069,9 @@ function Za(e, t) {
2076
2069
  let Ja = "li";
2077
2070
  function el(e, t) {
2078
2071
  var n, r;
2079
- let i = Ne(), { id: l = `headlessui-combobox-option-${i}`, disabled: o = !1, value: f, ...p } = e, b = Xe("Combobox.Option"), v = ot("Combobox.Option"), m = b.activeOptionIndex !== null ? b.options[b.activeOptionIndex].id === l : !1, s = b.isSelected(f), c = P(null), a = Se({ disabled: o, value: f, domRef: c, textValue: (r = (n = c.current) == null ? void 0 : n.textContent) == null ? void 0 : r.toLowerCase() }), d = ye(t, c), u = k(() => v.selectOption(l));
2072
+ let i = Ne(), { id: l = `headlessui-combobox-option-${i}`, disabled: o = !1, value: f, ...p } = e, b = Xe("Combobox.Option"), v = ot("Combobox.Option"), m = b.activeOptionIndex !== null ? b.options[b.activeOptionIndex].id === l : !1, s = b.isSelected(f), c = C(null), a = Se({ disabled: o, value: f, domRef: c, textValue: (r = (n = c.current) == null ? void 0 : n.textContent) == null ? void 0 : r.toLowerCase() }), d = ye(t, c), u = k(() => v.selectOption(l));
2080
2073
  J(() => v.registerOption(l, a), [a, l]);
2081
- let h = P(!b.__demoMode);
2074
+ let h = C(!b.__demoMode);
2082
2075
  J(() => {
2083
2076
  if (!b.__demoMode)
2084
2077
  return;
@@ -2106,16 +2099,16 @@ function el(e, t) {
2106
2099
  if (o)
2107
2100
  return v.goToOption(j.Nothing);
2108
2101
  v.goToOption(j.Specific, l);
2109
- }), g = Fr(), V = k((S) => g.update(S)), A = k((S) => {
2102
+ }), g = Fr(), V = k((S) => g.update(S)), F = k((S) => {
2110
2103
  g.wasMoved(S) && (o || m || v.goToOption(j.Specific, l, 0));
2111
2104
  }), q = k((S) => {
2112
2105
  g.wasMoved(S) && (o || m && (b.optionsPropsRef.current.hold || v.goToOption(j.Nothing)));
2113
2106
  }), $ = te(() => ({ active: m, selected: s, disabled: o }), [m, s, o]);
2114
- return ve({ ourProps: { id: l, ref: d, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": s, disabled: void 0, onClick: I, onFocus: w, onPointerEnter: V, onMouseEnter: V, onPointerMove: A, onMouseMove: A, onPointerLeave: q, onMouseLeave: q }, theirProps: p, slot: $, defaultTag: Ja, name: "Combobox.Option" });
2107
+ return ve({ ourProps: { id: l, ref: d, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": s, disabled: void 0, onClick: I, onFocus: w, onPointerEnter: V, onMouseEnter: V, onPointerMove: F, onMouseMove: F, onPointerLeave: q, onMouseLeave: q }, theirProps: p, slot: $, defaultTag: Ja, name: "Combobox.Option" });
2115
2108
  }
2116
2109
  let tl = fe(ja), nl = fe(Ka), rl = fe(Ha), il = fe(Ya), ol = fe(Za), al = fe(el), tt = Object.assign(tl, { Input: rl, Button: nl, Label: il, Options: ol, Option: al });
2117
2110
  function Zt() {
2118
- let e = P(!1);
2111
+ let e = C(!1);
2119
2112
  return J(() => (e.current = !0, () => {
2120
2113
  e.current = !1;
2121
2114
  }), []), e;
@@ -2152,7 +2145,7 @@ function ll(e) {
2152
2145
  return gn(e).trim();
2153
2146
  }
2154
2147
  function sl(e) {
2155
- let t = P(""), n = P("");
2148
+ let t = C(""), n = C("");
2156
2149
  return k(() => {
2157
2150
  let r = e.current;
2158
2151
  if (!r)
@@ -2228,10 +2221,10 @@ let vl = Le;
2228
2221
  function ml(e, t) {
2229
2222
  let { value: n, defaultValue: r, form: i, name: l, onChange: o, by: f = (x, E) => x === E, disabled: p = !1, horizontal: b = !1, multiple: v = !1, ...m } = e;
2230
2223
  const s = b ? "horizontal" : "vertical";
2231
- let c = ye(t), [a = v ? [] : void 0, d] = Nr(n, o, r), [u, h] = On(bl, { dataRef: Sn(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), I = P({ static: !1, hold: !1 }), w = P(null), g = P(null), V = P(null), A = k(typeof f == "string" ? (x, E) => {
2224
+ let c = ye(t), [a = v ? [] : void 0, d] = Nr(n, o, r), [u, h] = On(bl, { dataRef: Sn(), listboxState: 1, options: [], searchQuery: "", labelId: null, activeOptionIndex: null, activationTrigger: 1 }), I = C({ static: !1, hold: !1 }), w = C(null), g = C(null), V = C(null), F = k(typeof f == "string" ? (x, E) => {
2232
2225
  let M = f;
2233
- return (x == null ? void 0 : x[M]) === (E == null ? void 0 : E[M]);
2234
- } : f), q = ze((x) => Q($.mode, { 1: () => a.some((E) => A(E, x)), 0: () => A(a, x) }), [a]), $ = te(() => ({ ...u, value: a, disabled: p, mode: v ? 1 : 0, orientation: s, compare: A, isSelected: q, optionsPropsRef: I, labelRef: w, buttonRef: g, optionsRef: V }), [a, p, v, u]);
2226
+ return x?.[M] === E?.[M];
2227
+ } : f), q = ze((x) => Q($.mode, { 1: () => a.some((E) => F(E, x)), 0: () => F(a, x) }), [a]), $ = te(() => ({ ...u, value: a, disabled: p, mode: v ? 1 : 0, orientation: s, compare: F, isSelected: q, optionsPropsRef: I, labelRef: w, buttonRef: g, optionsRef: V }), [a, p, v, u]);
2235
2228
  J(() => {
2236
2229
  u.dataRef.current = $;
2237
2230
  }, [$]), Tr([$.buttonRef, $.optionsRef], (x, E) => {
@@ -2246,19 +2239,19 @@ function ml(e, t) {
2246
2239
  let { dataRef: x, id: E } = $.options[$.activeOptionIndex];
2247
2240
  W(x.current.value), h({ type: 2, focus: j.Specific, id: E });
2248
2241
  }
2249
- }), ne = k(() => h({ type: 0 })), C = k(() => h({ type: 1 })), T = k((x, E, M) => x === j.Specific ? h({ type: 2, focus: j.Specific, id: E, trigger: M }) : h({ type: 2, focus: x, trigger: M })), _ = k((x, E) => (h({ type: 5, id: x, dataRef: E }), () => h({ type: 6, id: x }))), N = k((x) => (h({ type: 7, id: x }), () => h({ type: 7, id: null }))), W = k((x) => Q($.mode, { 0() {
2250
- return d == null ? void 0 : d(x);
2242
+ }), ne = k(() => h({ type: 0 })), _ = k(() => h({ type: 1 })), T = k((x, E, M) => x === j.Specific ? h({ type: 2, focus: j.Specific, id: E, trigger: M }) : h({ type: 2, focus: x, trigger: M })), L = k((x, E) => (h({ type: 5, id: x, dataRef: E }), () => h({ type: 6, id: x }))), A = k((x) => (h({ type: 7, id: x }), () => h({ type: 7, id: null }))), W = k((x) => Q($.mode, { 0() {
2243
+ return d?.(x);
2251
2244
  }, 1() {
2252
- let E = $.value.slice(), M = E.findIndex((he) => A(he, x));
2253
- return M === -1 ? E.push(x) : E.splice(M, 1), d == null ? void 0 : d(E);
2254
- } })), re = k((x) => h({ type: 3, value: x })), ie = k(() => h({ type: 4 })), pe = te(() => ({ onChange: W, registerOption: _, registerLabel: N, goToOption: T, closeListbox: C, openListbox: ne, selectActiveOption: ee, selectOption: z, search: re, clearSearch: ie }), []), me = { ref: c }, le = P(null), se = Re();
2245
+ let E = $.value.slice(), M = E.findIndex((he) => F(he, x));
2246
+ return M === -1 ? E.push(x) : E.splice(M, 1), d?.(E);
2247
+ } })), re = k((x) => h({ type: 3, value: x })), ie = k(() => h({ type: 4 })), pe = te(() => ({ onChange: W, registerOption: L, registerLabel: A, goToOption: T, closeListbox: _, openListbox: ne, selectActiveOption: ee, selectOption: z, search: re, clearSearch: ie }), []), me = { ref: c }, se = C(null), oe = Re();
2255
2248
  return X(() => {
2256
- le.current && r !== void 0 && se.addEventListener(le.current, "reset", () => {
2257
- d == null || d(r);
2249
+ se.current && r !== void 0 && oe.addEventListener(se.current, "reset", () => {
2250
+ d?.(r);
2258
2251
  });
2259
- }, [le, d]), Y.createElement(Jt.Provider, { value: pe }, Y.createElement(en.Provider, { value: $ }, Y.createElement(Yt, { value: Q($.listboxState, { 0: ae.Open, 1: ae.Closed }) }, l != null && a != null && zt({ [l]: a }).map(([x, E], M) => Y.createElement(Rr, { features: Kt.Hidden, ref: M === 0 ? (he) => {
2252
+ }, [se, d]), Y.createElement(Jt.Provider, { value: pe }, Y.createElement(en.Provider, { value: $ }, Y.createElement(Yt, { value: Q($.listboxState, { 0: le.Open, 1: le.Closed }) }, l != null && a != null && zt({ [l]: a }).map(([x, E], M) => Y.createElement(Rr, { features: Kt.Hidden, ref: M === 0 ? (he) => {
2260
2253
  var Fe;
2261
- le.current = (Fe = he == null ? void 0 : he.closest("form")) != null ? Fe : null;
2254
+ se.current = (Fe = he?.closest("form")) != null ? Fe : null;
2262
2255
  } : void 0, ...wt({ key: x, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: i, name: x, value: E }) })), ve({ ourProps: me, theirProps: m, slot: S, defaultTag: vl, name: "Listbox" }))));
2263
2256
  }
2264
2257
  let hl = "button";
@@ -2311,7 +2304,7 @@ function xl(e, t) {
2311
2304
  let yl = "ul", Ol = Ge.RenderStrategy | Ge.Static;
2312
2305
  function Sl(e, t) {
2313
2306
  var n;
2314
- let r = Ne(), { id: i = `headlessui-listbox-options-${r}`, ...l } = e, o = lt("Listbox.Options"), f = at("Listbox.Options"), p = ye(o.optionsRef, t), b = Re(), v = Re(), m = Ot(), s = (() => m !== null ? (m & ae.Open) === ae.Open : o.listboxState === 0)();
2307
+ let r = Ne(), { id: i = `headlessui-listbox-options-${r}`, ...l } = e, o = lt("Listbox.Options"), f = at("Listbox.Options"), p = ye(o.optionsRef, t), b = Re(), v = Re(), m = Ot(), s = (() => m !== null ? (m & le.Open) === le.Open : o.listboxState === 0)();
2315
2308
  X(() => {
2316
2309
  var h;
2317
2310
  let I = o.optionsRef.current;
@@ -2362,21 +2355,21 @@ function Sl(e, t) {
2362
2355
  }
2363
2356
  let kl = "li";
2364
2357
  function Tl(e, t) {
2365
- let n = Ne(), { id: r = `headlessui-listbox-option-${n}`, disabled: i = !1, value: l, ...o } = e, f = lt("Listbox.Option"), p = at("Listbox.Option"), b = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === r : !1, v = f.isSelected(l), m = P(null), s = sl(m), c = Se({ disabled: i, value: l, domRef: m, get textValue() {
2358
+ let n = Ne(), { id: r = `headlessui-listbox-option-${n}`, disabled: i = !1, value: l, ...o } = e, f = lt("Listbox.Option"), p = at("Listbox.Option"), b = f.activeOptionIndex !== null ? f.options[f.activeOptionIndex].id === r : !1, v = f.isSelected(l), m = C(null), s = sl(m), c = Se({ disabled: i, value: l, domRef: m, get textValue() {
2366
2359
  return s();
2367
2360
  } }), a = ye(t, m);
2368
2361
  J(() => {
2369
2362
  if (f.listboxState !== 0 || !b || f.activationTrigger === 0)
2370
2363
  return;
2371
- let A = _e();
2372
- return A.requestAnimationFrame(() => {
2364
+ let F = _e();
2365
+ return F.requestAnimationFrame(() => {
2373
2366
  var q, $;
2374
2367
  ($ = (q = m.current) == null ? void 0 : q.scrollIntoView) == null || $.call(q, { block: "nearest" });
2375
- }), A.dispose;
2368
+ }), F.dispose;
2376
2369
  }, [m, b, f.listboxState, f.activationTrigger, f.activeOptionIndex]), J(() => p.registerOption(r, c), [c, r]);
2377
- let d = k((A) => {
2370
+ let d = k((F) => {
2378
2371
  if (i)
2379
- return A.preventDefault();
2372
+ return F.preventDefault();
2380
2373
  p.onChange(l), f.mode === 0 && (p.closeListbox(), _e().nextFrame(() => {
2381
2374
  var q;
2382
2375
  return (q = f.buttonRef.current) == null ? void 0 : q.focus({ preventScroll: !0 });
@@ -2385,10 +2378,10 @@ function Tl(e, t) {
2385
2378
  if (i)
2386
2379
  return p.goToOption(j.Nothing);
2387
2380
  p.goToOption(j.Specific, r);
2388
- }), h = Fr(), I = k((A) => h.update(A)), w = k((A) => {
2389
- h.wasMoved(A) && (i || b || p.goToOption(j.Specific, r, 0));
2390
- }), g = k((A) => {
2391
- h.wasMoved(A) && (i || b && p.goToOption(j.Nothing));
2381
+ }), h = Fr(), I = k((F) => h.update(F)), w = k((F) => {
2382
+ h.wasMoved(F) && (i || b || p.goToOption(j.Specific, r, 0));
2383
+ }), g = k((F) => {
2384
+ h.wasMoved(F) && (i || b && p.goToOption(j.Nothing));
2392
2385
  }), V = te(() => ({ active: b, selected: v, disabled: i }), [b, v, i]);
2393
2386
  return ve({ ourProps: { id: r, ref: a, role: "option", tabIndex: i === !0 ? void 0 : -1, "aria-disabled": i === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onClick: d, onFocus: u, onPointerEnter: I, onMouseEnter: I, onPointerMove: w, onMouseMove: w, onPointerLeave: g, onMouseLeave: g }, theirProps: o, slot: V, defaultTag: kl, name: "Listbox.Option" });
2394
2387
  }
@@ -2486,7 +2479,7 @@ function Tt(e) {
2486
2479
  return "children" in e ? Tt(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
2487
2480
  }
2488
2481
  function Ar(e, t) {
2489
- let n = Se(e), r = P([]), i = Zt(), l = Re(), o = k((c, a = Me.Hidden) => {
2482
+ let n = Se(e), r = C([]), i = Zt(), l = Re(), o = k((c, a = Me.Hidden) => {
2490
2483
  let d = r.current.findIndex(({ el: u }) => u === c);
2491
2484
  d !== -1 && (Q(a, { [Me.Unmount]() {
2492
2485
  r.current.splice(d, 1);
@@ -2499,12 +2492,12 @@ function Ar(e, t) {
2499
2492
  }), f = k((c) => {
2500
2493
  let a = r.current.find(({ el: d }) => d === c);
2501
2494
  return a ? a.state !== "visible" && (a.state = "visible") : r.current.push({ el: c, state: "visible" }), () => o(c, Me.Unmount);
2502
- }), p = P([]), b = P(Promise.resolve()), v = P({ enter: [], leave: [], idle: [] }), m = k((c, a, d) => {
2503
- p.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([u]) => u !== c)), t == null || t.chains.current[a].push([c, new Promise((u) => {
2495
+ }), p = C([]), b = C(Promise.resolve()), v = C({ enter: [], leave: [], idle: [] }), m = k((c, a, d) => {
2496
+ p.current.splice(0), t && (t.chains.current[a] = t.chains.current[a].filter(([u]) => u !== c)), t?.chains.current[a].push([c, new Promise((u) => {
2504
2497
  p.current.push(u);
2505
- })]), t == null || t.chains.current[a].push([c, new Promise((u) => {
2498
+ })]), t?.chains.current[a].push([c, new Promise((u) => {
2506
2499
  Promise.all(v.current[a].map(([h, I]) => I)).then(() => u());
2507
- })]), a === "enter" ? b.current = b.current.then(() => t == null ? void 0 : t.wait.current).then(() => d(a)) : d(a);
2500
+ })]), a === "enter" ? b.current = b.current.then(() => t?.wait.current).then(() => d(a)) : d(a);
2508
2501
  }), s = k((c, a, d) => {
2509
2502
  Promise.all(v.current[a].splice(0).map(([u, h]) => h)).then(() => {
2510
2503
  var u;
@@ -2524,7 +2517,7 @@ function xn(e) {
2524
2517
  return n;
2525
2518
  }
2526
2519
  function Bl(e) {
2527
- let t = P(xn(e));
2520
+ let t = C(xn(e));
2528
2521
  return X(() => {
2529
2522
  t.current = xn(e);
2530
2523
  }, [e]), t;
@@ -2532,51 +2525,51 @@ function Bl(e) {
2532
2525
  let Ul = "div", $r = Ge.RenderStrategy;
2533
2526
  function jl(e, t) {
2534
2527
  var n, r;
2535
- let { beforeEnter: i, afterEnter: l, beforeLeave: o, afterLeave: f, enter: p, enterFrom: b, enterTo: v, entered: m, leave: s, leaveFrom: c, leaveTo: a, ...d } = e, u = P(null), h = ye(u, t), I = (n = d.unmount) == null || n ? Me.Unmount : Me.Hidden, { show: w, appear: g, initial: V } = Ml(), [A, q] = Z(w ? "visible" : "hidden"), $ = Dl(), { register: S, unregister: z } = $;
2528
+ let { beforeEnter: i, afterEnter: l, beforeLeave: o, afterLeave: f, enter: p, enterFrom: b, enterTo: v, entered: m, leave: s, leaveFrom: c, leaveTo: a, ...d } = e, u = C(null), h = ye(u, t), I = (n = d.unmount) == null || n ? Me.Unmount : Me.Hidden, { show: w, appear: g, initial: V } = Ml(), [F, q] = Z(w ? "visible" : "hidden"), $ = Dl(), { register: S, unregister: z } = $;
2536
2529
  X(() => S(u), [S, u]), X(() => {
2537
2530
  if (I === Me.Hidden && u.current) {
2538
- if (w && A !== "visible") {
2531
+ if (w && F !== "visible") {
2539
2532
  q("visible");
2540
2533
  return;
2541
2534
  }
2542
- return Q(A, { hidden: () => z(u), visible: () => S(u) });
2535
+ return Q(F, { hidden: () => z(u), visible: () => S(u) });
2543
2536
  }
2544
- }, [A, u, S, z, w, I]);
2545
- let ee = Se({ base: $e(d.className), enter: $e(p), enterFrom: $e(b), enterTo: $e(v), entered: $e(m), leave: $e(s), leaveFrom: $e(c), leaveTo: $e(a) }), ne = Bl({ beforeEnter: i, afterEnter: l, beforeLeave: o, afterLeave: f }), C = qt();
2537
+ }, [F, u, S, z, w, I]);
2538
+ let ee = Se({ base: $e(d.className), enter: $e(p), enterFrom: $e(b), enterTo: $e(v), entered: $e(m), leave: $e(s), leaveFrom: $e(c), leaveTo: $e(a) }), ne = Bl({ beforeEnter: i, afterEnter: l, beforeLeave: o, afterLeave: f }), _ = qt();
2546
2539
  X(() => {
2547
- if (C && A === "visible" && u.current === null)
2540
+ if (_ && F === "visible" && u.current === null)
2548
2541
  throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
2549
- }, [u, A, C]);
2550
- let T = V && !g, _ = g && w && V, N = (() => !C || T ? "idle" : w ? "enter" : "leave")(), W = Ll(0), re = k((se) => Q(se, { enter: () => {
2551
- W.addFlag(ae.Opening), ne.current.beforeEnter();
2542
+ }, [u, F, _]);
2543
+ let T = V && !g, L = g && w && V, A = (() => !_ || T ? "idle" : w ? "enter" : "leave")(), W = Ll(0), re = k((oe) => Q(oe, { enter: () => {
2544
+ W.addFlag(le.Opening), ne.current.beforeEnter();
2552
2545
  }, leave: () => {
2553
- W.addFlag(ae.Closing), ne.current.beforeLeave();
2546
+ W.addFlag(le.Closing), ne.current.beforeLeave();
2554
2547
  }, idle: () => {
2555
- } })), ie = k((se) => Q(se, { enter: () => {
2556
- W.removeFlag(ae.Opening), ne.current.afterEnter();
2548
+ } })), ie = k((oe) => Q(oe, { enter: () => {
2549
+ W.removeFlag(le.Opening), ne.current.afterEnter();
2557
2550
  }, leave: () => {
2558
- W.removeFlag(ae.Closing), ne.current.afterLeave();
2551
+ W.removeFlag(le.Closing), ne.current.afterLeave();
2559
2552
  }, idle: () => {
2560
2553
  } })), pe = Ar(() => {
2561
2554
  q("hidden"), z(u);
2562
2555
  }, $);
2563
- Al({ immediate: _, container: u, classes: ee, direction: N, onStart: Se((se) => {
2564
- pe.onStart(u, se, re);
2565
- }), onStop: Se((se) => {
2566
- pe.onStop(u, se, ie), se === "leave" && !Tt(pe) && (q("hidden"), z(u));
2556
+ Al({ immediate: L, container: u, classes: ee, direction: A, onStart: Se((oe) => {
2557
+ pe.onStart(u, oe, re);
2558
+ }), onStop: Se((oe) => {
2559
+ pe.onStop(u, oe, ie), oe === "leave" && !Tt(pe) && (q("hidden"), z(u));
2567
2560
  }) });
2568
- let me = d, le = { ref: h };
2569
- return _ ? me = { ...me, className: ht(d.className, ...ee.current.enter, ...ee.current.enterFrom) } : (me.className = ht(d.className, (r = u.current) == null ? void 0 : r.className), me.className === "" && delete me.className), Y.createElement(kt.Provider, { value: pe }, Y.createElement(Yt, { value: Q(A, { visible: ae.Open, hidden: ae.Closed }) | W.flags }, ve({ ourProps: le, theirProps: me, defaultTag: Ul, features: $r, visible: A === "visible", name: "Transition.Child" })));
2561
+ let me = d, se = { ref: h };
2562
+ return L ? me = { ...me, className: ht(d.className, ...ee.current.enter, ...ee.current.enterFrom) } : (me.className = ht(d.className, (r = u.current) == null ? void 0 : r.className), me.className === "" && delete me.className), Y.createElement(kt.Provider, { value: pe }, Y.createElement(Yt, { value: Q(F, { visible: le.Open, hidden: le.Closed }) | W.flags }, ve({ ourProps: se, theirProps: me, defaultTag: Ul, features: $r, visible: F === "visible", name: "Transition.Child" })));
2570
2563
  }
2571
2564
  function ql(e, t) {
2572
- let { show: n, appear: r = !1, unmount: i = !0, ...l } = e, o = P(null), f = ye(o, t);
2565
+ let { show: n, appear: r = !1, unmount: i = !0, ...l } = e, o = C(null), f = ye(o, t);
2573
2566
  qt();
2574
2567
  let p = Ot();
2575
- if (n === void 0 && p !== null && (n = (p & ae.Open) === ae.Open), ![!0, !1].includes(n))
2568
+ if (n === void 0 && p !== null && (n = (p & le.Open) === le.Open), ![!0, !1].includes(n))
2576
2569
  throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
2577
2570
  let [b, v] = Z(n ? "visible" : "hidden"), m = Ar(() => {
2578
2571
  v("hidden");
2579
- }), [s, c] = Z(!0), a = P([n]);
2572
+ }), [s, c] = Z(!0), a = C([n]);
2580
2573
  J(() => {
2581
2574
  s !== !1 && a.current[a.current.length - 1] !== n && (a.current.push(n), c(!1));
2582
2575
  }, [a, n]);
@@ -2628,7 +2621,7 @@ function Kl({
2628
2621
  clipRule: "evenodd"
2629
2622
  }));
2630
2623
  }
2631
- const Gl = Pe.forwardRef(Kl), Wr = Gl, as = ({ children: e, selected: t, onSelect: n, themeColor: r }) => {
2624
+ const Gl = Pe.forwardRef(Kl), Wr = Gl, ls = ({ children: e, selected: t, onSelect: n, themeColor: r }) => {
2632
2625
  const [i, l] = Z(!1);
2633
2626
  let o = "#333333";
2634
2627
  const f = (v) => {
@@ -2663,7 +2656,7 @@ const Gl = Pe.forwardRef(Kl), Wr = Gl, as = ({ children: e, selected: t, onSelec
2663
2656
  ) }),
2664
2657
  e
2665
2658
  ] }) }) });
2666
- }, ls = ({ children: e, setQuery: t }) => /* @__PURE__ */ O(Ye, { children: /* @__PURE__ */ O(
2659
+ }, ss = ({ children: e, setQuery: t }) => /* @__PURE__ */ O(Ye, { children: /* @__PURE__ */ O(
2667
2660
  Dr,
2668
2661
  {
2669
2662
  as: Le,
@@ -2675,7 +2668,7 @@ const Gl = Pe.forwardRef(Kl), Wr = Gl, as = ({ children: e, selected: t, onSelec
2675
2668
  }
2676
2669
  ) }), Yl = De((e, t) => /* @__PURE__ */ O(gt.Option, { ref: t, className: e.className, value: e.value, disabled: e.disable, children: e.children }));
2677
2670
  Yl.displayName = "SelectOption";
2678
- const ss = ({
2671
+ const cs = ({
2679
2672
  children: e,
2680
2673
  selected: t,
2681
2674
  onSelect: n,
@@ -2684,7 +2677,7 @@ const ss = ({
2684
2677
  clearSearch: l = !1,
2685
2678
  themeColor: o
2686
2679
  }) => {
2687
- const f = P(null), p = P(null);
2680
+ const f = C(null), p = C(null);
2688
2681
  let b = {};
2689
2682
  X(() => {
2690
2683
  f.current && t && (f.current.value = t.label || "");
@@ -2693,7 +2686,7 @@ const ss = ({
2693
2686
  n(a), c();
2694
2687
  }, m = () => {
2695
2688
  f.current && p.current && (l && (f.current.value = ""), p.current.click());
2696
- }, s = (a) => (c(), a == null ? void 0 : a.label), c = () => {
2689
+ }, s = (a) => (c(), a?.label), c = () => {
2697
2690
  const a = f.current;
2698
2691
  a && (a.focus(), a.setSelectionRange(a.value.length, a.value.length));
2699
2692
  };
@@ -2741,7 +2734,7 @@ const ss = ({
2741
2734
  ),
2742
2735
  e
2743
2736
  ] }) });
2744
- }, cs = ({ children: e, setQuery: t }) => /* @__PURE__ */ O(Ye, { children: /* @__PURE__ */ O(
2737
+ }, us = ({ children: e, setQuery: t }) => /* @__PURE__ */ O(Ye, { children: /* @__PURE__ */ O(
2745
2738
  Dr,
2746
2739
  {
2747
2740
  as: Le,
@@ -2756,7 +2749,7 @@ Ql.displayName = "Option";
2756
2749
  const Xl = "_textInputWrapper_kudnh_1", Zl = "_textInput_kudnh_1", yn = {
2757
2750
  textInputWrapper: Xl,
2758
2751
  textInput: Zl
2759
- }, us = Y.memo(
2752
+ }, ds = Y.memo(
2760
2753
  De(
2761
2754
  ({ themeColor: e = "", style: t = {}, className: n = "", onFocus: r, onBlur: i, ...l }, o) => {
2762
2755
  const [f, p] = Z(!1);
@@ -2785,18 +2778,19 @@ const Xl = "_textInputWrapper_kudnh_1", Zl = "_textInput_kudnh_1", yn = {
2785
2778
  )
2786
2779
  );
2787
2780
  export {
2788
- ss as AutoComplete,
2781
+ cs as AutoComplete,
2789
2782
  kn as Button,
2790
2783
  Vt as Checkbox,
2791
- ts as MultiLineInput,
2792
- ns as MultiSelect,
2784
+ ns as MultiLineInput,
2785
+ rs as MultiSelect,
2793
2786
  Ql as Option,
2794
- cs as Options,
2795
- rs as QuickMultiSelect,
2796
- is as QuickSelect,
2787
+ us as Options,
2788
+ is as QuickMultiSelect,
2789
+ os as QuickSelect,
2797
2790
  ba as Scrollbar,
2798
- as as Select,
2791
+ ls as Select,
2799
2792
  Yl as SelectOption,
2800
- ls as SelectOptions,
2801
- us as SingleLineInput
2793
+ ss as SelectOptions,
2794
+ ds as SingleLineInput
2802
2795
  };
2796
+ //# sourceMappingURL=ui-react.es.js.map