@regulaforensics/idv-capture-web 3.2.259-nightly → 3.2.260-nightly
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/index.d.ts +2 -0
- package/dist/main.iife.js +6 -6
- package/dist/main.js +289 -284
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2,12 +2,12 @@ var Ml = Object.defineProperty, Pl = Object.defineProperties;
|
|
|
2
2
|
var Fl = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var In = Object.getOwnPropertySymbols;
|
|
4
4
|
var Vo = Object.prototype.hasOwnProperty, $o = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Uo = (t, e, r) => e in t ? Ml(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, O = (t, e) => {
|
|
6
6
|
for (var r in e || (e = {}))
|
|
7
|
-
Vo.call(e, r) &&
|
|
7
|
+
Vo.call(e, r) && Uo(t, r, e[r]);
|
|
8
8
|
if (In)
|
|
9
9
|
for (var r of In(e))
|
|
10
|
-
$o.call(e, r) &&
|
|
10
|
+
$o.call(e, r) && Uo(t, r, e[r]);
|
|
11
11
|
return t;
|
|
12
12
|
}, X = (t, e) => Pl(t, Fl(e));
|
|
13
13
|
var Xt = (t, e) => {
|
|
@@ -59,7 +59,7 @@ let Ys = class {
|
|
|
59
59
|
return this.cssText;
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
const
|
|
62
|
+
const Ll = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, eo), Ul = (t, ...e) => {
|
|
63
63
|
const r = t.length === 1 ? t[0] : e.reduce(((n, i, o) => n + ((s) => {
|
|
64
64
|
if (s._$cssResult$ === !0) return s.cssText;
|
|
65
65
|
if (typeof s == "number") return s;
|
|
@@ -75,7 +75,7 @@ const Ul = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, eo), Ll = (t
|
|
|
75
75
|
}, Ho = Qi ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((e) => {
|
|
76
76
|
let r = "";
|
|
77
77
|
for (const n of e.cssRules) r += n.cssText;
|
|
78
|
-
return
|
|
78
|
+
return Ll(r);
|
|
79
79
|
})(t) : t;
|
|
80
80
|
/**
|
|
81
81
|
* @license
|
|
@@ -682,7 +682,7 @@ class sc {
|
|
|
682
682
|
i.download = "log.txt", i.href = n, i.click(), window.URL.revokeObjectURL(n), this.clearLogs();
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
const na = new sc(), ac =
|
|
685
|
+
const na = new sc(), ac = Ul`
|
|
686
686
|
*,
|
|
687
687
|
::after,
|
|
688
688
|
::before {
|
|
@@ -750,7 +750,7 @@ const na = new sc(), ac = Ll`
|
|
|
750
750
|
DATA: "DATA",
|
|
751
751
|
QUESTIONARY: "QUESTIONARY"
|
|
752
752
|
}, cc = Object.values(lc);
|
|
753
|
-
var ia = /* @__PURE__ */ ((t) => (t.Rtl = "rtl", t.Ltr = "ltr", t))(ia || {}), Mr = /* @__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))(Mr || {}), Et = /* @__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))(Et || {}), Ue = /* @__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))(Ue || {}), Ke = /* @__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))(Ke || {}), ei = /* @__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))(ei || {}),
|
|
753
|
+
var ia = /* @__PURE__ */ ((t) => (t.Rtl = "rtl", t.Ltr = "ltr", t))(ia || {}), Mr = /* @__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))(Mr || {}), Et = /* @__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))(Et || {}), Ue = /* @__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))(Ue || {}), Ke = /* @__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))(Ke || {}), ei = /* @__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))(ei || {}), Ln = /* @__PURE__ */ ((t) => (t[t.CONNECTION_ISSUE = 0] = "CONNECTION_ISSUE", t[t.WORKFLOW_ISSUE = 1] = "WORKFLOW_ISSUE", t))(Ln || {}), Tt = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t[t.DECODING_FAILED = 2] = "DECODING_FAILED", t))(Tt || {}), 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 || {}), lt = /* @__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))(lt || {}), Un = /* @__PURE__ */ ((t) => (t[t.INITIALIZATION_REQUIRED = 0] = "INITIALIZATION_REQUIRED", t[t.SCENARIO_IN_PROGRESS = 3] = "SCENARIO_IN_PROGRESS", t))(Un || {}), Kt = /* @__PURE__ */ ((t) => (t[t.HTTP_ISSUE = 0] = "HTTP_ISSUE", t[t.PROVIDER_ERROR = 1] = "PROVIDER_ERROR", t))(Kt || {});
|
|
754
754
|
const dc = 120, uc = 200, Bi = "PROGRESS", vt = "IDV", er = "idv-session-data", xr = "idv-session-auth-token", fc = "rgl-uid", hc = "en", Jo = (t) => {
|
|
755
755
|
let e;
|
|
756
756
|
const r = /* @__PURE__ */ new Set(), n = (d, p) => {
|
|
@@ -1474,7 +1474,7 @@ se.diffed = function(t) {
|
|
|
1474
1474
|
};
|
|
1475
1475
|
var Da = { ReactCurrentDispatcher: { current: { readContext: function(t) {
|
|
1476
1476
|
return yo.__n[t.__c].props.value;
|
|
1477
|
-
}, useCallback: uo, useContext: Zr, useDebugValue: fo, useDeferredValue: go, useEffect: nt, useId: ho, useImperativeHandle: co, useInsertionEffect: vo, useLayoutEffect: Zt, useMemo: qr, useReducer: ti, useRef: it, useState: Me, useSyncExternalStore: _o, useTransition: wo } } },
|
|
1477
|
+
}, useCallback: uo, useContext: Zr, useDebugValue: fo, useDeferredValue: go, useEffect: nt, useId: ho, useImperativeHandle: co, useInsertionEffect: vo, useLayoutEffect: Zt, useMemo: qr, useReducer: ti, useRef: it, useState: Me, useSyncExternalStore: _o, useTransition: wo } } }, Lc = "18.3.1";
|
|
1478
1478
|
function Ma(t) {
|
|
1479
1479
|
return wt.bind(null, t);
|
|
1480
1480
|
}
|
|
@@ -1487,10 +1487,10 @@ function Pa(t) {
|
|
|
1487
1487
|
function Fa(t) {
|
|
1488
1488
|
return !!t && !!t.displayName && (typeof t.displayName == "string" || t.displayName instanceof String) && t.displayName.startsWith("Memo(");
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function La(t) {
|
|
1491
1491
|
return Yr(t) ? yc.apply(null, arguments) : t;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function Ua(t) {
|
|
1494
1494
|
return !!t.__k && (cr(null, t), !0);
|
|
1495
1495
|
}
|
|
1496
1496
|
function Va(t) {
|
|
@@ -1500,8 +1500,8 @@ var $a = function(t, e) {
|
|
|
1500
1500
|
return t(e);
|
|
1501
1501
|
}, Ba = function(t, e) {
|
|
1502
1502
|
return t(e);
|
|
1503
|
-
}, Ha = We, Wa = Yr, ue = { useState: Me, useId: ho, useReducer: ti, useEffect: nt, useLayoutEffect: Zt, useInsertionEffect: vo, useTransition: wo, useDeferredValue: go, useSyncExternalStore: _o, startTransition: mo, useRef: it, useImperativeHandle: co, useMemo: qr, useCallback: uo, useContext: Zr, useDebugValue: fo, version: "18.3.1", Children: Ea, render: ka, hydrate: Na, unmountComponentAtNode:
|
|
1504
|
-
const
|
|
1503
|
+
}, Ha = We, Wa = Yr, ue = { useState: Me, useId: ho, useReducer: ti, useEffect: nt, useLayoutEffect: Zt, useInsertionEffect: vo, useTransition: wo, useDeferredValue: go, useSyncExternalStore: _o, startTransition: mo, useRef: it, useImperativeHandle: co, useMemo: qr, useCallback: uo, useContext: Zr, useDebugValue: fo, version: "18.3.1", Children: Ea, render: ka, hydrate: Na, unmountComponentAtNode: Ua, createPortal: Aa, createElement: wt, createContext: lo, createFactory: Ma, cloneElement: La, createRef: ua, Fragment: We, isValidElement: Yr, isElement: Wa, isFragment: Pa, isMemo: Fa, findDOMNode: Va, Component: ht, PureComponent: $n, memo: Ca, forwardRef: Sa, flushSync: Ba, unstable_batchedUpdates: $a, StrictMode: Ha, Suspense: Fr, SuspenseList: wr, lazy: xa, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Da };
|
|
1504
|
+
const Uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1505
1505
|
__proto__: null,
|
|
1506
1506
|
Children: Ea,
|
|
1507
1507
|
Component: ht,
|
|
@@ -1511,7 +1511,7 @@ const Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1511
1511
|
Suspense: Fr,
|
|
1512
1512
|
SuspenseList: wr,
|
|
1513
1513
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Da,
|
|
1514
|
-
cloneElement:
|
|
1514
|
+
cloneElement: La,
|
|
1515
1515
|
createContext: lo,
|
|
1516
1516
|
createElement: wt,
|
|
1517
1517
|
createFactory: Ma,
|
|
@@ -1530,7 +1530,7 @@ const Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1530
1530
|
memo: Ca,
|
|
1531
1531
|
render: ka,
|
|
1532
1532
|
startTransition: mo,
|
|
1533
|
-
unmountComponentAtNode:
|
|
1533
|
+
unmountComponentAtNode: Ua,
|
|
1534
1534
|
unstable_batchedUpdates: $a,
|
|
1535
1535
|
useCallback: uo,
|
|
1536
1536
|
useContext: Zr,
|
|
@@ -1548,7 +1548,7 @@ const Lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1548
1548
|
useState: Me,
|
|
1549
1549
|
useSyncExternalStore: _o,
|
|
1550
1550
|
useTransition: wo,
|
|
1551
|
-
version:
|
|
1551
|
+
version: Lc
|
|
1552
1552
|
}, Symbol.toStringTag, { value: "Module" })), Vc = (t) => t;
|
|
1553
1553
|
function $c(t, e = Vc) {
|
|
1554
1554
|
const r = ue.useSyncExternalStore(
|
|
@@ -1587,12 +1587,12 @@ function Hc(t) {
|
|
|
1587
1587
|
}), r;
|
|
1588
1588
|
}
|
|
1589
1589
|
var B = {};
|
|
1590
|
-
const Wc = /* @__PURE__ */ Hc(
|
|
1590
|
+
const Wc = /* @__PURE__ */ Hc(Uc);
|
|
1591
1591
|
var Rr = { exports: {} }, jc = Rr.exports, ws;
|
|
1592
1592
|
function zc() {
|
|
1593
1593
|
return ws || (ws = 1, (function(t, e) {
|
|
1594
1594
|
(function(r, n) {
|
|
1595
|
-
var i = "1.0.41", o = "", s = "?", a = "function", l = "undefined", d = "object", p = "string", h = "major", c = "model", g = "name", w = "type", f = "vendor", m = "version", S = "architecture", C = "console", b = "mobile", I = "tablet", D = "smarttv", N = "wearable", R = "embedded", fe = 500, _e = "Amazon", ae = "Apple", Z = "ASUS", H = "BlackBerry", K = "Browser", de = "Chrome", le = "Edge", we = "Firefox", ve = "Google", ee = "Honor", z = "Huawei",
|
|
1595
|
+
var i = "1.0.41", o = "", s = "?", a = "function", l = "undefined", d = "object", p = "string", h = "major", c = "model", g = "name", w = "type", f = "vendor", m = "version", S = "architecture", C = "console", b = "mobile", I = "tablet", D = "smarttv", N = "wearable", R = "embedded", fe = 500, _e = "Amazon", ae = "Apple", Z = "ASUS", H = "BlackBerry", K = "Browser", de = "Chrome", le = "Edge", we = "Firefox", ve = "Google", ee = "Honor", z = "Huawei", L = "Lenovo", Y = "LG", te = "Microsoft", Se = "Motorola", re = "Nvidia", $ = "OnePlus", Q = "Opera", Be = "OPPO", je = "Samsung", ot = "Sharp", Xe = "Sony", yt = "Xiaomi", st = "Zebra", Ht = "Facebook", bt = "Chromium OS", pt = "Mac OS", Ct = " Browser", Wt = function(J, oe) {
|
|
1596
1596
|
var j = {};
|
|
1597
1597
|
for (var me in J)
|
|
1598
1598
|
oe[me] && oe[me].length % 2 === 0 ? j[me] = oe[me].concat(J[me]) : j[me] = J[me];
|
|
@@ -1611,12 +1611,12 @@ function zc() {
|
|
|
1611
1611
|
if (typeof J === p)
|
|
1612
1612
|
return J = J.replace(/^\s\s*/, o), typeof oe === l ? J : J.substring(0, fe);
|
|
1613
1613
|
}, V = function(J, oe) {
|
|
1614
|
-
for (var j = 0, me,
|
|
1614
|
+
for (var j = 0, me, He, xe, he, q, ze; j < oe.length && !q; ) {
|
|
1615
1615
|
var jt = oe[j], Jt = oe[j + 1];
|
|
1616
|
-
for (me =
|
|
1616
|
+
for (me = He = 0; me < jt.length && !q && jt[me]; )
|
|
1617
1617
|
if (q = jt[me++].exec(J), q)
|
|
1618
1618
|
for (xe = 0; xe < Jt.length; xe++)
|
|
1619
|
-
ze = q[++
|
|
1619
|
+
ze = q[++He], he = Jt[xe], typeof he === d && he.length > 0 ? he.length === 2 ? typeof he[1] == a ? this[he[0]] = he[1].call(this, ze) : this[he[0]] = he[1] : he.length === 3 ? typeof he[1] === a && !(he[1].exec && he[1].test) ? this[he[0]] = ze ? he[1].call(this, ze, he[2]) : n : this[he[0]] = ze ? ze.replace(he[1], he[2]) : n : he.length === 4 && (this[he[0]] = ze ? he[3].call(this, ze.replace(he[1], he[2])) : n) : this[he] = ze || n;
|
|
1620
1620
|
j += 2;
|
|
1621
1621
|
}
|
|
1622
1622
|
}, M = function(J, oe) {
|
|
@@ -1628,10 +1628,10 @@ function zc() {
|
|
|
1628
1628
|
} else if (tt(oe[j], J))
|
|
1629
1629
|
return j === s ? n : j;
|
|
1630
1630
|
return oe.hasOwnProperty("*") ? oe["*"] : J;
|
|
1631
|
-
}, P = { "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" }, ne = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [g, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [g, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [g, m], [/opios[\/ ]+([\w\.]+)/i], [m, [g, Q + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [m, [g, Q + " GX"]], [/\bopr\/([\w\.]+)/i], [m, [g, Q]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [m, [g, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [m, [g, "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], [g, m], [/quark(?:pc)?\/([-\w\.]+)/i], [m, [g, "Quark"]], [/\bddg\/([\w\.]+)/i], [m, [g, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [g, "UC" + K]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [m, [g, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [g, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [g, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [g, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [m, [g, "Smart Lenovo " + K]], [/(avast|avg)\/([\w\.]+)/i], [[g, /(.+)/, "$1 Secure " + K], m], [/\bfocus\/([\w\.]+)/i], [m, [g, we + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [g, Q + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [g, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [g, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [g, Q + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [g, "MIUI" + Ct]], [/fxios\/([\w\.-]+)/i], [m, [g, we]], [/\bqihoobrowser\/?([\w\.]*)/i], [m, [g, "360"]], [/\b(qq)\/([\w\.]+)/i], [[g, /(.+)/, "$1Browser"], m], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[g, /(.+)/, "$1" + Ct], m], [/samsungbrowser\/([\w\.]+)/i], [m, [g, je + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [m, [g, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[g, "Sogou Mobile"], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [g, m], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [g], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [m, g], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[g, Ht], m], [/(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], [g, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [g, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [g, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [g, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, de + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [g, "Android " + K]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [g, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [g, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, g], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [g, [m, M, P]], [/(webkit|khtml)\/([\w\.]+)/i], [g, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[g, "Netscape"], m], [/(wolvic|librewolf)\/([\w\.]+)/i], [g, m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [g, we + " 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], [g, [m, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [g, [m, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[S, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[S, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[S, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[S, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[S, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[S, /ower/, o, y]], [/ sun4\w[;\)]/i], [[S, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[S, 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], [c, [f, je], [w, I]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [f, je], [w, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [f, ae], [w, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [f, ae], [w, I]], [/(macintosh);/i], [c, [f, ae]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [f, ot], [w, b]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [f, ee], [w, I]], [/honor([-\w ]+)[;\)]/i], [c, [f, ee], [w, b]], [/\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], [c, [f, z], [w, I]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [f, z], [w, b]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [f, yt], [w, I]], [/\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], [[c, /_/g, " "], [f, yt], [w, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [f, $e], [w, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [f, M, { OnePlus: ["304", "403", "203"], "*": $e }], [w, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [f, "Vivo"], [w, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [f, "Realme"], [w, b]], [/\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], [c, [f, Se], [w, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [f, Se], [w, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [f, Y], [w, I]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [f, Y], [w, b]], [/(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], [c, [f, U], [w, I]], [/(nokia) (t[12][01])/i], [f, c, [w, I]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [w, b], [f, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [f, ve], [w, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [f, ve], [w, b]], [/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], [c, [f, Xe], [w, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [f, Xe], [w, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [f, $], [w, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [f, _e], [w, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [f, _e], [w, b]], [/(playbook);[-\w\),; ]+(rim)/i], [c, f, [w, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [f, H], [w, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [f, Z], [w, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [f, Z], [w, b]], [/(nexus 9)/i], [c, [f, "HTC"], [w, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [c, /_/g, " "], [w, b]], [/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], [c, [f, "TCL"], [w, I]], [/(itel) ((\w+))/i], [[f, y], c, [w, M, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [f, "Acer"], [w, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [f, "Meizu"], [w, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [f, "Ulefone"], [w, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [f, "Energizer"], [w, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [f, "Cat"], [w, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [f, "Smartfren"], [w, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [f, "Nothing"], [w, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [f, "Archos"], [w, I]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [f, "Archos"], [w, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [f, c, [w, I]], [/(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], [f, c, [w, b]], [/(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], [f, c, [w, I]], [/(surface duo)/i], [c, [f, te], [w, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [f, "Fairphone"], [w, b]], [/(u304aa)/i], [c, [f, "AT&T"], [w, b]], [/\bsie-(\w*)/i], [c, [f, "Siemens"], [w, b]], [/\b(rct\w+) b/i], [c, [f, "RCA"], [w, I]], [/\b(venue[\d ]{2,7}) b/i], [c, [f, "Dell"], [w, I]], [/\b(q(?:mv|ta)\w+) b/i], [c, [f, "Verizon"], [w, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [f, "Barnes & Noble"], [w, I]], [/\b(tm\d{3}\w+) b/i], [c, [f, "NuVision"], [w, I]], [/\b(k88) b/i], [c, [f, "ZTE"], [w, I]], [/\b(nx\d{3}j) b/i], [c, [f, "ZTE"], [w, b]], [/\b(gen\d{3}) b.+49h/i], [c, [f, "Swiss"], [w, b]], [/\b(zur\d{3}) b/i], [c, [f, "Swiss"], [w, I]], [/\b((zeki)?tb.*\b) b/i], [c, [f, "Zeki"], [w, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], c, [w, I]], [/\b(ns-?\w{0,9}) b/i], [c, [f, "Insignia"], [w, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [f, "NextBook"], [w, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], c, [w, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], c, [w, b]], [/\b(ph-1) /i], [c, [f, "Essential"], [w, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [f, "Envizen"], [w, I]], [/\b(trio[-\w\. ]+) b/i], [c, [f, "MachSpeed"], [w, I]], [/\btu_(1491) b/i], [c, [f, "Rotor"], [w, I]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [f, re], [w, I]], [/(sprint) (\w+)/i], [f, c, [w, b]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [f, te], [w, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [f, st], [w, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [f, st], [w, b]], [/smart-tv.+(samsung)/i], [f, [w, D]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [f, je], [w, D]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, Y], [w, D]], [/(apple) ?tv/i], [f, [c, ae + " TV"], [w, D]], [/crkey/i], [[c, de + "cast"], [f, ve], [w, D]], [/droid.+aft(\w+)( bui|\))/i], [c, [f, _e], [w, D]], [/(shield \w+ tv)/i], [c, [f, re], [w, D]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [f, ot], [w, D]], [/(bravia[\w ]+)( bui|\))/i], [c, [f, Xe], [w, D]], [/(mi(tv|box)-?\w+) bui/i], [c, [f, yt], [w, D]], [/Hbbtv.*(technisat) (.*);/i], [f, c, [w, D]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, A], [c, A], [w, D]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [w, D]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[w, D]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, c, [w, C]], [/droid.+; (shield)( bui|\))/i], [c, [f, re], [w, C]], [/(playstation \w+)/i], [c, [f, Xe], [w, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [f, te], [w, C]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [f, je], [w, N]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [f, c, [w, N]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [f, $e], [w, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [f, ae], [w, N]], [/(opwwe\d{3})/i], [c, [f, $], [w, N]], [/(moto 360)/i], [c, [f, Se], [w, N]], [/(smartwatch 3)/i], [c, [f, Xe], [w, N]], [/(g watch r)/i], [c, [f, Y], [w, N]], [/droid.+; (wt63?0{2,3})\)/i], [c, [f, st], [w, N]], [/droid.+; (glass) \d/i], [c, [f, ve], [w, N]], [/(pico) (4|neo3(?: link|pro)?)/i], [f, c, [w, N]], [/; (quest( \d| pro)?)/i], [c, [f, Ht], [w, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [w, R]], [/(aeobc)\b/i], [c, [f, _e], [w, R]], [/(homepod).+mac os/i], [c, [f, ae], [w, R]], [/windows iot/i], [[w, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [w, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [w, I]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[w, I]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[w, b]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [g, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [g, m], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [g, "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], [g, m], [/ladybird\//i], [[g, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, g]], os: [[/microsoft (windows) (vista|xp)/i], [g, m], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [g, [m, M, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, M, W], [g, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [g, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[g, pt], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, g], [/(ubuntu) ([\w\.]+) like android/i], [[g, /(.+)/, "$1 Touch"], m], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [g, m], [/\(bb(10);/i], [m, [g, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [m, [g, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [g, we + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [g, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [g, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [g, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[g, bt], m], [/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], [g, m], [/(sunos) ?([\w\.\d]*)/i], [[g, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [g, m]] }, G = function(J, oe) {
|
|
1631
|
+
}, P = { "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" }, ne = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [m, [g, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [m, [g, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [g, m], [/opios[\/ ]+([\w\.]+)/i], [m, [g, Q + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [m, [g, Q + " GX"]], [/\bopr\/([\w\.]+)/i], [m, [g, Q]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [m, [g, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [m, [g, "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], [g, m], [/quark(?:pc)?\/([-\w\.]+)/i], [m, [g, "Quark"]], [/\bddg\/([\w\.]+)/i], [m, [g, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [m, [g, "UC" + K]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [m, [g, "WeChat"]], [/konqueror\/([\w\.]+)/i], [m, [g, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [m, [g, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [m, [g, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [m, [g, "Smart Lenovo " + K]], [/(avast|avg)\/([\w\.]+)/i], [[g, /(.+)/, "$1 Secure " + K], m], [/\bfocus\/([\w\.]+)/i], [m, [g, we + " Focus"]], [/\bopt\/([\w\.]+)/i], [m, [g, Q + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [m, [g, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [m, [g, "Dolphin"]], [/coast\/([\w\.]+)/i], [m, [g, Q + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [m, [g, "MIUI" + Ct]], [/fxios\/([\w\.-]+)/i], [m, [g, we]], [/\bqihoobrowser\/?([\w\.]*)/i], [m, [g, "360"]], [/\b(qq)\/([\w\.]+)/i], [[g, /(.+)/, "$1Browser"], m], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[g, /(.+)/, "$1" + Ct], m], [/samsungbrowser\/([\w\.]+)/i], [m, [g, je + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [m, [g, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[g, "Sogou Mobile"], m], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [g, m], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [g], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [m, g], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[g, Ht], m], [/(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], [g, m], [/\bgsa\/([\w\.]+) .*safari\//i], [m, [g, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [m, [g, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [m, [g, de + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[g, de + " WebView"], m], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [m, [g, "Android " + K]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [g, m], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [m, [g, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [m, g], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [g, [m, M, P]], [/(webkit|khtml)\/([\w\.]+)/i], [g, m], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[g, "Netscape"], m], [/(wolvic|librewolf)\/([\w\.]+)/i], [g, m], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [m, [g, we + " 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], [g, [m, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [g, [m, /master.|lts./, ""]]], cpu: [[/\b((amd|x|x86[-_]?|wow|win)64)\b/i], [[S, "amd64"]], [/(ia32(?=;))/i, /\b((i[346]|x)86)(pc)?\b/i], [[S, "ia32"]], [/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i], [[S, "arm64"]], [/\b(arm(v[67])?ht?n?[fl]p?)\b/i], [[S, "armhf"]], [/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i], [[S, "arm"]], [/((ppc|powerpc)(64)?)( mac|;|\))/i], [[S, /ower/, o, y]], [/ sun4\w[;\)]/i], [[S, "sparc"]], [/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i], [[S, 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], [c, [f, je], [w, I]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [c, [f, je], [w, b]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [c, [f, ae], [w, b]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [c, [f, ae], [w, I]], [/(macintosh);/i], [c, [f, ae]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [c, [f, ot], [w, b]], [/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i], [c, [f, ee], [w, I]], [/honor([-\w ]+)[;\)]/i], [c, [f, ee], [w, b]], [/\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], [c, [f, z], [w, I]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [c, [f, z], [w, b]], [/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i, /\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i], [[c, /_/g, " "], [f, yt], [w, I]], [/\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], [[c, /_/g, " "], [f, yt], [w, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [c, [f, Be], [w, b]], [/\b(opd2(\d{3}a?))(?: bui|\))/i], [c, [f, M, { OnePlus: ["304", "403", "203"], "*": Be }], [w, I]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [c, [f, "Vivo"], [w, b]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [c, [f, "Realme"], [w, b]], [/\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], [c, [f, Se], [w, b]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [c, [f, Se], [w, I]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [c, [f, Y], [w, I]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i, /\blg-?([\d\w]+) bui/i], [c, [f, Y], [w, b]], [/(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], [c, [f, L], [w, I]], [/(nokia) (t[12][01])/i], [f, c, [w, I]], [/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i, /nokia[-_ ]?(([-\w\. ]*))/i], [[c, /_/g, " "], [w, b], [f, "Nokia"]], [/(pixel (c|tablet))\b/i], [c, [f, ve], [w, I]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [c, [f, ve], [w, b]], [/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], [c, [f, Xe], [w, b]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[c, "Xperia Tablet"], [f, Xe], [w, I]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [c, [f, $], [w, b]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [c, [f, _e], [w, I]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[c, /(.+)/g, "Fire Phone $1"], [f, _e], [w, b]], [/(playbook);[-\w\),; ]+(rim)/i], [c, f, [w, I]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [c, [f, H], [w, b]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [c, [f, Z], [w, I]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [c, [f, Z], [w, b]], [/(nexus 9)/i], [c, [f, "HTC"], [w, I]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [f, [c, /_/g, " "], [w, b]], [/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], [c, [f, "TCL"], [w, I]], [/(itel) ((\w+))/i], [[f, y], c, [w, M, { tablet: ["p10001l", "w7001"], "*": "mobile" }]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [c, [f, "Acer"], [w, I]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [c, [f, "Meizu"], [w, b]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [c, [f, "Ulefone"], [w, b]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [c, [f, "Energizer"], [w, b]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [c, [f, "Cat"], [w, b]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [c, [f, "Smartfren"], [w, b]], [/droid.+; (a(?:015|06[35]|142p?))/i], [c, [f, "Nothing"], [w, b]], [/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i, /archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i], [c, [f, "Archos"], [w, I]], [/archos ([\w ]+)( b|\))/i, /; (ac[3-6]\d\w{2,8})( b|\))/i], [c, [f, "Archos"], [w, b]], [/(imo) (tab \w+)/i, /(infinix) (x1101b?)/i], [f, c, [w, I]], [/(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], [f, c, [w, b]], [/(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], [f, c, [w, I]], [/(surface duo)/i], [c, [f, te], [w, I]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [c, [f, "Fairphone"], [w, b]], [/(u304aa)/i], [c, [f, "AT&T"], [w, b]], [/\bsie-(\w*)/i], [c, [f, "Siemens"], [w, b]], [/\b(rct\w+) b/i], [c, [f, "RCA"], [w, I]], [/\b(venue[\d ]{2,7}) b/i], [c, [f, "Dell"], [w, I]], [/\b(q(?:mv|ta)\w+) b/i], [c, [f, "Verizon"], [w, I]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [c, [f, "Barnes & Noble"], [w, I]], [/\b(tm\d{3}\w+) b/i], [c, [f, "NuVision"], [w, I]], [/\b(k88) b/i], [c, [f, "ZTE"], [w, I]], [/\b(nx\d{3}j) b/i], [c, [f, "ZTE"], [w, b]], [/\b(gen\d{3}) b.+49h/i], [c, [f, "Swiss"], [w, b]], [/\b(zur\d{3}) b/i], [c, [f, "Swiss"], [w, I]], [/\b((zeki)?tb.*\b) b/i], [c, [f, "Zeki"], [w, I]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[f, "Dragon Touch"], c, [w, I]], [/\b(ns-?\w{0,9}) b/i], [c, [f, "Insignia"], [w, I]], [/\b((nxa|next)-?\w{0,9}) b/i], [c, [f, "NextBook"], [w, I]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[f, "Voice"], c, [w, b]], [/\b(lvtel\-)?(v1[12]) b/i], [[f, "LvTel"], c, [w, b]], [/\b(ph-1) /i], [c, [f, "Essential"], [w, b]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [c, [f, "Envizen"], [w, I]], [/\b(trio[-\w\. ]+) b/i], [c, [f, "MachSpeed"], [w, I]], [/\btu_(1491) b/i], [c, [f, "Rotor"], [w, I]], [/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i], [c, [f, re], [w, I]], [/(sprint) (\w+)/i], [f, c, [w, b]], [/(kin\.[onetw]{3})/i], [[c, /\./g, " "], [f, te], [w, b]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [c, [f, st], [w, I]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [c, [f, st], [w, b]], [/smart-tv.+(samsung)/i], [f, [w, D]], [/hbbtv.+maple;(\d+)/i], [[c, /^/, "SmartTV"], [f, je], [w, D]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[f, Y], [w, D]], [/(apple) ?tv/i], [f, [c, ae + " TV"], [w, D]], [/crkey/i], [[c, de + "cast"], [f, ve], [w, D]], [/droid.+aft(\w+)( bui|\))/i], [c, [f, _e], [w, D]], [/(shield \w+ tv)/i], [c, [f, re], [w, D]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [c, [f, ot], [w, D]], [/(bravia[\w ]+)( bui|\))/i], [c, [f, Xe], [w, D]], [/(mi(tv|box)-?\w+) bui/i], [c, [f, yt], [w, D]], [/Hbbtv.*(technisat) (.*);/i], [f, c, [w, D]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[f, A], [c, A], [w, D]], [/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i], [c, [w, D]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[w, D]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [f, c, [w, C]], [/droid.+; (shield)( bui|\))/i], [c, [f, re], [w, C]], [/(playstation \w+)/i], [c, [f, Xe], [w, C]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [c, [f, te], [w, C]], [/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i], [c, [f, je], [w, N]], [/((pebble))app/i, /(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i], [f, c, [w, N]], [/(ow(?:19|20)?we?[1-3]{1,3})/i], [c, [f, Be], [w, N]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [c, [f, ae], [w, N]], [/(opwwe\d{3})/i], [c, [f, $], [w, N]], [/(moto 360)/i], [c, [f, Se], [w, N]], [/(smartwatch 3)/i], [c, [f, Xe], [w, N]], [/(g watch r)/i], [c, [f, Y], [w, N]], [/droid.+; (wt63?0{2,3})\)/i], [c, [f, st], [w, N]], [/droid.+; (glass) \d/i], [c, [f, ve], [w, N]], [/(pico) (4|neo3(?: link|pro)?)/i], [f, c, [w, N]], [/; (quest( \d| pro)?)/i], [c, [f, Ht], [w, N]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [f, [w, R]], [/(aeobc)\b/i], [c, [f, _e], [w, R]], [/(homepod).+mac os/i], [c, [f, ae], [w, R]], [/windows iot/i], [[w, R]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [c, [w, b]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [c, [w, I]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[w, I]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[w, b]], [/droid .+?; ([\w\. -]+)( bui|\))/i], [c, [f, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [m, [g, le + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [g, m], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [m, [g, "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], [g, m], [/ladybird\//i], [[g, "LibWeb"]], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [m, g]], os: [[/microsoft (windows) (vista|xp)/i], [g, m], [/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i], [g, [m, M, W]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[m, M, W], [g, "Windows"]], [/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[m, /_/g, "."], [g, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[g, pt], [m, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [m, g], [/(ubuntu) ([\w\.]+) like android/i], [[g, /(.+)/, "$1 Touch"], m], [/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i], [g, m], [/\(bb(10);/i], [m, [g, H]], [/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i], [m, [g, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [m, [g, we + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [m, [g, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [m, [g, "watchOS"]], [/crkey\/([\d\.]+)/i], [m, [g, de + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[g, bt], m], [/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], [g, m], [/(sunos) ?([\w\.\d]*)/i], [[g, "Solaris"], m], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [g, m]] }, G = function(J, oe) {
|
|
1632
1632
|
if (typeof J === d && (oe = J, J = n), !(this instanceof G))
|
|
1633
1633
|
return new G(J, oe).getResult();
|
|
1634
|
-
var j = typeof r !== l && r.navigator ? r.navigator : n, me = J || (j && j.userAgent ? j.userAgent : o),
|
|
1634
|
+
var j = typeof r !== l && r.navigator ? r.navigator : n, me = J || (j && j.userAgent ? j.userAgent : o), He = j && j.userAgentData ? j.userAgentData : n, xe = oe ? Wt(ne, oe) : ne, he = j && j.userAgent == me;
|
|
1635
1635
|
return this.getBrowser = function() {
|
|
1636
1636
|
var q = {};
|
|
1637
1637
|
return q[g] = n, q[m] = n, V.call(q, me, xe.browser), q[h] = T(q[m]), he && j && j.brave && typeof j.brave.isBrave == a && (q[g] = "Brave"), q;
|
|
@@ -1640,13 +1640,13 @@ function zc() {
|
|
|
1640
1640
|
return q[S] = n, V.call(q, me, xe.cpu), q;
|
|
1641
1641
|
}, this.getDevice = function() {
|
|
1642
1642
|
var q = {};
|
|
1643
|
-
return q[f] = n, q[c] = n, q[w] = n, V.call(q, me, xe.device), he && !q[w] &&
|
|
1643
|
+
return q[f] = n, q[c] = n, q[w] = n, V.call(q, me, xe.device), he && !q[w] && He && He.mobile && (q[w] = b), he && q[c] == "Macintosh" && j && typeof j.standalone !== l && j.maxTouchPoints && j.maxTouchPoints > 2 && (q[c] = "iPad", q[w] = I), q;
|
|
1644
1644
|
}, this.getEngine = function() {
|
|
1645
1645
|
var q = {};
|
|
1646
1646
|
return q[g] = n, q[m] = n, V.call(q, me, xe.engine), q;
|
|
1647
1647
|
}, this.getOS = function() {
|
|
1648
1648
|
var q = {};
|
|
1649
|
-
return q[g] = n, q[m] = n, V.call(q, me, xe.os), he && !q[g] &&
|
|
1649
|
+
return q[g] = n, q[m] = n, V.call(q, me, xe.os), he && !q[g] && He && He.platform && He.platform != "Unknown" && (q[g] = He.platform.replace(/chrome os/i, bt).replace(/macos/i, pt)), q;
|
|
1650
1650
|
}, this.getResult = function() {
|
|
1651
1651
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
1652
1652
|
}, this.getUA = function() {
|
|
@@ -1869,7 +1869,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1869
1869
|
Wearable: "wearable",
|
|
1870
1870
|
Embedded: "embedded",
|
|
1871
1871
|
Browser: void 0
|
|
1872
|
-
},
|
|
1872
|
+
}, L = {
|
|
1873
1873
|
Chrome: "Chrome",
|
|
1874
1874
|
Firefox: "Firefox",
|
|
1875
1875
|
Opera: "Opera",
|
|
@@ -1936,7 +1936,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1936
1936
|
return _ || v;
|
|
1937
1937
|
}, Q = function() {
|
|
1938
1938
|
return typeof window != "undefined" && (window.navigator || navigator) ? window.navigator || navigator : !1;
|
|
1939
|
-
},
|
|
1939
|
+
}, Be = function(_) {
|
|
1940
1940
|
var v = Q();
|
|
1941
1941
|
return v && v.platform && (v.platform.indexOf(_) !== -1 || v.platform === "MacIntel" && v.maxTouchPoints > 1 && !window.MSStream);
|
|
1942
1942
|
}, je = function(_, v, x, k, pe) {
|
|
@@ -1999,7 +1999,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1999
1999
|
};
|
|
2000
2000
|
};
|
|
2001
2001
|
function bt(E) {
|
|
2002
|
-
var _ = E ? c(E) : g, v = _.device, x = _.browser, k = _.engine, pe = _.os, Ae = _.ua, Ze = Se(v.type), On = Ze.isBrowser, Nl = Ze.isMobile, Dl = Ze.isTablet, Mo = Ze.isSmartTV, Po = Ze.isConsole, Fo = Ze.isWearable,
|
|
2002
|
+
var _ = E ? c(E) : g, v = _.device, x = _.browser, k = _.engine, pe = _.os, Ae = _.ua, Ze = Se(v.type), On = Ze.isBrowser, Nl = Ze.isMobile, Dl = Ze.isTablet, Mo = Ze.isSmartTV, Po = Ze.isConsole, Fo = Ze.isWearable, Lo = Ze.isEmbedded;
|
|
2003
2003
|
if (On)
|
|
2004
2004
|
return je(On, x, k, pe, Ae);
|
|
2005
2005
|
if (Mo)
|
|
@@ -2010,8 +2010,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2010
2010
|
return ot(Ze, v, pe, Ae);
|
|
2011
2011
|
if (Fo)
|
|
2012
2012
|
return st(Fo, k, pe, Ae);
|
|
2013
|
-
if (
|
|
2014
|
-
return Ht(
|
|
2013
|
+
if (Lo)
|
|
2014
|
+
return Ht(Lo, v, k, pe, Ae);
|
|
2015
2015
|
}
|
|
2016
2016
|
var pt = function(_) {
|
|
2017
2017
|
var v = _.type;
|
|
@@ -2069,37 +2069,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2069
2069
|
return $(v);
|
|
2070
2070
|
}, j = function(_) {
|
|
2071
2071
|
var v = _.name;
|
|
2072
|
-
return v ===
|
|
2072
|
+
return v === L.Chrome;
|
|
2073
2073
|
}, me = function(_) {
|
|
2074
2074
|
var v = _.name;
|
|
2075
|
-
return v ===
|
|
2076
|
-
},
|
|
2075
|
+
return v === L.Firefox;
|
|
2076
|
+
}, He = function(_) {
|
|
2077
2077
|
var v = _.name;
|
|
2078
|
-
return v ===
|
|
2078
|
+
return v === L.Chromium;
|
|
2079
2079
|
}, xe = function(_) {
|
|
2080
2080
|
var v = _.name;
|
|
2081
|
-
return v ===
|
|
2081
|
+
return v === L.Edge;
|
|
2082
2082
|
}, he = function(_) {
|
|
2083
2083
|
var v = _.name;
|
|
2084
|
-
return v ===
|
|
2084
|
+
return v === L.Yandex;
|
|
2085
2085
|
}, q = function(_) {
|
|
2086
2086
|
var v = _.name;
|
|
2087
|
-
return v ===
|
|
2087
|
+
return v === L.Safari || v === L.MobileSafari;
|
|
2088
2088
|
}, ze = function(_) {
|
|
2089
2089
|
var v = _.name;
|
|
2090
|
-
return v ===
|
|
2090
|
+
return v === L.MobileSafari;
|
|
2091
2091
|
}, jt = function(_) {
|
|
2092
2092
|
var v = _.name;
|
|
2093
|
-
return v ===
|
|
2093
|
+
return v === L.Opera;
|
|
2094
2094
|
}, Jt = function(_) {
|
|
2095
2095
|
var v = _.name;
|
|
2096
|
-
return v ===
|
|
2096
|
+
return v === L.InternetExplorer || v === L.Ie;
|
|
2097
2097
|
}, Qr = function(_) {
|
|
2098
2098
|
var v = _.name;
|
|
2099
|
-
return v ===
|
|
2099
|
+
return v === L.MIUI;
|
|
2100
2100
|
}, en = function(_) {
|
|
2101
2101
|
var v = _.name;
|
|
2102
|
-
return v ===
|
|
2102
|
+
return v === L.SamsungBrowser;
|
|
2103
2103
|
}, tn = function(_) {
|
|
2104
2104
|
var v = _.version;
|
|
2105
2105
|
return $(v);
|
|
@@ -2124,11 +2124,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2124
2124
|
var _ = Q();
|
|
2125
2125
|
return _ && (/iPad|iPhone|iPod/.test(_.platform) || _.platform === "MacIntel" && _.maxTouchPoints > 1) && !window.MSStream;
|
|
2126
2126
|
}, rt = function() {
|
|
2127
|
-
return
|
|
2127
|
+
return Be("iPad");
|
|
2128
2128
|
}, cn = function() {
|
|
2129
|
-
return
|
|
2129
|
+
return Be("iPhone");
|
|
2130
2130
|
}, dn = function() {
|
|
2131
|
-
return
|
|
2131
|
+
return Be("iPod");
|
|
2132
2132
|
}, un = function(_) {
|
|
2133
2133
|
return $(_);
|
|
2134
2134
|
};
|
|
@@ -2140,7 +2140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2140
2140
|
isWearable: y(v),
|
|
2141
2141
|
isEmbedded: A(v),
|
|
2142
2142
|
isMobileSafari: ze(x) || rt(),
|
|
2143
|
-
isChromium:
|
|
2143
|
+
isChromium: He(x),
|
|
2144
2144
|
isMobile: Wt(v) || rt(),
|
|
2145
2145
|
isMobileOnly: pt(v),
|
|
2146
2146
|
isTablet: Ct(v) || rt(),
|
|
@@ -2180,7 +2180,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2180
2180
|
isSamsungBrowser: en(x)
|
|
2181
2181
|
};
|
|
2182
2182
|
}
|
|
2183
|
-
var hn = _t(a), pn = T(a), _n = y(a), ii = A(a), oi = ze(o) || rt(), si =
|
|
2183
|
+
var hn = _t(a), pn = T(a), _n = y(a), ii = A(a), oi = ze(o) || rt(), si = He(o), fr = Wt(a) || rt(), mn = pt(a), gn = Ct(a) || rt(), wn = tt(a), ai = tt(a), vn = W(d), yn = ge(d), bn = Pe(d) || rt(), li = j(o), ci = me(o), di = q(o), ui = jt(o), Cn = Jt(o), fi = J(d), hi = oe(d), pi = tn(o), _i = rn(o), mi = nn(o), gi = V(a), wi = M(a), vi = on(l), yi = sn(l), bi = un(p), mt = xe(o) || zt(p), Ci = he(o), ie = P(a), at = ln(), hr = rt(), Sn = cn(), En = dn(), Tn = an(), dl = zt(p), ul = xe(o) && !zt(p), fl = ne(d), hl = G(d), pl = Qr(o), _l = en(o), ml = function(_) {
|
|
2184
2184
|
if (!_ || typeof _ != "string") {
|
|
2185
2185
|
console.error("No valid user agent string was provided");
|
|
2186
2186
|
return;
|
|
@@ -2315,7 +2315,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2315
2315
|
var _ = E || window.navigator.userAgent, v = Do(_), x = fn(v);
|
|
2316
2316
|
return [x, v];
|
|
2317
2317
|
}
|
|
2318
|
-
return B.AndroidView = gl, B.BrowserTypes =
|
|
2318
|
+
return B.AndroidView = gl, B.BrowserTypes = L, B.BrowserView = wl, B.ConsoleView = Ol, B.CustomView = xl, B.IEView = vl, B.IOSView = yl, B.MobileOnlyView = El, B.MobileView = bl, B.OsTypes = Y, B.SmartTVView = Tl, B.TabletView = Cl, B.WearableView = Il, B.WinPhoneView = Sl, B.browserName = mi, B.browserVersion = _i, B.deviceDetect = bt, B.deviceType = ie, B.engineName = vi, B.engineVersion = yi, B.fullBrowserVersion = pi, B.getSelectorsByUserAgent = ml, B.getUA = bi, B.isAndroid = vn, B.isBrowser = wn, B.isChrome = li, B.isChromium = si, B.isConsole = pn, B.isDesktop = ai, B.isEdge = mt, B.isEdgeChromium = dl, B.isElectron = Tn, B.isEmbedded = ii, B.isFirefox = ci, B.isIE = Cn, B.isIOS = bn, B.isIOS13 = at, B.isIPad13 = hr, B.isIPhone13 = Sn, B.isIPod13 = En, B.isLegacyEdge = ul, B.isMIUI = pl, B.isMacOs = hl, B.isMobile = fr, B.isMobileOnly = mn, B.isMobileSafari = oi, B.isOpera = ui, B.isSafari = di, B.isSamsungBrowser = _l, B.isSmartTV = hn, B.isTablet = gn, B.isWearable = _n, B.isWinPhone = yn, B.isWindows = fl, B.isYandex = Ci, B.mobileModel = wi, B.mobileVendor = gi, B.osName = hi, B.osVersion = fi, B.parseUserAgent = c, B.setUserAgent = re, B.useDeviceData = Do, B.useDeviceSelectors = kl, B.useMobileOrientation = Rl, B.withOrientationChange = Al, B;
|
|
2319
2319
|
}
|
|
2320
2320
|
var Je = Kc();
|
|
2321
2321
|
const Gc = (t, e) => bo(t, e), bo = (t, e) => {
|
|
@@ -2582,7 +2582,7 @@ const Ss = () => {
|
|
|
2582
2582
|
osVersion: `${Je.osVersion}`,
|
|
2583
2583
|
hostAppId: Ss(),
|
|
2584
2584
|
host: Ss(),
|
|
2585
|
-
sdkVersion: "3.2.
|
|
2585
|
+
sdkVersion: "3.2.260-nightly".trim(),
|
|
2586
2586
|
name: navigator.userAgent,
|
|
2587
2587
|
deviceModel: `${Je.osName}/${Je.osVersion} ${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
2588
2588
|
hostAppVersion: `${Je.browserName}/${Je.fullBrowserVersion}`,
|
|
@@ -2633,6 +2633,7 @@ const Es = {
|
|
|
2633
2633
|
serviceToken: void 0,
|
|
2634
2634
|
startConfig: {},
|
|
2635
2635
|
locale: "",
|
|
2636
|
+
trackLocation: !1,
|
|
2636
2637
|
listener: () => {
|
|
2637
2638
|
}
|
|
2638
2639
|
}, md = (t, e) => X(O({}, Es), {
|
|
@@ -2693,6 +2694,9 @@ const Es = {
|
|
|
2693
2694
|
},
|
|
2694
2695
|
setLocale: (r) => {
|
|
2695
2696
|
t(() => ({ locale: r }));
|
|
2697
|
+
},
|
|
2698
|
+
setTrackLocation: (r) => {
|
|
2699
|
+
t(() => ({ trackLocation: r }));
|
|
2696
2700
|
}
|
|
2697
2701
|
});
|
|
2698
2702
|
class Ce {
|
|
@@ -2790,7 +2794,7 @@ const xt = class xt extends Ce {
|
|
|
2790
2794
|
underlyingError: n,
|
|
2791
2795
|
underlyingBaseError: i
|
|
2792
2796
|
}) {
|
|
2793
|
-
const o = Ce.getErrorKey(e,
|
|
2797
|
+
const o = Ce.getErrorKey(e, Ln);
|
|
2794
2798
|
super({
|
|
2795
2799
|
errorCode: e,
|
|
2796
2800
|
errorCodeKey: o,
|
|
@@ -2851,7 +2855,7 @@ const Rt = class Rt extends Ce {
|
|
|
2851
2855
|
}
|
|
2852
2856
|
};
|
|
2853
2857
|
Rt.MODULE = vt, Rt.ERROR_ENUM_NAME = "ConfigureError", Rt.SHORT_CODE = "CFG";
|
|
2854
|
-
let
|
|
2858
|
+
let Ve = Rt;
|
|
2855
2859
|
const kt = class kt extends Ce {
|
|
2856
2860
|
constructor({
|
|
2857
2861
|
errorCode: e,
|
|
@@ -2897,7 +2901,7 @@ const Nt = class Nt extends Ce {
|
|
|
2897
2901
|
}
|
|
2898
2902
|
};
|
|
2899
2903
|
Nt.MODULE = vt, Nt.ERROR_ENUM_NAME = "ConnectionError", Nt.SHORT_CODE = "CO";
|
|
2900
|
-
let
|
|
2904
|
+
let Lr = Nt;
|
|
2901
2905
|
const Dt = class Dt extends Ce {
|
|
2902
2906
|
constructor({
|
|
2903
2907
|
errorCode: e,
|
|
@@ -2920,7 +2924,7 @@ const Dt = class Dt extends Ce {
|
|
|
2920
2924
|
}
|
|
2921
2925
|
};
|
|
2922
2926
|
Dt.MODULE = vt, Dt.ERROR_ENUM_NAME = "SessionError", Dt.SHORT_CODE = "SE";
|
|
2923
|
-
let
|
|
2927
|
+
let Ur = Dt;
|
|
2924
2928
|
const Mt = class Mt extends Ce {
|
|
2925
2929
|
constructor({
|
|
2926
2930
|
errorCode: e,
|
|
@@ -2951,7 +2955,7 @@ const Pt = class Pt extends Ce {
|
|
|
2951
2955
|
underlyingError: n,
|
|
2952
2956
|
underlyingBaseError: i
|
|
2953
2957
|
}) {
|
|
2954
|
-
const o = Ce.getErrorKey(e,
|
|
2958
|
+
const o = Ce.getErrorKey(e, Un);
|
|
2955
2959
|
super({
|
|
2956
2960
|
errorCode: e,
|
|
2957
2961
|
errorCodeKey: o,
|
|
@@ -3364,7 +3368,7 @@ const Is = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
|
3364
3368
|
fill: e || "rgba(0,0,0,0.6)",
|
|
3365
3369
|
children: /* @__PURE__ */ u("path", { d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })
|
|
3366
3370
|
}
|
|
3367
|
-
),
|
|
3371
|
+
), Ld = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
3368
3372
|
"svg",
|
|
3369
3373
|
{
|
|
3370
3374
|
width: t ? t * 3 : 39,
|
|
@@ -3412,7 +3416,7 @@ const Is = ({ size: t, color: e }) => /* @__PURE__ */ u(
|
|
|
3412
3416
|
]
|
|
3413
3417
|
}
|
|
3414
3418
|
);
|
|
3415
|
-
function
|
|
3419
|
+
function Ud({ size: t, color: e }) {
|
|
3416
3420
|
return /* @__PURE__ */ u("svg", { width: t || 86, height: t || 86, viewBox: "0 0 86 86", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
3417
3421
|
/* @__PURE__ */ u(
|
|
3418
3422
|
"ellipse",
|
|
@@ -3606,7 +3610,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3606
3610
|
GALLERY_ICON: "gallery",
|
|
3607
3611
|
CAMERA_ICON: "camera"
|
|
3608
3612
|
}, Yi = {
|
|
3609
|
-
[ye.WARNING]:
|
|
3613
|
+
[ye.WARNING]: Ud,
|
|
3610
3614
|
[ye.SPINNER]: Ga,
|
|
3611
3615
|
[ye.ERROR]: Id,
|
|
3612
3616
|
[ye.AGE]: xd,
|
|
@@ -3619,7 +3623,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3619
3623
|
[ye.TO_MOBILE]: Pd,
|
|
3620
3624
|
[ye.UNDERAGE]: Fd,
|
|
3621
3625
|
[ye.CROSS]: Is,
|
|
3622
|
-
[ye.REGULA_LOGO]:
|
|
3626
|
+
[ye.REGULA_LOGO]: Ld,
|
|
3623
3627
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3624
3628
|
// @ts-ignore
|
|
3625
3629
|
[ye.DEFAULT]: Zd,
|
|
@@ -3637,7 +3641,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3637
3641
|
}, Yd = ({ type: t, size: e, color: r }) => {
|
|
3638
3642
|
const n = Yi[t] || Yi[ye.DEFAULT];
|
|
3639
3643
|
return /* @__PURE__ */ u(n, { size: e, color: r });
|
|
3640
|
-
},
|
|
3644
|
+
}, $e = ({
|
|
3641
3645
|
imageId: t,
|
|
3642
3646
|
imageURL: e,
|
|
3643
3647
|
base64: r,
|
|
@@ -3713,7 +3717,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3713
3717
|
height: "100%",
|
|
3714
3718
|
width: "100%"
|
|
3715
3719
|
},
|
|
3716
|
-
children: /* @__PURE__ */ u("a", { href: "", children: /* @__PURE__ */ u(
|
|
3720
|
+
children: /* @__PURE__ */ u("a", { href: "", children: /* @__PURE__ */ u($e, O({}, t)) })
|
|
3717
3721
|
}
|
|
3718
3722
|
), Xd = {
|
|
3719
3723
|
display: "flex",
|
|
@@ -3762,7 +3766,7 @@ const $d = ({ size: t = 100, color: e = "#5DA600" }) => /* @__PURE__ */ u("svg",
|
|
|
3762
3766
|
width: "24px",
|
|
3763
3767
|
height: "24px"
|
|
3764
3768
|
},
|
|
3765
|
-
children: /* @__PURE__ */ u(
|
|
3769
|
+
children: /* @__PURE__ */ u($e, O({}, r))
|
|
3766
3770
|
}
|
|
3767
3771
|
),
|
|
3768
3772
|
n && /* @__PURE__ */ u("div", { style: { padding: "0 5px" }, children: /* @__PURE__ */ u(Oe, O({}, n)) })
|
|
@@ -3878,7 +3882,7 @@ const Oe = ({
|
|
|
3878
3882
|
onMouseEnter: () => c(!0),
|
|
3879
3883
|
onMouseLeave: () => c(!1),
|
|
3880
3884
|
children: [
|
|
3881
|
-
e && /* @__PURE__ */ u(
|
|
3885
|
+
e && /* @__PURE__ */ u($e, O({}, e)),
|
|
3882
3886
|
t && /* @__PURE__ */ u(
|
|
3883
3887
|
"div",
|
|
3884
3888
|
{
|
|
@@ -4022,7 +4026,7 @@ const Oe = ({
|
|
|
4022
4026
|
flexDirection: "column"
|
|
4023
4027
|
},
|
|
4024
4028
|
children: [
|
|
4025
|
-
r && /* @__PURE__ */ u("div", { style: bd, children: /* @__PURE__ */ u(
|
|
4029
|
+
r && /* @__PURE__ */ u("div", { style: bd, children: /* @__PURE__ */ u($e, O({}, r)) }),
|
|
4026
4030
|
(n == null ? void 0 : n.text) && /* @__PURE__ */ u(
|
|
4027
4031
|
"div",
|
|
4028
4032
|
{
|
|
@@ -4090,7 +4094,7 @@ const Oe = ({
|
|
|
4090
4094
|
justifyContent: n ? "flex-start" : "center"
|
|
4091
4095
|
}),
|
|
4092
4096
|
children: [
|
|
4093
|
-
n && /* @__PURE__ */ u("div", { style: iu, children: /* @__PURE__ */ u(
|
|
4097
|
+
n && /* @__PURE__ */ u("div", { style: iu, children: /* @__PURE__ */ u($e, O({}, n)) }),
|
|
4094
4098
|
t && /* @__PURE__ */ u("div", { style: { marginBottom: 20, lineHeight: "39.2px" }, children: /* @__PURE__ */ u(Oe, O({}, t)) }),
|
|
4095
4099
|
i && /* @__PURE__ */ u("div", { style: { lineHeight: "28px", fontWeight: "400" }, children: /* @__PURE__ */ u(ri, O({}, i)) })
|
|
4096
4100
|
]
|
|
@@ -4150,7 +4154,7 @@ const Oe = ({
|
|
|
4150
4154
|
]
|
|
4151
4155
|
}
|
|
4152
4156
|
),
|
|
4153
|
-
/* @__PURE__ */ u("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ u(
|
|
4157
|
+
/* @__PURE__ */ u("div", { style: { aspectRatio: "1 / 1", width: 120, height: 120, flex: "0 0 120px" }, children: /* @__PURE__ */ u($e, O({}, r)) })
|
|
4154
4158
|
]
|
|
4155
4159
|
}
|
|
4156
4160
|
), cu = {
|
|
@@ -4218,7 +4222,7 @@ function De(t) {
|
|
|
4218
4222
|
return t;
|
|
4219
4223
|
return e;
|
|
4220
4224
|
}
|
|
4221
|
-
var ni = (t) => /^\w*$/.test(t), Ie = (t) => t === void 0, Oo = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Io = (t) => Oo(t.replace(/["|']|\]/g, "").split(/\.|\[/)),
|
|
4225
|
+
var ni = (t) => /^\w*$/.test(t), Ie = (t) => t === void 0, Oo = (t) => Array.isArray(t) ? t.filter(Boolean) : [], Io = (t) => Oo(t.replace(/["|']|\]/g, "").split(/\.|\[/)), U = (t, e, r) => {
|
|
4222
4226
|
if (!e || !Ne(t))
|
|
4223
4227
|
return r;
|
|
4224
4228
|
const n = (ni(e) ? [e] : Io(e)).reduce((i, o) => qe(i) ? i : i[o], t);
|
|
@@ -4295,8 +4299,8 @@ function pu(t) {
|
|
|
4295
4299
|
l.current.isValid && r._setValid(!0);
|
|
4296
4300
|
}, [r]), ue.useMemo(() => Qa(s, r, l.current, !1), [s, r]);
|
|
4297
4301
|
}
|
|
4298
|
-
var et = (t) => typeof t == "string", el = (t, e, r, n, i) => et(t) ? (n && e.watch.add(t),
|
|
4299
|
-
function
|
|
4302
|
+
var et = (t) => typeof t == "string", el = (t, e, r, n, i) => et(t) ? (n && e.watch.add(t), U(r, t, i)) : Array.isArray(t) ? t.map((o) => (n && e.watch.add(o), U(r, o))) : (n && (e.watchAll = !0), r), Ji = (t) => qe(t) || !Za(t);
|
|
4303
|
+
function Ut(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
4300
4304
|
if (Ji(t) || Ji(e))
|
|
4301
4305
|
return t === e;
|
|
4302
4306
|
if (sr(t) && sr(e))
|
|
@@ -4313,7 +4317,7 @@ function Lt(t, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
4313
4317
|
return !1;
|
|
4314
4318
|
if (o !== "ref") {
|
|
4315
4319
|
const a = e[o];
|
|
4316
|
-
if (sr(s) && sr(a) || Ne(s) && Ne(a) || Array.isArray(s) && Array.isArray(a) ? !
|
|
4320
|
+
if (sr(s) && sr(a) || Ne(s) && Ne(a) || Array.isArray(s) && Array.isArray(a) ? !Ut(s, a, r) : s !== a)
|
|
4317
4321
|
return !1;
|
|
4318
4322
|
}
|
|
4319
4323
|
}
|
|
@@ -4334,7 +4338,7 @@ function _u(t) {
|
|
|
4334
4338
|
const f = el(n, r._names, w.values || r._formValues, !1, l.current);
|
|
4335
4339
|
if (d.current) {
|
|
4336
4340
|
const m = d.current(f);
|
|
4337
|
-
|
|
4341
|
+
Ut(m, p.current) || (g(m), p.current = m);
|
|
4338
4342
|
} else
|
|
4339
4343
|
g(f);
|
|
4340
4344
|
}
|
|
@@ -4342,7 +4346,7 @@ function _u(t) {
|
|
|
4342
4346
|
}), [r, o, n, s]), ue.useEffect(() => r._removeUnmounted()), c;
|
|
4343
4347
|
}
|
|
4344
4348
|
function mu(t) {
|
|
4345
|
-
const e = xo(), { name: r, disabled: n, control: i = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ja(i._names.array, r), l = ue.useMemo(() =>
|
|
4349
|
+
const e = xo(), { name: r, disabled: n, control: i = e.control, shouldUnregister: o, defaultValue: s } = t, a = Ja(i._names.array, r), l = ue.useMemo(() => U(i._formValues, r, U(i._defaultValues, r, s)), [i, r, s]), d = _u({
|
|
4346
4350
|
control: i,
|
|
4347
4351
|
name: r,
|
|
4348
4352
|
defaultValue: l,
|
|
@@ -4358,23 +4362,23 @@ function mu(t) {
|
|
|
4358
4362
|
const w = ue.useMemo(() => Object.defineProperties({}, {
|
|
4359
4363
|
invalid: {
|
|
4360
4364
|
enumerable: !0,
|
|
4361
|
-
get: () => !!
|
|
4365
|
+
get: () => !!U(p.errors, r)
|
|
4362
4366
|
},
|
|
4363
4367
|
isDirty: {
|
|
4364
4368
|
enumerable: !0,
|
|
4365
|
-
get: () => !!
|
|
4369
|
+
get: () => !!U(p.dirtyFields, r)
|
|
4366
4370
|
},
|
|
4367
4371
|
isTouched: {
|
|
4368
4372
|
enumerable: !0,
|
|
4369
|
-
get: () => !!
|
|
4373
|
+
get: () => !!U(p.touchedFields, r)
|
|
4370
4374
|
},
|
|
4371
4375
|
isValidating: {
|
|
4372
4376
|
enumerable: !0,
|
|
4373
|
-
get: () => !!
|
|
4377
|
+
get: () => !!U(p.validatingFields, r)
|
|
4374
4378
|
},
|
|
4375
4379
|
error: {
|
|
4376
4380
|
enumerable: !0,
|
|
4377
|
-
get: () =>
|
|
4381
|
+
get: () => U(p.errors, r)
|
|
4378
4382
|
}
|
|
4379
4383
|
}), [p, r]), f = ue.useCallback((b) => g.current.onChange({
|
|
4380
4384
|
target: {
|
|
@@ -4384,12 +4388,12 @@ function mu(t) {
|
|
|
4384
4388
|
type: Zn.CHANGE
|
|
4385
4389
|
}), [r]), m = ue.useCallback(() => g.current.onBlur({
|
|
4386
4390
|
target: {
|
|
4387
|
-
value:
|
|
4391
|
+
value: U(i._formValues, r),
|
|
4388
4392
|
name: r
|
|
4389
4393
|
},
|
|
4390
4394
|
type: Zn.BLUR
|
|
4391
4395
|
}), [r, i._formValues]), S = ue.useCallback((b) => {
|
|
4392
|
-
const I =
|
|
4396
|
+
const I = U(i._fields, r);
|
|
4393
4397
|
I && b && (I._f.ref = {
|
|
4394
4398
|
focus: () => b.focus && b.focus(),
|
|
4395
4399
|
select: () => b.select && b.select(),
|
|
@@ -4408,12 +4412,12 @@ function mu(t) {
|
|
|
4408
4412
|
const b = i._options.shouldUnregister || o, I = c.current;
|
|
4409
4413
|
I && I !== r && !a && i.unregister(I), i.register(r, O(O({}, h.current.rules), Qe(h.current.disabled) ? { disabled: h.current.disabled } : {}));
|
|
4410
4414
|
const D = (N, R) => {
|
|
4411
|
-
const fe =
|
|
4415
|
+
const fe = U(i._fields, N);
|
|
4412
4416
|
fe && fe._f && (fe._f.mount = R);
|
|
4413
4417
|
};
|
|
4414
4418
|
if (D(r, !0), b) {
|
|
4415
|
-
const N = De(
|
|
4416
|
-
Ee(i._defaultValues, r, N), Ie(
|
|
4419
|
+
const N = De(U(i._options.defaultValues, r, h.current.defaultValue));
|
|
4420
|
+
Ee(i._defaultValues, r, N), Ie(U(i._formValues, r)) && Ee(i._formValues, r, N);
|
|
4417
4421
|
}
|
|
4418
4422
|
return !a && i.register(r), c.current = r, () => {
|
|
4419
4423
|
(a ? b && !i._state.action : b) ? i.unregister(r) : D(r, !1);
|
|
@@ -4506,7 +4510,7 @@ function Xi(t, e = {}) {
|
|
|
4506
4510
|
function gr(t, e, r) {
|
|
4507
4511
|
r || (r = Xi(e));
|
|
4508
4512
|
for (const n in t)
|
|
4509
|
-
il(t[n]) ? Ie(e) || Ji(r[n]) ? r[n] = Xi(t[n], Array.isArray(t[n]) ? [] : {}) : gr(t[n], qe(e) ? {} : e[n], r[n]) : r[n] = !
|
|
4513
|
+
il(t[n]) ? Ie(e) || Ji(r[n]) ? r[n] = Xi(t[n], Array.isArray(t[n]) ? [] : {}) : gr(t[n], qe(e) ? {} : e[n], r[n]) : r[n] = !Ut(t[n], e[n]);
|
|
4510
4514
|
return r;
|
|
4511
4515
|
}
|
|
4512
4516
|
const Rs = {
|
|
@@ -4541,7 +4545,7 @@ function Ds(t) {
|
|
|
4541
4545
|
var Cu = (t, e, r, n) => {
|
|
4542
4546
|
const i = {};
|
|
4543
4547
|
for (const o of t) {
|
|
4544
|
-
const s =
|
|
4548
|
+
const s = U(e, o);
|
|
4545
4549
|
s && Ee(i, o, s._f);
|
|
4546
4550
|
}
|
|
4547
4551
|
return {
|
|
@@ -4561,7 +4565,7 @@ const Ps = "AsyncFunction";
|
|
|
4561
4565
|
var Su = (t) => !!t && !!t.validate && !!(ft(t.validate) && t.validate.constructor.name === Ps || Ne(t.validate) && Object.values(t.validate).find((e) => e.constructor.name === Ps)), Eu = (t) => t.mount && (t.required || t.min || t.max || t.maxLength || t.minLength || t.pattern || t.validate), Fs = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length))));
|
|
4562
4566
|
const $r = (t, e, r, n) => {
|
|
4563
4567
|
for (const o of r || Object.keys(t)) {
|
|
4564
|
-
const s =
|
|
4568
|
+
const s = U(t, o);
|
|
4565
4569
|
if (s) {
|
|
4566
4570
|
const i = s, { _f: a } = i, l = Xt(i, ["_f"]);
|
|
4567
4571
|
if (a) {
|
|
@@ -4576,8 +4580,8 @@ const $r = (t, e, r, n) => {
|
|
|
4576
4580
|
}
|
|
4577
4581
|
}
|
|
4578
4582
|
};
|
|
4579
|
-
function
|
|
4580
|
-
const n =
|
|
4583
|
+
function Ls(t, e, r) {
|
|
4584
|
+
const n = U(t, r);
|
|
4581
4585
|
if (n || ni(r))
|
|
4582
4586
|
return {
|
|
4583
4587
|
error: n,
|
|
@@ -4585,7 +4589,7 @@ function Us(t, e, r) {
|
|
|
4585
4589
|
};
|
|
4586
4590
|
const i = r.split(".");
|
|
4587
4591
|
for (; i.length; ) {
|
|
4588
|
-
const o = i.join("."), s =
|
|
4592
|
+
const o = i.join("."), s = U(e, o), a = U(t, o);
|
|
4589
4593
|
if (s && !Array.isArray(s) && r !== o)
|
|
4590
4594
|
return { name: r };
|
|
4591
4595
|
if (a && a.type)
|
|
@@ -4608,11 +4612,11 @@ var Tu = (t, e, r, n) => {
|
|
|
4608
4612
|
r(t);
|
|
4609
4613
|
const s = t, { name: i } = s, o = Xt(s, ["name"]);
|
|
4610
4614
|
return Ye(o) || Object.keys(o).length >= Object.keys(e).length || Object.keys(o).find((a) => e[a] === (!n || ut.all));
|
|
4611
|
-
}, Ou = (t, e, r) => !t || !e || t === e || Vr(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Iu = (t, e, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(e || t) : (r ? n.isOnBlur : i.isOnBlur) ? !t : (r ? n.isOnChange : i.isOnChange) ? t : !0, xu = (t, e) => !Oo(
|
|
4612
|
-
const n = Vr(
|
|
4615
|
+
}, Ou = (t, e, r) => !t || !e || t === e || Vr(t).some((n) => n && (r ? n === e : n.startsWith(e) || e.startsWith(n))), Iu = (t, e, r, n, i) => i.isOnAll ? !1 : !r && i.isOnTouch ? !(e || t) : (r ? n.isOnBlur : i.isOnBlur) ? !t : (r ? n.isOnChange : i.isOnChange) ? t : !0, xu = (t, e) => !Oo(U(t, e)).length && Re(t, e), Au = (t, e, r) => {
|
|
4616
|
+
const n = Vr(U(t, r));
|
|
4613
4617
|
return Ee(n, "root", e[r]), Ee(t, r, n), t;
|
|
4614
4618
|
};
|
|
4615
|
-
function
|
|
4619
|
+
function Us(t, e, r = "validate") {
|
|
4616
4620
|
if (et(t) || Array.isArray(t) && t.every(et) || Qe(t) && !t)
|
|
4617
4621
|
return {
|
|
4618
4622
|
type: r,
|
|
@@ -4624,7 +4628,7 @@ var _r = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4624
4628
|
value: t,
|
|
4625
4629
|
message: ""
|
|
4626
4630
|
}, Vs = (t, e, r, n, i, o) => F(null, null, function* () {
|
|
4627
|
-
const { ref: s, refs: a, required: l, maxLength: d, minLength: p, min: h, max: c, pattern: g, validate: w, name: f, valueAsNumber: m, mount: S } = t._f, C =
|
|
4631
|
+
const { ref: s, refs: a, required: l, maxLength: d, minLength: p, min: h, max: c, pattern: g, validate: w, name: f, valueAsNumber: m, mount: S } = t._f, C = U(r, f);
|
|
4628
4632
|
if (!S || e.has(f))
|
|
4629
4633
|
return {};
|
|
4630
4634
|
const b = a ? a[0] : s, I = (H) => {
|
|
@@ -4653,7 +4657,7 @@ var _r = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4653
4657
|
const we = s.valueAsNumber || C && +C;
|
|
4654
4658
|
qe(de.value) || (H = we > de.value), qe(le.value) || (K = we < le.value);
|
|
4655
4659
|
} else {
|
|
4656
|
-
const we = s.valueAsDate || new Date(C), ve = (
|
|
4660
|
+
const we = s.valueAsDate || new Date(C), ve = (L) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + L), ee = s.type == "time", z = s.type == "week";
|
|
4657
4661
|
et(de.value) && C && (H = ee ? ve(C) > ve(de.value) : z ? C > de.value : we > new Date(de.value)), et(le.value) && C && (K = ee ? ve(C) < ve(le.value) : z ? C < le.value : we < new Date(le.value));
|
|
4658
4662
|
}
|
|
4659
4663
|
if ((H || K) && (Z(!!H, de.message, le.message, St.max, St.min), !n))
|
|
@@ -4675,7 +4679,7 @@ var _r = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4675
4679
|
}
|
|
4676
4680
|
if (w) {
|
|
4677
4681
|
if (ft(w)) {
|
|
4678
|
-
const H = yield w(C, r), K =
|
|
4682
|
+
const H = yield w(C, r), K = Us(H, b);
|
|
4679
4683
|
if (K && (D[f] = O(O({}, K), ae(St.validate, K.message)), !n))
|
|
4680
4684
|
return I(K.message), D;
|
|
4681
4685
|
} else if (Ne(w)) {
|
|
@@ -4683,7 +4687,7 @@ var _r = (t) => Ne(t) && !Jn(t) ? t : {
|
|
|
4683
4687
|
for (const K in w) {
|
|
4684
4688
|
if (!Ye(H) && !n)
|
|
4685
4689
|
break;
|
|
4686
|
-
const de =
|
|
4690
|
+
const de = Us(yield w[K](C, r), b, K);
|
|
4687
4691
|
de && (H = O(O({}, de), ae(K, de.message)), I(de.message), n && (D[f] = H));
|
|
4688
4692
|
}
|
|
4689
4693
|
if (!Ye(H) && (D[f] = O({
|
|
@@ -4757,16 +4761,16 @@ function ku(t = {}) {
|
|
|
4757
4761
|
}));
|
|
4758
4762
|
}, S = (y, T = [], A, V, M = !0, P = !0) => {
|
|
4759
4763
|
if (V && A && !e.disabled) {
|
|
4760
|
-
if (s.action = !0, P && Array.isArray(
|
|
4761
|
-
const W = A(
|
|
4764
|
+
if (s.action = !0, P && Array.isArray(U(n, y))) {
|
|
4765
|
+
const W = A(U(n, y), V.argA, V.argB);
|
|
4762
4766
|
M && Ee(n, y, W);
|
|
4763
4767
|
}
|
|
4764
|
-
if (P && Array.isArray(
|
|
4765
|
-
const W = A(
|
|
4768
|
+
if (P && Array.isArray(U(r.errors, y))) {
|
|
4769
|
+
const W = A(U(r.errors, y), V.argA, V.argB);
|
|
4766
4770
|
M && Ee(r.errors, y, W), xu(r.errors, y);
|
|
4767
4771
|
}
|
|
4768
|
-
if ((p.touchedFields || h.touchedFields) && P && Array.isArray(
|
|
4769
|
-
const W = A(
|
|
4772
|
+
if ((p.touchedFields || h.touchedFields) && P && Array.isArray(U(r.touchedFields, y))) {
|
|
4773
|
+
const W = A(U(r.touchedFields, y), V.argA, V.argB);
|
|
4770
4774
|
M && Ee(r.touchedFields, y, W);
|
|
4771
4775
|
}
|
|
4772
4776
|
(p.dirtyFields || h.dirtyFields) && (r.dirtyFields = gr(i, o)), c.state.next({
|
|
@@ -4788,9 +4792,9 @@ function ku(t = {}) {
|
|
|
4788
4792
|
isValid: !1
|
|
4789
4793
|
});
|
|
4790
4794
|
}, I = (y, T, A, V) => {
|
|
4791
|
-
const M =
|
|
4795
|
+
const M = U(n, y);
|
|
4792
4796
|
if (M) {
|
|
4793
|
-
const P =
|
|
4797
|
+
const P = U(o, y, Ie(A) ? U(i, y) : A);
|
|
4794
4798
|
Ie(P) || V && V.defaultChecked || T ? Ee(o, y, T ? P : Ds(M._f)) : de(y, P), s.mount && f();
|
|
4795
4799
|
}
|
|
4796
4800
|
}, D = (y, T, A, V, M) => {
|
|
@@ -4801,19 +4805,19 @@ function ku(t = {}) {
|
|
|
4801
4805
|
if (!e.disabled) {
|
|
4802
4806
|
if (!A || V) {
|
|
4803
4807
|
(p.isDirty || h.isDirty) && (W = r.isDirty, r.isDirty = ne.isDirty = Z(), P = W !== ne.isDirty);
|
|
4804
|
-
const G =
|
|
4805
|
-
W = !!
|
|
4808
|
+
const G = Ut(U(i, y), T);
|
|
4809
|
+
W = !!U(r.dirtyFields, y), G ? Re(r.dirtyFields, y) : Ee(r.dirtyFields, y, !0), ne.dirtyFields = r.dirtyFields, P = P || (p.dirtyFields || h.dirtyFields) && W !== !G;
|
|
4806
4810
|
}
|
|
4807
4811
|
if (A) {
|
|
4808
|
-
const G =
|
|
4812
|
+
const G = U(r.touchedFields, y);
|
|
4809
4813
|
G || (Ee(r.touchedFields, y, A), ne.touchedFields = r.touchedFields, P = P || (p.touchedFields || h.touchedFields) && G !== A);
|
|
4810
4814
|
}
|
|
4811
4815
|
P && M && c.state.next(ne);
|
|
4812
4816
|
}
|
|
4813
4817
|
return P ? ne : {};
|
|
4814
4818
|
}, N = (y, T, A, V) => {
|
|
4815
|
-
const M =
|
|
4816
|
-
if (e.delayError && A ? (l = w(() => C(y, A)), l(e.delayError)) : (clearTimeout(d), l = null, A ? Ee(r.errors, y, A) : Re(r.errors, y)), (A ? !
|
|
4819
|
+
const M = U(r.errors, y), P = (p.isValid || h.isValid) && Qe(T) && r.isValid !== T;
|
|
4820
|
+
if (e.delayError && A ? (l = w(() => C(y, A)), l(e.delayError)) : (clearTimeout(d), l = null, A ? Ee(r.errors, y, A) : Re(r.errors, y)), (A ? !Ut(M, A) : M) || !Ye(V) || P) {
|
|
4817
4821
|
const W = X(O(O({}, V), P && Qe(T) ? { isValid: T } : {}), {
|
|
4818
4822
|
errors: r.errors,
|
|
4819
4823
|
name: y
|
|
@@ -4828,7 +4832,7 @@ function ku(t = {}) {
|
|
|
4828
4832
|
const { errors: T } = yield R(y);
|
|
4829
4833
|
if (y)
|
|
4830
4834
|
for (const A of y) {
|
|
4831
|
-
const V =
|
|
4835
|
+
const V = U(T, A);
|
|
4832
4836
|
V ? Ee(r.errors, A, V) : Re(r.errors, A);
|
|
4833
4837
|
}
|
|
4834
4838
|
else
|
|
@@ -4847,7 +4851,7 @@ function ku(t = {}) {
|
|
|
4847
4851
|
const j = yield Vs(G, a.disabled, o, g, e.shouldUseNativeValidation && !T, J);
|
|
4848
4852
|
if (oe && p.validatingFields && m([ge.name]), j[ge.name] && (A.valid = !1, T))
|
|
4849
4853
|
break;
|
|
4850
|
-
!T && (
|
|
4854
|
+
!T && (U(j, ge.name) ? J ? Au(r.errors, j, ge.name) : Ee(r.errors, ge.name, j[ge.name]) : Re(r.errors, ge.name));
|
|
4851
4855
|
}
|
|
4852
4856
|
!Ye(Pe) && (yield _e(Pe, T, A));
|
|
4853
4857
|
}
|
|
@@ -4855,12 +4859,12 @@ function ku(t = {}) {
|
|
|
4855
4859
|
return A.valid;
|
|
4856
4860
|
}), ae = () => {
|
|
4857
4861
|
for (const y of a.unMount) {
|
|
4858
|
-
const T =
|
|
4859
|
-
T && (T._f.refs ? T._f.refs.every((A) => !Fi(A)) : !Fi(T._f.ref)) &&
|
|
4862
|
+
const T = U(n, y);
|
|
4863
|
+
T && (T._f.refs ? T._f.refs.every((A) => !Fi(A)) : !Fi(T._f.ref)) && Be(y);
|
|
4860
4864
|
}
|
|
4861
4865
|
a.unMount = /* @__PURE__ */ new Set();
|
|
4862
|
-
}, Z = (y, T) => !e.disabled && (y && T && Ee(o, y, T), !
|
|
4863
|
-
const V =
|
|
4866
|
+
}, Z = (y, T) => !e.disabled && (y && T && Ee(o, y, T), !Ut(L(), i)), H = (y, T, A) => el(y, a, O({}, s.mount ? o : Ie(T) ? i : et(y) ? { [y]: T } : T), A, T), K = (y) => Oo(U(s.mount ? o : i, y, e.shouldUnregister ? U(i, y, []) : [])), de = (y, T, A = {}) => {
|
|
4867
|
+
const V = U(n, y);
|
|
4864
4868
|
let M = T;
|
|
4865
4869
|
if (V) {
|
|
4866
4870
|
const P = V._f;
|
|
@@ -4876,11 +4880,11 @@ function ku(t = {}) {
|
|
|
4876
4880
|
for (const V in T) {
|
|
4877
4881
|
if (!T.hasOwnProperty(V))
|
|
4878
4882
|
return;
|
|
4879
|
-
const M = T[V], P = y + "." + V, W =
|
|
4883
|
+
const M = T[V], P = y + "." + V, W = U(n, P);
|
|
4880
4884
|
(a.array.has(y) || Ne(M) || W && !W._f) && !sr(M) ? le(P, M, A) : de(P, M, A);
|
|
4881
4885
|
}
|
|
4882
4886
|
}, we = (y, T, A = {}) => {
|
|
4883
|
-
const V =
|
|
4887
|
+
const V = U(n, y), M = a.array.has(y), P = De(T);
|
|
4884
4888
|
Ee(o, y, P), M ? (c.array.next({
|
|
4885
4889
|
name: y,
|
|
4886
4890
|
values: De(o)
|
|
@@ -4896,24 +4900,24 @@ function ku(t = {}) {
|
|
|
4896
4900
|
s.mount = !0;
|
|
4897
4901
|
const T = y.target;
|
|
4898
4902
|
let A = T.name, V = !0;
|
|
4899
|
-
const M =
|
|
4900
|
-
V = Number.isNaN(G) || sr(G) && isNaN(G.getTime()) ||
|
|
4903
|
+
const M = U(n, A), P = (G) => {
|
|
4904
|
+
V = Number.isNaN(G) || sr(G) && isNaN(G.getTime()) || Ut(G, U(o, A, G));
|
|
4901
4905
|
}, W = Ms(e.mode), ne = Ms(e.reValidateMode);
|
|
4902
4906
|
if (M) {
|
|
4903
4907
|
let G, ge;
|
|
4904
|
-
const Pe = T.type ? Ds(M._f) : Ya(y), J = y.type === Zn.BLUR || y.type === Zn.FOCUS_OUT, oe = !Eu(M._f) && !e.resolver && !
|
|
4908
|
+
const Pe = T.type ? Ds(M._f) : Ya(y), J = y.type === Zn.BLUR || y.type === Zn.FOCUS_OUT, oe = !Eu(M._f) && !e.resolver && !U(r.errors, A) && !M._f.deps || Iu(J, U(r.touchedFields, A), r.isSubmitted, ne, W), j = Fs(A, a, J);
|
|
4905
4909
|
Ee(o, A, Pe), J ? (!T || !T.readOnly) && (M._f.onBlur && M._f.onBlur(y), l && l(0)) : M._f.onChange && M._f.onChange(y);
|
|
4906
|
-
const me = D(A, Pe, J),
|
|
4910
|
+
const me = D(A, Pe, J), He = !Ye(me) || j;
|
|
4907
4911
|
if (!J && c.state.next({
|
|
4908
4912
|
name: A,
|
|
4909
4913
|
type: y.type,
|
|
4910
4914
|
values: De(o)
|
|
4911
4915
|
}), oe)
|
|
4912
|
-
return (p.isValid || h.isValid) && (e.mode === "onBlur" ? J && f() : J || f()),
|
|
4916
|
+
return (p.isValid || h.isValid) && (e.mode === "onBlur" ? J && f() : J || f()), He && c.state.next(O({ name: A }, j ? {} : me));
|
|
4913
4917
|
if (!J && j && c.state.next(O({}, r)), e.resolver) {
|
|
4914
4918
|
const { errors: xe } = yield R([A]);
|
|
4915
4919
|
if (P(Pe), V) {
|
|
4916
|
-
const he =
|
|
4920
|
+
const he = Ls(r.errors, n, A), q = Ls(xe, n, he.name || A);
|
|
4917
4921
|
G = q.error, A = q.name, ge = Ye(xe);
|
|
4918
4922
|
}
|
|
4919
4923
|
} else
|
|
@@ -4921,36 +4925,36 @@ function ku(t = {}) {
|
|
|
4921
4925
|
V && (M._f.deps && (!Array.isArray(M._f.deps) || M._f.deps.length > 0) && z(M._f.deps), N(A, ge, G, me));
|
|
4922
4926
|
}
|
|
4923
4927
|
}), ee = (y, T) => {
|
|
4924
|
-
if (
|
|
4928
|
+
if (U(r.errors, T) && y.focus)
|
|
4925
4929
|
return y.focus(), 1;
|
|
4926
4930
|
}, z = (A, ...V) => F(null, [A, ...V], function* (y, T = {}) {
|
|
4927
4931
|
let M, P;
|
|
4928
4932
|
const W = Vr(y);
|
|
4929
4933
|
if (e.resolver) {
|
|
4930
4934
|
const ne = yield fe(Ie(y) ? y : W);
|
|
4931
|
-
M = Ye(ne), P = y ? !W.some((G) =>
|
|
4935
|
+
M = Ye(ne), P = y ? !W.some((G) => U(ne, G)) : M;
|
|
4932
4936
|
} else y ? (P = (yield Promise.all(W.map((ne) => F(null, null, function* () {
|
|
4933
|
-
const G =
|
|
4937
|
+
const G = U(n, ne);
|
|
4934
4938
|
return yield _e(G && G._f ? { [ne]: G } : G);
|
|
4935
4939
|
})))).every(Boolean), !(!P && !r.isValid) && f()) : P = M = yield _e(n);
|
|
4936
4940
|
return c.state.next(X(O(O({}, !et(y) || (p.isValid || h.isValid) && M !== r.isValid ? {} : { name: y }), e.resolver || !y ? { isValid: M } : {}), {
|
|
4937
4941
|
errors: r.errors
|
|
4938
4942
|
})), T.shouldFocus && !P && $r(n, ee, y ? W : a.mount), P;
|
|
4939
|
-
}),
|
|
4943
|
+
}), L = (y, T) => {
|
|
4940
4944
|
let A = O({}, s.mount ? o : i);
|
|
4941
|
-
return T && (A = rl(T.dirtyFields ? r.dirtyFields : r.touchedFields, A)), Ie(y) ? A : et(y) ?
|
|
4945
|
+
return T && (A = rl(T.dirtyFields ? r.dirtyFields : r.touchedFields, A)), Ie(y) ? A : et(y) ? U(A, y) : y.map((V) => U(A, V));
|
|
4942
4946
|
}, Y = (y, T) => ({
|
|
4943
|
-
invalid: !!
|
|
4944
|
-
isDirty: !!
|
|
4945
|
-
error:
|
|
4946
|
-
isValidating: !!
|
|
4947
|
-
isTouched: !!
|
|
4947
|
+
invalid: !!U((T || r).errors, y),
|
|
4948
|
+
isDirty: !!U((T || r).dirtyFields, y),
|
|
4949
|
+
error: U((T || r).errors, y),
|
|
4950
|
+
isValidating: !!U(r.validatingFields, y),
|
|
4951
|
+
isTouched: !!U((T || r).touchedFields, y)
|
|
4948
4952
|
}), te = (y) => {
|
|
4949
4953
|
y && Vr(y).forEach((T) => Re(r.errors, T)), c.state.next({
|
|
4950
4954
|
errors: y ? r.errors : {}
|
|
4951
4955
|
});
|
|
4952
4956
|
}, Se = (y, T, A) => {
|
|
4953
|
-
const V = (
|
|
4957
|
+
const V = (U(n, y, { _f: {} })._f || {}).ref, ge = U(r.errors, y) || {}, { ref: P, message: W, type: ne } = ge, G = Xt(ge, ["ref", "message", "type"]);
|
|
4954
4958
|
Ee(r.errors, y, X(O(O({}, G), T), {
|
|
4955
4959
|
ref: V
|
|
4956
4960
|
})), c.state.next({
|
|
@@ -4970,7 +4974,7 @@ function ku(t = {}) {
|
|
|
4970
4974
|
}
|
|
4971
4975
|
}).unsubscribe, Q = (y) => (s.mount = !0, h = O(O({}, h), y.formState), $(X(O({}, y), {
|
|
4972
4976
|
formState: h
|
|
4973
|
-
}))),
|
|
4977
|
+
}))), Be = (y, T = {}) => {
|
|
4974
4978
|
for (const A of y ? Vr(y) : a.mount)
|
|
4975
4979
|
a.mount.delete(A), a.array.delete(A), T.keepValue || (Re(n, A), Re(o, A)), !T.keepError && Re(r.errors, A), !T.keepDirty && Re(r.dirtyFields, A), !T.keepTouched && Re(r.touchedFields, A), !T.keepIsValidating && Re(r.validatingFields, A), !e.shouldUnregister && !T.keepDefaultValue && Re(i, A);
|
|
4976
4980
|
c.state.next({
|
|
@@ -4979,7 +4983,7 @@ function ku(t = {}) {
|
|
|
4979
4983
|
}, je = ({ disabled: y, name: T }) => {
|
|
4980
4984
|
(Qe(y) && s.mount || y || a.disabled.has(T)) && (y ? a.disabled.add(T) : a.disabled.delete(T));
|
|
4981
4985
|
}, ot = (y, T = {}) => {
|
|
4982
|
-
let A =
|
|
4986
|
+
let A = U(n, y);
|
|
4983
4987
|
const V = Qe(T.disabled) || Qe(e.disabled);
|
|
4984
4988
|
return Ee(n, y, X(O({}, A || {}), {
|
|
4985
4989
|
_f: O(X(O({}, A && A._f ? A._f : { ref: { name: y } }), {
|
|
@@ -5002,7 +5006,7 @@ function ku(t = {}) {
|
|
|
5002
5006
|
onBlur: ve,
|
|
5003
5007
|
ref: (M) => {
|
|
5004
5008
|
if (M) {
|
|
5005
|
-
ot(y, T), A =
|
|
5009
|
+
ot(y, T), A = U(n, y);
|
|
5006
5010
|
const P = Ie(M.value) && M.querySelectorAll && M.querySelectorAll("input,select,textarea")[0] || M, W = wu(P), ne = A._f.refs || [];
|
|
5007
5011
|
if (W ? ne.find((G) => G === P) : P === A._f.ref)
|
|
5008
5012
|
return;
|
|
@@ -5011,18 +5015,18 @@ function ku(t = {}) {
|
|
|
5011
5015
|
refs: [
|
|
5012
5016
|
...ne.filter(Fi),
|
|
5013
5017
|
P,
|
|
5014
|
-
...Array.isArray(
|
|
5018
|
+
...Array.isArray(U(i, y)) ? [{}] : []
|
|
5015
5019
|
],
|
|
5016
5020
|
ref: { type: P.type, name: y }
|
|
5017
5021
|
} : { ref: P })
|
|
5018
5022
|
}), I(y, !1, void 0, P);
|
|
5019
5023
|
} else
|
|
5020
|
-
A =
|
|
5024
|
+
A = U(n, y, {}), A._f && (A._f.mount = !1), (e.shouldUnregister || T.shouldUnregister) && !(Ja(a.array, y) && s.action) && a.unMount.add(y);
|
|
5021
5025
|
}
|
|
5022
5026
|
});
|
|
5023
5027
|
}, Xe = () => e.shouldFocusError && $r(n, ee, a.mount), yt = (y) => {
|
|
5024
5028
|
Qe(y) && (c.state.next({ disabled: y }), $r(n, (T, A) => {
|
|
5025
|
-
const V =
|
|
5029
|
+
const V = U(n, A);
|
|
5026
5030
|
V && (T.disabled = V._f.disabled || y, Array.isArray(V._f.refs) && V._f.refs.forEach((M) => {
|
|
5027
5031
|
M.disabled = V._f.disabled || y;
|
|
5028
5032
|
}));
|
|
@@ -5061,7 +5065,7 @@ function ku(t = {}) {
|
|
|
5061
5065
|
}), V)
|
|
5062
5066
|
throw V;
|
|
5063
5067
|
}), Ht = (y, T = {}) => {
|
|
5064
|
-
|
|
5068
|
+
U(n, y) && (Ie(T.defaultValue) ? we(y, De(U(i, y))) : (we(y, T.defaultValue), Ee(i, y, De(T.defaultValue))), T.keepTouched || Re(r.touchedFields, y), T.keepDirty || (Re(r.dirtyFields, y), r.isDirty = T.defaultValue ? Z(y, De(U(i, y))) : Z()), T.keepError || (Re(r.errors, y), p.isValid && f()), c.state.next(O({}, r)));
|
|
5065
5069
|
}, bt = (y, T = {}) => {
|
|
5066
5070
|
const A = y ? De(y) : i, V = De(A), M = Ye(y), P = M ? i : V;
|
|
5067
5071
|
if (T.keepDefaultValues || (i = A), !T.keepValues) {
|
|
@@ -5071,11 +5075,11 @@ function ku(t = {}) {
|
|
|
5071
5075
|
...Object.keys(gr(i, o))
|
|
5072
5076
|
]);
|
|
5073
5077
|
for (const ne of Array.from(W))
|
|
5074
|
-
|
|
5078
|
+
U(r.dirtyFields, ne) ? Ee(P, ne, U(o, ne)) : we(ne, U(P, ne));
|
|
5075
5079
|
} else {
|
|
5076
5080
|
if (To && Ie(y))
|
|
5077
5081
|
for (const W of a.mount) {
|
|
5078
|
-
const ne =
|
|
5082
|
+
const ne = U(n, W);
|
|
5079
5083
|
if (ne && ne._f) {
|
|
5080
5084
|
const G = Array.isArray(ne._f.refs) ? ne._f.refs[0] : ne._f.ref;
|
|
5081
5085
|
if (Yn(G)) {
|
|
@@ -5089,7 +5093,7 @@ function ku(t = {}) {
|
|
|
5089
5093
|
}
|
|
5090
5094
|
if (T.keepFieldsRef)
|
|
5091
5095
|
for (const W of a.mount)
|
|
5092
|
-
we(W,
|
|
5096
|
+
we(W, U(P, W));
|
|
5093
5097
|
else
|
|
5094
5098
|
n = {};
|
|
5095
5099
|
}
|
|
@@ -5109,7 +5113,7 @@ function ku(t = {}) {
|
|
|
5109
5113
|
focus: ""
|
|
5110
5114
|
}, s.mount = !p.isValid || !!T.keepIsValid || !!T.keepDirtyValues, s.watch = !!e.shouldUnregister, c.state.next({
|
|
5111
5115
|
submitCount: T.keepSubmitCount ? r.submitCount : 0,
|
|
5112
|
-
isDirty: M ? !1 : T.keepDirty ? r.isDirty : !!(T.keepDefaultValues && !
|
|
5116
|
+
isDirty: M ? !1 : T.keepDirty ? r.isDirty : !!(T.keepDefaultValues && !Ut(y, i)),
|
|
5113
5117
|
isSubmitted: T.keepIsSubmitted ? r.isSubmitted : !1,
|
|
5114
5118
|
dirtyFields: M ? {} : T.keepDirtyValues ? T.keepDefaultValues && o ? gr(i, o) : r.dirtyFields : T.keepDefaultValues && y ? gr(i, y) : T.keepDirty ? r.dirtyFields : {},
|
|
5115
5119
|
touchedFields: T.keepTouched ? r.touchedFields : {},
|
|
@@ -5119,7 +5123,7 @@ function ku(t = {}) {
|
|
|
5119
5123
|
defaultValues: i
|
|
5120
5124
|
});
|
|
5121
5125
|
}, pt = (y, T) => bt(ft(y) ? y(o) : y, T), Ct = (y, T = {}) => {
|
|
5122
|
-
const A =
|
|
5126
|
+
const A = U(n, y), V = A && A._f;
|
|
5123
5127
|
if (V) {
|
|
5124
5128
|
const M = V.refs ? V.refs[0] : V.ref;
|
|
5125
5129
|
M.focus && (M.focus(), T.shouldSelect && ft(M.select) && M.select());
|
|
@@ -5129,7 +5133,7 @@ function ku(t = {}) {
|
|
|
5129
5133
|
}, tt = {
|
|
5130
5134
|
control: {
|
|
5131
5135
|
register: ot,
|
|
5132
|
-
unregister:
|
|
5136
|
+
unregister: Be,
|
|
5133
5137
|
getFieldState: Y,
|
|
5134
5138
|
handleSubmit: st,
|
|
5135
5139
|
setError: Se,
|
|
@@ -5190,11 +5194,11 @@ function ku(t = {}) {
|
|
|
5190
5194
|
handleSubmit: st,
|
|
5191
5195
|
watch: re,
|
|
5192
5196
|
setValue: we,
|
|
5193
|
-
getValues:
|
|
5197
|
+
getValues: L,
|
|
5194
5198
|
reset: pt,
|
|
5195
5199
|
resetField: Ht,
|
|
5196
5200
|
clearErrors: te,
|
|
5197
|
-
unregister:
|
|
5201
|
+
unregister: Be,
|
|
5198
5202
|
setError: Se,
|
|
5199
5203
|
setFocus: Ct,
|
|
5200
5204
|
getFieldState: Y
|
|
@@ -5258,7 +5262,7 @@ function Nu(t = {}) {
|
|
|
5258
5262
|
});
|
|
5259
5263
|
}
|
|
5260
5264
|
}, [o, n.isDirty]), ue.useEffect(() => {
|
|
5261
|
-
t.values && !
|
|
5265
|
+
t.values && !Ut(t.values, r.current) ? (o._reset(t.values, O({
|
|
5262
5266
|
keepFieldsRef: !0
|
|
5263
5267
|
}, o._options.resetOptions)), r.current = t.values, i((a) => O({}, a))) : o._resetDefaultValues();
|
|
5264
5268
|
}, [o, t.values]), ue.useEffect(() => {
|
|
@@ -5288,7 +5292,7 @@ const Tr = (t, e) => {
|
|
|
5288
5292
|
transition: ".2s",
|
|
5289
5293
|
flexShrink: 0
|
|
5290
5294
|
},
|
|
5291
|
-
children: e ? /* @__PURE__ */ u(
|
|
5295
|
+
children: e ? /* @__PURE__ */ u($e, O({}, e)) : /* @__PURE__ */ u($e, { imageId: "chevronDown" })
|
|
5292
5296
|
}
|
|
5293
5297
|
), Mu = ({
|
|
5294
5298
|
isChosen: t,
|
|
@@ -5332,7 +5336,7 @@ const Tr = (t, e) => {
|
|
|
5332
5336
|
display: "flex",
|
|
5333
5337
|
flexShrink: 0
|
|
5334
5338
|
},
|
|
5335
|
-
children: /* @__PURE__ */ u(
|
|
5339
|
+
children: /* @__PURE__ */ u($e, O({}, s))
|
|
5336
5340
|
}
|
|
5337
5341
|
)
|
|
5338
5342
|
]
|
|
@@ -5358,22 +5362,22 @@ const Tr = (t, e) => {
|
|
|
5358
5362
|
Zt(() => {
|
|
5359
5363
|
var re, $, Q;
|
|
5360
5364
|
if (!c) return;
|
|
5361
|
-
const
|
|
5362
|
-
if (!
|
|
5363
|
-
const Se =
|
|
5365
|
+
const L = (re = I.current) == null ? void 0 : re.getBoundingClientRect(), Y = ($ = D.current) == null ? void 0 : $.getBoundingClientRect(), te = (Q = d.current) == null ? void 0 : Q.getBoundingClientRect();
|
|
5366
|
+
if (!L || !Y || !te) return;
|
|
5367
|
+
const Se = L.bottom + Y.height < te.bottom;
|
|
5364
5368
|
S(Se ? "down" : "up");
|
|
5365
5369
|
}, [c]), nt(() => {
|
|
5366
5370
|
o(w);
|
|
5367
5371
|
}, [w]);
|
|
5368
|
-
const N = (
|
|
5372
|
+
const N = (L) => (Y) => {
|
|
5369
5373
|
var te;
|
|
5370
|
-
Y.stopPropagation(), (Y.type === "touchend" || ((te = Y.nativeEvent) == null ? void 0 : te.pointerType) === "touch") && b(null), a && g(!1), f((Se) => r ? Se.some(($) => $.value ===
|
|
5374
|
+
Y.stopPropagation(), (Y.type === "touchend" || ((te = Y.nativeEvent) == null ? void 0 : te.pointerType) === "touch") && b(null), a && g(!1), f((Se) => r ? Se.some(($) => $.value === L.value) ? Se.filter(($) => $.value !== L.value) : [...Se, L] : [L]);
|
|
5371
5375
|
}, R = () => {
|
|
5372
5376
|
l && l(), g(!1);
|
|
5373
|
-
}, fe = (
|
|
5374
|
-
Y.stopPropagation(), f((te) => te.filter((Se) => Se.value !==
|
|
5375
|
-
}, _e = (
|
|
5376
|
-
|
|
5377
|
+
}, fe = (L) => (Y) => {
|
|
5378
|
+
Y.stopPropagation(), f((te) => te.filter((Se) => Se.value !== L.value));
|
|
5379
|
+
}, _e = (L) => {
|
|
5380
|
+
L.stopPropagation(), f([]);
|
|
5377
5381
|
}, ae = (H = ce(p == null ? void 0 : p.borderColor)) != null ? H : "#D9D9D9", Z = (K = ce(p == null ? void 0 : p.highlightBorderColor)) != null ? K : "#7E57C5";
|
|
5378
5382
|
return /* @__PURE__ */ u("div", { "data-ui": "gui-custom-select", ref: I, children: /* @__PURE__ */ u(
|
|
5379
5383
|
"div",
|
|
@@ -5421,7 +5425,7 @@ const Tr = (t, e) => {
|
|
|
5421
5425
|
children: s
|
|
5422
5426
|
}
|
|
5423
5427
|
),
|
|
5424
|
-
w.map((
|
|
5428
|
+
w.map((L) => {
|
|
5425
5429
|
var Y, te, Se, re, $;
|
|
5426
5430
|
if (r) {
|
|
5427
5431
|
const Q = p == null ? void 0 : p.chip;
|
|
@@ -5442,7 +5446,7 @@ const Tr = (t, e) => {
|
|
|
5442
5446
|
Oe,
|
|
5443
5447
|
X(O({}, Q == null ? void 0 : Q.title), {
|
|
5444
5448
|
fontSize: (re = (Se = Q == null ? void 0 : Q.title) == null ? void 0 : Se.fontSize) != null ? re : 13,
|
|
5445
|
-
text:
|
|
5449
|
+
text: L.label
|
|
5446
5450
|
})
|
|
5447
5451
|
),
|
|
5448
5452
|
/* @__PURE__ */ u(
|
|
@@ -5455,13 +5459,13 @@ const Tr = (t, e) => {
|
|
|
5455
5459
|
width: "16px",
|
|
5456
5460
|
height: "16px"
|
|
5457
5461
|
},
|
|
5458
|
-
onClick: fe(
|
|
5459
|
-
children: Q != null && Q.removeImage ? /* @__PURE__ */ u(
|
|
5462
|
+
onClick: fe(L),
|
|
5463
|
+
children: Q != null && Q.removeImage ? /* @__PURE__ */ u($e, O({}, Q.removeImage)) : /* @__PURE__ */ u($e, { imageId: "cross" })
|
|
5460
5464
|
}
|
|
5461
5465
|
)
|
|
5462
5466
|
]
|
|
5463
5467
|
},
|
|
5464
|
-
|
|
5468
|
+
L.value
|
|
5465
5469
|
);
|
|
5466
5470
|
} else {
|
|
5467
5471
|
const Q = p == null ? void 0 : p.title;
|
|
@@ -5472,9 +5476,9 @@ const Tr = (t, e) => {
|
|
|
5472
5476
|
display: "flex",
|
|
5473
5477
|
userSelect: "none"
|
|
5474
5478
|
},
|
|
5475
|
-
children: /* @__PURE__ */ u(Oe, X(O({}, Q), { fontSize: ($ = Q == null ? void 0 : Q.fontSize) != null ? $ : 13, text:
|
|
5479
|
+
children: /* @__PURE__ */ u(Oe, X(O({}, Q), { fontSize: ($ = Q == null ? void 0 : Q.fontSize) != null ? $ : 13, text: L.label }))
|
|
5476
5480
|
},
|
|
5477
|
-
|
|
5481
|
+
L.value
|
|
5478
5482
|
);
|
|
5479
5483
|
}
|
|
5480
5484
|
})
|
|
@@ -5493,7 +5497,7 @@ const Tr = (t, e) => {
|
|
|
5493
5497
|
zIndex: 1
|
|
5494
5498
|
},
|
|
5495
5499
|
onClick: _e,
|
|
5496
|
-
children: p != null && p.clearButton ? /* @__PURE__ */ u(
|
|
5500
|
+
children: p != null && p.clearButton ? /* @__PURE__ */ u($e, O({}, p.clearButton)) : /* @__PURE__ */ u($e, { imageId: "cross" })
|
|
5497
5501
|
}
|
|
5498
5502
|
) : null,
|
|
5499
5503
|
n ? /* @__PURE__ */ u(
|
|
@@ -5533,20 +5537,20 @@ const Tr = (t, e) => {
|
|
|
5533
5537
|
gap: "2px",
|
|
5534
5538
|
cursor: "default"
|
|
5535
5539
|
}),
|
|
5536
|
-
onClick: (
|
|
5537
|
-
children: e.map((
|
|
5538
|
-
const Y = w.some((te) => te.value ===
|
|
5540
|
+
onClick: (L) => L.stopPropagation(),
|
|
5541
|
+
children: e.map((L) => {
|
|
5542
|
+
const Y = w.some((te) => te.value === L.value);
|
|
5539
5543
|
return /* @__PURE__ */ u(
|
|
5540
5544
|
Mu,
|
|
5541
5545
|
{
|
|
5542
5546
|
isChosen: Y,
|
|
5543
|
-
option:
|
|
5547
|
+
option: L,
|
|
5544
5548
|
onOptionClickCallback: N,
|
|
5545
|
-
isHovered: C ===
|
|
5546
|
-
onHover: () => b(
|
|
5549
|
+
isHovered: C === L.value,
|
|
5550
|
+
onHover: () => b(L.value),
|
|
5547
5551
|
onHoverEnd: () => b(null)
|
|
5548
5552
|
},
|
|
5549
|
-
|
|
5553
|
+
L.label
|
|
5550
5554
|
);
|
|
5551
5555
|
})
|
|
5552
5556
|
}
|
|
@@ -5683,7 +5687,7 @@ const Tr = (t, e) => {
|
|
|
5683
5687
|
window.removeEventListener("keydown", r), window.removeEventListener("mousedown", n);
|
|
5684
5688
|
};
|
|
5685
5689
|
}, []), t;
|
|
5686
|
-
},
|
|
5690
|
+
}, Lu = ({
|
|
5687
5691
|
option: t,
|
|
5688
5692
|
layout: e,
|
|
5689
5693
|
dataSourceQuestion: r,
|
|
@@ -5716,7 +5720,7 @@ const Tr = (t, e) => {
|
|
|
5716
5720
|
alignItems: "center",
|
|
5717
5721
|
alignContent: "center"
|
|
5718
5722
|
}, f),
|
|
5719
|
-
children: /* @__PURE__ */ u(
|
|
5723
|
+
children: /* @__PURE__ */ u($e, O({}, p ? c.image : h.image))
|
|
5720
5724
|
}
|
|
5721
5725
|
),
|
|
5722
5726
|
/* @__PURE__ */ u(Oe, X(O({}, p ? c.title : h.title), { text: t.text })),
|
|
@@ -5746,7 +5750,7 @@ const Tr = (t, e) => {
|
|
|
5746
5750
|
]
|
|
5747
5751
|
}
|
|
5748
5752
|
) }, t.id);
|
|
5749
|
-
},
|
|
5753
|
+
}, Uu = ({
|
|
5750
5754
|
layout: t,
|
|
5751
5755
|
register: e,
|
|
5752
5756
|
watch: r,
|
|
@@ -5775,7 +5779,7 @@ const Tr = (t, e) => {
|
|
|
5775
5779
|
}
|
|
5776
5780
|
),
|
|
5777
5781
|
n.options.map((i) => /* @__PURE__ */ u(
|
|
5778
|
-
|
|
5782
|
+
Lu,
|
|
5779
5783
|
{
|
|
5780
5784
|
register: e,
|
|
5781
5785
|
watch: r,
|
|
@@ -6027,7 +6031,7 @@ const Tr = (t, e) => {
|
|
|
6027
6031
|
]
|
|
6028
6032
|
}
|
|
6029
6033
|
);
|
|
6030
|
-
},
|
|
6034
|
+
}, Lt = class Lt extends Ce {
|
|
6031
6035
|
constructor({
|
|
6032
6036
|
errorCode: e,
|
|
6033
6037
|
message: r,
|
|
@@ -6038,18 +6042,18 @@ const Tr = (t, e) => {
|
|
|
6038
6042
|
super({
|
|
6039
6043
|
errorCode: e,
|
|
6040
6044
|
errorCodeKey: o,
|
|
6041
|
-
errorEnumName:
|
|
6042
|
-
module:
|
|
6045
|
+
errorEnumName: Lt.ERROR_ENUM_NAME,
|
|
6046
|
+
module: Lt.MODULE,
|
|
6043
6047
|
message: r,
|
|
6044
6048
|
underlyingError: n,
|
|
6045
6049
|
underlyingBaseError: i,
|
|
6046
|
-
domain:
|
|
6047
|
-
shortDomainCode:
|
|
6050
|
+
domain: Lt.ERROR_ENUM_NAME,
|
|
6051
|
+
shortDomainCode: Lt.SHORT_CODE
|
|
6048
6052
|
});
|
|
6049
6053
|
}
|
|
6050
6054
|
};
|
|
6051
|
-
|
|
6052
|
-
let zr =
|
|
6055
|
+
Lt.MODULE = Kn, Lt.ERROR_ENUM_NAME = "GuiModuleError", Lt.SHORT_CODE = "GM";
|
|
6056
|
+
let zr = Lt;
|
|
6053
6057
|
const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSource: o, properties: s, backgroundColor: a }) => {
|
|
6054
6058
|
const l = Ka(r), { perform: d } = ur(), p = s ? Ed(o.questions, s) : {}, h = it(null), {
|
|
6055
6059
|
register: c,
|
|
@@ -6150,7 +6154,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6150
6154
|
}
|
|
6151
6155
|
),
|
|
6152
6156
|
fe === pr.SELECTOR_OPTIONS && /* @__PURE__ */ u(
|
|
6153
|
-
|
|
6157
|
+
Uu,
|
|
6154
6158
|
{
|
|
6155
6159
|
layout: R,
|
|
6156
6160
|
dataSourceQuestion: b,
|
|
@@ -6306,7 +6310,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6306
6310
|
onInput: l
|
|
6307
6311
|
})
|
|
6308
6312
|
),
|
|
6309
|
-
/* @__PURE__ */ u("button", { style: Gu, onClick: d, children: /* @__PURE__ */ u(
|
|
6313
|
+
/* @__PURE__ */ u("button", { style: Gu, onClick: d, children: /* @__PURE__ */ u($e, { imageId: (h = (p = r == null ? void 0 : r[0]) == null ? void 0 : p.image) == null ? void 0 : h.imageId }) })
|
|
6310
6314
|
]
|
|
6311
6315
|
}
|
|
6312
6316
|
) }) });
|
|
@@ -6400,7 +6404,7 @@ const zu = ({ header: t, title: e, buttons: r, footer: n, questions: i, dataSour
|
|
|
6400
6404
|
onInput: l
|
|
6401
6405
|
})
|
|
6402
6406
|
),
|
|
6403
|
-
/* @__PURE__ */ u("button", { style: Ju, onClick: d, children: /* @__PURE__ */ u(
|
|
6407
|
+
/* @__PURE__ */ u("button", { style: Ju, onClick: d, children: /* @__PURE__ */ u($e, { imageId: (h = (p = n == null ? void 0 : n[0]) == null ? void 0 : p.image) == null ? void 0 : h.imageId }) })
|
|
6404
6408
|
]
|
|
6405
6409
|
}
|
|
6406
6410
|
) }) });
|
|
@@ -6415,7 +6419,7 @@ function e1() {
|
|
|
6415
6419
|
(o = t.current) == null || o.hidePopover(), r(!1);
|
|
6416
6420
|
} };
|
|
6417
6421
|
}
|
|
6418
|
-
const
|
|
6422
|
+
const Li = () => F(null, null, function* () {
|
|
6419
6423
|
var t;
|
|
6420
6424
|
try {
|
|
6421
6425
|
const e = yield navigator.permissions.query({ name: "geolocation" });
|
|
@@ -6557,7 +6561,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6557
6561
|
if (Je.isSafari) return;
|
|
6558
6562
|
let I = !0;
|
|
6559
6563
|
return F(null, null, function* () {
|
|
6560
|
-
if ((yield
|
|
6564
|
+
if ((yield Li()) !== "granted") {
|
|
6561
6565
|
p == null || p(!1);
|
|
6562
6566
|
return;
|
|
6563
6567
|
}
|
|
@@ -6595,14 +6599,14 @@ const Ui = () => F(null, null, function* () {
|
|
|
6595
6599
|
}, []);
|
|
6596
6600
|
const S = (I) => F(null, null, function* () {
|
|
6597
6601
|
I.preventDefault();
|
|
6598
|
-
const D = yield
|
|
6602
|
+
const D = yield Li();
|
|
6599
6603
|
if (D === "denied") {
|
|
6600
6604
|
g();
|
|
6601
6605
|
return;
|
|
6602
6606
|
}
|
|
6603
6607
|
D === "prompt" && (yield kn());
|
|
6604
6608
|
}), C = (I) => F(null, null, function* () {
|
|
6605
|
-
if (I.preventDefault(), (yield
|
|
6609
|
+
if (I.preventDefault(), (yield Li()) === "denied") {
|
|
6606
6610
|
g();
|
|
6607
6611
|
return;
|
|
6608
6612
|
}
|
|
@@ -6615,7 +6619,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6615
6619
|
return /* @__PURE__ */ u(Yt, { header: e, footer: r, backgroundColor: s, children: [
|
|
6616
6620
|
/* @__PURE__ */ u("div", { style: r1, children: [
|
|
6617
6621
|
/* @__PURE__ */ u("div", { style: n1, children: [
|
|
6618
|
-
n && /* @__PURE__ */ u("div", { style: o1, children: /* @__PURE__ */ u(
|
|
6622
|
+
n && /* @__PURE__ */ u("div", { style: o1, children: /* @__PURE__ */ u($e, O({}, n)) }),
|
|
6619
6623
|
t && /* @__PURE__ */ u("div", { style: s1, children: /* @__PURE__ */ u(Oe, O({}, t)) }),
|
|
6620
6624
|
i && /* @__PURE__ */ u("div", { style: a1, children: /* @__PURE__ */ u(ri, O({}, i)) })
|
|
6621
6625
|
] }),
|
|
@@ -6786,7 +6790,7 @@ const Ui = () => F(null, null, function* () {
|
|
|
6786
6790
|
});
|
|
6787
6791
|
return o(a), null;
|
|
6788
6792
|
};
|
|
6789
|
-
let
|
|
6793
|
+
let Ui = !1;
|
|
6790
6794
|
const Bs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id: "gui-idv-web-c", style: { backgroundColor: "white", height: "100%", width: "100%" }, children: t }), p1 = ({ isProcessing: t, moduleProps: e, perform: r }) => {
|
|
6791
6795
|
const { templateId: n, templateLayout: i, dataSource: o, properties: s } = e, a = (l, d) => {
|
|
6792
6796
|
r && r(l, d);
|
|
@@ -6864,14 +6868,14 @@ const Bs = ({ children: t }) => /* @__PURE__ */ u("div", { part: "gui-idv", id:
|
|
|
6864
6868
|
});
|
|
6865
6869
|
}
|
|
6866
6870
|
static isReady() {
|
|
6867
|
-
return
|
|
6871
|
+
return Ui;
|
|
6868
6872
|
}
|
|
6869
6873
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6870
6874
|
static initialize(e) {
|
|
6871
|
-
|
|
6875
|
+
Ui = !0;
|
|
6872
6876
|
}
|
|
6873
6877
|
static deinitialize() {
|
|
6874
|
-
|
|
6878
|
+
Ui = !1;
|
|
6875
6879
|
}
|
|
6876
6880
|
};
|
|
6877
6881
|
Br.displayName = Kn, Br.getSupportedTemplates = () => Object.values(ct), Br.getIdentifier = () => Kn;
|
|
@@ -7000,20 +7004,20 @@ const _1 = (t, e) => ({
|
|
|
7000
7004
|
return F(this, null, function* () {
|
|
7001
7005
|
if (!e()._isInitialized)
|
|
7002
7006
|
return {
|
|
7003
|
-
error: new
|
|
7007
|
+
error: new Ve({
|
|
7004
7008
|
errorCode: Ue.INITIALIZATION_REQUIRED
|
|
7005
7009
|
})
|
|
7006
7010
|
};
|
|
7007
7011
|
if (e().currentScreenConfig)
|
|
7008
7012
|
return {
|
|
7009
|
-
error: new
|
|
7013
|
+
error: new Ve({
|
|
7010
7014
|
errorCode: Ue.SCENARIO_IN_PROGRESS
|
|
7011
7015
|
})
|
|
7012
7016
|
};
|
|
7013
|
-
const o = ["apiKey", "baseUrl"].filter((
|
|
7017
|
+
const o = ["apiKey", "baseUrl"].filter((m) => !(n != null && n[m]));
|
|
7014
7018
|
if (o.length > 0)
|
|
7015
7019
|
return {
|
|
7016
|
-
error: new
|
|
7020
|
+
error: new Ve({
|
|
7017
7021
|
errorCode: Ue.CONFIG_MISSED_OR_INVALID,
|
|
7018
7022
|
message: `Missing parameters: ${o.join(", ")}`
|
|
7019
7023
|
})
|
|
@@ -7021,47 +7025,48 @@ const _1 = (t, e) => ({
|
|
|
7021
7025
|
const s = Mi(n.baseUrl);
|
|
7022
7026
|
if (!s)
|
|
7023
7027
|
return {
|
|
7024
|
-
error: new
|
|
7028
|
+
error: new Ve({
|
|
7025
7029
|
errorCode: Ue.CONFIG_MISSED_OR_INVALID,
|
|
7026
7030
|
message: `Invalid URL: ${n.baseUrl}`
|
|
7027
7031
|
})
|
|
7028
7032
|
};
|
|
7029
|
-
|
|
7030
|
-
|
|
7033
|
+
const a = Number(n.ttl);
|
|
7034
|
+
!Number.isNaN(a) && a > 0 && t({ _ttl: a });
|
|
7035
|
+
const l = e()._ttl, d = {
|
|
7031
7036
|
host: s.host,
|
|
7032
7037
|
isSecure: s.isSecure,
|
|
7033
7038
|
port: s.port,
|
|
7034
7039
|
apiKey: n.apiKey,
|
|
7035
7040
|
deviceDescriptor: {
|
|
7036
|
-
ttl:
|
|
7041
|
+
ttl: l
|
|
7037
7042
|
}
|
|
7038
|
-
},
|
|
7039
|
-
if (
|
|
7040
|
-
return { error: new
|
|
7043
|
+
}, p = nr.getAuthTokenLs(), h = p && p[n.apiKey] && p[n.apiKey].authToken ? p[n.apiKey] : null, c = h && h.authToken, g = yield e().connectByApiKey(d);
|
|
7044
|
+
if (g.error)
|
|
7045
|
+
return { error: new Ve({
|
|
7041
7046
|
errorCode: Ue.CONNECTION_ISSUE,
|
|
7042
|
-
underlyingBaseError:
|
|
7047
|
+
underlyingBaseError: g.error
|
|
7043
7048
|
}) };
|
|
7044
|
-
|
|
7045
|
-
const
|
|
7046
|
-
return e().setApiKeyAuthTokenCollection(n.apiKey,
|
|
7049
|
+
c && g.authToken !== c && nr.removeAuthTokenLs(n.apiKey);
|
|
7050
|
+
const w = h && g.authToken === h.authToken && h, f = w ? w.tokenExpiresAt : Date.now() + l * 1e3;
|
|
7051
|
+
return e().setApiKeyAuthTokenCollection(n.apiKey, g.authToken, f), t({ _isConnectedToPlatform: !0 }), e().setStartConfig({
|
|
7047
7052
|
host: s.host,
|
|
7048
7053
|
isSecure: s.isSecure,
|
|
7049
7054
|
apiKey: n.apiKey,
|
|
7050
7055
|
port: s.port
|
|
7051
|
-
}),
|
|
7056
|
+
}), g;
|
|
7052
7057
|
});
|
|
7053
7058
|
},
|
|
7054
7059
|
configureWithUrl(n) {
|
|
7055
7060
|
return F(this, null, function* () {
|
|
7056
7061
|
if (!e()._isInitialized)
|
|
7057
7062
|
return {
|
|
7058
|
-
error: new
|
|
7063
|
+
error: new Ve({
|
|
7059
7064
|
errorCode: Ue.INITIALIZATION_REQUIRED
|
|
7060
7065
|
})
|
|
7061
7066
|
};
|
|
7062
7067
|
if (e().currentScreenConfig)
|
|
7063
7068
|
return {
|
|
7064
|
-
error: new
|
|
7069
|
+
error: new Ve({
|
|
7065
7070
|
errorCode: Ue.SCENARIO_IN_PROGRESS
|
|
7066
7071
|
})
|
|
7067
7072
|
};
|
|
@@ -7070,7 +7075,7 @@ const _1 = (t, e) => ({
|
|
|
7070
7075
|
const o = yield e().connectByUrl(n);
|
|
7071
7076
|
if (o.error)
|
|
7072
7077
|
return {
|
|
7073
|
-
error: new
|
|
7078
|
+
error: new Ve({
|
|
7074
7079
|
errorCode: Ue.CONNECTION_ISSUE,
|
|
7075
7080
|
underlyingBaseError: o.error
|
|
7076
7081
|
})
|
|
@@ -7080,7 +7085,7 @@ const _1 = (t, e) => ({
|
|
|
7080
7085
|
const s = Mi(n);
|
|
7081
7086
|
if (!s)
|
|
7082
7087
|
return {
|
|
7083
|
-
error: new
|
|
7088
|
+
error: new Ve({
|
|
7084
7089
|
errorCode: Ue.CONFIG_MISSED_OR_INVALID,
|
|
7085
7090
|
message: `Invalid URL: ${n}`
|
|
7086
7091
|
})
|
|
@@ -7100,20 +7105,20 @@ const _1 = (t, e) => ({
|
|
|
7100
7105
|
return F(this, null, function* () {
|
|
7101
7106
|
if (!e()._isInitialized)
|
|
7102
7107
|
return {
|
|
7103
|
-
error: new
|
|
7108
|
+
error: new Ve({
|
|
7104
7109
|
errorCode: Ue.INITIALIZATION_REQUIRED
|
|
7105
7110
|
})
|
|
7106
7111
|
};
|
|
7107
7112
|
if (e().currentScreenConfig)
|
|
7108
7113
|
return {
|
|
7109
|
-
error: new
|
|
7114
|
+
error: new Ve({
|
|
7110
7115
|
errorCode: Ue.SCENARIO_IN_PROGRESS
|
|
7111
7116
|
})
|
|
7112
7117
|
};
|
|
7113
7118
|
const o = ["password", "userName", "baseUrl"].filter((d) => !(n != null && n[d]));
|
|
7114
7119
|
if (o.length > 0)
|
|
7115
7120
|
return {
|
|
7116
|
-
error: new
|
|
7121
|
+
error: new Ve({
|
|
7117
7122
|
errorCode: Ue.CONFIG_MISSED_OR_INVALID,
|
|
7118
7123
|
message: `Missing parameters: ${o.join(", ")}`
|
|
7119
7124
|
})
|
|
@@ -7121,7 +7126,7 @@ const _1 = (t, e) => ({
|
|
|
7121
7126
|
const s = Mi(n.baseUrl);
|
|
7122
7127
|
if (!s)
|
|
7123
7128
|
return {
|
|
7124
|
-
error: new
|
|
7129
|
+
error: new Ve({
|
|
7125
7130
|
errorCode: Ue.CONFIG_MISSED_OR_INVALID,
|
|
7126
7131
|
message: `Invalid URL: ${n.baseUrl}`
|
|
7127
7132
|
})
|
|
@@ -7133,7 +7138,7 @@ const _1 = (t, e) => ({
|
|
|
7133
7138
|
port: s.port,
|
|
7134
7139
|
userName: n.userName
|
|
7135
7140
|
}, l = yield e().connectByUserPass(a);
|
|
7136
|
-
return l.error ? { error: new
|
|
7141
|
+
return l.error ? { error: new Ve({
|
|
7137
7142
|
errorCode: Ue.CONNECTION_ISSUE,
|
|
7138
7143
|
underlyingBaseError: l.error
|
|
7139
7144
|
}) } : (t({ _isConnectedToPlatform: !0 }), e().setStartConfig({
|
|
@@ -7200,7 +7205,7 @@ const _1 = (t, e) => ({
|
|
|
7200
7205
|
const g = e().modulesConfig;
|
|
7201
7206
|
return l.forEach((f) => {
|
|
7202
7207
|
f.component.isReady() || f.component.initialize(g);
|
|
7203
|
-
}), e().setLayout(o.client.layout), e().setProcessingTemplate(o.client.steps), e().setWorkflowId(n), { workflow: o };
|
|
7208
|
+
}), e().setLayout(o.client.layout), e().setProcessingTemplate(o.client.steps), e().setWorkflowId(n), e().setTrackLocation(o.trackLocation), { workflow: o };
|
|
7204
7209
|
});
|
|
7205
7210
|
},
|
|
7206
7211
|
startNewSession(a) {
|
|
@@ -7310,11 +7315,11 @@ const _1 = (t, e) => ({
|
|
|
7310
7315
|
return F(this, null, function* () {
|
|
7311
7316
|
if (!e()._isInitialized)
|
|
7312
7317
|
return { error: new Wn({
|
|
7313
|
-
errorCode:
|
|
7318
|
+
errorCode: Un.INITIALIZATION_REQUIRED
|
|
7314
7319
|
}) };
|
|
7315
7320
|
if (e().currentScreenConfig)
|
|
7316
7321
|
return { error: new Wn({
|
|
7317
|
-
errorCode:
|
|
7322
|
+
errorCode: Un.SCENARIO_IN_PROGRESS
|
|
7318
7323
|
}) };
|
|
7319
7324
|
const n = yield e().deinitializationIdv();
|
|
7320
7325
|
return e().resetProps(), t({ _isInitialized: !1 }), n;
|
|
@@ -7816,12 +7821,12 @@ const g1 = (t, e) => ({
|
|
|
7816
7821
|
return F(this, null, function* () {
|
|
7817
7822
|
const o = yield e().fetchService.connectByApiKey(n, !1);
|
|
7818
7823
|
if (o.code !== 0) {
|
|
7819
|
-
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new
|
|
7824
|
+
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new Lr({
|
|
7820
7825
|
errorCode: s,
|
|
7821
7826
|
message: JSON.stringify(o.data)
|
|
7822
7827
|
});
|
|
7823
7828
|
return { error: new Hn({
|
|
7824
|
-
errorCode:
|
|
7829
|
+
errorCode: Ln.CONNECTION_ISSUE,
|
|
7825
7830
|
underlyingBaseError: a
|
|
7826
7831
|
}) };
|
|
7827
7832
|
}
|
|
@@ -7833,7 +7838,7 @@ const g1 = (t, e) => ({
|
|
|
7833
7838
|
const i = yield e().fetchService.connectByUserPass(n);
|
|
7834
7839
|
if (i.code !== 0) {
|
|
7835
7840
|
const o = i.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR;
|
|
7836
|
-
return { error: new
|
|
7841
|
+
return { error: new Lr({
|
|
7837
7842
|
errorCode: o,
|
|
7838
7843
|
message: JSON.stringify(i.data)
|
|
7839
7844
|
}) };
|
|
@@ -7845,11 +7850,11 @@ const g1 = (t, e) => ({
|
|
|
7845
7850
|
return F(this, null, function* () {
|
|
7846
7851
|
const o = yield e().fetchService.connectByUrl(n);
|
|
7847
7852
|
if (o.code !== 0) {
|
|
7848
|
-
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new
|
|
7853
|
+
const s = o.code === 4 ? Kt.HTTP_ISSUE : Kt.PROVIDER_ERROR, a = new Lr({
|
|
7849
7854
|
errorCode: s,
|
|
7850
7855
|
message: JSON.stringify(o.data)
|
|
7851
7856
|
}), l = new Hn({
|
|
7852
|
-
errorCode:
|
|
7857
|
+
errorCode: Ln.CONNECTION_ISSUE,
|
|
7853
7858
|
underlyingBaseError: a
|
|
7854
7859
|
});
|
|
7855
7860
|
return {
|
|
@@ -7912,7 +7917,7 @@ const g1 = (t, e) => ({
|
|
|
7912
7917
|
const d = yield e().fetchService.pushData(n, i, o);
|
|
7913
7918
|
let p = null;
|
|
7914
7919
|
if (d.code === 4 && (p = lt.HTTP_ISSUE), d.code !== 0 && d.code !== 4 && (p = lt.PROVIDER_ERROR), p !== null) {
|
|
7915
|
-
const h = new
|
|
7920
|
+
const h = new Ur({
|
|
7916
7921
|
errorCode: lt.HTTP_ISSUE
|
|
7917
7922
|
});
|
|
7918
7923
|
s = new Ge({
|
|
@@ -7935,7 +7940,7 @@ const g1 = (t, e) => ({
|
|
|
7935
7940
|
const n = yield e().fetchService.getSessionState(), i = n.code === 0, o = i ? n.data : null, s = (w = o == null ? void 0 : o.currentStep) != null ? w : "", a = o == null ? void 0 : o.isProcessingFiles, l = (m = (f = o == null ? void 0 : o.workflow) == null ? void 0 : f.steps) != null ? m : [], d = od(l, s), p = n.code === 4, h = n.code !== 0 && n.code !== 4, c = i && (!n.data.workflow || !n.data.currentStep);
|
|
7936
7941
|
let g = null;
|
|
7937
7942
|
if (l && !d && (g = lt.NOT_DATA_TYPE), p && (g = lt.HTTP_ISSUE), h && (g = lt.PROVIDER_ERROR), a && (g = lt.IS_PROCESSING), c && (g = lt.DECODING_FAILED), g !== null) {
|
|
7938
|
-
const S = new
|
|
7943
|
+
const S = new Ur({ errorCode: g });
|
|
7939
7944
|
return { error: new Ge({
|
|
7940
7945
|
errorCode: Ke.INTERNAL_ISSUE,
|
|
7941
7946
|
underlyingBaseError: S
|
|
@@ -7967,7 +7972,7 @@ const g1 = (t, e) => ({
|
|
|
7967
7972
|
p(!0);
|
|
7968
7973
|
}), n != null && n.error ? { error: n.error } : n != null && n.data ? { sessionData: n.data } : { error: new Ge({
|
|
7969
7974
|
errorCode: Ke.INTERNAL_ISSUE,
|
|
7970
|
-
underlyingBaseError: new
|
|
7975
|
+
underlyingBaseError: new Ur({ errorCode: lt.DECODING_FAILED })
|
|
7971
7976
|
}) };
|
|
7972
7977
|
}),
|
|
7973
7978
|
setFinalStepAndStopProcess: (n) => {
|
|
@@ -8130,7 +8135,7 @@ function w1(t) {
|
|
|
8130
8135
|
return e.filter((n) => n !== null);
|
|
8131
8136
|
});
|
|
8132
8137
|
}
|
|
8133
|
-
const
|
|
8138
|
+
const Le = Bc(
|
|
8134
8139
|
(...t) => O(O(O({}, md(...t)), _1(...t)), g1(...t))
|
|
8135
8140
|
), v1 = (t) => /^[a-z][a-z0-9]*-[a-z0-9]+(?:-[a-z0-9]+)*$/.test(t) && t.length <= 100, Hs = (t, e) => {
|
|
8136
8141
|
if (!v1(t))
|
|
@@ -8243,7 +8248,7 @@ function b1() {
|
|
|
8243
8248
|
/* 1 */
|
|
8244
8249
|
/***/
|
|
8245
8250
|
(function(e, r, n) {
|
|
8246
|
-
var i = n(2), o = n(0), s = o.BROWSER_TYPES, a = o.OS_TYPES, l = o.DEVICE_TYPES, d = n(4), p = d.checkType, h = d.broPayload, c = d.mobilePayload, g = d.wearPayload, w = d.consolePayload, f = d.stvPayload, m = d.getNavigatorInstance, S = d.isIOS13Check, C = new i(), b = C.getBrowser(), I = C.getDevice(), D = C.getEngine(), N = C.getOS(), R = C.getUA(), fe = s.CHROME, _e = s.CHROMIUM, ae = s.IE, Z = s.INTERNET_EXPLORER, H = s.OPERA, K = s.FIREFOX, de = s.SAFARI, le = s.EDGE, we = s.YANDEX, ve = s.MOBILE_SAFARI, ee = l.MOBILE, z = l.TABLET,
|
|
8251
|
+
var i = n(2), o = n(0), s = o.BROWSER_TYPES, a = o.OS_TYPES, l = o.DEVICE_TYPES, d = n(4), p = d.checkType, h = d.broPayload, c = d.mobilePayload, g = d.wearPayload, w = d.consolePayload, f = d.stvPayload, m = d.getNavigatorInstance, S = d.isIOS13Check, C = new i(), b = C.getBrowser(), I = C.getDevice(), D = C.getEngine(), N = C.getOS(), R = C.getUA(), fe = s.CHROME, _e = s.CHROMIUM, ae = s.IE, Z = s.INTERNET_EXPLORER, H = s.OPERA, K = s.FIREFOX, de = s.SAFARI, le = s.EDGE, we = s.YANDEX, ve = s.MOBILE_SAFARI, ee = l.MOBILE, z = l.TABLET, L = l.SMART_TV, Y = l.BROWSER, te = l.WEARABLE, Se = l.CONSOLE, re = a.ANDROID, $ = a.WINDOWS_PHONE, Q = a.IOS, Be = a.WINDOWS, je = a.MAC_OS, ot = function() {
|
|
8247
8252
|
return I.type === ee;
|
|
8248
8253
|
}, Xe = function() {
|
|
8249
8254
|
return I.type === z;
|
|
@@ -8258,7 +8263,7 @@ function b1() {
|
|
|
8258
8263
|
}, st = function() {
|
|
8259
8264
|
return N.name === a.WINDOWS && N.version === "10" ? typeof R == "string" && R.indexOf("Edg/") !== -1 : !1;
|
|
8260
8265
|
}, Ht = function() {
|
|
8261
|
-
return I.type ===
|
|
8266
|
+
return I.type === L;
|
|
8262
8267
|
}, bt = function() {
|
|
8263
8268
|
return I.type === Y;
|
|
8264
8269
|
}, pt = function() {
|
|
@@ -8268,7 +8273,7 @@ function b1() {
|
|
|
8268
8273
|
}, Wt = function() {
|
|
8269
8274
|
return N.name === re;
|
|
8270
8275
|
}, _t = function() {
|
|
8271
|
-
return N.name ===
|
|
8276
|
+
return N.name === Be;
|
|
8272
8277
|
}, tt = function() {
|
|
8273
8278
|
return N.name === je;
|
|
8274
8279
|
}, y = function() {
|
|
@@ -8303,7 +8308,7 @@ function b1() {
|
|
|
8303
8308
|
return S("iPad");
|
|
8304
8309
|
}, me = function() {
|
|
8305
8310
|
return S("iPhone");
|
|
8306
|
-
},
|
|
8311
|
+
}, He = function() {
|
|
8307
8312
|
return S("iPod");
|
|
8308
8313
|
}, xe = function() {
|
|
8309
8314
|
return b.major;
|
|
@@ -8327,7 +8332,7 @@ function b1() {
|
|
|
8327
8332
|
return R;
|
|
8328
8333
|
}, nn = function() {
|
|
8329
8334
|
return I.type;
|
|
8330
|
-
}, on = Ht(), sn = Ct(), an = pt(), zt = G() || j(), ln = M(), rt = yt() || j(), cn = ot(), dn = Xe() || j(), un = bt(), fn = Wt(), hn = y(), pn = T() || j(), _n = A(), ii = V(), oi = ne(), si = ge(), fr = Pe(), mn = q(), gn = ze(), wn = xe(), ai = he(), vn = jt(), yn = Jt(), bn = Qr(), li = en(), ci = tn(), di = rn(), ui = P() || st(), Cn = W(), fi = nn(), hi = oe(), pi = j(), _i = me(), mi =
|
|
8335
|
+
}, on = Ht(), sn = Ct(), an = pt(), zt = G() || j(), ln = M(), rt = yt() || j(), cn = ot(), dn = Xe() || j(), un = bt(), fn = Wt(), hn = y(), pn = T() || j(), _n = A(), ii = V(), oi = ne(), si = ge(), fr = Pe(), mn = q(), gn = ze(), wn = xe(), ai = he(), vn = jt(), yn = Jt(), bn = Qr(), li = en(), ci = tn(), di = rn(), ui = P() || st(), Cn = W(), fi = nn(), hi = oe(), pi = j(), _i = me(), mi = He(), gi = J(), wi = st(), vi = P(), yi = _t(), bi = tt(), mt = p(I.type);
|
|
8331
8336
|
function Ci() {
|
|
8332
8337
|
var ie = mt.isBrowser, at = mt.isMobile, hr = mt.isTablet, Sn = mt.isSmartTV, En = mt.isConsole, Tn = mt.isWearable;
|
|
8333
8338
|
if (ie)
|
|
@@ -8398,10 +8403,10 @@ function b1() {
|
|
|
8398
8403
|
*/
|
|
8399
8404
|
(function(o, s) {
|
|
8400
8405
|
var a = "0.7.18", l = "", d = "?", p = "function", h = "undefined", c = "object", g = "string", w = "major", f = "model", m = "name", S = "type", C = "vendor", b = "version", I = "architecture", D = "console", N = "mobile", R = "tablet", fe = "smarttv", _e = "wearable", ae = "embedded", Z = { extend: function(ee, z) {
|
|
8401
|
-
var
|
|
8406
|
+
var L = {};
|
|
8402
8407
|
for (var Y in ee)
|
|
8403
|
-
z[Y] && z[Y].length % 2 === 0 ?
|
|
8404
|
-
return
|
|
8408
|
+
z[Y] && z[Y].length % 2 === 0 ? L[Y] = z[Y].concat(ee[Y]) : L[Y] = ee[Y];
|
|
8409
|
+
return L;
|
|
8405
8410
|
}, has: function(ee, z) {
|
|
8406
8411
|
return typeof ee == "string" ? z.toLowerCase().indexOf(ee.toLowerCase()) !== -1 : !1;
|
|
8407
8412
|
}, lowerize: function(ee) {
|
|
@@ -8411,48 +8416,48 @@ function b1() {
|
|
|
8411
8416
|
}, trim: function(ee) {
|
|
8412
8417
|
return ee.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
8413
8418
|
} }, H = { rgx: function(ee, z) {
|
|
8414
|
-
for (var
|
|
8415
|
-
var
|
|
8416
|
-
for (Y = te = 0; Y <
|
|
8417
|
-
if ($ =
|
|
8419
|
+
for (var L = 0, Y, te, Se, re, $, Q; L < z.length && !$; ) {
|
|
8420
|
+
var Be = z[L], je = z[L + 1];
|
|
8421
|
+
for (Y = te = 0; Y < Be.length && !$; )
|
|
8422
|
+
if ($ = Be[Y++].exec(ee), $)
|
|
8418
8423
|
for (Se = 0; Se < je.length; Se++)
|
|
8419
8424
|
Q = $[++te], re = je[Se], typeof re === c && re.length > 0 ? re.length == 2 ? typeof re[1] == p ? this[re[0]] = re[1].call(this, Q) : this[re[0]] = re[1] : re.length == 3 ? typeof re[1] === p && !(re[1].exec && re[1].test) ? this[re[0]] = Q ? re[1].call(this, Q, re[2]) : s : this[re[0]] = Q ? Q.replace(re[1], re[2]) : s : re.length == 4 && (this[re[0]] = Q ? re[3].call(this, Q.replace(re[1], re[2])) : s) : this[re] = Q || s;
|
|
8420
|
-
|
|
8425
|
+
L += 2;
|
|
8421
8426
|
}
|
|
8422
8427
|
}, str: function(ee, z) {
|
|
8423
|
-
for (var
|
|
8424
|
-
if (typeof z[
|
|
8425
|
-
for (var Y = 0; Y < z[
|
|
8426
|
-
if (Z.has(z[
|
|
8427
|
-
return
|
|
8428
|
-
} else if (Z.has(z[
|
|
8429
|
-
return
|
|
8428
|
+
for (var L in z)
|
|
8429
|
+
if (typeof z[L] === c && z[L].length > 0) {
|
|
8430
|
+
for (var Y = 0; Y < z[L].length; Y++)
|
|
8431
|
+
if (Z.has(z[L][Y], ee))
|
|
8432
|
+
return L === d ? s : L;
|
|
8433
|
+
} else if (Z.has(z[L], ee))
|
|
8434
|
+
return L === d ? s : L;
|
|
8430
8435
|
return ee;
|
|
8431
8436
|
} }, K = { 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], [m, b], [/(opios)[\/\s]+([\w\.]+)/i], [[m, "Opera Mini"], b], [/\s(opr)\/([\w\.]+)/i], [[m, "Opera"], b], [/(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], [m, b], [/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i], [[m, "IE"], b], [/(edge|edgios|edgea)\/((\d+)?[\w\.]+)/i], [[m, "Edge"], b], [/(yabrowser)\/([\w\.]+)/i], [[m, "Yandex"], b], [/(puffin)\/([\w\.]+)/i], [[m, "Puffin"], b], [/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i], [[m, "UCBrowser"], b], [/(comodo_dragon)\/([\w\.]+)/i], [[m, /_/g, " "], b], [/(micromessenger)\/([\w\.]+)/i], [[m, "WeChat"], b], [/(qqbrowserlite)\/([\w\.]+)/i], [m, b], [/(QQ)\/([\d\.]+)/i], [m, b], [/m?(qqbrowser)[\/\s]?([\w\.]+)/i], [m, b], [/(BIDUBrowser)[\/\s]?([\w\.]+)/i], [m, b], [/(2345Explorer)[\/\s]?([\w\.]+)/i], [m, b], [/(MetaSr)[\/\s]?([\w\.]+)/i], [m], [/(LBBROWSER)/i], [m], [/xiaomi\/miuibrowser\/([\w\.]+)/i], [b, [m, "MIUI Browser"]], [/;fbav\/([\w\.]+);/i], [b, [m, "Facebook"]], [/headlesschrome(?:\/([\w\.]+)|\s)/i], [b, [m, "Chrome Headless"]], [/\swv\).+(chrome)\/([\w\.]+)/i], [[m, /(.+)/, "$1 WebView"], b], [/((?:oculus|samsung)browser)\/([\w\.]+)/i], [[m, /(.+(?:g|us))(.+)/, "$1 $2"], b], [/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i], [b, [m, "Android Browser"]], [/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i], [m, b], [/(dolfin)\/([\w\.]+)/i], [[m, "Dolphin"], b], [/((?:android.+)crmo|crios)\/([\w\.]+)/i], [[m, "Chrome"], b], [/(coast)\/([\w\.]+)/i], [[m, "Opera Coast"], b], [/fxios\/([\w\.-]+)/i], [b, [m, "Firefox"]], [/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i], [b, [m, "Mobile Safari"]], [/version\/([\w\.]+).+?(mobile\s?safari|safari)/i], [b, m], [/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [[m, "GSA"], b], [/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i], [m, [b, H.str, K.browser.oldsafari.version]], [/(konqueror)\/([\w\.]+)/i, /(webkit|khtml)\/([\w\.]+)/i], [m, b], [/(navigator|netscape)\/([\w\.-]+)/i], [[m, "Netscape"], b], [/(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], [m, b]], cpu: [[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i], [[I, "amd64"]], [/(ia32(?=;))/i], [[I, Z.lowerize]], [/((?:i[346]|x)86)[;\)]/i], [[I, "ia32"]], [/windows\s(ce|mobile);\sppc;/i], [[I, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i], [[I, /ower/, "", Z.lowerize]], [/(sun4\w)[;\)]/i], [[I, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i], [[I, Z.lowerize]]], device: [[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i], [f, C, [S, R]], [/applecoremedia\/[\w\.]+ \((ipad)/], [f, [C, "Apple"], [S, R]], [/(apple\s{0,1}tv)/i], [[f, "Apple TV"], [C, "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], [C, f, [S, R]], [/(kf[A-z]+)\sbuild\/.+silk\//i], [f, [C, "Amazon"], [S, R]], [/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i], [[f, H.str, K.device.amazon.model], [C, "Amazon"], [S, N]], [/\((ip[honed|\s\w*]+);.+(apple)/i], [f, C, [S, N]], [/\((ip[honed|\s\w*]+);/i], [f, [C, "Apple"], [S, N]], [/(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], [C, f, [S, N]], [/\(bb10;\s(\w+)/i], [f, [C, "BlackBerry"], [S, N]], [/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i], [f, [C, "Asus"], [S, R]], [/(sony)\s(tablet\s[ps])\sbuild\//i, /(sony)?(?:sgp.+)\sbuild\//i], [[C, "Sony"], [f, "Xperia Tablet"], [S, R]], [/android.+\s([c-g]\d{4}|so[-l]\w+)\sbuild\//i], [f, [C, "Sony"], [S, N]], [/\s(ouya)\s/i, /(nintendo)\s([wids3u]+)/i], [C, f, [S, D]], [/android.+;\s(shield)\sbuild/i], [f, [C, "Nvidia"], [S, D]], [/(playstation\s[34portablevi]+)/i], [f, [C, "Sony"], [S, D]], [/(sprint\s(\w+))/i], [[C, H.str, K.device.sprint.vendor], [f, H.str, K.device.sprint.model], [S, N]], [/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i], [C, f, [S, R]], [/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i, /(zte)-(\w*)/i, /(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i], [C, [f, /_/g, " "], [S, N]], [/(nexus\s9)/i], [f, [C, "HTC"], [S, R]], [/d\/huawei([\w\s-]+)[;\)]/i, /(nexus\s6p)/i], [f, [C, "Huawei"], [S, N]], [/(microsoft);\s(lumia[\s\w]+)/i], [C, f, [S, N]], [/[\s\(;](xbox(?:\sone)?)[\s\);]/i], [f, [C, "Microsoft"], [S, D]], [/(kin\.[onetw]{3})/i], [[f, /\./g, " "], [C, "Microsoft"], [S, N]], [/\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], [f, [C, "Motorola"], [S, N]], [/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i], [f, [C, "Motorola"], [S, R]], [/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i], [[C, Z.trim], [f, Z.trim], [S, fe]], [/hbbtv.+maple;(\d+)/i], [[f, /^/, "SmartTV"], [C, "Samsung"], [S, fe]], [/\(dtv[\);].+(aquos)/i], [f, [C, "Sharp"], [S, fe]], [/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], [[C, "Samsung"], f, [S, R]], [/smart-tv.+(samsung)/i], [C, [S, fe], f], [/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i, /(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i, /sec-((sgh\w+))/i], [[C, "Samsung"], f, [S, N]], [/sie-(\w*)/i], [f, [C, "Siemens"], [S, N]], [/(maemo|nokia).*(n900|lumia\s\d+)/i, /(nokia)[\s_-]?([\w-]*)/i], [[C, "Nokia"], f, [S, N]], [/android\s3\.[\s\w;-]{10}(a\d{3})/i], [f, [C, "Acer"], [S, R]], [/android.+([vl]k\-?\d{3})\s+build/i], [f, [C, "LG"], [S, R]], [/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i], [[C, "LG"], f, [S, R]], [/(lg) netcast\.tv/i], [C, f, [S, fe]], [/(nexus\s[45])/i, /lg[e;\s\/-]+(\w*)/i, /android.+lg(\-?[\d\w]+)\s+build/i], [f, [C, "LG"], [S, N]], [/android.+(ideatab[a-z0-9\-\s]+)/i], [f, [C, "Lenovo"], [S, R]], [/linux;.+((jolla));/i], [C, f, [S, N]], [/((pebble))app\/[\d\.]+\s/i], [C, f, [S, _e]], [/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i], [C, f, [S, N]], [/crkey/i], [[f, "Chromecast"], [C, "Google"]], [/android.+;\s(glass)\s\d/i], [f, [C, "Google"], [S, _e]], [/android.+;\s(pixel c)\s/i], [f, [C, "Google"], [S, R]], [/android.+;\s(pixel xl|pixel)\s/i], [f, [C, "Google"], [S, N]], [/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], [[f, /_/g, " "], [C, "Xiaomi"], [S, N]], [/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i], [[f, /_/g, " "], [C, "Xiaomi"], [S, R]], [/android.+;\s(m[1-5]\snote)\sbuild/i], [f, [C, "Meizu"], [S, R]], [/android.+a000(1)\s+build/i, /android.+oneplus\s(a\d{4})\s+build/i], [f, [C, "OnePlus"], [S, N]], [/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i], [f, [C, "RCA"], [S, R]], [/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i], [f, [C, "Dell"], [S, R]], [/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i], [f, [C, "Verizon"], [S, R]], [/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i], [[C, "Barnes & Noble"], f, [S, R]], [/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i], [f, [C, "NuVision"], [S, R]], [/android.+;\s(k88)\sbuild/i], [f, [C, "ZTE"], [S, R]], [/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i], [f, [C, "Swiss"], [S, N]], [/android.+[;\/]\s*(zur\d{3})\s+build/i], [f, [C, "Swiss"], [S, R]], [/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i], [f, [C, "Zeki"], [S, R]], [/(android).+[;\/]\s+([YR]\d{2})\s+build/i, /android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i], [[C, "Dragon Touch"], f, [S, R]], [/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i], [f, [C, "Insignia"], [S, R]], [/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i], [f, [C, "NextBook"], [S, R]], [/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i], [[C, "Voice"], f, [S, N]], [/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i], [[C, "LvTel"], f, [S, N]], [/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i], [f, [C, "Envizen"], [S, R]], [/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i], [C, f, [S, R]], [/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i], [f, [C, "MachSpeed"], [S, R]], [/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i], [C, f, [S, R]], [/android.+[;\/]\s*TU_(1491)\s+build/i], [f, [C, "Rotor"], [S, R]], [/android.+(KS(.+))\s+build/i], [f, [C, "Amazon"], [S, R]], [/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i], [C, f, [S, R]], [/\s(tablet|tab)[;\/]/i, /\s(mobile)(?:[;\/]|\ssafari)/i], [[S, Z.lowerize], C, f], [/(android[\w\.\s\-]{0,9});.+build/i], [f, [C, "Generic"]]], engine: [[/windows.+\sedge\/([\w\.]+)/i], [b, [m, "EdgeHTML"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i, /(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i, /(icab)[\/\s]([23]\.[\d\.]+)/i], [m, b], [/rv\:([\w\.]{1,9}).+(gecko)/i], [b, m]], os: [[/microsoft\s(windows)\s(vista|xp)/i], [m, b], [/(windows)\snt\s6\.2;\s(arm)/i, /(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i, /(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i], [m, [b, H.str, K.os.windows.version]], [/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i], [[m, "Windows"], [b, H.str, K.os.windows.version]], [/\((bb)(10);/i], [[m, "BlackBerry"], b], [/(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], [m, b], [/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i], [[m, "Symbian"], b], [/\((series40);/i], [m], [/mozilla.+\(mobile;.+gecko.+firefox/i], [[m, "Firefox OS"], b], [/(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], [m, b], [/(cros)\s[\w]+\s([\w\.]+\w)/i], [[m, "Chromium OS"], b], [/(sunos)\s?([\w\.\d]*)/i], [[m, "Solaris"], b], [/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i], [m, b], [/(haiku)\s(\w+)/i], [m, b], [/cfnetwork\/.+darwin/i, /ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i], [[b, /_/g, "."], [m, "iOS"]], [/(mac\sos\sx)\s?([\w\s\.]*)/i, /(macintosh|mac(?=_powerpc)\s)/i], [[m, "Mac OS"], [b, /_/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], [m, b]] }, le = function(ee, z) {
|
|
8432
8437
|
if (typeof ee == "object" && (z = ee, ee = s), !(this instanceof le))
|
|
8433
8438
|
return new le(ee, z).getResult();
|
|
8434
|
-
var
|
|
8439
|
+
var L = ee || (o && o.navigator && o.navigator.userAgent ? o.navigator.userAgent : l), Y = z ? Z.extend(de, z) : de;
|
|
8435
8440
|
return this.getBrowser = function() {
|
|
8436
8441
|
var te = { name: s, version: s };
|
|
8437
|
-
return H.rgx.call(te,
|
|
8442
|
+
return H.rgx.call(te, L, Y.browser), te.major = Z.major(te.version), te;
|
|
8438
8443
|
}, this.getCPU = function() {
|
|
8439
8444
|
var te = { architecture: s };
|
|
8440
|
-
return H.rgx.call(te,
|
|
8445
|
+
return H.rgx.call(te, L, Y.cpu), te;
|
|
8441
8446
|
}, this.getDevice = function() {
|
|
8442
8447
|
var te = { vendor: s, model: s, type: s };
|
|
8443
|
-
return H.rgx.call(te,
|
|
8448
|
+
return H.rgx.call(te, L, Y.device), te;
|
|
8444
8449
|
}, this.getEngine = function() {
|
|
8445
8450
|
var te = { name: s, version: s };
|
|
8446
|
-
return H.rgx.call(te,
|
|
8451
|
+
return H.rgx.call(te, L, Y.engine), te;
|
|
8447
8452
|
}, this.getOS = function() {
|
|
8448
8453
|
var te = { name: s, version: s };
|
|
8449
|
-
return H.rgx.call(te,
|
|
8454
|
+
return H.rgx.call(te, L, Y.os), te;
|
|
8450
8455
|
}, this.getResult = function() {
|
|
8451
8456
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
8452
8457
|
}, this.getUA = function() {
|
|
8453
|
-
return
|
|
8458
|
+
return L;
|
|
8454
8459
|
}, this.setUA = function(te) {
|
|
8455
|
-
return
|
|
8460
|
+
return L = te, this;
|
|
8456
8461
|
}, this;
|
|
8457
8462
|
};
|
|
8458
8463
|
le.VERSION = a, le.BROWSER = { NAME: m, MAJOR: w, VERSION: b }, le.CPU = { ARCHITECTURE: I }, le.DEVICE = { MODEL: f, VENDOR: C, TYPE: S, CONSOLE: D, MOBILE: N, SMARTTV: fe, TABLET: R, WEARABLE: _e, EMBEDDED: ae }, le.ENGINE = { NAME: m, VERSION: b }, le.OS = { NAME: m, VERSION: b }, typeof r !== h ? (typeof e !== h && e.exports && (r = e.exports = le), r.UAParser = le) : n(3) ? (i = (function() {
|
|
@@ -8466,8 +8471,8 @@ function b1() {
|
|
|
8466
8471
|
}, we.ua.set = function(ee) {
|
|
8467
8472
|
ve.setUA(ee);
|
|
8468
8473
|
var z = ve.getResult();
|
|
8469
|
-
for (var
|
|
8470
|
-
we.ua[
|
|
8474
|
+
for (var L in z)
|
|
8475
|
+
we.ua[L] = z[L];
|
|
8471
8476
|
};
|
|
8472
8477
|
}
|
|
8473
8478
|
})(typeof window == "object" ? window : this);
|
|
@@ -8584,7 +8589,7 @@ var C1 = b1(), S1 = Object.defineProperty, Or = (t, e, r, n) => {
|
|
|
8584
8589
|
};
|
|
8585
8590
|
const No = class No extends Dr {
|
|
8586
8591
|
constructor() {
|
|
8587
|
-
super(), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new y1(this), this.store =
|
|
8592
|
+
super(), this._currentProgressElement = null, this._currentScreenElement = null, this._currentScreenModuleId = "", this._currentScreenConfig = null, this.orientation = new y1(this), this.store = Le.getInitialState(), this.currentScreenConfig = this.store.currentScreenConfig, this.processingScreenFromWorkflow = this.store.processingTransformedTemplate, this.isProcessing = this.store.isProcessing, this.loadedModules = this.store.externalModules, this.modulesConfig = this.store.modulesConfig, this._listenerFromModule = (e, r) => {
|
|
8588
8593
|
this.store.listener({
|
|
8589
8594
|
eventType: Fn.MESSAGE,
|
|
8590
8595
|
message: r,
|
|
@@ -8594,7 +8599,7 @@ const No = class No extends Dr {
|
|
|
8594
8599
|
this.store.setIsProcessing(e);
|
|
8595
8600
|
}, this._performFromModule = (e, r) => {
|
|
8596
8601
|
this.store.setIsProcessing(!1), this.store.pushStepWaitNextStepAndSet(e, r);
|
|
8597
|
-
},
|
|
8602
|
+
}, Le.subscribe((e) => {
|
|
8598
8603
|
this.currentScreenConfig = e.currentScreenConfig, this.processingScreenFromWorkflow = e.processingTransformedTemplate, this.isProcessing = e.isProcessing, this.loadedModules = e.externalModules, this.modulesConfig = e.modulesConfig;
|
|
8599
8604
|
});
|
|
8600
8605
|
}
|
|
@@ -8631,7 +8636,7 @@ const No = class No extends Dr {
|
|
|
8631
8636
|
return (!this._currentScreenElement || !this._isTheSameModuleAndScreen(e)) && (this._currentScreenElement = Hs(e.id, r), this._currentScreenModuleId = e.id, this._currentScreenConfig = this.currentScreenConfig), this._currentScreenElement;
|
|
8632
8637
|
}
|
|
8633
8638
|
get version() {
|
|
8634
|
-
return `${"3.2.
|
|
8639
|
+
return `${"3.2.260-nightly".trim()}`;
|
|
8635
8640
|
}
|
|
8636
8641
|
disconnectedCallback() {
|
|
8637
8642
|
na.clearLogs();
|
|
@@ -8674,13 +8679,13 @@ class P1 {
|
|
|
8674
8679
|
/** main commands */
|
|
8675
8680
|
initialize(e) {
|
|
8676
8681
|
return F(this, null, function* () {
|
|
8677
|
-
return
|
|
8682
|
+
return Le.getState().initialize(e);
|
|
8678
8683
|
});
|
|
8679
8684
|
}
|
|
8680
8685
|
configure(e) {
|
|
8681
8686
|
return F(this, null, function* () {
|
|
8682
|
-
return "userName" in e ? yield
|
|
8683
|
-
error: new
|
|
8687
|
+
return "userName" in e ? yield Le.getState().configureByUserPass(e) : "apiKey" in e ? yield Le.getState().configureByApiKey(e) : "url" in e && Object.keys(e).length === 1 ? yield Le.getState().configureWithUrl(e.url) : {
|
|
8688
|
+
error: new Ve({
|
|
8684
8689
|
errorCode: Ue.CONFIG_MISSED_OR_INVALID,
|
|
8685
8690
|
message: "No valid config found"
|
|
8686
8691
|
})
|
|
@@ -8689,48 +8694,48 @@ class P1 {
|
|
|
8689
8694
|
}
|
|
8690
8695
|
getWorkFlows(e) {
|
|
8691
8696
|
return F(this, null, function* () {
|
|
8692
|
-
return yield
|
|
8697
|
+
return yield Le.getState().getWorkflows(e);
|
|
8693
8698
|
});
|
|
8694
8699
|
}
|
|
8695
8700
|
prepareWorkflow(r) {
|
|
8696
8701
|
return F(this, arguments, function* ({ workflowId: e }) {
|
|
8697
|
-
return yield
|
|
8702
|
+
return yield Le.getState().prepareWorkflowAndPrepareUi(e);
|
|
8698
8703
|
});
|
|
8699
8704
|
}
|
|
8700
8705
|
startWorkflow(e) {
|
|
8701
8706
|
return F(this, null, function* () {
|
|
8702
|
-
const
|
|
8703
|
-
return new Promise((
|
|
8704
|
-
const
|
|
8705
|
-
|
|
8706
|
-
},
|
|
8707
|
-
|
|
8708
|
-
|
|
8707
|
+
const n = Le.getState().trackLocation ? yield _d() : null;
|
|
8708
|
+
return new Promise((i) => {
|
|
8709
|
+
const o = (d) => {
|
|
8710
|
+
i(d);
|
|
8711
|
+
}, s = e == null ? void 0 : e.locale, a = e == null ? void 0 : e.metadata, l = fd(s);
|
|
8712
|
+
Le.getState().startNewSession({ completion: o, locale: l, metadata: a, location: n }).then((d) => {
|
|
8713
|
+
d.error && (Le.getState().removeCurrentSessionDataLsAndStore(), o(d)), d.results && (Le.getState().removeCurrentSessionDataLsAndStore(), o(d)), Le.getState().playWorkflow();
|
|
8709
8714
|
});
|
|
8710
8715
|
});
|
|
8711
8716
|
});
|
|
8712
8717
|
}
|
|
8713
8718
|
deinitialize() {
|
|
8714
8719
|
return F(this, null, function* () {
|
|
8715
|
-
return yield
|
|
8720
|
+
return yield Le.getState().deinitialize();
|
|
8716
8721
|
});
|
|
8717
8722
|
}
|
|
8718
8723
|
/** service commands */
|
|
8719
8724
|
get version() {
|
|
8720
|
-
return "3.2.
|
|
8725
|
+
return "3.2.260-nightly";
|
|
8721
8726
|
}
|
|
8722
8727
|
set nonce(e) {
|
|
8723
|
-
|
|
8728
|
+
Le.getState().setNonce(e);
|
|
8724
8729
|
}
|
|
8725
8730
|
set eventListener(e) {
|
|
8726
8731
|
if (!e || typeof e != "function") {
|
|
8727
8732
|
console.warn("IdvIntegrationService:: listener is not a function");
|
|
8728
8733
|
return;
|
|
8729
8734
|
}
|
|
8730
|
-
|
|
8735
|
+
Le.getState().setListener(e);
|
|
8731
8736
|
}
|
|
8732
8737
|
set sessionRestoreMode(e) {
|
|
8733
|
-
|
|
8738
|
+
Le.getState().setSessionRestoreMode(e);
|
|
8734
8739
|
}
|
|
8735
8740
|
}
|
|
8736
8741
|
const E1 = window.customElements.get("idv-flow");
|
|
@@ -8739,7 +8744,7 @@ export {
|
|
|
8739
8744
|
Ce as BaseError,
|
|
8740
8745
|
gd as BaseModule,
|
|
8741
8746
|
Kt as ConnectionError,
|
|
8742
|
-
|
|
8747
|
+
Un as DeinitializationError,
|
|
8743
8748
|
Fn as IdvEventTypesEnum,
|
|
8744
8749
|
P1 as IdvIntegrationService,
|
|
8745
8750
|
Mr as IdvServiceMessages,
|