hocmai-feedback-widget 0.1.3 → 0.1.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,79 +1,79 @@
|
|
|
1
|
-
import { jsxs as v, jsx as b, Fragment as
|
|
2
|
-
import pi, { forwardRef as
|
|
3
|
-
var mi = "2.0.7", yi = 500, mt = "user-agent",
|
|
1
|
+
import { jsxs as v, jsx as b, Fragment as Wt } from "react/jsx-runtime";
|
|
2
|
+
import pi, { forwardRef as qt, createElement as et, useState as E, useEffect as bi, createContext as gi, useContext as wi } from "react";
|
|
3
|
+
var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
4
4
|
FUNCTION: "function",
|
|
5
5
|
OBJECT: "object",
|
|
6
6
|
STRING: "string",
|
|
7
7
|
UNDEFINED: "undefined"
|
|
8
|
-
},
|
|
9
|
-
var i = {},
|
|
10
|
-
if (!
|
|
11
|
-
|
|
8
|
+
}, L = "browser", j = "cpu", B = "device", U = "engine", D = "os", fe = "result", c = "name", a = "type", d = "vendor", u = "version", O = "architecture", Se = "major", l = "model", Me = "console", g = "mobile", y = "tablet", C = "smarttv", $ = "wearable", Ie = "xr", ke = "embedded", ae = "inapp", st = "brands", te = "formFactors", at = "fullVersionList", pe = "platform", lt = "platformVersion", De = "bitness", K = "sec-ch-ua", xi = K + "-full-version-list", vi = K + "-arch", ki = K + "-" + De, Si = K + "-form-factors", Ci = K + "-" + g, Ei = K + "-" + l, jt = K + "-" + pe, Ii = jt + "-version", Nt = [st, at, g, l, pe, lt, O, te, De], Te = "Amazon", le = "Apple", xt = "ASUS", vt = "BlackBerry", ee = "Google", kt = "Huawei", je = "Lenovo", St = "Honor", Re = "LG", Ne = "Microsoft", Ge = "Motorola", Ct = "Nvidia", Et = "OnePlus", Xe = "OPPO", ge = "Samsung", It = "Sharp", we = "Sony", Ye = "Xiaomi", Qe = "Zebra", Tt = "Chrome", Rt = "Chromium", G = "Chromecast", Ae = "Edge", me = "Firefox", ye = "Opera", Ke = "Facebook", Ot = "Sogou", ce = "Mobile ", xe = " Browser", tt = "Windows", Ti = typeof window !== S.UNDEFINED, F = Ti && window.navigator ? window.navigator : void 0, ie = F && F.userAgentData ? F.userAgentData : void 0, Ri = function(e, t) {
|
|
9
|
+
var i = {}, n = t;
|
|
10
|
+
if (!Fe(t)) {
|
|
11
|
+
n = {};
|
|
12
12
|
for (var o in t)
|
|
13
13
|
for (var s in t[o])
|
|
14
|
-
|
|
14
|
+
n[s] = t[o][s].concat(n[s] ? n[s] : []);
|
|
15
15
|
}
|
|
16
|
-
for (var
|
|
17
|
-
i[
|
|
16
|
+
for (var r in e)
|
|
17
|
+
i[r] = n[r] && n[r].length % 2 === 0 ? n[r].concat(e[r]) : e[r];
|
|
18
18
|
return i;
|
|
19
|
-
},
|
|
19
|
+
}, He = function(e) {
|
|
20
20
|
for (var t = {}, i = 0; i < e.length; i++)
|
|
21
21
|
t[e[i].toUpperCase()] = e[i];
|
|
22
22
|
return t;
|
|
23
23
|
}, it = function(e, t) {
|
|
24
|
-
if (typeof e ===
|
|
24
|
+
if (typeof e === S.OBJECT && e.length > 0) {
|
|
25
25
|
for (var i in e)
|
|
26
|
-
if (
|
|
26
|
+
if (X(t) == X(e[i])) return !0;
|
|
27
27
|
return !1;
|
|
28
28
|
}
|
|
29
|
-
return
|
|
30
|
-
},
|
|
29
|
+
return Ce(e) ? X(t) == X(e) : !1;
|
|
30
|
+
}, Fe = function(e, t) {
|
|
31
31
|
for (var i in e)
|
|
32
|
-
return /^(browser|cpu|device|engine|os)$/.test(i) || (t ?
|
|
33
|
-
},
|
|
34
|
-
return typeof e ===
|
|
32
|
+
return /^(browser|cpu|device|engine|os)$/.test(i) || (t ? Fe(e[i]) : !1);
|
|
33
|
+
}, Ce = function(e) {
|
|
34
|
+
return typeof e === S.STRING;
|
|
35
35
|
}, Je = function(e) {
|
|
36
36
|
if (e) {
|
|
37
|
-
for (var t = [], i =
|
|
38
|
-
if (i[
|
|
39
|
-
var o =
|
|
40
|
-
t[
|
|
37
|
+
for (var t = [], i = be(/\\?\"/g, e).split(","), n = 0; n < i.length; n++)
|
|
38
|
+
if (i[n].indexOf(";") > -1) {
|
|
39
|
+
var o = Le(i[n]).split(";v=");
|
|
40
|
+
t[n] = { brand: o[0], version: o[1] };
|
|
41
41
|
} else
|
|
42
|
-
t[
|
|
42
|
+
t[n] = Le(i[n]);
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
|
-
},
|
|
46
|
-
return
|
|
47
|
-
},
|
|
48
|
-
return
|
|
49
|
-
},
|
|
45
|
+
}, X = function(e) {
|
|
46
|
+
return Ce(e) ? e.toLowerCase() : e;
|
|
47
|
+
}, nt = function(e) {
|
|
48
|
+
return Ce(e) ? be(/[^\d\.]/g, e).split(".")[0] : void 0;
|
|
49
|
+
}, q = function(e) {
|
|
50
50
|
for (var t in e)
|
|
51
51
|
if (e.hasOwnProperty(t)) {
|
|
52
52
|
var i = e[t];
|
|
53
|
-
typeof i ==
|
|
53
|
+
typeof i == S.OBJECT && i.length == 2 ? this[i[0]] = i[1] : this[i] = void 0;
|
|
54
54
|
}
|
|
55
55
|
return this;
|
|
56
|
-
},
|
|
57
|
-
return
|
|
58
|
-
},
|
|
59
|
-
return
|
|
60
|
-
},
|
|
61
|
-
return e =
|
|
62
|
-
},
|
|
56
|
+
}, be = function(e, t) {
|
|
57
|
+
return Ce(t) ? t.replace(e, he) : t;
|
|
58
|
+
}, ve = function(e) {
|
|
59
|
+
return be(/\\?\"/g, e);
|
|
60
|
+
}, Le = function(e, t) {
|
|
61
|
+
return e = be(/^\s\s*/, String(e)), typeof t === S.UNDEFINED ? e : e.substring(0, t);
|
|
62
|
+
}, rt = function(e, t) {
|
|
63
63
|
if (!(!e || !t))
|
|
64
|
-
for (var i = 0,
|
|
65
|
-
var
|
|
66
|
-
for (
|
|
67
|
-
if (h =
|
|
64
|
+
for (var i = 0, n, o, s, r, h, f; i < t.length && !h; ) {
|
|
65
|
+
var w = t[i], m = t[i + 1];
|
|
66
|
+
for (n = o = 0; n < w.length && !h && w[n]; )
|
|
67
|
+
if (h = w[n++].exec(e), h)
|
|
68
68
|
for (s = 0; s < m.length; s++)
|
|
69
|
-
f = h[++o],
|
|
69
|
+
f = h[++o], r = m[s], typeof r === S.OBJECT && r.length > 0 ? r.length === 2 ? typeof r[1] == S.FUNCTION ? this[r[0]] = r[1].call(this, f) : this[r[0]] = r[1] : r.length >= 3 && (typeof r[1] === S.FUNCTION && !(r[1].exec && r[1].test) ? r.length > 3 ? this[r[0]] = f ? r[1].apply(this, r.slice(2)) : void 0 : this[r[0]] = f ? r[1].call(this, f, r[2]) : void 0 : r.length == 3 ? this[r[0]] = f ? f.replace(r[1], r[2]) : void 0 : r.length == 4 ? this[r[0]] = f ? r[3].call(this, f.replace(r[1], r[2])) : void 0 : r.length > 4 && (this[r[0]] = f ? r[3].apply(this, [f.replace(r[1], r[2])].concat(r.slice(4))) : void 0)) : this[r] = f || void 0;
|
|
70
70
|
i += 2;
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, H = function(e, t) {
|
|
73
73
|
for (var i in t)
|
|
74
|
-
if (typeof t[i] ===
|
|
75
|
-
for (var
|
|
76
|
-
if (it(t[i][
|
|
74
|
+
if (typeof t[i] === S.OBJECT && t[i].length > 0) {
|
|
75
|
+
for (var n = 0; n < t[i].length; n++)
|
|
76
|
+
if (it(t[i][n], e))
|
|
77
77
|
return i === yt ? void 0 : i;
|
|
78
78
|
} else if (it(t[i], e))
|
|
79
79
|
return i === yt ? void 0 : i;
|
|
@@ -116,12 +116,12 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
116
116
|
/\b(?:crmo|crios)\/([\w\.]+)/i
|
|
117
117
|
// Chrome for Android/iOS
|
|
118
118
|
],
|
|
119
|
-
[u, [c,
|
|
119
|
+
[u, [c, ce + "Chrome"]],
|
|
120
120
|
[
|
|
121
121
|
/webview.+edge\/([\w\.]+)/i
|
|
122
122
|
// Microsoft Edge
|
|
123
123
|
],
|
|
124
|
-
[u, [c,
|
|
124
|
+
[u, [c, Ae + " WebView"]],
|
|
125
125
|
[
|
|
126
126
|
/edg(?:e|ios|a)?\/([\w\.]+)/i
|
|
127
127
|
],
|
|
@@ -140,17 +140,17 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
140
140
|
/opios[\/ ]+([\w\.]+)/i
|
|
141
141
|
// Opera mini on iphone >= 8.0
|
|
142
142
|
],
|
|
143
|
-
[u, [c,
|
|
143
|
+
[u, [c, ye + " Mini"]],
|
|
144
144
|
[
|
|
145
145
|
/\bop(?:rg)?x\/([\w\.]+)/i
|
|
146
146
|
// Opera GX
|
|
147
147
|
],
|
|
148
|
-
[u, [c,
|
|
148
|
+
[u, [c, ye + " GX"]],
|
|
149
149
|
[
|
|
150
150
|
/\bopr\/([\w\.]+)/i
|
|
151
151
|
// Opera Webkit
|
|
152
152
|
],
|
|
153
|
-
[u, [c,
|
|
153
|
+
[u, [c, ye]],
|
|
154
154
|
[
|
|
155
155
|
// Mixed
|
|
156
156
|
/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i
|
|
@@ -225,22 +225,22 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
225
225
|
/slbrowser\/([\w\.]+)/i
|
|
226
226
|
// Smart Lenovo Browser
|
|
227
227
|
],
|
|
228
|
-
[u, [c, "Smart " + je +
|
|
228
|
+
[u, [c, "Smart " + je + xe]],
|
|
229
229
|
[
|
|
230
230
|
/(avast|avg)\/([\w\.]+)/i
|
|
231
231
|
// Avast/AVG Secure Browser
|
|
232
232
|
],
|
|
233
|
-
[[c, /(.+)/, "$1 Secure" +
|
|
233
|
+
[[c, /(.+)/, "$1 Secure" + xe], u],
|
|
234
234
|
[
|
|
235
235
|
/\bfocus\/([\w\.]+)/i
|
|
236
236
|
// Firefox Focus
|
|
237
237
|
],
|
|
238
|
-
[u, [c,
|
|
238
|
+
[u, [c, me + " Focus"]],
|
|
239
239
|
[
|
|
240
240
|
/\bopt\/([\w\.]+)/i
|
|
241
241
|
// Opera Touch
|
|
242
242
|
],
|
|
243
|
-
[u, [c,
|
|
243
|
+
[u, [c, ye + " Touch"]],
|
|
244
244
|
[
|
|
245
245
|
/coc_coc\w+\/([\w\.]+)/i
|
|
246
246
|
// Coc Coc Browser
|
|
@@ -255,17 +255,17 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
255
255
|
/coast\/([\w\.]+)/i
|
|
256
256
|
// Opera Coast
|
|
257
257
|
],
|
|
258
|
-
[u, [c,
|
|
258
|
+
[u, [c, ye + " Coast"]],
|
|
259
259
|
[
|
|
260
260
|
/miuibrowser\/([\w\.]+)/i
|
|
261
261
|
// MIUI Browser
|
|
262
262
|
],
|
|
263
|
-
[u, [c, "MIUI" +
|
|
263
|
+
[u, [c, "MIUI" + xe]],
|
|
264
264
|
[
|
|
265
265
|
/fxios\/([\w\.-]+)/i
|
|
266
266
|
// Firefox for iOS
|
|
267
267
|
],
|
|
268
|
-
[u, [c,
|
|
268
|
+
[u, [c, ce + me]],
|
|
269
269
|
[
|
|
270
270
|
/\bqihoobrowser\/?([\w\.]*)/i
|
|
271
271
|
// 360
|
|
@@ -279,13 +279,13 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
279
279
|
[
|
|
280
280
|
/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i
|
|
281
281
|
],
|
|
282
|
-
[[c, /(.+)/, "$1" +
|
|
282
|
+
[[c, /(.+)/, "$1" + xe], u],
|
|
283
283
|
[
|
|
284
284
|
// Oculus/Sailfish/HuaweiBrowser/VivoBrowser/PicoBrowser
|
|
285
285
|
/samsungbrowser\/([\w\.]+)/i
|
|
286
286
|
// Samsung Internet
|
|
287
287
|
],
|
|
288
|
-
[u, [c,
|
|
288
|
+
[u, [c, ge + " Internet"]],
|
|
289
289
|
[
|
|
290
290
|
/metasr[\/ ]?([\d\.]+)/i
|
|
291
291
|
// Sogou Explorer
|
|
@@ -322,7 +322,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
322
322
|
/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i
|
|
323
323
|
// Facebook App for iOS & Android
|
|
324
324
|
],
|
|
325
|
-
[[c, Ke], u, [a,
|
|
325
|
+
[[c, Ke], u, [a, ae]],
|
|
326
326
|
[
|
|
327
327
|
/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,
|
|
328
328
|
// Kakao App
|
|
@@ -343,27 +343,27 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
343
343
|
/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i
|
|
344
344
|
// Instagram/Snapchat/Klarna
|
|
345
345
|
],
|
|
346
|
-
[c, u, [a,
|
|
346
|
+
[c, u, [a, ae]],
|
|
347
347
|
[
|
|
348
348
|
/\bgsa\/([\w\.]+) .*safari\//i
|
|
349
349
|
// Google Search Appliance on iOS
|
|
350
350
|
],
|
|
351
|
-
[u, [c, "GSA"], [a,
|
|
351
|
+
[u, [c, "GSA"], [a, ae]],
|
|
352
352
|
[
|
|
353
353
|
/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i
|
|
354
354
|
// TikTok
|
|
355
355
|
],
|
|
356
|
-
[u, [c, "TikTok"], [a,
|
|
356
|
+
[u, [c, "TikTok"], [a, ae]],
|
|
357
357
|
[
|
|
358
358
|
/\[(linkedin)app\]/i
|
|
359
359
|
// LinkedIn App for iOS & Android
|
|
360
360
|
],
|
|
361
|
-
[c, [a,
|
|
361
|
+
[c, [a, ae]],
|
|
362
362
|
[
|
|
363
363
|
/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i
|
|
364
364
|
// Zalo
|
|
365
365
|
],
|
|
366
|
-
[[c, /(.+)/, "Zalo"], u, [a,
|
|
366
|
+
[[c, /(.+)/, "Zalo"], u, [a, ae]],
|
|
367
367
|
[
|
|
368
368
|
/(chromium)[\/ ]([-\w\.]+)/i
|
|
369
369
|
// Chromium
|
|
@@ -373,27 +373,27 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
373
373
|
/headlesschrome(?:\/([\w\.]+)| )/i
|
|
374
374
|
// Chrome Headless
|
|
375
375
|
],
|
|
376
|
-
[u, [c,
|
|
376
|
+
[u, [c, Tt + " Headless"]],
|
|
377
377
|
[
|
|
378
378
|
/wv\).+chrome\/([\w\.]+).+edgw\//i
|
|
379
379
|
// Edge WebView2
|
|
380
380
|
],
|
|
381
|
-
[u, [c,
|
|
381
|
+
[u, [c, Ae + " WebView2"]],
|
|
382
382
|
[
|
|
383
383
|
/ wv\).+(chrome)\/([\w\.]+)/i
|
|
384
384
|
// Chrome WebView
|
|
385
385
|
],
|
|
386
|
-
[[c,
|
|
386
|
+
[[c, Tt + " WebView"], u],
|
|
387
387
|
[
|
|
388
388
|
/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i
|
|
389
389
|
// Android Browser
|
|
390
390
|
],
|
|
391
|
-
[u, [c, "Android" +
|
|
391
|
+
[u, [c, "Android" + xe]],
|
|
392
392
|
[
|
|
393
393
|
/chrome\/([\w\.]+) mobile/i
|
|
394
394
|
// Chrome Mobile
|
|
395
395
|
],
|
|
396
|
-
[u, [c,
|
|
396
|
+
[u, [c, ce + "Chrome"]],
|
|
397
397
|
[
|
|
398
398
|
/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i
|
|
399
399
|
// Chrome/OmniWeb/Arora/Tizen/Nokia
|
|
@@ -403,11 +403,11 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
403
403
|
/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i
|
|
404
404
|
// Safari Mobile
|
|
405
405
|
],
|
|
406
|
-
[u, [c,
|
|
406
|
+
[u, [c, ce + "Safari"]],
|
|
407
407
|
[
|
|
408
408
|
/iphone .*mobile(?:\/\w+ | ?)safari/i
|
|
409
409
|
],
|
|
410
|
-
[[c,
|
|
410
|
+
[[c, ce + "Safari"]],
|
|
411
411
|
[
|
|
412
412
|
/version\/([\w\.\,]+) .*(safari)/i
|
|
413
413
|
// Safari
|
|
@@ -427,7 +427,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
427
427
|
/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i
|
|
428
428
|
// Firefox Mobile
|
|
429
429
|
],
|
|
430
|
-
[[c,
|
|
430
|
+
[[c, ce + me], u],
|
|
431
431
|
[
|
|
432
432
|
/(navigator|netscape\d?)\/([-\w\.]+)/i
|
|
433
433
|
// Netscape
|
|
@@ -442,7 +442,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
442
442
|
/mobile vr; rv:([\w\.]+)\).+firefox/i
|
|
443
443
|
// Firefox Reality
|
|
444
444
|
],
|
|
445
|
-
[u, [c,
|
|
445
|
+
[u, [c, me + " Reality"]],
|
|
446
446
|
[
|
|
447
447
|
/ekiohf.+(flow)\/([\w\.]+)/i,
|
|
448
448
|
// Flow
|
|
@@ -467,41 +467,41 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
467
467
|
/(cobalt)\/([\w\.]+)/i
|
|
468
468
|
// Cobalt
|
|
469
469
|
],
|
|
470
|
-
[c, [u, /[^\d\.]+./,
|
|
470
|
+
[c, [u, /[^\d\.]+./, he]]
|
|
471
471
|
],
|
|
472
472
|
cpu: [
|
|
473
473
|
[
|
|
474
474
|
/\b((amd|x|x86[-_]?|wow|win)64)\b/i
|
|
475
475
|
// AMD64 (x64)
|
|
476
476
|
],
|
|
477
|
-
[[
|
|
477
|
+
[[O, "amd64"]],
|
|
478
478
|
[
|
|
479
479
|
/(ia32(?=;))/i,
|
|
480
480
|
// IA32 (quicktime)
|
|
481
481
|
/\b((i[346]|x)86)(pc)?\b/i
|
|
482
482
|
// IA32 (x86)
|
|
483
483
|
],
|
|
484
|
-
[[
|
|
484
|
+
[[O, "ia32"]],
|
|
485
485
|
[
|
|
486
486
|
/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i
|
|
487
487
|
// ARM64
|
|
488
488
|
],
|
|
489
|
-
[[
|
|
489
|
+
[[O, "arm64"]],
|
|
490
490
|
[
|
|
491
491
|
/\b(arm(v[67])?ht?n?[fl]p?)\b/i
|
|
492
492
|
// ARMHF
|
|
493
493
|
],
|
|
494
|
-
[[
|
|
494
|
+
[[O, "armhf"]],
|
|
495
495
|
[
|
|
496
496
|
// PocketPC mistakenly identified as PowerPC
|
|
497
497
|
/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i
|
|
498
498
|
],
|
|
499
|
-
[[
|
|
499
|
+
[[O, "arm"]],
|
|
500
500
|
[
|
|
501
501
|
/ sun4\w[;\)]/i
|
|
502
502
|
// SPARC
|
|
503
503
|
],
|
|
504
|
-
[[
|
|
504
|
+
[[O, "sparc"]],
|
|
505
505
|
[
|
|
506
506
|
// IA64, 68K, ARM/64, AVR/32, IRIX/64, MIPS/64, SPARC/64, PA-RISC
|
|
507
507
|
/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,
|
|
@@ -510,15 +510,15 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
510
510
|
/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i
|
|
511
511
|
// Alpha
|
|
512
512
|
],
|
|
513
|
-
[[
|
|
513
|
+
[[O, /ower/, he, X]],
|
|
514
514
|
[
|
|
515
515
|
/mc680.0/i
|
|
516
516
|
],
|
|
517
|
-
[[
|
|
517
|
+
[[O, "68k"]],
|
|
518
518
|
[
|
|
519
519
|
/winnt.+\[axp/i
|
|
520
520
|
],
|
|
521
|
-
[[
|
|
521
|
+
[[O, "alpha"]]
|
|
522
522
|
],
|
|
523
523
|
device: [
|
|
524
524
|
[
|
|
@@ -528,60 +528,60 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
528
528
|
// Samsung
|
|
529
529
|
/\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
|
|
530
530
|
],
|
|
531
|
-
[l, [d,
|
|
531
|
+
[l, [d, ge], [a, y]],
|
|
532
532
|
[
|
|
533
533
|
/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,
|
|
534
534
|
/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,
|
|
535
535
|
/sec-(sgh\w+)/i
|
|
536
536
|
],
|
|
537
|
-
[l, [d,
|
|
537
|
+
[l, [d, ge], [a, g]],
|
|
538
538
|
[
|
|
539
539
|
// Apple
|
|
540
540
|
/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i
|
|
541
541
|
// iPod/iPhone
|
|
542
542
|
],
|
|
543
|
-
[l, [d,
|
|
543
|
+
[l, [d, le], [a, g]],
|
|
544
544
|
[
|
|
545
545
|
/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,
|
|
546
546
|
// iPad
|
|
547
547
|
/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i
|
|
548
548
|
],
|
|
549
|
-
[l, [d,
|
|
549
|
+
[l, [d, le], [a, y]],
|
|
550
550
|
[
|
|
551
551
|
/(macintosh);/i
|
|
552
552
|
],
|
|
553
|
-
[l, [d,
|
|
553
|
+
[l, [d, le]],
|
|
554
554
|
[
|
|
555
555
|
// Sharp
|
|
556
556
|
/\b(sh-?[altvz]?\d\d[a-ekm]?)/i
|
|
557
557
|
],
|
|
558
|
-
[l, [d, It], [a,
|
|
558
|
+
[l, [d, It], [a, g]],
|
|
559
559
|
[
|
|
560
560
|
// Honor
|
|
561
561
|
/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i
|
|
562
562
|
],
|
|
563
|
-
[l, [d,
|
|
563
|
+
[l, [d, St], [a, y]],
|
|
564
564
|
[
|
|
565
565
|
/honor([-\w ]+)[;\)]/i
|
|
566
566
|
],
|
|
567
|
-
[l, [d,
|
|
567
|
+
[l, [d, St], [a, g]],
|
|
568
568
|
[
|
|
569
569
|
// Huawei
|
|
570
570
|
/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i
|
|
571
571
|
],
|
|
572
|
-
[l, [d, kt], [a,
|
|
572
|
+
[l, [d, kt], [a, y]],
|
|
573
573
|
[
|
|
574
574
|
/(?:huawei) ?([-\w ]+)[;\)]/i,
|
|
575
575
|
/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i
|
|
576
576
|
],
|
|
577
|
-
[l, [d, kt], [a,
|
|
577
|
+
[l, [d, kt], [a, g]],
|
|
578
578
|
[
|
|
579
579
|
// Xiaomi
|
|
580
580
|
/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,
|
|
581
581
|
/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i
|
|
582
582
|
// Mi Pad tablets
|
|
583
583
|
],
|
|
584
|
-
[[l, /_/g, " "], [d, Ye], [a,
|
|
584
|
+
[[l, /_/g, " "], [d, Ye], [a, y]],
|
|
585
585
|
[
|
|
586
586
|
/\b; (\w+) build\/hm\1/i,
|
|
587
587
|
// Xiaomi Hongmi 'numeric' models
|
|
@@ -593,93 +593,93 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
593
593
|
/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,
|
|
594
594
|
/ ([\w ]+) miui\/v?\d/i
|
|
595
595
|
],
|
|
596
|
-
[[l, /_/g, " "], [d, Ye], [a,
|
|
596
|
+
[[l, /_/g, " "], [d, Ye], [a, g]],
|
|
597
597
|
[
|
|
598
598
|
// OnePlus
|
|
599
599
|
/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,
|
|
600
600
|
/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i
|
|
601
601
|
],
|
|
602
|
-
[l, [d, Et], [a,
|
|
602
|
+
[l, [d, Et], [a, g]],
|
|
603
603
|
[
|
|
604
604
|
// OPPO
|
|
605
605
|
/; (\w+) bui.+ oppo/i,
|
|
606
606
|
/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i
|
|
607
607
|
],
|
|
608
|
-
[l, [d, Xe], [a,
|
|
608
|
+
[l, [d, Xe], [a, g]],
|
|
609
609
|
[
|
|
610
610
|
/\b(opd2(\d{3}a?))(?: bui|\))/i
|
|
611
611
|
],
|
|
612
|
-
[l, [d,
|
|
612
|
+
[l, [d, H, { OnePlus: ["203", "304", "403", "404", "413", "415"], "*": Xe }], [a, y]],
|
|
613
613
|
[
|
|
614
614
|
// BLU
|
|
615
615
|
/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i
|
|
616
616
|
// Vivo series
|
|
617
617
|
],
|
|
618
|
-
[l, [d, "BLU"], [a,
|
|
618
|
+
[l, [d, "BLU"], [a, g]],
|
|
619
619
|
[
|
|
620
620
|
// Vivo
|
|
621
621
|
/; vivo (\w+)(?: bui|\))/i,
|
|
622
622
|
/\b(v[12]\d{3}\w?[at])(?: bui|;)/i
|
|
623
623
|
],
|
|
624
|
-
[l, [d, "Vivo"], [a,
|
|
624
|
+
[l, [d, "Vivo"], [a, g]],
|
|
625
625
|
[
|
|
626
626
|
// Realme
|
|
627
627
|
/\b(rmx[1-3]\d{3})(?: bui|;|\))/i
|
|
628
628
|
],
|
|
629
|
-
[l, [d, "Realme"], [a,
|
|
629
|
+
[l, [d, "Realme"], [a, g]],
|
|
630
630
|
[
|
|
631
631
|
// Lenovo
|
|
632
632
|
/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,
|
|
633
633
|
/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i
|
|
634
634
|
],
|
|
635
|
-
[l, [d, je], [a,
|
|
635
|
+
[l, [d, je], [a, y]],
|
|
636
636
|
[
|
|
637
637
|
/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i
|
|
638
638
|
],
|
|
639
|
-
[l, [d, je], [a,
|
|
639
|
+
[l, [d, je], [a, g]],
|
|
640
640
|
[
|
|
641
641
|
// Motorola
|
|
642
642
|
/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,
|
|
643
643
|
/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,
|
|
644
644
|
/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i
|
|
645
645
|
],
|
|
646
|
-
[l, [d, Ge], [a,
|
|
646
|
+
[l, [d, Ge], [a, g]],
|
|
647
647
|
[
|
|
648
648
|
/\b(mz60\d|xoom[2 ]{0,2}) build\//i
|
|
649
649
|
],
|
|
650
|
-
[l, [d, Ge], [a,
|
|
650
|
+
[l, [d, Ge], [a, y]],
|
|
651
651
|
[
|
|
652
652
|
// LG
|
|
653
653
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
654
654
|
],
|
|
655
|
-
[l, [d, Re], [a,
|
|
655
|
+
[l, [d, Re], [a, y]],
|
|
656
656
|
[
|
|
657
657
|
/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,
|
|
658
658
|
/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,
|
|
659
659
|
/\blg-?([\d\w]+) bui/i
|
|
660
660
|
],
|
|
661
|
-
[l, [d, Re], [a,
|
|
661
|
+
[l, [d, Re], [a, g]],
|
|
662
662
|
[
|
|
663
663
|
// Nokia
|
|
664
664
|
/(nokia) (t[12][01])/i
|
|
665
665
|
],
|
|
666
|
-
[d, l, [a,
|
|
666
|
+
[d, l, [a, y]],
|
|
667
667
|
[
|
|
668
668
|
/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,
|
|
669
669
|
/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i
|
|
670
670
|
],
|
|
671
|
-
[[l, /_/g, " "], [a,
|
|
671
|
+
[[l, /_/g, " "], [a, g], [d, "Nokia"]],
|
|
672
672
|
[
|
|
673
673
|
// Google
|
|
674
674
|
/(pixel (c|tablet))\b/i
|
|
675
675
|
// Google Pixel C/Tablet
|
|
676
676
|
],
|
|
677
|
-
[l, [d,
|
|
677
|
+
[l, [d, ee], [a, y]],
|
|
678
678
|
[
|
|
679
679
|
// Google Pixel
|
|
680
680
|
/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i
|
|
681
681
|
],
|
|
682
|
-
[l, [d,
|
|
682
|
+
[l, [d, ee], [a, g]],
|
|
683
683
|
[
|
|
684
684
|
/(google) (pixelbook( go)?)/i
|
|
685
685
|
],
|
|
@@ -688,12 +688,12 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
688
688
|
// Sony
|
|
689
689
|
/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i
|
|
690
690
|
],
|
|
691
|
-
[l, [d,
|
|
691
|
+
[l, [d, we], [a, g]],
|
|
692
692
|
[
|
|
693
693
|
/sony tablet [ps]/i,
|
|
694
694
|
/\b(?:sony)?sgp\w+(?: bui|\))/i
|
|
695
695
|
],
|
|
696
|
-
[[l, "Xperia Tablet"], [d,
|
|
696
|
+
[[l, "Xperia Tablet"], [d, we], [a, y]],
|
|
697
697
|
[
|
|
698
698
|
// Amazon
|
|
699
699
|
/(alexa)webm/i,
|
|
@@ -702,38 +702,38 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
702
702
|
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
703
703
|
// Kindle Fire HD
|
|
704
704
|
],
|
|
705
|
-
[l, [d,
|
|
705
|
+
[l, [d, Te], [a, y]],
|
|
706
706
|
[
|
|
707
707
|
/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i
|
|
708
708
|
// Fire Phone
|
|
709
709
|
],
|
|
710
|
-
[[l, /(.+)/g, "Fire Phone $1"], [d,
|
|
710
|
+
[[l, /(.+)/g, "Fire Phone $1"], [d, Te], [a, g]],
|
|
711
711
|
[
|
|
712
712
|
// BlackBerry
|
|
713
713
|
/(playbook);[-\w\),; ]+(rim)/i
|
|
714
714
|
// BlackBerry PlayBook
|
|
715
715
|
],
|
|
716
|
-
[l, d, [a,
|
|
716
|
+
[l, d, [a, y]],
|
|
717
717
|
[
|
|
718
718
|
/\b((?:bb[a-f]|st[hv])100-\d)/i,
|
|
719
719
|
/(?:blackberry|\(bb10;) (\w+)/i
|
|
720
720
|
],
|
|
721
|
-
[l, [d, vt], [a,
|
|
721
|
+
[l, [d, vt], [a, g]],
|
|
722
722
|
[
|
|
723
723
|
// Asus
|
|
724
724
|
/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i
|
|
725
725
|
],
|
|
726
|
-
[l, [d, xt], [a,
|
|
726
|
+
[l, [d, xt], [a, y]],
|
|
727
727
|
[
|
|
728
728
|
/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i
|
|
729
729
|
],
|
|
730
|
-
[l, [d, xt], [a,
|
|
730
|
+
[l, [d, xt], [a, g]],
|
|
731
731
|
[
|
|
732
732
|
// HTC
|
|
733
733
|
/(nexus 9)/i
|
|
734
734
|
// HTC Nexus 9
|
|
735
735
|
],
|
|
736
|
-
[l, [d, "HTC"], [a,
|
|
736
|
+
[l, [d, "HTC"], [a, y]],
|
|
737
737
|
[
|
|
738
738
|
/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,
|
|
739
739
|
// HTC
|
|
@@ -742,76 +742,76 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
742
742
|
/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i
|
|
743
743
|
// Alcatel/GeeksPhone/Nexian/Panasonic/Sony
|
|
744
744
|
],
|
|
745
|
-
[d, [l, /_/g, " "], [a,
|
|
745
|
+
[d, [l, /_/g, " "], [a, g]],
|
|
746
746
|
[
|
|
747
747
|
// TCL
|
|
748
748
|
/tcl (xess p17aa)/i,
|
|
749
749
|
/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i
|
|
750
750
|
],
|
|
751
|
-
[l, [d, "TCL"], [a,
|
|
751
|
+
[l, [d, "TCL"], [a, y]],
|
|
752
752
|
[
|
|
753
753
|
/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i
|
|
754
754
|
],
|
|
755
|
-
[l, [d, "TCL"], [a,
|
|
755
|
+
[l, [d, "TCL"], [a, g]],
|
|
756
756
|
[
|
|
757
757
|
// itel
|
|
758
758
|
/(itel) ((\w+))/i
|
|
759
759
|
],
|
|
760
|
-
[[d,
|
|
760
|
+
[[d, X], l, [a, H, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
|
|
761
761
|
[
|
|
762
762
|
// Acer
|
|
763
763
|
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
764
764
|
],
|
|
765
|
-
[l, [d, "Acer"], [a,
|
|
765
|
+
[l, [d, "Acer"], [a, y]],
|
|
766
766
|
[
|
|
767
767
|
// Meizu
|
|
768
768
|
/droid.+; (m[1-5] note) bui/i,
|
|
769
769
|
/\bmz-([-\w]{2,})/i
|
|
770
770
|
],
|
|
771
|
-
[l, [d, "Meizu"], [a,
|
|
771
|
+
[l, [d, "Meizu"], [a, g]],
|
|
772
772
|
[
|
|
773
773
|
// Ulefone
|
|
774
774
|
/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i
|
|
775
775
|
],
|
|
776
|
-
[l, [d, "Ulefone"], [a,
|
|
776
|
+
[l, [d, "Ulefone"], [a, g]],
|
|
777
777
|
[
|
|
778
778
|
// Energizer
|
|
779
779
|
/; (energy ?\w+)(?: bui|\))/i,
|
|
780
780
|
/; energizer ([\w ]+)(?: bui|\))/i
|
|
781
781
|
],
|
|
782
|
-
[l, [d, "Energizer"], [a,
|
|
782
|
+
[l, [d, "Energizer"], [a, g]],
|
|
783
783
|
[
|
|
784
784
|
// Cat
|
|
785
785
|
/; cat (b35);/i,
|
|
786
786
|
/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i
|
|
787
787
|
],
|
|
788
|
-
[l, [d, "Cat"], [a,
|
|
788
|
+
[l, [d, "Cat"], [a, g]],
|
|
789
789
|
[
|
|
790
790
|
// Smartfren
|
|
791
791
|
/((?:new )?andromax[\w- ]+)(?: bui|\))/i
|
|
792
792
|
],
|
|
793
|
-
[l, [d, "Smartfren"], [a,
|
|
793
|
+
[l, [d, "Smartfren"], [a, g]],
|
|
794
794
|
[
|
|
795
795
|
// Nothing
|
|
796
796
|
/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i
|
|
797
797
|
],
|
|
798
|
-
[l, [d, "Nothing"], [a,
|
|
798
|
+
[l, [d, "Nothing"], [a, g]],
|
|
799
799
|
[
|
|
800
800
|
// Archos
|
|
801
801
|
/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,
|
|
802
802
|
/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i
|
|
803
803
|
],
|
|
804
|
-
[l, [d, "Archos"], [a,
|
|
804
|
+
[l, [d, "Archos"], [a, y]],
|
|
805
805
|
[
|
|
806
806
|
/archos ([\w ]+)( b|\))/i,
|
|
807
807
|
/; (ac[3-6]\d\w{2,8})( b|\))/i
|
|
808
808
|
],
|
|
809
|
-
[l, [d, "Archos"], [a,
|
|
809
|
+
[l, [d, "Archos"], [a, g]],
|
|
810
810
|
[
|
|
811
811
|
// HMD
|
|
812
812
|
/; (n159v)/i
|
|
813
813
|
],
|
|
814
|
-
[l, [d, "HMD"], [a,
|
|
814
|
+
[l, [d, "HMD"], [a, g]],
|
|
815
815
|
[
|
|
816
816
|
// MIXED
|
|
817
817
|
/(imo) (tab \w+)/i,
|
|
@@ -819,7 +819,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
819
819
|
/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i
|
|
820
820
|
// Infinix XPad / Tecno
|
|
821
821
|
],
|
|
822
|
-
[d, l, [a,
|
|
822
|
+
[d, l, [a, y]],
|
|
823
823
|
[
|
|
824
824
|
/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,
|
|
825
825
|
// BlackBerry/BenQ/Palm/Sony-Ericsson/Acer/Asus/Dell/Meizu/Motorola/Polytron/Tecno/Micromax/Advan
|
|
@@ -836,7 +836,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
836
836
|
/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i
|
|
837
837
|
// Philips
|
|
838
838
|
],
|
|
839
|
-
[d, l, [a,
|
|
839
|
+
[d, l, [a, g]],
|
|
840
840
|
[
|
|
841
841
|
/(kobo)\s(ereader|touch)/i,
|
|
842
842
|
// Kobo
|
|
@@ -845,41 +845,41 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
845
845
|
/(kindle)\/([\w\.]+)/i
|
|
846
846
|
// Kindle
|
|
847
847
|
],
|
|
848
|
-
[d, l, [a,
|
|
848
|
+
[d, l, [a, y]],
|
|
849
849
|
[
|
|
850
850
|
/(surface duo)/i
|
|
851
851
|
// Surface Duo
|
|
852
852
|
],
|
|
853
|
-
[l, [d, Ne], [a,
|
|
853
|
+
[l, [d, Ne], [a, y]],
|
|
854
854
|
[
|
|
855
855
|
/droid [\d\.]+; (fp\du?)(?: b|\))/i
|
|
856
856
|
// Fairphone
|
|
857
857
|
],
|
|
858
|
-
[l, [d, "Fairphone"], [a,
|
|
858
|
+
[l, [d, "Fairphone"], [a, g]],
|
|
859
859
|
[
|
|
860
860
|
/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i
|
|
861
861
|
// Nvidia Tablets
|
|
862
862
|
],
|
|
863
|
-
[l, [d,
|
|
863
|
+
[l, [d, Ct], [a, y]],
|
|
864
864
|
[
|
|
865
865
|
/(sprint) (\w+)/i
|
|
866
866
|
// Sprint Phones
|
|
867
867
|
],
|
|
868
|
-
[d, l, [a,
|
|
868
|
+
[d, l, [a, g]],
|
|
869
869
|
[
|
|
870
870
|
/(kin\.[onetw]{3})/i
|
|
871
871
|
// Microsoft Kin
|
|
872
872
|
],
|
|
873
|
-
[[l, /\./g, " "], [d, Ne], [a,
|
|
873
|
+
[[l, /\./g, " "], [d, Ne], [a, g]],
|
|
874
874
|
[
|
|
875
875
|
/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i
|
|
876
876
|
// Zebra
|
|
877
877
|
],
|
|
878
|
-
[l, [d, Qe], [a,
|
|
878
|
+
[l, [d, Qe], [a, y]],
|
|
879
879
|
[
|
|
880
880
|
/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i
|
|
881
881
|
],
|
|
882
|
-
[l, [d, Qe], [a,
|
|
882
|
+
[l, [d, Qe], [a, g]],
|
|
883
883
|
[
|
|
884
884
|
///////////////////
|
|
885
885
|
// SMARTTVS
|
|
@@ -889,90 +889,90 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
889
889
|
/smart-tv.+(samsung)/i
|
|
890
890
|
// Samsung
|
|
891
891
|
],
|
|
892
|
-
[d, [a,
|
|
892
|
+
[d, [a, C]],
|
|
893
893
|
[
|
|
894
894
|
/hbbtv.+maple;(\d+)/i
|
|
895
895
|
],
|
|
896
|
-
[[l, /^/, "SmartTV"], [d,
|
|
896
|
+
[[l, /^/, "SmartTV"], [d, ge], [a, C]],
|
|
897
897
|
[
|
|
898
898
|
/(vizio)(?: |.+model\/)(\w+-\w+)/i,
|
|
899
899
|
// Vizio
|
|
900
900
|
/tcast.+(lg)e?. ([-\w]+)/i
|
|
901
901
|
// LG SmartTV
|
|
902
902
|
],
|
|
903
|
-
[d, l, [a,
|
|
903
|
+
[d, l, [a, C]],
|
|
904
904
|
[
|
|
905
905
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
906
906
|
],
|
|
907
|
-
[[d, Re], [a,
|
|
907
|
+
[[d, Re], [a, C]],
|
|
908
908
|
[
|
|
909
909
|
/(apple) ?tv/i
|
|
910
910
|
// Apple TV
|
|
911
911
|
],
|
|
912
|
-
[d, [l,
|
|
912
|
+
[d, [l, le + " TV"], [a, C]],
|
|
913
913
|
[
|
|
914
914
|
/crkey.*devicetype\/chromecast/i
|
|
915
915
|
// Google Chromecast Third Generation
|
|
916
916
|
],
|
|
917
|
-
[[l,
|
|
917
|
+
[[l, G + " Third Generation"], [d, ee], [a, C]],
|
|
918
918
|
[
|
|
919
919
|
/crkey.*devicetype\/([^/]*)/i
|
|
920
920
|
// Google Chromecast with specific device type
|
|
921
921
|
],
|
|
922
|
-
[[l, /^/, "Chromecast "], [d,
|
|
922
|
+
[[l, /^/, "Chromecast "], [d, ee], [a, C]],
|
|
923
923
|
[
|
|
924
924
|
/fuchsia.*crkey/i
|
|
925
925
|
// Google Chromecast Nest Hub
|
|
926
926
|
],
|
|
927
|
-
[[l,
|
|
927
|
+
[[l, G + " Nest Hub"], [d, ee], [a, C]],
|
|
928
928
|
[
|
|
929
929
|
/crkey/i
|
|
930
930
|
// Google Chromecast, Linux-based or unknown
|
|
931
931
|
],
|
|
932
|
-
[[l,
|
|
932
|
+
[[l, G], [d, ee], [a, C]],
|
|
933
933
|
[
|
|
934
934
|
/(portaltv)/i
|
|
935
935
|
// Facebook Portal TV
|
|
936
936
|
],
|
|
937
|
-
[l, [d, Ke], [a,
|
|
937
|
+
[l, [d, Ke], [a, C]],
|
|
938
938
|
[
|
|
939
939
|
/droid.+aft(\w+)( bui|\))/i
|
|
940
940
|
// Fire TV
|
|
941
941
|
],
|
|
942
|
-
[l, [d,
|
|
942
|
+
[l, [d, Te], [a, C]],
|
|
943
943
|
[
|
|
944
944
|
/(shield \w+ tv)/i
|
|
945
945
|
// Nvidia Shield TV
|
|
946
946
|
],
|
|
947
|
-
[l, [d,
|
|
947
|
+
[l, [d, Ct], [a, C]],
|
|
948
948
|
[
|
|
949
949
|
/\(dtv[\);].+(aquos)/i,
|
|
950
950
|
/(aquos-tv[\w ]+)\)/i
|
|
951
951
|
// Sharp
|
|
952
952
|
],
|
|
953
|
-
[l, [d, It], [a,
|
|
953
|
+
[l, [d, It], [a, C]],
|
|
954
954
|
[
|
|
955
955
|
/(bravia[\w ]+)( bui|\))/i
|
|
956
956
|
// Sony
|
|
957
957
|
],
|
|
958
|
-
[l, [d,
|
|
958
|
+
[l, [d, we], [a, C]],
|
|
959
959
|
[
|
|
960
960
|
/(mi(tv|box)-?\w+) bui/i
|
|
961
961
|
// Xiaomi
|
|
962
962
|
],
|
|
963
|
-
[l, [d, Ye], [a,
|
|
963
|
+
[l, [d, Ye], [a, C]],
|
|
964
964
|
[
|
|
965
965
|
/Hbbtv.*(technisat) (.*);/i
|
|
966
966
|
// TechniSAT
|
|
967
967
|
],
|
|
968
|
-
[d, l, [a,
|
|
968
|
+
[d, l, [a, C]],
|
|
969
969
|
[
|
|
970
970
|
/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,
|
|
971
971
|
// Roku
|
|
972
972
|
/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i
|
|
973
973
|
// HbbTV devices
|
|
974
974
|
],
|
|
975
|
-
[[d, /.+\/(\w+)/, "$1",
|
|
975
|
+
[[d, /.+\/(\w+)/, "$1", H, { LG: "lge" }], [l, Le], [a, C]],
|
|
976
976
|
[
|
|
977
977
|
///////////////////
|
|
978
978
|
// CONSOLES
|
|
@@ -980,12 +980,12 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
980
980
|
/(playstation \w+)/i
|
|
981
981
|
// Playstation
|
|
982
982
|
],
|
|
983
|
-
[l, [d,
|
|
983
|
+
[l, [d, we], [a, Me]],
|
|
984
984
|
[
|
|
985
985
|
/\b(xbox(?: one)?(?!; xbox))[\); ]/i
|
|
986
986
|
// Microsoft Xbox
|
|
987
987
|
],
|
|
988
|
-
[l, [d, Ne], [a,
|
|
988
|
+
[l, [d, Ne], [a, Me]],
|
|
989
989
|
[
|
|
990
990
|
/(ouya)/i,
|
|
991
991
|
// Ouya
|
|
@@ -997,7 +997,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
997
997
|
/droid.+; ((shield|rgcube|gr0006))( bui|\))/i
|
|
998
998
|
// Nvidia Portable/Anbernic/Logitech
|
|
999
999
|
],
|
|
1000
|
-
[[d,
|
|
1000
|
+
[[d, H, { Nvidia: "Shield", Anbernic: "RGCUBE", Logitech: "GR0006" }], l, [a, Me]],
|
|
1001
1001
|
[
|
|
1002
1002
|
///////////////////
|
|
1003
1003
|
// WEARABLES
|
|
@@ -1005,48 +1005,48 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1005
1005
|
/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i
|
|
1006
1006
|
// Samsung Galaxy Watch
|
|
1007
1007
|
],
|
|
1008
|
-
[l, [d,
|
|
1008
|
+
[l, [d, ge], [a, $]],
|
|
1009
1009
|
[
|
|
1010
1010
|
/((pebble))app/i,
|
|
1011
1011
|
// Pebble
|
|
1012
1012
|
/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i
|
|
1013
1013
|
// Asus ZenWatch / LG Watch / Pixel Watch / Xiaomi Watch
|
|
1014
1014
|
],
|
|
1015
|
-
[d, l, [a,
|
|
1015
|
+
[d, l, [a, $]],
|
|
1016
1016
|
[
|
|
1017
1017
|
/(ow(?:19|20)?we?[1-3]{1,3})/i
|
|
1018
1018
|
// Oppo Watch
|
|
1019
1019
|
],
|
|
1020
|
-
[l, [d, Xe], [a,
|
|
1020
|
+
[l, [d, Xe], [a, $]],
|
|
1021
1021
|
[
|
|
1022
1022
|
/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i
|
|
1023
1023
|
// Apple Watch
|
|
1024
1024
|
],
|
|
1025
|
-
[l, [d,
|
|
1025
|
+
[l, [d, le], [a, $]],
|
|
1026
1026
|
[
|
|
1027
1027
|
/(opwwe\d{3})/i
|
|
1028
1028
|
// OnePlus Watch
|
|
1029
1029
|
],
|
|
1030
|
-
[l, [d, Et], [a,
|
|
1030
|
+
[l, [d, Et], [a, $]],
|
|
1031
1031
|
[
|
|
1032
1032
|
/(moto 360)/i
|
|
1033
1033
|
// Motorola 360
|
|
1034
1034
|
],
|
|
1035
|
-
[l, [d, Ge], [a,
|
|
1035
|
+
[l, [d, Ge], [a, $]],
|
|
1036
1036
|
[
|
|
1037
1037
|
/(smartwatch 3)/i
|
|
1038
1038
|
// Sony SmartWatch
|
|
1039
1039
|
],
|
|
1040
|
-
[l, [d,
|
|
1040
|
+
[l, [d, we], [a, $]],
|
|
1041
1041
|
[
|
|
1042
1042
|
/(g watch r)/i
|
|
1043
1043
|
// LG G Watch R
|
|
1044
1044
|
],
|
|
1045
|
-
[l, [d, Re], [a,
|
|
1045
|
+
[l, [d, Re], [a, $]],
|
|
1046
1046
|
[
|
|
1047
1047
|
/droid.+; (wt63?0{2,3})\)/i
|
|
1048
1048
|
],
|
|
1049
|
-
[l, [d, Qe], [a,
|
|
1049
|
+
[l, [d, Qe], [a, $]],
|
|
1050
1050
|
[
|
|
1051
1051
|
///////////////////
|
|
1052
1052
|
// XR
|
|
@@ -1054,22 +1054,22 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1054
1054
|
/droid.+; (glass) \d/i
|
|
1055
1055
|
// Google Glass
|
|
1056
1056
|
],
|
|
1057
|
-
[l, [d,
|
|
1057
|
+
[l, [d, ee], [a, Ie]],
|
|
1058
1058
|
[
|
|
1059
1059
|
/(pico) ([\w ]+) os\d/i
|
|
1060
1060
|
// Pico
|
|
1061
1061
|
],
|
|
1062
|
-
[d, l, [a,
|
|
1062
|
+
[d, l, [a, Ie]],
|
|
1063
1063
|
[
|
|
1064
1064
|
/(quest( \d| pro)?s?).+vr/i
|
|
1065
1065
|
// Meta Quest
|
|
1066
1066
|
],
|
|
1067
|
-
[l, [d, Ke], [a,
|
|
1067
|
+
[l, [d, Ke], [a, Ie]],
|
|
1068
1068
|
[
|
|
1069
1069
|
/mobile vr; rv.+firefox/i
|
|
1070
1070
|
// Unidentifiable VR device using Firefox Reality / Wolvic
|
|
1071
1071
|
],
|
|
1072
|
-
[[a,
|
|
1072
|
+
[[a, Ie]],
|
|
1073
1073
|
[
|
|
1074
1074
|
///////////////////
|
|
1075
1075
|
// EMBEDDED
|
|
@@ -1077,22 +1077,22 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1077
1077
|
/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i
|
|
1078
1078
|
// Tesla
|
|
1079
1079
|
],
|
|
1080
|
-
[d, [a,
|
|
1080
|
+
[d, [a, ke]],
|
|
1081
1081
|
[
|
|
1082
1082
|
/(aeobc)\b/i
|
|
1083
1083
|
// Echo Dot
|
|
1084
1084
|
],
|
|
1085
|
-
[l, [d,
|
|
1085
|
+
[l, [d, Te], [a, ke]],
|
|
1086
1086
|
[
|
|
1087
1087
|
/(homepod).+mac os/i
|
|
1088
1088
|
// Apple HomePod
|
|
1089
1089
|
],
|
|
1090
|
-
[l, [d,
|
|
1090
|
+
[l, [d, le], [a, ke]],
|
|
1091
1091
|
[
|
|
1092
1092
|
/windows iot/i
|
|
1093
1093
|
// Unidentifiable embedded device using Windows IoT
|
|
1094
1094
|
],
|
|
1095
|
-
[[a,
|
|
1095
|
+
[[a, ke]],
|
|
1096
1096
|
[
|
|
1097
1097
|
////////////////////
|
|
1098
1098
|
// MIXED (GENERIC)
|
|
@@ -1100,25 +1100,25 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1100
1100
|
/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i
|
|
1101
1101
|
// Unidentifiable SmartTV
|
|
1102
1102
|
],
|
|
1103
|
-
[l, [a,
|
|
1103
|
+
[l, [a, C]],
|
|
1104
1104
|
[
|
|
1105
1105
|
/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i
|
|
1106
1106
|
],
|
|
1107
|
-
[[a,
|
|
1107
|
+
[[a, C]],
|
|
1108
1108
|
[
|
|
1109
1109
|
/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i
|
|
1110
1110
|
],
|
|
1111
|
-
[l, [a,
|
|
1111
|
+
[l, [a, H, { mobile: "Mobile", xr: "VR", "*": y }]],
|
|
1112
1112
|
[
|
|
1113
1113
|
/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i
|
|
1114
1114
|
// Unidentifiable Tablet
|
|
1115
1115
|
],
|
|
1116
|
-
[[a,
|
|
1116
|
+
[[a, y]],
|
|
1117
1117
|
[
|
|
1118
1118
|
/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i
|
|
1119
1119
|
// Unidentifiable Mobile
|
|
1120
1120
|
],
|
|
1121
|
-
[[a,
|
|
1121
|
+
[[a, g]],
|
|
1122
1122
|
[
|
|
1123
1123
|
/droid .+?; ([\w\. -]+)( bui|\))/i
|
|
1124
1124
|
// Generic Android Device
|
|
@@ -1130,7 +1130,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1130
1130
|
/windows.+ edge\/([\w\.]+)/i
|
|
1131
1131
|
// EdgeHTML
|
|
1132
1132
|
],
|
|
1133
|
-
[u, [c,
|
|
1133
|
+
[u, [c, Ae + "HTML"]],
|
|
1134
1134
|
[
|
|
1135
1135
|
/(arkweb)\/([\w\.]+)/i
|
|
1136
1136
|
// ArkWeb
|
|
@@ -1172,7 +1172,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1172
1172
|
/(windows nt) (6\.[23]); arm/i
|
|
1173
1173
|
// Windows RT
|
|
1174
1174
|
],
|
|
1175
|
-
[[c, /N/, "R"], [u,
|
|
1175
|
+
[[c, /N/, "R"], [u, H, Mt]],
|
|
1176
1176
|
[
|
|
1177
1177
|
/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,
|
|
1178
1178
|
// Windows IoT/Mobile/Phone
|
|
@@ -1184,7 +1184,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1184
1184
|
/windows nt ?([\d\.\)]*)(?!.+xbox)/i,
|
|
1185
1185
|
/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i
|
|
1186
1186
|
],
|
|
1187
|
-
[[u, /(;|\))/g, "",
|
|
1187
|
+
[[u, /(;|\))/g, "", H, Mt], [c, tt]],
|
|
1188
1188
|
[
|
|
1189
1189
|
/(windows ce)\/?([\d\.]*)/i
|
|
1190
1190
|
// Windows CE
|
|
@@ -1210,27 +1210,27 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1210
1210
|
/android ([\d\.]+).*crkey/i
|
|
1211
1211
|
// Google Chromecast, Android-based
|
|
1212
1212
|
],
|
|
1213
|
-
[u, [c,
|
|
1213
|
+
[u, [c, G + " Android"]],
|
|
1214
1214
|
[
|
|
1215
1215
|
/fuchsia.*crkey\/([\d\.]+)/i
|
|
1216
1216
|
// Google Chromecast, Fuchsia-based
|
|
1217
1217
|
],
|
|
1218
|
-
[u, [c,
|
|
1218
|
+
[u, [c, G + " Fuchsia"]],
|
|
1219
1219
|
[
|
|
1220
1220
|
/crkey\/([\d\.]+).*devicetype\/smartspeaker/i
|
|
1221
1221
|
// Google Chromecast, Linux-based Smart Speaker
|
|
1222
1222
|
],
|
|
1223
|
-
[u, [c,
|
|
1223
|
+
[u, [c, G + " SmartSpeaker"]],
|
|
1224
1224
|
[
|
|
1225
1225
|
/linux.*crkey\/([\d\.]+)/i
|
|
1226
1226
|
// Google Chromecast, Legacy Linux-based
|
|
1227
1227
|
],
|
|
1228
|
-
[u, [c,
|
|
1228
|
+
[u, [c, G + " Linux"]],
|
|
1229
1229
|
[
|
|
1230
1230
|
/crkey\/([\d\.]+)/i
|
|
1231
1231
|
// Google Chromecast, unknown
|
|
1232
1232
|
],
|
|
1233
|
-
[u, [c,
|
|
1233
|
+
[u, [c, G]],
|
|
1234
1234
|
[
|
|
1235
1235
|
// Mobile OSes
|
|
1236
1236
|
/droid ([\w\.]+)\b.+(android[- ]x86)/i
|
|
@@ -1263,7 +1263,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1263
1263
|
/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i
|
|
1264
1264
|
// Firefox OS
|
|
1265
1265
|
],
|
|
1266
|
-
[u, [c,
|
|
1266
|
+
[u, [c, me + " OS"]],
|
|
1267
1267
|
[
|
|
1268
1268
|
/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,
|
|
1269
1269
|
// WebOS
|
|
@@ -1274,7 +1274,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1274
1274
|
/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i
|
|
1275
1275
|
// https://webostv.developer.lge.com/develop/specifications/web-api-and-web-engine
|
|
1276
1276
|
],
|
|
1277
|
-
[[u,
|
|
1277
|
+
[[u, H, { 25: "120", 24: "108", 23: "94", 22: "87", 6: "79", 5: "68", 4: "53", 3: "38", 2: "538", 1: "537", "*": "TV" }], [c, "webOS"]],
|
|
1278
1278
|
[
|
|
1279
1279
|
/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i
|
|
1280
1280
|
// watchOS
|
|
@@ -1337,132 +1337,132 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", de = "", yt = "?", C = {
|
|
|
1337
1337
|
],
|
|
1338
1338
|
[c, u]
|
|
1339
1339
|
]
|
|
1340
|
-
},
|
|
1340
|
+
}, Oe = (function() {
|
|
1341
1341
|
var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
|
|
1342
|
-
return
|
|
1343
|
-
[
|
|
1344
|
-
[
|
|
1345
|
-
[
|
|
1346
|
-
[
|
|
1347
|
-
[
|
|
1348
|
-
]),
|
|
1349
|
-
[
|
|
1350
|
-
[
|
|
1351
|
-
[
|
|
1352
|
-
]),
|
|
1353
|
-
[
|
|
1354
|
-
[
|
|
1355
|
-
]),
|
|
1356
|
-
[
|
|
1357
|
-
[
|
|
1358
|
-
[
|
|
1359
|
-
[
|
|
1360
|
-
[
|
|
1342
|
+
return q.call(e.init, [
|
|
1343
|
+
[L, [c, u, Se, a]],
|
|
1344
|
+
[j, [O]],
|
|
1345
|
+
[B, [a, l, d]],
|
|
1346
|
+
[U, [c, u]],
|
|
1347
|
+
[D, [c, u]]
|
|
1348
|
+
]), q.call(e.isIgnore, [
|
|
1349
|
+
[L, [u, Se]],
|
|
1350
|
+
[U, [u]],
|
|
1351
|
+
[D, [u]]
|
|
1352
|
+
]), q.call(e.isIgnoreRgx, [
|
|
1353
|
+
[L, / ?browser$/i],
|
|
1354
|
+
[D, / ?os$/i]
|
|
1355
|
+
]), q.call(e.toString, [
|
|
1356
|
+
[L, [c, u]],
|
|
1357
|
+
[j, [O]],
|
|
1358
|
+
[B, [d, l]],
|
|
1359
|
+
[U, [c, u]],
|
|
1360
|
+
[D, [c, u]]
|
|
1361
1361
|
]), e;
|
|
1362
1362
|
})(), Mi = function(e, t) {
|
|
1363
|
-
var i =
|
|
1364
|
-
function
|
|
1365
|
-
|
|
1363
|
+
var i = Oe.init[t], n = Oe.isIgnore[t] || 0, o = Oe.isIgnoreRgx[t] || 0, s = Oe.toString[t] || 0;
|
|
1364
|
+
function r() {
|
|
1365
|
+
q.call(this, i);
|
|
1366
1366
|
}
|
|
1367
|
-
return
|
|
1367
|
+
return r.prototype.getItem = function() {
|
|
1368
1368
|
return e;
|
|
1369
|
-
},
|
|
1370
|
-
return
|
|
1369
|
+
}, r.prototype.withClientHints = function() {
|
|
1370
|
+
return ie ? ie.getHighEntropyValues(Nt).then(function(h) {
|
|
1371
1371
|
return e.setCH(new Gt(h, !1)).parseCH().get();
|
|
1372
1372
|
}) : e.parseCH().get();
|
|
1373
|
-
},
|
|
1373
|
+
}, r.prototype.withFeatureCheck = function() {
|
|
1374
1374
|
return e.detectFeature().get();
|
|
1375
|
-
}, t !=
|
|
1375
|
+
}, t != fe && (r.prototype.is = function(h) {
|
|
1376
1376
|
var f = !1;
|
|
1377
|
-
for (var
|
|
1378
|
-
if (this.hasOwnProperty(
|
|
1379
|
-
if (f = !0, h !=
|
|
1380
|
-
} else if (h ==
|
|
1377
|
+
for (var w in this)
|
|
1378
|
+
if (this.hasOwnProperty(w) && !it(n, w) && X(o ? be(o, this[w]) : this[w]) == X(o ? be(o, h) : h)) {
|
|
1379
|
+
if (f = !0, h != S.UNDEFINED) break;
|
|
1380
|
+
} else if (h == S.UNDEFINED && f) {
|
|
1381
1381
|
f = !f;
|
|
1382
1382
|
break;
|
|
1383
1383
|
}
|
|
1384
1384
|
return f;
|
|
1385
|
-
},
|
|
1386
|
-
var h =
|
|
1385
|
+
}, r.prototype.toString = function() {
|
|
1386
|
+
var h = he;
|
|
1387
1387
|
for (var f in s)
|
|
1388
|
-
typeof this[s[f]] !==
|
|
1389
|
-
return h ||
|
|
1390
|
-
}),
|
|
1391
|
-
var f = this,
|
|
1392
|
-
for (var
|
|
1393
|
-
f.hasOwnProperty(
|
|
1388
|
+
typeof this[s[f]] !== S.UNDEFINED && (h += (h ? " " : he) + this[s[f]]);
|
|
1389
|
+
return h || S.UNDEFINED;
|
|
1390
|
+
}), r.prototype.then = function(h) {
|
|
1391
|
+
var f = this, w = function() {
|
|
1392
|
+
for (var k in f)
|
|
1393
|
+
f.hasOwnProperty(k) && (this[k] = f[k]);
|
|
1394
1394
|
};
|
|
1395
|
-
|
|
1396
|
-
is:
|
|
1397
|
-
toString:
|
|
1398
|
-
withClientHints:
|
|
1399
|
-
withFeatureCheck:
|
|
1395
|
+
w.prototype = {
|
|
1396
|
+
is: r.prototype.is,
|
|
1397
|
+
toString: r.prototype.toString,
|
|
1398
|
+
withClientHints: r.prototype.withClientHints,
|
|
1399
|
+
withFeatureCheck: r.prototype.withFeatureCheck
|
|
1400
1400
|
};
|
|
1401
|
-
var m = new
|
|
1401
|
+
var m = new w();
|
|
1402
1402
|
return h(m), m;
|
|
1403
|
-
}, new
|
|
1403
|
+
}, new r();
|
|
1404
1404
|
};
|
|
1405
1405
|
function Gt(e, t) {
|
|
1406
|
-
if (e = e || {},
|
|
1407
|
-
|
|
1408
|
-
[st, Je(e[
|
|
1406
|
+
if (e = e || {}, q.call(this, Nt), t)
|
|
1407
|
+
q.call(this, [
|
|
1408
|
+
[st, Je(e[K])],
|
|
1409
1409
|
[at, Je(e[xi])],
|
|
1410
|
-
[
|
|
1411
|
-
[l,
|
|
1412
|
-
[
|
|
1413
|
-
[lt,
|
|
1414
|
-
[
|
|
1415
|
-
[
|
|
1416
|
-
[De,
|
|
1410
|
+
[g, /\?1/.test(e[Ci])],
|
|
1411
|
+
[l, ve(e[Ei])],
|
|
1412
|
+
[pe, ve(e[jt])],
|
|
1413
|
+
[lt, ve(e[Ii])],
|
|
1414
|
+
[O, ve(e[vi])],
|
|
1415
|
+
[te, Je(e[Si])],
|
|
1416
|
+
[De, ve(e[ki])]
|
|
1417
1417
|
]);
|
|
1418
1418
|
else
|
|
1419
1419
|
for (var i in e)
|
|
1420
|
-
this.hasOwnProperty(i) && typeof e[i] !==
|
|
1420
|
+
this.hasOwnProperty(i) && typeof e[i] !== S.UNDEFINED && (this[i] = e[i]);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1423
|
-
return
|
|
1422
|
+
function Q(e, t, i, n) {
|
|
1423
|
+
return q.call(this, [
|
|
1424
1424
|
["itemType", e],
|
|
1425
1425
|
["ua", t],
|
|
1426
|
-
["uaCH",
|
|
1426
|
+
["uaCH", n],
|
|
1427
1427
|
["rgxMap", i],
|
|
1428
1428
|
["data", Mi(this, e)]
|
|
1429
1429
|
]), this;
|
|
1430
1430
|
}
|
|
1431
|
-
|
|
1431
|
+
Q.prototype.get = function(e) {
|
|
1432
1432
|
return e ? this.data.hasOwnProperty(e) ? this.data[e] : void 0 : this.data;
|
|
1433
1433
|
};
|
|
1434
|
-
|
|
1434
|
+
Q.prototype.set = function(e, t) {
|
|
1435
1435
|
return this.data[e] = t, this;
|
|
1436
1436
|
};
|
|
1437
|
-
|
|
1437
|
+
Q.prototype.setCH = function(e) {
|
|
1438
1438
|
return this.uaCH = e, this;
|
|
1439
1439
|
};
|
|
1440
|
-
|
|
1441
|
-
if (
|
|
1440
|
+
Q.prototype.detectFeature = function() {
|
|
1441
|
+
if (F && F.userAgent == this.ua)
|
|
1442
1442
|
switch (this.itemType) {
|
|
1443
|
-
case
|
|
1444
|
-
|
|
1443
|
+
case L:
|
|
1444
|
+
F.brave && typeof F.brave.isBrave == S.FUNCTION && this.set(c, "Brave");
|
|
1445
1445
|
break;
|
|
1446
|
-
case
|
|
1447
|
-
!this.get(a) &&
|
|
1446
|
+
case B:
|
|
1447
|
+
!this.get(a) && ie && ie[g] && this.set(a, g), this.get(l) == "Macintosh" && F && typeof F.standalone !== S.UNDEFINED && F.maxTouchPoints && F.maxTouchPoints > 2 && this.set(l, "iPad").set(a, y);
|
|
1448
1448
|
break;
|
|
1449
|
-
case
|
|
1450
|
-
!this.get(c) &&
|
|
1449
|
+
case D:
|
|
1450
|
+
!this.get(c) && ie && ie[pe] && this.set(c, ie[pe]);
|
|
1451
1451
|
break;
|
|
1452
|
-
case
|
|
1452
|
+
case fe:
|
|
1453
1453
|
var e = this.data, t = function(i) {
|
|
1454
1454
|
return e[i].getItem().detectFeature().get();
|
|
1455
1455
|
};
|
|
1456
|
-
this.set(
|
|
1456
|
+
this.set(L, t(L)).set(j, t(j)).set(B, t(B)).set(U, t(U)).set(D, t(D));
|
|
1457
1457
|
}
|
|
1458
1458
|
return this;
|
|
1459
1459
|
};
|
|
1460
|
-
|
|
1461
|
-
switch (this.itemType !=
|
|
1462
|
-
case
|
|
1463
|
-
this.set(
|
|
1460
|
+
Q.prototype.parseUA = function() {
|
|
1461
|
+
switch (this.itemType != fe && rt.call(this.data, this.ua, this.rgxMap), this.itemType) {
|
|
1462
|
+
case L:
|
|
1463
|
+
this.set(Se, nt(this.get(u)));
|
|
1464
1464
|
break;
|
|
1465
|
-
case
|
|
1465
|
+
case D:
|
|
1466
1466
|
if (this.get(c) == "iOS" && this.get(u) == "18.6") {
|
|
1467
1467
|
var e = /\) Version\/([\d\.]+)/.exec(this.ua);
|
|
1468
1468
|
e && parseInt(e[1].substring(0, 2), 10) >= 26 && this.set(u, e[1]);
|
|
@@ -1471,106 +1471,106 @@ X.prototype.parseUA = function() {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
return this;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1474
|
+
Q.prototype.parseCH = function() {
|
|
1475
1475
|
var e = this.uaCH, t = this.rgxMap;
|
|
1476
1476
|
switch (this.itemType) {
|
|
1477
|
-
case
|
|
1478
|
-
case
|
|
1479
|
-
var i = e[at] || e[st],
|
|
1477
|
+
case L:
|
|
1478
|
+
case U:
|
|
1479
|
+
var i = e[at] || e[st], n;
|
|
1480
1480
|
if (i)
|
|
1481
1481
|
for (var o = 0; o < i.length; o++) {
|
|
1482
|
-
var s = i[o].brand || i[o],
|
|
1483
|
-
this.itemType ==
|
|
1482
|
+
var s = i[o].brand || i[o], r = i[o].version;
|
|
1483
|
+
this.itemType == L && !/not.a.brand/i.test(s) && (!n || /Chrom/.test(n) && s != Rt || n == Ae && /WebView2/.test(s)) && (s = H(s, Oi), n = this.get(c), n && !/Chrom/.test(n) && /Chrom/.test(s) || this.set(c, s).set(u, r).set(Se, nt(r)), n = s), this.itemType == U && s == Rt && this.set(u, r);
|
|
1484
1484
|
}
|
|
1485
1485
|
break;
|
|
1486
|
-
case
|
|
1487
|
-
var h = e[
|
|
1488
|
-
h && (h && e[De] == "64" && (h += "64"),
|
|
1486
|
+
case j:
|
|
1487
|
+
var h = e[O];
|
|
1488
|
+
h && (h && e[De] == "64" && (h += "64"), rt.call(this.data, h + ";", t));
|
|
1489
1489
|
break;
|
|
1490
|
-
case
|
|
1491
|
-
if (e[
|
|
1490
|
+
case B:
|
|
1491
|
+
if (e[g] && this.set(a, g), e[l] && (this.set(l, e[l]), !this.get(a) || !this.get(d))) {
|
|
1492
1492
|
var f = {};
|
|
1493
|
-
|
|
1493
|
+
rt.call(f, "droid 9; " + e[l] + ")", t), !this.get(a) && f.type && this.set(a, f.type), !this.get(d) && f.vendor && this.set(d, f.vendor);
|
|
1494
1494
|
}
|
|
1495
|
-
if (e[
|
|
1496
|
-
var
|
|
1497
|
-
if (typeof e[
|
|
1498
|
-
for (var m = 0; !
|
|
1499
|
-
|
|
1495
|
+
if (e[te]) {
|
|
1496
|
+
var w;
|
|
1497
|
+
if (typeof e[te] != "string")
|
|
1498
|
+
for (var m = 0; !w && m < e[te].length; )
|
|
1499
|
+
w = H(e[te][m++], At);
|
|
1500
1500
|
else
|
|
1501
|
-
|
|
1502
|
-
this.set(a,
|
|
1501
|
+
w = H(e[te], At);
|
|
1502
|
+
this.set(a, w);
|
|
1503
1503
|
}
|
|
1504
1504
|
break;
|
|
1505
|
-
case
|
|
1506
|
-
var
|
|
1507
|
-
if (
|
|
1508
|
-
var
|
|
1509
|
-
|
|
1505
|
+
case D:
|
|
1506
|
+
var k = e[pe];
|
|
1507
|
+
if (k) {
|
|
1508
|
+
var T = e[lt];
|
|
1509
|
+
k == tt && (T = parseInt(nt(T), 10) >= 13 ? "11" : "10"), this.set(c, k).set(u, T);
|
|
1510
1510
|
}
|
|
1511
1511
|
this.get(c) == tt && e[l] == "Xbox" && this.set(c, "Xbox").set(u, void 0);
|
|
1512
1512
|
break;
|
|
1513
|
-
case
|
|
1514
|
-
var
|
|
1515
|
-
return
|
|
1513
|
+
case fe:
|
|
1514
|
+
var z = this.data, M = function(x) {
|
|
1515
|
+
return z[x].getItem().setCH(e).parseCH().get();
|
|
1516
1516
|
};
|
|
1517
|
-
this.set(
|
|
1517
|
+
this.set(L, M(L)).set(j, M(j)).set(B, M(B)).set(U, M(U)).set(D, M(D));
|
|
1518
1518
|
}
|
|
1519
1519
|
return this;
|
|
1520
1520
|
};
|
|
1521
|
-
function
|
|
1522
|
-
if (typeof e ===
|
|
1523
|
-
if (typeof i.append ===
|
|
1524
|
-
var
|
|
1525
|
-
i.forEach(function(m,
|
|
1526
|
-
|
|
1527
|
-
}), i =
|
|
1521
|
+
function N(e, t, i) {
|
|
1522
|
+
if (typeof e === S.OBJECT ? (Fe(e, !0) ? (typeof t === S.OBJECT && (i = t), t = e) : (i = e, t = void 0), e = void 0) : typeof e === S.STRING && !Fe(t, !0) && (i = t, t = void 0), i)
|
|
1523
|
+
if (typeof i.append === S.FUNCTION) {
|
|
1524
|
+
var n = {};
|
|
1525
|
+
i.forEach(function(m, k) {
|
|
1526
|
+
n[String(k).toLowerCase()] = m;
|
|
1527
|
+
}), i = n;
|
|
1528
1528
|
} else {
|
|
1529
1529
|
var o = {};
|
|
1530
1530
|
for (var s in i)
|
|
1531
1531
|
i.hasOwnProperty(s) && (o[String(s).toLowerCase()] = i[s]);
|
|
1532
1532
|
i = o;
|
|
1533
1533
|
}
|
|
1534
|
-
if (!(this instanceof
|
|
1535
|
-
return new
|
|
1536
|
-
var
|
|
1534
|
+
if (!(this instanceof N))
|
|
1535
|
+
return new N(e, t, i).getResult();
|
|
1536
|
+
var r = typeof e === S.STRING ? e : (
|
|
1537
1537
|
// Passed user-agent string
|
|
1538
1538
|
i && i[mt] ? i[mt] : (
|
|
1539
1539
|
// User-Agent from passed headers
|
|
1540
|
-
|
|
1540
|
+
F && F.userAgent ? F.userAgent : (
|
|
1541
1541
|
// navigator.userAgent
|
|
1542
|
-
|
|
1542
|
+
he
|
|
1543
1543
|
)
|
|
1544
1544
|
)
|
|
1545
|
-
), h = new Gt(i, !0), f = t ?
|
|
1546
|
-
return m ==
|
|
1547
|
-
return new
|
|
1545
|
+
), h = new Gt(i, !0), f = t ? Ri(Ft, t) : Ft, w = function(m) {
|
|
1546
|
+
return m == fe ? function() {
|
|
1547
|
+
return new Q(m, r, f, h).set("ua", r).set(L, this.getBrowser()).set(j, this.getCPU()).set(B, this.getDevice()).set(U, this.getEngine()).set(D, this.getOS()).get();
|
|
1548
1548
|
} : function() {
|
|
1549
|
-
return new
|
|
1549
|
+
return new Q(m, r, f[m], h).parseUA().get();
|
|
1550
1550
|
};
|
|
1551
1551
|
};
|
|
1552
|
-
return
|
|
1553
|
-
["getBrowser",
|
|
1554
|
-
["getCPU",
|
|
1555
|
-
["getDevice",
|
|
1556
|
-
["getEngine",
|
|
1557
|
-
["getOS",
|
|
1558
|
-
["getResult",
|
|
1552
|
+
return q.call(this, [
|
|
1553
|
+
["getBrowser", w(L)],
|
|
1554
|
+
["getCPU", w(j)],
|
|
1555
|
+
["getDevice", w(B)],
|
|
1556
|
+
["getEngine", w(U)],
|
|
1557
|
+
["getOS", w(D)],
|
|
1558
|
+
["getResult", w(fe)],
|
|
1559
1559
|
["getUA", function() {
|
|
1560
|
-
return
|
|
1560
|
+
return r;
|
|
1561
1561
|
}],
|
|
1562
1562
|
["setUA", function(m) {
|
|
1563
|
-
return
|
|
1563
|
+
return Ce(m) && (r = Le(m, yi)), this;
|
|
1564
1564
|
}]
|
|
1565
|
-
]).setUA(
|
|
1565
|
+
]).setUA(r), this;
|
|
1566
1566
|
}
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1567
|
+
N.VERSION = mi;
|
|
1568
|
+
N.BROWSER = He([c, u, Se, a]);
|
|
1569
|
+
N.CPU = He([O]);
|
|
1570
|
+
N.DEVICE = He([l, d, a, Me, g, C, y, $, ke]);
|
|
1571
|
+
N.ENGINE = N.OS = He([c, u]);
|
|
1572
1572
|
const Ai = () => {
|
|
1573
|
-
const t = new
|
|
1573
|
+
const t = new N().getResult();
|
|
1574
1574
|
return {
|
|
1575
1575
|
os: t.os.name || "unknown",
|
|
1576
1576
|
osVersion: t.os.version || "unknown",
|
|
@@ -1587,10 +1587,10 @@ function Fi(e, t) {
|
|
|
1587
1587
|
return window.location.protocol + e;
|
|
1588
1588
|
if (e.match(/^[a-z]+:/i))
|
|
1589
1589
|
return e;
|
|
1590
|
-
const i = document.implementation.createHTMLDocument(),
|
|
1591
|
-
return i.head.appendChild(
|
|
1590
|
+
const i = document.implementation.createHTMLDocument(), n = i.createElement("base"), o = i.createElement("a");
|
|
1591
|
+
return i.head.appendChild(n), i.body.appendChild(o), t && (n.href = t), o.href = e, o.href;
|
|
1592
1592
|
}
|
|
1593
|
-
const
|
|
1593
|
+
const Li = /* @__PURE__ */ (() => {
|
|
1594
1594
|
let e = 0;
|
|
1595
1595
|
const t = () => (
|
|
1596
1596
|
// eslint-disable-next-line no-bitwise
|
|
@@ -1598,33 +1598,33 @@ const _i = /* @__PURE__ */ (() => {
|
|
|
1598
1598
|
);
|
|
1599
1599
|
return () => (e += 1, `u${t()}${e}`);
|
|
1600
1600
|
})();
|
|
1601
|
-
function
|
|
1601
|
+
function Y(e) {
|
|
1602
1602
|
const t = [];
|
|
1603
|
-
for (let i = 0,
|
|
1603
|
+
for (let i = 0, n = e.length; i < n; i++)
|
|
1604
1604
|
t.push(e[i]);
|
|
1605
1605
|
return t;
|
|
1606
1606
|
}
|
|
1607
|
-
let
|
|
1607
|
+
let de = null;
|
|
1608
1608
|
function Xt(e = {}) {
|
|
1609
|
-
return
|
|
1609
|
+
return de || (e.includeStyleProperties ? (de = e.includeStyleProperties, de) : (de = Y(window.getComputedStyle(document.documentElement)), de));
|
|
1610
1610
|
}
|
|
1611
1611
|
function _e(e, t) {
|
|
1612
|
-
const
|
|
1613
|
-
return
|
|
1612
|
+
const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
1613
|
+
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function _i(e) {
|
|
1616
1616
|
const t = _e(e, "border-left-width"), i = _e(e, "border-right-width");
|
|
1617
1617
|
return e.clientWidth + t + i;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Pi(e) {
|
|
1620
1620
|
const t = _e(e, "border-top-width"), i = _e(e, "border-bottom-width");
|
|
1621
1621
|
return e.clientHeight + t + i;
|
|
1622
1622
|
}
|
|
1623
1623
|
function Yt(e, t = {}) {
|
|
1624
|
-
const i = t.width ||
|
|
1625
|
-
return { width: i, height:
|
|
1624
|
+
const i = t.width || _i(e), n = t.height || Pi(e);
|
|
1625
|
+
return { width: i, height: n };
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function Di() {
|
|
1628
1628
|
let e, t;
|
|
1629
1629
|
try {
|
|
1630
1630
|
t = process;
|
|
@@ -1633,32 +1633,32 @@ function Li() {
|
|
|
1633
1633
|
const i = t && t.env ? t.env.devicePixelRatio : null;
|
|
1634
1634
|
return i && (e = parseInt(i, 10), Number.isNaN(e) && (e = 1)), e || window.devicePixelRatio || 1;
|
|
1635
1635
|
}
|
|
1636
|
-
const
|
|
1636
|
+
const P = 16384;
|
|
1637
1637
|
function Hi(e) {
|
|
1638
|
-
(e.width >
|
|
1638
|
+
(e.width > P || e.height > P) && (e.width > P && e.height > P ? e.width > e.height ? (e.height *= P / e.width, e.width = P) : (e.width *= P / e.height, e.height = P) : e.width > P ? (e.height *= P / e.width, e.width = P) : (e.width *= P / e.height, e.height = P));
|
|
1639
1639
|
}
|
|
1640
1640
|
function Pe(e) {
|
|
1641
1641
|
return new Promise((t, i) => {
|
|
1642
|
-
const
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
requestAnimationFrame(() => t(
|
|
1642
|
+
const n = new Image();
|
|
1643
|
+
n.onload = () => {
|
|
1644
|
+
n.decode().then(() => {
|
|
1645
|
+
requestAnimationFrame(() => t(n));
|
|
1646
1646
|
});
|
|
1647
|
-
},
|
|
1647
|
+
}, n.onerror = i, n.crossOrigin = "anonymous", n.decoding = "async", n.src = e;
|
|
1648
1648
|
});
|
|
1649
1649
|
}
|
|
1650
1650
|
async function Ui(e) {
|
|
1651
1651
|
return Promise.resolve().then(() => new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then((t) => `data:image/svg+xml;charset=utf-8,${t}`);
|
|
1652
1652
|
}
|
|
1653
1653
|
async function zi(e, t, i) {
|
|
1654
|
-
const
|
|
1654
|
+
const n = "http://www.w3.org/2000/svg", o = document.createElementNS(n, "svg"), s = document.createElementNS(n, "foreignObject");
|
|
1655
1655
|
return o.setAttribute("width", `${t}`), o.setAttribute("height", `${i}`), o.setAttribute("viewBox", `0 0 ${t} ${i}`), s.setAttribute("width", "100%"), s.setAttribute("height", "100%"), s.setAttribute("x", "0"), s.setAttribute("y", "0"), s.setAttribute("externalResourcesRequired", "true"), o.appendChild(s), s.appendChild(e), Ui(o);
|
|
1656
1656
|
}
|
|
1657
|
-
const
|
|
1657
|
+
const _ = (e, t) => {
|
|
1658
1658
|
if (e instanceof t)
|
|
1659
1659
|
return !0;
|
|
1660
1660
|
const i = Object.getPrototypeOf(e);
|
|
1661
|
-
return i === null ? !1 : i.constructor.name === t.name ||
|
|
1661
|
+
return i === null ? !1 : i.constructor.name === t.name || _(i, t);
|
|
1662
1662
|
};
|
|
1663
1663
|
function $i(e) {
|
|
1664
1664
|
const t = e.getPropertyValue("content");
|
|
@@ -1666,38 +1666,38 @@ function $i(e) {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
function Bi(e, t) {
|
|
1668
1668
|
return Xt(t).map((i) => {
|
|
1669
|
-
const
|
|
1670
|
-
return `${i}: ${
|
|
1669
|
+
const n = e.getPropertyValue(i), o = e.getPropertyPriority(i);
|
|
1670
|
+
return `${i}: ${n}${o ? " !important" : ""};`;
|
|
1671
1671
|
}).join(" ");
|
|
1672
1672
|
}
|
|
1673
|
-
function Vi(e, t, i,
|
|
1674
|
-
const o = `.${e}:${t}`, s = i.cssText ? $i(i) : Bi(i,
|
|
1673
|
+
function Vi(e, t, i, n) {
|
|
1674
|
+
const o = `.${e}:${t}`, s = i.cssText ? $i(i) : Bi(i, n);
|
|
1675
1675
|
return document.createTextNode(`${o}{${s}}`);
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function Lt(e, t, i, n) {
|
|
1678
1678
|
const o = window.getComputedStyle(e, i), s = o.getPropertyValue("content");
|
|
1679
1679
|
if (s === "" || s === "none")
|
|
1680
1680
|
return;
|
|
1681
|
-
const
|
|
1681
|
+
const r = Li();
|
|
1682
1682
|
try {
|
|
1683
|
-
t.className = `${t.className} ${
|
|
1683
|
+
t.className = `${t.className} ${r}`;
|
|
1684
1684
|
} catch {
|
|
1685
1685
|
return;
|
|
1686
1686
|
}
|
|
1687
1687
|
const h = document.createElement("style");
|
|
1688
|
-
h.appendChild(Vi(
|
|
1688
|
+
h.appendChild(Vi(r, i, o, n)), t.appendChild(h);
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
|
|
1690
|
+
function Wi(e, t, i) {
|
|
1691
|
+
Lt(e, t, ":before", i), Lt(e, t, ":after", i);
|
|
1692
1692
|
}
|
|
1693
|
-
const
|
|
1694
|
-
woff:
|
|
1695
|
-
woff2:
|
|
1693
|
+
const _t = "application/font-woff", Pt = "image/jpeg", qi = {
|
|
1694
|
+
woff: _t,
|
|
1695
|
+
woff2: _t,
|
|
1696
1696
|
ttf: "application/font-truetype",
|
|
1697
1697
|
eot: "application/vnd.ms-fontobject",
|
|
1698
1698
|
png: "image/png",
|
|
1699
|
-
jpg:
|
|
1700
|
-
jpeg:
|
|
1699
|
+
jpg: Pt,
|
|
1700
|
+
jpeg: Pt,
|
|
1701
1701
|
gif: "image/gif",
|
|
1702
1702
|
tiff: "image/tiff",
|
|
1703
1703
|
svg: "image/svg+xml",
|
|
@@ -1709,7 +1709,7 @@ function ji(e) {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
function ct(e) {
|
|
1711
1711
|
const t = ji(e).toLowerCase();
|
|
1712
|
-
return
|
|
1712
|
+
return qi[t] || "";
|
|
1713
1713
|
}
|
|
1714
1714
|
function Ni(e) {
|
|
1715
1715
|
return e.split(/,/)[1];
|
|
@@ -1721,41 +1721,41 @@ function Gi(e, t) {
|
|
|
1721
1721
|
return `data:${t};base64,${e}`;
|
|
1722
1722
|
}
|
|
1723
1723
|
async function Qt(e, t, i) {
|
|
1724
|
-
const
|
|
1725
|
-
if (
|
|
1726
|
-
throw new Error(`Resource "${
|
|
1727
|
-
const o = await
|
|
1728
|
-
return new Promise((s,
|
|
1724
|
+
const n = await fetch(e, t);
|
|
1725
|
+
if (n.status === 404)
|
|
1726
|
+
throw new Error(`Resource "${n.url}" not found`);
|
|
1727
|
+
const o = await n.blob();
|
|
1728
|
+
return new Promise((s, r) => {
|
|
1729
1729
|
const h = new FileReader();
|
|
1730
|
-
h.onerror =
|
|
1730
|
+
h.onerror = r, h.onloadend = () => {
|
|
1731
1731
|
try {
|
|
1732
|
-
s(i({ res:
|
|
1732
|
+
s(i({ res: n, result: h.result }));
|
|
1733
1733
|
} catch (f) {
|
|
1734
|
-
|
|
1734
|
+
r(f);
|
|
1735
1735
|
}
|
|
1736
1736
|
}, h.readAsDataURL(o);
|
|
1737
1737
|
});
|
|
1738
1738
|
}
|
|
1739
1739
|
const Ze = {};
|
|
1740
1740
|
function Xi(e, t, i) {
|
|
1741
|
-
let
|
|
1742
|
-
return i && (
|
|
1741
|
+
let n = e.replace(/\?.*/, "");
|
|
1742
|
+
return i && (n = e), /ttf|otf|eot|woff2?/i.test(n) && (n = n.replace(/.*\//, "")), t ? `[${t}]${n}` : n;
|
|
1743
1743
|
}
|
|
1744
1744
|
async function dt(e, t, i) {
|
|
1745
|
-
const
|
|
1746
|
-
if (Ze[
|
|
1747
|
-
return Ze[
|
|
1745
|
+
const n = Xi(e, t, i.includeQueryParams);
|
|
1746
|
+
if (Ze[n] != null)
|
|
1747
|
+
return Ze[n];
|
|
1748
1748
|
i.cacheBust && (e += (/\?/.test(e) ? "&" : "?") + (/* @__PURE__ */ new Date()).getTime());
|
|
1749
1749
|
let o;
|
|
1750
1750
|
try {
|
|
1751
|
-
const s = await Qt(e, i.fetchRequestInit, ({ res:
|
|
1751
|
+
const s = await Qt(e, i.fetchRequestInit, ({ res: r, result: h }) => (t || (t = r.headers.get("Content-Type") || ""), Ni(h)));
|
|
1752
1752
|
o = Gi(s, t);
|
|
1753
1753
|
} catch (s) {
|
|
1754
1754
|
o = i.imagePlaceholder || "";
|
|
1755
|
-
let
|
|
1756
|
-
s && (
|
|
1755
|
+
let r = `Failed to fetch resource: ${e}`;
|
|
1756
|
+
s && (r = typeof s == "string" ? s : s.message), r && console.warn(r);
|
|
1757
1757
|
}
|
|
1758
|
-
return Ze[
|
|
1758
|
+
return Ze[n] = o, o;
|
|
1759
1759
|
}
|
|
1760
1760
|
async function Yi(e) {
|
|
1761
1761
|
const t = e.toDataURL();
|
|
@@ -1763,111 +1763,111 @@ async function Yi(e) {
|
|
|
1763
1763
|
}
|
|
1764
1764
|
async function Qi(e, t) {
|
|
1765
1765
|
if (e.currentSrc) {
|
|
1766
|
-
const s = document.createElement("canvas"),
|
|
1767
|
-
s.width = e.clientWidth, s.height = e.clientHeight,
|
|
1766
|
+
const s = document.createElement("canvas"), r = s.getContext("2d");
|
|
1767
|
+
s.width = e.clientWidth, s.height = e.clientHeight, r?.drawImage(e, 0, 0, s.width, s.height);
|
|
1768
1768
|
const h = s.toDataURL();
|
|
1769
1769
|
return Pe(h);
|
|
1770
1770
|
}
|
|
1771
|
-
const i = e.poster,
|
|
1771
|
+
const i = e.poster, n = ct(i), o = await dt(i, n, t);
|
|
1772
1772
|
return Pe(o);
|
|
1773
1773
|
}
|
|
1774
1774
|
async function Ki(e, t) {
|
|
1775
1775
|
var i;
|
|
1776
1776
|
try {
|
|
1777
1777
|
if (!((i = e?.contentDocument) === null || i === void 0) && i.body)
|
|
1778
|
-
return await
|
|
1778
|
+
return await Ue(e.contentDocument.body, t, !0);
|
|
1779
1779
|
} catch {
|
|
1780
1780
|
}
|
|
1781
1781
|
return e.cloneNode(!1);
|
|
1782
1782
|
}
|
|
1783
1783
|
async function Ji(e, t) {
|
|
1784
|
-
return
|
|
1784
|
+
return _(e, HTMLCanvasElement) ? Yi(e) : _(e, HTMLVideoElement) ? Qi(e, t) : _(e, HTMLIFrameElement) ? Ki(e, t) : e.cloneNode(Kt(e));
|
|
1785
1785
|
}
|
|
1786
1786
|
const Zi = (e) => e.tagName != null && e.tagName.toUpperCase() === "SLOT", Kt = (e) => e.tagName != null && e.tagName.toUpperCase() === "SVG";
|
|
1787
|
-
async function
|
|
1788
|
-
var
|
|
1787
|
+
async function en(e, t, i) {
|
|
1788
|
+
var n, o;
|
|
1789
1789
|
if (Kt(t))
|
|
1790
1790
|
return t;
|
|
1791
1791
|
let s = [];
|
|
1792
|
-
return Zi(e) && e.assignedNodes ? s =
|
|
1792
|
+
return Zi(e) && e.assignedNodes ? s = Y(e.assignedNodes()) : _(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Y(e.contentDocument.body.childNodes) : s = Y(((o = e.shadowRoot) !== null && o !== void 0 ? o : e).childNodes), s.length === 0 || _(e, HTMLVideoElement) || await s.reduce((r, h) => r.then(() => Ue(h, i)).then((f) => {
|
|
1793
1793
|
f && t.appendChild(f);
|
|
1794
1794
|
}), Promise.resolve()), t;
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1797
|
-
const
|
|
1798
|
-
if (!
|
|
1796
|
+
function tn(e, t, i) {
|
|
1797
|
+
const n = t.style;
|
|
1798
|
+
if (!n)
|
|
1799
1799
|
return;
|
|
1800
1800
|
const o = window.getComputedStyle(e);
|
|
1801
|
-
o.cssText ? (
|
|
1802
|
-
let
|
|
1803
|
-
s === "font-size" &&
|
|
1801
|
+
o.cssText ? (n.cssText = o.cssText, n.transformOrigin = o.transformOrigin) : Xt(i).forEach((s) => {
|
|
1802
|
+
let r = o.getPropertyValue(s);
|
|
1803
|
+
s === "font-size" && r.endsWith("px") && (r = `${Math.floor(parseFloat(r.substring(0, r.length - 2))) - 0.1}px`), _(e, HTMLIFrameElement) && s === "display" && r === "inline" && (r = "block"), s === "d" && t.getAttribute("d") && (r = `path(${t.getAttribute("d")})`), n.setProperty(s, r, o.getPropertyPriority(s));
|
|
1804
1804
|
});
|
|
1805
1805
|
}
|
|
1806
|
-
function
|
|
1807
|
-
|
|
1806
|
+
function nn(e, t) {
|
|
1807
|
+
_(e, HTMLTextAreaElement) && (t.innerHTML = e.value), _(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1810
|
-
if (
|
|
1811
|
-
const
|
|
1812
|
-
|
|
1809
|
+
function rn(e, t) {
|
|
1810
|
+
if (_(e, HTMLSelectElement)) {
|
|
1811
|
+
const n = Array.from(t.children).find((o) => e.value === o.getAttribute("value"));
|
|
1812
|
+
n && n.setAttribute("selected", "");
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
|
-
function
|
|
1816
|
-
return
|
|
1815
|
+
function on(e, t, i) {
|
|
1816
|
+
return _(t, Element) && (tn(e, t, i), Wi(e, t, i), nn(e, t), rn(e, t)), t;
|
|
1817
1817
|
}
|
|
1818
|
-
async function
|
|
1818
|
+
async function sn(e, t) {
|
|
1819
1819
|
const i = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
1820
1820
|
if (i.length === 0)
|
|
1821
1821
|
return e;
|
|
1822
|
-
const
|
|
1822
|
+
const n = {};
|
|
1823
1823
|
for (let s = 0; s < i.length; s++) {
|
|
1824
1824
|
const h = i[s].getAttribute("xlink:href");
|
|
1825
1825
|
if (h) {
|
|
1826
|
-
const f = e.querySelector(h),
|
|
1827
|
-
!f &&
|
|
1826
|
+
const f = e.querySelector(h), w = document.querySelector(h);
|
|
1827
|
+
!f && w && !n[h] && (n[h] = await Ue(w, t, !0));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
const o = Object.values(
|
|
1830
|
+
const o = Object.values(n);
|
|
1831
1831
|
if (o.length) {
|
|
1832
|
-
const s = "http://www.w3.org/1999/xhtml",
|
|
1833
|
-
|
|
1832
|
+
const s = "http://www.w3.org/1999/xhtml", r = document.createElementNS(s, "svg");
|
|
1833
|
+
r.setAttribute("xmlns", s), r.style.position = "absolute", r.style.width = "0", r.style.height = "0", r.style.overflow = "hidden", r.style.display = "none";
|
|
1834
1834
|
const h = document.createElementNS(s, "defs");
|
|
1835
|
-
|
|
1835
|
+
r.appendChild(h);
|
|
1836
1836
|
for (let f = 0; f < o.length; f++)
|
|
1837
1837
|
h.appendChild(o[f]);
|
|
1838
|
-
e.appendChild(
|
|
1838
|
+
e.appendChild(r);
|
|
1839
1839
|
}
|
|
1840
1840
|
return e;
|
|
1841
1841
|
}
|
|
1842
|
-
async function
|
|
1843
|
-
return !i && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((
|
|
1842
|
+
async function Ue(e, t, i) {
|
|
1843
|
+
return !i && t.filter && !t.filter(e) ? null : Promise.resolve(e).then((n) => Ji(n, t)).then((n) => en(e, n, t)).then((n) => on(e, n, t)).then((n) => sn(n, t));
|
|
1844
1844
|
}
|
|
1845
|
-
const Jt = /url\((['"]?)([^'"]+?)\1\)/g,
|
|
1846
|
-
function
|
|
1845
|
+
const Jt = /url\((['"]?)([^'"]+?)\1\)/g, an = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, ln = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
1846
|
+
function cn(e) {
|
|
1847
1847
|
const t = e.replace(/([.*+?^${}()|\[\]\/\\])/g, "\\$1");
|
|
1848
1848
|
return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`, "g");
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function dn(e) {
|
|
1851
1851
|
const t = [];
|
|
1852
|
-
return e.replace(Jt, (i,
|
|
1852
|
+
return e.replace(Jt, (i, n, o) => (t.push(o), i)), t.filter((i) => !ot(i));
|
|
1853
1853
|
}
|
|
1854
|
-
async function
|
|
1854
|
+
async function un(e, t, i, n, o) {
|
|
1855
1855
|
try {
|
|
1856
|
-
const s = i ? Fi(t, i) : t,
|
|
1856
|
+
const s = i ? Fi(t, i) : t, r = ct(t);
|
|
1857
1857
|
let h;
|
|
1858
|
-
return o || (h = await dt(s,
|
|
1858
|
+
return o || (h = await dt(s, r, n)), e.replace(cn(t), `$1${h}$3`);
|
|
1859
1859
|
} catch {
|
|
1860
1860
|
}
|
|
1861
1861
|
return e;
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1864
|
-
return t ? e.replace(
|
|
1863
|
+
function hn(e, { preferredFontFormat: t }) {
|
|
1864
|
+
return t ? e.replace(ln, (i) => {
|
|
1865
1865
|
for (; ; ) {
|
|
1866
|
-
const [
|
|
1866
|
+
const [n, , o] = an.exec(i) || [];
|
|
1867
1867
|
if (!o)
|
|
1868
1868
|
return "";
|
|
1869
1869
|
if (o === t)
|
|
1870
|
-
return `src: ${
|
|
1870
|
+
return `src: ${n};`;
|
|
1871
1871
|
}
|
|
1872
1872
|
}) : e;
|
|
1873
1873
|
}
|
|
@@ -1877,66 +1877,66 @@ function Zt(e) {
|
|
|
1877
1877
|
async function ei(e, t, i) {
|
|
1878
1878
|
if (!Zt(e))
|
|
1879
1879
|
return e;
|
|
1880
|
-
const
|
|
1881
|
-
return
|
|
1880
|
+
const n = hn(e, i);
|
|
1881
|
+
return dn(n).reduce((s, r) => s.then((h) => un(h, r, t, i)), Promise.resolve(n));
|
|
1882
1882
|
}
|
|
1883
|
-
async function
|
|
1884
|
-
var
|
|
1885
|
-
const o = (
|
|
1883
|
+
async function ue(e, t, i) {
|
|
1884
|
+
var n;
|
|
1885
|
+
const o = (n = t.style) === null || n === void 0 ? void 0 : n.getPropertyValue(e);
|
|
1886
1886
|
if (o) {
|
|
1887
1887
|
const s = await ei(o, null, i);
|
|
1888
1888
|
return t.style.setProperty(e, s, t.style.getPropertyPriority(e)), !0;
|
|
1889
1889
|
}
|
|
1890
1890
|
return !1;
|
|
1891
1891
|
}
|
|
1892
|
-
async function
|
|
1893
|
-
await
|
|
1892
|
+
async function fn(e, t) {
|
|
1893
|
+
await ue("background", e, t) || await ue("background-image", e, t), await ue("mask", e, t) || await ue("-webkit-mask", e, t) || await ue("mask-image", e, t) || await ue("-webkit-mask-image", e, t);
|
|
1894
1894
|
}
|
|
1895
|
-
async function
|
|
1896
|
-
const i =
|
|
1897
|
-
if (!(i && !ot(e.src)) && !(
|
|
1895
|
+
async function pn(e, t) {
|
|
1896
|
+
const i = _(e, HTMLImageElement);
|
|
1897
|
+
if (!(i && !ot(e.src)) && !(_(e, SVGImageElement) && !ot(e.href.baseVal)))
|
|
1898
1898
|
return;
|
|
1899
|
-
const
|
|
1900
|
-
await new Promise((s,
|
|
1899
|
+
const n = i ? e.src : e.href.baseVal, o = await dt(n, ct(n), t);
|
|
1900
|
+
await new Promise((s, r) => {
|
|
1901
1901
|
e.onload = s, e.onerror = t.onImageErrorHandler ? (...f) => {
|
|
1902
1902
|
try {
|
|
1903
1903
|
s(t.onImageErrorHandler(...f));
|
|
1904
|
-
} catch (
|
|
1905
|
-
|
|
1904
|
+
} catch (w) {
|
|
1905
|
+
r(w);
|
|
1906
1906
|
}
|
|
1907
|
-
} :
|
|
1907
|
+
} : r;
|
|
1908
1908
|
const h = e;
|
|
1909
1909
|
h.decode && (h.decode = s), h.loading === "lazy" && (h.loading = "eager"), i ? (e.srcset = "", e.src = o) : e.href.baseVal = o;
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
|
-
async function
|
|
1913
|
-
const
|
|
1914
|
-
await Promise.all(
|
|
1912
|
+
async function bn(e, t) {
|
|
1913
|
+
const n = Y(e.childNodes).map((o) => ti(o, t));
|
|
1914
|
+
await Promise.all(n).then(() => e);
|
|
1915
1915
|
}
|
|
1916
1916
|
async function ti(e, t) {
|
|
1917
|
-
|
|
1917
|
+
_(e, Element) && (await fn(e, t), await pn(e, t), await bn(e, t));
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function gn(e, t) {
|
|
1920
1920
|
const { style: i } = e;
|
|
1921
1921
|
t.backgroundColor && (i.backgroundColor = t.backgroundColor), t.width && (i.width = `${t.width}px`), t.height && (i.height = `${t.height}px`);
|
|
1922
|
-
const
|
|
1923
|
-
return
|
|
1924
|
-
i[o] =
|
|
1922
|
+
const n = t.style;
|
|
1923
|
+
return n != null && Object.keys(n).forEach((o) => {
|
|
1924
|
+
i[o] = n[o];
|
|
1925
1925
|
}), e;
|
|
1926
1926
|
}
|
|
1927
|
-
const
|
|
1927
|
+
const Dt = {};
|
|
1928
1928
|
async function Ht(e) {
|
|
1929
|
-
let t =
|
|
1929
|
+
let t = Dt[e];
|
|
1930
1930
|
if (t != null)
|
|
1931
1931
|
return t;
|
|
1932
|
-
const
|
|
1933
|
-
return t = { url: e, cssText:
|
|
1932
|
+
const n = await (await fetch(e)).text();
|
|
1933
|
+
return t = { url: e, cssText: n }, Dt[e] = t, t;
|
|
1934
1934
|
}
|
|
1935
1935
|
async function Ut(e, t) {
|
|
1936
1936
|
let i = e.cssText;
|
|
1937
|
-
const
|
|
1938
|
-
let h =
|
|
1939
|
-
return h.startsWith("https://") || (h = new URL(h, e.url).href), Qt(h, t.fetchRequestInit, ({ result: f }) => (i = i.replace(
|
|
1937
|
+
const n = /url\(["']?([^"')]+)["']?\)/g, s = (i.match(/url\([^)]+\)/g) || []).map(async (r) => {
|
|
1938
|
+
let h = r.replace(n, "$1");
|
|
1939
|
+
return h.startsWith("https://") || (h = new URL(h, e.url).href), Qt(h, t.fetchRequestInit, ({ result: f }) => (i = i.replace(r, `url(${f})`), [r, f]));
|
|
1940
1940
|
});
|
|
1941
1941
|
return Promise.all(s).then(() => i);
|
|
1942
1942
|
}
|
|
@@ -1944,20 +1944,20 @@ function zt(e) {
|
|
|
1944
1944
|
if (e == null)
|
|
1945
1945
|
return [];
|
|
1946
1946
|
const t = [], i = /(\/\*[\s\S]*?\*\/)/gi;
|
|
1947
|
-
let
|
|
1947
|
+
let n = e.replace(i, "");
|
|
1948
1948
|
const o = new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})", "gi");
|
|
1949
1949
|
for (; ; ) {
|
|
1950
|
-
const f = o.exec(
|
|
1950
|
+
const f = o.exec(n);
|
|
1951
1951
|
if (f === null)
|
|
1952
1952
|
break;
|
|
1953
1953
|
t.push(f[0]);
|
|
1954
1954
|
}
|
|
1955
|
-
|
|
1956
|
-
const s = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,
|
|
1955
|
+
n = n.replace(o, "");
|
|
1956
|
+
const s = /@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi, r = "((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})", h = new RegExp(r, "gi");
|
|
1957
1957
|
for (; ; ) {
|
|
1958
|
-
let f = s.exec(
|
|
1958
|
+
let f = s.exec(n);
|
|
1959
1959
|
if (f === null) {
|
|
1960
|
-
if (f = h.exec(
|
|
1960
|
+
if (f = h.exec(n), f === null)
|
|
1961
1961
|
break;
|
|
1962
1962
|
s.lastIndex = h.lastIndex;
|
|
1963
1963
|
} else
|
|
@@ -1966,41 +1966,41 @@ function zt(e) {
|
|
|
1966
1966
|
}
|
|
1967
1967
|
return t;
|
|
1968
1968
|
}
|
|
1969
|
-
async function
|
|
1970
|
-
const i = [],
|
|
1969
|
+
async function wn(e, t) {
|
|
1970
|
+
const i = [], n = [];
|
|
1971
1971
|
return e.forEach((o) => {
|
|
1972
1972
|
if ("cssRules" in o)
|
|
1973
1973
|
try {
|
|
1974
|
-
|
|
1974
|
+
Y(o.cssRules || []).forEach((s, r) => {
|
|
1975
1975
|
if (s.type === CSSRule.IMPORT_RULE) {
|
|
1976
|
-
let h =
|
|
1977
|
-
const f = s.href,
|
|
1976
|
+
let h = r + 1;
|
|
1977
|
+
const f = s.href, w = Ht(f).then((m) => Ut(m, t)).then((m) => zt(m).forEach((k) => {
|
|
1978
1978
|
try {
|
|
1979
|
-
o.insertRule(
|
|
1980
|
-
} catch (
|
|
1979
|
+
o.insertRule(k, k.startsWith("@import") ? h += 1 : o.cssRules.length);
|
|
1980
|
+
} catch (T) {
|
|
1981
1981
|
console.error("Error inserting rule from remote css", {
|
|
1982
|
-
rule:
|
|
1983
|
-
error:
|
|
1982
|
+
rule: k,
|
|
1983
|
+
error: T
|
|
1984
1984
|
});
|
|
1985
1985
|
}
|
|
1986
1986
|
})).catch((m) => {
|
|
1987
1987
|
console.error("Error loading remote css", m.toString());
|
|
1988
1988
|
});
|
|
1989
|
-
|
|
1989
|
+
n.push(w);
|
|
1990
1990
|
}
|
|
1991
1991
|
});
|
|
1992
1992
|
} catch (s) {
|
|
1993
|
-
const
|
|
1994
|
-
o.href != null &&
|
|
1995
|
-
|
|
1993
|
+
const r = e.find((h) => h.href == null) || document.styleSheets[0];
|
|
1994
|
+
o.href != null && n.push(Ht(o.href).then((h) => Ut(h, t)).then((h) => zt(h).forEach((f) => {
|
|
1995
|
+
r.insertRule(f, r.cssRules.length);
|
|
1996
1996
|
})).catch((h) => {
|
|
1997
1997
|
console.error("Error loading remote stylesheet", h);
|
|
1998
1998
|
})), console.error("Error inlining remote css file", s);
|
|
1999
1999
|
}
|
|
2000
|
-
}), Promise.all(
|
|
2000
|
+
}), Promise.all(n).then(() => (e.forEach((o) => {
|
|
2001
2001
|
if ("cssRules" in o)
|
|
2002
2002
|
try {
|
|
2003
|
-
|
|
2003
|
+
Y(o.cssRules || []).forEach((s) => {
|
|
2004
2004
|
i.push(s);
|
|
2005
2005
|
});
|
|
2006
2006
|
} catch (s) {
|
|
@@ -2008,103 +2008,88 @@ async function gr(e, t) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
}), i));
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function mn(e) {
|
|
2012
2012
|
return e.filter((t) => t.type === CSSRule.FONT_FACE_RULE).filter((t) => Zt(t.style.getPropertyValue("src")));
|
|
2013
2013
|
}
|
|
2014
|
-
async function
|
|
2014
|
+
async function yn(e, t) {
|
|
2015
2015
|
if (e.ownerDocument == null)
|
|
2016
2016
|
throw new Error("Provided element is not within a Document");
|
|
2017
|
-
const i =
|
|
2018
|
-
return
|
|
2017
|
+
const i = Y(e.ownerDocument.styleSheets), n = await wn(i, t);
|
|
2018
|
+
return mn(n);
|
|
2019
2019
|
}
|
|
2020
2020
|
function ii(e) {
|
|
2021
2021
|
return e.trim().replace(/["']/g, "");
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function xn(e) {
|
|
2024
2024
|
const t = /* @__PURE__ */ new Set();
|
|
2025
|
-
function i(
|
|
2026
|
-
(
|
|
2025
|
+
function i(n) {
|
|
2026
|
+
(n.style.fontFamily || getComputedStyle(n).fontFamily).split(",").forEach((s) => {
|
|
2027
2027
|
t.add(ii(s));
|
|
2028
|
-
}), Array.from(
|
|
2028
|
+
}), Array.from(n.children).forEach((s) => {
|
|
2029
2029
|
s instanceof HTMLElement && i(s);
|
|
2030
2030
|
});
|
|
2031
2031
|
}
|
|
2032
2032
|
return i(e), t;
|
|
2033
2033
|
}
|
|
2034
|
-
async function
|
|
2035
|
-
const i = await
|
|
2036
|
-
return (await Promise.all(i.filter((s) =>
|
|
2037
|
-
const
|
|
2038
|
-
return ei(s.cssText,
|
|
2034
|
+
async function vn(e, t) {
|
|
2035
|
+
const i = await yn(e, t), n = xn(e);
|
|
2036
|
+
return (await Promise.all(i.filter((s) => n.has(ii(s.style.fontFamily))).map((s) => {
|
|
2037
|
+
const r = s.parentStyleSheet ? s.parentStyleSheet.href : null;
|
|
2038
|
+
return ei(s.cssText, r, t);
|
|
2039
2039
|
}))).join(`
|
|
2040
2040
|
`);
|
|
2041
2041
|
}
|
|
2042
|
-
async function
|
|
2043
|
-
const i = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await
|
|
2042
|
+
async function kn(e, t) {
|
|
2043
|
+
const i = t.fontEmbedCSS != null ? t.fontEmbedCSS : t.skipFonts ? null : await vn(e, t);
|
|
2044
2044
|
if (i) {
|
|
2045
|
-
const
|
|
2046
|
-
|
|
2045
|
+
const n = document.createElement("style"), o = document.createTextNode(i);
|
|
2046
|
+
n.appendChild(o), e.firstChild ? e.insertBefore(n, e.firstChild) : e.appendChild(n);
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
|
-
async function
|
|
2050
|
-
const { width: i, height:
|
|
2051
|
-
return await
|
|
2049
|
+
async function Sn(e, t = {}) {
|
|
2050
|
+
const { width: i, height: n } = Yt(e, t), o = await Ue(e, t, !0);
|
|
2051
|
+
return await kn(o, t), await ti(o, t), gn(o, t), await zi(o, i, n);
|
|
2052
2052
|
}
|
|
2053
|
-
async function
|
|
2054
|
-
const { width: i, height:
|
|
2055
|
-
return
|
|
2053
|
+
async function Cn(e, t = {}) {
|
|
2054
|
+
const { width: i, height: n } = Yt(e, t), o = await Sn(e, t), s = await Pe(o), r = document.createElement("canvas"), h = r.getContext("2d"), f = t.pixelRatio || Di(), w = t.canvasWidth || i, m = t.canvasHeight || n;
|
|
2055
|
+
return r.width = w * f, r.height = m * f, t.skipAutoScale || Hi(r), r.style.width = `${w}`, r.style.height = `${m}`, t.backgroundColor && (h.fillStyle = t.backgroundColor, h.fillRect(0, 0, r.width, r.height)), h.drawImage(s, 0, 0, r.width, r.height), r;
|
|
2056
2056
|
}
|
|
2057
|
-
async function
|
|
2058
|
-
return (await
|
|
2057
|
+
async function En(e, t = {}) {
|
|
2058
|
+
return (await Cn(e, t)).toDataURL();
|
|
2059
2059
|
}
|
|
2060
|
-
const
|
|
2060
|
+
const In = async (e) => {
|
|
2061
2061
|
try {
|
|
2062
|
-
|
|
2062
|
+
const t = document.documentElement, i = e ? e.x : 0, n = e ? e.y : 0, o = e ? e.width : window.innerWidth, s = e ? e.height : window.innerHeight, r = t.getBoundingClientRect(), h = window.getComputedStyle(t), f = parseFloat(h.marginLeft) || 0, w = parseFloat(h.marginTop) || 0, m = i - r.left + f, k = n - r.top + w;
|
|
2063
|
+
return await En(t, {
|
|
2063
2064
|
quality: 0.9,
|
|
2064
2065
|
pixelRatio: 1,
|
|
2065
2066
|
cacheBust: !0,
|
|
2066
|
-
skipAutoScale: !0
|
|
2067
|
+
skipAutoScale: !0,
|
|
2068
|
+
width: o,
|
|
2069
|
+
height: s,
|
|
2070
|
+
canvasWidth: o,
|
|
2071
|
+
canvasHeight: s,
|
|
2072
|
+
style: {
|
|
2073
|
+
// translate the content to bring the desired area into view (0,0) of the canvas
|
|
2074
|
+
transform: `translate(${-m}px, ${-k}px)`
|
|
2075
|
+
}
|
|
2067
2076
|
});
|
|
2068
2077
|
} catch (t) {
|
|
2069
2078
|
return console.error("Screenshot capture failed:", t), null;
|
|
2070
2079
|
}
|
|
2071
|
-
}
|
|
2072
|
-
|
|
2073
|
-
o.onload = () => {
|
|
2074
|
-
const s = document.documentElement, n = s.scrollWidth, h = s.scrollHeight, f = n ? o.naturalWidth / n : 1, g = h ? o.naturalHeight / h : 1, m = document.createElement("canvas");
|
|
2075
|
-
m.width = t.width * f, m.height = t.height * g;
|
|
2076
|
-
const y = m.getContext("2d");
|
|
2077
|
-
if (!y) {
|
|
2078
|
-
r(new Error("Could not get canvas context"));
|
|
2079
|
-
return;
|
|
2080
|
-
}
|
|
2081
|
-
y.drawImage(
|
|
2082
|
-
o,
|
|
2083
|
-
t.x * f,
|
|
2084
|
-
t.y * g,
|
|
2085
|
-
t.width * f,
|
|
2086
|
-
t.height * g,
|
|
2087
|
-
// Source
|
|
2088
|
-
0,
|
|
2089
|
-
0,
|
|
2090
|
-
m.width,
|
|
2091
|
-
m.height
|
|
2092
|
-
// Destination
|
|
2093
|
-
), i(m.toDataURL("image/png", 0.9));
|
|
2094
|
-
}, o.onerror = r, o.src = e;
|
|
2095
|
-
});
|
|
2096
|
-
const Rr = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Tr = (e) => e.replace(
|
|
2080
|
+
};
|
|
2081
|
+
const Tn = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Rn = (e) => e.replace(
|
|
2097
2082
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2098
|
-
(t, i,
|
|
2083
|
+
(t, i, n) => n ? n.toUpperCase() : i.toLowerCase()
|
|
2099
2084
|
), $t = (e) => {
|
|
2100
|
-
const t =
|
|
2085
|
+
const t = Rn(e);
|
|
2101
2086
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
|
2102
|
-
},
|
|
2087
|
+
}, ni = (...e) => e.filter((t, i, n) => !!t && t.trim() !== "" && n.indexOf(t) === i).join(" ").trim(), On = (e) => {
|
|
2103
2088
|
for (const t in e)
|
|
2104
2089
|
if (t.startsWith("aria-") || t === "role" || t === "title")
|
|
2105
2090
|
return !0;
|
|
2106
2091
|
};
|
|
2107
|
-
var
|
|
2092
|
+
var Mn = {
|
|
2108
2093
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2109
2094
|
width: 24,
|
|
2110
2095
|
height: 24,
|
|
@@ -2115,62 +2100,62 @@ var Mr = {
|
|
|
2115
2100
|
strokeLinecap: "round",
|
|
2116
2101
|
strokeLinejoin: "round"
|
|
2117
2102
|
};
|
|
2118
|
-
const
|
|
2103
|
+
const An = qt(
|
|
2119
2104
|
({
|
|
2120
2105
|
color: e = "currentColor",
|
|
2121
2106
|
size: t = 24,
|
|
2122
2107
|
strokeWidth: i = 2,
|
|
2123
|
-
absoluteStrokeWidth:
|
|
2108
|
+
absoluteStrokeWidth: n,
|
|
2124
2109
|
className: o = "",
|
|
2125
2110
|
children: s,
|
|
2126
|
-
iconNode:
|
|
2111
|
+
iconNode: r,
|
|
2127
2112
|
...h
|
|
2128
2113
|
}, f) => et(
|
|
2129
2114
|
"svg",
|
|
2130
2115
|
{
|
|
2131
2116
|
ref: f,
|
|
2132
|
-
...
|
|
2117
|
+
...Mn,
|
|
2133
2118
|
width: t,
|
|
2134
2119
|
height: t,
|
|
2135
2120
|
stroke: e,
|
|
2136
|
-
strokeWidth:
|
|
2137
|
-
className:
|
|
2138
|
-
...!s && !
|
|
2121
|
+
strokeWidth: n ? Number(i) * 24 / Number(t) : i,
|
|
2122
|
+
className: ni("lucide", o),
|
|
2123
|
+
...!s && !On(h) && { "aria-hidden": "true" },
|
|
2139
2124
|
...h
|
|
2140
2125
|
},
|
|
2141
2126
|
[
|
|
2142
|
-
...
|
|
2127
|
+
...r.map(([w, m]) => et(w, m)),
|
|
2143
2128
|
...Array.isArray(s) ? s : [s]
|
|
2144
2129
|
]
|
|
2145
2130
|
)
|
|
2146
2131
|
);
|
|
2147
|
-
const
|
|
2148
|
-
const i =
|
|
2149
|
-
({ className:
|
|
2132
|
+
const ne = (e, t) => {
|
|
2133
|
+
const i = qt(
|
|
2134
|
+
({ className: n, ...o }, s) => et(An, {
|
|
2150
2135
|
ref: s,
|
|
2151
2136
|
iconNode: t,
|
|
2152
|
-
className:
|
|
2153
|
-
`lucide-${
|
|
2137
|
+
className: ni(
|
|
2138
|
+
`lucide-${Tn($t(e))}`,
|
|
2154
2139
|
`lucide-${e}`,
|
|
2155
|
-
|
|
2140
|
+
n
|
|
2156
2141
|
),
|
|
2157
2142
|
...o
|
|
2158
2143
|
})
|
|
2159
2144
|
);
|
|
2160
2145
|
return i.displayName = $t(e), i;
|
|
2161
2146
|
};
|
|
2162
|
-
const
|
|
2147
|
+
const Fn = [
|
|
2163
2148
|
["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
|
|
2164
2149
|
["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
|
|
2165
|
-
],
|
|
2166
|
-
const
|
|
2150
|
+
], Ln = ne("crop", Fn);
|
|
2151
|
+
const _n = [
|
|
2167
2152
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
2168
2153
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
2169
2154
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
2170
2155
|
["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
|
|
2171
|
-
], Bt =
|
|
2172
|
-
const
|
|
2173
|
-
const
|
|
2156
|
+
], Bt = ne("hash", _n);
|
|
2157
|
+
const Pn = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Dn = ne("loader-circle", Pn);
|
|
2158
|
+
const Hn = [
|
|
2174
2159
|
[
|
|
2175
2160
|
"path",
|
|
2176
2161
|
{
|
|
@@ -2180,42 +2165,57 @@ const Hr = [
|
|
|
2180
2165
|
],
|
|
2181
2166
|
["path", { d: "M12 8v6", key: "1ib9pf" }],
|
|
2182
2167
|
["path", { d: "M9 11h6", key: "1fldmi" }]
|
|
2183
|
-
],
|
|
2184
|
-
const
|
|
2168
|
+
], Un = ne("message-square-plus", Hn);
|
|
2169
|
+
const zn = [
|
|
2185
2170
|
["rect", { width: "20", height: "14", x: "2", y: "3", rx: "2", key: "48i651" }],
|
|
2186
2171
|
["line", { x1: "8", x2: "16", y1: "21", y2: "21", key: "1svkeh" }],
|
|
2187
2172
|
["line", { x1: "12", x2: "12", y1: "17", y2: "21", key: "vw1qmm" }]
|
|
2188
|
-
], $
|
|
2189
|
-
const
|
|
2173
|
+
], $n = ne("monitor", zn);
|
|
2174
|
+
const Bn = [
|
|
2190
2175
|
["path", { d: "M21 5H3", key: "1fi0y6" }],
|
|
2191
2176
|
["path", { d: "M15 12H3", key: "6jk70r" }],
|
|
2192
2177
|
["path", { d: "M17 19H3", key: "z6ezky" }]
|
|
2193
|
-
],
|
|
2194
|
-
const
|
|
2178
|
+
], Vn = ne("text-align-start", Bn);
|
|
2179
|
+
const Wn = [
|
|
2195
2180
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
2196
2181
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
2197
|
-
], Vt =
|
|
2198
|
-
const [i,
|
|
2199
|
-
|
|
2200
|
-
},
|
|
2201
|
-
i && h({ x:
|
|
2182
|
+
], Vt = ne("x", Wn), qn = ({ onConfirm: e, onCancel: t }) => {
|
|
2183
|
+
const [i, n] = E(!1), [o, s] = E({ x: 0, y: 0 }), [r, h] = E({ x: 0, y: 0 }), f = (x) => {
|
|
2184
|
+
n(!0), s({ x: x.clientX, y: x.clientY }), h({ x: x.clientX, y: x.clientY });
|
|
2185
|
+
}, w = (x) => {
|
|
2186
|
+
i && h({ x: x.clientX, y: x.clientY });
|
|
2202
2187
|
}, m = () => {
|
|
2188
|
+
M();
|
|
2189
|
+
}, k = (x) => {
|
|
2190
|
+
if (x.touches.length === 1) {
|
|
2191
|
+
n(!0);
|
|
2192
|
+
const R = x.touches[0];
|
|
2193
|
+
s({ x: R.clientX, y: R.clientY }), h({ x: R.clientX, y: R.clientY }), document.body.style.overflow = "hidden";
|
|
2194
|
+
}
|
|
2195
|
+
}, T = (x) => {
|
|
2196
|
+
if (i && x.touches.length === 1) {
|
|
2197
|
+
const R = x.touches[0];
|
|
2198
|
+
h({ x: R.clientX, y: R.clientY });
|
|
2199
|
+
}
|
|
2200
|
+
}, z = () => {
|
|
2201
|
+
M(), document.body.style.overflow = "";
|
|
2202
|
+
}, M = () => {
|
|
2203
2203
|
if (i) {
|
|
2204
|
-
|
|
2205
|
-
const
|
|
2206
|
-
|
|
2207
|
-
x
|
|
2208
|
-
y:
|
|
2209
|
-
width:
|
|
2210
|
-
height:
|
|
2204
|
+
n(!1);
|
|
2205
|
+
const x = Math.min(o.x, r.x), R = Math.min(o.y, r.y), V = Math.abs(r.x - o.x), J = Math.abs(r.y - o.y);
|
|
2206
|
+
V > 10 && J > 10 && e({
|
|
2207
|
+
x,
|
|
2208
|
+
y: R,
|
|
2209
|
+
width: V,
|
|
2210
|
+
height: J
|
|
2211
2211
|
});
|
|
2212
2212
|
}
|
|
2213
2213
|
};
|
|
2214
2214
|
return bi(() => {
|
|
2215
|
-
const
|
|
2216
|
-
|
|
2215
|
+
const x = (R) => {
|
|
2216
|
+
R.key === "Escape" && t();
|
|
2217
2217
|
};
|
|
2218
|
-
return window.addEventListener("keydown",
|
|
2218
|
+
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
2219
2219
|
}, [t]), /* @__PURE__ */ v(
|
|
2220
2220
|
"div",
|
|
2221
2221
|
{
|
|
@@ -2228,8 +2228,11 @@ const qr = [
|
|
|
2228
2228
|
userSelect: "none"
|
|
2229
2229
|
},
|
|
2230
2230
|
onMouseDown: f,
|
|
2231
|
-
onMouseMove:
|
|
2231
|
+
onMouseMove: w,
|
|
2232
2232
|
onMouseUp: m,
|
|
2233
|
+
onTouchStart: k,
|
|
2234
|
+
onTouchMove: T,
|
|
2235
|
+
onTouchEnd: z,
|
|
2233
2236
|
children: [
|
|
2234
2237
|
/* @__PURE__ */ b("div", { style: {
|
|
2235
2238
|
position: "absolute",
|
|
@@ -2247,16 +2250,16 @@ const qr = [
|
|
|
2247
2250
|
borderRadius: "20px",
|
|
2248
2251
|
pointerEvents: "none",
|
|
2249
2252
|
fontSize: "14px"
|
|
2250
|
-
}, children: "Kéo chuột để chọn vùng chụp ảnh (ESC để hủy)" }),
|
|
2253
|
+
}, children: "Kéo chuột hoặc chạm để chọn vùng chụp ảnh (ESC để hủy)" }),
|
|
2251
2254
|
i && /* @__PURE__ */ b(
|
|
2252
2255
|
"div",
|
|
2253
2256
|
{
|
|
2254
2257
|
style: {
|
|
2255
2258
|
position: "absolute",
|
|
2256
|
-
left: Math.min(o.x,
|
|
2257
|
-
top: Math.min(o.y,
|
|
2258
|
-
width: Math.abs(
|
|
2259
|
-
height: Math.abs(
|
|
2259
|
+
left: Math.min(o.x, r.x),
|
|
2260
|
+
top: Math.min(o.y, r.y),
|
|
2261
|
+
width: Math.abs(r.x - o.x),
|
|
2262
|
+
height: Math.abs(r.y - o.y),
|
|
2260
2263
|
border: "2px solid #fff",
|
|
2261
2264
|
backgroundColor: "rgba(255, 255, 255, 0.1)",
|
|
2262
2265
|
boxShadow: "0 0 0 9999px rgba(0, 0, 0, 0.5)"
|
|
@@ -2267,30 +2270,30 @@ const qr = [
|
|
|
2267
2270
|
]
|
|
2268
2271
|
}
|
|
2269
2272
|
);
|
|
2270
|
-
},
|
|
2273
|
+
}, jn = ({
|
|
2271
2274
|
questionId: e,
|
|
2272
2275
|
questionIdChild: t,
|
|
2273
2276
|
contextData: i,
|
|
2274
|
-
onSubmit:
|
|
2277
|
+
onSubmit: n,
|
|
2275
2278
|
themeColor: o = "#3b82f6",
|
|
2276
2279
|
triggerComponent: s,
|
|
2277
|
-
isOpen:
|
|
2280
|
+
isOpen: r,
|
|
2278
2281
|
onOpen: h,
|
|
2279
2282
|
onClose: f
|
|
2280
2283
|
}) => {
|
|
2281
|
-
const [
|
|
2284
|
+
const [w, m] = E(!1), [k, T] = E(""), [z, M] = E(e), [x, R] = E(t || ""), [V, J] = E([]), [ze, $e] = E(null), [oi, ut] = E(!1), [Z, ht] = E(!1), [ft, Ee] = E(!1), [W, re] = E(null), [A, oe] = E({}), [pt, Be] = E("incorrect_content"), [si, Ve] = E(!1), We = r !== void 0 ? r : w, ai = We && !si;
|
|
2282
2285
|
pi.useEffect(() => {
|
|
2283
|
-
|
|
2284
|
-
}, [
|
|
2286
|
+
We && (oe({}), M(e), R(t || ""));
|
|
2287
|
+
}, [We, e, t]);
|
|
2285
2288
|
const li = () => {
|
|
2286
|
-
|
|
2289
|
+
J([]), T(""), M(e), R(t || ""), Be("incorrect_content"), oe({}), r === void 0 && m(!0);
|
|
2287
2290
|
}, bt = async (p) => {
|
|
2288
|
-
if (
|
|
2291
|
+
if (V.length >= 3) {
|
|
2289
2292
|
alert("Bạn chỉ có thể chụp tối đa 3 ảnh.");
|
|
2290
2293
|
return;
|
|
2291
2294
|
}
|
|
2292
2295
|
if (Ve(!0), p === "crop") {
|
|
2293
|
-
setTimeout(() =>
|
|
2296
|
+
setTimeout(() => Ee(!0), 150);
|
|
2294
2297
|
return;
|
|
2295
2298
|
}
|
|
2296
2299
|
setTimeout(async () => {
|
|
@@ -2299,31 +2302,31 @@ const qr = [
|
|
|
2299
2302
|
}, gt = async (p) => {
|
|
2300
2303
|
ut(!0);
|
|
2301
2304
|
try {
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
} catch (
|
|
2305
|
-
console.error(
|
|
2305
|
+
const I = await In(p);
|
|
2306
|
+
I ? J((se) => [...se, I]) : alert("Không thể chụp ảnh màn hình. Vui lòng thử lại.");
|
|
2307
|
+
} catch (I) {
|
|
2308
|
+
console.error(I);
|
|
2306
2309
|
} finally {
|
|
2307
2310
|
ut(!1), Ve(!1);
|
|
2308
2311
|
}
|
|
2309
2312
|
}, ci = (p) => {
|
|
2310
|
-
|
|
2313
|
+
Ee(!1), gt(p);
|
|
2311
2314
|
}, di = () => {
|
|
2312
|
-
|
|
2315
|
+
Ee(!1), Ve(!1);
|
|
2313
2316
|
}, ui = (p) => {
|
|
2314
|
-
|
|
2315
|
-
},
|
|
2316
|
-
f && f(), m(!1),
|
|
2317
|
+
J((I) => I.filter((se, wt) => wt !== p));
|
|
2318
|
+
}, qe = () => {
|
|
2319
|
+
f && f(), m(!1), J([]), Ee(!1), $e(null), T(""), oe({}), Be("incorrect_content");
|
|
2317
2320
|
}, hi = async () => {
|
|
2318
2321
|
const p = {};
|
|
2319
|
-
if (
|
|
2320
|
-
|
|
2322
|
+
if (z ? isNaN(Number(z)) && (p.questionId = "ID câu hỏi phải là số") : p.questionId = "Vui lòng nhập ID câu hỏi", x && isNaN(Number(x)) && (p.questionIdChild = "ID câu hỏi con phải là số"), k.trim() || (p.description = "Vui lòng nhập mô tả lỗi"), Object.keys(p).length > 0) {
|
|
2323
|
+
oe(p);
|
|
2321
2324
|
return;
|
|
2322
2325
|
}
|
|
2323
2326
|
ht(!0);
|
|
2324
2327
|
try {
|
|
2325
|
-
const
|
|
2326
|
-
|
|
2328
|
+
const I = Ai(), se = await Promise.all(
|
|
2329
|
+
V.map(async (fi) => (await (await fetch("https://lcms.icanwork.vn/api/upload-to-s3/upload-image-error-to-s3", {
|
|
2327
2330
|
method: "POST",
|
|
2328
2331
|
headers: {
|
|
2329
2332
|
"Content-Type": "application/json"
|
|
@@ -2333,22 +2336,22 @@ const qr = [
|
|
|
2333
2336
|
})
|
|
2334
2337
|
})).json()).file_url)
|
|
2335
2338
|
);
|
|
2336
|
-
await
|
|
2337
|
-
idQuestion:
|
|
2338
|
-
idChildQuestion:
|
|
2339
|
+
await n({
|
|
2340
|
+
idQuestion: z,
|
|
2341
|
+
idChildQuestion: x,
|
|
2339
2342
|
errorType: pt,
|
|
2340
|
-
errorDescription:
|
|
2341
|
-
listImage:
|
|
2342
|
-
deviceInfo:
|
|
2343
|
+
errorDescription: k,
|
|
2344
|
+
listImage: se,
|
|
2345
|
+
deviceInfo: I,
|
|
2343
2346
|
contextData: i
|
|
2344
|
-
}),
|
|
2345
|
-
} catch (
|
|
2346
|
-
console.error("Submit feedback failed",
|
|
2347
|
+
}), qe();
|
|
2348
|
+
} catch (I) {
|
|
2349
|
+
console.error("Submit feedback failed", I);
|
|
2347
2350
|
} finally {
|
|
2348
2351
|
ht(!1);
|
|
2349
2352
|
}
|
|
2350
2353
|
};
|
|
2351
|
-
return /* @__PURE__ */ v(
|
|
2354
|
+
return /* @__PURE__ */ v(Wt, { children: [
|
|
2352
2355
|
/* @__PURE__ */ b("style", { id: "feedback-widget-styles", children: `
|
|
2353
2356
|
@keyframes fb-fade-in {
|
|
2354
2357
|
from { opacity: 0; transform: translateY(10px); }
|
|
@@ -2393,7 +2396,7 @@ const qr = [
|
|
|
2393
2396
|
}
|
|
2394
2397
|
}
|
|
2395
2398
|
` }),
|
|
2396
|
-
ft && /* @__PURE__ */ b(
|
|
2399
|
+
ft && /* @__PURE__ */ b(qn, { onConfirm: ci, onCancel: di }),
|
|
2397
2400
|
ze && /* @__PURE__ */ b(
|
|
2398
2401
|
"div",
|
|
2399
2402
|
{
|
|
@@ -2432,7 +2435,7 @@ const qr = [
|
|
|
2432
2435
|
}
|
|
2433
2436
|
),
|
|
2434
2437
|
/* @__PURE__ */ b("div", { onClick: () => {
|
|
2435
|
-
|
|
2438
|
+
r === void 0 ? li() : h && h();
|
|
2436
2439
|
}, style: { cursor: "pointer", display: "inline-block" }, children: s || /* @__PURE__ */ b(
|
|
2437
2440
|
"button",
|
|
2438
2441
|
{
|
|
@@ -2458,7 +2461,7 @@ const qr = [
|
|
|
2458
2461
|
title: "Báo lỗi",
|
|
2459
2462
|
onMouseEnter: (p) => p.currentTarget.style.transform = "scale(1.1)",
|
|
2460
2463
|
onMouseLeave: (p) => p.currentTarget.style.transform = "scale(1)",
|
|
2461
|
-
children: /* @__PURE__ */ b(
|
|
2464
|
+
children: /* @__PURE__ */ b(Un, { size: 24 })
|
|
2462
2465
|
}
|
|
2463
2466
|
) }),
|
|
2464
2467
|
oi && /* @__PURE__ */ b("div", { style: { position: "fixed", top: 20, right: 20, background: "rgba(0,0,0,0.8)", color: "white", padding: "8px 12px", borderRadius: "8px", zIndex: 1e4, fontWeight: 500, backdropFilter: "blur(4px)", fontSize: "0.8rem" }, children: "Đang chụp..." }),
|
|
@@ -2468,7 +2471,7 @@ const qr = [
|
|
|
2468
2471
|
/* @__PURE__ */ b(
|
|
2469
2472
|
"button",
|
|
2470
2473
|
{
|
|
2471
|
-
onClick:
|
|
2474
|
+
onClick: qe,
|
|
2472
2475
|
style: {
|
|
2473
2476
|
background: "transparent",
|
|
2474
2477
|
border: "none",
|
|
@@ -2502,7 +2505,7 @@ const qr = [
|
|
|
2502
2505
|
/* @__PURE__ */ b(Bt, { size: 12, style: {
|
|
2503
2506
|
position: "absolute",
|
|
2504
2507
|
left: "10px",
|
|
2505
|
-
color:
|
|
2508
|
+
color: W === "id" ? o : A.questionId ? "#ef4444" : "#9ca3af",
|
|
2506
2509
|
transition: "color 0.2s",
|
|
2507
2510
|
pointerEvents: "none"
|
|
2508
2511
|
} }),
|
|
@@ -2510,19 +2513,20 @@ const qr = [
|
|
|
2510
2513
|
"input",
|
|
2511
2514
|
{
|
|
2512
2515
|
type: "text",
|
|
2513
|
-
value:
|
|
2514
|
-
onFocus: () =>
|
|
2515
|
-
onBlur: () =>
|
|
2516
|
+
value: z,
|
|
2517
|
+
onFocus: () => re("id"),
|
|
2518
|
+
onBlur: () => re(null),
|
|
2516
2519
|
onChange: (p) => {
|
|
2517
|
-
|
|
2520
|
+
M(p.target.value), A.questionId && oe((I) => ({ ...I, questionId: void 0 }));
|
|
2518
2521
|
},
|
|
2522
|
+
disabled: !!e,
|
|
2519
2523
|
placeholder: "Nhập ID (ví dụ: 101)",
|
|
2520
2524
|
style: {
|
|
2521
2525
|
width: "100%",
|
|
2522
2526
|
padding: "6px 10px 6px 28px",
|
|
2523
2527
|
borderRadius: "6px",
|
|
2524
|
-
border: `1px solid ${
|
|
2525
|
-
boxShadow:
|
|
2528
|
+
border: `1px solid ${A.questionId ? "#ef4444" : W === "id" ? o : "#e5e7eb"}`,
|
|
2529
|
+
boxShadow: W === "id" ? `0 0 0 2px ${o}20` : "none",
|
|
2526
2530
|
outline: "none",
|
|
2527
2531
|
fontSize: "0.85rem",
|
|
2528
2532
|
color: "#1f2937",
|
|
@@ -2532,7 +2536,7 @@ const qr = [
|
|
|
2532
2536
|
}
|
|
2533
2537
|
)
|
|
2534
2538
|
] }),
|
|
2535
|
-
|
|
2539
|
+
A.questionId && /* @__PURE__ */ b("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: A.questionId })
|
|
2536
2540
|
] }),
|
|
2537
2541
|
/* @__PURE__ */ v("div", { children: [
|
|
2538
2542
|
/* @__PURE__ */ b("label", { style: { display: "block", marginBottom: "2px", fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: "ID Câu hỏi con" }),
|
|
@@ -2545,7 +2549,7 @@ const qr = [
|
|
|
2545
2549
|
/* @__PURE__ */ b(Bt, { size: 12, style: {
|
|
2546
2550
|
position: "absolute",
|
|
2547
2551
|
left: "10px",
|
|
2548
|
-
color:
|
|
2552
|
+
color: W === "idChild" ? o : A.questionIdChild ? "#ef4444" : "#9ca3af",
|
|
2549
2553
|
transition: "color 0.2s",
|
|
2550
2554
|
pointerEvents: "none"
|
|
2551
2555
|
} }),
|
|
@@ -2553,19 +2557,20 @@ const qr = [
|
|
|
2553
2557
|
"input",
|
|
2554
2558
|
{
|
|
2555
2559
|
type: "text",
|
|
2556
|
-
value:
|
|
2557
|
-
onFocus: () =>
|
|
2558
|
-
onBlur: () =>
|
|
2560
|
+
value: x,
|
|
2561
|
+
onFocus: () => re("idChild"),
|
|
2562
|
+
onBlur: () => re(null),
|
|
2559
2563
|
onChange: (p) => {
|
|
2560
|
-
|
|
2564
|
+
R(p.target.value);
|
|
2561
2565
|
},
|
|
2562
2566
|
placeholder: "Nhập ID (ví dụ: 101)",
|
|
2567
|
+
disabled: !!t,
|
|
2563
2568
|
style: {
|
|
2564
2569
|
width: "100%",
|
|
2565
2570
|
padding: "6px 10px 6px 28px",
|
|
2566
2571
|
borderRadius: "6px",
|
|
2567
|
-
border: `1px solid ${
|
|
2568
|
-
boxShadow:
|
|
2572
|
+
border: `1px solid ${A.questionIdChild ? "#ef4444" : W === "idChild" ? o : "#e5e7eb"}`,
|
|
2573
|
+
boxShadow: W === "idChild" ? `0 0 0 2px ${o}20` : "none",
|
|
2569
2574
|
outline: "none",
|
|
2570
2575
|
fontSize: "0.85rem",
|
|
2571
2576
|
color: "#1f2937",
|
|
@@ -2575,7 +2580,7 @@ const qr = [
|
|
|
2575
2580
|
}
|
|
2576
2581
|
)
|
|
2577
2582
|
] }),
|
|
2578
|
-
|
|
2583
|
+
A.questionIdChild && /* @__PURE__ */ b("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: A.questionIdChild })
|
|
2579
2584
|
] }),
|
|
2580
2585
|
/* @__PURE__ */ v("div", { children: [
|
|
2581
2586
|
/* @__PURE__ */ v("label", { style: { display: "block", marginBottom: "2px", fontSize: "0.8rem", fontWeight: 600, color: "#374151" }, children: [
|
|
@@ -2624,27 +2629,28 @@ const qr = [
|
|
|
2624
2629
|
left: "10px",
|
|
2625
2630
|
top: "8px",
|
|
2626
2631
|
pointerEvents: "none"
|
|
2627
|
-
}, children: /* @__PURE__ */ b(
|
|
2628
|
-
color:
|
|
2632
|
+
}, children: /* @__PURE__ */ b(Vn, { size: 12, style: {
|
|
2633
|
+
color: W === "desc" ? o : A.description ? "#ef4444" : "#9ca3af",
|
|
2629
2634
|
transition: "color 0.2s"
|
|
2630
2635
|
} }) }),
|
|
2631
2636
|
/* @__PURE__ */ b(
|
|
2632
2637
|
"textarea",
|
|
2633
2638
|
{
|
|
2634
|
-
value:
|
|
2635
|
-
onFocus: () =>
|
|
2636
|
-
onBlur: () =>
|
|
2639
|
+
value: k,
|
|
2640
|
+
onFocus: () => re("desc"),
|
|
2641
|
+
onBlur: () => re(null),
|
|
2637
2642
|
onChange: (p) => {
|
|
2638
|
-
|
|
2643
|
+
T(p.target.value), A.description && oe((I) => ({ ...I, description: void 0 }));
|
|
2639
2644
|
},
|
|
2645
|
+
maxLength: 1e3,
|
|
2640
2646
|
placeholder: "Mô tả chi tiết...",
|
|
2641
2647
|
style: {
|
|
2642
2648
|
width: "100%",
|
|
2643
2649
|
minHeight: "60px",
|
|
2644
2650
|
padding: "6px 10px 6px 28px",
|
|
2645
2651
|
borderRadius: "6px",
|
|
2646
|
-
border: `1px solid ${
|
|
2647
|
-
boxShadow:
|
|
2652
|
+
border: `1px solid ${A.description ? "#ef4444" : W === "desc" ? o : "#e5e7eb"}`,
|
|
2653
|
+
boxShadow: W === "desc" ? `0 0 0 2px ${o}20` : "none",
|
|
2648
2654
|
outline: "none",
|
|
2649
2655
|
fontSize: "0.85rem",
|
|
2650
2656
|
color: "#1f2937",
|
|
@@ -2658,16 +2664,16 @@ const qr = [
|
|
|
2658
2664
|
}
|
|
2659
2665
|
)
|
|
2660
2666
|
] }),
|
|
2661
|
-
|
|
2667
|
+
A.description && /* @__PURE__ */ b("span", { style: { display: "block", marginTop: "2px", fontSize: "0.7rem", color: "#ef4444" }, children: A.description })
|
|
2662
2668
|
] })
|
|
2663
2669
|
] }),
|
|
2664
2670
|
/* @__PURE__ */ v("div", { style: { marginBottom: "2px" }, children: [
|
|
2665
2671
|
/* @__PURE__ */ b("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center", marginBottom: "6px" }, children: /* @__PURE__ */ v("label", { style: { fontWeight: 600, fontSize: "0.8rem", color: "#374151" }, children: [
|
|
2666
2672
|
"Ảnh chụp (",
|
|
2667
|
-
|
|
2673
|
+
V.length,
|
|
2668
2674
|
"/3)"
|
|
2669
2675
|
] }) }),
|
|
2670
|
-
|
|
2676
|
+
V.length > 0 && /* @__PURE__ */ b("div", { style: { display: "grid", gridTemplateColumns: "repeat(3, 1fr)", gap: "6px", marginBottom: "8px" }, children: V.map((p, I) => /* @__PURE__ */ v("div", { style: {
|
|
2671
2677
|
position: "relative",
|
|
2672
2678
|
aspectRatio: "16/9",
|
|
2673
2679
|
border: "1px solid #e5e7eb",
|
|
@@ -2679,9 +2685,9 @@ const qr = [
|
|
|
2679
2685
|
"img",
|
|
2680
2686
|
{
|
|
2681
2687
|
src: p,
|
|
2682
|
-
alt: `Screenshot ${
|
|
2688
|
+
alt: `Screenshot ${I + 1}`,
|
|
2683
2689
|
draggable: !1,
|
|
2684
|
-
onContextMenu: (
|
|
2690
|
+
onContextMenu: (se) => se.preventDefault(),
|
|
2685
2691
|
style: {
|
|
2686
2692
|
width: "100%",
|
|
2687
2693
|
height: "100%",
|
|
@@ -2697,7 +2703,7 @@ const qr = [
|
|
|
2697
2703
|
/* @__PURE__ */ b(
|
|
2698
2704
|
"button",
|
|
2699
2705
|
{
|
|
2700
|
-
onClick: () => ui(
|
|
2706
|
+
onClick: () => ui(I),
|
|
2701
2707
|
title: "Xóa ảnh",
|
|
2702
2708
|
style: {
|
|
2703
2709
|
position: "absolute",
|
|
@@ -2719,8 +2725,8 @@ const qr = [
|
|
|
2719
2725
|
children: /* @__PURE__ */ b(Vt, { size: 10 })
|
|
2720
2726
|
}
|
|
2721
2727
|
)
|
|
2722
|
-
] },
|
|
2723
|
-
|
|
2728
|
+
] }, I)) }),
|
|
2729
|
+
V.length < 3 && /* @__PURE__ */ v("div", { style: { display: "flex", gap: "8px" }, children: [
|
|
2724
2730
|
/* @__PURE__ */ v(
|
|
2725
2731
|
"button",
|
|
2726
2732
|
{
|
|
@@ -2747,7 +2753,7 @@ const qr = [
|
|
|
2747
2753
|
p.currentTarget.style.borderColor = "#d1d5db", p.currentTarget.style.color = "#4b5563", p.currentTarget.style.backgroundColor = "white";
|
|
2748
2754
|
},
|
|
2749
2755
|
children: [
|
|
2750
|
-
/* @__PURE__ */ b($
|
|
2756
|
+
/* @__PURE__ */ b($n, { size: 18 }),
|
|
2751
2757
|
/* @__PURE__ */ b("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Toàn màn hình" })
|
|
2752
2758
|
]
|
|
2753
2759
|
}
|
|
@@ -2778,7 +2784,7 @@ const qr = [
|
|
|
2778
2784
|
p.currentTarget.style.borderColor = "#d1d5db", p.currentTarget.style.color = "#4b5563", p.currentTarget.style.backgroundColor = "white";
|
|
2779
2785
|
},
|
|
2780
2786
|
children: [
|
|
2781
|
-
/* @__PURE__ */ b(
|
|
2787
|
+
/* @__PURE__ */ b(Ln, { size: 18 }),
|
|
2782
2788
|
/* @__PURE__ */ b("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Chọn vùng" })
|
|
2783
2789
|
]
|
|
2784
2790
|
}
|
|
@@ -2789,8 +2795,8 @@ const qr = [
|
|
|
2789
2795
|
/* @__PURE__ */ b(
|
|
2790
2796
|
"button",
|
|
2791
2797
|
{
|
|
2792
|
-
onClick:
|
|
2793
|
-
disabled:
|
|
2798
|
+
onClick: qe,
|
|
2799
|
+
disabled: Z,
|
|
2794
2800
|
style: {
|
|
2795
2801
|
padding: "8px 16px",
|
|
2796
2802
|
borderRadius: "8px",
|
|
@@ -2811,24 +2817,24 @@ const qr = [
|
|
|
2811
2817
|
"button",
|
|
2812
2818
|
{
|
|
2813
2819
|
onClick: hi,
|
|
2814
|
-
disabled:
|
|
2820
|
+
disabled: Z,
|
|
2815
2821
|
style: {
|
|
2816
2822
|
padding: "8px 16px",
|
|
2817
2823
|
borderRadius: "8px",
|
|
2818
2824
|
border: "none",
|
|
2819
2825
|
background: o,
|
|
2820
2826
|
color: "white",
|
|
2821
|
-
cursor:
|
|
2827
|
+
cursor: Z ? "not-allowed" : "pointer",
|
|
2822
2828
|
fontWeight: 600,
|
|
2823
2829
|
fontSize: "0.85rem",
|
|
2824
|
-
opacity:
|
|
2830
|
+
opacity: Z ? 0.7 : 1,
|
|
2825
2831
|
boxShadow: "0 2px 4px -1px rgba(0, 0, 0, 0.1)",
|
|
2826
2832
|
transition: "transform 0.1s, opacity 0.2s"
|
|
2827
2833
|
},
|
|
2828
|
-
onMouseDown: (p) => !
|
|
2829
|
-
onMouseUp: (p) => !
|
|
2830
|
-
children:
|
|
2831
|
-
/* @__PURE__ */ b(
|
|
2834
|
+
onMouseDown: (p) => !Z && (p.currentTarget.style.transform = "scale(0.98)"),
|
|
2835
|
+
onMouseUp: (p) => !Z && (p.currentTarget.style.transform = "scale(1)"),
|
|
2836
|
+
children: Z ? /* @__PURE__ */ v("div", { style: { display: "flex", alignItems: "center", gap: "6px" }, children: [
|
|
2837
|
+
/* @__PURE__ */ b(Dn, { size: 16, style: { animation: "fb-spin 1s linear infinite" } }),
|
|
2832
2838
|
/* @__PURE__ */ b("span", { children: "Đang gửi..." })
|
|
2833
2839
|
] }) : "Gửi báo lỗi"
|
|
2834
2840
|
}
|
|
@@ -2836,40 +2842,40 @@ const qr = [
|
|
|
2836
2842
|
] })
|
|
2837
2843
|
] })
|
|
2838
2844
|
] });
|
|
2839
|
-
},
|
|
2840
|
-
const e = wi(
|
|
2845
|
+
}, ri = gi(void 0), Kn = () => {
|
|
2846
|
+
const e = wi(ri);
|
|
2841
2847
|
if (!e)
|
|
2842
2848
|
throw new Error("useFeedback must be used within a FeedbackProvider");
|
|
2843
2849
|
return e;
|
|
2844
|
-
},
|
|
2850
|
+
}, Jn = ({
|
|
2845
2851
|
children: e,
|
|
2846
2852
|
onSubmit: t,
|
|
2847
2853
|
themeColor: i
|
|
2848
2854
|
}) => {
|
|
2849
|
-
const [
|
|
2850
|
-
|
|
2851
|
-
},
|
|
2855
|
+
const [n, o] = E(!1), [s, r] = E(null), [h, f] = E(""), [w, m] = E(void 0), k = (z, M, x) => {
|
|
2856
|
+
r(z), f(M || ""), m(x), o(!0);
|
|
2857
|
+
}, T = () => {
|
|
2852
2858
|
o(!1);
|
|
2853
2859
|
};
|
|
2854
|
-
return /* @__PURE__ */ v(
|
|
2860
|
+
return /* @__PURE__ */ v(ri.Provider, { value: { openFeedback: k, closeFeedback: T, isOpen: n, activeQuestionId: s }, children: [
|
|
2855
2861
|
e,
|
|
2856
2862
|
s && /* @__PURE__ */ b(
|
|
2857
|
-
|
|
2863
|
+
jn,
|
|
2858
2864
|
{
|
|
2859
2865
|
questionId: s,
|
|
2860
2866
|
questionIdChild: h,
|
|
2861
|
-
contextData:
|
|
2867
|
+
contextData: w,
|
|
2862
2868
|
onSubmit: t,
|
|
2863
2869
|
themeColor: i,
|
|
2864
|
-
isOpen:
|
|
2865
|
-
onClose:
|
|
2866
|
-
triggerComponent: /* @__PURE__ */ b(
|
|
2870
|
+
isOpen: n,
|
|
2871
|
+
onClose: T,
|
|
2872
|
+
triggerComponent: /* @__PURE__ */ b(Wt, {})
|
|
2867
2873
|
}
|
|
2868
2874
|
)
|
|
2869
2875
|
] });
|
|
2870
2876
|
};
|
|
2871
2877
|
export {
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2878
|
+
Jn as FeedbackProvider,
|
|
2879
|
+
jn as FeedbackWidget,
|
|
2880
|
+
Kn as useFeedback
|
|
2875
2881
|
};
|