@oncehub/ui-react 1.4.22-beta.1.1 → 1.4.22-beta.1.3
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.
- package/dist/ui-react.es.js +77 -76
- package/dist/ui-react.es.js.map +1 -1
- package/dist/ui-react.umd.js +7 -7
- package/dist/ui-react.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-react.es.js
CHANGED
|
@@ -70,7 +70,7 @@ function Vo() {
|
|
|
70
70
|
}
|
|
71
71
|
var _ = !1, M = !1, S = !1, U = !1, W = !1, I;
|
|
72
72
|
I = Symbol.for("react.module.reference");
|
|
73
|
-
function
|
|
73
|
+
function Y(s) {
|
|
74
74
|
return !!(typeof s == "string" || typeof s == "function" || s === r || s === c || W || s === o || s === v || s === m || U || s === d || _ || M || S || typeof s == "object" && s !== null && (s.$$typeof === l || s.$$typeof === h || s.$$typeof === i || s.$$typeof === f || s.$$typeof === b || // This needs to include all possible module reference object
|
|
75
75
|
// types supported by any Flight configuration anywhere since
|
|
76
76
|
// we don't know which Flight build this will end up being used
|
|
@@ -132,7 +132,7 @@ function Vo() {
|
|
|
132
132
|
}
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
|
-
var
|
|
135
|
+
var q = Object.assign, ne = 0, fe, B, pe, re, Z, de, he;
|
|
136
136
|
function be() {
|
|
137
137
|
}
|
|
138
138
|
be.__reactDisabledLog = !0;
|
|
@@ -168,25 +168,25 @@ function Vo() {
|
|
|
168
168
|
writable: !0
|
|
169
169
|
};
|
|
170
170
|
Object.defineProperties(console, {
|
|
171
|
-
log:
|
|
171
|
+
log: q({}, s, {
|
|
172
172
|
value: fe
|
|
173
173
|
}),
|
|
174
|
-
info:
|
|
174
|
+
info: q({}, s, {
|
|
175
175
|
value: B
|
|
176
176
|
}),
|
|
177
|
-
warn:
|
|
177
|
+
warn: q({}, s, {
|
|
178
178
|
value: pe
|
|
179
179
|
}),
|
|
180
|
-
error:
|
|
180
|
+
error: q({}, s, {
|
|
181
181
|
value: re
|
|
182
182
|
}),
|
|
183
|
-
group:
|
|
183
|
+
group: q({}, s, {
|
|
184
184
|
value: Z
|
|
185
185
|
}),
|
|
186
|
-
groupCollapsed:
|
|
186
|
+
groupCollapsed: q({}, s, {
|
|
187
187
|
value: de
|
|
188
188
|
}),
|
|
189
|
-
groupEnd:
|
|
189
|
+
groupEnd: q({}, s, {
|
|
190
190
|
value: he
|
|
191
191
|
})
|
|
192
192
|
});
|
|
@@ -261,17 +261,17 @@ function Vo() {
|
|
|
261
261
|
}
|
|
262
262
|
} catch (nt) {
|
|
263
263
|
if (nt && A && typeof nt.stack == "string") {
|
|
264
|
-
for (var
|
|
264
|
+
for (var z = nt.stack.split(`
|
|
265
265
|
`), je = A.stack.split(`
|
|
266
|
-
`), ge =
|
|
266
|
+
`), ge = z.length - 1, ye = je.length - 1; ge >= 1 && ye >= 0 && z[ge] !== je[ye]; )
|
|
267
267
|
ye--;
|
|
268
268
|
for (; ge >= 1 && ye >= 0; ge--, ye--)
|
|
269
|
-
if (
|
|
269
|
+
if (z[ge] !== je[ye]) {
|
|
270
270
|
if (ge !== 1 || ye !== 1)
|
|
271
271
|
do
|
|
272
|
-
if (ge--, ye--, ye < 0 ||
|
|
272
|
+
if (ge--, ye--, ye < 0 || z[ge] !== je[ye]) {
|
|
273
273
|
var Ue = `
|
|
274
|
-
` +
|
|
274
|
+
` + z[ge].replace(" at new ", " at ");
|
|
275
275
|
return s.displayName && Ue.includes("<anonymous>") && (Ue = Ue.replace("<anonymous>", s.displayName)), typeof s == "function" && Ve.set(s, Ue), Ue;
|
|
276
276
|
}
|
|
277
277
|
while (ge >= 1 && ye >= 0);
|
|
@@ -333,17 +333,17 @@ function Vo() {
|
|
|
333
333
|
var le = Function.call.bind(Re);
|
|
334
334
|
for (var G in s)
|
|
335
335
|
if (le(s, G)) {
|
|
336
|
-
var
|
|
336
|
+
var z = void 0;
|
|
337
337
|
try {
|
|
338
338
|
if (typeof s[G] != "function") {
|
|
339
339
|
var je = Error((A || "React class") + ": " + C + " type `" + G + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[G] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
340
340
|
throw je.name = "Invariant Violation", je;
|
|
341
341
|
}
|
|
342
|
-
|
|
342
|
+
z = s[G](x, G, A, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
343
343
|
} catch (ge) {
|
|
344
|
-
|
|
344
|
+
z = ge;
|
|
345
345
|
}
|
|
346
|
-
|
|
346
|
+
z && !(z instanceof Error) && (Pe(Q), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", A || "React class", C, G, typeof z), Pe(null)), z instanceof Error && !(z.message in Ne) && (Ne[z.message] = !0, Pe(Q), E("Failed %s type: %s", C, z.message), Pe(null));
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
}
|
|
@@ -423,7 +423,7 @@ function Vo() {
|
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
var So = function(s, x, C, A, Q, le, G) {
|
|
426
|
-
var
|
|
426
|
+
var z = {
|
|
427
427
|
// This tag allows us to uniquely identify this as a React Element
|
|
428
428
|
$$typeof: t,
|
|
429
429
|
// Built-in properties that belong on the element
|
|
@@ -434,27 +434,27 @@ function Vo() {
|
|
|
434
434
|
// Record the component responsible for creating this element.
|
|
435
435
|
_owner: le
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return z._store = {}, Object.defineProperty(z._store, "validated", {
|
|
438
438
|
configurable: !1,
|
|
439
439
|
enumerable: !1,
|
|
440
440
|
writable: !0,
|
|
441
441
|
value: !1
|
|
442
|
-
}), Object.defineProperty(
|
|
442
|
+
}), Object.defineProperty(z, "_self", {
|
|
443
443
|
configurable: !1,
|
|
444
444
|
enumerable: !1,
|
|
445
445
|
writable: !1,
|
|
446
446
|
value: A
|
|
447
|
-
}), Object.defineProperty(
|
|
447
|
+
}), Object.defineProperty(z, "_source", {
|
|
448
448
|
configurable: !1,
|
|
449
449
|
enumerable: !1,
|
|
450
450
|
writable: !1,
|
|
451
451
|
value: Q
|
|
452
|
-
}), Object.freeze && (Object.freeze(
|
|
452
|
+
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
|
|
453
453
|
};
|
|
454
454
|
function Eo(s, x, C, A, Q) {
|
|
455
455
|
{
|
|
456
|
-
var le, G = {},
|
|
457
|
-
C !== void 0 && (J(C),
|
|
456
|
+
var le, G = {}, z = null, je = null;
|
|
457
|
+
C !== void 0 && (J(C), z = "" + C), Be(x) && (J(x.key), z = "" + x.key), N(x) && (je = x.ref, Tt(x, Q));
|
|
458
458
|
for (le in x)
|
|
459
459
|
Re.call(x, le) && !ie.hasOwnProperty(le) && (G[le] = x[le]);
|
|
460
460
|
if (s && s.defaultProps) {
|
|
@@ -462,11 +462,11 @@ function Vo() {
|
|
|
462
462
|
for (le in ge)
|
|
463
463
|
G[le] === void 0 && (G[le] = ge[le]);
|
|
464
464
|
}
|
|
465
|
-
if (
|
|
465
|
+
if (z || je) {
|
|
466
466
|
var ye = typeof s == "function" ? s.displayName || s.name || "Unknown" : s;
|
|
467
|
-
|
|
467
|
+
z && Wt(G, ye), je && ko(G, ye);
|
|
468
468
|
}
|
|
469
|
-
return So(s,
|
|
469
|
+
return So(s, z, je, Q, A, F.current, G);
|
|
470
470
|
}
|
|
471
471
|
}
|
|
472
472
|
var rn = g.ReactCurrentOwner, Fn = g.ReactDebugCurrentFrame;
|
|
@@ -589,14 +589,14 @@ Check the top-level render call using <` + C + ">.");
|
|
|
589
589
|
}
|
|
590
590
|
function Mn(s, x, C, A, Q, le) {
|
|
591
591
|
{
|
|
592
|
-
var G =
|
|
592
|
+
var G = Y(s);
|
|
593
593
|
if (!G) {
|
|
594
|
-
var
|
|
595
|
-
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (
|
|
594
|
+
var z = "";
|
|
595
|
+
(s === void 0 || typeof s == "object" && s !== null && Object.keys(s).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
596
596
|
var je = To(Q);
|
|
597
|
-
je ?
|
|
597
|
+
je ? z += je : z += Nn();
|
|
598
598
|
var ge;
|
|
599
|
-
s === null ? ge = "null" : Le(s) ? ge = "array" : s !== void 0 && s.$$typeof === t ? (ge = "<" + (w(s.type) || "Unknown") + " />",
|
|
599
|
+
s === null ? ge = "null" : Le(s) ? ge = "array" : s !== void 0 && s.$$typeof === t ? (ge = "<" + (w(s.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof s, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, z);
|
|
600
600
|
}
|
|
601
601
|
var ye = Eo(s, x, C, Q, le);
|
|
602
602
|
if (ye == null)
|
|
@@ -815,7 +815,7 @@ const ci = "_textInputWrapper_1i9m6_1", ui = "_textInput_1i9m6_1", Un = {
|
|
|
815
815
|
var R = {}, bn = { exports: {} };
|
|
816
816
|
(function(e, t) {
|
|
817
817
|
(function(n, r) {
|
|
818
|
-
var o = "1.0.37", c = "", i = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", d = "name", a = "type", u = "vendor", p = "version", g = "architecture", E = "console", y = "mobile", _ = "tablet", M = "smarttv", S = "wearable", U = "embedded", W = 500, I = "Amazon",
|
|
818
|
+
var o = "1.0.37", c = "", i = "?", f = "function", b = "undefined", v = "object", m = "string", h = "major", l = "model", d = "name", a = "type", u = "vendor", p = "version", g = "architecture", E = "console", y = "mobile", _ = "tablet", M = "smarttv", S = "wearable", U = "embedded", W = 500, I = "Amazon", Y = "Apple", se = "ASUS", oe = "BlackBerry", w = "Browser", q = "Chrome", ne = "Edge", fe = "Firefox", B = "Google", pe = "Huawei", re = "LG", Z = "Microsoft", de = "Motorola", he = "Opera", be = "Samsung", T = "Sharp", L = "Sony", $ = "Xiaomi", Oe = "Zebra", Ee = "Facebook", ze = "Chromium OS", Ve = "Mac OS", Et = function(H, J) {
|
|
819
819
|
var F = {};
|
|
820
820
|
for (var ie in H)
|
|
821
821
|
J[ie] && J[ie].length % 2 === 0 ? F[ie] = J[ie].concat(H[ie]) : F[ie] = H[ie];
|
|
@@ -851,7 +851,7 @@ var R = {}, bn = { exports: {} };
|
|
|
851
851
|
} else if (V(J[F], H))
|
|
852
852
|
return F === i ? r : F;
|
|
853
853
|
return H;
|
|
854
|
-
}, Pe = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, vt = { 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" }, Mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, he + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, he]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "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], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + w]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + w]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + w], p], [/\bfocus\/([\w\.]+)/i], [p, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, he + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, he + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + w]], [/fxios\/([-\w\.]+)/i], [p, [d, fe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + w]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + w], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, be + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ee], p], [/(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], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, z + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, z + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + w]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Je, Pe]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, fe + " 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], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, ve]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, ve]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, ve]]], 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], [l, [u, be], [a, _]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, be], [a, y]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, q], [a, y]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, q], [a, _]], [/(macintosh);/i], [l, [u, q]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, y]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, pe], [a, _]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, pe], [a, y]], [/\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], [[l, /_/g, " "], [u, $], [a, y]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, $], [a, _]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, y]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, y]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, y]], [/\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], [l, [u, de], [a, y]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, de], [a, _]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, re], [a, _]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, re], [a, y]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, _]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, y]], [/(pixel c)\b/i], [l, [u, B], [a, _]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, y]], [/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], [l, [u, L], [a, y]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, L], [a, _]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, y]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, I], [a, _]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, I], [a, y]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, _]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, oe], [a, y]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, se], [a, _]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, se], [a, y]], [/(nexus 9)/i], [l, [u, "HTC"], [a, _]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, y]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, _]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, y]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, y]], [/(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], [u, l, [a, y]], [/(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], [u, l, [a, _]], [/(surface duo)/i], [l, [u, Z], [a, _]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, y]], [/(u304aa)/i], [l, [u, "AT&T"], [a, y]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, y]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, _]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, _]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, _]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, _]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, _]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, _]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, y]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, y]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, _]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, _]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, _]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, _]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, _]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, y]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, y]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, y]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, _]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, _]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, _]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, _]], [/(sprint) (\w+)/i], [u, l, [a, y]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Z], [a, y]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, Oe], [a, _]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, Oe], [a, y]], [/smart-tv.+(samsung)/i], [u, [a, M]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, be], [a, M]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, re], [a, M]], [/(apple) ?tv/i], [u, [l, q + " TV"], [a, M]], [/crkey/i], [[l, z + "cast"], [u, B], [a, M]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, I], [a, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, M]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, L], [a, M]], [/(mitv-\w{5}) bui/i], [l, [u, $], [a, M]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, M]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Re], [l, Re], [a, M]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, M]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, E]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, E]], [/(playstation [345portablevi]+)/i], [l, [u, L], [a, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Z], [a, E]], [/((pebble))app/i], [u, l, [a, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, q], [a, S]], [/droid.+; (glass) \d/i], [l, [u, B], [a, S]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, Oe], [a, S]], [/(quest( 2| pro)?)/i], [l, [u, Ee], [a, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, U]], [/(aeobc)\b/i], [l, [u, I], [a, U]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, y]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, _]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, _]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, y]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, ne + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "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], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Je, vt]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Je, vt], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, Ve], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, oe]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, z + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, ze], p], [/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], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Le = function(H, J) {
|
|
854
|
+
}, Pe = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, vt = { 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" }, Mt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [p, [d, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [p, [d, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [d, p], [/opios[\/ ]+([\w\.]+)/i], [p, [d, he + " Mini"]], [/\bopr\/([\w\.]+)/i], [p, [d, he]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [p, [d, "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], [d, p], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [p, [d, "UC" + w]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [p, [d, "WeChat"]], [/konqueror\/([\w\.]+)/i], [p, [d, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [p, [d, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [p, [d, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [p, [d, "Smart Lenovo " + w]], [/(avast|avg)\/([\w\.]+)/i], [[d, /(.+)/, "$1 Secure " + w], p], [/\bfocus\/([\w\.]+)/i], [p, [d, fe + " Focus"]], [/\bopt\/([\w\.]+)/i], [p, [d, he + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [p, [d, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [p, [d, "Dolphin"]], [/coast\/([\w\.]+)/i], [p, [d, he + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [p, [d, "MIUI " + w]], [/fxios\/([-\w\.]+)/i], [p, [d, fe]], [/\bqihu|(qi?ho?o?|360)browser/i], [[d, "360 " + w]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[d, /(.+)/, "$1 " + w], p], [/samsungbrowser\/([\w\.]+)/i], [p, [d, be + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[d, /_/g, " "], p], [/metasr[\/ ]?([\d\.]+)/i], [p, [d, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[d, "Sogou Mobile"], p], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [d, p], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [d], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[d, Ee], p], [/(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], [d, p], [/\bgsa\/([\w\.]+) .*safari\//i], [p, [d, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [p, [d, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [p, [d, q + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[d, q + " WebView"], p], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [p, [d, "Android " + w]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [d, p], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [p, [d, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [p, d], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [d, [p, Je, Pe]], [/(webkit|khtml)\/([\w\.]+)/i], [d, p], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[d, "Netscape"], p], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [p, [d, fe + " 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], [d, p], [/(cobalt)\/([\w\.]+)/i], [d, [p, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[g, "amd64"]], [/(ia32(?=;))/i], [[g, ve]], [/((?:i[346]|x)86)[;\)]/i], [[g, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[g, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[g, "armhf"]], [/windows (ce|mobile); ppc;/i], [[g, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[g, /ower/, c, ve]], [/(sun4\w)[;\)]/i], [[g, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[g, ve]]], 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], [l, [u, be], [a, _]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [l, [u, be], [a, y]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [l, [u, Y], [a, y]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [l, [u, Y], [a, _]], [/(macintosh);/i], [l, [u, Y]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [l, [u, T], [a, y]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [l, [u, pe], [a, _]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [l, [u, pe], [a, y]], [/\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], [[l, /_/g, " "], [u, $], [a, y]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[l, /_/g, " "], [u, $], [a, _]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [l, [u, "OPPO"], [a, y]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [l, [u, "Vivo"], [a, y]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [l, [u, "Realme"], [a, y]], [/\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], [l, [u, de], [a, y]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [l, [u, de], [a, _]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [l, [u, re], [a, _]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [l, [u, re], [a, y]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [l, [u, "Lenovo"], [a, _]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[l, /_/g, " "], [u, "Nokia"], [a, y]], [/(pixel c)\b/i], [l, [u, B], [a, _]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [l, [u, B], [a, y]], [/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], [l, [u, L], [a, y]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[l, "Xperia Tablet"], [u, L], [a, _]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [l, [u, "OnePlus"], [a, y]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [l, [u, I], [a, _]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[l, /(.+)/g, "Fire Phone $1"], [u, I], [a, y]], [/(playbook);[-\w\),; ]+(rim)/i], [l, u, [a, _]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [l, [u, oe], [a, y]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [l, [u, se], [a, _]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [l, [u, se], [a, y]], [/(nexus 9)/i], [l, [u, "HTC"], [a, _]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [u, [l, /_/g, " "], [a, y]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [l, [u, "Acer"], [a, _]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [l, [u, "Meizu"], [a, y]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [l, [u, "Ulefone"], [a, y]], [/(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], [u, l, [a, y]], [/(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], [u, l, [a, _]], [/(surface duo)/i], [l, [u, Z], [a, _]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [l, [u, "Fairphone"], [a, y]], [/(u304aa)/i], [l, [u, "AT&T"], [a, y]], [/\bsie-(\w*)/i], [l, [u, "Siemens"], [a, y]], [/\b(rct\w+) b/i], [l, [u, "RCA"], [a, _]], [/\b(venue[\d ]{2,7}) b/i], [l, [u, "Dell"], [a, _]], [/\b(q(?:mv|ta)\w+) b/i], [l, [u, "Verizon"], [a, _]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [l, [u, "Barnes & Noble"], [a, _]], [/\b(tm\d{3}\w+) b/i], [l, [u, "NuVision"], [a, _]], [/\b(k88) b/i], [l, [u, "ZTE"], [a, _]], [/\b(nx\d{3}j) b/i], [l, [u, "ZTE"], [a, y]], [/\b(gen\d{3}) b.+49h/i], [l, [u, "Swiss"], [a, y]], [/\b(zur\d{3}) b/i], [l, [u, "Swiss"], [a, _]], [/\b((zeki)?tb.*\b) b/i], [l, [u, "Zeki"], [a, _]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[u, "Dragon Touch"], l, [a, _]], [/\b(ns-?\w{0,9}) b/i], [l, [u, "Insignia"], [a, _]], [/\b((nxa|next)-?\w{0,9}) b/i], [l, [u, "NextBook"], [a, _]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[u, "Voice"], l, [a, y]], [/\b(lvtel\-)?(v1[12]) b/i], [[u, "LvTel"], l, [a, y]], [/\b(ph-1) /i], [l, [u, "Essential"], [a, y]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [l, [u, "Envizen"], [a, _]], [/\b(trio[-\w\. ]+) b/i], [l, [u, "MachSpeed"], [a, _]], [/\btu_(1491) b/i], [l, [u, "Rotor"], [a, _]], [/(shield[\w ]+) b/i], [l, [u, "Nvidia"], [a, _]], [/(sprint) (\w+)/i], [u, l, [a, y]], [/(kin\.[onetw]{3})/i], [[l, /\./g, " "], [u, Z], [a, y]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [l, [u, Oe], [a, _]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [l, [u, Oe], [a, y]], [/smart-tv.+(samsung)/i], [u, [a, M]], [/hbbtv.+maple;(\d+)/i], [[l, /^/, "SmartTV"], [u, be], [a, M]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[u, re], [a, M]], [/(apple) ?tv/i], [u, [l, Y + " TV"], [a, M]], [/crkey/i], [[l, q + "cast"], [u, B], [a, M]], [/droid.+aft(\w+)( bui|\))/i], [l, [u, I], [a, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [l, [u, T], [a, M]], [/(bravia[\w ]+)( bui|\))/i], [l, [u, L], [a, M]], [/(mitv-\w{5}) bui/i], [l, [u, $], [a, M]], [/Hbbtv.*(technisat) (.*);/i], [u, l, [a, M]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[u, Re], [l, Re], [a, M]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[a, M]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [u, l, [a, E]], [/droid.+; (shield) bui/i], [l, [u, "Nvidia"], [a, E]], [/(playstation [345portablevi]+)/i], [l, [u, L], [a, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [l, [u, Z], [a, E]], [/((pebble))app/i], [u, l, [a, S]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [l, [u, Y], [a, S]], [/droid.+; (glass) \d/i], [l, [u, B], [a, S]], [/droid.+; (wt63?0{2,3})\)/i], [l, [u, Oe], [a, S]], [/(quest( 2| pro)?)/i], [l, [u, Ee], [a, S]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [u, [a, U]], [/(aeobc)\b/i], [l, [u, I], [a, U]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [l, [a, y]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [l, [a, _]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[a, _]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[a, y]], [/(android[-\w\. ]{0,9});.+buil/i], [l, [u, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [p, [d, ne + "HTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [p, [d, "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], [d, p], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [p, d]], os: [[/microsoft (windows) (vista|xp)/i], [d, p], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [d, [p, Je, vt]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[p, Je, vt], [d, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[p, /_/g, "."], [d, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[d, Ve], [p, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [p, d], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [d, p], [/\(bb(10);/i], [p, [d, oe]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [p, [d, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [p, [d, fe + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [p, [d, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [p, [d, "watchOS"]], [/crkey\/([\d\.]+)/i], [p, [d, q + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[d, ze], p], [/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], [d, p], [/(sunos) ?([\w\.\d]*)/i], [[d, "Solaris"], p], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [d, p]] }, Le = function(H, J) {
|
|
855
855
|
if (typeof H === v && (J = H, H = r), !(this instanceof Le))
|
|
856
856
|
return new Le(H, J).getResult();
|
|
857
857
|
var F = typeof n !== b && n.navigator ? n.navigator : r, ie = H || (F && F.userAgent ? F.userAgent : c), Ye = F && F.userAgentData ? F.userAgentData : r, $e = J ? Et(Mt, J) : Mt, K = F && F.userAgent == ie;
|
|
@@ -1712,9 +1712,9 @@ const Tc = ({
|
|
|
1712
1712
|
className: c = "",
|
|
1713
1713
|
style: i = {}
|
|
1714
1714
|
}) => {
|
|
1715
|
-
const f = P(e), [b, v] = ae(t), [m, h] = ae(""), [l, d] = ae(!1), [a, u] = ae(!1), p = P(null), g = P(null), E = P(null), y = P(null), _ = P(null), M = P(null), [S, U] = ae(-1), W = P(0), I = P(0), [
|
|
1715
|
+
const f = P(e), [b, v] = ae(t), [m, h] = ae(""), [l, d] = ae(!1), [a, u] = ae(!1), p = P(null), g = P(null), E = P(null), y = P(null), _ = P(null), M = P(null), [S, U] = ae(-1), W = P(0), I = P(0), [Y, se] = ae(!1);
|
|
1716
1716
|
let oe = {};
|
|
1717
|
-
const [w,
|
|
1717
|
+
const [w, q] = ae({ left: 0, top: 0 }), [ne, fe] = ae(null), B = P(!1), pe = P(null), re = () => {
|
|
1718
1718
|
setTimeout(() => {
|
|
1719
1719
|
(p.current?.children[0]).focus();
|
|
1720
1720
|
}, 0);
|
|
@@ -1764,7 +1764,7 @@ const Tc = ({
|
|
|
1764
1764
|
let Re;
|
|
1765
1765
|
if (V) {
|
|
1766
1766
|
const Ne = k.height, Je = k.top, Pe = V.height, vt = Pe > Je + window.scrollY;
|
|
1767
|
-
Je < Pe && (vt || vt && xe < Pe || ve > Pe || xe > Pe) || Je > Pe && xe > Pe ? Re = k.y + Ne : Re = k.y - Pe,
|
|
1767
|
+
Je < Pe && (vt || vt && xe < Pe || ve > Pe || xe > Pe) || Je > Pe && xe > Pe ? Re = k.y + Ne : Re = k.y - Pe, q({
|
|
1768
1768
|
left: k.left,
|
|
1769
1769
|
top: Re ?? k.top
|
|
1770
1770
|
});
|
|
@@ -1868,7 +1868,7 @@ const Tc = ({
|
|
|
1868
1868
|
)
|
|
1869
1869
|
] }),
|
|
1870
1870
|
/* @__PURE__ */ O.jsx("div", { id: "announcement", "aria-live": "assertive", role: "alert", className: ke.announcement }),
|
|
1871
|
-
|
|
1871
|
+
Y ? wn(
|
|
1872
1872
|
/* @__PURE__ */ O.jsx(O.Fragment, { children: l && p && /* @__PURE__ */ O.jsx(
|
|
1873
1873
|
"div",
|
|
1874
1874
|
{
|
|
@@ -2674,10 +2674,10 @@ function ql(e, t) {
|
|
|
2674
2674
|
return T;
|
|
2675
2675
|
}
|
|
2676
2676
|
return u.activeOptionIndex;
|
|
2677
|
-
}, compare: U, isSelected: W, nullable: m, __demoMode: v }), [d, r, b, h, m, v, u]),
|
|
2677
|
+
}, compare: U, isSelected: W, nullable: m, __demoMode: v }), [d, r, b, h, m, v, u]), Y = P(I.activeOptionIndex !== null ? I.options[I.activeOptionIndex] : null);
|
|
2678
2678
|
X(() => {
|
|
2679
2679
|
let T = I.activeOptionIndex !== null ? I.options[I.activeOptionIndex] : null;
|
|
2680
|
-
|
|
2680
|
+
Y.current !== T && (Y.current = T);
|
|
2681
2681
|
}), we(() => {
|
|
2682
2682
|
u.dataRef.current = I;
|
|
2683
2683
|
}, [I]), so([I.buttonRef, I.inputRef, I.optionsRef], () => Z.closeCombobox(), I.comboboxState === 0);
|
|
@@ -2689,19 +2689,19 @@ function ql(e, t) {
|
|
|
2689
2689
|
let { dataRef: T, id: L } = I.options[I.activeOptionIndex];
|
|
2690
2690
|
re(T.current.value), Z.goToOption(te.Specific, L);
|
|
2691
2691
|
}
|
|
2692
|
-
}),
|
|
2692
|
+
}), q = j(() => {
|
|
2693
2693
|
p({ type: 0 }), g.current = !0;
|
|
2694
2694
|
}), ne = j(() => {
|
|
2695
2695
|
p({ type: 1 }), g.current = !1;
|
|
2696
2696
|
}), fe = j((T, L, $) => (g.current = !1, T === te.Specific ? p({ type: 2, focus: te.Specific, id: L, trigger: $ }) : p({ type: 2, focus: T, trigger: $ }))), B = j((T, L) => (p({ type: 3, id: T, dataRef: L }), () => {
|
|
2697
2697
|
var $;
|
|
2698
|
-
(($ =
|
|
2698
|
+
(($ = Y.current) == null ? void 0 : $.id) === T && (g.current = !0), p({ type: 4, id: T });
|
|
2699
2699
|
})), pe = j((T) => (p({ type: 5, id: T }), () => p({ type: 5, id: null }))), re = j((T) => me(I.mode, { 0() {
|
|
2700
2700
|
return a?.(T);
|
|
2701
2701
|
}, 1() {
|
|
2702
2702
|
let L = I.value.slice(), $ = L.findIndex((Oe) => U(Oe, T));
|
|
2703
2703
|
return $ === -1 ? L.push(T) : L.splice($, 1), a?.(L);
|
|
2704
|
-
} })), Z = _e(() => ({ onChange: re, registerOption: B, registerLabel: pe, goToOption: fe, closeCombobox: ne, openCombobox:
|
|
2704
|
+
} })), Z = _e(() => ({ onChange: re, registerOption: B, registerLabel: pe, goToOption: fe, closeCombobox: ne, openCombobox: q, selectActiveOption: w, selectOption: oe }), []), de = t === null ? {} : { ref: t }, he = P(null), be = it();
|
|
2705
2705
|
return X(() => {
|
|
2706
2706
|
he.current && r !== void 0 && be.addEventListener(he.current, "reset", () => {
|
|
2707
2707
|
a?.(r);
|
|
@@ -2720,18 +2720,18 @@ function Yl(e, t) {
|
|
|
2720
2720
|
var w;
|
|
2721
2721
|
return typeof v == "function" && l.value !== void 0 ? (w = v(l.value)) != null ? w : "" : typeof l.value == "string" ? l.value : "";
|
|
2722
2722
|
}();
|
|
2723
|
-
Qn(([w,
|
|
2723
|
+
Qn(([w, q], [ne, fe]) => {
|
|
2724
2724
|
if (p.current)
|
|
2725
2725
|
return;
|
|
2726
2726
|
let B = l.inputRef.current;
|
|
2727
|
-
B && ((fe === 0 &&
|
|
2727
|
+
B && ((fe === 0 && q === 1 || w !== ne) && (B.value = w), requestAnimationFrame(() => {
|
|
2728
2728
|
if (p.current || !B || u?.activeElement !== B)
|
|
2729
2729
|
return;
|
|
2730
2730
|
let { selectionStart: pe, selectionEnd: re } = B;
|
|
2731
2731
|
Math.abs((re ?? 0) - (pe ?? 0)) === 0 && pe === 0 && B.setSelectionRange(B.value.length, B.value.length);
|
|
2732
2732
|
}));
|
|
2733
|
-
}, [y, l.comboboxState, u]), Qn(([w], [
|
|
2734
|
-
if (w === 0 &&
|
|
2733
|
+
}, [y, l.comboboxState, u]), Qn(([w], [q]) => {
|
|
2734
|
+
if (w === 0 && q === 1) {
|
|
2735
2735
|
if (p.current)
|
|
2736
2736
|
return;
|
|
2737
2737
|
let ne = l.inputRef.current;
|
|
@@ -2796,10 +2796,10 @@ function Yl(e, t) {
|
|
|
2796
2796
|
b?.(w), l.nullable && l.mode === 0 && w.target.value === "" && E(), d.openCombobox();
|
|
2797
2797
|
}), I = j(() => {
|
|
2798
2798
|
p.current = !1;
|
|
2799
|
-
}),
|
|
2799
|
+
}), Y = Nt(() => {
|
|
2800
2800
|
if (l.labelId)
|
|
2801
2801
|
return [l.labelId].join(" ");
|
|
2802
|
-
}, [l.labelId]), se = _e(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), oe = { ref: a, id: f, role: "combobox", type: m, "aria-controls": (n = l.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": l.comboboxState === 0, "aria-activedescendant": l.activeOptionIndex === null || (r = l.options[l.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby":
|
|
2802
|
+
}, [l.labelId]), se = _e(() => ({ open: l.comboboxState === 0, disabled: l.disabled }), [l]), oe = { ref: a, id: f, role: "combobox", type: m, "aria-controls": (n = l.optionsRef.current) == null ? void 0 : n.id, "aria-expanded": l.comboboxState === 0, "aria-activedescendant": l.activeOptionIndex === null || (r = l.options[l.activeOptionIndex]) == null ? void 0 : r.id, "aria-labelledby": Y, "aria-autocomplete": "list", defaultValue: (c = (o = e.defaultValue) != null ? o : l.defaultValue !== void 0 ? v?.(l.defaultValue) : null) != null ? c : l.defaultValue, disabled: l.disabled, onCompositionStart: M, onCompositionEnd: S, onKeyDown: U, onChange: W, onBlur: I };
|
|
2803
2803
|
return De({ ourProps: oe, theirProps: h, slot: se, defaultTag: zl, name: "Combobox.Input" });
|
|
2804
2804
|
}
|
|
2805
2805
|
let Kl = "button";
|
|
@@ -2887,16 +2887,16 @@ function ns(e, t) {
|
|
|
2887
2887
|
return;
|
|
2888
2888
|
let I = et();
|
|
2889
2889
|
return I.requestAnimationFrame(() => {
|
|
2890
|
-
var
|
|
2891
|
-
(se = (
|
|
2890
|
+
var Y, se;
|
|
2891
|
+
(se = (Y = d.current) == null ? void 0 : Y.scrollIntoView) == null || se.call(Y, { block: "nearest" });
|
|
2892
2892
|
}), I.dispose;
|
|
2893
2893
|
}, [d, h, v.comboboxState, v.activationTrigger, v.activeOptionIndex]);
|
|
2894
2894
|
let E = j((I) => {
|
|
2895
2895
|
if (i)
|
|
2896
2896
|
return I.preventDefault();
|
|
2897
2897
|
p(), v.mode === 0 && m.closeCombobox(), Al() || requestAnimationFrame(() => {
|
|
2898
|
-
var
|
|
2899
|
-
return (
|
|
2898
|
+
var Y;
|
|
2899
|
+
return (Y = v.inputRef.current) == null ? void 0 : Y.focus();
|
|
2900
2900
|
});
|
|
2901
2901
|
}), y = j(() => {
|
|
2902
2902
|
if (i)
|
|
@@ -3034,7 +3034,7 @@ function gs(e, t) {
|
|
|
3034
3034
|
var $;
|
|
3035
3035
|
g({ type: 1 }), ao(L, kn.Loose) || (T.preventDefault(), ($ = W.buttonRef.current) == null || $.focus());
|
|
3036
3036
|
}, W.listboxState === 0);
|
|
3037
|
-
let I = _e(() => ({ open: W.listboxState === 0, disabled: b, value: a }), [W, b, a]),
|
|
3037
|
+
let I = _e(() => ({ open: W.listboxState === 0, disabled: b, value: a }), [W, b, a]), Y = j((T) => {
|
|
3038
3038
|
let L = W.options.find(($) => $.id === T);
|
|
3039
3039
|
L && B(L.dataRef.current.value);
|
|
3040
3040
|
}), se = j(() => {
|
|
@@ -3042,12 +3042,12 @@ function gs(e, t) {
|
|
|
3042
3042
|
let { dataRef: T, id: L } = W.options[W.activeOptionIndex];
|
|
3043
3043
|
B(T.current.value), g({ type: 2, focus: te.Specific, id: L });
|
|
3044
3044
|
}
|
|
3045
|
-
}), oe = j(() => g({ type: 0 })), w = j(() => g({ type: 1 })),
|
|
3045
|
+
}), oe = j(() => g({ type: 0 })), w = j(() => g({ type: 1 })), q = j((T, L, $) => T === te.Specific ? g({ type: 2, focus: te.Specific, id: L, trigger: $ }) : g({ type: 2, focus: T, trigger: $ })), ne = j((T, L) => (g({ type: 5, id: T, dataRef: L }), () => g({ type: 6, id: T }))), fe = j((T) => (g({ type: 7, id: T }), () => g({ type: 7, id: null }))), B = j((T) => me(W.mode, { 0() {
|
|
3046
3046
|
return u?.(T);
|
|
3047
3047
|
}, 1() {
|
|
3048
3048
|
let L = W.value.slice(), $ = L.findIndex((Oe) => S(Oe, T));
|
|
3049
3049
|
return $ === -1 ? L.push(T) : L.splice($, 1), u?.(L);
|
|
3050
|
-
} })), pe = j((T) => g({ type: 3, value: T })), re = j(() => g({ type: 4 })), Z = _e(() => ({ onChange: B, registerOption: ne, registerLabel: fe, goToOption:
|
|
3050
|
+
} })), pe = j((T) => g({ type: 3, value: T })), re = j(() => g({ type: 4 })), Z = _e(() => ({ onChange: B, registerOption: ne, registerLabel: fe, goToOption: q, closeListbox: w, openListbox: oe, selectActiveOption: se, selectOption: Y, search: pe, clearSearch: re }), []), de = { ref: d }, he = P(null), be = it();
|
|
3051
3051
|
return X(() => {
|
|
3052
3052
|
he.current && r !== void 0 && be.addEventListener(he.current, "reset", () => {
|
|
3053
3053
|
u?.(r);
|
|
@@ -3328,22 +3328,22 @@ function Us(e) {
|
|
|
3328
3328
|
let Hs = "div", xo = _t.RenderStrategy;
|
|
3329
3329
|
function qs(e, t) {
|
|
3330
3330
|
var n, r;
|
|
3331
|
-
let { beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: f, enter: b, enterFrom: v, enterTo: m, entered: h, leave: l, leaveFrom: d, leaveTo: a, ...u } = e, p = P(null), g = qe(p, t), E = (n = u.unmount) == null || n ? ct.Unmount : ct.Hidden, { show: y, appear: _, initial: M } = Ms(), [S, U] = ae(y ? "visible" : "hidden"), W = Ws(), { register: I, unregister:
|
|
3331
|
+
let { beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: f, enter: b, enterFrom: v, enterTo: m, entered: h, leave: l, leaveFrom: d, leaveTo: a, ...u } = e, p = P(null), g = qe(p, t), E = (n = u.unmount) == null || n ? ct.Unmount : ct.Hidden, { show: y, appear: _, initial: M } = Ms(), [S, U] = ae(y ? "visible" : "hidden"), W = Ws(), { register: I, unregister: Y } = W;
|
|
3332
3332
|
X(() => I(p), [I, p]), X(() => {
|
|
3333
3333
|
if (E === ct.Hidden && p.current) {
|
|
3334
3334
|
if (y && S !== "visible") {
|
|
3335
3335
|
U("visible");
|
|
3336
3336
|
return;
|
|
3337
3337
|
}
|
|
3338
|
-
return me(S, { hidden: () =>
|
|
3338
|
+
return me(S, { hidden: () => Y(p), visible: () => I(p) });
|
|
3339
3339
|
}
|
|
3340
|
-
}, [S, p, I,
|
|
3340
|
+
}, [S, p, I, Y, y, E]);
|
|
3341
3341
|
let se = Ge({ base: st(u.className), enter: st(b), enterFrom: st(v), enterTo: st(m), entered: st(h), leave: st(l), leaveFrom: st(d), leaveTo: st(a) }), oe = Us({ beforeEnter: o, afterEnter: c, beforeLeave: i, afterLeave: f }), w = _n();
|
|
3342
3342
|
X(() => {
|
|
3343
3343
|
if (w && S === "visible" && p.current === null)
|
|
3344
3344
|
throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
3345
3345
|
}, [p, S, w]);
|
|
3346
|
-
let
|
|
3346
|
+
let q = M && !_, ne = _ && y && M, fe = (() => !w || q ? "idle" : y ? "enter" : "leave")(), B = js(0), pe = j((be) => me(be, { enter: () => {
|
|
3347
3347
|
B.addFlag(Se.Opening), oe.current.beforeEnter();
|
|
3348
3348
|
}, leave: () => {
|
|
3349
3349
|
B.addFlag(Se.Closing), oe.current.beforeLeave();
|
|
@@ -3354,12 +3354,12 @@ function qs(e, t) {
|
|
|
3354
3354
|
B.removeFlag(Se.Closing), oe.current.afterLeave();
|
|
3355
3355
|
}, idle: () => {
|
|
3356
3356
|
} })), Z = wo(() => {
|
|
3357
|
-
U("hidden"),
|
|
3357
|
+
U("hidden"), Y(p);
|
|
3358
3358
|
}, W);
|
|
3359
3359
|
Ds({ immediate: ne, container: p, classes: se, direction: fe, onStart: Ge((be) => {
|
|
3360
3360
|
Z.onStart(p, be, pe);
|
|
3361
3361
|
}), onStop: Ge((be) => {
|
|
3362
|
-
Z.onStop(p, be, re), be === "leave" && !nn(Z) && (U("hidden"),
|
|
3362
|
+
Z.onStop(p, be, re), be === "leave" && !nn(Z) && (U("hidden"), Y(p));
|
|
3363
3363
|
}) });
|
|
3364
3364
|
let de = u, he = { ref: g };
|
|
3365
3365
|
return ne ? de = { ...de, className: Kt(u.className, ...se.current.enter, ...se.current.enterFrom) } : (de.className = Kt(u.className, (r = p.current) == null ? void 0 : r.className), de.className === "" && delete de.className), ce.createElement(tn.Provider, { value: Z }, ce.createElement(Cn, { value: me(S, { visible: Se.Open, hidden: Se.Closed }) | B.flags }, De({ ourProps: he, theirProps: de, defaultTag: Hs, features: xo, visible: S === "visible", name: "Transition.Child" })));
|
|
@@ -3465,12 +3465,12 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3465
3465
|
const S = b.current.getBoundingClientRect();
|
|
3466
3466
|
setTimeout(() => {
|
|
3467
3467
|
const U = m?.current?.getBoundingClientRect(), W = _(), I = d.current - S.bottom;
|
|
3468
|
-
let
|
|
3468
|
+
let Y;
|
|
3469
3469
|
if (U) {
|
|
3470
|
-
const se = S.height, oe = S.top, w = U.height,
|
|
3471
|
-
w >= oe && (
|
|
3470
|
+
const se = S.height, oe = S.top, w = U.height, q = w >= oe + window.scrollY;
|
|
3471
|
+
w >= oe && (q || q && I <= w || W >= w || I >= w) || oe >= w && I >= w ? Y = S.y + se : Y = S.y - w, l({
|
|
3472
3472
|
left: S.left,
|
|
3473
|
-
top:
|
|
3473
|
+
top: Y ?? S.top
|
|
3474
3474
|
});
|
|
3475
3475
|
}
|
|
3476
3476
|
}, 0);
|
|
@@ -3497,6 +3497,7 @@ const Js = rt.forwardRef(Gs), _o = Js, Qs = "_select_12thw_1", Xs = "_selectCont
|
|
|
3497
3497
|
},
|
|
3498
3498
|
style: { borderBottomColor: r && (o || S) ? u : "" },
|
|
3499
3499
|
className: `${Me.selectButton} ${S ? Me.open : ""}`,
|
|
3500
|
+
tabIndex: 0,
|
|
3500
3501
|
children: [
|
|
3501
3502
|
t && /* @__PURE__ */ O.jsxs("span", { className: Me.selectValue, children: [
|
|
3502
3503
|
t.avatar && /* @__PURE__ */ O.jsx("img", { src: t.avatar, alt: "", className: Me.seletIcon }),
|
|
@@ -3582,10 +3583,10 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3582
3583
|
if (d.current) {
|
|
3583
3584
|
const w = d.current.getBoundingClientRect();
|
|
3584
3585
|
setTimeout(() => {
|
|
3585
|
-
const
|
|
3586
|
+
const q = a?.current?.getBoundingClientRect(), ne = M(), fe = g.current - w.bottom;
|
|
3586
3587
|
let B;
|
|
3587
|
-
if (
|
|
3588
|
-
const pe = w.height, re = w.top, Z =
|
|
3588
|
+
if (q) {
|
|
3589
|
+
const pe = w.height, re = w.top, Z = q.height, de = Z > re + window.scrollY;
|
|
3589
3590
|
re < Z && (de || de && fe < Z || ne > Z || fe > Z) || re > Z && fe > Z ? B = w.y + pe : B = w.y - Z, p({
|
|
3590
3591
|
left: w.left,
|
|
3591
3592
|
top: B ?? w.top
|
|
@@ -3598,10 +3599,10 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3598
3599
|
window.removeEventListener("scroll", S), window.removeEventListener("resize", S);
|
|
3599
3600
|
}), []);
|
|
3600
3601
|
const U = (w) => {
|
|
3601
|
-
n(w),
|
|
3602
|
+
n(w), Y();
|
|
3602
3603
|
}, W = () => {
|
|
3603
3604
|
S(), m(!0), f.current && t && (f.current.value = t.label || ""), f.current && b.current && (c && (f.current.value = "", r("")), b.current.click());
|
|
3604
|
-
}, I = (w) =>
|
|
3605
|
+
}, I = (w) => w?.label, Y = () => {
|
|
3605
3606
|
const w = f.current;
|
|
3606
3607
|
w && w.setSelectionRange(w.value.length, w.value.length);
|
|
3607
3608
|
}, se = () => {
|
|
@@ -3629,14 +3630,14 @@ const dc = "_autocomplete_1ue23_1", fc = "_autocompleteContainer_1ue23_4", pc =
|
|
|
3629
3630
|
"data-testid": "select-input",
|
|
3630
3631
|
className: Ke.autocompleteInput,
|
|
3631
3632
|
displayValue: I,
|
|
3632
|
-
onChange: (
|
|
3633
|
-
r(
|
|
3633
|
+
onChange: (q) => {
|
|
3634
|
+
r(q.target.value), S();
|
|
3634
3635
|
},
|
|
3635
3636
|
onClick: W,
|
|
3636
3637
|
onFocus: se,
|
|
3637
3638
|
onBlur: oe,
|
|
3638
|
-
onKeyDown: (
|
|
3639
|
-
(
|
|
3639
|
+
onKeyDown: (q) => {
|
|
3640
|
+
(q.key === " " || q.code === "Space") && S();
|
|
3640
3641
|
},
|
|
3641
3642
|
style: { ...y },
|
|
3642
3643
|
placeholder: "Select your option",
|