hocmai-feedback-widget 0.1.5 → 0.1.6
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.
|
@@ -5,9 +5,9 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
5
5
|
OBJECT: "object",
|
|
6
6
|
STRING: "string",
|
|
7
7
|
UNDEFINED: "undefined"
|
|
8
|
-
},
|
|
8
|
+
}, _ = "browser", j = "cpu", B = "device", z = "engine", D = "os", fe = "result", c = "name", a = "type", d = "vendor", u = "version", O = "architecture", Se = "major", l = "model", Ae = "console", g = "mobile", y = "tablet", C = "smarttv", $ = "wearable", Te = "xr", ke = "embedded", ae = "inapp", st = "brands", te = "formFactors", at = "fullVersionList", pe = "platform", lt = "platformVersion", He = "bitness", J = "sec-ch-ua", xi = J + "-full-version-list", vi = J + "-arch", ki = J + "-" + He, Si = J + "-form-factors", Ci = J + "-" + g, Ei = J + "-" + l, jt = J + "-" + pe, Ii = jt + "-version", Nt = [st, at, g, l, pe, lt, O, te, He], Re = "Amazon", le = "Apple", xt = "ASUS", vt = "BlackBerry", ee = "Google", kt = "Huawei", je = "Lenovo", St = "Honor", Oe = "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", X = "Chromecast", Fe = "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
9
|
var i = {}, n = t;
|
|
10
|
-
if (!
|
|
10
|
+
if (!_e(t)) {
|
|
11
11
|
n = {};
|
|
12
12
|
for (var o in t)
|
|
13
13
|
for (var s in t[o])
|
|
@@ -16,20 +16,20 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
16
16
|
for (var r in e)
|
|
17
17
|
i[r] = n[r] && n[r].length % 2 === 0 ? n[r].concat(e[r]) : e[r];
|
|
18
18
|
return i;
|
|
19
|
-
},
|
|
19
|
+
}, ze = 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
24
|
if (typeof e === S.OBJECT && e.length > 0) {
|
|
25
25
|
for (var i in e)
|
|
26
|
-
if (
|
|
26
|
+
if (Y(t) == Y(e[i])) return !0;
|
|
27
27
|
return !1;
|
|
28
28
|
}
|
|
29
|
-
return Ce(e) ?
|
|
30
|
-
},
|
|
29
|
+
return Ce(e) ? Y(t) == Y(e) : !1;
|
|
30
|
+
}, _e = function(e, t) {
|
|
31
31
|
for (var i in e)
|
|
32
|
-
return /^(browser|cpu|device|engine|os)$/.test(i) || (t ?
|
|
32
|
+
return /^(browser|cpu|device|engine|os)$/.test(i) || (t ? _e(e[i]) : !1);
|
|
33
33
|
}, Ce = function(e) {
|
|
34
34
|
return typeof e === S.STRING;
|
|
35
35
|
}, Je = function(e) {
|
|
@@ -42,7 +42,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
42
42
|
t[n] = Le(i[n]);
|
|
43
43
|
return t;
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, Y = function(e) {
|
|
46
46
|
return Ce(e) ? e.toLowerCase() : e;
|
|
47
47
|
}, nt = function(e) {
|
|
48
48
|
return Ce(e) ? be(/[^\d\.]/g, e).split(".")[0] : void 0;
|
|
@@ -121,7 +121,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
121
121
|
/webview.+edge\/([\w\.]+)/i
|
|
122
122
|
// Microsoft Edge
|
|
123
123
|
],
|
|
124
|
-
[u, [c,
|
|
124
|
+
[u, [c, Fe + " WebView"]],
|
|
125
125
|
[
|
|
126
126
|
/edg(?:e|ios|a)?\/([\w\.]+)/i
|
|
127
127
|
],
|
|
@@ -378,7 +378,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
378
378
|
/wv\).+chrome\/([\w\.]+).+edgw\//i
|
|
379
379
|
// Edge WebView2
|
|
380
380
|
],
|
|
381
|
-
[u, [c,
|
|
381
|
+
[u, [c, Fe + " WebView2"]],
|
|
382
382
|
[
|
|
383
383
|
/ wv\).+(chrome)\/([\w\.]+)/i
|
|
384
384
|
// Chrome WebView
|
|
@@ -510,7 +510,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
510
510
|
/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i
|
|
511
511
|
// Alpha
|
|
512
512
|
],
|
|
513
|
-
[[O, /ower/, he,
|
|
513
|
+
[[O, /ower/, he, Y]],
|
|
514
514
|
[
|
|
515
515
|
/mc680.0/i
|
|
516
516
|
],
|
|
@@ -652,13 +652,13 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
652
652
|
// LG
|
|
653
653
|
/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i
|
|
654
654
|
],
|
|
655
|
-
[l, [d,
|
|
655
|
+
[l, [d, Oe], [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,
|
|
661
|
+
[l, [d, Oe], [a, g]],
|
|
662
662
|
[
|
|
663
663
|
// Nokia
|
|
664
664
|
/(nokia) (t[12][01])/i
|
|
@@ -702,12 +702,12 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
702
702
|
/(kf[a-z]+)( bui|\)).+silk\//i
|
|
703
703
|
// Kindle Fire HD
|
|
704
704
|
],
|
|
705
|
-
[l, [d,
|
|
705
|
+
[l, [d, Re], [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, Re], [a, g]],
|
|
711
711
|
[
|
|
712
712
|
// BlackBerry
|
|
713
713
|
/(playbook);[-\w\),; ]+(rim)/i
|
|
@@ -757,7 +757,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
757
757
|
// itel
|
|
758
758
|
/(itel) ((\w+))/i
|
|
759
759
|
],
|
|
760
|
-
[[d,
|
|
760
|
+
[[d, Y], l, [a, H, { tablet: ["p10001l", "w7001"], "*": "mobile" }]],
|
|
761
761
|
[
|
|
762
762
|
// Acer
|
|
763
763
|
/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i
|
|
@@ -904,7 +904,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
904
904
|
[
|
|
905
905
|
/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i
|
|
906
906
|
],
|
|
907
|
-
[[d,
|
|
907
|
+
[[d, Oe], [a, C]],
|
|
908
908
|
[
|
|
909
909
|
/(apple) ?tv/i
|
|
910
910
|
// Apple TV
|
|
@@ -914,7 +914,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
914
914
|
/crkey.*devicetype\/chromecast/i
|
|
915
915
|
// Google Chromecast Third Generation
|
|
916
916
|
],
|
|
917
|
-
[[l,
|
|
917
|
+
[[l, X + " Third Generation"], [d, ee], [a, C]],
|
|
918
918
|
[
|
|
919
919
|
/crkey.*devicetype\/([^/]*)/i
|
|
920
920
|
// Google Chromecast with specific device type
|
|
@@ -924,12 +924,12 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
924
924
|
/fuchsia.*crkey/i
|
|
925
925
|
// Google Chromecast Nest Hub
|
|
926
926
|
],
|
|
927
|
-
[[l,
|
|
927
|
+
[[l, X + " 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, X], [d, ee], [a, C]],
|
|
933
933
|
[
|
|
934
934
|
/(portaltv)/i
|
|
935
935
|
// Facebook Portal TV
|
|
@@ -939,7 +939,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
939
939
|
/droid.+aft(\w+)( bui|\))/i
|
|
940
940
|
// Fire TV
|
|
941
941
|
],
|
|
942
|
-
[l, [d,
|
|
942
|
+
[l, [d, Re], [a, C]],
|
|
943
943
|
[
|
|
944
944
|
/(shield \w+ tv)/i
|
|
945
945
|
// Nvidia Shield TV
|
|
@@ -980,12 +980,12 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
980
980
|
/(playstation \w+)/i
|
|
981
981
|
// Playstation
|
|
982
982
|
],
|
|
983
|
-
[l, [d, we], [a,
|
|
983
|
+
[l, [d, we], [a, Ae]],
|
|
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, Ae]],
|
|
989
989
|
[
|
|
990
990
|
/(ouya)/i,
|
|
991
991
|
// Ouya
|
|
@@ -997,7 +997,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
997
997
|
/droid.+; ((shield|rgcube|gr0006))( bui|\))/i
|
|
998
998
|
// Nvidia Portable/Anbernic/Logitech
|
|
999
999
|
],
|
|
1000
|
-
[[d, H, { Nvidia: "Shield", Anbernic: "RGCUBE", Logitech: "GR0006" }], l, [a,
|
|
1000
|
+
[[d, H, { Nvidia: "Shield", Anbernic: "RGCUBE", Logitech: "GR0006" }], l, [a, Ae]],
|
|
1001
1001
|
[
|
|
1002
1002
|
///////////////////
|
|
1003
1003
|
// WEARABLES
|
|
@@ -1042,7 +1042,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1042
1042
|
/(g watch r)/i
|
|
1043
1043
|
// LG G Watch R
|
|
1044
1044
|
],
|
|
1045
|
-
[l, [d,
|
|
1045
|
+
[l, [d, Oe], [a, $]],
|
|
1046
1046
|
[
|
|
1047
1047
|
/droid.+; (wt63?0{2,3})\)/i
|
|
1048
1048
|
],
|
|
@@ -1054,22 +1054,22 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1054
1054
|
/droid.+; (glass) \d/i
|
|
1055
1055
|
// Google Glass
|
|
1056
1056
|
],
|
|
1057
|
-
[l, [d, ee], [a,
|
|
1057
|
+
[l, [d, ee], [a, Te]],
|
|
1058
1058
|
[
|
|
1059
1059
|
/(pico) ([\w ]+) os\d/i
|
|
1060
1060
|
// Pico
|
|
1061
1061
|
],
|
|
1062
|
-
[d, l, [a,
|
|
1062
|
+
[d, l, [a, Te]],
|
|
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, Te]],
|
|
1068
1068
|
[
|
|
1069
1069
|
/mobile vr; rv.+firefox/i
|
|
1070
1070
|
// Unidentifiable VR device using Firefox Reality / Wolvic
|
|
1071
1071
|
],
|
|
1072
|
-
[[a,
|
|
1072
|
+
[[a, Te]],
|
|
1073
1073
|
[
|
|
1074
1074
|
///////////////////
|
|
1075
1075
|
// EMBEDDED
|
|
@@ -1082,7 +1082,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1082
1082
|
/(aeobc)\b/i
|
|
1083
1083
|
// Echo Dot
|
|
1084
1084
|
],
|
|
1085
|
-
[l, [d,
|
|
1085
|
+
[l, [d, Re], [a, ke]],
|
|
1086
1086
|
[
|
|
1087
1087
|
/(homepod).+mac os/i
|
|
1088
1088
|
// Apple HomePod
|
|
@@ -1130,7 +1130,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1130
1130
|
/windows.+ edge\/([\w\.]+)/i
|
|
1131
1131
|
// EdgeHTML
|
|
1132
1132
|
],
|
|
1133
|
-
[u, [c,
|
|
1133
|
+
[u, [c, Fe + "HTML"]],
|
|
1134
1134
|
[
|
|
1135
1135
|
/(arkweb)\/([\w\.]+)/i
|
|
1136
1136
|
// ArkWeb
|
|
@@ -1210,27 +1210,27 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1210
1210
|
/android ([\d\.]+).*crkey/i
|
|
1211
1211
|
// Google Chromecast, Android-based
|
|
1212
1212
|
],
|
|
1213
|
-
[u, [c,
|
|
1213
|
+
[u, [c, X + " Android"]],
|
|
1214
1214
|
[
|
|
1215
1215
|
/fuchsia.*crkey\/([\d\.]+)/i
|
|
1216
1216
|
// Google Chromecast, Fuchsia-based
|
|
1217
1217
|
],
|
|
1218
|
-
[u, [c,
|
|
1218
|
+
[u, [c, X + " 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, X + " SmartSpeaker"]],
|
|
1224
1224
|
[
|
|
1225
1225
|
/linux.*crkey\/([\d\.]+)/i
|
|
1226
1226
|
// Google Chromecast, Legacy Linux-based
|
|
1227
1227
|
],
|
|
1228
|
-
[u, [c,
|
|
1228
|
+
[u, [c, X + " Linux"]],
|
|
1229
1229
|
[
|
|
1230
1230
|
/crkey\/([\d\.]+)/i
|
|
1231
1231
|
// Google Chromecast, unknown
|
|
1232
1232
|
],
|
|
1233
|
-
[u, [c,
|
|
1233
|
+
[u, [c, X]],
|
|
1234
1234
|
[
|
|
1235
1235
|
// Mobile OSes
|
|
1236
1236
|
/droid ([\w\.]+)\b.+(android[- ]x86)/i
|
|
@@ -1337,30 +1337,30 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1337
1337
|
],
|
|
1338
1338
|
[c, u]
|
|
1339
1339
|
]
|
|
1340
|
-
},
|
|
1340
|
+
}, Me = (function() {
|
|
1341
1341
|
var e = { init: {}, isIgnore: {}, isIgnoreRgx: {}, toString: {} };
|
|
1342
1342
|
return q.call(e.init, [
|
|
1343
|
-
[
|
|
1343
|
+
[_, [c, u, Se, a]],
|
|
1344
1344
|
[j, [O]],
|
|
1345
1345
|
[B, [a, l, d]],
|
|
1346
1346
|
[z, [c, u]],
|
|
1347
1347
|
[D, [c, u]]
|
|
1348
1348
|
]), q.call(e.isIgnore, [
|
|
1349
|
-
[
|
|
1349
|
+
[_, [u, Se]],
|
|
1350
1350
|
[z, [u]],
|
|
1351
1351
|
[D, [u]]
|
|
1352
1352
|
]), q.call(e.isIgnoreRgx, [
|
|
1353
|
-
[
|
|
1353
|
+
[_, / ?browser$/i],
|
|
1354
1354
|
[D, / ?os$/i]
|
|
1355
1355
|
]), q.call(e.toString, [
|
|
1356
|
-
[
|
|
1356
|
+
[_, [c, u]],
|
|
1357
1357
|
[j, [O]],
|
|
1358
1358
|
[B, [d, l]],
|
|
1359
1359
|
[z, [c, u]],
|
|
1360
1360
|
[D, [c, u]]
|
|
1361
1361
|
]), e;
|
|
1362
1362
|
})(), Mi = function(e, t) {
|
|
1363
|
-
var i =
|
|
1363
|
+
var i = Me.init[t], n = Me.isIgnore[t] || 0, o = Me.isIgnoreRgx[t] || 0, s = Me.toString[t] || 0;
|
|
1364
1364
|
function r() {
|
|
1365
1365
|
q.call(this, i);
|
|
1366
1366
|
}
|
|
@@ -1375,7 +1375,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1375
1375
|
}, t != fe && (r.prototype.is = function(h) {
|
|
1376
1376
|
var f = !1;
|
|
1377
1377
|
for (var w in this)
|
|
1378
|
-
if (this.hasOwnProperty(w) && !it(n, w) &&
|
|
1378
|
+
if (this.hasOwnProperty(w) && !it(n, w) && Y(o ? be(o, this[w]) : this[w]) == Y(o ? be(o, h) : h)) {
|
|
1379
1379
|
if (f = !0, h != S.UNDEFINED) break;
|
|
1380
1380
|
} else if (h == S.UNDEFINED && f) {
|
|
1381
1381
|
f = !f;
|
|
@@ -1405,7 +1405,7 @@ var mi = "2.0.7", yi = 500, mt = "user-agent", he = "", yt = "?", S = {
|
|
|
1405
1405
|
function Gt(e, t) {
|
|
1406
1406
|
if (e = e || {}, q.call(this, Nt), t)
|
|
1407
1407
|
q.call(this, [
|
|
1408
|
-
[st, Je(e[
|
|
1408
|
+
[st, Je(e[J])],
|
|
1409
1409
|
[at, Je(e[xi])],
|
|
1410
1410
|
[g, /\?1/.test(e[Ci])],
|
|
1411
1411
|
[l, ve(e[Ei])],
|
|
@@ -1413,13 +1413,13 @@ function Gt(e, t) {
|
|
|
1413
1413
|
[lt, ve(e[Ii])],
|
|
1414
1414
|
[O, ve(e[vi])],
|
|
1415
1415
|
[te, Je(e[Si])],
|
|
1416
|
-
[
|
|
1416
|
+
[He, ve(e[ki])]
|
|
1417
1417
|
]);
|
|
1418
1418
|
else
|
|
1419
1419
|
for (var i in e)
|
|
1420
1420
|
this.hasOwnProperty(i) && typeof e[i] !== S.UNDEFINED && (this[i] = e[i]);
|
|
1421
1421
|
}
|
|
1422
|
-
function
|
|
1422
|
+
function K(e, t, i, n) {
|
|
1423
1423
|
return q.call(this, [
|
|
1424
1424
|
["itemType", e],
|
|
1425
1425
|
["ua", t],
|
|
@@ -1428,19 +1428,19 @@ function Q(e, t, i, n) {
|
|
|
1428
1428
|
["data", Mi(this, e)]
|
|
1429
1429
|
]), this;
|
|
1430
1430
|
}
|
|
1431
|
-
|
|
1431
|
+
K.prototype.get = function(e) {
|
|
1432
1432
|
return e ? this.data.hasOwnProperty(e) ? this.data[e] : void 0 : this.data;
|
|
1433
1433
|
};
|
|
1434
|
-
|
|
1434
|
+
K.prototype.set = function(e, t) {
|
|
1435
1435
|
return this.data[e] = t, this;
|
|
1436
1436
|
};
|
|
1437
|
-
|
|
1437
|
+
K.prototype.setCH = function(e) {
|
|
1438
1438
|
return this.uaCH = e, this;
|
|
1439
1439
|
};
|
|
1440
|
-
|
|
1440
|
+
K.prototype.detectFeature = function() {
|
|
1441
1441
|
if (F && F.userAgent == this.ua)
|
|
1442
1442
|
switch (this.itemType) {
|
|
1443
|
-
case
|
|
1443
|
+
case _:
|
|
1444
1444
|
F.brave && typeof F.brave.isBrave == S.FUNCTION && this.set(c, "Brave");
|
|
1445
1445
|
break;
|
|
1446
1446
|
case B:
|
|
@@ -1453,13 +1453,13 @@ Q.prototype.detectFeature = function() {
|
|
|
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(_, t(_)).set(j, t(j)).set(B, t(B)).set(z, t(z)).set(D, t(D));
|
|
1457
1457
|
}
|
|
1458
1458
|
return this;
|
|
1459
1459
|
};
|
|
1460
|
-
|
|
1460
|
+
K.prototype.parseUA = function() {
|
|
1461
1461
|
switch (this.itemType != fe && rt.call(this.data, this.ua, this.rgxMap), this.itemType) {
|
|
1462
|
-
case
|
|
1462
|
+
case _:
|
|
1463
1463
|
this.set(Se, nt(this.get(u)));
|
|
1464
1464
|
break;
|
|
1465
1465
|
case D:
|
|
@@ -1471,21 +1471,21 @@ Q.prototype.parseUA = function() {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
return this;
|
|
1473
1473
|
};
|
|
1474
|
-
|
|
1474
|
+
K.prototype.parseCH = function() {
|
|
1475
1475
|
var e = this.uaCH, t = this.rgxMap;
|
|
1476
1476
|
switch (this.itemType) {
|
|
1477
|
-
case
|
|
1477
|
+
case _:
|
|
1478
1478
|
case z:
|
|
1479
1479
|
var i = e[at] || e[st], n;
|
|
1480
1480
|
if (i)
|
|
1481
1481
|
for (var o = 0; o < i.length; o++) {
|
|
1482
1482
|
var s = i[o].brand || i[o], r = i[o].version;
|
|
1483
|
-
this.itemType ==
|
|
1483
|
+
this.itemType == _ && !/not.a.brand/i.test(s) && (!n || /Chrom/.test(n) && s != Rt || n == Fe && /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 == z && s == Rt && this.set(u, r);
|
|
1484
1484
|
}
|
|
1485
1485
|
break;
|
|
1486
1486
|
case j:
|
|
1487
1487
|
var h = e[O];
|
|
1488
|
-
h && (h && e[
|
|
1488
|
+
h && (h && e[He] == "64" && (h += "64"), rt.call(this.data, h + ";", t));
|
|
1489
1489
|
break;
|
|
1490
1490
|
case B:
|
|
1491
1491
|
if (e[g] && this.set(a, g), e[l] && (this.set(l, e[l]), !this.get(a) || !this.get(d))) {
|
|
@@ -1514,12 +1514,12 @@ Q.prototype.parseCH = function() {
|
|
|
1514
1514
|
var U = this.data, M = function(x) {
|
|
1515
1515
|
return U[x].getItem().setCH(e).parseCH().get();
|
|
1516
1516
|
};
|
|
1517
|
-
this.set(
|
|
1517
|
+
this.set(_, M(_)).set(j, M(j)).set(B, M(B)).set(z, M(z)).set(D, M(D));
|
|
1518
1518
|
}
|
|
1519
1519
|
return this;
|
|
1520
1520
|
};
|
|
1521
1521
|
function N(e, t, i) {
|
|
1522
|
-
if (typeof e === S.OBJECT ? (
|
|
1522
|
+
if (typeof e === S.OBJECT ? (_e(e, !0) ? (typeof t === S.OBJECT && (i = t), t = e) : (i = e, t = void 0), e = void 0) : typeof e === S.STRING && !_e(t, !0) && (i = t, t = void 0), i)
|
|
1523
1523
|
if (typeof i.append === S.FUNCTION) {
|
|
1524
1524
|
var n = {};
|
|
1525
1525
|
i.forEach(function(m, k) {
|
|
@@ -1544,13 +1544,13 @@ function N(e, t, i) {
|
|
|
1544
1544
|
)
|
|
1545
1545
|
), h = new Gt(i, !0), f = t ? Ri(Ft, t) : Ft, w = function(m) {
|
|
1546
1546
|
return m == fe ? function() {
|
|
1547
|
-
return new
|
|
1547
|
+
return new K(m, r, f, h).set("ua", r).set(_, this.getBrowser()).set(j, this.getCPU()).set(B, this.getDevice()).set(z, this.getEngine()).set(D, this.getOS()).get();
|
|
1548
1548
|
} : function() {
|
|
1549
|
-
return new
|
|
1549
|
+
return new K(m, r, f[m], h).parseUA().get();
|
|
1550
1550
|
};
|
|
1551
1551
|
};
|
|
1552
1552
|
return q.call(this, [
|
|
1553
|
-
["getBrowser", w(
|
|
1553
|
+
["getBrowser", w(_)],
|
|
1554
1554
|
["getCPU", w(j)],
|
|
1555
1555
|
["getDevice", w(B)],
|
|
1556
1556
|
["getEngine", w(z)],
|
|
@@ -1565,10 +1565,10 @@ function N(e, t, i) {
|
|
|
1565
1565
|
]).setUA(r), this;
|
|
1566
1566
|
}
|
|
1567
1567
|
N.VERSION = mi;
|
|
1568
|
-
N.BROWSER =
|
|
1569
|
-
N.CPU =
|
|
1570
|
-
N.DEVICE =
|
|
1571
|
-
N.ENGINE = N.OS =
|
|
1568
|
+
N.BROWSER = ze([c, u, Se, a]);
|
|
1569
|
+
N.CPU = ze([O]);
|
|
1570
|
+
N.DEVICE = ze([l, d, a, Ae, g, C, y, $, ke]);
|
|
1571
|
+
N.ENGINE = N.OS = ze([c, u]);
|
|
1572
1572
|
const Ai = () => {
|
|
1573
1573
|
const t = new N().getResult();
|
|
1574
1574
|
return {
|
|
@@ -1590,7 +1590,7 @@ function Fi(e, t) {
|
|
|
1590
1590
|
const i = document.implementation.createHTMLDocument(), n = i.createElement("base"), o = i.createElement("a");
|
|
1591
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 _i = /* @__PURE__ */ (() => {
|
|
1594
1594
|
let e = 0;
|
|
1595
1595
|
const t = () => (
|
|
1596
1596
|
// eslint-disable-next-line no-bitwise
|
|
@@ -1598,7 +1598,7 @@ const Li = /* @__PURE__ */ (() => {
|
|
|
1598
1598
|
);
|
|
1599
1599
|
return () => (e += 1, `u${t()}${e}`);
|
|
1600
1600
|
})();
|
|
1601
|
-
function
|
|
1601
|
+
function Q(e) {
|
|
1602
1602
|
const t = [];
|
|
1603
1603
|
for (let i = 0, n = e.length; i < n; i++)
|
|
1604
1604
|
t.push(e[i]);
|
|
@@ -1606,22 +1606,22 @@ function Y(e) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
let de = null;
|
|
1608
1608
|
function Xt(e = {}) {
|
|
1609
|
-
return de || (e.includeStyleProperties ? (de = e.includeStyleProperties, de) : (de =
|
|
1609
|
+
return de || (e.includeStyleProperties ? (de = e.includeStyleProperties, de) : (de = Q(window.getComputedStyle(document.documentElement)), de));
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function Pe(e, t) {
|
|
1612
1612
|
const n = (e.ownerDocument.defaultView || window).getComputedStyle(e).getPropertyValue(t);
|
|
1613
1613
|
return n ? parseFloat(n.replace("px", "")) : 0;
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1616
|
-
const t =
|
|
1615
|
+
function Li(e) {
|
|
1616
|
+
const t = Pe(e, "border-left-width"), i = Pe(e, "border-right-width");
|
|
1617
1617
|
return e.clientWidth + t + i;
|
|
1618
1618
|
}
|
|
1619
1619
|
function Pi(e) {
|
|
1620
|
-
const t =
|
|
1620
|
+
const t = Pe(e, "border-top-width"), i = Pe(e, "border-bottom-width");
|
|
1621
1621
|
return e.clientHeight + t + i;
|
|
1622
1622
|
}
|
|
1623
1623
|
function Yt(e, t = {}) {
|
|
1624
|
-
const i = t.width ||
|
|
1624
|
+
const i = t.width || Li(e), n = t.height || Pi(e);
|
|
1625
1625
|
return { width: i, height: n };
|
|
1626
1626
|
}
|
|
1627
1627
|
function Di() {
|
|
@@ -1637,7 +1637,7 @@ const P = 16384;
|
|
|
1637
1637
|
function Hi(e) {
|
|
1638
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
|
-
function
|
|
1640
|
+
function De(e) {
|
|
1641
1641
|
return new Promise((t, i) => {
|
|
1642
1642
|
const n = new Image();
|
|
1643
1643
|
n.onload = () => {
|
|
@@ -1654,11 +1654,11 @@ async function Ui(e, t, i) {
|
|
|
1654
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), zi(o);
|
|
1656
1656
|
}
|
|
1657
|
-
const
|
|
1657
|
+
const L = (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 || L(i, t);
|
|
1662
1662
|
};
|
|
1663
1663
|
function $i(e) {
|
|
1664
1664
|
const t = e.getPropertyValue("content");
|
|
@@ -1674,11 +1674,11 @@ function Vi(e, t, i, n) {
|
|
|
1674
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 _t(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 r =
|
|
1681
|
+
const r = _i();
|
|
1682
1682
|
try {
|
|
1683
1683
|
t.className = `${t.className} ${r}`;
|
|
1684
1684
|
} catch {
|
|
@@ -1688,11 +1688,11 @@ function Lt(e, t, i, n) {
|
|
|
1688
1688
|
h.appendChild(Vi(r, i, o, n)), t.appendChild(h);
|
|
1689
1689
|
}
|
|
1690
1690
|
function Wi(e, t, i) {
|
|
1691
|
-
|
|
1691
|
+
_t(e, t, ":before", i), _t(e, t, ":after", i);
|
|
1692
1692
|
}
|
|
1693
|
-
const
|
|
1694
|
-
woff:
|
|
1695
|
-
woff2:
|
|
1693
|
+
const Lt = "application/font-woff", Pt = "image/jpeg", qi = {
|
|
1694
|
+
woff: Lt,
|
|
1695
|
+
woff2: Lt,
|
|
1696
1696
|
ttf: "application/font-truetype",
|
|
1697
1697
|
eot: "application/vnd.ms-fontobject",
|
|
1698
1698
|
png: "image/png",
|
|
@@ -1759,29 +1759,29 @@ async function dt(e, t, i) {
|
|
|
1759
1759
|
}
|
|
1760
1760
|
async function Yi(e) {
|
|
1761
1761
|
const t = e.toDataURL();
|
|
1762
|
-
return t === "data:," ? e.cloneNode(!1) :
|
|
1762
|
+
return t === "data:," ? e.cloneNode(!1) : De(t);
|
|
1763
1763
|
}
|
|
1764
1764
|
async function Qi(e, t) {
|
|
1765
1765
|
if (e.currentSrc) {
|
|
1766
1766
|
const s = document.createElement("canvas"), r = s.getContext("2d");
|
|
1767
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
|
-
return
|
|
1769
|
+
return De(h);
|
|
1770
1770
|
}
|
|
1771
1771
|
const i = e.poster, n = ct(i), o = await dt(i, n, t);
|
|
1772
|
-
return
|
|
1772
|
+
return De(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 L(e, HTMLCanvasElement) ? Yi(e) : L(e, HTMLVideoElement) ? Qi(e, t) : L(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
1787
|
async function en(e, t, i) {
|
|
@@ -1789,7 +1789,7 @@ async function en(e, t, i) {
|
|
|
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 = Q(e.assignedNodes()) : L(e, HTMLIFrameElement) && (!((n = e.contentDocument) === null || n === void 0) && n.body) ? s = Q(e.contentDocument.body.childNodes) : s = Q(((o = e.shadowRoot) !== null && o !== void 0 ? o : e).childNodes), s.length === 0 || L(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
|
}
|
|
@@ -1800,20 +1800,20 @@ function tn(e, t, i) {
|
|
|
1800
1800
|
const o = window.getComputedStyle(e);
|
|
1801
1801
|
o.cssText ? (n.cssText = o.cssText, n.transformOrigin = o.transformOrigin) : Xt(i).forEach((s) => {
|
|
1802
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`),
|
|
1803
|
+
s === "font-size" && r.endsWith("px") && (r = `${Math.floor(parseFloat(r.substring(0, r.length - 2))) - 0.1}px`), L(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
1806
|
function nn(e, t) {
|
|
1807
|
-
|
|
1807
|
+
L(e, HTMLTextAreaElement) && (t.innerHTML = e.value), L(e, HTMLInputElement) && t.setAttribute("value", e.value);
|
|
1808
1808
|
}
|
|
1809
1809
|
function rn(e, t) {
|
|
1810
|
-
if (
|
|
1810
|
+
if (L(e, HTMLSelectElement)) {
|
|
1811
1811
|
const n = Array.from(t.children).find((o) => e.value === o.getAttribute("value"));
|
|
1812
1812
|
n && n.setAttribute("selected", "");
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
1815
|
function on(e, t, i) {
|
|
1816
|
-
return
|
|
1816
|
+
return L(t, Element) && (tn(e, t, i), Wi(e, t, i), nn(e, t), rn(e, t)), t;
|
|
1817
1817
|
}
|
|
1818
1818
|
async function sn(e, t) {
|
|
1819
1819
|
const i = e.querySelectorAll ? e.querySelectorAll("use") : [];
|
|
@@ -1824,7 +1824,7 @@ async function sn(e, t) {
|
|
|
1824
1824
|
const h = i[s].getAttribute("xlink:href");
|
|
1825
1825
|
if (h) {
|
|
1826
1826
|
const f = e.querySelector(h), w = document.querySelector(h);
|
|
1827
|
-
!f && w && !n[h] && (n[h] = await
|
|
1827
|
+
!f && w && !n[h] && (n[h] = await Ue(w, t, !0));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
1830
|
const o = Object.values(n);
|
|
@@ -1839,7 +1839,7 @@ async function sn(e, t) {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
return e;
|
|
1841
1841
|
}
|
|
1842
|
-
async function
|
|
1842
|
+
async function Ue(e, t, i) {
|
|
1843
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
1845
|
const Jt = /url\((['"]?)([^'"]+?)\1\)/g, an = /url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g, ln = /src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;
|
|
@@ -1893,8 +1893,8 @@ async function fn(e, t) {
|
|
|
1893
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
1895
|
async function pn(e, t) {
|
|
1896
|
-
const i =
|
|
1897
|
-
if (!(i && !ot(e.src)) && !(
|
|
1896
|
+
const i = L(e, HTMLImageElement);
|
|
1897
|
+
if (!(i && !ot(e.src)) && !(L(e, SVGImageElement) && !ot(e.href.baseVal)))
|
|
1898
1898
|
return;
|
|
1899
1899
|
const n = i ? e.src : e.href.baseVal, o = await dt(n, ct(n), t);
|
|
1900
1900
|
await new Promise((s, r) => {
|
|
@@ -1910,11 +1910,11 @@ async function pn(e, t) {
|
|
|
1910
1910
|
});
|
|
1911
1911
|
}
|
|
1912
1912
|
async function bn(e, t) {
|
|
1913
|
-
const n =
|
|
1913
|
+
const n = Q(e.childNodes).map((o) => ti(o, t));
|
|
1914
1914
|
await Promise.all(n).then(() => e);
|
|
1915
1915
|
}
|
|
1916
1916
|
async function ti(e, t) {
|
|
1917
|
-
|
|
1917
|
+
L(e, Element) && (await fn(e, t), await pn(e, t), await bn(e, t));
|
|
1918
1918
|
}
|
|
1919
1919
|
function gn(e, t) {
|
|
1920
1920
|
const { style: i } = e;
|
|
@@ -1971,7 +1971,7 @@ async function wn(e, t) {
|
|
|
1971
1971
|
return e.forEach((o) => {
|
|
1972
1972
|
if ("cssRules" in o)
|
|
1973
1973
|
try {
|
|
1974
|
-
|
|
1974
|
+
Q(o.cssRules || []).forEach((s, r) => {
|
|
1975
1975
|
if (s.type === CSSRule.IMPORT_RULE) {
|
|
1976
1976
|
let h = r + 1;
|
|
1977
1977
|
const f = s.href, w = Ht(f).then((m) => zt(m, t)).then((m) => Ut(m).forEach((k) => {
|
|
@@ -2000,7 +2000,7 @@ async function wn(e, t) {
|
|
|
2000
2000
|
}), Promise.all(n).then(() => (e.forEach((o) => {
|
|
2001
2001
|
if ("cssRules" in o)
|
|
2002
2002
|
try {
|
|
2003
|
-
|
|
2003
|
+
Q(o.cssRules || []).forEach((s) => {
|
|
2004
2004
|
i.push(s);
|
|
2005
2005
|
});
|
|
2006
2006
|
} catch (s) {
|
|
@@ -2014,7 +2014,7 @@ function mn(e) {
|
|
|
2014
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 =
|
|
2017
|
+
const i = Q(e.ownerDocument.styleSheets), n = await wn(i, t);
|
|
2018
2018
|
return mn(n);
|
|
2019
2019
|
}
|
|
2020
2020
|
function ii(e) {
|
|
@@ -2047,11 +2047,11 @@ async function kn(e, t) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
}
|
|
2049
2049
|
async function Sn(e, t = {}) {
|
|
2050
|
-
const { width: i, height: n } = Yt(e, t), o = await
|
|
2050
|
+
const { width: i, height: n } = Yt(e, t), o = await Ue(e, t, !0);
|
|
2051
2051
|
return await kn(o, t), await ti(o, t), gn(o, t), await Ui(o, i, n);
|
|
2052
2052
|
}
|
|
2053
2053
|
async function Cn(e, t = {}) {
|
|
2054
|
-
const { width: i, height: n } = Yt(e, t), o = await Sn(e, t), s = await
|
|
2054
|
+
const { width: i, height: n } = Yt(e, t), o = await Sn(e, t), s = await De(o), r = document.createElement("canvas"), h = r.getContext("2d"), f = t.pixelRatio || Di(), w = t.canvasWidth || i, m = t.canvasHeight || n;
|
|
2055
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
2057
|
async function En(e, t = {}) {
|
|
@@ -2147,13 +2147,13 @@ const ne = (e, t) => {
|
|
|
2147
2147
|
const Fn = [
|
|
2148
2148
|
["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
|
|
2149
2149
|
["path", { d: "M18 22V8a2 2 0 0 0-2-2H2", key: "7s9ehn" }]
|
|
2150
|
-
],
|
|
2151
|
-
const
|
|
2150
|
+
], _n = ne("crop", Fn);
|
|
2151
|
+
const Ln = [
|
|
2152
2152
|
["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
|
|
2153
2153
|
["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
|
|
2154
2154
|
["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
|
|
2155
2155
|
["line", { x1: "16", x2: "14", y1: "3", y2: "21", key: "weycgp" }]
|
|
2156
|
-
], Bt = ne("hash",
|
|
2156
|
+
], Bt = ne("hash", Ln);
|
|
2157
2157
|
const Pn = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Dn = ne("loader-circle", Pn);
|
|
2158
2158
|
const Hn = [
|
|
2159
2159
|
[
|
|
@@ -2202,12 +2202,12 @@ const Wn = [
|
|
|
2202
2202
|
}, M = () => {
|
|
2203
2203
|
if (i) {
|
|
2204
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),
|
|
2206
|
-
V > 10 &&
|
|
2205
|
+
const x = Math.min(o.x, r.x), R = Math.min(o.y, r.y), V = Math.abs(r.x - o.x), G = Math.abs(r.y - o.y);
|
|
2206
|
+
V > 10 && G > 10 && e({
|
|
2207
2207
|
x,
|
|
2208
2208
|
y: R,
|
|
2209
2209
|
width: V,
|
|
2210
|
-
height:
|
|
2210
|
+
height: G
|
|
2211
2211
|
});
|
|
2212
2212
|
}
|
|
2213
2213
|
};
|
|
@@ -2281,12 +2281,12 @@ const Wn = [
|
|
|
2281
2281
|
onOpen: h,
|
|
2282
2282
|
onClose: f
|
|
2283
2283
|
}) => {
|
|
2284
|
-
const [w, m] = E(!1), [k, T] = E(""), [U, M] = E(e), [x, R] = E(t || ""), [V,
|
|
2284
|
+
const [w, m] = E(!1), [k, T] = E(""), [U, M] = E(e), [x, R] = E(t || ""), [V, G] = E([]), [$e, Be] = E(null), [oi, ut] = E(!1), [Z, ht] = E(!1), [ft, Ee] = E(!1), [W, re] = E(null), [A, oe] = E({}), [pt, Ie] = E("incorrect_content"), [si, Ve] = E(!1), We = r !== void 0 ? r : w, ai = We && !si;
|
|
2285
2285
|
pi.useEffect(() => {
|
|
2286
|
-
We && (oe({}), M(e), R(t || ""));
|
|
2286
|
+
We && (oe({}), M(e), R(t || ""), G([]), T(""), Ie("incorrect_content"));
|
|
2287
2287
|
}, [We, e, t]);
|
|
2288
2288
|
const li = () => {
|
|
2289
|
-
|
|
2289
|
+
G([]), T(""), M(e), R(t || ""), Ie("incorrect_content"), oe({}), r === void 0 && m(!0);
|
|
2290
2290
|
}, bt = async (p) => {
|
|
2291
2291
|
if (V.length >= 3) {
|
|
2292
2292
|
alert("Bạn chỉ có thể chụp tối đa 3 ảnh.");
|
|
@@ -2303,7 +2303,7 @@ const Wn = [
|
|
|
2303
2303
|
ut(!0);
|
|
2304
2304
|
try {
|
|
2305
2305
|
const I = await In(p);
|
|
2306
|
-
I ?
|
|
2306
|
+
I ? G((se) => [...se, I]) : alert("Không thể chụp ảnh màn hình. Vui lòng thử lại.");
|
|
2307
2307
|
} catch (I) {
|
|
2308
2308
|
console.error(I);
|
|
2309
2309
|
} finally {
|
|
@@ -2314,9 +2314,9 @@ const Wn = [
|
|
|
2314
2314
|
}, di = () => {
|
|
2315
2315
|
Ee(!1), Ve(!1);
|
|
2316
2316
|
}, ui = (p) => {
|
|
2317
|
-
|
|
2317
|
+
G((I) => I.filter((se, wt) => wt !== p));
|
|
2318
2318
|
}, qe = () => {
|
|
2319
|
-
f && f(), m(!1),
|
|
2319
|
+
f && f(), m(!1), G([]), Ee(!1), Be(null), T(""), oe({}), Ie("incorrect_content");
|
|
2320
2320
|
}, hi = async () => {
|
|
2321
2321
|
const p = {};
|
|
2322
2322
|
if (U ? isNaN(Number(U)) && (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) {
|
|
@@ -2402,7 +2402,7 @@ const Wn = [
|
|
|
2402
2402
|
}
|
|
2403
2403
|
` }),
|
|
2404
2404
|
ft && /* @__PURE__ */ b(qn, { onConfirm: ci, onCancel: di }),
|
|
2405
|
-
|
|
2405
|
+
$e && /* @__PURE__ */ b(
|
|
2406
2406
|
"div",
|
|
2407
2407
|
{
|
|
2408
2408
|
style: {
|
|
@@ -2417,11 +2417,11 @@ const Wn = [
|
|
|
2417
2417
|
animation: "fb-fade-in 0.2s ease-out",
|
|
2418
2418
|
backdropFilter: "blur(4px)"
|
|
2419
2419
|
},
|
|
2420
|
-
onClick: () =>
|
|
2420
|
+
onClick: () => Be(null),
|
|
2421
2421
|
children: /* @__PURE__ */ b(
|
|
2422
2422
|
"img",
|
|
2423
2423
|
{
|
|
2424
|
-
src:
|
|
2424
|
+
src: $e,
|
|
2425
2425
|
alt: "Zoomed",
|
|
2426
2426
|
draggable: !1,
|
|
2427
2427
|
onContextMenu: (p) => p.preventDefault(),
|
|
@@ -2470,7 +2470,7 @@ const Wn = [
|
|
|
2470
2470
|
}
|
|
2471
2471
|
) }),
|
|
2472
2472
|
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..." }),
|
|
2473
|
-
ai && !ft &&
|
|
2473
|
+
ai && !ft && !$e && /* @__PURE__ */ v("div", { className: "fb-widget-modal", children: [
|
|
2474
2474
|
/* @__PURE__ */ v("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
2475
2475
|
/* @__PURE__ */ b("h2", { style: { margin: 0, fontSize: "1rem", fontWeight: 700, color: "#111827" }, children: "Báo lỗi" }),
|
|
2476
2476
|
/* @__PURE__ */ b(
|
|
@@ -2596,7 +2596,7 @@ const Wn = [
|
|
|
2596
2596
|
"select",
|
|
2597
2597
|
{
|
|
2598
2598
|
value: pt,
|
|
2599
|
-
onChange: (p) =>
|
|
2599
|
+
onChange: (p) => Ie(p.target.value),
|
|
2600
2600
|
style: {
|
|
2601
2601
|
width: "100%",
|
|
2602
2602
|
padding: "6px 10px",
|
|
@@ -2708,7 +2708,7 @@ const Wn = [
|
|
|
2708
2708
|
userSelect: "none",
|
|
2709
2709
|
WebkitUserSelect: "none"
|
|
2710
2710
|
},
|
|
2711
|
-
onClick: () =>
|
|
2711
|
+
onClick: () => Be(p)
|
|
2712
2712
|
}
|
|
2713
2713
|
),
|
|
2714
2714
|
/* @__PURE__ */ b(
|
|
@@ -2796,7 +2796,7 @@ const Wn = [
|
|
|
2796
2796
|
p.currentTarget.style.borderColor = "#d1d5db", p.currentTarget.style.color = "#4b5563", p.currentTarget.style.backgroundColor = "white";
|
|
2797
2797
|
},
|
|
2798
2798
|
children: [
|
|
2799
|
-
/* @__PURE__ */ b(
|
|
2799
|
+
/* @__PURE__ */ b(_n, { size: 18 }),
|
|
2800
2800
|
/* @__PURE__ */ b("span", { style: { fontSize: "0.8rem", fontWeight: 500 }, children: "Chọn vùng" })
|
|
2801
2801
|
]
|
|
2802
2802
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(U,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],f):(U=typeof globalThis<"u"?globalThis:U||self,f(U.SupportFeedbackLib={},U.jsxRuntime,U.React))})(this,(function(U,f,y){"use strict";var ri="2.0.7",ni=500,dt="user-agent",ne="",ut="?",S={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},M="browser",W="cpu",$="device",H="engine",P="os",oe="result",c="name",a="type",d="vendor",u="version",I="architecture",ge="major",l="model",Ee="console",g="mobile",x="tablet",C="smarttv",B="wearable",Ie="xr",we="embedded",se="inapp",$e="brands",J="formFactors",Be="fullVersionList",ae="platform",Ve="platformVersion",Te="bitness",G="sec-ch-ua",oi=G+"-full-version-list",si=G+"-arch",ai=G+"-"+Te,li=G+"-form-factors",ci=G+"-"+g,di=G+"-"+l,ht=G+"-"+ae,ui=ht+"-version",ft=[$e,Be,g,l,ae,Ve,I,J,Te],Oe="Amazon",le="Apple",pt="ASUS",bt="BlackBerry",Z="Google",gt="Huawei",We="Lenovo",wt="Honor",Me="LG",qe="Microsoft",Ne="Motorola",mt="Nvidia",yt="OnePlus",je="OPPO",me="Samsung",xt="Sharp",ye="Sony",Re="Xiaomi",Ge="Zebra",vt="Chrome",kt="Chromium",X="Chromecast",Ae="Edge",xe="Firefox",ve="Opera",Xe="Facebook",St="Sogou",ce="Mobile ",ke=" Browser",Ye="Windows",hi=typeof window!==S.UNDEFINED,A=hi&&window.navigator?window.navigator:void 0,ee=A&&A.userAgentData?A.userAgentData:void 0,fi=function(e,t){var i={},r=t;if(!Fe(t)){r={};for(var o in t)for(var s in t[o])r[s]=t[o][s].concat(r[s]?r[s]:[])}for(var n in e)i[n]=r[n]&&r[n].length%2===0?r[n].concat(e[n]):e[n];return i},_e=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Qe=function(e,t){if(typeof e===S.OBJECT&&e.length>0){for(var i in e)if(Y(t)==Y(e[i]))return!0;return!1}return Se(e)?Y(t)==Y(e):!1},Fe=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(t?Fe(e[i]):!1)},Se=function(e){return typeof e===S.STRING},Ke=function(e){if(e){for(var t=[],i=de(/\\?\"/g,e).split(","),r=0;r<i.length;r++)if(i[r].indexOf(";")>-1){var o=Le(i[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Le(i[r]);return t}},Y=function(e){return Se(e)?e.toLowerCase():e},Je=function(e){return Se(e)?de(/[^\d\.]/g,e).split(".")[0]:void 0},q=function(e){for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];typeof i==S.OBJECT&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},de=function(e,t){return Se(t)?t.replace(e,ne):t},Ce=function(e){return de(/\\?\"/g,e)},Le=function(e,t){return e=de(/^\s\s*/,String(e)),typeof t===S.UNDEFINED?e:e.substring(0,t)},Ze=function(e,t){if(!(!e||!t))for(var i=0,r,o,s,n,h,p;i<t.length&&!h;){var w=t[i],m=t[i+1];for(r=o=0;r<w.length&&!h&&w[r];)if(h=w[r++].exec(e),h)for(s=0;s<m.length;s++)p=h[++o],n=m[s],typeof n===S.OBJECT&&n.length>0?n.length===2?typeof n[1]==S.FUNCTION?this[n[0]]=n[1].call(this,p):this[n[0]]=n[1]:n.length>=3&&(typeof n[1]===S.FUNCTION&&!(n[1].exec&&n[1].test)?n.length>3?this[n[0]]=p?n[1].apply(this,n.slice(2)):void 0:this[n[0]]=p?n[1].call(this,p,n[2]):void 0:n.length==3?this[n[0]]=p?p.replace(n[1],n[2]):void 0:n.length==4?this[n[0]]=p?n[3].call(this,p.replace(n[1],n[2])):void 0:n.length>4&&(this[n[0]]=p?n[3].apply(this,[p.replace(n[1],n[2])].concat(n.slice(4))):void 0)):this[n]=p||void 0;i+=2}},z=function(e,t){for(var i in t)if(typeof t[i]===S.OBJECT&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(Qe(t[i][r],e))return i===ut?void 0:i}else if(Qe(t[i],e))return i===ut?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Ct={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Et={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},pi={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},It={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,ce+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[u,[c,Ae+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[u,[c,ve+" GX"]],[/\bopr\/([\w\.]+)/i],[u,[c,ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[u,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[u,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[c,u],[/quark(?:pc)?\/([-\w\.]+)/i],[u,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[u,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[u,[c,"Smart "+We+ke]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure"+ke],u],[/\bfocus\/([\w\.]+)/i],[u,[c,xe+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI"+ke]],[/fxios\/([\w\.-]+)/i],[u,[c,ce+xe]],[/\bqihoobrowser\/?([\w\.]*)/i],[u,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],u],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+ke],u],[/samsungbrowser\/([\w\.]+)/i],[u,[c,me+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[u,[c,St+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,St+" Mobile"],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,u],[/(lbbrowser|rekonq|steam(?= (clie|tenf|gameo)))/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[u,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,Xe],u,[a,se]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[c,u,[a,se]],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"],[a,se]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[u,[c,"TikTok"],[a,se]],[/\[(linkedin)app\]/i],[c,[a,se]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[c,/(.+)/,"Zalo"],u,[a,se]],[/(chromium)[\/ ]([-\w\.]+)/i],[c,u],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,vt+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[u,[c,Ae+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,vt+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android"+ke]],[/chrome\/([\w\.]+) mobile/i],[u,[c,ce+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[u,[c,ce+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[c,ce+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[c,ce+xe],u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,xe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[u,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[u,/[^\d\.]+./,ne]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[I,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[I,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[I,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[I,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[I,"arm"]],[/ sun4\w[;\)]/i],[[I,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[I,/ower/,ne,Y]],[/mc680.0/i],[[I,"68k"]],[/winnt.+\[axp/i],[[I,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,me],[a,x]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,me],[a,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[l,[d,le],[a,g]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[l,[d,le],[a,x]],[/(macintosh);/i],[l,[d,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,xt],[a,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,wt],[a,x]],[/honor([-\w ]+)[;\)]/i],[l,[d,wt],[a,g]],[/\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],[l,[d,gt],[a,x]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[l,[d,gt],[a,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Re],[a,x]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Re],[a,g]],[/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,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,yt],[a,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,je],[a,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,z,{OnePlus:["203","304","403","404","413","415"],"*":je}],[a,x]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[l,[d,"BLU"],[a,g]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[a,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[a,g]],[/(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,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,We],[a,x]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[l,[d,We],[a,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[l,[d,Ne],[a,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,Ne],[a,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Me],[a,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Me],[a,g]],[/(nokia) (t[12][01])/i],[d,l,[a,x]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[l,/_/g," "],[a,g],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,Z],[a,x]],[/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],[l,[d,Z],[a,g]],[/(google) (pixelbook( go)?)/i],[d,l],[/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],[l,[d,ye],[a,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,ye],[a,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,Oe],[a,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,Oe],[a,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[a,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[l,[d,bt],[a,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,pt],[a,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,pt],[a,g]],[/(nexus 9)/i],[l,[d,"HTC"],[a,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[a,g]],[/tcl (xess p17aa)/i,/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],[l,[d,"TCL"],[a,x]],[/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],[l,[d,"TCL"],[a,g]],[/(itel) ((\w+))/i],[[d,Y],l,[a,z,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[a,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[a,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[a,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[a,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[a,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[a,g]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[l,[d,"Nothing"],[a,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[a,x]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[a,g]],[/; (n159v)/i],[l,[d,"HMD"],[a,g]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[d,l,[a,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[d,l,[a,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[d,l,[a,x]],[/(surface duo)/i],[l,[d,qe],[a,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[a,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,mt],[a,x]],[/(sprint) (\w+)/i],[d,l,[a,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,qe],[a,g]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,Ge],[a,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,Ge],[a,g]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[d,[a,C]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,me],[a,C]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[d,l,[a,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Me],[a,C]],[/(apple) ?tv/i],[d,[l,le+" TV"],[a,C]],[/crkey.*devicetype\/chromecast/i],[[l,X+" Third Generation"],[d,Z],[a,C]],[/crkey.*devicetype\/([^/]*)/i],[[l,/^/,"Chromecast "],[d,Z],[a,C]],[/fuchsia.*crkey/i],[[l,X+" Nest Hub"],[d,Z],[a,C]],[/crkey/i],[[l,X],[d,Z],[a,C]],[/(portaltv)/i],[l,[d,Xe],[a,C]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,Oe],[a,C]],[/(shield \w+ tv)/i],[l,[d,mt],[a,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,xt],[a,C]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,ye],[a,C]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Re],[a,C]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[a,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,/.+\/(\w+)/,"$1",z,{LG:"lge"}],[l,Le],[a,C]],[/(playstation \w+)/i],[l,[d,ye],[a,Ee]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,qe],[a,Ee]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[d,z,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],l,[a,Ee]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,me],[a,B]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[a,B]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,je],[a,B]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,le],[a,B]],[/(opwwe\d{3})/i],[l,[d,yt],[a,B]],[/(moto 360)/i],[l,[d,Ne],[a,B]],[/(smartwatch 3)/i],[l,[d,ye],[a,B]],[/(g watch r)/i],[l,[d,Me],[a,B]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,Ge],[a,B]],[/droid.+; (glass) \d/i],[l,[d,Z],[a,Ie]],[/(pico) ([\w ]+) os\d/i],[d,l,[a,Ie]],[/(quest( \d| pro)?s?).+vr/i],[l,[d,Xe],[a,Ie]],[/mobile vr; rv.+firefox/i],[[a,Ie]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[a,we]],[/(aeobc)\b/i],[l,[d,Oe],[a,we]],[/(homepod).+mac os/i],[l,[d,le],[a,we]],[/windows iot/i],[[a,we]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[l,[a,C]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[a,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[l,[a,z,{mobile:"Mobile",xr:"VR","*":x}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[a,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[a,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,Ae+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[c,u],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,u],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/(windows nt) (6\.[23]); arm/i],[[c,/N/,"R"],[u,z,Ct]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[c,u],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[u,/(;|\))/g,"",z,Ct],[c,Ye]],[/(windows ce)\/?([\d\.]*)/i],[c,u],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[c,"macOS"],[u,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[u,[c,X+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[u,[c,X+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[u,[c,X+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[u,[c,X+" Linux"]],[/crkey\/([\d\.]+)/i],[u,[c,X]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[u,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],u],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[c,u],[/\(bb(10);/i],[u,[c,bt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,xe+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[u,[c,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[u,z,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,"Chrome OS"],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[c,u],[/(sunos) ?([\d\.]*)/i],[[c,"Solaris"],u],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,u]]},Pe=(function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return q.call(e.init,[[M,[c,u,ge,a]],[W,[I]],[$,[a,l,d]],[H,[c,u]],[P,[c,u]]]),q.call(e.isIgnore,[[M,[u,ge]],[H,[u]],[P,[u]]]),q.call(e.isIgnoreRgx,[[M,/ ?browser$/i],[P,/ ?os$/i]]),q.call(e.toString,[[M,[c,u]],[W,[I]],[$,[d,l]],[H,[c,u]],[P,[c,u]]]),e})(),bi=function(e,t){var i=Pe.init[t],r=Pe.isIgnore[t]||0,o=Pe.isIgnoreRgx[t]||0,s=Pe.toString[t]||0;function n(){q.call(this,i)}return n.prototype.getItem=function(){return e},n.prototype.withClientHints=function(){return ee?ee.getHighEntropyValues(ft).then(function(h){return e.setCH(new Tt(h,!1)).parseCH().get()}):e.parseCH().get()},n.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=oe&&(n.prototype.is=function(h){var p=!1;for(var w in this)if(this.hasOwnProperty(w)&&!Qe(r,w)&&Y(o?de(o,this[w]):this[w])==Y(o?de(o,h):h)){if(p=!0,h!=S.UNDEFINED)break}else if(h==S.UNDEFINED&&p){p=!p;break}return p},n.prototype.toString=function(){var h=ne;for(var p in s)typeof this[s[p]]!==S.UNDEFINED&&(h+=(h?" ":ne)+this[s[p]]);return h||S.UNDEFINED}),n.prototype.then=function(h){var p=this,w=function(){for(var k in p)p.hasOwnProperty(k)&&(this[k]=p[k])};w.prototype={is:n.prototype.is,toString:n.prototype.toString,withClientHints:n.prototype.withClientHints,withFeatureCheck:n.prototype.withFeatureCheck};var m=new w;return h(m),m},new n};function Tt(e,t){if(e=e||{},q.call(this,ft),t)q.call(this,[[$e,Ke(e[G])],[Be,Ke(e[oi])],[g,/\?1/.test(e[ci])],[l,Ce(e[di])],[ae,Ce(e[ht])],[Ve,Ce(e[ui])],[I,Ce(e[si])],[J,Ke(e[li])],[Te,Ce(e[ai])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==S.UNDEFINED&&(this[i]=e[i])}function Q(e,t,i,r){return q.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",i],["data",bi(this,e)]]),this}Q.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},Q.prototype.set=function(e,t){return this.data[e]=t,this},Q.prototype.setCH=function(e){return this.uaCH=e,this},Q.prototype.detectFeature=function(){if(A&&A.userAgent==this.ua)switch(this.itemType){case M:A.brave&&typeof A.brave.isBrave==S.FUNCTION&&this.set(c,"Brave");break;case $:!this.get(a)&&ee&&ee[g]&&this.set(a,g),this.get(l)=="Macintosh"&&A&&typeof A.standalone!==S.UNDEFINED&&A.maxTouchPoints&&A.maxTouchPoints>2&&this.set(l,"iPad").set(a,x);break;case P:!this.get(c)&&ee&&ee[ae]&&this.set(c,ee[ae]);break;case oe:var e=this.data,t=function(i){return e[i].getItem().detectFeature().get()};this.set(M,t(M)).set(W,t(W)).set($,t($)).set(H,t(H)).set(P,t(P))}return this},Q.prototype.parseUA=function(){switch(this.itemType!=oe&&Ze.call(this.data,this.ua,this.rgxMap),this.itemType){case M:this.set(ge,Je(this.get(u)));break;case P:if(this.get(c)=="iOS"&&this.get(u)=="18.6"){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(u,e[1])}break}return this},Q.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case M:case H:var i=e[Be]||e[$e],r;if(i)for(var o=0;o<i.length;o++){var s=i[o].brand||i[o],n=i[o].version;this.itemType==M&&!/not.a.brand/i.test(s)&&(!r||/Chrom/.test(r)&&s!=kt||r==Ae&&/WebView2/.test(s))&&(s=z(s,pi),r=this.get(c),r&&!/Chrom/.test(r)&&/Chrom/.test(s)||this.set(c,s).set(u,n).set(ge,Je(n)),r=s),this.itemType==H&&s==kt&&this.set(u,n)}break;case W:var h=e[I];h&&(h&&e[Te]=="64"&&(h+="64"),Ze.call(this.data,h+";",t));break;case $:if(e[g]&&this.set(a,g),e[l]&&(this.set(l,e[l]),!this.get(a)||!this.get(d))){var p={};Ze.call(p,"droid 9; "+e[l]+")",t),!this.get(a)&&p.type&&this.set(a,p.type),!this.get(d)&&p.vendor&&this.set(d,p.vendor)}if(e[J]){var w;if(typeof e[J]!="string")for(var m=0;!w&&m<e[J].length;)w=z(e[J][m++],Et);else w=z(e[J],Et);this.set(a,w)}break;case P:var k=e[ae];if(k){var T=e[Ve];k==Ye&&(T=parseInt(Je(T),10)>=13?"11":"10"),this.set(c,k).set(u,T)}this.get(c)==Ye&&e[l]=="Xbox"&&this.set(c,"Xbox").set(u,void 0);break;case oe:var V=this.data,F=function(v){return V[v].getItem().setCH(e).parseCH().get()};this.set(M,F(M)).set(W,F(W)).set($,F($)).set(H,F(H)).set(P,F(P))}return this};function N(e,t,i){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)if(typeof i.append===S.FUNCTION){var r={};i.forEach(function(m,k){r[String(k).toLowerCase()]=m}),i=r}else{var o={};for(var s in i)i.hasOwnProperty(s)&&(o[String(s).toLowerCase()]=i[s]);i=o}if(!(this instanceof N))return new N(e,t,i).getResult();var n=typeof e===S.STRING?e:i&&i[dt]?i[dt]:A&&A.userAgent?A.userAgent:ne,h=new Tt(i,!0),p=t?fi(It,t):It,w=function(m){return m==oe?function(){return new Q(m,n,p,h).set("ua",n).set(M,this.getBrowser()).set(W,this.getCPU()).set($,this.getDevice()).set(H,this.getEngine()).set(P,this.getOS()).get()}:function(){return new Q(m,n,p[m],h).parseUA().get()}};return q.call(this,[["getBrowser",w(M)],["getCPU",w(W)],["getDevice",w($)],["getEngine",w(H)],["getOS",w(P)],["getResult",w(oe)],["getUA",function(){return n}],["setUA",function(m){return Se(m)&&(n=Le(m,ni)),this}]]).setUA(n),this}N.VERSION=ri,N.BROWSER=_e([c,u,ge,a]),N.CPU=_e([I]),N.DEVICE=_e([l,d,a,Ee,g,C,x,B,we]),N.ENGINE=N.OS=_e([c,u]);const gi=()=>{const t=new N().getResult();return{os:t.os.name||"unknown",osVersion:t.os.version||"unknown",browser:t.browser.name||"unknown",browserVersion:t.browser.version||"unknown",deviceType:t.device.type||"desktop"}};function wi(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const i=document.implementation.createHTMLDocument(),r=i.createElement("base"),o=i.createElement("a");return i.head.appendChild(r),i.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const mi=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function K(e){const t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i]);return t}let ue=null;function Ot(e={}){return ue||(e.includeStyleProperties?(ue=e.includeStyleProperties,ue):(ue=K(window.getComputedStyle(document.documentElement)),ue))}function De(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function yi(e){const t=De(e,"border-left-width"),i=De(e,"border-right-width");return e.clientWidth+t+i}function xi(e){const t=De(e,"border-top-width"),i=De(e,"border-bottom-width");return e.clientHeight+t+i}function Mt(e,t={}){const i=t.width||yi(e),r=t.height||xi(e);return{width:i,height:r}}function vi(){let e,t;try{t=process}catch{}const i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const D=16384;function ki(e){(e.width>D||e.height>D)&&(e.width>D&&e.height>D?e.width>e.height?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D):e.width>D?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D))}function He(e){return new Promise((t,i)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=i,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Si(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Ci(e,t,i){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");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),Si(o)}const _=(e,t)=>{if(e instanceof t)return!0;const i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||_(i,t)};function Ei(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Ii(e,t){return Ot(t).map(i=>{const r=e.getPropertyValue(i),o=e.getPropertyPriority(i);return`${i}: ${r}${o?" !important":""};`}).join(" ")}function Ti(e,t,i,r){const o=`.${e}:${t}`,s=i.cssText?Ei(i):Ii(i,r);return document.createTextNode(`${o}{${s}}`)}function At(e,t,i,r){const o=window.getComputedStyle(e,i),s=o.getPropertyValue("content");if(s===""||s==="none")return;const n=mi();try{t.className=`${t.className} ${n}`}catch{return}const h=document.createElement("style");h.appendChild(Ti(n,i,o,r)),t.appendChild(h)}function Oi(e,t,i){At(e,t,":before",i),At(e,t,":after",i)}const _t="application/font-woff",Ft="image/jpeg",Mi={woff:_t,woff2:_t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ft,jpeg:Ft,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function Ai(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function et(e){const t=Ai(e).toLowerCase();return Mi[t]||""}function _i(e){return e.split(/,/)[1]}function tt(e){return e.search(/^(data:)/)!==-1}function Fi(e,t){return`data:${t};base64,${e}`}async function Lt(e,t,i){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((s,n)=>{const h=new FileReader;h.onerror=n,h.onloadend=()=>{try{s(i({res:r,result:h.result}))}catch(p){n(p)}},h.readAsDataURL(o)})}const it={};function Li(e,t,i){let r=e.replace(/\?.*/,"");return i&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function rt(e,t,i){const r=Li(e,t,i.includeQueryParams);if(it[r]!=null)return it[r];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const s=await Lt(e,i.fetchRequestInit,({res:n,result:h})=>(t||(t=n.headers.get("Content-Type")||""),_i(h)));o=Fi(s,t)}catch(s){o=i.imagePlaceholder||"";let n=`Failed to fetch resource: ${e}`;s&&(n=typeof s=="string"?s:s.message),n&&console.warn(n)}return it[r]=o,o}async function Pi(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):He(t)}async function Di(e,t){if(e.currentSrc){const s=document.createElement("canvas"),n=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,n?.drawImage(e,0,0,s.width,s.height);const h=s.toDataURL();return He(h)}const i=e.poster,r=et(i),o=await rt(i,r,t);return He(o)}async function Hi(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await ze(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function zi(e,t){return _(e,HTMLCanvasElement)?Pi(e):_(e,HTMLVideoElement)?Di(e,t):_(e,HTMLIFrameElement)?Hi(e,t):e.cloneNode(Pt(e))}const Ui=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Pt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function $i(e,t,i){var r,o;if(Pt(t))return t;let s=[];return Ui(e)&&e.assignedNodes?s=K(e.assignedNodes()):_(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?s=K(e.contentDocument.body.childNodes):s=K(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),s.length===0||_(e,HTMLVideoElement)||await s.reduce((n,h)=>n.then(()=>ze(h,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bi(e,t,i){const r=t.style;if(!r)return;const o=window.getComputedStyle(e);o.cssText?(r.cssText=o.cssText,r.transformOrigin=o.transformOrigin):Ot(i).forEach(s=>{let n=o.getPropertyValue(s);s==="font-size"&&n.endsWith("px")&&(n=`${Math.floor(parseFloat(n.substring(0,n.length-2)))-.1}px`),_(e,HTMLIFrameElement)&&s==="display"&&n==="inline"&&(n="block"),s==="d"&&t.getAttribute("d")&&(n=`path(${t.getAttribute("d")})`),r.setProperty(s,n,o.getPropertyPriority(s))})}function Vi(e,t){_(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),_(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Wi(e,t){if(_(e,HTMLSelectElement)){const r=Array.from(t.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function qi(e,t,i){return _(t,Element)&&(Bi(e,t,i),Oi(e,t,i),Vi(e,t),Wi(e,t)),t}async function Ni(e,t){const i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;const r={};for(let s=0;s<i.length;s++){const h=i[s].getAttribute("xlink:href");if(h){const p=e.querySelector(h),w=document.querySelector(h);!p&&w&&!r[h]&&(r[h]=await ze(w,t,!0))}}const o=Object.values(r);if(o.length){const s="http://www.w3.org/1999/xhtml",n=document.createElementNS(s,"svg");n.setAttribute("xmlns",s),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const h=document.createElementNS(s,"defs");n.appendChild(h);for(let p=0;p<o.length;p++)h.appendChild(o[p]);e.appendChild(n)}return e}async function ze(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>zi(r,t)).then(r=>$i(e,r,t)).then(r=>qi(e,r,t)).then(r=>Ni(r,t))}const Dt=/url\((['"]?)([^'"]+?)\1\)/g,ji=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Ri=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Gi(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Xi(e){const t=[];return e.replace(Dt,(i,r,o)=>(t.push(o),i)),t.filter(i=>!tt(i))}async function Yi(e,t,i,r,o){try{const s=i?wi(t,i):t,n=et(t);let h;return o||(h=await rt(s,n,r)),e.replace(Gi(t),`$1${h}$3`)}catch{}return e}function Qi(e,{preferredFontFormat:t}){return t?e.replace(Ri,i=>{for(;;){const[r,,o]=ji.exec(i)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function Ht(e){return e.search(Dt)!==-1}async function zt(e,t,i){if(!Ht(e))return e;const r=Qi(e,i);return Xi(r).reduce((s,n)=>s.then(h=>Yi(h,n,t,i)),Promise.resolve(r))}async function he(e,t,i){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const s=await zt(o,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Ki(e,t){await he("background",e,t)||await he("background-image",e,t),await he("mask",e,t)||await he("-webkit-mask",e,t)||await he("mask-image",e,t)||await he("-webkit-mask-image",e,t)}async function Ji(e,t){const i=_(e,HTMLImageElement);if(!(i&&!tt(e.src))&&!(_(e,SVGImageElement)&&!tt(e.href.baseVal)))return;const r=i?e.src:e.href.baseVal,o=await rt(r,et(r),t);await new Promise((s,n)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(w){n(w)}}:n;const h=e;h.decode&&(h.decode=s),h.loading==="lazy"&&(h.loading="eager"),i?(e.srcset="",e.src=o):e.href.baseVal=o})}async function Zi(e,t){const r=K(e.childNodes).map(o=>Ut(o,t));await Promise.all(r).then(()=>e)}async function Ut(e,t){_(e,Element)&&(await Ki(e,t),await Ji(e,t),await Zi(e,t))}function er(e,t){const{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{i[o]=r[o]}),e}const $t={};async function Bt(e){let t=$t[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},$t[e]=t,t}async function Vt(e,t){let i=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async n=>{let h=n.replace(r,"$1");return h.startsWith("https://")||(h=new URL(h,e.url).href),Lt(h,t.fetchRequestInit,({result:p})=>(i=i.replace(n,`url(${p})`),[n,p]))});return Promise.all(s).then(()=>i)}function Wt(e){if(e==null)return[];const t=[],i=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(i,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const p=o.exec(r);if(p===null)break;t.push(p[0])}r=r.replace(o,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,n="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",h=new RegExp(n,"gi");for(;;){let p=s.exec(r);if(p===null){if(p=h.exec(r),p===null)break;s.lastIndex=h.lastIndex}else h.lastIndex=s.lastIndex;t.push(p[0])}return t}async function tr(e,t){const i=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach((s,n)=>{if(s.type===CSSRule.IMPORT_RULE){let h=n+1;const p=s.href,w=Bt(p).then(m=>Vt(m,t)).then(m=>Wt(m).forEach(k=>{try{o.insertRule(k,k.startsWith("@import")?h+=1:o.cssRules.length)}catch(T){console.error("Error inserting rule from remote css",{rule:k,error:T})}})).catch(m=>{console.error("Error loading remote css",m.toString())});r.push(w)}})}catch(s){const n=e.find(h=>h.href==null)||document.styleSheets[0];o.href!=null&&r.push(Bt(o.href).then(h=>Vt(h,t)).then(h=>Wt(h).forEach(p=>{n.insertRule(p,n.cssRules.length)})).catch(h=>{console.error("Error loading remote stylesheet",h)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${o.href}`,s)}}),i))}function ir(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ht(t.style.getPropertyValue("src")))}async function rr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=K(e.ownerDocument.styleSheets),r=await tr(i,t);return ir(r)}function qt(e){return e.trim().replace(/["']/g,"")}function nr(e){const t=new Set;function i(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(s=>{t.add(qt(s))}),Array.from(r.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function or(e,t){const i=await rr(e,t),r=nr(e);return(await Promise.all(i.filter(s=>r.has(qt(s.style.fontFamily))).map(s=>{const n=s.parentStyleSheet?s.parentStyleSheet.href:null;return zt(s.cssText,n,t)}))).join(`
|
|
2
|
-
`)}async function sr(e,t){const i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await or(e,t);if(i){const r=document.createElement("style"),o=document.createTextNode(i);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function ar(e,t={}){const{width:i,height:r}=Mt(e,t),o=await ze(e,t,!0);return await sr(o,t),await Ut(o,t),er(o,t),await Ci(o,i,r)}async function lr(e,t={}){const{width:i,height:r}=Mt(e,t),o=await ar(e,t),s=await He(o),n=document.createElement("canvas"),h=n.getContext("2d"),p=t.pixelRatio||vi(),w=t.canvasWidth||i,m=t.canvasHeight||r;return n.width=w*p,n.height=m*p,t.skipAutoScale||ki(n),n.style.width=`${w}`,n.style.height=`${m}`,t.backgroundColor&&(h.fillStyle=t.backgroundColor,h.fillRect(0,0,n.width,n.height)),h.drawImage(s,0,0,n.width,n.height),n}async function cr(e,t={}){return(await lr(e,t)).toDataURL()}const dr=async e=>{try{const t=document.documentElement,i=e?e.x:0,r=e?e.y:0,o=e?e.width:window.innerWidth,s=e?e.height:window.innerHeight,n=t.getBoundingClientRect(),h=window.getComputedStyle(t),p=parseFloat(h.marginLeft)||0,w=parseFloat(h.marginTop)||0,m=i-n.left+p,k=r-n.top+w;return await cr(t,{quality:.9,pixelRatio:1,cacheBust:!0,skipAutoScale:!0,width:o,height:s,canvasWidth:o,canvasHeight:s,style:{transform:`translate(${-m}px, ${-k}px)`}})}catch(t){return console.error("Screenshot capture failed:",t),null}};const ur=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,r)=>r?r.toUpperCase():i.toLowerCase()),Nt=e=>{const t=hr(e);return t.charAt(0).toUpperCase()+t.slice(1)},jt=(...e)=>e.filter((t,i,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===i).join(" ").trim(),fr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var pr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const br=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:n,...h},p)=>y.createElement("svg",{ref:p,...pr,width:t,height:t,stroke:e,strokeWidth:r?Number(i)*24/Number(t):i,className:jt("lucide",o),...!s&&!fr(h)&&{"aria-hidden":"true"},...h},[...n.map(([w,m])=>y.createElement(w,m)),...Array.isArray(s)?s:[s]]));const
|
|
1
|
+
(function(U,f){typeof exports=="object"&&typeof module<"u"?f(exports,require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react"],f):(U=typeof globalThis<"u"?globalThis:U||self,f(U.SupportFeedbackLib={},U.jsxRuntime,U.React))})(this,(function(U,f,y){"use strict";var ri="2.0.7",ni=500,dt="user-agent",ne="",ut="?",S={FUNCTION:"function",OBJECT:"object",STRING:"string",UNDEFINED:"undefined"},M="browser",W="cpu",$="device",H="engine",P="os",oe="result",c="name",a="type",d="vendor",u="version",T="architecture",ge="major",l="model",Ee="console",g="mobile",x="tablet",C="smarttv",B="wearable",Ie="xr",we="embedded",se="inapp",Be="brands",Z="formFactors",Ve="fullVersionList",ae="platform",We="platformVersion",Te="bitness",G="sec-ch-ua",oi=G+"-full-version-list",si=G+"-arch",ai=G+"-"+Te,li=G+"-form-factors",ci=G+"-"+g,di=G+"-"+l,ht=G+"-"+ae,ui=ht+"-version",ft=[Be,Ve,g,l,ae,We,T,Z,Te],Oe="Amazon",le="Apple",pt="ASUS",bt="BlackBerry",ee="Google",gt="Huawei",qe="Lenovo",wt="Honor",Me="LG",Ne="Microsoft",je="Motorola",mt="Nvidia",yt="OnePlus",Re="OPPO",me="Samsung",xt="Sharp",ye="Sony",Ge="Xiaomi",Xe="Zebra",vt="Chrome",kt="Chromium",X="Chromecast",_e="Edge",xe="Firefox",ve="Opera",Ye="Facebook",St="Sogou",ce="Mobile ",ke=" Browser",Qe="Windows",hi=typeof window!==S.UNDEFINED,_=hi&&window.navigator?window.navigator:void 0,te=_&&_.userAgentData?_.userAgentData:void 0,fi=function(e,t){var i={},r=t;if(!Fe(t)){r={};for(var o in t)for(var s in t[o])r[s]=t[o][s].concat(r[s]?r[s]:[])}for(var n in e)i[n]=r[n]&&r[n].length%2===0?r[n].concat(e[n]):e[n];return i},Ae=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},Ke=function(e,t){if(typeof e===S.OBJECT&&e.length>0){for(var i in e)if(Y(t)==Y(e[i]))return!0;return!1}return Se(e)?Y(t)==Y(e):!1},Fe=function(e,t){for(var i in e)return/^(browser|cpu|device|engine|os)$/.test(i)||(t?Fe(e[i]):!1)},Se=function(e){return typeof e===S.STRING},Je=function(e){if(e){for(var t=[],i=de(/\\?\"/g,e).split(","),r=0;r<i.length;r++)if(i[r].indexOf(";")>-1){var o=Le(i[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=Le(i[r]);return t}},Y=function(e){return Se(e)?e.toLowerCase():e},Ze=function(e){return Se(e)?de(/[^\d\.]/g,e).split(".")[0]:void 0},q=function(e){for(var t in e)if(e.hasOwnProperty(t)){var i=e[t];typeof i==S.OBJECT&&i.length==2?this[i[0]]=i[1]:this[i]=void 0}return this},de=function(e,t){return Se(t)?t.replace(e,ne):t},Ce=function(e){return de(/\\?\"/g,e)},Le=function(e,t){return e=de(/^\s\s*/,String(e)),typeof t===S.UNDEFINED?e:e.substring(0,t)},et=function(e,t){if(!(!e||!t))for(var i=0,r,o,s,n,h,p;i<t.length&&!h;){var w=t[i],m=t[i+1];for(r=o=0;r<w.length&&!h&&w[r];)if(h=w[r++].exec(e),h)for(s=0;s<m.length;s++)p=h[++o],n=m[s],typeof n===S.OBJECT&&n.length>0?n.length===2?typeof n[1]==S.FUNCTION?this[n[0]]=n[1].call(this,p):this[n[0]]=n[1]:n.length>=3&&(typeof n[1]===S.FUNCTION&&!(n[1].exec&&n[1].test)?n.length>3?this[n[0]]=p?n[1].apply(this,n.slice(2)):void 0:this[n[0]]=p?n[1].call(this,p,n[2]):void 0:n.length==3?this[n[0]]=p?p.replace(n[1],n[2]):void 0:n.length==4?this[n[0]]=p?n[3].call(this,p.replace(n[1],n[2])):void 0:n.length>4&&(this[n[0]]=p?n[3].apply(this,[p.replace(n[1],n[2])].concat(n.slice(4))):void 0)):this[n]=p||void 0;i+=2}},z=function(e,t){for(var i in t)if(typeof t[i]===S.OBJECT&&t[i].length>0){for(var r=0;r<t[i].length;r++)if(Ke(t[i][r],e))return i===ut?void 0:i}else if(Ke(t[i],e))return i===ut?void 0:i;return t.hasOwnProperty("*")?t["*"]:e},Ct={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Et={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},pi={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},It={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[u,[c,ce+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[u,[c,_e+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[u,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,u],[/opios[\/ ]+([\w\.]+)/i],[u,[c,ve+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[u,[c,ve+" GX"]],[/\bopr\/([\w\.]+)/i],[u,[c,ve]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[u,[c,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[u,[c,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(atlas|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser|palemoon)\/([-\w\.]+)/i,/(heytap|ovi|115|surf|qwant)browser\/([\d\.]+)/i,/(qwant)(?:ios|mobile)\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[c,u],[/quark(?:pc)?\/([-\w\.]+)/i],[u,[c,"Quark"]],[/\bddg\/([\w\.]+)/i],[u,[c,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[u,[c,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[u,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[u,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[u,[c,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[u,[c,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[u,[c,"Smart "+qe+ke]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure"+ke],u],[/\bfocus\/([\w\.]+)/i],[u,[c,xe+" Focus"]],[/\bopt\/([\w\.]+)/i],[u,[c,ve+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[u,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[u,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[u,[c,ve+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[u,[c,"MIUI"+ke]],[/fxios\/([\w\.-]+)/i],[u,[c,ce+xe]],[/\bqihoobrowser\/?([\w\.]*)/i],[u,[c,"360"]],[/\b(qq)\/([\w\.]+)/i],[[c,/(.+)/,"$1Browser"],u],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1"+ke],u],[/samsungbrowser\/([\w\.]+)/i],[u,[c,me+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[u,[c,St+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[c,St+" Mobile"],u],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[c,u],[/(lbbrowser|rekonq|steam(?= (clie|tenf|gameo)))/i],[c],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[u,c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,Ye],u,[a,se]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(bing)(?:web|sapphire)\/([\w\.]+)/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[c,u,[a,se]],[/\bgsa\/([\w\.]+) .*safari\//i],[u,[c,"GSA"],[a,se]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[u,[c,"TikTok"],[a,se]],[/\[(linkedin)app\]/i],[c,[a,se]],[/(zalo(?:app)?)[\/\sa-z]*([\w\.-]+)/i],[[c,/(.+)/,"Zalo"],u,[a,se]],[/(chromium)[\/ ]([-\w\.]+)/i],[c,u],[/headlesschrome(?:\/([\w\.]+)| )/i],[u,[c,vt+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[u,[c,_e+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,vt+" WebView"],u],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[u,[c,"Android"+ke]],[/chrome\/([\w\.]+) mobile/i],[u,[c,ce+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,u],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[u,[c,ce+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[c,ce+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[u,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[u,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[c,u],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[c,ce+xe],u],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],u],[/(wolvic|librewolf)\/([\w\.]+)/i],[c,u],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[u,[c,xe+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+(?= .+rv\:.+gecko\/\d+)|[0-4][\w\.]+(?!.+compatible))/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[c,[u,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[c,[u,/[^\d\.]+./,ne]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[T,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[T,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[T,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[T,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[T,"arm"]],[/ sun4\w[;\)]/i],[[T,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i,/((ppc|powerpc)(64)?)( mac|;|\))/i,/(?:osf1|[freopnt]{3,4}bsd) (alpha)/i],[[T,/ower/,ne,Y]],[/mc680.0/i],[[T,"68k"]],[/winnt.+\[axp/i],[[T,"alpha"]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[l,[d,me],[a,x]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[l,[d,me],[a,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)[\/\);]/i],[l,[d,le],[a,g]],[/\b(?:ios|apple\w+)\/.+[\(\/](ipad)/i,/\b(ipad)[\d,]*[;\] ].+(mac |i(pad)?)os/i],[l,[d,le],[a,x]],[/(macintosh);/i],[l,[d,le]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[l,[d,xt],[a,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[l,[d,wt],[a,x]],[/honor([-\w ]+)[;\)]/i],[l,[d,wt],[a,g]],[/\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],[l,[d,gt],[a,x]],[/(?:huawei) ?([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][\dc][adnt]?)\b(?!.+d\/s)/i],[l,[d,gt],[a,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b(?:xiao)?((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[l,/_/g," "],[d,Ge],[a,x]],[/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/oid[^\)]+; (redmi[\-_ ]?(?:note|k)?[\w_ ]+|m?[12]\d[01]\d\w{3,6}|poco[\w ]+|(shark )?\w{3}-[ah]0|qin ?[1-3](s\+|ultra| pro)?)( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note|max|cc)?[_ ]?(?:\d{0,2}\w?)[_ ]?(?:plus|se|lite|pro)?( 5g|lte)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[l,/_/g," "],[d,Ge],[a,g]],[/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,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[l,[d,yt],[a,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[l,[d,Re],[a,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[l,[d,z,{OnePlus:["203","304","403","404","413","415"],"*":Re}],[a,x]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[l,[d,"BLU"],[a,g]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[l,[d,"Vivo"],[a,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[l,[d,"Realme"],[a,g]],[/(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,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[l,[d,qe],[a,x]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[l,[d,qe],[a,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[l,[d,je],[a,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[l,[d,je],[a,x]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[l,[d,Me],[a,x]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[l,[d,Me],[a,g]],[/(nokia) (t[12][01])/i],[d,l,[a,x]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*?))( bui|\)|;|\/)/i],[[l,/_/g," "],[a,g],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[l,[d,ee],[a,x]],[/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],[l,[d,ee],[a,g]],[/(google) (pixelbook( go)?)/i],[d,l],[/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],[l,[d,ye],[a,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[l,"Xperia Tablet"],[d,ye],[a,x]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[l,[d,Oe],[a,x]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[l,/(.+)/g,"Fire Phone $1"],[d,Oe],[a,g]],[/(playbook);[-\w\),; ]+(rim)/i],[l,d,[a,x]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/(?:blackberry|\(bb10;) (\w+)/i],[l,[d,bt],[a,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[l,[d,pt],[a,x]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[l,[d,pt],[a,g]],[/(nexus 9)/i],[l,[d,"HTC"],[a,x]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[l,/_/g," "],[a,g]],[/tcl (xess p17aa)/i,/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],[l,[d,"TCL"],[a,x]],[/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],[l,[d,"TCL"],[a,g]],[/(itel) ((\w+))/i],[[d,Y],l,[a,z,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[l,[d,"Acer"],[a,x]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[l,[d,"Meizu"],[a,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[l,[d,"Ulefone"],[a,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[l,[d,"Energizer"],[a,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[l,[d,"Cat"],[a,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[l,[d,"Smartfren"],[a,g]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[l,[d,"Nothing"],[a,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[l,[d,"Archos"],[a,x]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[l,[d,"Archos"],[a,g]],[/; (n159v)/i],[l,[d,"HMD"],[a,g]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[d,l,[a,x]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl|wiko)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i,/(hisense) ([ehv][\w ]+)\)/i,/droid[^;]+; (philips)[_ ]([sv-x][\d]{3,4}[xz]?)/i],[d,l,[a,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[d,l,[a,x]],[/(surface duo)/i],[l,[d,Ne],[a,x]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[l,[d,"Fairphone"],[a,g]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[l,[d,mt],[a,x]],[/(sprint) (\w+)/i],[d,l,[a,g]],[/(kin\.[onetw]{3})/i],[[l,/\./g," "],[d,Ne],[a,g]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[l,[d,Xe],[a,x]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[l,[d,Xe],[a,g]],[/(philips)[\w ]+tv/i,/smart-tv.+(samsung)/i],[d,[a,C]],[/hbbtv.+maple;(\d+)/i],[[l,/^/,"SmartTV"],[d,me],[a,C]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[d,l,[a,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,Me],[a,C]],[/(apple) ?tv/i],[d,[l,le+" TV"],[a,C]],[/crkey.*devicetype\/chromecast/i],[[l,X+" Third Generation"],[d,ee],[a,C]],[/crkey.*devicetype\/([^/]*)/i],[[l,/^/,"Chromecast "],[d,ee],[a,C]],[/fuchsia.*crkey/i],[[l,X+" Nest Hub"],[d,ee],[a,C]],[/crkey/i],[[l,X],[d,ee],[a,C]],[/(portaltv)/i],[l,[d,Ye],[a,C]],[/droid.+aft(\w+)( bui|\))/i],[l,[d,Oe],[a,C]],[/(shield \w+ tv)/i],[l,[d,mt],[a,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[l,[d,xt],[a,C]],[/(bravia[\w ]+)( bui|\))/i],[l,[d,ye],[a,C]],[/(mi(tv|box)-?\w+) bui/i],[l,[d,Ge],[a,C]],[/Hbbtv.*(technisat) (.*);/i],[d,l,[a,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,/.+\/(\w+)/,"$1",z,{LG:"lge"}],[l,Le],[a,C]],[/(playstation \w+)/i],[l,[d,ye],[a,Ee]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[l,[d,Ne],[a,Ee]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i,/(valve).+(steam deck)/i,/droid.+; ((shield|rgcube|gr0006))( bui|\))/i],[[d,z,{Nvidia:"Shield",Anbernic:"RGCUBE",Logitech:"GR0006"}],l,[a,Ee]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[l,[d,me],[a,B]],[/((pebble))app/i,/(asus|google|lg|oppo|xiaomi) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,l,[a,B]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[l,[d,Re],[a,B]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[l,[d,le],[a,B]],[/(opwwe\d{3})/i],[l,[d,yt],[a,B]],[/(moto 360)/i],[l,[d,je],[a,B]],[/(smartwatch 3)/i],[l,[d,ye],[a,B]],[/(g watch r)/i],[l,[d,Me],[a,B]],[/droid.+; (wt63?0{2,3})\)/i],[l,[d,Xe],[a,B]],[/droid.+; (glass) \d/i],[l,[d,ee],[a,Ie]],[/(pico) ([\w ]+) os\d/i],[d,l,[a,Ie]],[/(quest( \d| pro)?s?).+vr/i],[l,[d,Ye],[a,Ie]],[/mobile vr; rv.+firefox/i],[[a,Ie]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[a,we]],[/(aeobc)\b/i],[l,[d,Oe],[a,we]],[/(homepod).+mac os/i],[l,[d,le],[a,we]],[/windows iot/i],[[a,we]],[/droid.+; ([\w- ]+) (4k|android|smart|google)[- ]?tv/i],[l,[a,C]],[/\b((4k|android|smart|opera)[- ]?tv|tv; rv:|large screen[\w ]+safari)\b/i],[[a,C]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew|; hmsc).+?(mobile|vr|\d) safari/i],[l,[a,z,{mobile:"Mobile",xr:"VR","*":x}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[a,x]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[a,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[l,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[u,[c,_e+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[c,u],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[c,u],[/ladybird\//i],[[c,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[u,c]],os:[[/(windows nt) (6\.[23]); arm/i],[[c,/N/,"R"],[u,z,Ct]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[c,u],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[u,/(;|\))/g,"",z,Ct],[c,Qe]],[/(windows ce)\/?([\d\.]*)/i],[c,u],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv|ios(?=.+ip(?:ad|hone)|.+apple ?tv)|ip(?:ad|hone)(?: |.+i(?:pad)?)os|apple ?tv.+ios)[\/ ]([\w\.]+)/i,/\btvos ?([\w\.]+)/i,/cfnetwork\/.+darwin/i],[[u,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[c,"macOS"],[u,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[u,[c,X+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[u,[c,X+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[u,[c,X+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[u,[c,X+" Linux"]],[/crkey\/([\d\.]+)/i],[u,[c,X]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[u,c],[/(ubuntu) ([\w\.]+) like android/i],[[c,/(.+)/,"$1 Touch"],u],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[c,u],[/\(bb(10);/i],[u,[c,bt]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[u,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[u,[c,xe+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[u,[c,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[u,z,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[c,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[u,[c,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[c,"Chrome OS"],u],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[c,u],[/(sunos) ?([\d\.]*)/i],[[c,"Solaris"],u],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[c,u]]},Pe=(function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return q.call(e.init,[[M,[c,u,ge,a]],[W,[T]],[$,[a,l,d]],[H,[c,u]],[P,[c,u]]]),q.call(e.isIgnore,[[M,[u,ge]],[H,[u]],[P,[u]]]),q.call(e.isIgnoreRgx,[[M,/ ?browser$/i],[P,/ ?os$/i]]),q.call(e.toString,[[M,[c,u]],[W,[T]],[$,[d,l]],[H,[c,u]],[P,[c,u]]]),e})(),bi=function(e,t){var i=Pe.init[t],r=Pe.isIgnore[t]||0,o=Pe.isIgnoreRgx[t]||0,s=Pe.toString[t]||0;function n(){q.call(this,i)}return n.prototype.getItem=function(){return e},n.prototype.withClientHints=function(){return te?te.getHighEntropyValues(ft).then(function(h){return e.setCH(new Tt(h,!1)).parseCH().get()}):e.parseCH().get()},n.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=oe&&(n.prototype.is=function(h){var p=!1;for(var w in this)if(this.hasOwnProperty(w)&&!Ke(r,w)&&Y(o?de(o,this[w]):this[w])==Y(o?de(o,h):h)){if(p=!0,h!=S.UNDEFINED)break}else if(h==S.UNDEFINED&&p){p=!p;break}return p},n.prototype.toString=function(){var h=ne;for(var p in s)typeof this[s[p]]!==S.UNDEFINED&&(h+=(h?" ":ne)+this[s[p]]);return h||S.UNDEFINED}),n.prototype.then=function(h){var p=this,w=function(){for(var k in p)p.hasOwnProperty(k)&&(this[k]=p[k])};w.prototype={is:n.prototype.is,toString:n.prototype.toString,withClientHints:n.prototype.withClientHints,withFeatureCheck:n.prototype.withFeatureCheck};var m=new w;return h(m),m},new n};function Tt(e,t){if(e=e||{},q.call(this,ft),t)q.call(this,[[Be,Je(e[G])],[Ve,Je(e[oi])],[g,/\?1/.test(e[ci])],[l,Ce(e[di])],[ae,Ce(e[ht])],[We,Ce(e[ui])],[T,Ce(e[si])],[Z,Je(e[li])],[Te,Ce(e[ai])]]);else for(var i in e)this.hasOwnProperty(i)&&typeof e[i]!==S.UNDEFINED&&(this[i]=e[i])}function Q(e,t,i,r){return q.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",i],["data",bi(this,e)]]),this}Q.prototype.get=function(e){return e?this.data.hasOwnProperty(e)?this.data[e]:void 0:this.data},Q.prototype.set=function(e,t){return this.data[e]=t,this},Q.prototype.setCH=function(e){return this.uaCH=e,this},Q.prototype.detectFeature=function(){if(_&&_.userAgent==this.ua)switch(this.itemType){case M:_.brave&&typeof _.brave.isBrave==S.FUNCTION&&this.set(c,"Brave");break;case $:!this.get(a)&&te&&te[g]&&this.set(a,g),this.get(l)=="Macintosh"&&_&&typeof _.standalone!==S.UNDEFINED&&_.maxTouchPoints&&_.maxTouchPoints>2&&this.set(l,"iPad").set(a,x);break;case P:!this.get(c)&&te&&te[ae]&&this.set(c,te[ae]);break;case oe:var e=this.data,t=function(i){return e[i].getItem().detectFeature().get()};this.set(M,t(M)).set(W,t(W)).set($,t($)).set(H,t(H)).set(P,t(P))}return this},Q.prototype.parseUA=function(){switch(this.itemType!=oe&&et.call(this.data,this.ua,this.rgxMap),this.itemType){case M:this.set(ge,Ze(this.get(u)));break;case P:if(this.get(c)=="iOS"&&this.get(u)=="18.6"){var e=/\) Version\/([\d\.]+)/.exec(this.ua);e&&parseInt(e[1].substring(0,2),10)>=26&&this.set(u,e[1])}break}return this},Q.prototype.parseCH=function(){var e=this.uaCH,t=this.rgxMap;switch(this.itemType){case M:case H:var i=e[Ve]||e[Be],r;if(i)for(var o=0;o<i.length;o++){var s=i[o].brand||i[o],n=i[o].version;this.itemType==M&&!/not.a.brand/i.test(s)&&(!r||/Chrom/.test(r)&&s!=kt||r==_e&&/WebView2/.test(s))&&(s=z(s,pi),r=this.get(c),r&&!/Chrom/.test(r)&&/Chrom/.test(s)||this.set(c,s).set(u,n).set(ge,Ze(n)),r=s),this.itemType==H&&s==kt&&this.set(u,n)}break;case W:var h=e[T];h&&(h&&e[Te]=="64"&&(h+="64"),et.call(this.data,h+";",t));break;case $:if(e[g]&&this.set(a,g),e[l]&&(this.set(l,e[l]),!this.get(a)||!this.get(d))){var p={};et.call(p,"droid 9; "+e[l]+")",t),!this.get(a)&&p.type&&this.set(a,p.type),!this.get(d)&&p.vendor&&this.set(d,p.vendor)}if(e[Z]){var w;if(typeof e[Z]!="string")for(var m=0;!w&&m<e[Z].length;)w=z(e[Z][m++],Et);else w=z(e[Z],Et);this.set(a,w)}break;case P:var k=e[ae];if(k){var I=e[We];k==Qe&&(I=parseInt(Ze(I),10)>=13?"11":"10"),this.set(c,k).set(u,I)}this.get(c)==Qe&&e[l]=="Xbox"&&this.set(c,"Xbox").set(u,void 0);break;case oe:var V=this.data,F=function(v){return V[v].getItem().setCH(e).parseCH().get()};this.set(M,F(M)).set(W,F(W)).set($,F($)).set(H,F(H)).set(P,F(P))}return this};function N(e,t,i){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)if(typeof i.append===S.FUNCTION){var r={};i.forEach(function(m,k){r[String(k).toLowerCase()]=m}),i=r}else{var o={};for(var s in i)i.hasOwnProperty(s)&&(o[String(s).toLowerCase()]=i[s]);i=o}if(!(this instanceof N))return new N(e,t,i).getResult();var n=typeof e===S.STRING?e:i&&i[dt]?i[dt]:_&&_.userAgent?_.userAgent:ne,h=new Tt(i,!0),p=t?fi(It,t):It,w=function(m){return m==oe?function(){return new Q(m,n,p,h).set("ua",n).set(M,this.getBrowser()).set(W,this.getCPU()).set($,this.getDevice()).set(H,this.getEngine()).set(P,this.getOS()).get()}:function(){return new Q(m,n,p[m],h).parseUA().get()}};return q.call(this,[["getBrowser",w(M)],["getCPU",w(W)],["getDevice",w($)],["getEngine",w(H)],["getOS",w(P)],["getResult",w(oe)],["getUA",function(){return n}],["setUA",function(m){return Se(m)&&(n=Le(m,ni)),this}]]).setUA(n),this}N.VERSION=ri,N.BROWSER=Ae([c,u,ge,a]),N.CPU=Ae([T]),N.DEVICE=Ae([l,d,a,Ee,g,C,x,B,we]),N.ENGINE=N.OS=Ae([c,u]);const gi=()=>{const t=new N().getResult();return{os:t.os.name||"unknown",osVersion:t.os.version||"unknown",browser:t.browser.name||"unknown",browserVersion:t.browser.version||"unknown",deviceType:t.device.type||"desktop"}};function wi(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const i=document.implementation.createHTMLDocument(),r=i.createElement("base"),o=i.createElement("a");return i.head.appendChild(r),i.body.appendChild(o),t&&(r.href=t),o.href=e,o.href}const mi=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function K(e){const t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i]);return t}let ue=null;function Ot(e={}){return ue||(e.includeStyleProperties?(ue=e.includeStyleProperties,ue):(ue=K(window.getComputedStyle(document.documentElement)),ue))}function De(e,t){const r=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return r?parseFloat(r.replace("px","")):0}function yi(e){const t=De(e,"border-left-width"),i=De(e,"border-right-width");return e.clientWidth+t+i}function xi(e){const t=De(e,"border-top-width"),i=De(e,"border-bottom-width");return e.clientHeight+t+i}function Mt(e,t={}){const i=t.width||yi(e),r=t.height||xi(e);return{width:i,height:r}}function vi(){let e,t;try{t=process}catch{}const i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const D=16384;function ki(e){(e.width>D||e.height>D)&&(e.width>D&&e.height>D?e.width>e.height?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D):e.width>D?(e.height*=D/e.width,e.width=D):(e.width*=D/e.height,e.height=D))}function He(e){return new Promise((t,i)=>{const r=new Image;r.onload=()=>{r.decode().then(()=>{requestAnimationFrame(()=>t(r))})},r.onerror=i,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function Si(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function Ci(e,t,i){const r="http://www.w3.org/2000/svg",o=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");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),Si(o)}const A=(e,t)=>{if(e instanceof t)return!0;const i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||A(i,t)};function Ei(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Ii(e,t){return Ot(t).map(i=>{const r=e.getPropertyValue(i),o=e.getPropertyPriority(i);return`${i}: ${r}${o?" !important":""};`}).join(" ")}function Ti(e,t,i,r){const o=`.${e}:${t}`,s=i.cssText?Ei(i):Ii(i,r);return document.createTextNode(`${o}{${s}}`)}function _t(e,t,i,r){const o=window.getComputedStyle(e,i),s=o.getPropertyValue("content");if(s===""||s==="none")return;const n=mi();try{t.className=`${t.className} ${n}`}catch{return}const h=document.createElement("style");h.appendChild(Ti(n,i,o,r)),t.appendChild(h)}function Oi(e,t,i){_t(e,t,":before",i),_t(e,t,":after",i)}const At="application/font-woff",Ft="image/jpeg",Mi={woff:At,woff2:At,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:Ft,jpeg:Ft,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function _i(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function tt(e){const t=_i(e).toLowerCase();return Mi[t]||""}function Ai(e){return e.split(/,/)[1]}function it(e){return e.search(/^(data:)/)!==-1}function Fi(e,t){return`data:${t};base64,${e}`}async function Lt(e,t,i){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const o=await r.blob();return new Promise((s,n)=>{const h=new FileReader;h.onerror=n,h.onloadend=()=>{try{s(i({res:r,result:h.result}))}catch(p){n(p)}},h.readAsDataURL(o)})}const rt={};function Li(e,t,i){let r=e.replace(/\?.*/,"");return i&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function nt(e,t,i){const r=Li(e,t,i.includeQueryParams);if(rt[r]!=null)return rt[r];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let o;try{const s=await Lt(e,i.fetchRequestInit,({res:n,result:h})=>(t||(t=n.headers.get("Content-Type")||""),Ai(h)));o=Fi(s,t)}catch(s){o=i.imagePlaceholder||"";let n=`Failed to fetch resource: ${e}`;s&&(n=typeof s=="string"?s:s.message),n&&console.warn(n)}return rt[r]=o,o}async function Pi(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):He(t)}async function Di(e,t){if(e.currentSrc){const s=document.createElement("canvas"),n=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,n?.drawImage(e,0,0,s.width,s.height);const h=s.toDataURL();return He(h)}const i=e.poster,r=tt(i),o=await nt(i,r,t);return He(o)}async function Hi(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await ze(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function zi(e,t){return A(e,HTMLCanvasElement)?Pi(e):A(e,HTMLVideoElement)?Di(e,t):A(e,HTMLIFrameElement)?Hi(e,t):e.cloneNode(Pt(e))}const Ui=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",Pt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function $i(e,t,i){var r,o;if(Pt(t))return t;let s=[];return Ui(e)&&e.assignedNodes?s=K(e.assignedNodes()):A(e,HTMLIFrameElement)&&(!((r=e.contentDocument)===null||r===void 0)&&r.body)?s=K(e.contentDocument.body.childNodes):s=K(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes),s.length===0||A(e,HTMLVideoElement)||await s.reduce((n,h)=>n.then(()=>ze(h,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bi(e,t,i){const r=t.style;if(!r)return;const o=window.getComputedStyle(e);o.cssText?(r.cssText=o.cssText,r.transformOrigin=o.transformOrigin):Ot(i).forEach(s=>{let n=o.getPropertyValue(s);s==="font-size"&&n.endsWith("px")&&(n=`${Math.floor(parseFloat(n.substring(0,n.length-2)))-.1}px`),A(e,HTMLIFrameElement)&&s==="display"&&n==="inline"&&(n="block"),s==="d"&&t.getAttribute("d")&&(n=`path(${t.getAttribute("d")})`),r.setProperty(s,n,o.getPropertyPriority(s))})}function Vi(e,t){A(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),A(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Wi(e,t){if(A(e,HTMLSelectElement)){const r=Array.from(t.children).find(o=>e.value===o.getAttribute("value"));r&&r.setAttribute("selected","")}}function qi(e,t,i){return A(t,Element)&&(Bi(e,t,i),Oi(e,t,i),Vi(e,t),Wi(e,t)),t}async function Ni(e,t){const i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;const r={};for(let s=0;s<i.length;s++){const h=i[s].getAttribute("xlink:href");if(h){const p=e.querySelector(h),w=document.querySelector(h);!p&&w&&!r[h]&&(r[h]=await ze(w,t,!0))}}const o=Object.values(r);if(o.length){const s="http://www.w3.org/1999/xhtml",n=document.createElementNS(s,"svg");n.setAttribute("xmlns",s),n.style.position="absolute",n.style.width="0",n.style.height="0",n.style.overflow="hidden",n.style.display="none";const h=document.createElementNS(s,"defs");n.appendChild(h);for(let p=0;p<o.length;p++)h.appendChild(o[p]);e.appendChild(n)}return e}async function ze(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>zi(r,t)).then(r=>$i(e,r,t)).then(r=>qi(e,r,t)).then(r=>Ni(r,t))}const Dt=/url\((['"]?)([^'"]+?)\1\)/g,ji=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,Ri=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function Gi(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function Xi(e){const t=[];return e.replace(Dt,(i,r,o)=>(t.push(o),i)),t.filter(i=>!it(i))}async function Yi(e,t,i,r,o){try{const s=i?wi(t,i):t,n=tt(t);let h;return o||(h=await nt(s,n,r)),e.replace(Gi(t),`$1${h}$3`)}catch{}return e}function Qi(e,{preferredFontFormat:t}){return t?e.replace(Ri,i=>{for(;;){const[r,,o]=ji.exec(i)||[];if(!o)return"";if(o===t)return`src: ${r};`}}):e}function Ht(e){return e.search(Dt)!==-1}async function zt(e,t,i){if(!Ht(e))return e;const r=Qi(e,i);return Xi(r).reduce((s,n)=>s.then(h=>Yi(h,n,t,i)),Promise.resolve(r))}async function he(e,t,i){var r;const o=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(o){const s=await zt(o,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Ki(e,t){await he("background",e,t)||await he("background-image",e,t),await he("mask",e,t)||await he("-webkit-mask",e,t)||await he("mask-image",e,t)||await he("-webkit-mask-image",e,t)}async function Ji(e,t){const i=A(e,HTMLImageElement);if(!(i&&!it(e.src))&&!(A(e,SVGImageElement)&&!it(e.href.baseVal)))return;const r=i?e.src:e.href.baseVal,o=await nt(r,tt(r),t);await new Promise((s,n)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(w){n(w)}}:n;const h=e;h.decode&&(h.decode=s),h.loading==="lazy"&&(h.loading="eager"),i?(e.srcset="",e.src=o):e.href.baseVal=o})}async function Zi(e,t){const r=K(e.childNodes).map(o=>Ut(o,t));await Promise.all(r).then(()=>e)}async function Ut(e,t){A(e,Element)&&(await Ki(e,t),await Ji(e,t),await Zi(e,t))}function er(e,t){const{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(o=>{i[o]=r[o]}),e}const $t={};async function Bt(e){let t=$t[e];if(t!=null)return t;const r=await(await fetch(e)).text();return t={url:e,cssText:r},$t[e]=t,t}async function Vt(e,t){let i=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async n=>{let h=n.replace(r,"$1");return h.startsWith("https://")||(h=new URL(h,e.url).href),Lt(h,t.fetchRequestInit,({result:p})=>(i=i.replace(n,`url(${p})`),[n,p]))});return Promise.all(s).then(()=>i)}function Wt(e){if(e==null)return[];const t=[],i=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(i,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const p=o.exec(r);if(p===null)break;t.push(p[0])}r=r.replace(o,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,n="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",h=new RegExp(n,"gi");for(;;){let p=s.exec(r);if(p===null){if(p=h.exec(r),p===null)break;s.lastIndex=h.lastIndex}else h.lastIndex=s.lastIndex;t.push(p[0])}return t}async function tr(e,t){const i=[],r=[];return e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach((s,n)=>{if(s.type===CSSRule.IMPORT_RULE){let h=n+1;const p=s.href,w=Bt(p).then(m=>Vt(m,t)).then(m=>Wt(m).forEach(k=>{try{o.insertRule(k,k.startsWith("@import")?h+=1:o.cssRules.length)}catch(I){console.error("Error inserting rule from remote css",{rule:k,error:I})}})).catch(m=>{console.error("Error loading remote css",m.toString())});r.push(w)}})}catch(s){const n=e.find(h=>h.href==null)||document.styleSheets[0];o.href!=null&&r.push(Bt(o.href).then(h=>Vt(h,t)).then(h=>Wt(h).forEach(p=>{n.insertRule(p,n.cssRules.length)})).catch(h=>{console.error("Error loading remote stylesheet",h)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(o=>{if("cssRules"in o)try{K(o.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${o.href}`,s)}}),i))}function ir(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>Ht(t.style.getPropertyValue("src")))}async function rr(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const i=K(e.ownerDocument.styleSheets),r=await tr(i,t);return ir(r)}function qt(e){return e.trim().replace(/["']/g,"")}function nr(e){const t=new Set;function i(r){(r.style.fontFamily||getComputedStyle(r).fontFamily).split(",").forEach(s=>{t.add(qt(s))}),Array.from(r.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function or(e,t){const i=await rr(e,t),r=nr(e);return(await Promise.all(i.filter(s=>r.has(qt(s.style.fontFamily))).map(s=>{const n=s.parentStyleSheet?s.parentStyleSheet.href:null;return zt(s.cssText,n,t)}))).join(`
|
|
2
|
+
`)}async function sr(e,t){const i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await or(e,t);if(i){const r=document.createElement("style"),o=document.createTextNode(i);r.appendChild(o),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function ar(e,t={}){const{width:i,height:r}=Mt(e,t),o=await ze(e,t,!0);return await sr(o,t),await Ut(o,t),er(o,t),await Ci(o,i,r)}async function lr(e,t={}){const{width:i,height:r}=Mt(e,t),o=await ar(e,t),s=await He(o),n=document.createElement("canvas"),h=n.getContext("2d"),p=t.pixelRatio||vi(),w=t.canvasWidth||i,m=t.canvasHeight||r;return n.width=w*p,n.height=m*p,t.skipAutoScale||ki(n),n.style.width=`${w}`,n.style.height=`${m}`,t.backgroundColor&&(h.fillStyle=t.backgroundColor,h.fillRect(0,0,n.width,n.height)),h.drawImage(s,0,0,n.width,n.height),n}async function cr(e,t={}){return(await lr(e,t)).toDataURL()}const dr=async e=>{try{const t=document.documentElement,i=e?e.x:0,r=e?e.y:0,o=e?e.width:window.innerWidth,s=e?e.height:window.innerHeight,n=t.getBoundingClientRect(),h=window.getComputedStyle(t),p=parseFloat(h.marginLeft)||0,w=parseFloat(h.marginTop)||0,m=i-n.left+p,k=r-n.top+w;return await cr(t,{quality:.9,pixelRatio:1,cacheBust:!0,skipAutoScale:!0,width:o,height:s,canvasWidth:o,canvasHeight:s,style:{transform:`translate(${-m}px, ${-k}px)`}})}catch(t){return console.error("Screenshot capture failed:",t),null}};const ur=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hr=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,i,r)=>r?r.toUpperCase():i.toLowerCase()),Nt=e=>{const t=hr(e);return t.charAt(0).toUpperCase()+t.slice(1)},jt=(...e)=>e.filter((t,i,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===i).join(" ").trim(),fr=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var pr={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const br=y.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:i=2,absoluteStrokeWidth:r,className:o="",children:s,iconNode:n,...h},p)=>y.createElement("svg",{ref:p,...pr,width:t,height:t,stroke:e,strokeWidth:r?Number(i)*24/Number(t):i,className:jt("lucide",o),...!s&&!fr(h)&&{"aria-hidden":"true"},...h},[...n.map(([w,m])=>y.createElement(w,m)),...Array.isArray(s)?s:[s]]));const ie=(e,t)=>{const i=y.forwardRef(({className:r,...o},s)=>y.createElement(br,{ref:s,iconNode:t,className:jt(`lucide-${ur(Nt(e))}`,`lucide-${e}`,r),...o}));return i.displayName=Nt(e),i};const gr=ie("crop",[["path",{d:"M6 2v14a2 2 0 0 0 2 2h14",key:"ron5a4"}],["path",{d:"M18 22V8a2 2 0 0 0-2-2H2",key:"7s9ehn"}]]);const Rt=ie("hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const wr=ie("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);const mr=ie("message-square-plus",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]]);const yr=ie("monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);const xr=ie("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]);const Gt=ie("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),vr=({onConfirm:e,onCancel:t})=>{const[i,r]=y.useState(!1),[o,s]=y.useState({x:0,y:0}),[n,h]=y.useState({x:0,y:0}),p=v=>{r(!0),s({x:v.clientX,y:v.clientY}),h({x:v.clientX,y:v.clientY})},w=v=>{i&&h({x:v.clientX,y:v.clientY})},m=()=>{F()},k=v=>{if(v.touches.length===1){r(!0);const O=v.touches[0];s({x:O.clientX,y:O.clientY}),h({x:O.clientX,y:O.clientY}),document.body.style.overflow="hidden"}},I=v=>{if(i&&v.touches.length===1){const O=v.touches[0];h({x:O.clientX,y:O.clientY})}},V=()=>{F(),document.body.style.overflow=""},F=()=>{if(i){r(!1);const v=Math.min(o.x,n.x),O=Math.min(o.y,n.y),j=Math.abs(n.x-o.x),J=Math.abs(n.y-o.y);j>10&&J>10&&e({x:v,y:O,width:j,height:J})}};return y.useEffect(()=>{const v=O=>{O.key==="Escape"&&t()};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[t]),f.jsxs("div",{style:{position:"fixed",inset:0,zIndex:99999,cursor:"crosshair",userSelect:"none"},onMouseDown:p,onMouseMove:w,onMouseUp:m,onTouchStart:k,onTouchMove:I,onTouchEnd:V,children:[f.jsx("div",{style:{position:"absolute",inset:0,backgroundColor:"rgba(0, 0, 0, 0.4)"}}),!i&&f.jsx("div",{style:{position:"absolute",top:"20px",left:"50%",transform:"translateX(-50%)",background:"rgba(0,0,0,0.8)",color:"white",padding:"8px 16px",borderRadius:"20px",pointerEvents:"none",fontSize:"14px"},children:"Kéo chuột hoặc chạm để chọn vùng chụp ảnh (ESC để hủy)"}),i&&f.jsx("div",{style:{position:"absolute",left:Math.min(o.x,n.x),top:Math.min(o.y,n.y),width:Math.abs(n.x-o.x),height:Math.abs(n.y-o.y),border:"2px solid #fff",backgroundColor:"rgba(255, 255, 255, 0.1)",boxShadow:"0 0 0 9999px rgba(0, 0, 0, 0.5)"}})]})},Xt=({questionId:e,questionIdChild:t,contextData:i,onSubmit:r,themeColor:o="#3b82f6",triggerComponent:s,isOpen:n,onOpen:h,onClose:p})=>{const[w,m]=y.useState(!1),[k,I]=y.useState(""),[V,F]=y.useState(e),[v,O]=y.useState(t||""),[j,J]=y.useState([]),[ot,st]=y.useState(null),[Cr,Qt]=y.useState(!1),[re,Kt]=y.useState(!1),[Jt,Ue]=y.useState(!1),[R,fe]=y.useState(null),[L,pe]=y.useState({}),[Zt,$e]=y.useState("incorrect_content"),[Er,at]=y.useState(!1),lt=n!==void 0?n:w,Ir=lt&&!Er;y.useEffect(()=>{lt&&(pe({}),F(e),O(t||""),J([]),I(""),$e("incorrect_content"))},[lt,e,t]);const Tr=()=>{J([]),I(""),F(e),O(t||""),$e("incorrect_content"),pe({}),n===void 0&&m(!0)},ei=async b=>{if(j.length>=3){alert("Bạn chỉ có thể chụp tối đa 3 ảnh.");return}if(at(!0),b==="crop"){setTimeout(()=>Ue(!0),150);return}setTimeout(async()=>{await ti()},150)},ti=async b=>{Qt(!0);try{const E=await dr(b);E?J(be=>[...be,E]):alert("Không thể chụp ảnh màn hình. Vui lòng thử lại.")}catch(E){console.error(E)}finally{Qt(!1),at(!1)}},Or=b=>{Ue(!1),ti(b)},Mr=()=>{Ue(!1),at(!1)},_r=b=>{J(E=>E.filter((be,ii)=>ii!==b))},ct=()=>{p&&p(),m(!1),J([]),Ue(!1),st(null),I(""),pe({}),$e("incorrect_content")},Ar=async()=>{const b={};if(V?isNaN(Number(V))&&(b.questionId="ID câu hỏi phải là số"):b.questionId="Vui lòng nhập ID câu hỏi",v&&isNaN(Number(v))&&(b.questionIdChild="ID câu hỏi con phải là số"),k.trim()||(b.description="Vui lòng nhập mô tả lỗi"),Object.keys(b).length>0){pe(b);return}Kt(!0);try{const E=gi(),be=await Promise.all(j.map(async Fr=>(await(await fetch("https://lcms.icanwork.vn/api/upload-to-s3/upload-image-error-to-s3",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({base64:Fr})})).json()).file_url));await r({idQuestion:V,idChildQuestion:v,errorType:Zt,errorDescription:k,listImage:be,deviceInfo:E,contextData:i}),ct()}catch(E){console.error("Submit feedback failed",E)}finally{Kt(!1)}};return f.jsxs(f.Fragment,{children:[f.jsx("style",{id:"feedback-widget-styles",children:`
|
|
3
3
|
@keyframes fb-fade-in {
|
|
4
4
|
from { opacity: 0; transform: translateY(10px); }
|
|
5
5
|
to { opacity: 1; transform: translateY(0); }
|
|
@@ -47,4 +47,4 @@
|
|
|
47
47
|
display: none !important;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`}),Jt&&f.jsx(vr,{onConfirm:Or,onCancel:Mr}),nt&&f.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.8)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",cursor:"zoom-out",animation:"fb-fade-in 0.2s ease-out",backdropFilter:"blur(4px)"},onClick:()=>ot(null),children:f.jsx("img",{src:nt,alt:"Zoomed",draggable:!1,onContextMenu:b=>b.preventDefault(),style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:"8px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",backgroundColor:"white",userSelect:"none",WebkitUserSelect:"none"}})}),f.jsx("div",{onClick:()=>{n===void 0?Tr():h&&h()},style:{cursor:"pointer",display:"inline-block"},children:s||f.jsx("button",{className:"fb-widget-trigger",style:{position:"fixed",bottom:"24px",right:"24px",backgroundColor:o,color:"white",border:"none",borderRadius:"50%",width:"48px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer",zIndex:9990,transition:"transform 0.2s"},title:"Báo lỗi",onMouseEnter:b=>b.currentTarget.style.transform="scale(1.1)",onMouseLeave:b=>b.currentTarget.style.transform="scale(1)",children:f.jsx(mr,{size:24})})}),Cr&&f.jsx("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..."}),Ir&&!Jt&&!nt&&f.jsxs("div",{className:"fb-widget-modal",children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx("h2",{style:{margin:0,fontSize:"1rem",fontWeight:700,color:"#111827"},children:"Báo lỗi"}),f.jsx("button",{onClick:ct,style:{background:"transparent",border:"none",cursor:"pointer",color:"#6b7280",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:b=>b.currentTarget.style.backgroundColor="transparent",children:f.jsx(Gt,{size:18})})]}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["ID Câu hỏi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="id"?o:L.questionId?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:V,onFocus:()=>fe("id"),onBlur:()=>fe(null),onChange:b=>{F(b.target.value),L.questionId&&pe(E=>({...E,questionId:void 0}))},disabled:!!e,placeholder:"Nhập ID (ví dụ: 101)",style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionId?"#ef4444":R==="id"?o:"#e5e7eb"}`,boxShadow:R==="id"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionId&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionId})]}),f.jsxs("div",{children:[f.jsx("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:"ID Câu hỏi con"}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="idChild"?o:L.questionIdChild?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:v,onFocus:()=>fe("idChild"),onBlur:()=>fe(null),onChange:b=>{O(b.target.value)},placeholder:"Nhập ID (ví dụ: 101)",disabled:!!t,style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionIdChild?"#ef4444":R==="idChild"?o:"#e5e7eb"}`,boxShadow:R==="idChild"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionIdChild&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionIdChild})]}),f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Loại lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("select",{value:Zt,onChange:b=>st(b.target.value),style:{width:"100%",padding:"6px 10px",borderRadius:"6px",border:"1px solid #e5e7eb",backgroundColor:"#f9fafb",fontSize:"0.85rem",color:"#1f2937",outline:"none",cursor:"pointer",appearance:"none",backgroundImage:`url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 10px center",backgroundSize:"14px"},children:[f.jsx("option",{value:"incorrect_content",children:"Lỗi nội dung"}),f.jsx("option",{value:"display_error",children:"Lỗi hiển thị"}),f.jsx("option",{value:"missing_data",children:"Thiếu thông tin"}),f.jsx("option",{value:"technical_issue",children:"Lỗi kỹ thuật"}),f.jsx("option",{value:"other",children:"Khác"})]})]}),f.jsxs("div",{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"2px"},children:[f.jsxs("label",{style:{fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Mô tả lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("span",{style:{fontSize:"0.7rem",color:"#9ca3af"},children:[k.length,"/1000"]})]}),f.jsxs("div",{style:{position:"relative"},children:[f.jsx("div",{style:{position:"absolute",left:"10px",top:"8px",pointerEvents:"none"},children:f.jsx(xr,{size:12,style:{color:R==="desc"?o:L.description?"#ef4444":"#9ca3af",transition:"color 0.2s"}})}),f.jsx("textarea",{value:k,onFocus:()=>fe("desc"),onBlur:()=>fe(null),onChange:b=>{T(b.target.value),L.description&&pe(E=>({...E,description:void 0}))},maxLength:1e3,placeholder:"Mô tả chi tiết...",style:{width:"100%",minHeight:"60px",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.description?"#ef4444":R==="desc"?o:"#e5e7eb"}`,boxShadow:R==="desc"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",resize:"vertical",boxSizing:"border-box",transition:"all 0.2s",backgroundColor:"#f9fafb",lineHeight:"1.4",fontFamily:"inherit"}})]}),L.description&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.description})]})]}),f.jsxs("div",{style:{marginBottom:"2px"},children:[f.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:f.jsxs("label",{style:{fontWeight:600,fontSize:"0.8rem",color:"#374151"},children:["Ảnh chụp (",j.length,"/3)"]})}),j.length>0&&f.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",marginBottom:"8px"},children:j.map((b,E)=>f.jsxs("div",{style:{position:"relative",aspectRatio:"16/9",border:"1px solid #e5e7eb",borderRadius:"6px",overflow:"hidden",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[f.jsx("img",{src:b,alt:`Screenshot ${E+1}`,draggable:!1,onContextMenu:be=>be.preventDefault(),style:{width:"100%",height:"100%",objectFit:"cover",cursor:"zoom-in",transition:"transform 0.2s",userSelect:"none",WebkitUserSelect:"none"},onClick:()=>ot(b)}),f.jsx("button",{onClick:()=>Ar(E),title:"Xóa ảnh",style:{position:"absolute",top:"2px",right:"2px",background:"rgba(239, 68, 68, 0.9)",color:"white",border:"none",borderRadius:"50%",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0,boxShadow:"0 1px 2px rgba(0,0,0,0.2)"},children:f.jsx(Gt,{size:10})})]},E))}),j.length<3&&f.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f.jsxs("button",{onClick:()=>ei("full"),style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(yr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Toàn màn hình"})]}),f.jsxs("button",{onClick:()=>ei("crop"),className:"fb-btn-crop",style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(gr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Chọn vùng"})]})]})]}),f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"auto",paddingTop:"8px",borderTop:"1px solid #f3f4f6"},children:[f.jsx("button",{onClick:ct,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"1px solid #d1d5db",background:"white",cursor:"pointer",color:"#374151",fontWeight:500,fontSize:"0.85rem",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.background="#f9fafb",onMouseLeave:b=>b.currentTarget.style.background="white",children:"Hủy bỏ"}),f.jsx("button",{onClick:_r,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"none",background:o,color:"white",cursor:re?"not-allowed":"pointer",fontWeight:600,fontSize:"0.85rem",opacity:re?.7:1,boxShadow:"0 2px 4px -1px rgba(0, 0, 0, 0.1)",transition:"transform 0.1s, opacity 0.2s"},onMouseDown:b=>!re&&(b.currentTarget.style.transform="scale(0.98)"),onMouseUp:b=>!re&&(b.currentTarget.style.transform="scale(1)"),children:re?f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f.jsx(wr,{size:16,style:{animation:"fb-spin 1s linear infinite"}}),f.jsx("span",{children:"Đang gửi..."})]}):"Gửi báo lỗi"})]})]})]})},Yt=y.createContext(void 0),kr=()=>{const e=y.useContext(Yt);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e},Sr=({children:e,onSubmit:t,themeColor:i})=>{const[r,o]=y.useState(!1),[s,n]=y.useState(null),[h,p]=y.useState(""),[w,m]=y.useState(void 0),k=(V,F,v)=>{n(V),p(F||""),m(v),o(!0)},T=()=>{o(!1)};return f.jsxs(Yt.Provider,{value:{openFeedback:k,closeFeedback:T,isOpen:r,activeQuestionId:s},children:[e,s&&f.jsx(Xt,{questionId:s,questionIdChild:h,contextData:w,onSubmit:t,themeColor:i,isOpen:r,onClose:T,triggerComponent:f.jsx(f.Fragment,{})})]})};U.FeedbackProvider=Sr,U.FeedbackWidget=Xt,U.useFeedback=kr,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|
|
50
|
+
`}),Jt&&f.jsx(vr,{onConfirm:Or,onCancel:Mr}),ot&&f.jsx("div",{style:{position:"fixed",inset:0,backgroundColor:"rgba(0,0,0,0.8)",zIndex:1e4,display:"flex",alignItems:"center",justifyContent:"center",cursor:"zoom-out",animation:"fb-fade-in 0.2s ease-out",backdropFilter:"blur(4px)"},onClick:()=>st(null),children:f.jsx("img",{src:ot,alt:"Zoomed",draggable:!1,onContextMenu:b=>b.preventDefault(),style:{maxWidth:"90vw",maxHeight:"90vh",objectFit:"contain",borderRadius:"8px",boxShadow:"0 20px 25px -5px rgba(0, 0, 0, 0.1)",backgroundColor:"white",userSelect:"none",WebkitUserSelect:"none"}})}),f.jsx("div",{onClick:()=>{n===void 0?Tr():h&&h()},style:{cursor:"pointer",display:"inline-block"},children:s||f.jsx("button",{className:"fb-widget-trigger",style:{position:"fixed",bottom:"24px",right:"24px",backgroundColor:o,color:"white",border:"none",borderRadius:"50%",width:"48px",height:"48px",display:"flex",alignItems:"center",justifyContent:"center",boxShadow:"0 4px 12px rgba(0,0,0,0.15)",cursor:"pointer",zIndex:9990,transition:"transform 0.2s"},title:"Báo lỗi",onMouseEnter:b=>b.currentTarget.style.transform="scale(1.1)",onMouseLeave:b=>b.currentTarget.style.transform="scale(1)",children:f.jsx(mr,{size:24})})}),Cr&&f.jsx("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..."}),Ir&&!Jt&&!ot&&f.jsxs("div",{className:"fb-widget-modal",children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f.jsx("h2",{style:{margin:0,fontSize:"1rem",fontWeight:700,color:"#111827"},children:"Báo lỗi"}),f.jsx("button",{onClick:ct,style:{background:"transparent",border:"none",cursor:"pointer",color:"#6b7280",padding:"4px",display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"50%",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.backgroundColor="#f3f4f6",onMouseLeave:b=>b.currentTarget.style.backgroundColor="transparent",children:f.jsx(Gt,{size:18})})]}),f.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"10px"},children:[f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["ID Câu hỏi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="id"?o:L.questionId?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:V,onFocus:()=>fe("id"),onBlur:()=>fe(null),onChange:b=>{F(b.target.value),L.questionId&&pe(E=>({...E,questionId:void 0}))},disabled:!!e,placeholder:"Nhập ID (ví dụ: 101)",style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionId?"#ef4444":R==="id"?o:"#e5e7eb"}`,boxShadow:R==="id"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionId&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionId})]}),f.jsxs("div",{children:[f.jsx("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:"ID Câu hỏi con"}),f.jsxs("div",{style:{position:"relative",display:"flex",alignItems:"center",transition:"all 0.2s"},children:[f.jsx(Rt,{size:12,style:{position:"absolute",left:"10px",color:R==="idChild"?o:L.questionIdChild?"#ef4444":"#9ca3af",transition:"color 0.2s",pointerEvents:"none"}}),f.jsx("input",{type:"text",value:v,onFocus:()=>fe("idChild"),onBlur:()=>fe(null),onChange:b=>{O(b.target.value)},placeholder:"Nhập ID (ví dụ: 101)",disabled:!!t,style:{width:"100%",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.questionIdChild?"#ef4444":R==="idChild"?o:"#e5e7eb"}`,boxShadow:R==="idChild"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",transition:"all 0.2s",backgroundColor:"#f9fafb"}})]}),L.questionIdChild&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.questionIdChild})]}),f.jsxs("div",{children:[f.jsxs("label",{style:{display:"block",marginBottom:"2px",fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Loại lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("select",{value:Zt,onChange:b=>$e(b.target.value),style:{width:"100%",padding:"6px 10px",borderRadius:"6px",border:"1px solid #e5e7eb",backgroundColor:"#f9fafb",fontSize:"0.85rem",color:"#1f2937",outline:"none",cursor:"pointer",appearance:"none",backgroundImage:`url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 10px center",backgroundSize:"14px"},children:[f.jsx("option",{value:"incorrect_content",children:"Lỗi nội dung"}),f.jsx("option",{value:"display_error",children:"Lỗi hiển thị"}),f.jsx("option",{value:"missing_data",children:"Thiếu thông tin"}),f.jsx("option",{value:"technical_issue",children:"Lỗi kỹ thuật"}),f.jsx("option",{value:"other",children:"Khác"})]})]}),f.jsxs("div",{children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"2px"},children:[f.jsxs("label",{style:{fontSize:"0.8rem",fontWeight:600,color:"#374151"},children:["Mô tả lỗi ",f.jsx("span",{style:{color:"#ef4444"},children:"*"})]}),f.jsxs("span",{style:{fontSize:"0.7rem",color:"#9ca3af"},children:[k.length,"/1000"]})]}),f.jsxs("div",{style:{position:"relative"},children:[f.jsx("div",{style:{position:"absolute",left:"10px",top:"8px",pointerEvents:"none"},children:f.jsx(xr,{size:12,style:{color:R==="desc"?o:L.description?"#ef4444":"#9ca3af",transition:"color 0.2s"}})}),f.jsx("textarea",{value:k,onFocus:()=>fe("desc"),onBlur:()=>fe(null),onChange:b=>{I(b.target.value),L.description&&pe(E=>({...E,description:void 0}))},maxLength:1e3,placeholder:"Mô tả chi tiết...",style:{width:"100%",minHeight:"60px",padding:"6px 10px 6px 28px",borderRadius:"6px",border:`1px solid ${L.description?"#ef4444":R==="desc"?o:"#e5e7eb"}`,boxShadow:R==="desc"?`0 0 0 2px ${o}20`:"none",outline:"none",fontSize:"0.85rem",color:"#1f2937",resize:"vertical",boxSizing:"border-box",transition:"all 0.2s",backgroundColor:"#f9fafb",lineHeight:"1.4",fontFamily:"inherit"}})]}),L.description&&f.jsx("span",{style:{display:"block",marginTop:"2px",fontSize:"0.7rem",color:"#ef4444"},children:L.description})]})]}),f.jsxs("div",{style:{marginBottom:"2px"},children:[f.jsx("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"6px"},children:f.jsxs("label",{style:{fontWeight:600,fontSize:"0.8rem",color:"#374151"},children:["Ảnh chụp (",j.length,"/3)"]})}),j.length>0&&f.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"6px",marginBottom:"8px"},children:j.map((b,E)=>f.jsxs("div",{style:{position:"relative",aspectRatio:"16/9",border:"1px solid #e5e7eb",borderRadius:"6px",overflow:"hidden",boxShadow:"0 1px 2px rgba(0,0,0,0.05)"},children:[f.jsx("img",{src:b,alt:`Screenshot ${E+1}`,draggable:!1,onContextMenu:be=>be.preventDefault(),style:{width:"100%",height:"100%",objectFit:"cover",cursor:"zoom-in",transition:"transform 0.2s",userSelect:"none",WebkitUserSelect:"none"},onClick:()=>st(b)}),f.jsx("button",{onClick:()=>_r(E),title:"Xóa ảnh",style:{position:"absolute",top:"2px",right:"2px",background:"rgba(239, 68, 68, 0.9)",color:"white",border:"none",borderRadius:"50%",width:"16px",height:"16px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",padding:0,boxShadow:"0 1px 2px rgba(0,0,0,0.2)"},children:f.jsx(Gt,{size:10})})]},E))}),j.length<3&&f.jsxs("div",{style:{display:"flex",gap:"8px"},children:[f.jsxs("button",{onClick:()=>ei("full"),style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(yr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Toàn màn hình"})]}),f.jsxs("button",{onClick:()=>ei("crop"),className:"fb-btn-crop",style:{flex:1,padding:"12px",textAlign:"center",background:"white",border:"1px dashed #d1d5db",borderRadius:"8px",color:"#4b5563",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",gap:"4px",transition:"all 0.2s"},onMouseOver:b=>{b.currentTarget.style.borderColor=o,b.currentTarget.style.color=o,b.currentTarget.style.backgroundColor="#f9fafb"},onMouseOut:b=>{b.currentTarget.style.borderColor="#d1d5db",b.currentTarget.style.color="#4b5563",b.currentTarget.style.backgroundColor="white"},children:[f.jsx(gr,{size:18}),f.jsx("span",{style:{fontSize:"0.8rem",fontWeight:500},children:"Chọn vùng"})]})]})]}),f.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:"8px",marginTop:"auto",paddingTop:"8px",borderTop:"1px solid #f3f4f6"},children:[f.jsx("button",{onClick:ct,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"1px solid #d1d5db",background:"white",cursor:"pointer",color:"#374151",fontWeight:500,fontSize:"0.85rem",transition:"background-color 0.2s"},onMouseEnter:b=>b.currentTarget.style.background="#f9fafb",onMouseLeave:b=>b.currentTarget.style.background="white",children:"Hủy bỏ"}),f.jsx("button",{onClick:Ar,disabled:re,style:{padding:"8px 16px",borderRadius:"8px",border:"none",background:o,color:"white",cursor:re?"not-allowed":"pointer",fontWeight:600,fontSize:"0.85rem",opacity:re?.7:1,boxShadow:"0 2px 4px -1px rgba(0, 0, 0, 0.1)",transition:"transform 0.1s, opacity 0.2s"},onMouseDown:b=>!re&&(b.currentTarget.style.transform="scale(0.98)"),onMouseUp:b=>!re&&(b.currentTarget.style.transform="scale(1)"),children:re?f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[f.jsx(wr,{size:16,style:{animation:"fb-spin 1s linear infinite"}}),f.jsx("span",{children:"Đang gửi..."})]}):"Gửi báo lỗi"})]})]})]})},Yt=y.createContext(void 0),kr=()=>{const e=y.useContext(Yt);if(!e)throw new Error("useFeedback must be used within a FeedbackProvider");return e},Sr=({children:e,onSubmit:t,themeColor:i})=>{const[r,o]=y.useState(!1),[s,n]=y.useState(null),[h,p]=y.useState(""),[w,m]=y.useState(void 0),k=(V,F,v)=>{n(V),p(F||""),m(v),o(!0)},I=()=>{o(!1)};return f.jsxs(Yt.Provider,{value:{openFeedback:k,closeFeedback:I,isOpen:r,activeQuestionId:s},children:[e,s&&f.jsx(Xt,{questionId:s,questionIdChild:h,contextData:w,onSubmit:t,themeColor:i,isOpen:r,onClose:I,triggerComponent:f.jsx(f.Fragment,{})})]})};U.FeedbackProvider=Sr,U.FeedbackWidget=Xt,U.useFeedback=kr,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})}));
|