@regulaforensics/idv-capture-web 3.2.288-rc → 3.2.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.iife.js +8 -8
- package/dist/main.js +446 -443
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -236,8 +236,8 @@ let hr = class extends HTMLElement {
|
|
|
236
236
|
if (n !== void 0 && this._$Em !== n) {
|
|
237
237
|
const c = i.getPropertyOptions(n), l = typeof c.converter == "function" ? { fromAttribute: c.converter } : ((o = c.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? c.converter : Ci;
|
|
238
238
|
this._$Em = n;
|
|
239
|
-
const
|
|
240
|
-
this[n] = (a =
|
|
239
|
+
const g = l.fromAttribute(r, c.type);
|
|
240
|
+
this[n] = (a = g != null ? g : (s = this._$Ej) == null ? void 0 : s.get(n)) != null ? a : g, this._$Em = null;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
requestUpdate(e, r, i) {
|
|
@@ -342,8 +342,8 @@ const Gc = (t, e) => {
|
|
|
342
342
|
let n, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", s = _r;
|
|
343
343
|
for (let a = 0; a < r; a++) {
|
|
344
344
|
const c = t[a];
|
|
345
|
-
let l,
|
|
346
|
-
for (; u < c.length && (s.lastIndex = u,
|
|
345
|
+
let l, g, d = -1, u = 0;
|
|
346
|
+
for (; u < c.length && (s.lastIndex = u, g = s.exec(c), g !== null); ) u = s.lastIndex, s === _r ? g[1] === "!--" ? s = $o : g[1] !== void 0 ? s = Ho : g[2] !== void 0 ? (Xs.test(g[2]) && (n = RegExp("</" + g[2], "g")), s = qt) : g[3] !== void 0 && (s = qt) : s === qt ? g[0] === ">" ? (s = n != null ? n : _r, d = -1) : g[1] === void 0 ? d = -2 : (d = s.lastIndex - g[2].length, l = g[1], s = g[3] === void 0 ? qt : g[3] === '"' ? Go : Zo) : s === Go || s === Zo ? s = qt : s === $o || s === Ho ? s = _r : (s = qt, n = void 0);
|
|
347
347
|
const f = s === qt && t[a + 1].startsWith("/>") ? " " : "";
|
|
348
348
|
o += s === _r ? c + $c : d >= 0 ? (i.push(l), c.slice(0, d) + Ks + c.slice(d) + Ht + f) : c + Ht + (d === -2 ? a : f);
|
|
349
349
|
}
|
|
@@ -354,7 +354,7 @@ let Fn = class ea {
|
|
|
354
354
|
let n;
|
|
355
355
|
this.parts = [];
|
|
356
356
|
let o = 0, s = 0;
|
|
357
|
-
const a = e.length - 1, c = this.parts, [l,
|
|
357
|
+
const a = e.length - 1, c = this.parts, [l, g] = Gc(e, r);
|
|
358
358
|
if (this.el = ea.createElement(l, i), or.currentNode = this.el.content, r === 2 || r === 3) {
|
|
359
359
|
const d = this.el.content.firstChild;
|
|
360
360
|
d.replaceWith(...d.childNodes);
|
|
@@ -362,7 +362,7 @@ let Fn = class ea {
|
|
|
362
362
|
for (; (n = or.nextNode()) !== null && c.length < a; ) {
|
|
363
363
|
if (n.nodeType === 1) {
|
|
364
364
|
if (n.hasAttributes()) for (const d of n.getAttributeNames()) if (d.endsWith(Ks)) {
|
|
365
|
-
const u =
|
|
365
|
+
const u = g[s++], f = n.getAttribute(d).split(Ht), D = /([.?@])?(.*)/.exec(u);
|
|
366
366
|
c.push({ type: 1, index: o, name: D[2], strings: f, ctor: D[1] === "." ? Jc : D[1] === "?" ? Xc : D[1] === "@" ? qc : qi }), n.removeAttribute(d);
|
|
367
367
|
} else d.startsWith(Ht) && (c.push({ type: 6, index: o }), n.removeAttribute(d));
|
|
368
368
|
if (Xs.test(n.tagName)) {
|
|
@@ -410,8 +410,8 @@ let Kc = class {
|
|
|
410
410
|
let o = or.nextNode(), s = 0, a = 0, c = i[0];
|
|
411
411
|
for (; c !== void 0; ) {
|
|
412
412
|
if (s === c.index) {
|
|
413
|
-
let
|
|
414
|
-
c.type === 2 ?
|
|
413
|
+
let g;
|
|
414
|
+
c.type === 2 ? g = new no(o, o.nextSibling, this, e) : c.type === 1 ? g = new c.ctor(o, c.name, c.strings, this, e) : c.type === 6 && (g = new eu(o, this, e)), this._$AV.push(g), c = i[++a];
|
|
415
415
|
}
|
|
416
416
|
s !== (c == null ? void 0 : c.index) && (o = or.nextNode(), s++);
|
|
417
417
|
}
|
|
@@ -753,11 +753,11 @@ const ra = new ou(), su = Uc`
|
|
|
753
753
|
var ia = /* @__PURE__ */ ((t) => (t.Rtl = "rtl", t.Ltr = "ltr", t))(ia || {}), kr = /* @__PURE__ */ ((t) => (t.DID_START_SESSION = "DID_START_SESSION", t.DID_END_SESSION = "DID_END_SESSION", t.DID_START_RESTORE_SESSION = "DID_START_RESTORE_SESSION", t.DID_CONTINUE_REMOTE_SESSION = "DID_CONTINUE_REMOTE_SESSION", t))(kr || {}), jt = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.CONNECTION_ISSUE = 1] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 2] = "WORKFLOW_ISSUE", t[t.INTERNAL_ISSUE = 3] = "INTERNAL_ISSUE", t[t.SCENARIO_IN_PROGRESS = 4] = "SCENARIO_IN_PROGRESS", t))(jt || {}), Re = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.CONFIG_MISSED_OR_INVALID = 1] = "CONFIG_MISSED_OR_INVALID", t[t.INITIALIZATION_REQUIRED = 2] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Re || {}), We = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.PREPARED_REQUIRED = 1] = "PREPARED_REQUIRED", t[t.START_SESSION_FAILED = 2] = "START_SESSION_FAILED", t[t.UNKNOWN_STEP = 3] = "UNKNOWN_STEP", t[t.MODULES_ISSUE = 4] = "MODULES_ISSUE", t[t.ALREADY_STARTED = 5] = "ALREADY_STARTED", t[t.INTERNAL_ISSUE = 6] = "INTERNAL_ISSUE", t))(We || {}), en = /* @__PURE__ */ ((t) => (t[t.CONFIG_MISSED_OR_INVALID = 0] = "CONFIG_MISSED_OR_INVALID", t[t.MODULES_INSTANTIATION_FAILURE = 1] = "MODULES_INSTANTIATION_FAILURE", t[t.INITIALIZATION_IN_PROGRESS = 2] = "INITIALIZATION_IN_PROGRESS", t))(en || {}), ki = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 1] = "WORKFLOW_ISSUE", t))(ki || {}), wt = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t))(wt || {}), tr = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.TOKEN_ERROR = 3] = "TOKEN_ERROR", t[t.CONNECTION_ISSUE = 4] = "CONNECTION_ISSUE", t))(tr || {}), at = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t[t.SAME_STEP = 3] = "SAME_STEP", t[t.IS_PROCESSING = 4] = "IS_PROCESSING", t[t.NOT_DATA_TYPE = 5] = "NOT_DATA_TYPE", t))(at || {}), Ui = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Ui || {}), $t = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t))($t || {});
|
|
754
754
|
const uu = 120, lu = 200, Vn = "PROGRESS", pt = "IDV", er = "idv-session-data", Or = "idv-session-auth-token", du = "rgl-uid", Mu = "en", Jo = (t) => {
|
|
755
755
|
let e;
|
|
756
|
-
const r = /* @__PURE__ */ new Set(), i = (l,
|
|
756
|
+
const r = /* @__PURE__ */ new Set(), i = (l, g) => {
|
|
757
757
|
const d = typeof l == "function" ? l(e) : l;
|
|
758
758
|
if (!Object.is(d, e)) {
|
|
759
759
|
const u = e;
|
|
760
|
-
e = (
|
|
760
|
+
e = (g != null ? g : typeof d != "object" || d === null) ? d : Object.assign({}, e, d), r.forEach((f) => f(e, u));
|
|
761
761
|
}
|
|
762
762
|
}, n = () => e, a = { setState: i, getState: n, getInitialState: () => c, subscribe: (l) => (r.add(l), () => r.delete(l)) }, c = e = t(i, n, a);
|
|
763
763
|
return a;
|
|
@@ -811,15 +811,15 @@ function Ri() {
|
|
|
811
811
|
for (var t, e, r, i, n, o, s, a = 1; rr.length; ) rr.length > a && rr.sort(sa), t = rr.shift(), a = rr.length, t.__d && (r = void 0, i = void 0, n = (i = (e = t).__v).__e, o = [], s = [], e.__P && ((r = Dt({}, i)).__v = i.__v + 1, ue.vnode && ue.vnode(r), ao(e.__P, r, i, e.__n, e.__P.namespaceURI, 32 & i.__u ? [n] : null, o, n == null ? mr(i) : n, !!(32 & i.__u), s), r.__v = i.__v, r.__.__k[r.__i] = r, Na(o, r, s), i.__e = i.__ = null, r.__e != n && da(r)));
|
|
812
812
|
Ri.__r = 0;
|
|
813
813
|
}
|
|
814
|
-
function Ma(t, e, r, i, n, o, s, a, c, l,
|
|
815
|
-
var d, u, f, D, M,
|
|
816
|
-
for (c = Iu(r, e, A, c, p), d = 0; d < p; d++) (f = r.__k[d]) != null && (u = f.__i == -1 ? $r : A[f.__i] || $r, f.__i = d,
|
|
814
|
+
function Ma(t, e, r, i, n, o, s, a, c, l, g) {
|
|
815
|
+
var d, u, f, D, M, N, E, A = i && i.__k || ua, p = e.length;
|
|
816
|
+
for (c = Iu(r, e, A, c, p), d = 0; d < p; d++) (f = r.__k[d]) != null && (u = f.__i == -1 ? $r : A[f.__i] || $r, f.__i = d, N = ao(t, f, u, n, o, s, a, c, l, g), D = f.__e, f.ref && u.ref != f.ref && (u.ref && co(u.ref, null, f), g.push(f.ref, f.__c || D, f)), M == null && D != null && (M = D), (E = !!(4 & f.__u)) || u.__k === f.__k ? c = ga(f, c, t, E) : typeof f.type == "function" && N !== void 0 ? c = N : D && (c = D.nextSibling), f.__u &= -7);
|
|
817
817
|
return r.__e = M, c;
|
|
818
818
|
}
|
|
819
819
|
function Iu(t, e, r, i, n) {
|
|
820
|
-
var o, s, a, c, l,
|
|
821
|
-
for (t.__k = new Array(n), o = 0; o < n; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (
|
|
822
|
-
if (d) for (o = 0; o <
|
|
820
|
+
var o, s, a, c, l, g = r.length, d = g, u = 0;
|
|
821
|
+
for (t.__k = new Array(n), o = 0; o < n; o++) (s = e[o]) != null && typeof s != "boolean" && typeof s != "function" ? (typeof s == "string" || typeof s == "number" || typeof s == "bigint" || s.constructor == String ? s = t.__k[o] = Ur(null, s, null, null, null) : Gr(s) ? s = t.__k[o] = Ur(Ze, { children: s }, null, null, null) : s.constructor === void 0 && s.__b > 0 ? s = t.__k[o] = Ur(s.type, s.props, s.key, s.ref ? s.ref : null, s.__v) : t.__k[o] = s, c = o + u, s.__ = t, s.__b = t.__b + 1, a = null, (l = s.__i = fu(s, r, c, d)) != -1 && (d--, (a = r[l]) && (a.__u |= 2)), a == null || a.__v == null ? (l == -1 && (n > g ? u-- : n < g && u++), typeof s.type != "function" && (s.__u |= 4)) : l != c && (l == c - 1 ? u-- : l == c + 1 ? u++ : (l > c ? u-- : u++, s.__u |= 4))) : t.__k[o] = null;
|
|
822
|
+
if (d) for (o = 0; o < g; o++) (a = r[o]) != null && (2 & a.__u) == 0 && (a.__e == i && (i = mr(a)), fa(a, a));
|
|
823
823
|
return i;
|
|
824
824
|
}
|
|
825
825
|
function ga(t, e, r, i) {
|
|
@@ -840,9 +840,9 @@ function Pt(t, e) {
|
|
|
840
840
|
}) : e.push(t)), e;
|
|
841
841
|
}
|
|
842
842
|
function fu(t, e, r, i) {
|
|
843
|
-
var n, o, s, a = t.key, c = t.type, l = e[r],
|
|
844
|
-
if (l === null &&
|
|
845
|
-
if (i > (
|
|
843
|
+
var n, o, s, a = t.key, c = t.type, l = e[r], g = l != null && (2 & l.__u) == 0;
|
|
844
|
+
if (l === null && a == null || g && a == l.key && c == l.type) return r;
|
|
845
|
+
if (i > (g ? 1 : 0)) {
|
|
846
846
|
for (n = r - 1, o = r + 1; n >= 0 || o < e.length; ) if ((l = e[s = n >= 0 ? n-- : o++]) != null && (2 & l.__u) == 0 && a == l.key && c == l.type) return s;
|
|
847
847
|
}
|
|
848
848
|
return -1;
|
|
@@ -879,13 +879,13 @@ function es(t) {
|
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
881
|
function ao(t, e, r, i, n, o, s, a, c, l) {
|
|
882
|
-
var
|
|
883
|
-
if (e.constructor
|
|
884
|
-
128 & r.__u && (c = !!(32 & r.__u), o = [a = e.__e = r.__e]), (
|
|
882
|
+
var g, d, u, f, D, M, N, E, A, p, S, k, v, x, ae, B, J, V = e.type;
|
|
883
|
+
if (e.constructor !== void 0) return null;
|
|
884
|
+
128 & r.__u && (c = !!(32 & r.__u), o = [a = e.__e = r.__e]), (g = ue.__b) && g(e);
|
|
885
885
|
e: if (typeof V == "function") try {
|
|
886
|
-
if (E = e.props, A = "prototype" in V && V.prototype.render, p = (
|
|
886
|
+
if (E = e.props, A = "prototype" in V && V.prototype.render, p = (g = V.contextType) && i[g.__c], S = g ? p ? p.props.value : g.__ : i, r.__c ? N = (d = e.__c = r.__c).__ = d.__E : (A ? e.__c = d = new V(E, S) : (e.__c = d = new Mt(E, S), d.constructor = V, d.render = hu), p && p.sub(d), d.state || (d.state = {}), d.__n = i, u = d.__d = !0, d.__h = [], d._sb = []), A && d.__s == null && (d.__s = d.state), A && V.getDerivedStateFromProps != null && (d.__s == d.state && (d.__s = Dt({}, d.__s)), Dt(d.__s, V.getDerivedStateFromProps(E, d.__s))), f = d.props, D = d.state, d.__v = e, u) A && V.getDerivedStateFromProps == null && d.componentWillMount != null && d.componentWillMount(), A && d.componentDidMount != null && d.__h.push(d.componentDidMount);
|
|
887
887
|
else {
|
|
888
|
-
if (A && V.getDerivedStateFromProps == null && E !== f && d.componentWillReceiveProps != null && d.componentWillReceiveProps(E, S), !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(E, d.__s, S) === !1
|
|
888
|
+
if (A && V.getDerivedStateFromProps == null && E !== f && d.componentWillReceiveProps != null && d.componentWillReceiveProps(E, S), e.__v == r.__v || !d.__e && d.shouldComponentUpdate != null && d.shouldComponentUpdate(E, d.__s, S) === !1) {
|
|
889
889
|
for (e.__v != r.__v && (d.props = E, d.state = d.__s, d.__d = !1), e.__e = r.__e, e.__k = r.__k, e.__k.some(function(F) {
|
|
890
890
|
F && (F.__ = e);
|
|
891
891
|
}), k = 0; k < d._sb.length; k++) d.__h.push(d._sb[k]);
|
|
@@ -897,12 +897,12 @@ function ao(t, e, r, i, n, o, s, a, c, l) {
|
|
|
897
897
|
});
|
|
898
898
|
}
|
|
899
899
|
if (d.context = S, d.props = E, d.__P = t, d.__e = !1, v = ue.__r, x = 0, A) {
|
|
900
|
-
for (d.state = d.__s, d.__d = !1, v && v(e),
|
|
900
|
+
for (d.state = d.__s, d.__d = !1, v && v(e), g = d.render(d.props, d.state, d.context), ae = 0; ae < d._sb.length; ae++) d.__h.push(d._sb[ae]);
|
|
901
901
|
d._sb = [];
|
|
902
902
|
} else do
|
|
903
|
-
d.__d = !1, v && v(e),
|
|
903
|
+
d.__d = !1, v && v(e), g = d.render(d.props, d.state, d.context), d.state = d.__s;
|
|
904
904
|
while (d.__d && ++x < 25);
|
|
905
|
-
d.state = d.__s, d.getChildContext != null && (i = Dt(Dt({}, i), d.getChildContext())), A && !u && d.getSnapshotBeforeUpdate != null && (M = d.getSnapshotBeforeUpdate(f, D)), B =
|
|
905
|
+
d.state = d.__s, d.getChildContext != null && (i = Dt(Dt({}, i), d.getChildContext())), A && !u && d.getSnapshotBeforeUpdate != null && (M = d.getSnapshotBeforeUpdate(f, D)), B = g, g != null && g.type === Ze && g.key == null && (B = Ia(g.props.children)), a = Ma(t, Gr(B) ? B : [B], e, r, i, n, o, s, a, c, l), d.base = e.__e, e.__u &= -161, d.__h.length && s.push(d), N && (d.__E = d.__ = null);
|
|
906
906
|
} catch (F) {
|
|
907
907
|
if (e.__v = null, c || o != null) if (F.then) {
|
|
908
908
|
for (e.__u |= c ? 160 : 128; a && a.nodeType == 8 && a.nextSibling; ) a = a.nextSibling;
|
|
@@ -915,7 +915,7 @@ function ao(t, e, r, i, n, o, s, a, c, l) {
|
|
|
915
915
|
ue.__e(F, e, r);
|
|
916
916
|
}
|
|
917
917
|
else o == null && e.__v == r.__v ? (e.__k = r.__k, e.__e = r.__e) : a = e.__e = Du(r.__e, e, r, i, n, o, s, c, l);
|
|
918
|
-
return (
|
|
918
|
+
return (g = ue.diffed) && g(e), 128 & e.__u ? void 0 : a;
|
|
919
919
|
}
|
|
920
920
|
function Hn(t) {
|
|
921
921
|
t && t.__c && (t.__c.__e = !0), t && t.__k && t.__k.forEach(Hn);
|
|
@@ -936,7 +936,7 @@ function Ia(t) {
|
|
|
936
936
|
return typeof t != "object" || t == null || t.__b && t.__b > 0 ? t : Gr(t) ? t.map(Ia) : Dt({}, t);
|
|
937
937
|
}
|
|
938
938
|
function Du(t, e, r, i, n, o, s, a, c) {
|
|
939
|
-
var l,
|
|
939
|
+
var l, g, d, u, f, D, M, N = r.props || $r, E = e.props, A = e.type;
|
|
940
940
|
if (A == "svg" ? n = "http://www.w3.org/2000/svg" : A == "math" ? n = "http://www.w3.org/1998/Math/MathML" : n || (n = "http://www.w3.org/1999/xhtml"), o != null) {
|
|
941
941
|
for (l = 0; l < o.length; l++) if ((f = o[l]) && "setAttribute" in f == !!A && (A ? f.localName == A : f.nodeType == 3)) {
|
|
942
942
|
t = f, o[l] = null;
|
|
@@ -947,20 +947,20 @@ function Du(t, e, r, i, n, o, s, a, c) {
|
|
|
947
947
|
if (A == null) return document.createTextNode(E);
|
|
948
948
|
t = document.createElementNS(n, A, E.is && E), a && (ue.__m && ue.__m(e, o), a = !1), o = null;
|
|
949
949
|
}
|
|
950
|
-
if (A == null)
|
|
950
|
+
if (A == null) N === E || a && t.data == E || (t.data = E);
|
|
951
951
|
else {
|
|
952
|
-
if (o = o && Zr.call(t.childNodes),
|
|
953
|
-
for (l in
|
|
952
|
+
if (o = o && Zr.call(t.childNodes), !a && o != null) for (N = {}, l = 0; l < t.attributes.length; l++) N[(f = t.attributes[l]).name] = f.value;
|
|
953
|
+
for (l in N) if (f = N[l], l != "children") {
|
|
954
954
|
if (l == "dangerouslySetInnerHTML") d = f;
|
|
955
955
|
else if (!(l in E)) {
|
|
956
956
|
if (l == "value" && "defaultValue" in E || l == "checked" && "defaultChecked" in E) continue;
|
|
957
957
|
_i(t, l, null, f, n);
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
|
-
for (l in E) f = E[l], l == "children" ? u = f : l == "dangerouslySetInnerHTML" ?
|
|
961
|
-
if (
|
|
960
|
+
for (l in E) f = E[l], l == "children" ? u = f : l == "dangerouslySetInnerHTML" ? g = f : l == "value" ? D = f : l == "checked" ? M = f : a && typeof f != "function" || N[l] === f || _i(t, l, f, N[l], n);
|
|
961
|
+
if (g) a || d && (g.__html == d.__html || g.__html == t.innerHTML) || (t.innerHTML = g.__html), e.__k = [];
|
|
962
962
|
else if (d && (t.innerHTML = ""), Ma(e.type == "template" ? t.content : t, Gr(u) ? u : [u], e, r, i, A == "foreignObject" ? "http://www.w3.org/1999/xhtml" : n, o, s, o ? o[0] : r.__k && mr(r, 0), a, c), o != null) for (l = o.length; l--; ) so(o[l]);
|
|
963
|
-
a || (l = "value", A == "progress" && D == null ? t.removeAttribute("value") : D != null && (D !== t[l] || A == "progress" && !D || A == "option" && D !=
|
|
963
|
+
a || (l = "value", A == "progress" && D == null ? t.removeAttribute("value") : D != null && (D !== t[l] || A == "progress" && !D || A == "option" && D != N[l]) && _i(t, l, D, N[l], n), l = "checked", M != null && M != t[l] && _i(t, l, M, N[l], n));
|
|
964
964
|
}
|
|
965
965
|
return t;
|
|
966
966
|
}
|
|
@@ -1057,14 +1057,14 @@ function tn(t, e, r) {
|
|
|
1057
1057
|
}], i.__c = Te, !Te.__f)) {
|
|
1058
1058
|
var n = function(a, c, l) {
|
|
1059
1059
|
if (!i.__c.__H) return !0;
|
|
1060
|
-
var
|
|
1060
|
+
var g = i.__c.__H.__.filter(function(u) {
|
|
1061
1061
|
return !!u.__c;
|
|
1062
1062
|
});
|
|
1063
|
-
if (
|
|
1063
|
+
if (g.every(function(u) {
|
|
1064
1064
|
return !u.__N;
|
|
1065
1065
|
})) return !o || o.call(this, a, c, l);
|
|
1066
1066
|
var d = i.__c.props !== a;
|
|
1067
|
-
return
|
|
1067
|
+
return g.forEach(function(u) {
|
|
1068
1068
|
if (u.__N) {
|
|
1069
1069
|
var f = u.__[0];
|
|
1070
1070
|
u.__ = u.__N, u.__N = void 0, f !== u.__[0] && (d = !0);
|
|
@@ -1075,8 +1075,8 @@ function tn(t, e, r) {
|
|
|
1075
1075
|
var o = Te.shouldComponentUpdate, s = Te.componentWillUpdate;
|
|
1076
1076
|
Te.componentWillUpdate = function(a, c, l) {
|
|
1077
1077
|
if (this.__e) {
|
|
1078
|
-
var
|
|
1079
|
-
o = void 0, n(a, c, l), o =
|
|
1078
|
+
var g = o;
|
|
1079
|
+
o = void 0, n(a, c, l), o = g;
|
|
1080
1080
|
}
|
|
1081
1081
|
s && s.call(this, a, c, l);
|
|
1082
1082
|
}, Te.shouldComponentUpdate = n;
|
|
@@ -1309,43 +1309,46 @@ function Rr() {
|
|
|
1309
1309
|
this.__u = 0, this.o = null, this.__b = null;
|
|
1310
1310
|
}
|
|
1311
1311
|
function wa(t) {
|
|
1312
|
+
if (!t.__) return null;
|
|
1312
1313
|
var e = t.__.__c;
|
|
1313
1314
|
return e && e.__a && e.__a(t);
|
|
1314
1315
|
}
|
|
1315
1316
|
function Sa(t) {
|
|
1316
|
-
var e, r, i;
|
|
1317
|
-
function
|
|
1318
|
-
if (e || (e = t()).then(function(
|
|
1319
|
-
|
|
1320
|
-
}, function(
|
|
1321
|
-
i =
|
|
1322
|
-
}),
|
|
1323
|
-
if (!
|
|
1324
|
-
return ht(
|
|
1325
|
-
}
|
|
1326
|
-
return
|
|
1317
|
+
var e, r, i, n = null;
|
|
1318
|
+
function o(s) {
|
|
1319
|
+
if (e || (e = t()).then(function(a) {
|
|
1320
|
+
a && (n = a.default || a), i = !0;
|
|
1321
|
+
}, function(a) {
|
|
1322
|
+
r = a, i = !0;
|
|
1323
|
+
}), r) throw r;
|
|
1324
|
+
if (!i) throw e;
|
|
1325
|
+
return n ? ht(n, s) : null;
|
|
1326
|
+
}
|
|
1327
|
+
return o.displayName = "Lazy", o.__f = !0, o;
|
|
1327
1328
|
}
|
|
1328
1329
|
function pr() {
|
|
1329
1330
|
this.i = null, this.l = null;
|
|
1330
1331
|
}
|
|
1331
1332
|
ue.unmount = function(t) {
|
|
1332
1333
|
var e = t.__c;
|
|
1333
|
-
e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), ds && ds(t);
|
|
1334
|
+
e && (e.__z = !0), e && e.__R && e.__R(), e && 32 & t.__u && (t.type = null), ds && ds(t);
|
|
1334
1335
|
}, (Rr.prototype = new Mt()).__c = function(t, e) {
|
|
1335
1336
|
var r = e.__c, i = this;
|
|
1336
1337
|
i.o == null && (i.o = []), i.o.push(r);
|
|
1337
1338
|
var n = wa(i.__v), o = !1, s = function() {
|
|
1338
|
-
o || (o = !0, r.__R = null, n ? n(
|
|
1339
|
+
o || i.__z || (o = !0, r.__R = null, n ? n(c) : c());
|
|
1339
1340
|
};
|
|
1340
1341
|
r.__R = s;
|
|
1341
|
-
var a =
|
|
1342
|
+
var a = r.__P;
|
|
1343
|
+
r.__P = null;
|
|
1344
|
+
var c = function() {
|
|
1342
1345
|
if (!--i.__u) {
|
|
1343
1346
|
if (i.state.__a) {
|
|
1344
|
-
var
|
|
1345
|
-
i.__v.__k[0] = ja(
|
|
1347
|
+
var l = i.state.__a;
|
|
1348
|
+
i.__v.__k[0] = ja(l, l.__c.__P, l.__c.__O);
|
|
1346
1349
|
}
|
|
1347
|
-
var
|
|
1348
|
-
for (i.setState({ __a: i.__b = null });
|
|
1350
|
+
var g;
|
|
1351
|
+
for (i.setState({ __a: i.__b = null }); g = i.o.pop(); ) g.__P = a, g.forceUpdate();
|
|
1349
1352
|
}
|
|
1350
1353
|
};
|
|
1351
1354
|
i.__u++ || 32 & e.__u || i.setState({ __a: i.__b = i.__v.__k[0] }), t.then(s, s);
|
|
@@ -1382,7 +1385,7 @@ function wu(t) {
|
|
|
1382
1385
|
for (var i = e.__v; i !== null && !i.__m && i.__ !== null; ) i = i.__;
|
|
1383
1386
|
e.h = r, e.v = { nodeType: 1, parentNode: r, childNodes: [], __k: { __m: i.__m }, contains: function() {
|
|
1384
1387
|
return !0;
|
|
1385
|
-
}, insertBefore: function(n, o) {
|
|
1388
|
+
}, namespaceURI: r.namespaceURI, insertBefore: function(n, o) {
|
|
1386
1389
|
this.childNodes.push(n), e.h.insertBefore(n, o);
|
|
1387
1390
|
}, removeChild: function(n) {
|
|
1388
1391
|
this.childNodes.splice(this.childNodes.indexOf(n) >>> 1, 1), e.h.removeChild(n);
|
|
@@ -1592,7 +1595,7 @@ var vr = { exports: {} }, Vu = vr.exports, hs;
|
|
|
1592
1595
|
function Bu() {
|
|
1593
1596
|
return hs || (hs = 1, (function(t, e) {
|
|
1594
1597
|
(function(r, i) {
|
|
1595
|
-
var n = "1.0.41", o = "", s = "?", a = "function", c = "undefined", l = "object",
|
|
1598
|
+
var n = "1.0.41", o = "", s = "?", a = "function", c = "undefined", l = "object", g = "string", d = "major", u = "model", f = "name", D = "type", M = "vendor", N = "version", E = "architecture", A = "console", p = "mobile", S = "tablet", k = "smarttv", v = "wearable", x = "embedded", ae = 500, B = "Amazon", J = "Apple", V = "ASUS", F = "BlackBerry", Z = "Browser", de = "Chrome", le = "Edge", he = "Firefox", ye = "Google", re = "Honor", H = "Huawei", U = "Lenovo", X = "LG", ie = "Microsoft", Ee = "Motorola", ne = "Nvidia", P = "OnePlus", te = "Opera", Ye = "OPPO", Ve = "Samsung", nt = "Sharp", Xe = "Sony", Tt = "Xiaomi", ot = "Zebra", Ft = "Facebook", At = "Chromium OS", Nt = "Mac OS", Et = " Browser", Vt = function(q, ce) {
|
|
1596
1599
|
var $ = {};
|
|
1597
1600
|
for (var fe in q)
|
|
1598
1601
|
ce[fe] && ce[fe].length % 2 === 0 ? $[fe] = ce[fe].concat(q[fe]) : $[fe] = q[fe];
|
|
@@ -1602,13 +1605,13 @@ function Bu() {
|
|
|
1602
1605
|
ce[q[$].toUpperCase()] = q[$];
|
|
1603
1606
|
return ce;
|
|
1604
1607
|
}, rt = function(q, ce) {
|
|
1605
|
-
return typeof q ===
|
|
1608
|
+
return typeof q === g ? y(ce).indexOf(y(q)) !== -1 : !1;
|
|
1606
1609
|
}, y = function(q) {
|
|
1607
1610
|
return q.toLowerCase();
|
|
1608
1611
|
}, w = function(q) {
|
|
1609
|
-
return typeof q ===
|
|
1612
|
+
return typeof q === g ? q.replace(/[^\d\.]/g, o).split(".")[0] : i;
|
|
1610
1613
|
}, O = function(q, ce) {
|
|
1611
|
-
if (typeof q ===
|
|
1614
|
+
if (typeof q === g)
|
|
1612
1615
|
return q = q.replace(/^\s\s*/, o), typeof ce === c ? q : q.substring(0, ae);
|
|
1613
1616
|
}, Q = function(q, ce) {
|
|
1614
1617
|
for (var $ = 0, fe, Fe, _e, Ne, K, Be; $ < ce.length && !K; ) {
|
|
@@ -1628,13 +1631,13 @@ function Bu() {
|
|
|
1628
1631
|
} else if (rt(ce[$], q))
|
|
1629
1632
|
return $ === s ? i : $;
|
|
1630
1633
|
return ce.hasOwnProperty("*") ? ce["*"] : q;
|
|
1631
|
-
}, b = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, W = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, oe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [g, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [g, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, g], [/opios[\/ ]+([\w\.]+)/i], [g, [f, te + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [g, [f, te + " GX"]], [/\bopr\/([\w\.]+)/i], [g, [f, te]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [g, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [g, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, g], [/quark(?:pc)?\/([-\w\.]+)/i], [g, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [g, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [g, [f, "UC" + Z]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [g, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [g, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [g, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [g, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [g, [f, "Smart Lenovo " + Z]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + Z], g], [/\bfocus\/([\w\.]+)/i], [g, [f, he + " Focus"]], [/\bopt\/([\w\.]+)/i], [g, [f, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [g, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [g, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [g, [f, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [g, [f, "MIUI" + Et]], [/fxios\/([\w\.-]+)/i], [g, [f, he]], [/\bqihoobrowser\/?([\w\.]*)/i], [g, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], g], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + Et], g], [/samsungbrowser\/([\w\.]+)/i], [g, [f, Ve + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [g, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], g], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, g], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [g, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, Ft], g], [/(Klarna)\/([\w\.]+)/i, /(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, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, g], [/\bgsa\/([\w\.]+) .*safari\//i], [g, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [g, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [g, [f, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, de + " WebView"], g], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [g, [f, "Android " + Z]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, g], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [g, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [g, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [g, C, b]], [/(webkit|khtml)\/([\w\.]+)/i], [f, g], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], g], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, g], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [g, [f, he + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [f, [g, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [g, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[E, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[E, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[E, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[E, /ower/, o, y]], [/ sun4\w[;\)]/i], [[E, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[E, y]]], 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], [u, [M, Ve], [D, S]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [u, [M, Ve], [D, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [u, [M, J], [D, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [u, [M, J], [D, S]], [/(macintosh);/i], [u, [M, J]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [u, [M, nt], [D, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [u, [M, re], [D, S]], [/honor([-\w ]+)[;\)]/i], [u, [M, re], [D, p]], [/\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], [u, [M, H], [D, S]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [u, [M, H], [D, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[u, /_/g, " "], [M, Tt], [D, S]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[u, /_/g, " "], [M, Tt], [D, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [u, [M, Ye], [D, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [u, [M, C, { OnePlus: ["304", "403", "203"], "*": Ye }], [D, S]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [u, [M, "Vivo"], [D, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [u, [M, "Realme"], [D, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [u, [M, Ee], [D, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [u, [M, Ee], [D, S]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [u, [M, X], [D, S]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [u, [M, X], [D, p]], [/(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], [u, [M, U], [D, S]], [/(nokia) (t[12][01])/i], [M, u, [D, S]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[u, /_/g, " "], [D, p], [M, "Nokia"]], [/(pixel (c|tablet))\b/i], [u, [M, ye], [D, S]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [u, [M, ye], [D, p]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [u, [M, Xe], [D, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[u, "Xperia Tablet"], [M, Xe], [D, S]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [u, [M, P], [D, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [u, [M, B], [D, S]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[u, /(.+)/g, "Fire Phone $1"], [M, B], [D, p]], [/(playbook);[-\w\),; ]+(rim)/i], [u, M, [D, S]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [u, [M, F], [D, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [u, [M, V], [D, S]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [u, [M, V], [D, p]], [/(nexus 9)/i], [u, [M, "HTC"], [D, S]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [M, [u, /_/g, " "], [D, p]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [u, [M, "TCL"], [D, S]], [/(itel) ((\w+))/i], [[M, y], u, [D, C, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [u, [M, "Acer"], [D, S]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [u, [M, "Meizu"], [D, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [u, [M, "Ulefone"], [D, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [u, [M, "Energizer"], [D, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [u, [M, "Cat"], [D, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [u, [M, "Smartfren"], [D, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [u, [M, "Nothing"], [D, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [u, [M, "Archos"], [D, S]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [u, [M, "Archos"], [D, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [M, u, [D, S]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [M, u, [D, p]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [M, u, [D, S]], [/(surface duo)/i], [u, [M, ie], [D, S]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [u, [M, "Fairphone"], [D, p]], [/(u304aa)/i], [u, [M, "AT&T"], [D, p]], [/\bsie-(\w*)/i], [u, [M, "Siemens"], [D, p]], [/\b(rct\w+) b/i], [u, [M, "RCA"], [D, S]], [/\b(venue[\d ]{2,7}) b/i], [u, [M, "Dell"], [D, S]], [/\b(q(?:mv|ta)\w+) b/i], [u, [M, "Verizon"], [D, S]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [u, [M, "Barnes & Noble"], [D, S]], [/\b(tm\d{3}\w+) b/i], [u, [M, "NuVision"], [D, S]], [/\b(k88) b/i], [u, [M, "ZTE"], [D, S]], [/\b(nx\d{3}j) b/i], [u, [M, "ZTE"], [D, p]], [/\b(gen\d{3}) b.+49h/i], [u, [M, "Swiss"], [D, p]], [/\b(zur\d{3}) b/i], [u, [M, "Swiss"], [D, S]], [/\b((zeki)?tb.*\b) b/i], [u, [M, "Zeki"], [D, S]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[M, "Dragon Touch"], u, [D, S]], [/\b(ns-?\w{0,9}) b/i], [u, [M, "Insignia"], [D, S]], [/\b((nxa|next)-?\w{0,9}) b/i], [u, [M, "NextBook"], [D, S]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[M, "Voice"], u, [D, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[M, "LvTel"], u, [D, p]], [/\b(ph-1) /i], [u, [M, "Essential"], [D, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [u, [M, "Envizen"], [D, S]], [/\b(trio[-\w\. ]+) b/i], [u, [M, "MachSpeed"], [D, S]], [/\btu_(1491) b/i], [u, [M, "Rotor"], [D, S]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [u, [M, ne], [D, S]], [/(sprint) (\w+)/i], [M, u, [D, p]], [/(kin\.[onetw]{3})/i], [[u, /\./g, " "], [M, ie], [D, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [u, [M, ot], [D, S]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [u, [M, ot], [D, p]], [/smart-tv.+(samsung)/i], [M, [D, k]], [/hbbtv.+maple;(\d+)/i], [[u, /^/, "SmartTV"], [M, Ve], [D, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[M, X], [D, k]], [/(apple) ?tv/i], [M, [u, J + " TV"], [D, k]], [/crkey/i], [[u, de + "cast"], [M, ye], [D, k]], [/droid.+aft(\w+)( bui|\))/i], [u, [M, B], [D, k]], [/(shield \w+ tv)/i], [u, [M, ne], [D, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [u, [M, nt], [D, k]], [/(bravia[\w ]+)( bui|\))/i], [u, [M, Xe], [D, k]], [/(mi(tv|box)-?\w+) bui/i], [u, [M, Tt], [D, k]], [/Hbbtv.*(technisat) (.*);/i], [M, u, [D, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[M, O], [u, O], [D, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [u, [D, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[D, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [M, u, [D, A]], [/droid.+; (shield)( bui|\))/i], [u, [M, ne], [D, A]], [/(playstation \w+)/i], [u, [M, Xe], [D, A]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [u, [M, ie], [D, A]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [u, [M, Ve], [D, v]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [M, u, [D, v]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [u, [M, Ye], [D, v]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [u, [M, J], [D, v]], [/(opwwe\d{3})/i], [u, [M, P], [D, v]], [/(moto 360)/i], [u, [M, Ee], [D, v]], [/(smartwatch 3)/i], [u, [M, Xe], [D, v]], [/(g watch r)/i], [u, [M, X], [D, v]], [/droid.+; (wt63?0{2,3})\)/i], [u, [M, ot], [D, v]], [/droid.+; (glass) \d/i], [u, [M, ye], [D, v]], [/(pico) (4|neo3(?: link|pro)?)/i], [M, u, [D, v]], [/; (quest( \d| pro)?)/i], [u, [M, Ft], [D, v]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [M, [D, x]], [/(aeobc)\b/i], [u, [M, B], [D, x]], [/(homepod).+mac os/i], [u, [M, J], [D, x]], [/windows iot/i], [[D, x]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [u, [D, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [u, [D, S]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[D, S]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[D, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [u, [M, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [g, [f, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, g], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [g, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, g], [/ladybird\//i], [[f, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [g, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, g], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [f, [g, C, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[g, C, W], [f, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[g, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, Nt], [g, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [g, f], [/(ubuntu) ([\w\.]+) like android/i], [[f, /(.+)/, "$1 Touch"], g], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [f, g], [/\(bb(10);/i], [g, [f, F]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [g, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [g, [f, he + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [g, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [g, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [g, [f, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, At], g], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, g], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], g], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, g]] }, G = function(q, ce) {
|
|
1634
|
+
}, b = { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }, W = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, oe = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [N, [f, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [N, [f, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [f, N], [/opios[\/ ]+([\w\.]+)/i], [N, [f, te + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [N, [f, te + " GX"]], [/\bopr\/([\w\.]+)/i], [N, [f, te]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [N, [f, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [N, [f, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [f, N], [/quark(?:pc)?\/([-\w\.]+)/i], [N, [f, "Quark"]], [/\bddg\/([\w\.]+)/i], [N, [f, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [N, [f, "UC" + Z]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [N, [f, "WeChat"]], [/konqueror\/([\w\.]+)/i], [N, [f, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [N, [f, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [N, [f, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [N, [f, "Smart Lenovo " + Z]], [/(avast|avg)\/([\w\.]+)/i], [[f, /(.+)/, "$1 Secure " + Z], N], [/\bfocus\/([\w\.]+)/i], [N, [f, he + " Focus"]], [/\bopt\/([\w\.]+)/i], [N, [f, te + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [N, [f, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [N, [f, "Dolphin"]], [/coast\/([\w\.]+)/i], [N, [f, te + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [N, [f, "MIUI" + Et]], [/fxios\/([\w\.-]+)/i], [N, [f, he]], [/\bqihoobrowser\/?([\w\.]*)/i], [N, [f, "360"]], [/\b(qq)\/([\w\.]+)/i], [[f, /(.+)/, "$1Browser"], N], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[f, /(.+)/, "$1" + Et], N], [/samsungbrowser\/([\w\.]+)/i], [N, [f, Ve + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [N, [f, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[f, "Sogou Mobile"], N], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [f, N], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [f], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [N, f], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[f, Ft], N], [/(Klarna)\/([\w\.]+)/i, /(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, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [f, N], [/\bgsa\/([\w\.]+) .*safari\//i], [N, [f, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [N, [f, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [N, [f, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[f, de + " WebView"], N], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [N, [f, "Android " + Z]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [f, N], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [N, [f, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [N, f], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [f, [N, C, b]], [/(webkit|khtml)\/([\w\.]+)/i], [f, N], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[f, "Netscape"], N], [/(wolvic|librewolf)\/([\w\.]+)/i], [f, N], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [N, [f, he + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /\b(links) \(([\w\.]+)/i], [f, [N, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [f, [N, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[E, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[E, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[E, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[E, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[E, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[E, /ower/, o, y]], [/ sun4\w[;\)]/i], [[E, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[E, y]]], 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], [u, [M, Ve], [D, S]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [u, [M, Ve], [D, p]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [u, [M, J], [D, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [u, [M, J], [D, S]], [/(macintosh);/i], [u, [M, J]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [u, [M, nt], [D, p]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [u, [M, re], [D, S]], [/honor([-\w ]+)[;\)]/i], [u, [M, re], [D, p]], [/\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], [u, [M, H], [D, S]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [u, [M, H], [D, p]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[u, /_/g, " "], [M, Tt], [D, S]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i, / ([\w ]+) miui\/v?\d/i], [[u, /_/g, " "], [M, Tt], [D, p]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [u, [M, Ye], [D, p]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [u, [M, C, { OnePlus: ["304", "403", "203"], "*": Ye }], [D, S]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [u, [M, "Vivo"], [D, p]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [u, [M, "Realme"], [D, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [u, [M, Ee], [D, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [u, [M, Ee], [D, S]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [u, [M, X], [D, S]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [u, [M, X], [D, p]], [/(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], [u, [M, U], [D, S]], [/(nokia) (t[12][01])/i], [M, u, [D, S]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[u, /_/g, " "], [D, p], [M, "Nokia"]], [/(pixel (c|tablet))\b/i], [u, [M, ye], [D, S]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [u, [M, ye], [D, p]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [u, [M, Xe], [D, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[u, "Xperia Tablet"], [M, Xe], [D, S]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [u, [M, P], [D, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [u, [M, B], [D, S]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[u, /(.+)/g, "Fire Phone $1"], [M, B], [D, p]], [/(playbook);[-\w\),; ]+(rim)/i], [u, M, [D, S]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [u, [M, F], [D, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [u, [M, V], [D, S]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [u, [M, V], [D, p]], [/(nexus 9)/i], [u, [M, "HTC"], [D, S]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [M, [u, /_/g, " "], [D, p]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [u, [M, "TCL"], [D, S]], [/(itel) ((\w+))/i], [[M, y], u, [D, C, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [u, [M, "Acer"], [D, S]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [u, [M, "Meizu"], [D, p]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [u, [M, "Ulefone"], [D, p]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [u, [M, "Energizer"], [D, p]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [u, [M, "Cat"], [D, p]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [u, [M, "Smartfren"], [D, p]], [/droid.+; (a(?:015|06[35]|142p?))/i], [u, [M, "Nothing"], [D, p]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [u, [M, "Archos"], [D, S]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [u, [M, "Archos"], [D, p]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [M, u, [D, S]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (hmd|imo) ([\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i, /(oppo) ?([\w ]+) bui/i], [M, u, [D, p]], [/(kobo)\s(ereader|touch)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [M, u, [D, S]], [/(surface duo)/i], [u, [M, ie], [D, S]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [u, [M, "Fairphone"], [D, p]], [/(u304aa)/i], [u, [M, "AT&T"], [D, p]], [/\bsie-(\w*)/i], [u, [M, "Siemens"], [D, p]], [/\b(rct\w+) b/i], [u, [M, "RCA"], [D, S]], [/\b(venue[\d ]{2,7}) b/i], [u, [M, "Dell"], [D, S]], [/\b(q(?:mv|ta)\w+) b/i], [u, [M, "Verizon"], [D, S]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [u, [M, "Barnes & Noble"], [D, S]], [/\b(tm\d{3}\w+) b/i], [u, [M, "NuVision"], [D, S]], [/\b(k88) b/i], [u, [M, "ZTE"], [D, S]], [/\b(nx\d{3}j) b/i], [u, [M, "ZTE"], [D, p]], [/\b(gen\d{3}) b.+49h/i], [u, [M, "Swiss"], [D, p]], [/\b(zur\d{3}) b/i], [u, [M, "Swiss"], [D, S]], [/\b((zeki)?tb.*\b) b/i], [u, [M, "Zeki"], [D, S]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[M, "Dragon Touch"], u, [D, S]], [/\b(ns-?\w{0,9}) b/i], [u, [M, "Insignia"], [D, S]], [/\b((nxa|next)-?\w{0,9}) b/i], [u, [M, "NextBook"], [D, S]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[M, "Voice"], u, [D, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[M, "LvTel"], u, [D, p]], [/\b(ph-1) /i], [u, [M, "Essential"], [D, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [u, [M, "Envizen"], [D, S]], [/\b(trio[-\w\. ]+) b/i], [u, [M, "MachSpeed"], [D, S]], [/\btu_(1491) b/i], [u, [M, "Rotor"], [D, S]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [u, [M, ne], [D, S]], [/(sprint) (\w+)/i], [M, u, [D, p]], [/(kin\.[onetw]{3})/i], [[u, /\./g, " "], [M, ie], [D, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [u, [M, ot], [D, S]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [u, [M, ot], [D, p]], [/smart-tv.+(samsung)/i], [M, [D, k]], [/hbbtv.+maple;(\d+)/i], [[u, /^/, "SmartTV"], [M, Ve], [D, k]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[M, X], [D, k]], [/(apple) ?tv/i], [M, [u, J + " TV"], [D, k]], [/crkey/i], [[u, de + "cast"], [M, ye], [D, k]], [/droid.+aft(\w+)( bui|\))/i], [u, [M, B], [D, k]], [/(shield \w+ tv)/i], [u, [M, ne], [D, k]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [u, [M, nt], [D, k]], [/(bravia[\w ]+)( bui|\))/i], [u, [M, Xe], [D, k]], [/(mi(tv|box)-?\w+) bui/i], [u, [M, Tt], [D, k]], [/Hbbtv.*(technisat) (.*);/i], [M, u, [D, k]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[M, O], [u, O], [D, k]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [u, [D, k]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[D, k]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [M, u, [D, A]], [/droid.+; (shield)( bui|\))/i], [u, [M, ne], [D, A]], [/(playstation \w+)/i], [u, [M, Xe], [D, A]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [u, [M, ie], [D, A]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [u, [M, Ve], [D, v]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [M, u, [D, v]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [u, [M, Ye], [D, v]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [u, [M, J], [D, v]], [/(opwwe\d{3})/i], [u, [M, P], [D, v]], [/(moto 360)/i], [u, [M, Ee], [D, v]], [/(smartwatch 3)/i], [u, [M, Xe], [D, v]], [/(g watch r)/i], [u, [M, X], [D, v]], [/droid.+; (wt63?0{2,3})\)/i], [u, [M, ot], [D, v]], [/droid.+; (glass) \d/i], [u, [M, ye], [D, v]], [/(pico) (4|neo3(?: link|pro)?)/i], [M, u, [D, v]], [/; (quest( \d| pro)?)/i], [u, [M, Ft], [D, v]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [M, [D, x]], [/(aeobc)\b/i], [u, [M, B], [D, x]], [/(homepod).+mac os/i], [u, [M, J], [D, x]], [/windows iot/i], [[D, x]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [u, [D, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [u, [D, S]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[D, S]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[D, p]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [u, [M, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [N, [f, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [f, N], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [N, [f, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [f, N], [/ladybird\//i], [[f, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [N, f]], os: [[/microsoft (windows) (vista|xp)/i], [f, N], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [f, [N, C, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[N, C, W], [f, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[N, /_/g, "."], [f, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[f, Nt], [N, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [N, f], [/(ubuntu) ([\w\.]+) like android/i], [[f, /(.+)/, "$1 Touch"], N], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [f, N], [/\(bb(10);/i], [N, [f, F]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [N, [f, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [N, [f, he + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [N, [f, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [N, [f, "watchOS"]], [/crkey\/([\d\.]+)/i], [N, [f, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[f, At], N], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [f, N], [/(sunos) ?([\w\.\d]*)/i], [[f, "Solaris"], N], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [f, N]] }, G = function(q, ce) {
|
|
1632
1635
|
if (typeof q === l && (ce = q, q = i), !(this instanceof G))
|
|
1633
1636
|
return new G(q, ce).getResult();
|
|
1634
1637
|
var $ = typeof r !== c && r.navigator ? r.navigator : i, fe = q || ($ && $.userAgent ? $.userAgent : o), Fe = $ && $.userAgentData ? $.userAgentData : i, _e = ce ? Vt(oe, ce) : oe, Ne = $ && $.userAgent == fe;
|
|
1635
1638
|
return this.getBrowser = function() {
|
|
1636
1639
|
var K = {};
|
|
1637
|
-
return K[f] = i, K[
|
|
1640
|
+
return K[f] = i, K[N] = i, Q.call(K, fe, _e.browser), K[d] = w(K[N]), Ne && $ && $.brave && typeof $.brave.isBrave == a && (K[f] = "Brave"), K;
|
|
1638
1641
|
}, this.getCPU = function() {
|
|
1639
1642
|
var K = {};
|
|
1640
1643
|
return K[E] = i, Q.call(K, fe, _e.cpu), K;
|
|
@@ -1643,19 +1646,19 @@ function Bu() {
|
|
|
1643
1646
|
return K[M] = i, K[u] = i, K[D] = i, Q.call(K, fe, _e.device), Ne && !K[D] && Fe && Fe.mobile && (K[D] = p), Ne && K[u] == "Macintosh" && $ && typeof $.standalone !== c && $.maxTouchPoints && $.maxTouchPoints > 2 && (K[u] = "iPad", K[D] = S), K;
|
|
1644
1647
|
}, this.getEngine = function() {
|
|
1645
1648
|
var K = {};
|
|
1646
|
-
return K[f] = i, K[
|
|
1649
|
+
return K[f] = i, K[N] = i, Q.call(K, fe, _e.engine), K;
|
|
1647
1650
|
}, this.getOS = function() {
|
|
1648
1651
|
var K = {};
|
|
1649
|
-
return K[f] = i, K[
|
|
1652
|
+
return K[f] = i, K[N] = i, Q.call(K, fe, _e.os), Ne && !K[f] && Fe && Fe.platform && Fe.platform != "Unknown" && (K[f] = Fe.platform.replace(/chrome os/i, At).replace(/macos/i, Nt)), K;
|
|
1650
1653
|
}, this.getResult = function() {
|
|
1651
1654
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1652
1655
|
}, this.getUA = function() {
|
|
1653
1656
|
return fe;
|
|
1654
1657
|
}, this.setUA = function(K) {
|
|
1655
|
-
return fe = typeof K ===
|
|
1658
|
+
return fe = typeof K === g && K.length > ae ? O(K, ae) : K, this;
|
|
1656
1659
|
}, this.setUA(fe), this;
|
|
1657
1660
|
};
|
|
1658
|
-
G.VERSION = n, G.BROWSER = It([f,
|
|
1661
|
+
G.VERSION = n, G.BROWSER = It([f, N, d]), G.CPU = It([E]), G.DEVICE = It([u, M, D, A, p, k, S, v, x]), G.ENGINE = G.OS = It([f, N]), t.exports && (e = t.exports = G), e.UAParser = G;
|
|
1659
1662
|
var De = typeof r !== c && (r.jQuery || r.Zepto);
|
|
1660
1663
|
if (De && !De.ua) {
|
|
1661
1664
|
var Le = new G();
|
|
@@ -1678,14 +1681,14 @@ function Wu() {
|
|
|
1678
1681
|
function t(m) {
|
|
1679
1682
|
return m && typeof m == "object" && "default" in m ? m.default : m;
|
|
1680
1683
|
}
|
|
1681
|
-
var e = Fu, r = t(e), i = Bu(), n = new i(), o = n.getBrowser(), s = n.getCPU(), a = n.getDevice(), c = n.getEngine(), l = n.getOS(),
|
|
1682
|
-
return n.setUA(
|
|
1683
|
-
}, u = function(
|
|
1684
|
-
if (!
|
|
1684
|
+
var e = Fu, r = t(e), i = Bu(), n = new i(), o = n.getBrowser(), s = n.getCPU(), a = n.getDevice(), c = n.getEngine(), l = n.getOS(), g = n.getUA(), d = function(I) {
|
|
1685
|
+
return n.setUA(I);
|
|
1686
|
+
}, u = function(I) {
|
|
1687
|
+
if (!I) {
|
|
1685
1688
|
console.error("No userAgent string was provided");
|
|
1686
1689
|
return;
|
|
1687
1690
|
}
|
|
1688
|
-
var h = new i(
|
|
1691
|
+
var h = new i(I);
|
|
1689
1692
|
return {
|
|
1690
1693
|
UA: h,
|
|
1691
1694
|
browser: h.getBrowser(),
|
|
@@ -1705,24 +1708,24 @@ function Wu() {
|
|
|
1705
1708
|
device: a,
|
|
1706
1709
|
engine: c,
|
|
1707
1710
|
os: l,
|
|
1708
|
-
ua:
|
|
1711
|
+
ua: g,
|
|
1709
1712
|
setUa: d,
|
|
1710
1713
|
parseUserAgent: u
|
|
1711
1714
|
});
|
|
1712
|
-
function D(m,
|
|
1715
|
+
function D(m, I) {
|
|
1713
1716
|
var h = Object.keys(m);
|
|
1714
1717
|
if (Object.getOwnPropertySymbols) {
|
|
1715
1718
|
var _ = Object.getOwnPropertySymbols(m);
|
|
1716
|
-
|
|
1719
|
+
I && (_ = _.filter(function(z) {
|
|
1717
1720
|
return Object.getOwnPropertyDescriptor(m, z).enumerable;
|
|
1718
1721
|
})), h.push.apply(h, _);
|
|
1719
1722
|
}
|
|
1720
1723
|
return h;
|
|
1721
1724
|
}
|
|
1722
1725
|
function M(m) {
|
|
1723
|
-
for (var
|
|
1724
|
-
var h = arguments[
|
|
1725
|
-
|
|
1726
|
+
for (var I = 1; I < arguments.length; I++) {
|
|
1727
|
+
var h = arguments[I] != null ? arguments[I] : {};
|
|
1728
|
+
I % 2 ? D(Object(h), !0).forEach(function(_) {
|
|
1726
1729
|
S(m, _, h[_]);
|
|
1727
1730
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(m, Object.getOwnPropertyDescriptors(h)) : D(Object(h)).forEach(function(_) {
|
|
1728
1731
|
Object.defineProperty(m, _, Object.getOwnPropertyDescriptor(h, _));
|
|
@@ -1730,80 +1733,80 @@ function Wu() {
|
|
|
1730
1733
|
}
|
|
1731
1734
|
return m;
|
|
1732
1735
|
}
|
|
1733
|
-
function
|
|
1736
|
+
function N(m) {
|
|
1734
1737
|
"@babel/helpers - typeof";
|
|
1735
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
1736
|
-
return typeof
|
|
1737
|
-
} :
|
|
1738
|
-
return
|
|
1739
|
-
},
|
|
1740
|
-
}
|
|
1741
|
-
function E(m,
|
|
1742
|
-
if (!(m instanceof
|
|
1738
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? N = function(I) {
|
|
1739
|
+
return typeof I;
|
|
1740
|
+
} : N = function(I) {
|
|
1741
|
+
return I && typeof Symbol == "function" && I.constructor === Symbol && I !== Symbol.prototype ? "symbol" : typeof I;
|
|
1742
|
+
}, N(m);
|
|
1743
|
+
}
|
|
1744
|
+
function E(m, I) {
|
|
1745
|
+
if (!(m instanceof I))
|
|
1743
1746
|
throw new TypeError("Cannot call a class as a function");
|
|
1744
1747
|
}
|
|
1745
|
-
function A(m,
|
|
1746
|
-
for (var h = 0; h <
|
|
1747
|
-
var _ =
|
|
1748
|
+
function A(m, I) {
|
|
1749
|
+
for (var h = 0; h < I.length; h++) {
|
|
1750
|
+
var _ = I[h];
|
|
1748
1751
|
_.enumerable = _.enumerable || !1, _.configurable = !0, "value" in _ && (_.writable = !0), Object.defineProperty(m, _.key, _);
|
|
1749
1752
|
}
|
|
1750
1753
|
}
|
|
1751
|
-
function p(m,
|
|
1752
|
-
return
|
|
1754
|
+
function p(m, I, h) {
|
|
1755
|
+
return I && A(m.prototype, I), m;
|
|
1753
1756
|
}
|
|
1754
|
-
function S(m,
|
|
1755
|
-
return
|
|
1757
|
+
function S(m, I, h) {
|
|
1758
|
+
return I in m ? Object.defineProperty(m, I, {
|
|
1756
1759
|
value: h,
|
|
1757
1760
|
enumerable: !0,
|
|
1758
1761
|
configurable: !0,
|
|
1759
1762
|
writable: !0
|
|
1760
|
-
}) : m[
|
|
1763
|
+
}) : m[I] = h, m;
|
|
1761
1764
|
}
|
|
1762
1765
|
function k() {
|
|
1763
1766
|
return k = Object.assign || function(m) {
|
|
1764
|
-
for (var
|
|
1765
|
-
var h = arguments[
|
|
1767
|
+
for (var I = 1; I < arguments.length; I++) {
|
|
1768
|
+
var h = arguments[I];
|
|
1766
1769
|
for (var _ in h)
|
|
1767
1770
|
Object.prototype.hasOwnProperty.call(h, _) && (m[_] = h[_]);
|
|
1768
1771
|
}
|
|
1769
1772
|
return m;
|
|
1770
1773
|
}, k.apply(this, arguments);
|
|
1771
1774
|
}
|
|
1772
|
-
function v(m,
|
|
1773
|
-
if (typeof
|
|
1775
|
+
function v(m, I) {
|
|
1776
|
+
if (typeof I != "function" && I !== null)
|
|
1774
1777
|
throw new TypeError("Super expression must either be null or a function");
|
|
1775
|
-
m.prototype = Object.create(
|
|
1778
|
+
m.prototype = Object.create(I && I.prototype, {
|
|
1776
1779
|
constructor: {
|
|
1777
1780
|
value: m,
|
|
1778
1781
|
writable: !0,
|
|
1779
1782
|
configurable: !0
|
|
1780
1783
|
}
|
|
1781
|
-
}),
|
|
1784
|
+
}), I && ae(m, I);
|
|
1782
1785
|
}
|
|
1783
1786
|
function x(m) {
|
|
1784
1787
|
return x = Object.setPrototypeOf ? Object.getPrototypeOf : function(h) {
|
|
1785
1788
|
return h.__proto__ || Object.getPrototypeOf(h);
|
|
1786
1789
|
}, x(m);
|
|
1787
1790
|
}
|
|
1788
|
-
function ae(m,
|
|
1791
|
+
function ae(m, I) {
|
|
1789
1792
|
return ae = Object.setPrototypeOf || function(_, z) {
|
|
1790
1793
|
return _.__proto__ = z, _;
|
|
1791
|
-
}, ae(m,
|
|
1794
|
+
}, ae(m, I);
|
|
1792
1795
|
}
|
|
1793
|
-
function B(m,
|
|
1796
|
+
function B(m, I) {
|
|
1794
1797
|
if (m == null) return {};
|
|
1795
1798
|
var h = {}, _ = Object.keys(m), z, Ie;
|
|
1796
1799
|
for (Ie = 0; Ie < _.length; Ie++)
|
|
1797
|
-
z = _[Ie], !(
|
|
1800
|
+
z = _[Ie], !(I.indexOf(z) >= 0) && (h[z] = m[z]);
|
|
1798
1801
|
return h;
|
|
1799
1802
|
}
|
|
1800
|
-
function J(m,
|
|
1803
|
+
function J(m, I) {
|
|
1801
1804
|
if (m == null) return {};
|
|
1802
|
-
var h = B(m,
|
|
1805
|
+
var h = B(m, I), _, z;
|
|
1803
1806
|
if (Object.getOwnPropertySymbols) {
|
|
1804
1807
|
var Ie = Object.getOwnPropertySymbols(m);
|
|
1805
1808
|
for (z = 0; z < Ie.length; z++)
|
|
1806
|
-
_ = Ie[z], !(
|
|
1809
|
+
_ = Ie[z], !(I.indexOf(_) >= 0) && Object.prototype.propertyIsEnumerable.call(m, _) && (h[_] = m[_]);
|
|
1807
1810
|
}
|
|
1808
1811
|
return h;
|
|
1809
1812
|
}
|
|
@@ -1812,25 +1815,25 @@ function Wu() {
|
|
|
1812
1815
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
1813
1816
|
return m;
|
|
1814
1817
|
}
|
|
1815
|
-
function F(m,
|
|
1816
|
-
if (
|
|
1817
|
-
return
|
|
1818
|
-
if (
|
|
1818
|
+
function F(m, I) {
|
|
1819
|
+
if (I && (typeof I == "object" || typeof I == "function"))
|
|
1820
|
+
return I;
|
|
1821
|
+
if (I !== void 0)
|
|
1819
1822
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
1820
1823
|
return V(m);
|
|
1821
1824
|
}
|
|
1822
|
-
function Z(m,
|
|
1823
|
-
return de(m) || le(m,
|
|
1825
|
+
function Z(m, I) {
|
|
1826
|
+
return de(m) || le(m, I) || he(m, I) || re();
|
|
1824
1827
|
}
|
|
1825
1828
|
function de(m) {
|
|
1826
1829
|
if (Array.isArray(m)) return m;
|
|
1827
1830
|
}
|
|
1828
|
-
function le(m,
|
|
1831
|
+
function le(m, I) {
|
|
1829
1832
|
var h = m == null ? null : typeof Symbol != "undefined" && m[Symbol.iterator] || m["@@iterator"];
|
|
1830
1833
|
if (h != null) {
|
|
1831
1834
|
var _ = [], z = !0, Ie = !1, Oe, Ge;
|
|
1832
1835
|
try {
|
|
1833
|
-
for (h = h.call(m); !(z = (Oe = h.next()).done) && (_.push(Oe.value), !(
|
|
1836
|
+
for (h = h.call(m); !(z = (Oe = h.next()).done) && (_.push(Oe.value), !(I && _.length === I)); z = !0)
|
|
1834
1837
|
;
|
|
1835
1838
|
} catch (wi) {
|
|
1836
1839
|
Ie = !0, Ge = wi;
|
|
@@ -1844,17 +1847,17 @@ function Wu() {
|
|
|
1844
1847
|
return _;
|
|
1845
1848
|
}
|
|
1846
1849
|
}
|
|
1847
|
-
function he(m,
|
|
1850
|
+
function he(m, I) {
|
|
1848
1851
|
if (m) {
|
|
1849
|
-
if (typeof m == "string") return ye(m,
|
|
1852
|
+
if (typeof m == "string") return ye(m, I);
|
|
1850
1853
|
var h = Object.prototype.toString.call(m).slice(8, -1);
|
|
1851
1854
|
if (h === "Object" && m.constructor && (h = m.constructor.name), h === "Map" || h === "Set") return Array.from(m);
|
|
1852
|
-
if (h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)) return ye(m,
|
|
1855
|
+
if (h === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)) return ye(m, I);
|
|
1853
1856
|
}
|
|
1854
1857
|
}
|
|
1855
|
-
function ye(m,
|
|
1856
|
-
(
|
|
1857
|
-
for (var h = 0, _ = new Array(
|
|
1858
|
+
function ye(m, I) {
|
|
1859
|
+
(I == null || I > m.length) && (I = m.length);
|
|
1860
|
+
for (var h = 0, _ = new Array(I); h < I; h++) _[h] = m[h];
|
|
1858
1861
|
return _;
|
|
1859
1862
|
}
|
|
1860
1863
|
function re() {
|
|
@@ -1896,8 +1899,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1896
1899
|
isSmartTV: !1,
|
|
1897
1900
|
isConsole: !1,
|
|
1898
1901
|
isWearable: !1
|
|
1899
|
-
}, Ee = function(
|
|
1900
|
-
switch (
|
|
1902
|
+
}, Ee = function(I) {
|
|
1903
|
+
switch (I) {
|
|
1901
1904
|
case H.Mobile:
|
|
1902
1905
|
return {
|
|
1903
1906
|
isMobile: !0
|
|
@@ -1929,19 +1932,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1929
1932
|
default:
|
|
1930
1933
|
return ie;
|
|
1931
1934
|
}
|
|
1932
|
-
}, ne = function(
|
|
1933
|
-
return d(
|
|
1934
|
-
}, P = function(
|
|
1935
|
+
}, ne = function(I) {
|
|
1936
|
+
return d(I);
|
|
1937
|
+
}, P = function(I) {
|
|
1935
1938
|
var h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "none";
|
|
1936
|
-
return
|
|
1939
|
+
return I || h;
|
|
1937
1940
|
}, te = function() {
|
|
1938
1941
|
return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
1939
|
-
}, Ye = function(
|
|
1942
|
+
}, Ye = function(I) {
|
|
1940
1943
|
var h = te();
|
|
1941
|
-
return h && h.platform && (h.platform.indexOf(
|
|
1942
|
-
}, Ve = function(
|
|
1944
|
+
return h && h.platform && (h.platform.indexOf(I) !== -1 || h.platform === "MacIntel" && h.maxTouchPoints > 1 && !window.MSStream);
|
|
1945
|
+
}, Ve = function(I, h, _, z, Ie) {
|
|
1943
1946
|
return {
|
|
1944
|
-
isBrowser:
|
|
1947
|
+
isBrowser: I,
|
|
1945
1948
|
browserMajorVersion: P(h.major),
|
|
1946
1949
|
browserFullVersion: P(h.version),
|
|
1947
1950
|
browserName: P(h.name),
|
|
@@ -1951,44 +1954,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1951
1954
|
osVersion: P(z.version),
|
|
1952
1955
|
userAgent: P(Ie)
|
|
1953
1956
|
};
|
|
1954
|
-
}, nt = function(
|
|
1955
|
-
return M({},
|
|
1957
|
+
}, nt = function(I, h, _, z) {
|
|
1958
|
+
return M({}, I, {
|
|
1956
1959
|
vendor: P(h.vendor),
|
|
1957
1960
|
model: P(h.model),
|
|
1958
1961
|
os: P(_.name),
|
|
1959
1962
|
osVersion: P(_.version),
|
|
1960
1963
|
ua: P(z)
|
|
1961
1964
|
});
|
|
1962
|
-
}, Xe = function(
|
|
1965
|
+
}, Xe = function(I, h, _, z) {
|
|
1963
1966
|
return {
|
|
1964
|
-
isSmartTV:
|
|
1967
|
+
isSmartTV: I,
|
|
1965
1968
|
engineName: P(h.name),
|
|
1966
1969
|
engineVersion: P(h.version),
|
|
1967
1970
|
osName: P(_.name),
|
|
1968
1971
|
osVersion: P(_.version),
|
|
1969
1972
|
userAgent: P(z)
|
|
1970
1973
|
};
|
|
1971
|
-
}, Tt = function(
|
|
1974
|
+
}, Tt = function(I, h, _, z) {
|
|
1972
1975
|
return {
|
|
1973
|
-
isConsole:
|
|
1976
|
+
isConsole: I,
|
|
1974
1977
|
engineName: P(h.name),
|
|
1975
1978
|
engineVersion: P(h.version),
|
|
1976
1979
|
osName: P(_.name),
|
|
1977
1980
|
osVersion: P(_.version),
|
|
1978
1981
|
userAgent: P(z)
|
|
1979
1982
|
};
|
|
1980
|
-
}, ot = function(
|
|
1983
|
+
}, ot = function(I, h, _, z) {
|
|
1981
1984
|
return {
|
|
1982
|
-
isWearable:
|
|
1985
|
+
isWearable: I,
|
|
1983
1986
|
engineName: P(h.name),
|
|
1984
1987
|
engineVersion: P(h.version),
|
|
1985
1988
|
osName: P(_.name),
|
|
1986
1989
|
osVersion: P(_.version),
|
|
1987
1990
|
userAgent: P(z)
|
|
1988
1991
|
};
|
|
1989
|
-
}, Ft = function(
|
|
1992
|
+
}, Ft = function(I, h, _, z, Ie) {
|
|
1990
1993
|
return {
|
|
1991
|
-
isEmbedded:
|
|
1994
|
+
isEmbedded: I,
|
|
1992
1995
|
vendor: P(h.vendor),
|
|
1993
1996
|
model: P(h.model),
|
|
1994
1997
|
engineName: P(_.name),
|
|
@@ -1999,7 +2002,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1999
2002
|
};
|
|
2000
2003
|
};
|
|
2001
2004
|
function At(m) {
|
|
2002
|
-
var
|
|
2005
|
+
var I = m ? u(m) : f, h = I.device, _ = I.browser, z = I.engine, Ie = I.os, Oe = I.ua, Ge = Ee(h.type), wi = Ge.isBrowser, zc = Ge.isMobile, vc = Ge.isTablet, bo = Ge.isSmartTV, Lo = Ge.isConsole, ko = Ge.isWearable, Uo = Ge.isEmbedded;
|
|
2003
2006
|
if (wi)
|
|
2004
2007
|
return Ve(wi, _, z, Ie, Oe);
|
|
2005
2008
|
if (bo)
|
|
@@ -2013,127 +2016,127 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2013
2016
|
if (Uo)
|
|
2014
2017
|
return Ft(Uo, h, z, Ie, Oe);
|
|
2015
2018
|
}
|
|
2016
|
-
var Nt = function(
|
|
2017
|
-
var h =
|
|
2019
|
+
var Nt = function(I) {
|
|
2020
|
+
var h = I.type;
|
|
2018
2021
|
return h === H.Mobile;
|
|
2019
|
-
}, Et = function(
|
|
2020
|
-
var h =
|
|
2022
|
+
}, Et = function(I) {
|
|
2023
|
+
var h = I.type;
|
|
2021
2024
|
return h === H.Tablet;
|
|
2022
|
-
}, Vt = function(
|
|
2023
|
-
var h =
|
|
2025
|
+
}, Vt = function(I) {
|
|
2026
|
+
var h = I.type;
|
|
2024
2027
|
return h === H.Mobile || h === H.Tablet;
|
|
2025
|
-
}, It = function(
|
|
2026
|
-
var h =
|
|
2028
|
+
}, It = function(I) {
|
|
2029
|
+
var h = I.type;
|
|
2027
2030
|
return h === H.SmartTv;
|
|
2028
|
-
}, rt = function(
|
|
2029
|
-
var h =
|
|
2031
|
+
}, rt = function(I) {
|
|
2032
|
+
var h = I.type;
|
|
2030
2033
|
return h === H.Browser;
|
|
2031
|
-
}, y = function(
|
|
2032
|
-
var h =
|
|
2034
|
+
}, y = function(I) {
|
|
2035
|
+
var h = I.type;
|
|
2033
2036
|
return h === H.Wearable;
|
|
2034
|
-
}, w = function(
|
|
2035
|
-
var h =
|
|
2037
|
+
}, w = function(I) {
|
|
2038
|
+
var h = I.type;
|
|
2036
2039
|
return h === H.Console;
|
|
2037
|
-
}, O = function(
|
|
2038
|
-
var h =
|
|
2040
|
+
}, O = function(I) {
|
|
2041
|
+
var h = I.type;
|
|
2039
2042
|
return h === H.Embedded;
|
|
2040
|
-
}, Q = function(
|
|
2041
|
-
var h =
|
|
2043
|
+
}, Q = function(I) {
|
|
2044
|
+
var h = I.vendor;
|
|
2042
2045
|
return P(h);
|
|
2043
|
-
}, C = function(
|
|
2044
|
-
var h =
|
|
2046
|
+
}, C = function(I) {
|
|
2047
|
+
var h = I.model;
|
|
2045
2048
|
return P(h);
|
|
2046
|
-
}, b = function(
|
|
2047
|
-
var h =
|
|
2049
|
+
}, b = function(I) {
|
|
2050
|
+
var h = I.type;
|
|
2048
2051
|
return P(h, "browser");
|
|
2049
|
-
}, W = function(
|
|
2050
|
-
var h =
|
|
2052
|
+
}, W = function(I) {
|
|
2053
|
+
var h = I.name;
|
|
2051
2054
|
return h === X.Android;
|
|
2052
|
-
}, oe = function(
|
|
2053
|
-
var h =
|
|
2055
|
+
}, oe = function(I) {
|
|
2056
|
+
var h = I.name;
|
|
2054
2057
|
return h === X.Windows;
|
|
2055
|
-
}, G = function(
|
|
2056
|
-
var h =
|
|
2058
|
+
}, G = function(I) {
|
|
2059
|
+
var h = I.name;
|
|
2057
2060
|
return h === X.MAC_OS;
|
|
2058
|
-
}, De = function(
|
|
2059
|
-
var h =
|
|
2061
|
+
}, De = function(I) {
|
|
2062
|
+
var h = I.name;
|
|
2060
2063
|
return h === X.WindowsPhone;
|
|
2061
|
-
}, Le = function(
|
|
2062
|
-
var h =
|
|
2064
|
+
}, Le = function(I) {
|
|
2065
|
+
var h = I.name;
|
|
2063
2066
|
return h === X.IOS;
|
|
2064
|
-
}, q = function(
|
|
2065
|
-
var h =
|
|
2067
|
+
}, q = function(I) {
|
|
2068
|
+
var h = I.version;
|
|
2066
2069
|
return P(h);
|
|
2067
|
-
}, ce = function(
|
|
2068
|
-
var h =
|
|
2070
|
+
}, ce = function(I) {
|
|
2071
|
+
var h = I.name;
|
|
2069
2072
|
return P(h);
|
|
2070
|
-
}, $ = function(
|
|
2071
|
-
var h =
|
|
2073
|
+
}, $ = function(I) {
|
|
2074
|
+
var h = I.name;
|
|
2072
2075
|
return h === U.Chrome;
|
|
2073
|
-
}, fe = function(
|
|
2074
|
-
var h =
|
|
2076
|
+
}, fe = function(I) {
|
|
2077
|
+
var h = I.name;
|
|
2075
2078
|
return h === U.Firefox;
|
|
2076
|
-
}, Fe = function(
|
|
2077
|
-
var h =
|
|
2079
|
+
}, Fe = function(I) {
|
|
2080
|
+
var h = I.name;
|
|
2078
2081
|
return h === U.Chromium;
|
|
2079
|
-
}, _e = function(
|
|
2080
|
-
var h =
|
|
2082
|
+
}, _e = function(I) {
|
|
2083
|
+
var h = I.name;
|
|
2081
2084
|
return h === U.Edge;
|
|
2082
|
-
}, Ne = function(
|
|
2083
|
-
var h =
|
|
2085
|
+
}, Ne = function(I) {
|
|
2086
|
+
var h = I.name;
|
|
2084
2087
|
return h === U.Yandex;
|
|
2085
|
-
}, K = function(
|
|
2086
|
-
var h =
|
|
2088
|
+
}, K = function(I) {
|
|
2089
|
+
var h = I.name;
|
|
2087
2090
|
return h === U.Safari || h === U.MobileSafari;
|
|
2088
|
-
}, Be = function(
|
|
2089
|
-
var h =
|
|
2091
|
+
}, Be = function(I) {
|
|
2092
|
+
var h = I.name;
|
|
2090
2093
|
return h === U.MobileSafari;
|
|
2091
|
-
}, Bt = function(
|
|
2092
|
-
var h =
|
|
2094
|
+
}, Bt = function(I) {
|
|
2095
|
+
var h = I.name;
|
|
2093
2096
|
return h === U.Opera;
|
|
2094
|
-
}, Jt = function(
|
|
2095
|
-
var h =
|
|
2097
|
+
}, Jt = function(I) {
|
|
2098
|
+
var h = I.name;
|
|
2096
2099
|
return h === U.InternetExplorer || h === U.Ie;
|
|
2097
|
-
}, ei = function(
|
|
2098
|
-
var h =
|
|
2100
|
+
}, ei = function(I) {
|
|
2101
|
+
var h = I.name;
|
|
2099
2102
|
return h === U.MIUI;
|
|
2100
|
-
}, ti = function(
|
|
2101
|
-
var h =
|
|
2103
|
+
}, ti = function(I) {
|
|
2104
|
+
var h = I.name;
|
|
2102
2105
|
return h === U.SamsungBrowser;
|
|
2103
|
-
}, ri = function(
|
|
2104
|
-
var h =
|
|
2106
|
+
}, ri = function(I) {
|
|
2107
|
+
var h = I.version;
|
|
2105
2108
|
return P(h);
|
|
2106
|
-
}, ii = function(
|
|
2107
|
-
var h =
|
|
2109
|
+
}, ii = function(I) {
|
|
2110
|
+
var h = I.major;
|
|
2108
2111
|
return P(h);
|
|
2109
|
-
}, ni = function(
|
|
2110
|
-
var h =
|
|
2112
|
+
}, ni = function(I) {
|
|
2113
|
+
var h = I.name;
|
|
2111
2114
|
return P(h);
|
|
2112
|
-
}, oi = function(
|
|
2113
|
-
var h =
|
|
2115
|
+
}, oi = function(I) {
|
|
2116
|
+
var h = I.name;
|
|
2114
2117
|
return P(h);
|
|
2115
|
-
}, si = function(
|
|
2116
|
-
var h =
|
|
2118
|
+
}, si = function(I) {
|
|
2119
|
+
var h = I.version;
|
|
2117
2120
|
return P(h);
|
|
2118
2121
|
}, ai = function() {
|
|
2119
|
-
var
|
|
2122
|
+
var I = te(), h = I && I.userAgent && I.userAgent.toLowerCase();
|
|
2120
2123
|
return typeof h == "string" ? /electron/.test(h) : !1;
|
|
2121
|
-
}, Wt = function(
|
|
2122
|
-
return typeof
|
|
2124
|
+
}, Wt = function(I) {
|
|
2125
|
+
return typeof I == "string" && I.indexOf("Edg/") !== -1;
|
|
2123
2126
|
}, ci = function() {
|
|
2124
|
-
var
|
|
2125
|
-
return
|
|
2127
|
+
var I = te();
|
|
2128
|
+
return I && (/iPad|iPhone|iPod/.test(I.platform) || I.platform === "MacIntel" && I.maxTouchPoints > 1) && !window.MSStream;
|
|
2126
2129
|
}, it = function() {
|
|
2127
2130
|
return Ye("iPad");
|
|
2128
2131
|
}, ui = function() {
|
|
2129
2132
|
return Ye("iPhone");
|
|
2130
2133
|
}, li = function() {
|
|
2131
2134
|
return Ye("iPod");
|
|
2132
|
-
}, di = function(
|
|
2133
|
-
return P(
|
|
2135
|
+
}, di = function(I) {
|
|
2136
|
+
return P(I);
|
|
2134
2137
|
};
|
|
2135
2138
|
function Mi(m) {
|
|
2136
|
-
var
|
|
2139
|
+
var I = m || f, h = I.device, _ = I.browser, z = I.os, Ie = I.engine, Oe = I.ua;
|
|
2137
2140
|
return {
|
|
2138
2141
|
isSmartTV: It(h),
|
|
2139
2142
|
isConsole: w(h),
|
|
@@ -2180,12 +2183,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2180
2183
|
isSamsungBrowser: ti(_)
|
|
2181
2184
|
};
|
|
2182
2185
|
}
|
|
2183
|
-
var gi = It(a), Ni = w(a), Ii = y(a), sn = O(a), an = Be(o) || it(), cn = Fe(o), Nr = Vt(a) || it(), fi = Nt(a), Di = Et(a) || it(), hi = rt(a), un = rt(a), yi = W(l), pi = De(l), Ti = Le(l) || it(), ln = $(o), dn = fe(o), Mn = K(o), gn = Bt(o), Ai = Jt(o), Nn = q(l), In = ce(l), fn = ri(o), Dn = ii(o), hn = ni(o), yn = Q(a), pn = C(a), Tn = oi(c), An = si(c), En = di(
|
|
2184
|
-
if (!
|
|
2186
|
+
var gi = It(a), Ni = w(a), Ii = y(a), sn = O(a), an = Be(o) || it(), cn = Fe(o), Nr = Vt(a) || it(), fi = Nt(a), Di = Et(a) || it(), hi = rt(a), un = rt(a), yi = W(l), pi = De(l), Ti = Le(l) || it(), ln = $(o), dn = fe(o), Mn = K(o), gn = Bt(o), Ai = Jt(o), Nn = q(l), In = ce(l), fn = ri(o), Dn = ii(o), hn = ni(o), yn = Q(a), pn = C(a), Tn = oi(c), An = si(c), En = di(g), ft = _e(o) || Wt(g), mn = Ne(o), se = b(a), st = ci(), Ir = it(), Ei = ui(), mi = li(), ji = ai(), uc = Wt(g), lc = _e(o) && !Wt(g), dc = oe(l), Mc = G(l), gc = ei(o), Nc = ti(o), Ic = function(I) {
|
|
2187
|
+
if (!I || typeof I != "string") {
|
|
2185
2188
|
console.error("No valid user agent string was provided");
|
|
2186
2189
|
return;
|
|
2187
2190
|
}
|
|
2188
|
-
var h = u(
|
|
2191
|
+
var h = u(I), _ = h.device, z = h.browser, Ie = h.os, Oe = h.engine, Ge = h.ua;
|
|
2189
2192
|
return Mi({
|
|
2190
2193
|
device: _,
|
|
2191
2194
|
browser: z,
|
|
@@ -2193,50 +2196,50 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2193
2196
|
engine: Oe,
|
|
2194
2197
|
ua: Ge
|
|
2195
2198
|
});
|
|
2196
|
-
}, fc = function(
|
|
2197
|
-
var h =
|
|
2199
|
+
}, fc = function(I) {
|
|
2200
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2198
2201
|
return yi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2199
|
-
}, Dc = function(
|
|
2200
|
-
var h =
|
|
2202
|
+
}, Dc = function(I) {
|
|
2203
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2201
2204
|
return hi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2202
|
-
}, hc = function(
|
|
2203
|
-
var h =
|
|
2205
|
+
}, hc = function(I) {
|
|
2206
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2204
2207
|
return Ai ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2205
|
-
}, yc = function(
|
|
2206
|
-
var h =
|
|
2208
|
+
}, yc = function(I) {
|
|
2209
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2207
2210
|
return Ti ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2208
|
-
}, pc = function(
|
|
2209
|
-
var h =
|
|
2211
|
+
}, pc = function(I) {
|
|
2212
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2210
2213
|
return Nr ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2211
|
-
}, Tc = function(
|
|
2212
|
-
var h =
|
|
2214
|
+
}, Tc = function(I) {
|
|
2215
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2213
2216
|
return Di ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2214
|
-
}, Ac = function(
|
|
2215
|
-
var h =
|
|
2217
|
+
}, Ac = function(I) {
|
|
2218
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2216
2219
|
return pi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2217
|
-
}, Ec = function(
|
|
2218
|
-
var h =
|
|
2219
|
-
|
|
2220
|
-
var z = J(
|
|
2220
|
+
}, Ec = function(I) {
|
|
2221
|
+
var h = I.renderWithFragment, _ = I.children;
|
|
2222
|
+
I.viewClassName, I.style;
|
|
2223
|
+
var z = J(I, ["renderWithFragment", "children", "viewClassName", "style"]);
|
|
2221
2224
|
return fi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2222
|
-
}, mc = function(
|
|
2223
|
-
var h =
|
|
2225
|
+
}, mc = function(I) {
|
|
2226
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2224
2227
|
return gi ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2225
|
-
}, jc = function(
|
|
2226
|
-
var h =
|
|
2228
|
+
}, jc = function(I) {
|
|
2229
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2227
2230
|
return Ni ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2228
|
-
}, wc = function(
|
|
2229
|
-
var h =
|
|
2231
|
+
}, wc = function(I) {
|
|
2232
|
+
var h = I.renderWithFragment, _ = I.children, z = J(I, ["renderWithFragment", "children"]);
|
|
2230
2233
|
return Ii ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", z, _) : null;
|
|
2231
|
-
}, Sc = function(
|
|
2232
|
-
var h =
|
|
2233
|
-
|
|
2234
|
-
var z =
|
|
2234
|
+
}, Sc = function(I) {
|
|
2235
|
+
var h = I.renderWithFragment, _ = I.children;
|
|
2236
|
+
I.viewClassName, I.style;
|
|
2237
|
+
var z = I.condition, Ie = J(I, ["renderWithFragment", "children", "viewClassName", "style", "condition"]);
|
|
2235
2238
|
return z ? h ? r.createElement(e.Fragment, null, _) : r.createElement("div", Ie, _) : null;
|
|
2236
2239
|
};
|
|
2237
2240
|
function _c(m) {
|
|
2238
|
-
return /* @__PURE__ */ (function(
|
|
2239
|
-
v(h,
|
|
2241
|
+
return /* @__PURE__ */ (function(I) {
|
|
2242
|
+
v(h, I);
|
|
2240
2243
|
function h(_) {
|
|
2241
2244
|
var z;
|
|
2242
2245
|
return E(this, h), z = F(this, x(h).call(this, _)), z.isEventListenerAdded = !1, z.handleOrientationChange = z.handleOrientationChange.bind(V(z)), z.onOrientationChange = z.onOrientationChange.bind(V(z)), z.onPageLoad = z.onPageLoad.bind(V(z)), z.state = {
|
|
@@ -2267,7 +2270,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2267
2270
|
}, {
|
|
2268
2271
|
key: "componentDidMount",
|
|
2269
2272
|
value: function() {
|
|
2270
|
-
(typeof window == "undefined" ? "undefined" :
|
|
2273
|
+
(typeof window == "undefined" ? "undefined" : N(window)) !== void 0 && Nr && (this.isEventListenerAdded ? window.removeEventListener("load", this.onPageLoad, !1) : (this.handleOrientationChange(), window.addEventListener("load", this.onPageLoad, !1)), window.addEventListener("resize", this.onOrientationChange, !1));
|
|
2271
2274
|
}
|
|
2272
2275
|
}, {
|
|
2273
2276
|
key: "componentWillUnmount",
|
|
@@ -2293,7 +2296,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2293
2296
|
isLandscape: Ie === 90,
|
|
2294
2297
|
orientation: Ie === 0 ? "portrait" : "landscape"
|
|
2295
2298
|
};
|
|
2296
|
-
}),
|
|
2299
|
+
}), I = Z(m, 2), h = I[0], _ = I[1], z = e.useCallback(function() {
|
|
2297
2300
|
var Ie = window.innerWidth > window.innerHeight ? 90 : 0, Oe = {
|
|
2298
2301
|
isPortrait: Ie === 0,
|
|
2299
2302
|
isLandscape: Ie === 90,
|
|
@@ -2302,17 +2305,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2302
2305
|
h.orientation !== Oe.orientation && _(Oe);
|
|
2303
2306
|
}, [h.orientation]);
|
|
2304
2307
|
return e.useEffect(function() {
|
|
2305
|
-
return (typeof window == "undefined" ? "undefined" :
|
|
2308
|
+
return (typeof window == "undefined" ? "undefined" : N(window)) !== void 0 && Nr && (z(), window.addEventListener("load", z, !1), window.addEventListener("resize", z, !1)), function() {
|
|
2306
2309
|
window.removeEventListener("resize", z, !1), window.removeEventListener("load", z, !1);
|
|
2307
2310
|
};
|
|
2308
2311
|
}, [z]), h;
|
|
2309
2312
|
}
|
|
2310
2313
|
function Co(m) {
|
|
2311
|
-
var
|
|
2312
|
-
return u(
|
|
2314
|
+
var I = m || window.navigator.userAgent;
|
|
2315
|
+
return u(I);
|
|
2313
2316
|
}
|
|
2314
2317
|
function xc(m) {
|
|
2315
|
-
var
|
|
2318
|
+
var I = m || window.navigator.userAgent, h = Co(I), _ = Mi(h);
|
|
2316
2319
|
return [_, h];
|
|
2317
2320
|
}
|
|
2318
2321
|
return Y.AndroidView = fc, Y.BrowserTypes = U, Y.BrowserView = Dc, Y.ConsoleView = jc, Y.CustomView = Sc, Y.IEView = hc, Y.IOSView = yc, Y.MobileOnlyView = Ec, Y.MobileView = pc, Y.OsTypes = X, Y.SmartTVView = mc, Y.TabletView = Tc, Y.WearableView = wc, Y.WinPhoneView = Ac, Y.browserName = hn, Y.browserVersion = Dn, Y.deviceDetect = At, Y.deviceType = se, Y.engineName = Tn, Y.engineVersion = An, Y.fullBrowserVersion = fn, Y.getSelectorsByUserAgent = Ic, Y.getUA = En, Y.isAndroid = yi, Y.isBrowser = hi, Y.isChrome = ln, Y.isChromium = cn, Y.isConsole = Ni, Y.isDesktop = un, Y.isEdge = ft, Y.isEdgeChromium = uc, Y.isElectron = ji, Y.isEmbedded = sn, Y.isFirefox = dn, Y.isIE = Ai, Y.isIOS = Ti, Y.isIOS13 = st, Y.isIPad13 = Ir, Y.isIPhone13 = Ei, Y.isIPod13 = mi, Y.isLegacyEdge = lc, Y.isMIUI = gc, Y.isMacOs = Mc, Y.isMobile = Nr, Y.isMobileOnly = fi, Y.isMobileSafari = an, Y.isOpera = gn, Y.isSafari = Mn, Y.isSamsungBrowser = Nc, Y.isSmartTV = gi, Y.isTablet = Di, Y.isWearable = Ii, Y.isWinPhone = pi, Y.isWindows = dc, Y.isYandex = mn, Y.mobileModel = pn, Y.mobileVendor = yn, Y.osName = In, Y.osVersion = Nn, Y.parseUserAgent = u, Y.setUserAgent = ne, Y.useDeviceData = Co, Y.useDeviceSelectors = xc, Y.useMobileOrientation = Oc, Y.withOrientationChange = _c, Y;
|
|
@@ -2582,7 +2585,7 @@ const Es = () => {
|
|
|
2582
2585
|
osVersion: `${Je.osVersion}`,
|
|
2583
2586
|
hostAppId: Es(),
|
|
2584
2587
|
host: Es(),
|
|
2585
|
-
sdkVersion: "3.2.
|
|
2588
|
+
sdkVersion: "3.2.290".trim(),
|
|
2586
2589
|
name: navigator.userAgent,
|
|
2587
2590
|
deviceModel: `${Je.osName}/${Je.osVersion} ${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
2588
2591
|
hostAppVersion: `${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
@@ -3251,7 +3254,7 @@ const wl = (t, e) => t.reduce((r, i) => {
|
|
|
3251
3254
|
if (d === Oi.ASPECT_FILL) return "cover";
|
|
3252
3255
|
if (d === Oi.ASPECT_FIT) return "contain";
|
|
3253
3256
|
if (d === Oi.FILL) return "fill";
|
|
3254
|
-
}, [a, c] = be(!0), l = a && e,
|
|
3257
|
+
}, [a, c] = be(!0), l = a && e, g = () => {
|
|
3255
3258
|
c(!1);
|
|
3256
3259
|
};
|
|
3257
3260
|
if (r)
|
|
@@ -3302,7 +3305,7 @@ const wl = (t, e) => t.reduce((r, i) => {
|
|
|
3302
3305
|
display: l ? "none" : "block"
|
|
3303
3306
|
},
|
|
3304
3307
|
src: e,
|
|
3305
|
-
onLoad:
|
|
3308
|
+
onLoad: g
|
|
3306
3309
|
}
|
|
3307
3310
|
)
|
|
3308
3311
|
] });
|
|
@@ -3340,7 +3343,7 @@ const wl = (t, e) => t.reduce((r, i) => {
|
|
|
3340
3343
|
highlightColor: s
|
|
3341
3344
|
}) => {
|
|
3342
3345
|
var u;
|
|
3343
|
-
const [a, c] = be(!1), l = a && s ? s : n, { perform:
|
|
3346
|
+
const [a, c] = be(!1), l = a && s ? s : n, { perform: g } = Mr();
|
|
3344
3347
|
return /* @__PURE__ */ T(
|
|
3345
3348
|
"button",
|
|
3346
3349
|
{
|
|
@@ -3349,7 +3352,7 @@ const wl = (t, e) => t.reduce((r, i) => {
|
|
|
3349
3352
|
"data-test": t,
|
|
3350
3353
|
onClick: () => {
|
|
3351
3354
|
const f = JSON.parse(JSON.stringify(e));
|
|
3352
|
-
mo(f),
|
|
3355
|
+
mo(f), g(f, Pi.DATA);
|
|
3353
3356
|
},
|
|
3354
3357
|
className: "hover-button",
|
|
3355
3358
|
style: ee(j(j({}, xl), o && { borderRadius: o }), {
|
|
@@ -3398,9 +3401,9 @@ function Cl(t) {
|
|
|
3398
3401
|
for (const o of t.matchAll(e)) {
|
|
3399
3402
|
const [s, a, c] = o, l = (n = o.index) != null ? n : 0;
|
|
3400
3403
|
l > i && r.push(t.slice(i, l));
|
|
3401
|
-
const
|
|
3404
|
+
const g = c.startsWith("http") ? c : `https://${c}`;
|
|
3402
3405
|
r.push(
|
|
3403
|
-
/* @__PURE__ */ T("a", { href:
|
|
3406
|
+
/* @__PURE__ */ T("a", { href: g, target: "_blank", rel: "noopener noreferrer", children: a }, l)
|
|
3404
3407
|
), i = l + s.length;
|
|
3405
3408
|
}
|
|
3406
3409
|
return i < t.length && r.push(t.slice(i)), r;
|
|
@@ -3443,14 +3446,14 @@ const we = ({
|
|
|
3443
3446
|
borderColor: a,
|
|
3444
3447
|
borderWidth: c,
|
|
3445
3448
|
type: l = "RESPONSE_BODY",
|
|
3446
|
-
onClick:
|
|
3449
|
+
onClick: g
|
|
3447
3450
|
}) => {
|
|
3448
3451
|
var E, A;
|
|
3449
3452
|
const [d, u] = be(!1), f = d && ge(o) ? o : i, { perform: D } = Mr(), M = (p) => {
|
|
3450
|
-
if (
|
|
3453
|
+
if (g && g(p), l !== "RESPONSE_BODY") return;
|
|
3451
3454
|
const S = JSON.parse(JSON.stringify(r));
|
|
3452
3455
|
mo(S), D(S, Pi.DATA);
|
|
3453
|
-
},
|
|
3456
|
+
}, N = {
|
|
3454
3457
|
height: "50px",
|
|
3455
3458
|
width: "100%",
|
|
3456
3459
|
padding: "10px 16px",
|
|
@@ -3480,7 +3483,7 @@ const we = ({
|
|
|
3480
3483
|
type: l === "FORM" ? "submit" : "button",
|
|
3481
3484
|
"data-test": s,
|
|
3482
3485
|
onClick: M,
|
|
3483
|
-
style:
|
|
3486
|
+
style: N,
|
|
3484
3487
|
onMouseEnter: () => u(!0),
|
|
3485
3488
|
onMouseLeave: () => u(!1),
|
|
3486
3489
|
children: [
|
|
@@ -3926,7 +3929,7 @@ function Qt(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
3926
3929
|
return !0;
|
|
3927
3930
|
}
|
|
3928
3931
|
function Hl(t) {
|
|
3929
|
-
const e = _o(), { control: r = e.control, name: i, defaultValue: n, disabled: o, exact: s, compute: a } = t || {}, c = Me.useRef(n), l = Me.useRef(a),
|
|
3932
|
+
const e = _o(), { control: r = e.control, name: i, defaultValue: n, disabled: o, exact: s, compute: a } = t || {}, c = Me.useRef(n), l = Me.useRef(a), g = Me.useRef(void 0);
|
|
3930
3933
|
l.current = a;
|
|
3931
3934
|
const d = Me.useMemo(() => r._getWatch(i, c.current), [r, i]), [u, f] = Me.useState(l.current ? l.current(d) : d);
|
|
3932
3935
|
return Oo(() => r._subscribe({
|
|
@@ -3939,8 +3942,8 @@ function Hl(t) {
|
|
|
3939
3942
|
if (!o) {
|
|
3940
3943
|
const M = qa(i, r._names, D.values || r._formValues, !1, c.current);
|
|
3941
3944
|
if (l.current) {
|
|
3942
|
-
const
|
|
3943
|
-
Qt(
|
|
3945
|
+
const N = l.current(M);
|
|
3946
|
+
Qt(N, g.current) || (f(N), g.current = N);
|
|
3944
3947
|
} else
|
|
3945
3948
|
f(M);
|
|
3946
3949
|
}
|
|
@@ -3953,7 +3956,7 @@ function Zl(t) {
|
|
|
3953
3956
|
name: r,
|
|
3954
3957
|
defaultValue: c,
|
|
3955
3958
|
exact: !0
|
|
3956
|
-
}),
|
|
3959
|
+
}), g = $l({
|
|
3957
3960
|
control: n,
|
|
3958
3961
|
name: r,
|
|
3959
3962
|
exact: !0
|
|
@@ -3964,31 +3967,31 @@ function Zl(t) {
|
|
|
3964
3967
|
const D = Me.useMemo(() => Object.defineProperties({}, {
|
|
3965
3968
|
invalid: {
|
|
3966
3969
|
enumerable: !0,
|
|
3967
|
-
get: () => !!R(
|
|
3970
|
+
get: () => !!R(g.errors, r)
|
|
3968
3971
|
},
|
|
3969
3972
|
isDirty: {
|
|
3970
3973
|
enumerable: !0,
|
|
3971
|
-
get: () => !!R(
|
|
3974
|
+
get: () => !!R(g.dirtyFields, r)
|
|
3972
3975
|
},
|
|
3973
3976
|
isTouched: {
|
|
3974
3977
|
enumerable: !0,
|
|
3975
|
-
get: () => !!R(
|
|
3978
|
+
get: () => !!R(g.touchedFields, r)
|
|
3976
3979
|
},
|
|
3977
3980
|
isValidating: {
|
|
3978
3981
|
enumerable: !0,
|
|
3979
|
-
get: () => !!R(
|
|
3982
|
+
get: () => !!R(g.validatingFields, r)
|
|
3980
3983
|
},
|
|
3981
3984
|
error: {
|
|
3982
3985
|
enumerable: !0,
|
|
3983
|
-
get: () => R(
|
|
3986
|
+
get: () => R(g.errors, r)
|
|
3984
3987
|
}
|
|
3985
|
-
}), [
|
|
3988
|
+
}), [g, r]), M = Me.useCallback((p) => f.current.onChange({
|
|
3986
3989
|
target: {
|
|
3987
3990
|
value: Ga(p),
|
|
3988
3991
|
name: r
|
|
3989
3992
|
},
|
|
3990
3993
|
type: Gi.CHANGE
|
|
3991
|
-
}), [r]),
|
|
3994
|
+
}), [r]), N = Me.useCallback(() => f.current.onBlur({
|
|
3992
3995
|
target: {
|
|
3993
3996
|
value: R(n._formValues, r),
|
|
3994
3997
|
name: r
|
|
@@ -4005,11 +4008,11 @@ function Zl(t) {
|
|
|
4005
4008
|
}, [n._fields, r]), A = Me.useMemo(() => ee(j({
|
|
4006
4009
|
name: r,
|
|
4007
4010
|
value: l
|
|
4008
|
-
}, qe(i) ||
|
|
4011
|
+
}, qe(i) || g.disabled ? { disabled: g.disabled || i } : {}), {
|
|
4009
4012
|
onChange: M,
|
|
4010
|
-
onBlur:
|
|
4013
|
+
onBlur: N,
|
|
4011
4014
|
ref: E
|
|
4012
|
-
}), [r, i,
|
|
4015
|
+
}), [r, i, g.disabled, M, N, E, l]);
|
|
4013
4016
|
return Me.useEffect(() => {
|
|
4014
4017
|
const p = n._options.shouldUnregister || o, S = u.current;
|
|
4015
4018
|
S && S !== r && !a && n.unregister(S), n.register(r, j(j({}, d.current.rules), qe(d.current.disabled) ? { disabled: d.current.disabled } : {}));
|
|
@@ -4031,9 +4034,9 @@ function Zl(t) {
|
|
|
4031
4034
|
});
|
|
4032
4035
|
}, [i, r, n]), Me.useMemo(() => ({
|
|
4033
4036
|
field: A,
|
|
4034
|
-
formState:
|
|
4037
|
+
formState: g,
|
|
4035
4038
|
fieldState: D
|
|
4036
|
-
}), [A,
|
|
4039
|
+
}), [A, g, D]);
|
|
4037
4040
|
}
|
|
4038
4041
|
const ec = (t) => t.render(Zl(t));
|
|
4039
4042
|
var Gl = (t, e, r, i, n) => e ? ee(j({}, r[t]), {
|
|
@@ -4230,12 +4233,12 @@ var Dr = (t) => ve(t) && !Ji(t) ? t : {
|
|
|
4230
4233
|
value: t,
|
|
4231
4234
|
message: ""
|
|
4232
4235
|
}, Rs = (t, e, r, i, n, o) => L(null, null, function* () {
|
|
4233
|
-
const { ref: s, refs: a, required: c, maxLength: l, minLength:
|
|
4236
|
+
const { ref: s, refs: a, required: c, maxLength: l, minLength: g, min: d, max: u, pattern: f, validate: D, name: M, valueAsNumber: N, mount: E } = t._f, A = R(r, M);
|
|
4234
4237
|
if (!E || e.has(M))
|
|
4235
4238
|
return {};
|
|
4236
4239
|
const p = a ? a[0] : s, S = (F) => {
|
|
4237
4240
|
n && p.reportValidity && (p.setCustomValidity(qe(F) ? "" : F || ""), p.reportValidity());
|
|
4238
|
-
}, k = {}, v = zo(s), x = qr(s), ae = v || x, B = (
|
|
4241
|
+
}, k = {}, v = zo(s), x = qr(s), ae = v || x, B = (N || xo(s)) && Se(s.value) && Se(A) || Ki(s) && s.value === "" || A === "" || Array.isArray(A) && !A.length, J = Gl.bind(null, M, i, k), V = (F, Z, de, le = mt.maxLength, he = mt.minLength) => {
|
|
4239
4242
|
const ye = F ? Z : de;
|
|
4240
4243
|
k[M] = j({
|
|
4241
4244
|
type: F ? le : he,
|
|
@@ -4265,8 +4268,8 @@ var Dr = (t) => ve(t) && !Ji(t) ? t : {
|
|
|
4265
4268
|
if ((F || Z) && (V(!!F, de.message, le.message, mt.max, mt.min), !i))
|
|
4266
4269
|
return S(k[M].message), k;
|
|
4267
4270
|
}
|
|
4268
|
-
if ((l ||
|
|
4269
|
-
const F = Dr(l), Z = Dr(
|
|
4271
|
+
if ((l || g) && !B && (et(A) || o && Array.isArray(A))) {
|
|
4272
|
+
const F = Dr(l), Z = Dr(g), de = !He(F.value) && A.length > +F.value, le = !He(Z.value) && A.length < +Z.value;
|
|
4270
4273
|
if ((de || le) && (V(de, F.message, Z.message), !i))
|
|
4271
4274
|
return S(k[M].message), k;
|
|
4272
4275
|
}
|
|
@@ -4332,7 +4335,7 @@ function ud(t = {}) {
|
|
|
4332
4335
|
array: /* @__PURE__ */ new Set(),
|
|
4333
4336
|
watch: /* @__PURE__ */ new Set()
|
|
4334
4337
|
}, c, l = 0;
|
|
4335
|
-
const
|
|
4338
|
+
const g = {
|
|
4336
4339
|
isDirty: !1,
|
|
4337
4340
|
dirtyFields: !1,
|
|
4338
4341
|
validatingFields: !1,
|
|
@@ -4341,21 +4344,21 @@ function ud(t = {}) {
|
|
|
4341
4344
|
isValid: !1,
|
|
4342
4345
|
errors: !1
|
|
4343
4346
|
};
|
|
4344
|
-
let d = j({},
|
|
4347
|
+
let d = j({}, g);
|
|
4345
4348
|
const u = {
|
|
4346
4349
|
array: _s(),
|
|
4347
4350
|
state: _s()
|
|
4348
4351
|
}, f = e.criteriaMode === lt.all, D = (y) => (w) => {
|
|
4349
4352
|
clearTimeout(l), l = setTimeout(y, w);
|
|
4350
4353
|
}, M = (y) => L(null, null, function* () {
|
|
4351
|
-
if (!e.disabled && (
|
|
4354
|
+
if (!e.disabled && (g.isValid || d.isValid || y)) {
|
|
4352
4355
|
const w = e.resolver ? Ke((yield x()).errors) : yield B(i, !0);
|
|
4353
4356
|
w !== r.isValid && u.state.next({
|
|
4354
4357
|
isValid: w
|
|
4355
4358
|
});
|
|
4356
4359
|
}
|
|
4357
|
-
}),
|
|
4358
|
-
!e.disabled && (
|
|
4360
|
+
}), N = (y, w) => {
|
|
4361
|
+
!e.disabled && (g.isValidating || g.validatingFields || d.isValidating || d.validatingFields) && ((y || Array.from(a.mount)).forEach((O) => {
|
|
4359
4362
|
O && (w ? me(r.validatingFields, O, w) : xe(r.validatingFields, O));
|
|
4360
4363
|
}), u.state.next({
|
|
4361
4364
|
validatingFields: r.validatingFields,
|
|
@@ -4371,11 +4374,11 @@ function ud(t = {}) {
|
|
|
4371
4374
|
const W = O(R(r.errors, y), Q.argA, Q.argB);
|
|
4372
4375
|
C && me(r.errors, y, W), sd(r.errors, y);
|
|
4373
4376
|
}
|
|
4374
|
-
if ((
|
|
4377
|
+
if ((g.touchedFields || d.touchedFields) && b && Array.isArray(R(r.touchedFields, y))) {
|
|
4375
4378
|
const W = O(R(r.touchedFields, y), Q.argA, Q.argB);
|
|
4376
4379
|
C && me(r.touchedFields, y, W);
|
|
4377
4380
|
}
|
|
4378
|
-
(
|
|
4381
|
+
(g.dirtyFields || d.dirtyFields) && (r.dirtyFields = yr(n, o)), u.state.next({
|
|
4379
4382
|
name: y,
|
|
4380
4383
|
isDirty: V(y, w),
|
|
4381
4384
|
dirtyFields: r.dirtyFields,
|
|
@@ -4406,19 +4409,19 @@ function ud(t = {}) {
|
|
|
4406
4409
|
};
|
|
4407
4410
|
if (!e.disabled) {
|
|
4408
4411
|
if (!O || Q) {
|
|
4409
|
-
(
|
|
4412
|
+
(g.isDirty || d.isDirty) && (W = r.isDirty, r.isDirty = oe.isDirty = V(), b = W !== oe.isDirty);
|
|
4410
4413
|
const G = Qt(R(n, y), w);
|
|
4411
|
-
W = !!R(r.dirtyFields, y), G ? xe(r.dirtyFields, y) : me(r.dirtyFields, y, !0), oe.dirtyFields = r.dirtyFields, b = b || (
|
|
4414
|
+
W = !!R(r.dirtyFields, y), G ? xe(r.dirtyFields, y) : me(r.dirtyFields, y, !0), oe.dirtyFields = r.dirtyFields, b = b || (g.dirtyFields || d.dirtyFields) && W !== !G;
|
|
4412
4415
|
}
|
|
4413
4416
|
if (O) {
|
|
4414
4417
|
const G = R(r.touchedFields, y);
|
|
4415
|
-
G || (me(r.touchedFields, y, O), oe.touchedFields = r.touchedFields, b = b || (
|
|
4418
|
+
G || (me(r.touchedFields, y, O), oe.touchedFields = r.touchedFields, b = b || (g.touchedFields || d.touchedFields) && G !== O);
|
|
4416
4419
|
}
|
|
4417
4420
|
b && C && u.state.next(oe);
|
|
4418
4421
|
}
|
|
4419
4422
|
return b ? oe : {};
|
|
4420
4423
|
}, v = (y, w, O, Q) => {
|
|
4421
|
-
const C = R(r.errors, y), b = (
|
|
4424
|
+
const C = R(r.errors, y), b = (g.isValid || d.isValid) && qe(w) && r.isValid !== w;
|
|
4422
4425
|
if (e.delayError && O ? (c = D(() => A(y, O)), c(e.delayError)) : (clearTimeout(l), c = null, O ? me(r.errors, y, O) : xe(r.errors, y)), (O ? !Qt(C, O) : C) || !Ke(Q) || b) {
|
|
4423
4426
|
const W = ee(j(j({}, Q), b && qe(w) ? { isValid: w } : {}), {
|
|
4424
4427
|
errors: r.errors,
|
|
@@ -4427,9 +4430,9 @@ function ud(t = {}) {
|
|
|
4427
4430
|
r = j(j({}, r), W), u.state.next(W);
|
|
4428
4431
|
}
|
|
4429
4432
|
}, x = (y) => L(null, null, function* () {
|
|
4430
|
-
|
|
4433
|
+
N(y, !0);
|
|
4431
4434
|
const w = yield e.resolver(o, e.context, ed(y || a.mount, i, e.criteriaMode, e.shouldUseNativeValidation));
|
|
4432
|
-
return
|
|
4435
|
+
return N(y), w;
|
|
4433
4436
|
}), ae = (y) => L(null, null, function* () {
|
|
4434
4437
|
const { errors: w } = yield x(y);
|
|
4435
4438
|
if (y)
|
|
@@ -4449,9 +4452,9 @@ function ud(t = {}) {
|
|
|
4449
4452
|
const W = G, { _f: De } = W, Le = Xt(W, ["_f"]);
|
|
4450
4453
|
if (De) {
|
|
4451
4454
|
const q = a.array.has(De.name), ce = G._f && td(G._f);
|
|
4452
|
-
ce &&
|
|
4455
|
+
ce && g.validatingFields && N([De.name], !0);
|
|
4453
4456
|
const $ = yield Rs(G, a.disabled, o, f, e.shouldUseNativeValidation && !w, q);
|
|
4454
|
-
if (ce &&
|
|
4457
|
+
if (ce && g.validatingFields && N([De.name]), $[De.name] && (O.valid = !1, w))
|
|
4455
4458
|
break;
|
|
4456
4459
|
!w && (R($, De.name) ? q ? ad(r.errors, $, De.name) : me(r.errors, De.name, $[De.name]) : xe(r.errors, De.name));
|
|
4457
4460
|
}
|
|
@@ -4490,7 +4493,7 @@ function ud(t = {}) {
|
|
|
4490
4493
|
me(o, y, b), C ? (u.array.next({
|
|
4491
4494
|
name: y,
|
|
4492
4495
|
values: Ce(o)
|
|
4493
|
-
}), (
|
|
4496
|
+
}), (g.isDirty || g.dirtyFields || d.isDirty || d.dirtyFields) && O.shouldDirty && u.state.next({
|
|
4494
4497
|
name: y,
|
|
4495
4498
|
dirtyFields: yr(n, o),
|
|
4496
4499
|
isDirty: V(y, b)
|
|
@@ -4515,7 +4518,7 @@ function ud(t = {}) {
|
|
|
4515
4518
|
type: y.type,
|
|
4516
4519
|
values: Ce(o)
|
|
4517
4520
|
}), ce)
|
|
4518
|
-
return (
|
|
4521
|
+
return (g.isValid || d.isValid) && (e.mode === "onBlur" ? q && M() : q || M()), Fe && u.state.next(j({ name: O }, $ ? {} : fe));
|
|
4519
4522
|
if (!q && $ && u.state.next(j({}, r)), e.resolver) {
|
|
4520
4523
|
const { errors: _e } = yield x([O]);
|
|
4521
4524
|
if (b(Le), Q) {
|
|
@@ -4523,7 +4526,7 @@ function ud(t = {}) {
|
|
|
4523
4526
|
G = K.error, O = K.name, De = Ke(_e);
|
|
4524
4527
|
}
|
|
4525
4528
|
} else
|
|
4526
|
-
|
|
4529
|
+
N([O], !0), G = (yield Rs(C, a.disabled, o, f, e.shouldUseNativeValidation))[O], N([O]), b(Le), Q && (G ? De = !1 : (g.isValid || d.isValid) && (De = yield B(i, !0)));
|
|
4527
4530
|
Q && (C._f.deps && (!Array.isArray(C._f.deps) || C._f.deps.length > 0) && H(C._f.deps), v(O, De, G, fe));
|
|
4528
4531
|
}
|
|
4529
4532
|
}), re = (y, w) => {
|
|
@@ -4539,7 +4542,7 @@ function ud(t = {}) {
|
|
|
4539
4542
|
const G = R(i, oe);
|
|
4540
4543
|
return yield B(G && G._f ? { [oe]: G } : G);
|
|
4541
4544
|
})))).every(Boolean), !(!b && !r.isValid) && M()) : b = C = yield B(i);
|
|
4542
|
-
return u.state.next(ee(j(j({}, !et(y) || (
|
|
4545
|
+
return u.state.next(ee(j(j({}, !et(y) || (g.isValid || d.isValid) && C !== r.isValid ? {} : { name: y }), e.resolver || !y ? { isValid: C } : {}), {
|
|
4543
4546
|
errors: r.errors
|
|
4544
4547
|
})), w.shouldFocus && !b && Fr(i, re, y ? W : a.mount), b;
|
|
4545
4548
|
}), U = (y, w) => {
|
|
@@ -4568,7 +4571,7 @@ function ud(t = {}) {
|
|
|
4568
4571
|
next: (O) => "values" in O && y(F(void 0, w), O)
|
|
4569
4572
|
}) : F(y, w, !0), P = (y) => u.state.subscribe({
|
|
4570
4573
|
next: (w) => {
|
|
4571
|
-
nd(y.name, w.name, y.exact) && id(w, y.formState ||
|
|
4574
|
+
nd(y.name, w.name, y.exact) && id(w, y.formState || g, Vt, y.reRenderRoot) && y.callback(ee(j(j({
|
|
4572
4575
|
values: j({}, o)
|
|
4573
4576
|
}, r), w), {
|
|
4574
4577
|
defaultValues: n
|
|
@@ -4667,7 +4670,7 @@ function ud(t = {}) {
|
|
|
4667
4670
|
}), Q)
|
|
4668
4671
|
throw Q;
|
|
4669
4672
|
}), Ft = (y, w = {}) => {
|
|
4670
|
-
R(i, y) && (Se(w.defaultValue) ? he(y, Ce(R(n, y))) : (he(y, w.defaultValue), me(n, y, Ce(w.defaultValue))), w.keepTouched || xe(r.touchedFields, y), w.keepDirty || (xe(r.dirtyFields, y), r.isDirty = w.defaultValue ? V(y, Ce(R(n, y))) : V()), w.keepError || (xe(r.errors, y),
|
|
4673
|
+
R(i, y) && (Se(w.defaultValue) ? he(y, Ce(R(n, y))) : (he(y, w.defaultValue), me(n, y, Ce(w.defaultValue))), w.keepTouched || xe(r.touchedFields, y), w.keepDirty || (xe(r.dirtyFields, y), r.isDirty = w.defaultValue ? V(y, Ce(R(n, y))) : V()), w.keepError || (xe(r.errors, y), g.isValid && M()), u.state.next(j({}, r)));
|
|
4671
4674
|
}, At = (y, w = {}) => {
|
|
4672
4675
|
const O = y ? Ce(y) : n, Q = Ce(O), C = Ke(y), b = C ? n : Q;
|
|
4673
4676
|
if (w.keepDefaultValues || (n = O), !w.keepValues) {
|
|
@@ -4713,7 +4716,7 @@ function ud(t = {}) {
|
|
|
4713
4716
|
watch: /* @__PURE__ */ new Set(),
|
|
4714
4717
|
watchAll: !1,
|
|
4715
4718
|
focus: ""
|
|
4716
|
-
}, s.mount = !
|
|
4719
|
+
}, s.mount = !g.isValid || !!w.keepIsValid || !!w.keepDirtyValues, s.watch = !!e.shouldUnregister, u.state.next({
|
|
4717
4720
|
submitCount: w.keepSubmitCount ? r.submitCount : 0,
|
|
4718
4721
|
isDirty: C ? !1 : w.keepDirty ? r.isDirty : !!(w.keepDefaultValues && !Qt(y, n)),
|
|
4719
4722
|
isSubmitted: w.keepIsSubmitted ? r.isSubmitted : !1,
|
|
@@ -4758,7 +4761,7 @@ function ud(t = {}) {
|
|
|
4758
4761
|
_removeUnmounted: J,
|
|
4759
4762
|
_disableForm: Tt,
|
|
4760
4763
|
_subjects: u,
|
|
4761
|
-
_proxyFormState:
|
|
4764
|
+
_proxyFormState: g,
|
|
4762
4765
|
get _fields() {
|
|
4763
4766
|
return i;
|
|
4764
4767
|
},
|
|
@@ -4911,11 +4914,11 @@ const Sr = (t, e) => {
|
|
|
4911
4914
|
style: {
|
|
4912
4915
|
padding: "5px 8px",
|
|
4913
4916
|
background: ((c, l) => {
|
|
4914
|
-
var
|
|
4915
|
-
if (!c && !l) return (d = ge((
|
|
4917
|
+
var g, d, u, f, D, M, N, E;
|
|
4918
|
+
if (!c && !l) return (d = ge((g = e.layout) == null ? void 0 : g.backgroundColor)) != null ? d : "transparent";
|
|
4916
4919
|
if (!c && l) return (f = ge((u = e.layoutSelected) == null ? void 0 : u.backgroundColor)) != null ? f : "transparent";
|
|
4917
4920
|
if (c && !l) return (M = ge((D = e.layout) == null ? void 0 : D.highlightColor)) != null ? M : "#F4F4F4";
|
|
4918
|
-
if (c && l) return (E = ge((
|
|
4921
|
+
if (c && l) return (E = ge((N = e.layoutSelected) == null ? void 0 : N.highlightColor)) != null ? E : "#F4F4F4";
|
|
4919
4922
|
})(i, t),
|
|
4920
4923
|
fontSize: 13,
|
|
4921
4924
|
display: "flex",
|
|
@@ -4956,11 +4959,11 @@ const Sr = (t, e) => {
|
|
|
4956
4959
|
closeMenuOnSelect: a = !0,
|
|
4957
4960
|
onBlur: c,
|
|
4958
4961
|
parentElementRef: l,
|
|
4959
|
-
controlLayout:
|
|
4962
|
+
controlLayout: g,
|
|
4960
4963
|
pickerLayout: d
|
|
4961
4964
|
}) => {
|
|
4962
4965
|
var F, Z, de, le, he, ye, re, H;
|
|
4963
|
-
const [u, f] = be(!1), [D, M] = be(n), [
|
|
4966
|
+
const [u, f] = be(!1), [D, M] = be(n), [N, E] = be("down"), [A, p] = be(null), S = gt(null), k = gt(null);
|
|
4964
4967
|
Gt(() => {
|
|
4965
4968
|
var ne, P, te;
|
|
4966
4969
|
if (!u) return;
|
|
@@ -4980,17 +4983,17 @@ const Sr = (t, e) => {
|
|
|
4980
4983
|
X.stopPropagation(), M((ie) => ie.filter((Ee) => Ee.value !== U.value));
|
|
4981
4984
|
}, B = (U) => {
|
|
4982
4985
|
U.stopPropagation(), M([]);
|
|
4983
|
-
}, J = (F = ge(
|
|
4986
|
+
}, J = (F = ge(g == null ? void 0 : g.borderColor)) != null ? F : "#D9D9D9", V = (Z = ge(g == null ? void 0 : g.highlightBorderColor)) != null ? Z : "#7E57C5";
|
|
4984
4987
|
return /* @__PURE__ */ T("div", { "data-ui": "gui-custom-select", ref: S, children: /* @__PURE__ */ T(
|
|
4985
4988
|
"div",
|
|
4986
4989
|
{
|
|
4987
4990
|
"data-ui": "gui-select-name-" + t,
|
|
4988
4991
|
style: {
|
|
4989
|
-
backgroundColor: ge(
|
|
4992
|
+
backgroundColor: ge(g == null ? void 0 : g.backgroundColor),
|
|
4990
4993
|
borderStyle: "solid",
|
|
4991
4994
|
borderColor: u ? V : J,
|
|
4992
|
-
borderWidth: (de =
|
|
4993
|
-
borderRadius: (le =
|
|
4995
|
+
borderWidth: (de = g == null ? void 0 : g.borderWidth) != null ? de : 1,
|
|
4996
|
+
borderRadius: (le = g == null ? void 0 : g.cornerRadius) != null ? le : 8,
|
|
4994
4997
|
minHeight: "41px",
|
|
4995
4998
|
position: "relative",
|
|
4996
4999
|
zIndex: "auto",
|
|
@@ -5030,7 +5033,7 @@ const Sr = (t, e) => {
|
|
|
5030
5033
|
D.map((U) => {
|
|
5031
5034
|
var X, ie, Ee, ne, P;
|
|
5032
5035
|
if (r) {
|
|
5033
|
-
const te =
|
|
5036
|
+
const te = g == null ? void 0 : g.chip;
|
|
5034
5037
|
return /* @__PURE__ */ T(
|
|
5035
5038
|
"div",
|
|
5036
5039
|
{
|
|
@@ -5070,7 +5073,7 @@ const Sr = (t, e) => {
|
|
|
5070
5073
|
U.value
|
|
5071
5074
|
);
|
|
5072
5075
|
} else {
|
|
5073
|
-
const te =
|
|
5076
|
+
const te = g == null ? void 0 : g.title;
|
|
5074
5077
|
return /* @__PURE__ */ T(
|
|
5075
5078
|
"div",
|
|
5076
5079
|
{
|
|
@@ -5099,7 +5102,7 @@ const Sr = (t, e) => {
|
|
|
5099
5102
|
zIndex: 1
|
|
5100
5103
|
},
|
|
5101
5104
|
onClick: B,
|
|
5102
|
-
children:
|
|
5105
|
+
children: g != null && g.clearButton ? /* @__PURE__ */ T(Pe, j({}, g.clearButton)) : /* @__PURE__ */ T(Pe, { imageId: "cross" })
|
|
5103
5106
|
}
|
|
5104
5107
|
) : null,
|
|
5105
5108
|
i ? /* @__PURE__ */ T(
|
|
@@ -5112,7 +5115,7 @@ const Sr = (t, e) => {
|
|
|
5112
5115
|
}
|
|
5113
5116
|
}
|
|
5114
5117
|
) : null,
|
|
5115
|
-
/* @__PURE__ */ T(dd, { isOpen: u, image:
|
|
5118
|
+
/* @__PURE__ */ T(dd, { isOpen: u, image: g == null ? void 0 : g.expandButton }),
|
|
5116
5119
|
u && /* @__PURE__ */ T(
|
|
5117
5120
|
"div",
|
|
5118
5121
|
{
|
|
@@ -5120,7 +5123,7 @@ const Sr = (t, e) => {
|
|
|
5120
5123
|
ref: k,
|
|
5121
5124
|
style: ee(j({
|
|
5122
5125
|
position: "absolute"
|
|
5123
|
-
},
|
|
5126
|
+
}, N === "down" ? { top: "calc(100% + 1px)" } : { bottom: "calc(100% + 1px)" }), {
|
|
5124
5127
|
left: 0,
|
|
5125
5128
|
border: "1px solid #e8e8e8",
|
|
5126
5129
|
width: "100%",
|
|
@@ -5265,7 +5268,7 @@ const Sr = (t, e) => {
|
|
|
5265
5268
|
closeMenuOnSelect: !1,
|
|
5266
5269
|
value: a,
|
|
5267
5270
|
onChange: (c) => {
|
|
5268
|
-
const l = c.map((
|
|
5271
|
+
const l = c.map((g) => g.value);
|
|
5269
5272
|
s.onChange(l);
|
|
5270
5273
|
},
|
|
5271
5274
|
parentElementRef: i,
|
|
@@ -5296,7 +5299,7 @@ const Sr = (t, e) => {
|
|
|
5296
5299
|
register: i,
|
|
5297
5300
|
watch: n
|
|
5298
5301
|
}) => {
|
|
5299
|
-
const [o, s] = be(!1), a = cc(), c = String(r.id),
|
|
5302
|
+
const [o, s] = be(!1), a = cc(), c = String(r.id), g = n(c) === String(t.id), d = e.option, u = e.optionSelected, f = {
|
|
5300
5303
|
backgroundColor: ge(u == null ? void 0 : u.backgroundColor),
|
|
5301
5304
|
borderRadius: u.cornerRadius
|
|
5302
5305
|
}, D = {
|
|
@@ -5312,7 +5315,7 @@ const Sr = (t, e) => {
|
|
|
5312
5315
|
alignContent: "center",
|
|
5313
5316
|
gap: 8,
|
|
5314
5317
|
cursor: "pointer"
|
|
5315
|
-
},
|
|
5318
|
+
}, g ? f : D),
|
|
5316
5319
|
children: [
|
|
5317
5320
|
/* @__PURE__ */ T(
|
|
5318
5321
|
"div",
|
|
@@ -5323,10 +5326,10 @@ const Sr = (t, e) => {
|
|
|
5323
5326
|
alignContent: "center",
|
|
5324
5327
|
flexShrink: 0
|
|
5325
5328
|
}, M),
|
|
5326
|
-
children: /* @__PURE__ */ T(Pe, j({},
|
|
5329
|
+
children: /* @__PURE__ */ T(Pe, j({}, g ? u.image : d.image))
|
|
5327
5330
|
}
|
|
5328
5331
|
),
|
|
5329
|
-
/* @__PURE__ */ T(we, ee(j({},
|
|
5332
|
+
/* @__PURE__ */ T(we, ee(j({}, g ? u.title : d.title), { text: t.text })),
|
|
5330
5333
|
/* @__PURE__ */ T(
|
|
5331
5334
|
"input",
|
|
5332
5335
|
ee(j({
|
|
@@ -5401,7 +5404,7 @@ const Sr = (t, e) => {
|
|
|
5401
5404
|
register: i,
|
|
5402
5405
|
watch: n
|
|
5403
5406
|
}) => {
|
|
5404
|
-
const [o, s] = be(!1), a = cc(), c = String(r.id),
|
|
5407
|
+
const [o, s] = be(!1), a = cc(), c = String(r.id), g = n(c) === String(t.id), d = e.option, u = e.optionSelected, f = {
|
|
5405
5408
|
borderRadius: d == null ? void 0 : d.cornerRadius,
|
|
5406
5409
|
background: ge(d == null ? void 0 : d.backgroundColor),
|
|
5407
5410
|
borderColor: ge(d == null ? void 0 : d.borderColor),
|
|
@@ -5428,7 +5431,7 @@ const Sr = (t, e) => {
|
|
|
5428
5431
|
cursor: "pointer",
|
|
5429
5432
|
borderStyle: "solid",
|
|
5430
5433
|
position: "relative"
|
|
5431
|
-
},
|
|
5434
|
+
}, g ? D : f), M),
|
|
5432
5435
|
children: [
|
|
5433
5436
|
/* @__PURE__ */ T(
|
|
5434
5437
|
"input",
|
|
@@ -5453,7 +5456,7 @@ const Sr = (t, e) => {
|
|
|
5453
5456
|
onBlur: () => s(!1)
|
|
5454
5457
|
})
|
|
5455
5458
|
),
|
|
5456
|
-
/* @__PURE__ */ T(we, ee(j({},
|
|
5459
|
+
/* @__PURE__ */ T(we, ee(j({}, g ? u.title : d.title), { text: t.text }))
|
|
5457
5460
|
]
|
|
5458
5461
|
}
|
|
5459
5462
|
)
|
|
@@ -5542,7 +5545,7 @@ const Sr = (t, e) => {
|
|
|
5542
5545
|
dataSourceQuestion: e,
|
|
5543
5546
|
register: r
|
|
5544
5547
|
}) => {
|
|
5545
|
-
var o, s, a, c, l,
|
|
5548
|
+
var o, s, a, c, l, g, d, u, f, D, M, N, E, A, p, S;
|
|
5546
5549
|
const i = String(e.id), n = (k) => k ? k === xi.EMAIL ? "email" : k === xi.FREE_TEXT ? "text" : k === xi.NUMBER ? "number" : k === xi.SECURE ? "password" : "text" : "text";
|
|
5547
5550
|
return /* @__PURE__ */ T(
|
|
5548
5551
|
"div",
|
|
@@ -5565,12 +5568,12 @@ const Sr = (t, e) => {
|
|
|
5565
5568
|
style: {
|
|
5566
5569
|
fontFamily: (a = (s = t == null ? void 0 : t.textField) == null ? void 0 : s.fontName) != null ? a : "sans-serif",
|
|
5567
5570
|
fontSize: (l = (c = t == null ? void 0 : t.textField) == null ? void 0 : c.fontSize) != null ? l : 15,
|
|
5568
|
-
color: (d = ge((
|
|
5571
|
+
color: (d = ge((g = t == null ? void 0 : t.textField) == null ? void 0 : g.fontColor)) != null ? d : "#000000",
|
|
5569
5572
|
height: "42px",
|
|
5570
5573
|
borderWidth: (f = (u = t == null ? void 0 : t.textField) == null ? void 0 : u.borderWidth) != null ? f : 1,
|
|
5571
5574
|
borderColor: (M = ge((D = t == null ? void 0 : t.textField) == null ? void 0 : D.borderColor)) != null ? M : "#d9d9d9",
|
|
5572
5575
|
borderStyle: "solid",
|
|
5573
|
-
borderRadius: (E = (
|
|
5576
|
+
borderRadius: (E = (N = t == null ? void 0 : t.textField) == null ? void 0 : N.cornerRadius) != null ? E : 8,
|
|
5574
5577
|
padding: "11px",
|
|
5575
5578
|
boxSizing: "border-box",
|
|
5576
5579
|
backgroundColor: (p = ge((A = t == null ? void 0 : t.textField) == null ? void 0 : A.backgroundColor)) != null ? p : "#FFFFFF",
|
|
@@ -5588,7 +5591,7 @@ const Sr = (t, e) => {
|
|
|
5588
5591
|
dataSourceQuestion: e,
|
|
5589
5592
|
register: r
|
|
5590
5593
|
}) => {
|
|
5591
|
-
var n, o, s, a, c, l,
|
|
5594
|
+
var n, o, s, a, c, l, g, d, u, f, D, M, N;
|
|
5592
5595
|
const i = String(e.id);
|
|
5593
5596
|
return /* @__PURE__ */ T(
|
|
5594
5597
|
"div",
|
|
@@ -5620,13 +5623,13 @@ const Sr = (t, e) => {
|
|
|
5620
5623
|
overflow: "hidden",
|
|
5621
5624
|
height: "42px",
|
|
5622
5625
|
minHeight: "42px",
|
|
5623
|
-
borderWidth: (
|
|
5626
|
+
borderWidth: (g = (l = t == null ? void 0 : t.textField) == null ? void 0 : l.borderWidth) != null ? g : 1,
|
|
5624
5627
|
borderColor: (u = ge((d = t == null ? void 0 : t.textField) == null ? void 0 : d.borderColor)) != null ? u : "#d9d9d9",
|
|
5625
5628
|
borderStyle: "solid",
|
|
5626
5629
|
borderRadius: (D = (f = t == null ? void 0 : t.textField) == null ? void 0 : f.cornerRadius) != null ? D : 8,
|
|
5627
5630
|
padding: "11px",
|
|
5628
5631
|
boxSizing: "border-box",
|
|
5629
|
-
backgroundColor: (
|
|
5632
|
+
backgroundColor: (N = ge((M = t == null ? void 0 : t.textField) == null ? void 0 : M.backgroundColor)) != null ? N : "#FFFFFF",
|
|
5630
5633
|
outlineColor: Xr
|
|
5631
5634
|
}
|
|
5632
5635
|
})
|
|
@@ -5658,16 +5661,16 @@ const Sr = (t, e) => {
|
|
|
5658
5661
|
Rt.MODULE = $i, Rt.ERROR_ENUM_NAME = "GuiModuleError", Rt.SHORT_CODE = "GM";
|
|
5659
5662
|
let Hr = Rt;
|
|
5660
5663
|
const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSource: o, properties: s, backgroundColor: a }) => {
|
|
5661
|
-
const c = $a(r), { perform: l } = Mr(),
|
|
5664
|
+
const c = $a(r), { perform: l } = Mr(), g = s ? wl(o.questions, s) : {}, d = gt(null), {
|
|
5662
5665
|
register: u,
|
|
5663
5666
|
handleSubmit: f,
|
|
5664
5667
|
formState: { errors: D },
|
|
5665
5668
|
reset: M,
|
|
5666
|
-
watch:
|
|
5669
|
+
watch: N,
|
|
5667
5670
|
control: E
|
|
5668
5671
|
} = ld({
|
|
5669
5672
|
criteriaMode: "all",
|
|
5670
|
-
defaultValues:
|
|
5673
|
+
defaultValues: g
|
|
5671
5674
|
});
|
|
5672
5675
|
return /* @__PURE__ */ T(Kt, { header: t, footer: i, backgroundColor: a, children: /* @__PURE__ */ T(
|
|
5673
5676
|
"form",
|
|
@@ -5761,7 +5764,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5761
5764
|
{
|
|
5762
5765
|
layout: x,
|
|
5763
5766
|
dataSourceQuestion: p,
|
|
5764
|
-
watch:
|
|
5767
|
+
watch: N,
|
|
5765
5768
|
register: u
|
|
5766
5769
|
}
|
|
5767
5770
|
),
|
|
@@ -5770,7 +5773,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5770
5773
|
{
|
|
5771
5774
|
layout: x,
|
|
5772
5775
|
dataSourceQuestion: p,
|
|
5773
|
-
watch:
|
|
5776
|
+
watch: N,
|
|
5774
5777
|
register: u
|
|
5775
5778
|
}
|
|
5776
5779
|
),
|
|
@@ -5862,13 +5865,13 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5862
5865
|
backgroundColor: i,
|
|
5863
5866
|
selectionLimit: n
|
|
5864
5867
|
}) => {
|
|
5865
|
-
var
|
|
5868
|
+
var g, d;
|
|
5866
5869
|
const { perform: o } = Mr(), s = gt(null), a = typeof n == "number" && (n === 0 || n > 1), c = (u) => L(null, null, function* () {
|
|
5867
5870
|
var D;
|
|
5868
5871
|
const f = Array.from((D = u.currentTarget.files) != null ? D : []);
|
|
5869
5872
|
if (f.length)
|
|
5870
5873
|
try {
|
|
5871
|
-
const
|
|
5874
|
+
const N = (yield Promise.allSettled(
|
|
5872
5875
|
f.map((E) => L(null, null, function* () {
|
|
5873
5876
|
return {
|
|
5874
5877
|
content: yield Wa(E),
|
|
@@ -5886,7 +5889,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5886
5889
|
o({
|
|
5887
5890
|
cancel: !1,
|
|
5888
5891
|
permissionDenied: !1,
|
|
5889
|
-
files:
|
|
5892
|
+
files: N
|
|
5890
5893
|
});
|
|
5891
5894
|
} catch (M) {
|
|
5892
5895
|
console.error("Error: ", M);
|
|
@@ -5913,7 +5916,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5913
5916
|
onInput: c
|
|
5914
5917
|
})
|
|
5915
5918
|
),
|
|
5916
|
-
/* @__PURE__ */ T("button", { style: jd, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (
|
|
5919
|
+
/* @__PURE__ */ T("button", { style: jd, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (g = r == null ? void 0 : r[0]) == null ? void 0 : g.image) == null ? void 0 : d.imageId }) })
|
|
5917
5920
|
]
|
|
5918
5921
|
}
|
|
5919
5922
|
) }) });
|
|
@@ -5945,13 +5948,13 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5945
5948
|
buttons: i,
|
|
5946
5949
|
selectionLimit: n
|
|
5947
5950
|
}) => {
|
|
5948
|
-
var
|
|
5951
|
+
var g, d;
|
|
5949
5952
|
const { perform: o } = Mr(), s = gt(null), a = typeof n == "number" && (n === 0 || n > 1), c = (u) => L(null, null, function* () {
|
|
5950
5953
|
var D;
|
|
5951
5954
|
const f = Array.from((D = u.currentTarget.files) != null ? D : []);
|
|
5952
5955
|
if (f.length)
|
|
5953
5956
|
try {
|
|
5954
|
-
const
|
|
5957
|
+
const N = (yield Promise.allSettled(
|
|
5955
5958
|
f.map((E) => L(null, null, function* () {
|
|
5956
5959
|
return {
|
|
5957
5960
|
content: yield Wa(E),
|
|
@@ -5969,7 +5972,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
5969
5972
|
o({
|
|
5970
5973
|
cancel: !1,
|
|
5971
5974
|
permissionDenied: !1,
|
|
5972
|
-
files:
|
|
5975
|
+
files: N
|
|
5973
5976
|
});
|
|
5974
5977
|
} catch (M) {
|
|
5975
5978
|
console.error("Error: ", M);
|
|
@@ -6007,7 +6010,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6007
6010
|
onInput: c
|
|
6008
6011
|
})
|
|
6009
6012
|
),
|
|
6010
|
-
/* @__PURE__ */ T("button", { style: Od, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (
|
|
6013
|
+
/* @__PURE__ */ T("button", { style: Od, onClick: l, children: /* @__PURE__ */ T(Pe, { imageId: (d = (g = i == null ? void 0 : i[0]) == null ? void 0 : g.image) == null ? void 0 : d.imageId }) })
|
|
6011
6014
|
]
|
|
6012
6015
|
}
|
|
6013
6016
|
) }) });
|
|
@@ -6150,16 +6153,16 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6150
6153
|
askEveryTime: c
|
|
6151
6154
|
}) => {
|
|
6152
6155
|
var x, ae;
|
|
6153
|
-
const l = $a(o), { perform:
|
|
6156
|
+
const l = $a(o), { perform: g } = Mr(), { setIsProcessingCallback: d } = pl(), [u, f] = be(!1), D = () => {
|
|
6154
6157
|
var B;
|
|
6155
|
-
(B =
|
|
6158
|
+
(B = N == null ? void 0 : N.popups) != null && B.system_restricted || f(!0);
|
|
6156
6159
|
}, M = () => {
|
|
6157
6160
|
var B;
|
|
6158
|
-
(B =
|
|
6159
|
-
}, { devSettings:
|
|
6161
|
+
(B = N == null ? void 0 : N.popups) != null && B.system_restricted || f(!1);
|
|
6162
|
+
}, { devSettings: N } = yl(), E = !!((ae = (x = N == null ? void 0 : N.popups) == null ? void 0 : x.system_restricted) != null && ae.isOpen);
|
|
6160
6163
|
tt(() => {
|
|
6161
|
-
|
|
6162
|
-
}, [E,
|
|
6164
|
+
N && f(E);
|
|
6165
|
+
}, [E, N]);
|
|
6163
6166
|
const A = {
|
|
6164
6167
|
enableHighAccuracy: !0,
|
|
6165
6168
|
timeout: 15e3,
|
|
@@ -6176,7 +6179,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6176
6179
|
return;
|
|
6177
6180
|
}
|
|
6178
6181
|
const V = yield zr(A);
|
|
6179
|
-
B &&
|
|
6182
|
+
B && g(V, l);
|
|
6180
6183
|
}), () => {
|
|
6181
6184
|
Je.isSafari || c || (B = !1);
|
|
6182
6185
|
};
|
|
@@ -6186,7 +6189,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6186
6189
|
return L(null, null, function* () {
|
|
6187
6190
|
const V = yield vd();
|
|
6188
6191
|
V && (J = V, V.onchange = () => L(null, null, function* () {
|
|
6189
|
-
if (V.state === "denied" && (d == null || d(!0),
|
|
6192
|
+
if (V.state === "denied" && (d == null || d(!0), g(
|
|
6190
6193
|
{
|
|
6191
6194
|
location: {
|
|
6192
6195
|
locationState: "application_location_restricted",
|
|
@@ -6200,7 +6203,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6200
6203
|
d == null || d(!0);
|
|
6201
6204
|
const F = yield zr(A);
|
|
6202
6205
|
if (!B) return;
|
|
6203
|
-
|
|
6206
|
+
g(F, l);
|
|
6204
6207
|
}
|
|
6205
6208
|
}));
|
|
6206
6209
|
}), () => {
|
|
@@ -6216,7 +6219,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6216
6219
|
}
|
|
6217
6220
|
if (J === "prompt" && (yield zr()), J === "granted") {
|
|
6218
6221
|
const V = yield zr(A);
|
|
6219
|
-
|
|
6222
|
+
g(V, l);
|
|
6220
6223
|
}
|
|
6221
6224
|
}), k = (B) => L(null, null, function* () {
|
|
6222
6225
|
if (B.preventDefault(), (yield Qn()) === "denied") {
|
|
@@ -6225,7 +6228,7 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6225
6228
|
}
|
|
6226
6229
|
d == null || d(!0);
|
|
6227
6230
|
const V = yield zr(A);
|
|
6228
|
-
|
|
6231
|
+
g(V, l);
|
|
6229
6232
|
}), v = (B) => {
|
|
6230
6233
|
B.preventDefault(), M();
|
|
6231
6234
|
};
|
|
@@ -6402,8 +6405,8 @@ const Ed = ({ header: t, title: e, buttons: r, footer: i, questions: n, dataSour
|
|
|
6402
6405
|
};
|
|
6403
6406
|
let Pn = !1;
|
|
6404
6407
|
const Ps = ({ children: t }) => /* @__PURE__ */ T("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: t }), Wd = ({ isProcessing: t, moduleProps: e, perform: r, devSettings: i }) => {
|
|
6405
|
-
const { templateId: n, templateLayout: o, dataSource: s, properties: a } = e, c = (l,
|
|
6406
|
-
r && r(l,
|
|
6408
|
+
const { templateId: n, templateLayout: o, dataSource: s, properties: a } = e, c = (l, g) => {
|
|
6409
|
+
r && r(l, g);
|
|
6407
6410
|
};
|
|
6408
6411
|
return n === ct.QUESTIONS ? /* @__PURE__ */ T(js, { perform: c, children: /* @__PURE__ */ T(Ps, { children: /* @__PURE__ */ T(
|
|
6409
6412
|
Qs,
|
|
@@ -6566,21 +6569,21 @@ const $d = (t, e) => ({
|
|
|
6566
6569
|
l = n;
|
|
6567
6570
|
else if (s) {
|
|
6568
6571
|
if (!e().sessionRestoreMode) return {};
|
|
6569
|
-
const D = o.apiKey, M = ir.getAuthTokenLs(),
|
|
6570
|
-
if (!
|
|
6571
|
-
|
|
6572
|
+
const D = o.apiKey, M = ir.getAuthTokenLs(), N = M && ((f = M[D]) == null ? void 0 : f.sessionId);
|
|
6573
|
+
if (!N) return {};
|
|
6574
|
+
N && (l = N);
|
|
6572
6575
|
} else {
|
|
6573
6576
|
if (!e().sessionRestoreMode) return {};
|
|
6574
6577
|
const D = e().getCurrentSessionDataLs();
|
|
6575
6578
|
if (!D) return {};
|
|
6576
|
-
const M = D.sessionId,
|
|
6577
|
-
if (!M ||
|
|
6579
|
+
const M = D.sessionId, N = D.workflowId;
|
|
6580
|
+
if (!M || N !== a) return {};
|
|
6578
6581
|
l = M;
|
|
6579
6582
|
}
|
|
6580
|
-
const
|
|
6583
|
+
const g = yield e().fetchService.continueSession(
|
|
6581
6584
|
l,
|
|
6582
6585
|
i
|
|
6583
|
-
), d = e()._checkIsSessionDataValid(
|
|
6586
|
+
), d = e()._checkIsSessionDataValid(g.data);
|
|
6584
6587
|
if (!As(d))
|
|
6585
6588
|
return { error: d.error };
|
|
6586
6589
|
const u = d.currentStep;
|
|
@@ -6634,7 +6637,7 @@ const $d = (t, e) => ({
|
|
|
6634
6637
|
errorCode: Re.SCENARIO_IN_PROGRESS
|
|
6635
6638
|
})
|
|
6636
6639
|
};
|
|
6637
|
-
const o = ["apiKey", "baseUrl"].filter((
|
|
6640
|
+
const o = ["apiKey", "baseUrl"].filter((N) => !(i != null && i[N]));
|
|
6638
6641
|
if (o.length > 0)
|
|
6639
6642
|
return {
|
|
6640
6643
|
error: new Qe({
|
|
@@ -6660,7 +6663,7 @@ const $d = (t, e) => ({
|
|
|
6660
6663
|
deviceDescriptor: {
|
|
6661
6664
|
ttl: c
|
|
6662
6665
|
}
|
|
6663
|
-
},
|
|
6666
|
+
}, g = ir.getAuthTokenLs(), d = g && g[i.apiKey] && g[i.apiKey].authToken ? g[i.apiKey] : null, u = d && d.authToken, f = yield e().connectByApiKey(l);
|
|
6664
6667
|
if (f.error)
|
|
6665
6668
|
return { error: new Qe({
|
|
6666
6669
|
errorCode: Re.CONNECTION_ISSUE,
|
|
@@ -6805,26 +6808,26 @@ const $d = (t, e) => ({
|
|
|
6805
6808
|
return { error: new St({
|
|
6806
6809
|
errorCode: jt.SCENARIO_IN_PROGRESS
|
|
6807
6810
|
}) };
|
|
6808
|
-
const n = e()._sessionIdFromUrl, o = yield e().fetchService.getWorkflow(i, n), s = Eo(o.data), a = ((M = s.client) == null ? void 0 : M.steps) && s.client.steps.some((
|
|
6811
|
+
const n = e()._sessionIdFromUrl, o = yield e().fetchService.getWorkflow(i, n), s = Eo(o.data), a = ((M = s.client) == null ? void 0 : M.steps) && s.client.steps.some((N) => N.templateId === Vn);
|
|
6809
6812
|
let c = null;
|
|
6810
6813
|
if (o.code === 4 && (c = wt.HTTP_ISSUE), o.code !== 0 && o.code !== 4 && (c = wt.PROVIDER_ERROR), o.code === 0 && !o.data.id && (c = wt.DECODING_FAILED), o.code === 0 && o.data.id && s === null && (c = wt.DECODING_FAILED), a || (c = wt.DECODING_FAILED), c !== null) {
|
|
6811
|
-
const
|
|
6814
|
+
const N = new Bi({
|
|
6812
6815
|
errorCode: c
|
|
6813
6816
|
});
|
|
6814
6817
|
return { error: new St({
|
|
6815
6818
|
errorCode: jt.INTERNAL_ISSUE,
|
|
6816
|
-
underlyingBaseError:
|
|
6819
|
+
underlyingBaseError: N
|
|
6817
6820
|
}) };
|
|
6818
6821
|
}
|
|
6819
|
-
const l = e().externalModules,
|
|
6822
|
+
const l = e().externalModules, g = s.steps, { isAllTemplatesSupported: d, unsupportedSteps: u } = ol(l, g);
|
|
6820
6823
|
d || console.log("IDV:: Warning. Unsupported steps found: ", u);
|
|
6821
6824
|
const f = e().workflowId;
|
|
6822
|
-
f && i !== f && l.forEach((
|
|
6823
|
-
|
|
6825
|
+
f && i !== f && l.forEach((N) => {
|
|
6826
|
+
N.component.deinitialize();
|
|
6824
6827
|
});
|
|
6825
6828
|
const D = e().modulesConfig;
|
|
6826
|
-
return l.forEach((
|
|
6827
|
-
|
|
6829
|
+
return l.forEach((N) => {
|
|
6830
|
+
N.component.isReady() || N.component.initialize(D);
|
|
6828
6831
|
}), e().setLayout(s.client.layout), e().setProcessingTemplate(s.client.steps), e().setWorkflowId(i), e().setTrackLocation(s.trackLocation), { workflow: s };
|
|
6829
6832
|
});
|
|
6830
6833
|
},
|
|
@@ -6851,18 +6854,18 @@ const $d = (t, e) => ({
|
|
|
6851
6854
|
ut && ut.close(), i(S);
|
|
6852
6855
|
};
|
|
6853
6856
|
e().setWorkflowSessionCompletion(l);
|
|
6854
|
-
const
|
|
6857
|
+
const g = e().startConfig, d = "apiKey" in g && typeof g.apiKey == "string", u = e().apiKeyAuthTokenCollection;
|
|
6855
6858
|
if (d && "tokenExpiresAt" in u) {
|
|
6856
6859
|
const S = u.tokenExpiresAt && typeof u.tokenExpiresAt == "number" ? u.tokenExpiresAt : 0;
|
|
6857
6860
|
if (Date.now() > S) {
|
|
6858
6861
|
const v = yield e().connectByApiKey({
|
|
6859
|
-
apiKey:
|
|
6860
|
-
host:
|
|
6862
|
+
apiKey: g.apiKey,
|
|
6863
|
+
host: g.host,
|
|
6861
6864
|
deviceDescriptor: {
|
|
6862
6865
|
ttl: e()._ttl
|
|
6863
6866
|
}
|
|
6864
6867
|
});
|
|
6865
|
-
if (ir.removeAuthTokenLs(
|
|
6868
|
+
if (ir.removeAuthTokenLs(g.apiKey), v.error)
|
|
6866
6869
|
return { error: new nr({
|
|
6867
6870
|
errorCode: tr.CONNECTION_ISSUE,
|
|
6868
6871
|
underlyingBaseError: v.error
|
|
@@ -6870,7 +6873,7 @@ const $d = (t, e) => ({
|
|
|
6870
6873
|
if (v && "authToken" in v) {
|
|
6871
6874
|
const x = Date.now() + e()._ttl * 1e3;
|
|
6872
6875
|
e().setApiKeyAuthTokenCollection(
|
|
6873
|
-
|
|
6876
|
+
g.apiKey,
|
|
6874
6877
|
v.authToken,
|
|
6875
6878
|
x
|
|
6876
6879
|
);
|
|
@@ -6893,11 +6896,11 @@ const $d = (t, e) => ({
|
|
|
6893
6896
|
e().setServiceSessionToken(f);
|
|
6894
6897
|
const D = yield e()._runSocketConnection(f);
|
|
6895
6898
|
if (D.error) return { error: D.error };
|
|
6896
|
-
const M = e()._sessionIdFromUrl,
|
|
6897
|
-
if ("sessionId" in
|
|
6898
|
-
if ("error" in
|
|
6899
|
-
return { error:
|
|
6900
|
-
if ("id" in
|
|
6899
|
+
const M = e()._sessionIdFromUrl, N = yield e()._continueSession(n, M);
|
|
6900
|
+
if ("sessionId" in N) return { results: N };
|
|
6901
|
+
if ("error" in N)
|
|
6902
|
+
return { error: N.error };
|
|
6903
|
+
if ("id" in N) return {};
|
|
6901
6904
|
const E = yield e().fetchService.startSession({
|
|
6902
6905
|
workflowId: c,
|
|
6903
6906
|
locale: n,
|
|
@@ -7170,8 +7173,8 @@ class Hd {
|
|
|
7170
7173
|
try {
|
|
7171
7174
|
if (c = yield s.json(), !(c != null && c.id)) return { code: 6, data: a };
|
|
7172
7175
|
} catch (l) {
|
|
7173
|
-
const
|
|
7174
|
-
return a.what =
|
|
7176
|
+
const g = this._getErrorTextFromError(l);
|
|
7177
|
+
return a.what = g, { code: 6, data: a };
|
|
7175
7178
|
}
|
|
7176
7179
|
return { code: 0, data: c };
|
|
7177
7180
|
} catch (s) {
|
|
@@ -7193,14 +7196,14 @@ class Hd {
|
|
|
7193
7196
|
method: "GET"
|
|
7194
7197
|
}), c = { httpCode: a.status, method: "GET", url: o };
|
|
7195
7198
|
if (!a.ok) {
|
|
7196
|
-
const
|
|
7197
|
-
return
|
|
7199
|
+
const g = yield this._getResponseTextFromBadResponse(a);
|
|
7200
|
+
return g && (c.what = g), { code: 5, data: c };
|
|
7198
7201
|
}
|
|
7199
7202
|
let l;
|
|
7200
7203
|
try {
|
|
7201
7204
|
if (l = yield a.json(), !(l != null && l.id)) return { code: 6, data: c };
|
|
7202
|
-
} catch (
|
|
7203
|
-
const d = this._getErrorTextFromError(
|
|
7205
|
+
} catch (g) {
|
|
7206
|
+
const d = this._getErrorTextFromError(g);
|
|
7204
7207
|
return c.what = d, { code: 6, data: c };
|
|
7205
7208
|
}
|
|
7206
7209
|
return { code: 0, data: l };
|
|
@@ -7223,14 +7226,14 @@ class Hd {
|
|
|
7223
7226
|
method: "GET"
|
|
7224
7227
|
}), c = { httpCode: a.status, method: "GET", url: s };
|
|
7225
7228
|
if (!a.ok) {
|
|
7226
|
-
const
|
|
7227
|
-
return
|
|
7229
|
+
const g = yield this._getResponseTextFromBadResponse(a);
|
|
7230
|
+
return g && (c.what = g), { code: 5, data: c };
|
|
7228
7231
|
}
|
|
7229
7232
|
let l;
|
|
7230
7233
|
try {
|
|
7231
7234
|
if (l = yield a.json(), !l) return { code: 6, data: c };
|
|
7232
|
-
} catch (
|
|
7233
|
-
const d = this._getErrorTextFromError(
|
|
7235
|
+
} catch (g) {
|
|
7236
|
+
const d = this._getErrorTextFromError(g);
|
|
7234
7237
|
return c.what = d, { code: 6, data: c };
|
|
7235
7238
|
}
|
|
7236
7239
|
return { code: 0, data: l };
|
|
@@ -7270,8 +7273,8 @@ class Hd {
|
|
|
7270
7273
|
}
|
|
7271
7274
|
_fetchStep(e, r, i, n) {
|
|
7272
7275
|
return L(this, null, function* () {
|
|
7273
|
-
var
|
|
7274
|
-
const o = "POST", s = j({}, n && { type: n }), c = new URLSearchParams(s).toString(), l = `${this._origin}/api/sessions/${(
|
|
7276
|
+
var g;
|
|
7277
|
+
const o = "POST", s = j({}, n && { type: n }), c = new URLSearchParams(s).toString(), l = `${this._origin}/api/sessions/${(g = this._session) == null ? void 0 : g.id}/step/${r}${c ? `?${c}` : ""}`;
|
|
7275
7278
|
try {
|
|
7276
7279
|
const d = yield fetch(l, {
|
|
7277
7280
|
headers: {
|
|
@@ -7320,8 +7323,8 @@ class Hd {
|
|
|
7320
7323
|
try {
|
|
7321
7324
|
if (c = yield s.json(), !c) return { code: 6, data: a };
|
|
7322
7325
|
} catch (l) {
|
|
7323
|
-
const
|
|
7324
|
-
return a.what =
|
|
7326
|
+
const g = this._getErrorTextFromError(l);
|
|
7327
|
+
return a.what = g, { code: 6, data: a };
|
|
7325
7328
|
}
|
|
7326
7329
|
return { code: 0, data: c };
|
|
7327
7330
|
} catch (s) {
|
|
@@ -7511,10 +7514,10 @@ const Zd = (t, e) => ({
|
|
|
7511
7514
|
results: a
|
|
7512
7515
|
}, o.error && { error: o.error });
|
|
7513
7516
|
if (e().removeCurrentSessionDataLsAndStore(), i(c), o.error) {
|
|
7514
|
-
const
|
|
7517
|
+
const g = JSON.stringify(o.error);
|
|
7515
7518
|
e().fetchService.pushSessionLogs({
|
|
7516
7519
|
body: {
|
|
7517
|
-
log:
|
|
7520
|
+
log: g,
|
|
7518
7521
|
errorCode: o.error.shortChain,
|
|
7519
7522
|
deviceInfo: { platform: "Web" }
|
|
7520
7523
|
}
|
|
@@ -7547,8 +7550,8 @@ const Zd = (t, e) => ({
|
|
|
7547
7550
|
let s = null;
|
|
7548
7551
|
return yield rl(() => L(null, null, function* () {
|
|
7549
7552
|
const l = yield e().fetchService.pushData(i, n, o);
|
|
7550
|
-
let
|
|
7551
|
-
if (l.code === 4 && (
|
|
7553
|
+
let g = null;
|
|
7554
|
+
if (l.code === 4 && (g = at.HTTP_ISSUE), l.code !== 0 && l.code !== 4 && (g = at.PROVIDER_ERROR), g !== null) {
|
|
7552
7555
|
const d = new Pr({
|
|
7553
7556
|
errorCode: at.HTTP_ISSUE
|
|
7554
7557
|
});
|
|
@@ -7568,40 +7571,40 @@ const Zd = (t, e) => ({
|
|
|
7568
7571
|
return o != null ? o : null;
|
|
7569
7572
|
},
|
|
7570
7573
|
_getSessionStateNextStepConditionResult: () => L(null, null, function* () {
|
|
7571
|
-
var D, M,
|
|
7572
|
-
const i = yield e().fetchService.getSessionState(), n = i.code === 0, o = n ? i.data : null, s = (D = o == null ? void 0 : o.currentStep) != null ? D : "", a = o == null ? void 0 : o.isProcessingFiles, c = (
|
|
7574
|
+
var D, M, N;
|
|
7575
|
+
const i = yield e().fetchService.getSessionState(), n = i.code === 0, o = n ? i.data : null, s = (D = o == null ? void 0 : o.currentStep) != null ? D : "", a = o == null ? void 0 : o.isProcessingFiles, c = (N = (M = o == null ? void 0 : o.workflow) == null ? void 0 : M.steps) != null ? N : [], l = nl(c, s), g = i.code === 4, d = i.code !== 0 && i.code !== 4, u = n && (!i.data.workflow || !i.data.currentStep);
|
|
7573
7576
|
let f = null;
|
|
7574
|
-
if (c && !l && (f = at.NOT_DATA_TYPE),
|
|
7577
|
+
if (c && !l && (f = at.NOT_DATA_TYPE), g && (f = at.HTTP_ISSUE), d && (f = at.PROVIDER_ERROR), a && (f = at.IS_PROCESSING), u && (f = at.DECODING_FAILED), f !== null) {
|
|
7575
7578
|
const E = new Pr({ errorCode: f });
|
|
7576
7579
|
return { error: new $e({
|
|
7577
7580
|
errorCode: We.INTERNAL_ISSUE,
|
|
7578
7581
|
underlyingBaseError: E
|
|
7579
7582
|
}), shouldRetry: !0 };
|
|
7580
7583
|
}
|
|
7581
|
-
return l && !a && !
|
|
7584
|
+
return l && !a && !g && !d && !u ? { data: i.data } : { shouldRetry: !0 };
|
|
7582
7585
|
}),
|
|
7583
7586
|
_waitingForNextStep: () => L(null, null, function* () {
|
|
7584
7587
|
let i = {};
|
|
7585
7588
|
return yield new Promise((o) => {
|
|
7586
7589
|
let c = 0, l;
|
|
7587
|
-
const
|
|
7590
|
+
const g = (d) => L(null, null, function* () {
|
|
7588
7591
|
if (d) {
|
|
7589
7592
|
l = window.setTimeout(() => {
|
|
7590
|
-
|
|
7593
|
+
g(!1);
|
|
7591
7594
|
}, 1e4);
|
|
7592
7595
|
return;
|
|
7593
7596
|
}
|
|
7594
7597
|
i = yield e()._getSessionStateNextStepConditionResult(), c++, "shouldRetry" in i && c < 6 ? l = window.setTimeout(() => {
|
|
7595
|
-
|
|
7598
|
+
g(!1);
|
|
7596
7599
|
}, 1e4) : (ut.clearSubscriptions(), o());
|
|
7597
7600
|
});
|
|
7598
7601
|
if (ut.isConnected()) {
|
|
7599
7602
|
const d = (u) => {
|
|
7600
|
-
JSON.parse(atob(JSON.parse(u).payload)).eventType === "SESSION_UPDATED" && (clearTimeout(l),
|
|
7603
|
+
JSON.parse(atob(JSON.parse(u).payload)).eventType === "SESSION_UPDATED" && (clearTimeout(l), g(!1));
|
|
7601
7604
|
};
|
|
7602
7605
|
ut.onMessage(d);
|
|
7603
7606
|
}
|
|
7604
|
-
|
|
7607
|
+
g(!0);
|
|
7605
7608
|
}), i != null && i.error ? { error: i.error } : i != null && i.data ? { sessionData: i.data } : { error: new $e({
|
|
7606
7609
|
errorCode: We.INTERNAL_ISSUE,
|
|
7607
7610
|
underlyingBaseError: new Pr({ errorCode: at.DECODING_FAILED })
|
|
@@ -7643,8 +7646,8 @@ const Zd = (t, e) => ({
|
|
|
7643
7646
|
return;
|
|
7644
7647
|
}
|
|
7645
7648
|
if (a.data) {
|
|
7646
|
-
const { workflow:
|
|
7647
|
-
e().setNextStep({ workflow:
|
|
7649
|
+
const { workflow: g, properties: d, currentStep: u, locale: f } = a.data;
|
|
7650
|
+
e().setNextStep({ workflow: g, properties: d, nextStepId: u, locale: f });
|
|
7648
7651
|
}
|
|
7649
7652
|
}
|
|
7650
7653
|
});
|
|
@@ -7696,12 +7699,12 @@ const Zd = (t, e) => ({
|
|
|
7696
7699
|
}), e().resetSession();
|
|
7697
7700
|
return;
|
|
7698
7701
|
}
|
|
7699
|
-
const { workflow: c, properties: l, currentStep:
|
|
7700
|
-
e().setNextStep({ workflow: c, properties: l, nextStepId:
|
|
7702
|
+
const { workflow: c, properties: l, currentStep: g, locale: d } = a.sessionData;
|
|
7703
|
+
e().setNextStep({ workflow: c, properties: l, nextStepId: g, locale: d });
|
|
7701
7704
|
}),
|
|
7702
7705
|
/** prepare and configure config (props) for module and trigger showing step */
|
|
7703
7706
|
onChangeScreen: (i) => {
|
|
7704
|
-
var c, l,
|
|
7707
|
+
var c, l, g, d;
|
|
7705
7708
|
if (!i) return t(() => ({ currentScreenConfig: null }));
|
|
7706
7709
|
const n = e().workflow, o = e().sessionProperties;
|
|
7707
7710
|
let s = null;
|
|
@@ -7719,7 +7722,7 @@ const Zd = (t, e) => ({
|
|
|
7719
7722
|
dataSource: (l = u.dataSource) != null ? l : null,
|
|
7720
7723
|
properties: o,
|
|
7721
7724
|
locale: e().locale
|
|
7722
|
-
})), s && (s.sessionId = (
|
|
7725
|
+
})), s && (s.sessionId = (g = e().currentSessionData) == null ? void 0 : g.sessionId, s.serviceToken = e().serviceToken), s && cl((d = u == null ? void 0 : u.client) == null ? void 0 : d.templateLayout)) {
|
|
7723
7726
|
const f = Ts(u.client.templateLayout, e().layout);
|
|
7724
7727
|
f && (s.templateLayout = f);
|
|
7725
7728
|
}
|
|
@@ -7880,7 +7883,7 @@ function Xd() {
|
|
|
7880
7883
|
/* 1 */
|
|
7881
7884
|
/***/
|
|
7882
7885
|
(function(e, r, i) {
|
|
7883
|
-
var n = i(2), o = i(0), s = o.BROWSER_TYPES, a = o.OS_TYPES, c = o.DEVICE_TYPES, l = i(4),
|
|
7886
|
+
var n = i(2), o = i(0), s = o.BROWSER_TYPES, a = o.OS_TYPES, c = o.DEVICE_TYPES, l = i(4), g = l.checkType, d = l.broPayload, u = l.mobilePayload, f = l.wearPayload, D = l.consolePayload, M = l.stvPayload, N = l.getNavigatorInstance, E = l.isIOS13Check, A = new n(), p = A.getBrowser(), S = A.getDevice(), k = A.getEngine(), v = A.getOS(), x = A.getUA(), ae = s.CHROME, B = s.CHROMIUM, J = s.IE, V = s.INTERNET_EXPLORER, F = s.OPERA, Z = s.FIREFOX, de = s.SAFARI, le = s.EDGE, he = s.YANDEX, ye = s.MOBILE_SAFARI, re = c.MOBILE, H = c.TABLET, U = c.SMART_TV, X = c.BROWSER, ie = c.WEARABLE, Ee = c.CONSOLE, ne = a.ANDROID, P = a.WINDOWS_PHONE, te = a.IOS, Ye = a.WINDOWS, Ve = a.MAC_OS, nt = function() {
|
|
7884
7887
|
return S.type === re;
|
|
7885
7888
|
}, Xe = function() {
|
|
7886
7889
|
return S.type === H;
|
|
@@ -7931,10 +7934,10 @@ function Xd() {
|
|
|
7931
7934
|
}, Le = function() {
|
|
7932
7935
|
return p.name === V || p.name === J;
|
|
7933
7936
|
}, q = function() {
|
|
7934
|
-
var st =
|
|
7937
|
+
var st = N(), Ir = st && st.userAgent.toLowerCase();
|
|
7935
7938
|
return typeof Ir == "string" ? /electron/.test(Ir) : !1;
|
|
7936
7939
|
}, ce = function() {
|
|
7937
|
-
var st =
|
|
7940
|
+
var st = N();
|
|
7938
7941
|
return st && (/iPad|iPhone|iPod/.test(st.platform) || st.platform === "MacIntel" && st.maxTouchPoints > 1) && !window.MSStream;
|
|
7939
7942
|
}, $ = function() {
|
|
7940
7943
|
return E("iPad");
|
|
@@ -7964,7 +7967,7 @@ function Xd() {
|
|
|
7964
7967
|
return x;
|
|
7965
7968
|
}, ni = function() {
|
|
7966
7969
|
return S.type;
|
|
7967
|
-
}, oi = Ft(), si = Et(), ai = Nt(), Wt = G() || $(), ci = C(), it = Tt() || $(), ui = nt(), li = Xe() || $(), di = At(), Mi = Vt(), gi = y(), Ni = w() || $(), Ii = O(), sn = Q(), an = oe(), cn = De(), Nr = Le(), fi = K(), Di = Be(), hi = _e(), un = Ne(), yi = Bt(), pi = Jt(), Ti = ei(), ln = ti(), dn = ri(), Mn = ii(), gn = b() || ot(), Ai = W(), Nn = ni(), In = ce(), fn = $(), Dn = fe(), hn = Fe(), yn = q(), pn = ot(), Tn = b(), An = It(), En = rt(), ft =
|
|
7970
|
+
}, oi = Ft(), si = Et(), ai = Nt(), Wt = G() || $(), ci = C(), it = Tt() || $(), ui = nt(), li = Xe() || $(), di = At(), Mi = Vt(), gi = y(), Ni = w() || $(), Ii = O(), sn = Q(), an = oe(), cn = De(), Nr = Le(), fi = K(), Di = Be(), hi = _e(), un = Ne(), yi = Bt(), pi = Jt(), Ti = ei(), ln = ti(), dn = ri(), Mn = ii(), gn = b() || ot(), Ai = W(), Nn = ni(), In = ce(), fn = $(), Dn = fe(), hn = Fe(), yn = q(), pn = ot(), Tn = b(), An = It(), En = rt(), ft = g(S.type);
|
|
7968
7971
|
function mn() {
|
|
7969
7972
|
var se = ft.isBrowser, st = ft.isMobile, Ir = ft.isTablet, Ei = ft.isSmartTV, mi = ft.isConsole, ji = ft.isWearable;
|
|
7970
7973
|
if (se)
|
|
@@ -8034,7 +8037,7 @@ function Xd() {
|
|
|
8034
8037
|
* Dual licensed under GPLv2 or MIT
|
|
8035
8038
|
*/
|
|
8036
8039
|
(function(o, s) {
|
|
8037
|
-
var a = "0.7.18", c = "", l = "?",
|
|
8040
|
+
var a = "0.7.18", c = "", l = "?", g = "function", d = "undefined", u = "object", f = "string", D = "major", M = "model", N = "name", E = "type", A = "vendor", p = "version", S = "architecture", k = "console", v = "mobile", x = "tablet", ae = "smarttv", B = "wearable", J = "embedded", V = { extend: function(re, H) {
|
|
8038
8041
|
var U = {};
|
|
8039
8042
|
for (var X in re)
|
|
8040
8043
|
H[X] && H[X].length % 2 === 0 ? U[X] = H[X].concat(re[X]) : U[X] = re[X];
|
|
@@ -8053,7 +8056,7 @@ function Xd() {
|
|
|
8053
8056
|
for (X = ie = 0; X < Ye.length && !P; )
|
|
8054
8057
|
if (P = Ye[X++].exec(re), P)
|
|
8055
8058
|
for (Ee = 0; Ee < Ve.length; Ee++)
|
|
8056
|
-
te = P[++ie], ne = Ve[Ee], typeof ne === u && ne.length > 0 ? ne.length == 2 ? typeof ne[1] ==
|
|
8059
|
+
te = P[++ie], ne = Ve[Ee], typeof ne === u && ne.length > 0 ? ne.length == 2 ? typeof ne[1] == g ? this[ne[0]] = ne[1].call(this, te) : this[ne[0]] = ne[1] : ne.length == 3 ? typeof ne[1] === g && !(ne[1].exec && ne[1].test) ? this[ne[0]] = te ? ne[1].call(this, te, ne[2]) : s : this[ne[0]] = te ? te.replace(ne[1], ne[2]) : s : ne.length == 4 && (this[ne[0]] = te ? ne[3].call(this, te.replace(ne[1], ne[2])) : s) : this[ne] = te || s;
|
|
8057
8060
|
U += 2;
|
|
8058
8061
|
}
|
|
8059
8062
|
}, str: function(re, H) {
|
|
@@ -8065,7 +8068,7 @@ function Xd() {
|
|
|
8065
8068
|
} else if (V.has(H[U], re))
|
|
8066
8069
|
return U === l ? s : U;
|
|
8067
8070
|
return re;
|
|
8068
|
-
} }, Z = { browser: { oldsafari: { version: { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" } } }, device: { amazon: { model: { "Fire Phone": ["SD", "KF"] } }, sprint: { model: { "Evo Shift 4G": "7373KT" }, vendor: { HTC: "APA", Sprint: "Sprint" } } }, os: { windows: { version: { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" } } } }, de = { browser: [[/(opera\smini)\/([\w\.-]+)/i, /(opera\s[mobiletab]+).+version\/([\w\.-]+)/i, /(opera).+version\/([\w\.]+)/i, /(opera)[\/\s]+([\w\.]+)/i], [g, p], [/(opios)[\/\s]+([\w\.]+)/i], [[g, "Opera Mini"], p], [/\s(opr)\/([\w\.]+)/i], [[g, "Opera"], p], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i, /(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i, /(?:ms|\()(ie)\s([\w\.]+)/i, /(rekonq)\/([\w\.]*)/i, /(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i], [g, p], [/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i], [[g, "IE"], p], [/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i], [[g, "Edge"], p], [/(yabrowser)\/([\w\.]+)/i], [[g, "Yandex"], p], [/(puffin)\/([\w\.]+)/i], [[g, "Puffin"], p], [/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i], [[g, "UCBrowser"], p], [/(comodo_dragon)\/([\w\.]+)/i], [[g, /_/g, " "], p], [/(micromessenger)\/([\w\.]+)/i], [[g, "WeChat"], p], [/(qqbrowserlite)\/([\w\.]+)/i], [g, p], [/(QQ)\/([\d\.]+)/i], [g, p], [/m?(qqbrowser)[\/\s]?([\w\.]+)/i], [g, p], [/(BIDUBrowser)[\/\s]?([\w\.]+)/i], [g, p], [/(2345Explorer)[\/\s]?([\w\.]+)/i], [g, p], [/(MetaSr)[\/\s]?([\w\.]+)/i], [g], [/(LBBROWSER)/i], [g], [/xiaomi\/miuibrowser\/([\w\.]+)/i], [p, [g, "MIUI Browser"]], [/;fbav\/([\w\.]+);/i], [p, [g, "Facebook"]], [/headlesschrome(?:\/([\w\.]+)|\s)/i], [p, [g, "Chrome Headless"]], [/\swv\).+(chrome)\/([\w\.]+)/i], [[g, /(.+)/, "$1 WebView"], p], [/((?:oculus|samsung)browser)\/([\w\.]+)/i], [[g, /(.+(?:g|us))(.+)/, "$1 $2"], p], [/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i], [p, [g, "Android Browser"]], [/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i], [g, p], [/(dolfin)\/([\w\.]+)/i], [[g, "Dolphin"], p], [/((?:android.+)crmo|crios)\/([\w\.]+)/i], [[g, "Chrome"], p], [/(coast)\/([\w\.]+)/i], [[g, "Opera Coast"], p], [/fxios\/([\w\.-]+)/i], [p, [g, "Firefox"]], [/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i], [p, [g, "Mobile Safari"]], [/version\/([\w\.]+).+?(mobile\s?safari|safari)/i], [p, g], [/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [[g, "GSA"], p], [/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [g, [p, F.str, Z.browser.oldsafari.version]], [/(konqueror)\/([\w\.]+)/i, /(webkit|khtml)\/([\w\.]+)/i], [g, p], [/(navigator|netscape)\/([\w\.-]+)/i], [[g, "Netscape"], p], [/(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i, /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i, /(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i, /(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]*)/i, /(ice\s?browser)\/v?([\w\._]+)/i, /(mosaic)[\/\s]([\w\.]+)/i], [g, p]], cpu: [[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i], [[S, "amd64"]], [/(ia32(?=;))/i], [[S, V.lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[S, "ia32"]], [/windows\s(ce|mobile);\sppc;/i], [[S, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i], [[S, /ower/, "", V.lowerize]], [/(sun4\w)[;\)]/i], [[S, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [[S, V.lowerize]]], device: [[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i], [M, A, [E, x]], [/applecoremedia\/[\w\.]+ \((ipad)/], [M, [A, "Apple"], [E, x]], [/(apple\s{0,1}tv)/i], [[M, "Apple TV"], [A, "Apple"]], [/(archos)\s(gamepad2?)/i, /(hp).+(touchpad)/i, /(hp).+(tablet)/i, /(kindle)\/([\w\.]+)/i, /\s(nook)[\w\s]+build\/(\w+)/i, /(dell)\s(strea[kpr\s\d]*[\dko])/i], [A, M, [E, x]], [/(kf[A-z]+)\sbuild\/.+silk\//i], [M, [A, "Amazon"], [E, x]], [/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i], [[M, F.str, Z.device.amazon.model], [A, "Amazon"], [E, v]], [/\((ip[honed|\s\w*]+);.+(apple)/i], [M, A, [E, v]], [/\((ip[honed|\s\w*]+);/i], [M, [A, "Apple"], [E, v]], [/(blackberry)[\s-]?(\w+)/i, /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i, /(hp)\s([\w\s]+\w)/i, /(asus)-?(\w+)/i], [A, M, [E, v]], [/\(bb10;\s(\w+)/i], [M, [A, "BlackBerry"], [E, v]], [/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i], [M, [A, "Asus"], [E, x]], [/(sony)\s(tablet\s[ps])\sbuild\//i, /(sony)?(?:sgp.+)\sbuild\//i], [[A, "Sony"], [M, "Xperia Tablet"], [E, x]], [/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i], [M, [A, "Sony"], [E, v]], [/\s(ouya)\s/i, /(nintendo)\s([wids3u]+)/i], [A, M, [E, k]], [/android.+;\s(shield)\sbuild/i], [M, [A, "Nvidia"], [E, k]], [/(playstation\s[34portablevi]+)/i], [M, [A, "Sony"], [E, k]], [/(sprint\s(\w+))/i], [[A, F.str, Z.device.sprint.vendor], [M, F.str, Z.device.sprint.model], [E, v]], [/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i], [A, M, [E, x]], [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [A, [M, /_/g, " "], [E, v]], [/(nexus\s9)/i], [M, [A, "HTC"], [E, x]], [/d\/huawei([\w\s-]+)[;\)]/i, /(nexus\s6p)/i], [M, [A, "Huawei"], [E, v]], [/(microsoft);\s(lumia[\s\w]+)/i], [A, M, [E, v]], [/[\s\(;](xbox(?:\sone)?)[\s\);]/i], [M, [A, "Microsoft"], [E, k]], [/(kin\.[onetw]{3})/i], [[M, /\./g, " "], [A, "Microsoft"], [E, v]], [/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w*)/i, /(XT\d{3,4}) build\//i, /(nexus\s6)/i], [M, [A, "Motorola"], [E, v]], [/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [M, [A, "Motorola"], [E, x]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[A, V.trim], [M, V.trim], [E, ae]], [/hbbtv.+maple;(\d+)/i], [[M, /^/, "SmartTV"], [A, "Samsung"], [E, ae]], [/\(dtv[\);].+(aquos)/i], [M, [A, "Sharp"], [E, ae]], [/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i], [[A, "Samsung"], M, [E, x]], [/smart-tv.+(samsung)/i], [A, [E, ae], M], [/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i, /(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i, /sec-((sgh\w+))/i], [[A, "Samsung"], M, [E, v]], [/sie-(\w*)/i], [M, [A, "Siemens"], [E, v]], [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]*)/i], [[A, "Nokia"], M, [E, v]], [/android\s3\.[\s\w;-]{10}(a\d{3})/i], [M, [A, "Acer"], [E, x]], [/android.+([vl]k\-?\d{3})\s+build/i], [M, [A, "LG"], [E, x]], [/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i], [[A, "LG"], M, [E, x]], [/(lg) netcast\.tv/i], [A, M, [E, ae]], [/(nexus\s[45])/i, /lg[e;\s\/-]+(\w*)/i, /android.+lg(\-?[\d\w]+)\s+build/i], [M, [A, "LG"], [E, v]], [/android.+(ideatab[a-z0-9\-\s]+)/i], [M, [A, "Lenovo"], [E, x]], [/linux;.+((jolla));/i], [A, M, [E, v]], [/((pebble))app\/[\d\.]+\s/i], [A, M, [E, B]], [/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [A, M, [E, v]], [/crkey/i], [[M, "Chromecast"], [A, "Google"]], [/android.+;\s(glass)\s\d/i], [M, [A, "Google"], [E, B]], [/android.+;\s(pixel c)\s/i], [M, [A, "Google"], [E, x]], [/android.+;\s(pixel xl|pixel)\s/i], [M, [A, "Google"], [E, v]], [/android.+;\s(\w+)\s+build\/hm\1/i, /android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i, /android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i, /android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i], [[M, /_/g, " "], [A, "Xiaomi"], [E, v]], [/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i], [[M, /_/g, " "], [A, "Xiaomi"], [E, x]], [/android.+;\s(m[1-5]\snote)\sbuild/i], [M, [A, "Meizu"], [E, x]], [/android.+a000(1)\s+build/i, /android.+oneplus\s(a\d{4})\s+build/i], [M, [A, "OnePlus"], [E, v]], [/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i], [M, [A, "RCA"], [E, x]], [/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i], [M, [A, "Dell"], [E, x]], [/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i], [M, [A, "Verizon"], [E, x]], [/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i], [[A, "Barnes & Noble"], M, [E, x]], [/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i], [M, [A, "NuVision"], [E, x]], [/android.+;\s(k88)\sbuild/i], [M, [A, "ZTE"], [E, x]], [/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i], [M, [A, "Swiss"], [E, v]], [/android.+[;\/]\s*(zur\d{3})\s+build/i], [M, [A, "Swiss"], [E, x]], [/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i], [M, [A, "Zeki"], [E, x]], [/(android).+[;\/]\s+([YR]\d{2})\s+build/i, /android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i], [[A, "Dragon Touch"], M, [E, x]], [/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i], [M, [A, "Insignia"], [E, x]], [/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i], [M, [A, "NextBook"], [E, x]], [/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i], [[A, "Voice"], M, [E, v]], [/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i], [[A, "LvTel"], M, [E, v]], [/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i], [M, [A, "Envizen"], [E, x]], [/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i], [A, M, [E, x]], [/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], [M, [A, "MachSpeed"], [E, x]], [/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i], [A, M, [E, x]], [/android.+[;\/]\s*TU_(1491)\s+build/i], [M, [A, "Rotor"], [E, x]], [/android.+(KS(.+))\s+build/i], [M, [A, "Amazon"], [E, x]], [/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i], [A, M, [E, x]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[E, V.lowerize], A, M], [/(android[\w\.\s\-]{0,9});.+build/i], [M, [A, "Generic"]]], engine: [[/windows.+\sedge\/([\w\.]+)/i], [p, [g, "EdgeHTML"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i], [g, p], [/rv\:([\w\.]{1,9}).+(gecko)/i], [p, g]], os: [[/microsoft\s(windows)\s(vista|xp)/i], [g, p], [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i, /(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], [g, [p, F.str, Z.os.windows.version]], [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i], [[g, "Windows"], [p, F.str, Z.os.windows.version]], [/\((bb)(10);/i], [[g, "BlackBerry"], p], [/(blackberry)\w*\/?([\w\.]*)/i, /(tizen)[\/\s]([\w\.]+)/i, /(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i, /linux;.+(sailfish);/i], [g, p], [/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i], [[g, "Symbian"], p], [/\((series40);/i], [g], [/mozilla.+\(mobile;.+gecko.+firefox/i], [[g, "Firefox OS"], p], [/(nintendo|playstation)\s([wids34portablevu]+)/i, /(mint)[\/\s\(]?(\w*)/i, /(mageia|vectorlinux)[;\s]/i, /(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i, /(hurd|linux)\s?([\w\.]*)/i, /(gnu)\s?([\w\.]*)/i], [g, p], [/(cros)\s[\w]+\s([\w\.]+\w)/i], [[g, "Chromium OS"], p], [/(sunos)\s?([\w\.\d]*)/i], [[g, "Solaris"], p], [/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i], [g, p], [/(haiku)\s(\w+)/i], [g, p], [/cfnetwork\/.+darwin/i, /ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i], [[p, /_/g, "."], [g, "iOS"]], [/(mac\sos\sx)\s?([\w\s\.]*)/i, /(macintosh|mac(?=_powerpc)\s)/i], [[g, "Mac OS"], [p, /_/g, "."]], [/((?:open)?solaris)[\/\s-]?([\w\.]*)/i, /(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i, /(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i, /(unix)\s?([\w\.]*)/i], [g, p]] }, le = function(re, H) {
|
|
8071
|
+
} }, Z = { browser: { oldsafari: { version: { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" } } }, device: { amazon: { model: { "Fire Phone": ["SD", "KF"] } }, sprint: { model: { "Evo Shift 4G": "7373KT" }, vendor: { HTC: "APA", Sprint: "Sprint" } } }, os: { windows: { version: { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" } } } }, de = { browser: [[/(opera\smini)\/([\w\.-]+)/i, /(opera\s[mobiletab]+).+version\/([\w\.-]+)/i, /(opera).+version\/([\w\.]+)/i, /(opera)[\/\s]+([\w\.]+)/i], [N, p], [/(opios)[\/\s]+([\w\.]+)/i], [[N, "Opera Mini"], p], [/\s(opr)\/([\w\.]+)/i], [[N, "Opera"], p], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i, /(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i, /(?:ms|\()(ie)\s([\w\.]+)/i, /(rekonq)\/([\w\.]*)/i, /(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark)\/([\w\.-]+)/i], [N, p], [/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i], [[N, "IE"], p], [/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i], [[N, "Edge"], p], [/(yabrowser)\/([\w\.]+)/i], [[N, "Yandex"], p], [/(puffin)\/([\w\.]+)/i], [[N, "Puffin"], p], [/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i], [[N, "UCBrowser"], p], [/(comodo_dragon)\/([\w\.]+)/i], [[N, /_/g, " "], p], [/(micromessenger)\/([\w\.]+)/i], [[N, "WeChat"], p], [/(qqbrowserlite)\/([\w\.]+)/i], [N, p], [/(QQ)\/([\d\.]+)/i], [N, p], [/m?(qqbrowser)[\/\s]?([\w\.]+)/i], [N, p], [/(BIDUBrowser)[\/\s]?([\w\.]+)/i], [N, p], [/(2345Explorer)[\/\s]?([\w\.]+)/i], [N, p], [/(MetaSr)[\/\s]?([\w\.]+)/i], [N], [/(LBBROWSER)/i], [N], [/xiaomi\/miuibrowser\/([\w\.]+)/i], [p, [N, "MIUI Browser"]], [/;fbav\/([\w\.]+);/i], [p, [N, "Facebook"]], [/headlesschrome(?:\/([\w\.]+)|\s)/i], [p, [N, "Chrome Headless"]], [/\swv\).+(chrome)\/([\w\.]+)/i], [[N, /(.+)/, "$1 WebView"], p], [/((?:oculus|samsung)browser)\/([\w\.]+)/i], [[N, /(.+(?:g|us))(.+)/, "$1 $2"], p], [/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i], [p, [N, "Android Browser"]], [/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i], [N, p], [/(dolfin)\/([\w\.]+)/i], [[N, "Dolphin"], p], [/((?:android.+)crmo|crios)\/([\w\.]+)/i], [[N, "Chrome"], p], [/(coast)\/([\w\.]+)/i], [[N, "Opera Coast"], p], [/fxios\/([\w\.-]+)/i], [p, [N, "Firefox"]], [/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i], [p, [N, "Mobile Safari"]], [/version\/([\w\.]+).+?(mobile\s?safari|safari)/i], [p, N], [/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [[N, "GSA"], p], [/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [N, [p, F.str, Z.browser.oldsafari.version]], [/(konqueror)\/([\w\.]+)/i, /(webkit|khtml)\/([\w\.]+)/i], [N, p], [/(navigator|netscape)\/([\w\.-]+)/i], [[N, "Netscape"], p], [/(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i, /(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i, /(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i, /(links)\s\(([\w\.]+)/i, /(gobrowser)\/?([\w\.]*)/i, /(ice\s?browser)\/v?([\w\._]+)/i, /(mosaic)[\/\s]([\w\.]+)/i], [N, p]], cpu: [[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i], [[S, "amd64"]], [/(ia32(?=;))/i], [[S, V.lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[S, "ia32"]], [/windows\s(ce|mobile);\sppc;/i], [[S, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i], [[S, /ower/, "", V.lowerize]], [/(sun4\w)[;\)]/i], [[S, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [[S, V.lowerize]]], device: [[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i], [M, A, [E, x]], [/applecoremedia\/[\w\.]+ \((ipad)/], [M, [A, "Apple"], [E, x]], [/(apple\s{0,1}tv)/i], [[M, "Apple TV"], [A, "Apple"]], [/(archos)\s(gamepad2?)/i, /(hp).+(touchpad)/i, /(hp).+(tablet)/i, /(kindle)\/([\w\.]+)/i, /\s(nook)[\w\s]+build\/(\w+)/i, /(dell)\s(strea[kpr\s\d]*[\dko])/i], [A, M, [E, x]], [/(kf[A-z]+)\sbuild\/.+silk\//i], [M, [A, "Amazon"], [E, x]], [/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i], [[M, F.str, Z.device.amazon.model], [A, "Amazon"], [E, v]], [/\((ip[honed|\s\w*]+);.+(apple)/i], [M, A, [E, v]], [/\((ip[honed|\s\w*]+);/i], [M, [A, "Apple"], [E, v]], [/(blackberry)[\s-]?(\w+)/i, /(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i, /(hp)\s([\w\s]+\w)/i, /(asus)-?(\w+)/i], [A, M, [E, v]], [/\(bb10;\s(\w+)/i], [M, [A, "BlackBerry"], [E, v]], [/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i], [M, [A, "Asus"], [E, x]], [/(sony)\s(tablet\s[ps])\sbuild\//i, /(sony)?(?:sgp.+)\sbuild\//i], [[A, "Sony"], [M, "Xperia Tablet"], [E, x]], [/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i], [M, [A, "Sony"], [E, v]], [/\s(ouya)\s/i, /(nintendo)\s([wids3u]+)/i], [A, M, [E, k]], [/android.+;\s(shield)\sbuild/i], [M, [A, "Nvidia"], [E, k]], [/(playstation\s[34portablevi]+)/i], [M, [A, "Sony"], [E, k]], [/(sprint\s(\w+))/i], [[A, F.str, Z.device.sprint.vendor], [M, F.str, Z.device.sprint.model], [E, v]], [/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i], [A, M, [E, x]], [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [A, [M, /_/g, " "], [E, v]], [/(nexus\s9)/i], [M, [A, "HTC"], [E, x]], [/d\/huawei([\w\s-]+)[;\)]/i, /(nexus\s6p)/i], [M, [A, "Huawei"], [E, v]], [/(microsoft);\s(lumia[\s\w]+)/i], [A, M, [E, v]], [/[\s\(;](xbox(?:\sone)?)[\s\);]/i], [M, [A, "Microsoft"], [E, k]], [/(kin\.[onetw]{3})/i], [[M, /\./g, " "], [A, "Microsoft"], [E, v]], [/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i, /mot[\s-]?(\w*)/i, /(XT\d{3,4}) build\//i, /(nexus\s6)/i], [M, [A, "Motorola"], [E, v]], [/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [M, [A, "Motorola"], [E, x]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[A, V.trim], [M, V.trim], [E, ae]], [/hbbtv.+maple;(\d+)/i], [[M, /^/, "SmartTV"], [A, "Samsung"], [E, ae]], [/\(dtv[\);].+(aquos)/i], [M, [A, "Sharp"], [E, ae]], [/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i, /((SM-T\w+))/i], [[A, "Samsung"], M, [E, x]], [/smart-tv.+(samsung)/i], [A, [E, ae], M], [/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i, /(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i, /sec-((sgh\w+))/i], [[A, "Samsung"], M, [E, v]], [/sie-(\w*)/i], [M, [A, "Siemens"], [E, v]], [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]*)/i], [[A, "Nokia"], M, [E, v]], [/android\s3\.[\s\w;-]{10}(a\d{3})/i], [M, [A, "Acer"], [E, x]], [/android.+([vl]k\-?\d{3})\s+build/i], [M, [A, "LG"], [E, x]], [/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i], [[A, "LG"], M, [E, x]], [/(lg) netcast\.tv/i], [A, M, [E, ae]], [/(nexus\s[45])/i, /lg[e;\s\/-]+(\w*)/i, /android.+lg(\-?[\d\w]+)\s+build/i], [M, [A, "LG"], [E, v]], [/android.+(ideatab[a-z0-9\-\s]+)/i], [M, [A, "Lenovo"], [E, x]], [/linux;.+((jolla));/i], [A, M, [E, v]], [/((pebble))app\/[\d\.]+\s/i], [A, M, [E, B]], [/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [A, M, [E, v]], [/crkey/i], [[M, "Chromecast"], [A, "Google"]], [/android.+;\s(glass)\s\d/i], [M, [A, "Google"], [E, B]], [/android.+;\s(pixel c)\s/i], [M, [A, "Google"], [E, x]], [/android.+;\s(pixel xl|pixel)\s/i], [M, [A, "Google"], [E, v]], [/android.+;\s(\w+)\s+build\/hm\1/i, /android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i, /android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i, /android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i], [[M, /_/g, " "], [A, "Xiaomi"], [E, v]], [/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i], [[M, /_/g, " "], [A, "Xiaomi"], [E, x]], [/android.+;\s(m[1-5]\snote)\sbuild/i], [M, [A, "Meizu"], [E, x]], [/android.+a000(1)\s+build/i, /android.+oneplus\s(a\d{4})\s+build/i], [M, [A, "OnePlus"], [E, v]], [/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i], [M, [A, "RCA"], [E, x]], [/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i], [M, [A, "Dell"], [E, x]], [/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i], [M, [A, "Verizon"], [E, x]], [/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i], [[A, "Barnes & Noble"], M, [E, x]], [/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i], [M, [A, "NuVision"], [E, x]], [/android.+;\s(k88)\sbuild/i], [M, [A, "ZTE"], [E, x]], [/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i], [M, [A, "Swiss"], [E, v]], [/android.+[;\/]\s*(zur\d{3})\s+build/i], [M, [A, "Swiss"], [E, x]], [/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i], [M, [A, "Zeki"], [E, x]], [/(android).+[;\/]\s+([YR]\d{2})\s+build/i, /android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i], [[A, "Dragon Touch"], M, [E, x]], [/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i], [M, [A, "Insignia"], [E, x]], [/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i], [M, [A, "NextBook"], [E, x]], [/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i], [[A, "Voice"], M, [E, v]], [/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i], [[A, "LvTel"], M, [E, v]], [/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i], [M, [A, "Envizen"], [E, x]], [/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i], [A, M, [E, x]], [/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], [M, [A, "MachSpeed"], [E, x]], [/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i], [A, M, [E, x]], [/android.+[;\/]\s*TU_(1491)\s+build/i], [M, [A, "Rotor"], [E, x]], [/android.+(KS(.+))\s+build/i], [M, [A, "Amazon"], [E, x]], [/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i], [A, M, [E, x]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[E, V.lowerize], A, M], [/(android[\w\.\s\-]{0,9});.+build/i], [M, [A, "Generic"]]], engine: [[/windows.+\sedge\/([\w\.]+)/i], [p, [N, "EdgeHTML"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i], [N, p], [/rv\:([\w\.]{1,9}).+(gecko)/i], [p, N]], os: [[/microsoft\s(windows)\s(vista|xp)/i], [N, p], [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i, /(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], [N, [p, F.str, Z.os.windows.version]], [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i], [[N, "Windows"], [p, F.str, Z.os.windows.version]], [/\((bb)(10);/i], [[N, "BlackBerry"], p], [/(blackberry)\w*\/?([\w\.]*)/i, /(tizen)[\/\s]([\w\.]+)/i, /(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i, /linux;.+(sailfish);/i], [N, p], [/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i], [[N, "Symbian"], p], [/\((series40);/i], [N], [/mozilla.+\(mobile;.+gecko.+firefox/i], [[N, "Firefox OS"], p], [/(nintendo|playstation)\s([wids34portablevu]+)/i, /(mint)[\/\s\(]?(\w*)/i, /(mageia|vectorlinux)[;\s]/i, /(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i, /(hurd|linux)\s?([\w\.]*)/i, /(gnu)\s?([\w\.]*)/i], [N, p], [/(cros)\s[\w]+\s([\w\.]+\w)/i], [[N, "Chromium OS"], p], [/(sunos)\s?([\w\.\d]*)/i], [[N, "Solaris"], p], [/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i], [N, p], [/(haiku)\s(\w+)/i], [N, p], [/cfnetwork\/.+darwin/i, /ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i], [[p, /_/g, "."], [N, "iOS"]], [/(mac\sos\sx)\s?([\w\s\.]*)/i, /(macintosh|mac(?=_powerpc)\s)/i], [[N, "Mac OS"], [p, /_/g, "."]], [/((?:open)?solaris)[\/\s-]?([\w\.]*)/i, /(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i, /(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i, /(unix)\s?([\w\.]*)/i], [N, p]] }, le = function(re, H) {
|
|
8069
8072
|
if (typeof re == "object" && (H = re, re = s), !(this instanceof le))
|
|
8070
8073
|
return new le(re, H).getResult();
|
|
8071
8074
|
var U = re || (o && o.navigator && o.navigator.userAgent ? o.navigator.userAgent : c), X = H ? V.extend(de, H) : de;
|
|
@@ -8092,7 +8095,7 @@ function Xd() {
|
|
|
8092
8095
|
return U = ie, this;
|
|
8093
8096
|
}, this;
|
|
8094
8097
|
};
|
|
8095
|
-
le.VERSION = a, le.BROWSER = { NAME:
|
|
8098
|
+
le.VERSION = a, le.BROWSER = { NAME: N, MAJOR: D, VERSION: p }, le.CPU = { ARCHITECTURE: S }, le.DEVICE = { MODEL: M, VENDOR: A, TYPE: E, CONSOLE: k, MOBILE: v, SMARTTV: ae, TABLET: x, WEARABLE: B, EMBEDDED: J }, le.ENGINE = { NAME: N, VERSION: p }, le.OS = { NAME: N, VERSION: p }, typeof r !== d ? (typeof e !== d && e.exports && (r = e.exports = le), r.UAParser = le) : i(3) ? (n = (function() {
|
|
8096
8099
|
return le;
|
|
8097
8100
|
}).call(r, i, r, e), n !== s && (e.exports = n)) : o && (o.UAParser = le);
|
|
8098
8101
|
var he = o && (o.jQuery || o.Zepto);
|
|
@@ -8122,13 +8125,13 @@ function Xd() {
|
|
|
8122
8125
|
Object.defineProperty(r, "__esModule", {
|
|
8123
8126
|
value: !0
|
|
8124
8127
|
});
|
|
8125
|
-
var n = Object.assign || function(
|
|
8128
|
+
var n = Object.assign || function(N) {
|
|
8126
8129
|
for (var E = 1; E < arguments.length; E++) {
|
|
8127
8130
|
var A = arguments[E];
|
|
8128
8131
|
for (var p in A)
|
|
8129
|
-
Object.prototype.hasOwnProperty.call(A, p) && (
|
|
8132
|
+
Object.prototype.hasOwnProperty.call(A, p) && (N[p] = A[p]);
|
|
8130
8133
|
}
|
|
8131
|
-
return
|
|
8134
|
+
return N;
|
|
8132
8135
|
}, o = i(0), s = o.DEVICE_TYPES, a = o.defaultData, c = function(E) {
|
|
8133
8136
|
switch (E) {
|
|
8134
8137
|
case s.MOBILE:
|
|
@@ -8158,7 +8161,7 @@ function Xd() {
|
|
|
8158
8161
|
osVersion: S.version,
|
|
8159
8162
|
userAgent: k
|
|
8160
8163
|
};
|
|
8161
|
-
},
|
|
8164
|
+
}, g = function(E, A, p, S) {
|
|
8162
8165
|
return n({}, E, {
|
|
8163
8166
|
vendor: A.vendor,
|
|
8164
8167
|
model: A.model,
|
|
@@ -8202,7 +8205,7 @@ function Xd() {
|
|
|
8202
8205
|
e.exports = {
|
|
8203
8206
|
checkType: c,
|
|
8204
8207
|
broPayload: l,
|
|
8205
|
-
mobilePayload:
|
|
8208
|
+
mobilePayload: g,
|
|
8206
8209
|
stvPayload: d,
|
|
8207
8210
|
consolePayload: u,
|
|
8208
8211
|
wearPayload: f,
|
|
@@ -8272,7 +8275,7 @@ const vo = class vo extends Lr {
|
|
|
8272
8275
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = Ys(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
8273
8276
|
}
|
|
8274
8277
|
get version() {
|
|
8275
|
-
return `${"3.2.
|
|
8278
|
+
return `${"3.2.290".trim()}`;
|
|
8276
8279
|
}
|
|
8277
8280
|
disconnectedCallback() {
|
|
8278
8281
|
var e;
|
|
@@ -8362,7 +8365,7 @@ class MM {
|
|
|
8362
8365
|
}
|
|
8363
8366
|
/** service commands */
|
|
8364
8367
|
get version() {
|
|
8365
|
-
return "3.2.
|
|
8368
|
+
return "3.2.290";
|
|
8366
8369
|
}
|
|
8367
8370
|
set nonce(e) {
|
|
8368
8371
|
Ue.getState().setNonce(e);
|